From 47d593711e22425e258fccd2e7ff4861ebf8d118 Mon Sep 17 00:00:00 2001 From: zealotchen Date: Thu, 14 Nov 2024 14:33:37 +0800 Subject: [PATCH] feat(js): update js bundle --- .../android-demo/res/react/index.android.js | 4 +- .../android-demo/res/react/vendor.android.js | 12 +++--- .../android-demo/res/vue2/index.android.js | 6 +-- .../android-demo/res/vue2/vendor.android.js | 10 ++--- .../vue3/asyncComponentFromHttp.android.js | 2 +- .../vue3/asyncComponentFromLocal.android.js | 2 +- .../android-demo/res/vue3/index.android.js | 24 ++++++------ .../res/vue3/vendor-manifest.json | 2 +- .../android-demo/res/vue3/vendor.android.js | 38 +++++++++---------- .../examples/ios-demo/res/react/index.ios.js | 6 +-- .../examples/ios-demo/res/react/vendor.ios.js | 6 +-- .../examples/ios-demo/res/vue2/index.ios.js | 8 ++-- .../examples/ios-demo/res/vue2/vendor.ios.js | 10 ++--- .../res/vue3/asyncComponentFromHttp.ios.js | 2 +- .../res/vue3/asyncComponentFromLocal.ios.js | 2 +- .../examples/ios-demo/res/vue3/index.ios.js | 28 +++++++------- .../ios-demo/res/vue3/vendor-manifest.json | 2 +- .../examples/ios-demo/res/vue3/vendor.ios.js | 36 +++++++++--------- .../assets/jsbundle/react/index.android.js | 4 +- .../assets/jsbundle/react/vendor.android.js | 12 +++--- .../assets/jsbundle/vue2/index.android.js | 6 +-- .../assets/jsbundle/vue2/vendor.android.js | 10 ++--- .../vue3/asyncComponentFromHttp.android.js | 2 +- .../vue3/asyncComponentFromLocal.android.js | 2 +- .../assets/jsbundle/vue3/index.android.js | 24 ++++++------ .../assets/jsbundle/vue3/vendor-manifest.json | 2 +- .../assets/jsbundle/vue3/vendor.android.js | 38 +++++++++---------- 27 files changed, 150 insertions(+), 150 deletions(-) diff --git a/framework/examples/android-demo/res/react/index.android.js b/framework/examples/android-demo/res/react/index.android.js index 3f029d49698..469498f6228 100644 --- a/framework/examples/android-demo/res/react/index.android.js +++ b/framework/examples/android-demo/res/react/index.android.js @@ -1,4 +1,4 @@ -!function(e){function t(t){for(var n,r,i=t[0],a=t[1],l=0,c=[];l0===l.indexOf(e))){var s=l.split("/"),c=s[s.length-1],h=c.split(".")[0];(u=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[h])&&(l=u+c)}else{var u;h=l.split(".")[0];(u=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[h])&&(l=u+l)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+l;var n=o[e];0!==n&&n&&n[1](t),o[e]=void 0}},global.dynamicLoad(l,onScriptComplete)}return Promise.all(t)},r.m=e,r.c=n,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var i=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],a=i.push.bind(i);i.push=t,i=i.slice();for(var l=0;l0===l.indexOf(e))){var s=l.split("/"),c=s[s.length-1],h=c.split(".")[0];(u=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[h])&&(l=u+c)}else{var u;h=l.split(".")[0];(u=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[h])&&(l=u+l)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+l;var n=o[e];0!==n&&n&&n[1](t),o[e]=void 0}},global.dynamicLoad(l,onScriptComplete)}return Promise.all(t)},r.m=e,r.c=n,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var i=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],a=i.push.bind(i);i.push=t,i=i.slice();for(var l=0;l=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;C(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:v(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=o}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}},"./node_modules/webpack/buildin/global.js":function(e,t,n){e.exports=n("dll-reference hippyReactBase")("./node_modules/webpack/buildin/global.js")},"./src/app.jsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return fn}));var o={};n.r(o),n.d(o,"Focusable",(function(){return N})),n.d(o,"Image",(function(){return q})),n.d(o,"ListView",(function(){return $})),n.d(o,"Modal",(function(){return re})),n.d(o,"RefreshWrapper",(function(){return Re})),n.d(o,"PullHeaderFooter",(function(){return ke})),n.d(o,"ScrollView",(function(){return Oe})),n.d(o,"Text",(function(){return Me})),n.d(o,"TextInput",(function(){return ze})),n.d(o,"View",(function(){return _e})),n.d(o,"ViewPager",(function(){return Je})),n.d(o,"WebView",(function(){return $e})),n.d(o,"BoxShadow",(function(){return nt})),n.d(o,"WaterfallView",(function(){return it})),n.d(o,"RippleViewAndroid",(function(){return dt}));var r={};n.r(r),n.d(r,"Animation",(function(){return yt})),n.d(r,"AsyncStorage",(function(){return bt})),n.d(r,"NetInfo",(function(){return xt})),n.d(r,"WebSocket",(function(){return At})),n.d(r,"UIManagerModule",(function(){return It}));var i={};n.r(i),n.d(i,"Slider",(function(){return Mt})),n.d(i,"TabHost",(function(){return zt})),n.d(i,"SetNativeProps",(function(){return _t})),n.d(i,"DynamicImport",(function(){return Wt})),n.d(i,"Localization",(function(){return Ut})),n.d(i,"Turbo",(function(){return Qt})),n.d(i,"NestedScroll",(function(){return Xt}));var a=n("./node_modules/react/index.js"),l=n.n(a),s=n("../../packages/hippy-react/dist/index.js"),c=n("./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0;h--){var m=r[h];"."===m?d(r,h):".."===m?(d(r,h),c++):c&&(d(r,h),c--)}if(!l)for(;c--;c)r.unshift("..");!l||""===r[0]||r[0]&&u(r[0])||r.unshift("");var g=r.join("/");return n&&"/"!==g.substr(-1)&&(g+="/"),g};var g="Invariant failed";function f(e,t){if(!e)throw new Error(g)}function y(e){var t=e.pathname,n=e.search,o=e.hash,r=t||"/";return n&&"?"!==n&&(r+="?"===n.charAt(0)?n:"?"+n),o&&"#"!==o&&(r+="#"===o.charAt(0)?o:"#"+o),r}function p(e,t,n,o){var r;"string"==typeof e?(r=function(e){var t=e||"/",n="",o="",r=t.indexOf("#");-1!==r&&(o=t.substr(r),t=t.substr(0,r));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===o?"":o}}(e)).state=t:(void 0===(r=h({},e)).pathname&&(r.pathname=""),r.search?"?"!==r.search.charAt(0)&&(r.search="?"+r.search):r.search="",r.hash?"#"!==r.hash.charAt(0)&&(r.hash="#"+r.hash):r.hash="",void 0!==t&&void 0===r.state&&(r.state=t));try{r.pathname=decodeURI(r.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+r.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(r.key=n),o?r.pathname?"/"!==r.pathname.charAt(0)&&(r.pathname=m(r.pathname,o.pathname)):r.pathname=o.pathname:r.pathname||(r.pathname="/"),r}function b(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,o,r){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof o?o(i,r):r(!0):r(!1!==i)}else r(!0)},appendListener:function(e){var n=!0;function o(){n&&e.apply(void 0,arguments)}return t.push(o),function(){n=!1,t=t.filter((function(e){return e!==o}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),o=0;ot?n.splice(t,n.length-t,o):n.push(o),u({action:"PUSH",location:o,index:t,entries:n})}}))},replace:function(e,t){var o=p(e,t,d(),S.location);c.confirmTransitionTo(o,"REPLACE",n,(function(e){e&&(S.entries[S.index]=o,u({action:"REPLACE",location:o}))}))},go:x,goBack:function(){x(-1)},goForward:function(){x(1)},canGo:function(e){var t=S.index+e;return t>=0&&t=0||(r[n]=e[n]);return r}var A=n("./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"),v=n.n(A),R=function(e){var t=Object(S.a)();return t.displayName=e,t}("Router"),V=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(c.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return l.a.createElement(R.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(l.a.Component);var k=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;rthis.onClick(e),requestFocus:0===e,focusStyle:{backgroundColor:"red"},noFocusStyle:{backgroundColor:"blue"}},l.a.createElement(s.Text,{style:{color:"white"}},t===e?"我被点击了"+e:"没有被点击"+e)))}render(){return l.a.createElement(s.ScrollView,null,this.getRenderRow(0),this.getRenderRow(1),this.getRenderRow(2),this.getRenderRow(3),this.getRenderRow(4),this.getRenderRow(5),this.getRenderRow(6),this.getRenderRow(7),this.getRenderRow(8),this.getRenderRow(9),this.getRenderRow(10),this.getRenderRow(11),this.getRenderRow(12),this.getRenderRow(13),this.getRenderRow(14),this.getRenderRow(15),this.getRenderRow(16),this.getRenderRow(17),this.getRenderRow(18))}}var W=n.p+"assets/defaultSource.jpg",K=n.p+"assets/hippyLogoWhite.png";const U="https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",G=s.StyleSheet.create({container_style:{alignItems:"center"},image_style:{width:300,height:180,margin:16,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",borderRadius:4},info_style:{marginTop:15,marginLeft:16,fontSize:16,color:"#4c9afa"},img_result:{width:300,marginTop:-15,marginLeft:16,fontSize:16,color:"#4c9afa",borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",borderRadius:4}});class q extends l.a.Component{constructor(e){super(e),this.state={gifLoadResult:{}}}render(){const{width:e,height:t,url:n}=this.state.gifLoadResult;return l.a.createElement(s.ScrollView,{style:G.container_style},l.a.createElement(s.Text,{style:G.info_style},"Contain:"),l.a.createElement(s.Image,{style:[G.image_style],resizeMode:s.Image.resizeMode.contain,defaultSource:W,source:{uri:U},onProgress:e=>{console.log("onProgress",e)},onLoadStart:()=>{console.log("image onloadStart")},onLoad:()=>{console.log("image onLoad")},onError:e=>{console.log("image onError",e)},onLoadEnd:()=>{console.log("image onLoadEnd")}}),l.a.createElement(s.Text,{style:G.info_style},"Cover:"),l.a.createElement(s.Image,{style:[G.image_style],defaultSource:W,source:{uri:U},resizeMode:s.Image.resizeMode.cover}),l.a.createElement(s.Text,{style:G.info_style},"Center:"),l.a.createElement(s.Image,{style:[G.image_style],defaultSource:W,source:{uri:U},resizeMode:s.Image.resizeMode.center}),l.a.createElement(s.Text,{style:G.info_style},"CapInsets:"),l.a.createElement(s.Image,{style:[G.image_style],defaultSource:W,source:{uri:U},capInsets:{top:50,left:50,bottom:50,right:50},resizeMode:s.Image.resizeMode.cover}),l.a.createElement(s.Text,{style:G.info_style},"TintColor:"),l.a.createElement(s.Image,{style:[G.image_style,{tintColor:"#4c9afa99"}],defaultSource:W,source:{uri:K},resizeMode:s.Image.resizeMode.center}),l.a.createElement(s.Text,{style:G.info_style},"Cover GIF:"),l.a.createElement(s.Image,{style:[G.image_style],resizeMode:s.Image.resizeMode.cover,defaultSource:W,source:{uri:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif"},onLoad:e=>{console.log("gif onLoad result: "+e);const{width:t,height:n,url:o}=e;this.setState({gifLoadResult:{width:t,height:n,url:o}})}}),l.a.createElement(s.Text,{style:G.img_result},`gifLoadResult: { width: ${e}, height: ${t}, url: ${n} }`))}}const Q=[{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}],Y=s.StyleSheet.create({container:{backgroundColor:"#fff",collapsable:!1},itemContainer:{padding:12},separatorLine:{marginLeft:12,marginRight:12,height:1,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}});function X({index:e}){return l.a.createElement(s.View,{style:Y.container,onClickCapture:e=>{console.log("onClickCapture style1",e.target.nodeId,e.currentTarget.nodeId)},onTouchDown:e=>(e.stopPropagation(),console.log("onTouchDown style1",e.target.nodeId,e.currentTarget.nodeId),!1),onClick:e=>(console.log("click style1",e.target.nodeId,e.currentTarget.nodeId),!1)},l.a.createElement(s.Text,{numberOfLines:1},e+": Style 1 UI"))}function J({index:e}){return l.a.createElement(s.View,{style:Y.container},l.a.createElement(s.Text,{numberOfLines:1},e+": Style 2 UI"))}function Z({index:e}){return l.a.createElement(s.View,{style:Y.container},l.a.createElement(s.Text,{numberOfLines:1},e+": Style 5 UI"))}class $ extends l.a.Component{constructor(e){super(e),this.state={dataSource:Q,fetchingDataFlag:!1,horizontal:void 0},this.delText="Delete",this.mockFetchData=this.mockFetchData.bind(this),this.getRenderRow=this.getRenderRow.bind(this),this.onEndReached=this.onEndReached.bind(this),this.getRowType=this.getRowType.bind(this),this.getRowKey=this.getRowKey.bind(this),this.getRowStyle=this.getRowStyle.bind(this),this.onDelete=this.onDelete.bind(this),this.onAppear=this.onAppear.bind(this),this.onDisappear=this.onDisappear.bind(this),this.onWillAppear=this.onWillAppear.bind(this),this.onWillDisappear=this.onWillDisappear.bind(this),this.rowShouldSticky=this.rowShouldSticky.bind(this),this.onScroll=this.onScroll.bind(this)}onDelete({index:e}){const{dataSource:t}=this.state,n=t.filter((t,n)=>e!==n);this.setState({dataSource:n})}async onEndReached(){const{dataSource:e,fetchingDataFlag:t}=this.state;if(t)return;this.setState({fetchingDataFlag:!0,dataSource:e.concat([{style:100}])});const n=await this.mockFetchData(),o=e.concat(n);this.setState({dataSource:o,fetchingDataFlag:!1})}onAppear(e){console.log("onAppear",e)}onScroll(e){console.log("onScroll",e.contentOffset.y),e.contentOffset.y<=0?this.topReached||(this.topReached=!0,console.log("onTopReached")):this.topReached=!1}onDisappear(e){console.log("onDisappear",e)}onWillAppear(e){console.log("onWillAppear",e)}onWillDisappear(e){console.log("onWillDisappear",e)}rowShouldSticky(e){return 2===e}getRowType(e){return this.state.dataSource[e].style}getRowStyle(){const{horizontal:e}=this.state;return e?{width:100,height:50}:{}}getRowKey(e){return"row-"+e}getRenderRow(e){const{dataSource:t}=this.state;let n=null;const o=t[e],r=t.length===e+1;switch(o.style){case 1:n=l.a.createElement(X,{index:e});break;case 2:n=l.a.createElement(J,{index:e});break;case 5:n=l.a.createElement(Z,{index:e});break;case 100:n=l.a.createElement(s.Text,{style:Y.loading},"Loading now...")}return l.a.createElement(s.View,{style:Y.container,onClickCapture:e=>{console.log("onClickCapture style outer",e.target.nodeId,e.currentTarget.nodeId)},onTouchDown:e=>(console.log("onTouchDown style outer",e.target.nodeId,e.currentTarget.nodeId),!1),onClick:e=>(console.log("click style outer",e.target.nodeId,e.currentTarget.nodeId),!1)},l.a.createElement(s.View,{style:Y.itemContainer},n),r?null:l.a.createElement(s.View,{style:Y.separatorLine}))}mockFetchData(){return new Promise(e=>{setTimeout(()=>e(Q),600)})}changeDirection(){this.setState({horizontal:void 0===this.state.horizontal||void 0})}render(){const{dataSource:e,horizontal:t}=this.state;return l.a.createElement(s.View,{style:{flex:1,collapsable:!1}},l.a.createElement(s.ListView,{onTouchDown:e=>{console.log("onTouchDown ListView",e.target.nodeId,e.currentTarget.nodeId)},onClickCapture:e=>{console.log("onClickCapture listview",e.target.nodeId,e.currentTarget.nodeId)},onClick:e=>(console.log("click listview",e.target.nodeId,e.currentTarget.nodeId),!0),bounces:!0,horizontal:t,style:[{backgroundColor:"#ffffff"},t?{height:50}:{flex:1}],numberOfRows:e.length,renderRow:this.getRenderRow,onEndReached:this.onEndReached,getRowType:this.getRowType,onDelete:this.onDelete,onMomentumScrollBegin:e=>console.log("onMomentumScrollBegin",e),onMomentumScrollEnd:e=>console.log("onMomentumScrollEnd",e),onScrollBeginDrag:e=>console.log("onScrollBeginDrag",e),onScrollEndDrag:e=>console.log("onScrollEndDrag",e),delText:this.delText,editable:!0,getRowStyle:this.getRowStyle,getRowKey:this.getRowKey,initialListSize:15,rowShouldSticky:this.rowShouldSticky,onAppear:this.onAppear,onDisappear:this.onDisappear,onWillAppear:this.onWillAppear,onWillDisappear:this.onWillDisappear,onScroll:this.onScroll,scrollEventThrottle:1e3}),"android"===s.Platform.OS?l.a.createElement(s.View,{onClick:()=>this.changeDirection(),style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#4c9afa"}},l.a.createElement(s.View,{style:{width:60,height:60,borderRadius:30,backgroundColor:"#4c9afa",display:"flex",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{color:"white"}},"切换方向"))):null)}}const ee="#4c9afa",te="#4c9afa",ne="white",oe=s.StyleSheet.create({container:{flex:1,flexDirection:"column",justifyContent:"flex-start",alignItems:"center"},buttonView:{borderColor:ee,borderWidth:2,borderStyle:"solid",borderRadius:8,justifyContent:"center",alignItems:"center",width:250,height:50,marginTop:30},buttonText:{fontSize:20,color:ee,textAlign:"center",textAlignVertical:"center"},selectionText:{fontSize:20,textAlign:"center",textAlignVertical:"center",marginLeft:10,marginRight:10,padding:5,borderRadius:5,borderWidth:2}});class re extends l.a.Component{constructor(e){super(e),this.state={visible:!1,press:!1,animationType:"fade",immerseStatusBar:!1,hideStatusBar:!1,hideNavigationBar:!1},this.show=this.show.bind(this),this.hide=this.hide.bind(this)}feedback(e){this.setState({press:"in"===e})}show(){this.setState({visible:!0})}hide(){this.setState({visible:!1})}render(){const{press:e,visible:t}=this.state;return l.a.createElement(s.ScrollView,null,l.a.createElement(s.View,{style:oe.container},l.a.createElement(s.View,{onPressIn:()=>this.feedback("in"),onPressOut:()=>this.feedback("out"),onClick:this.show,style:[oe.buttonView,{borderColor:ee,opacity:e?.5:1}]},l.a.createElement(s.Text,{style:[oe.buttonText,{color:ee}]},"点击弹出浮层"))),l.a.createElement(s.View,{style:{flexDirection:"row",justifyContent:"center",marginTop:20}},l.a.createElement(s.Text,{onClick:()=>{this.setState({animationType:"fade"})},style:[oe.selectionText,{borderColor:"fade"===this.state.animationType?"red":ee},{color:"fade"===this.state.animationType?"red":ee}]},"fade"),l.a.createElement(s.Text,{onClick:()=>{this.setState({animationType:"slide"})},style:[oe.selectionText,{borderColor:"slide"===this.state.animationType?"red":ee},{color:"slide"===this.state.animationType?"red":ee}]},"slide"),l.a.createElement(s.Text,{onClick:()=>{this.setState({animationType:"slide_fade"})},style:[oe.selectionText,{borderColor:"slide_fade"===this.state.animationType?"red":ee},{color:"slide_fade"===this.state.animationType?"red":ee}]},"slide_fade")),l.a.createElement(s.View,{style:{flexDirection:"row",justifyContent:"center",marginTop:20}},l.a.createElement(s.Text,{onClick:()=>{this.setState({hideStatusBar:!this.state.hideStatusBar})},style:[oe.selectionText,{borderColor:this.state.hideStatusBar?"red":ee},{color:this.state.hideStatusBar?"red":ee}]},"autoHideStatusBar")),l.a.createElement(s.View,{style:{flexDirection:"row",justifyContent:"center",marginTop:20}},l.a.createElement(s.Text,{onClick:()=>{this.setState({immerseStatusBar:!this.state.immerseStatusBar})},style:[oe.selectionText,{borderColor:this.state.immerseStatusBar?"red":ee},{color:this.state.immerseStatusBar?"red":ee}]},"immersionStatusBar")),l.a.createElement(s.View,{style:{flexDirection:"row",justifyContent:"center",marginTop:20}},l.a.createElement(s.Text,{onClick:()=>{this.setState({hideNavigationBar:!this.state.hideNavigationBar})},style:[oe.selectionText,{borderColor:this.state.hideNavigationBar?"red":ee},{color:this.state.hideNavigationBar?"red":ee}]},"autoHideNavigationBar")),l.a.createElement(s.Modal,{transparent:!0,animationType:this.state.animationType,visible:t,onRequestClose:()=>{},supportedOrientations:["portrait"],immersionStatusBar:this.state.immerseStatusBar,autoHideStatusBar:this.state.hideStatusBar,autoHideNavigationBar:this.state.hideNavigationBar},l.a.createElement(s.View,{style:{flex:1,flexDirection:"row",justifyContent:"center",backgroundColor:"#4c9afa88"}},l.a.createElement(s.View,{onClick:this.hide,style:{width:200,height:200,backgroundColor:te,marginTop:300,flexDirection:"row",justifyContent:"center"}},l.a.createElement(s.Text,{style:{color:ne,fontSize:22,marginTop:80}},"点击关闭浮层")))))}}const ie="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",ae={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[ie,ie,ie],subInfo:["三图评论","11评"]}},le={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},se={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}};var ce=[se,ae,le,ae,le,ae,le,se,ae],he=n("./node_modules/@babel/runtime/helpers/extends.js"),ue=n.n(he);var de={getScreenWidth(){const e=s.Dimensions.get("screen").width,t=s.Dimensions.get("screen").height,n=e>t?t:e;return Math.floor(n)},uniqueArray(e){const t=[];for(let n=0;n=812&&s.PixelRatio.get()>=2&&(e=!0),e}};const me=(de.getScreenWidth()-24-12)/3,ge=Math.floor(me/1.35),fe=s.StyleSheet.create({imageContainer:{flexDirection:"row",justifyContent:"center",height:ge,marginTop:8},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},image:{width:me,height:ge},title:{fontSize:"android"===s.Platform.OS?17:18,lineHeight:24,color:"#242424"},tagLine:{marginTop:8,height:20,flexDirection:"row",justifyContent:"flex-start"}});function ye(e){const{itemBean:{title:t,picList:n}}=e;let{itemBean:{subInfo:o}}=e,r=null;if(o&&o.length){o=de.uniqueArray(o);const e=o.join(" ");r=l.a.createElement(s.Text,{style:fe.normalText,numberOfLines:1},e)}return l.a.createElement(s.View,ue()({},e,{style:{collapsable:!1}}),l.a.createElement(s.Text,{style:[fe.title],numberOfLines:2,enableScale:!0},t),l.a.createElement(s.View,{style:fe.imageContainer},l.a.createElement(s.Image,{style:fe.image,source:{uri:n[0]},resizeMode:s.Image.resizeMode.cover}),l.a.createElement(s.Image,{style:[fe.image,{marginLeft:6,marginRight:6}],source:{uri:n[1]},resizeMode:s.Image.resizeMode.cover}),l.a.createElement(s.Image,{style:fe.image,source:{uri:n[2]},resizeMode:s.Image.resizeMode.cover})),r?l.a.createElement(s.View,{style:fe.tagLine},r):null)}const pe=de.getScreenWidth()-24,be=Math.floor(pe-12)/3,we=Math.floor(be/1.35),xe=s.StyleSheet.create({container:{flexDirection:"row",justifyContent:"space-between",height:we},leftContainer:{flex:1,flexDirection:"column",justifyContent:"center",marginRight:8},imageContainer:{width:be,height:we},image:{width:be,height:we},title:{fontSize:"android"===s.Platform.OS?17:18,lineHeight:24},tagLine:{marginTop:8,height:20,flexDirection:"row",justifyContent:"flex-start"},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}});function Se(e){if("undefined"===e)return null;const{itemBean:t}=e;if(!t)return null;let n=null;const{title:o,picUrl:r}=t;let{subInfo:i}=t;if(i&&i.length){i=de.uniqueArray(i);const e=i.join(" ");n=l.a.createElement(s.Text,{style:xe.normalText,numberOfLines:1},e)}return l.a.createElement(s.View,ue()({},e,{style:xe.container}),l.a.createElement(s.View,{style:xe.leftContainer},l.a.createElement(s.Text,{style:xe.title,numberOfLines:2,enableScale:!0},o),n?l.a.createElement(s.View,{style:xe.tagLine},n):null),l.a.createElement(s.View,{style:xe.imageContainer},l.a.createElement(s.Image,{resizeMode:s.Image.resizeMode.cover,style:xe.image,source:{uri:r}})))}const Ee=de.getScreenWidth()-24,Te=Math.floor(188*Ee/336),Ce=s.StyleSheet.create({text:{fontSize:"android"===s.Platform.OS?17:18,lineHeight:24,color:"#242424"},playerView:{marginTop:8,alignItems:"center",width:Ee,height:Te,alignSelf:"center"},image:{width:Ee,height:Te},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},tagLine:{marginTop:8,flexDirection:"row",justifyContent:"space-between",alignItems:"center"}});function Ae(e){if("undefined"===e)return null;const{itemBean:t}=e;if(!t)return null;const{title:n,picUrl:o}=t;let{subInfo:r}=t,i=null;if(r&&r.length){r=de.uniqueArray(r);const e=r.join(" ");i=l.a.createElement(s.Text,{style:Ce.normalText,numberOfLines:1},e)}return l.a.createElement(s.View,e,l.a.createElement(s.Text,{style:Ce.text,numberOfLines:2,enableScale:!0},n),l.a.createElement(s.View,{style:Ce.playerView},l.a.createElement(s.Image,{style:Ce.image,source:{uri:o},resizeMode:s.Image.resizeMode.cover})),i?l.a.createElement(s.View,{style:Ce.tagLine},i):null)}const ve=s.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},spliter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}});class Re extends l.a.Component{constructor(e){super(e),this.state={dataSource:[],loadingState:"正在加载..."},this.fetchTimes=0,this.mockFetchData=this.mockFetchData.bind(this),this.onRefresh=this.onRefresh.bind(this),this.getRefresh=this.getRefresh.bind(this),this.getRenderRow=this.getRenderRow.bind(this),this.onEndReached=this.onEndReached.bind(this),this.getRowType=this.getRowType.bind(this),this.getRowKey=this.getRowKey.bind(this)}async componentDidMount(){const e=await this.mockFetchData();this.setState({dataSource:e})}async onEndReached(){const{dataSource:e,fetchingDataFlag:t}=this.state;if(t)return;this.setState({fetchingDataFlag:!0,dataSource:e.concat([{style:100}])});const n=await this.mockFetchData(),o=e[e.length-1];o&&100===o.style&&e.pop();const r=e.concat(n);this.setState({dataSource:r})}onRefresh(){setTimeout(async()=>{const e=await this.mockFetchData();this.setState({dataSource:e}),this.refresh.refreshComplected()},1e3)}onClickItem(e){console.log(`item: ${e} is clicked..`)}getRenderRow(e){const{dataSource:t,loadingState:n}=this.state;let o=null;const r=t[e],i=t.length===e+1;switch(r.style){case 1:o=l.a.createElement(ye,{itemBean:r.itemBean,onClick:()=>this.onClickItem(e)});break;case 2:o=l.a.createElement(Se,{itemBean:r.itemBean,onClick:()=>this.onClickItem(e)});break;case 5:o=l.a.createElement(Ae,{itemBean:r.itemBean,onClick:()=>this.onClickItem(e)});break;case 100:o=l.a.createElement(s.Text,{style:ve.loading},n)}return l.a.createElement(s.View,{style:ve.container},l.a.createElement(s.View,{style:ve.itemContainer},o),i?null:l.a.createElement(s.View,{style:ve.spliter}))}getRowType(e){return this.state.dataSource[e].style}getRowKey(e){return"row-"+e}getRefresh(){return l.a.createElement(s.View,{style:{flex:1,height:30}},l.a.createElement(s.Text,{style:{flex:1,textAlign:"center"}},"下拉刷新中..."))}mockFetchData(){return new Promise(e=>{setTimeout(()=>(this.setState({fetchingDataFlag:!1}),this.fetchTimes+=1,this.fetchTimes>=50?e([]):e(ce)),600)})}render(){const{dataSource:e}=this.state;return l.a.createElement(s.RefreshWrapper,{ref:e=>{this.refresh=e},style:{flex:1},onRefresh:this.onRefresh,bounceTime:100,getRefresh:this.getRefresh},l.a.createElement(s.ListView,{style:{flex:1,backgroundColor:"#ffffff"},numberOfRows:e.length,renderRow:this.getRenderRow,onEndReached:this.onEndReached,getRowType:this.getRowType,getRowKey:this.getRowKey}))}}const Ve=s.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},splitter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},pullContainer:{flex:1,height:50,backgroundColor:"#4c9afa"},pullContent:{lineHeight:50,color:"white",height:50,textAlign:"center"},pullFooter:{height:40,flex:1,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}});class ke extends l.a.Component{constructor(e){super(e),this.state={dataSource:[],headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",horizontal:void 0},this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.mockFetchData=this.mockFetchData.bind(this),this.renderRow=this.renderRow.bind(this),this.getRowType=this.getRowType.bind(this),this.getRowKey=this.getRowKey.bind(this),this.getHeaderStyle=this.getHeaderStyle.bind(this),this.getFooterStyle=this.getFooterStyle.bind(this),this.getRowStyle=this.getRowStyle.bind(this),this.renderPullHeader=this.renderPullHeader.bind(this),this.renderPullFooter=this.renderPullFooter.bind(this),this.onEndReached=this.onEndReached.bind(this),this.onHeaderReleased=this.onHeaderReleased.bind(this),this.onHeaderPulling=this.onHeaderPulling.bind(this),this.onFooterPulling=this.onFooterPulling.bind(this)}async componentDidMount(){const e=await this.mockFetchData();this.setState({dataSource:e}),this.listView.collapsePullHeader()}mockFetchData(){return new Promise(e=>{setTimeout(()=>e(ce),800)})}async onEndReached(){const{dataSource:e}=this.state;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.setState({footerRefreshText:"加载更多..."});let t=[];try{t=await this.mockFetchData()}catch(e){}0===t.length&&this.setState({footerRefreshText:"没有更多数据"});const n=[...e,...t];this.setState({dataSource:n}),this.loadMoreDataFlag=!1,this.listView.collapsePullFooter()}async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.setState({headerRefreshText:"刷新数据中,请稍等"});let e=[];try{e=await this.mockFetchData(),e=e.reverse()}catch(e){}this.fetchingDataFlag=!1,this.setState({dataSource:e,headerRefreshText:"2秒后收起"},()=>{this.listView.collapsePullHeader({time:2e3})})}onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>Ve.pullContent.height?this.setState({headerRefreshText:"松手,即可触发刷新"}):this.setState({headerRefreshText:"继续下拉,触发刷新"}))}onFooterPulling(e){console.log("onFooterPulling",e)}onClickItem(e,t){console.log(`item: ${e} is clicked..`,t.target.nodeId,t.currentTarget.nodeId)}getRowType(e){return this.state.dataSource[e].style}getRowKey(e){return"row-"+e}getHeaderStyle(){const{horizontal:e}=this.state;return e?{width:50}:{}}renderPullHeader(){const{headerRefreshText:e,horizontal:t}=this.state;return t?l.a.createElement(s.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{lineHeight:25,color:"white",width:40,paddingHorizontal:15}},e)):l.a.createElement(s.View,{style:Ve.pullContainer},l.a.createElement(s.Text,{style:Ve.pullContent},e))}getFooterStyle(){const{horizontal:e}=this.state;return e?{width:40}:{}}renderPullFooter(){const{horizontal:e}=this.state;return e?l.a.createElement(s.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{color:"white",lineHeight:25,width:40,paddingHorizontal:15}},this.state.footerRefreshText)):l.a.createElement(s.View,{style:Ve.pullFooter},l.a.createElement(s.Text,{style:{color:"white"}},this.state.footerRefreshText))}renderRow(e){const{dataSource:t}=this.state;let n=null;const o=t[e],r=t.length===e+1;switch(o.style){case 1:n=l.a.createElement(ye,{itemBean:o.itemBean,onClick:t=>this.onClickItem(e,t)});break;case 2:n=l.a.createElement(Se,{itemBean:o.itemBean,onClick:t=>this.onClickItem(e,t)});break;case 5:n=l.a.createElement(Ae,{itemBean:o.itemBean,onClick:t=>this.onClickItem(e,t)})}return l.a.createElement(s.View,{style:Ve.container},l.a.createElement(s.View,{style:Ve.itemContainer},n),r?null:l.a.createElement(s.View,{style:Ve.splitter}))}getRowStyle(){const{horizontal:e}=this.state;return e?{height:300,justifyContent:"center",alignItems:"center"}:{}}changeDirection(){this.setState({horizontal:void 0===this.state.horizontal||void 0})}render(){const{dataSource:e,horizontal:t}=this.state;return l.a.createElement(s.View,{style:{flex:1,collapsable:!1}},l.a.createElement(s.ListView,{horizontal:t,onClick:e=>console.log("ListView",e.target.nodeId,e.currentTarget.nodeId),ref:e=>{this.listView=e},style:[{backgroundColor:"#ffffff"},t?{height:300}:{flex:1}],numberOfRows:e.length,getRowType:this.getRowType,getRowKey:this.getRowKey,getHeaderStyle:this.getHeaderStyle,getFooterStyle:this.getFooterStyle,getRowStyle:this.getRowStyle,renderRow:this.renderRow,renderPullHeader:this.renderPullHeader,renderPullFooter:this.renderPullFooter,onHeaderReleased:this.onHeaderReleased,onHeaderPulling:this.onHeaderPulling,onFooterReleased:this.onEndReached,onFooterPulling:this.onFooterPulling,rowShouldSticky:e=>0===e}),"android"===s.Platform.OS?l.a.createElement(s.View,{onClick:()=>this.changeDirection(),style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#4c9afa"}},l.a.createElement(s.View,{style:{width:60,height:60,borderRadius:30,backgroundColor:"#4c9afa",display:"flex",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{color:"white"}},"切换方向"))):null)}}const Ie=s.StyleSheet.create({itemStyle:{width:100,height:100,lineHeight:100,borderWidth:1,borderStyle:"solid",borderColor:"#4c9afa",fontSize:80,margin:20,color:"#4c9afa",textAlign:"center"},verticalScrollView:{height:300,width:140,margin:20,borderColor:"#eee",borderWidth:1,borderStyle:"solid"},itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10}});function Oe(){return l.a.createElement(s.ScrollView,null,l.a.createElement(s.View,{style:Ie.itemTitle},l.a.createElement(s.Text,null,"Horizontal ScrollView")),l.a.createElement(s.View,null,l.a.createElement(s.ScrollView,{horizontal:!0,bounces:!0,showsHorizontalScrollIndicator:!1,showScrollIndicator:!1,onScroll:e=>console.log("onScroll",e),onMomentumScrollBegin:e=>console.log("onMomentumScrollBegin",e),onMomentumScrollEnd:e=>console.log("onMomentumScrollEnd",e),onScrollBeginDrag:e=>console.log("onScrollBeginDrag",e),onScrollEndDrag:e=>console.log("onScrollEndDrag",e)},l.a.createElement(s.Text,{style:Ie.itemStyle},"A"),l.a.createElement(s.Text,{style:Ie.itemStyle},"B"),l.a.createElement(s.Text,{style:Ie.itemStyle},"C"),l.a.createElement(s.Text,{style:Ie.itemStyle},"D"),l.a.createElement(s.Text,{style:Ie.itemStyle},"E"),l.a.createElement(s.Text,{style:Ie.itemStyle},"F"),l.a.createElement(s.Text,{style:Ie.itemStyle},"A"))),l.a.createElement(s.View,{style:Ie.itemTitle},l.a.createElement(s.Text,null,"Vertical ScrollView")),l.a.createElement(s.ScrollView,{bounces:!0,horizontal:!1,style:Ie.verticalScrollView,showScrollIndicator:!1,showsVerticalScrollIndicator:!1},l.a.createElement(s.Text,{style:Ie.itemStyle},"A"),l.a.createElement(s.Text,{style:Ie.itemStyle},"B"),l.a.createElement(s.Text,{style:Ie.itemStyle},"C"),l.a.createElement(s.Text,{style:Ie.itemStyle},"D"),l.a.createElement(s.Text,{style:Ie.itemStyle},"E"),l.a.createElement(s.Text,{style:Ie.itemStyle},"F"),l.a.createElement(s.Text,{style:Ie.itemStyle},"A")))}const De="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEXRSTlMA9QlZEMPc2Mmmj2VkLEJ4Rsx+pEgAAAChSURBVCjPjVLtEsMgCDOAdbbaNu//sttVPes+zvGD8wgQCLp/TORbUGMAQtQ3UBeSAMlF7/GV9Cmb5eTJ9R7H1t4bOqLE3rN2UCvvwpLfarhILfDjJL6WRKaXfzxc84nxAgLzCGSGiwKwsZUB8hPorZwUV1s1cnGKw+yAOrnI+7hatNIybl9Q3OkBfzopCw6SmDVJJiJ+yD451OS0/TNM7QnuAAbvCG0TSAAAAABJRU5ErkJggg==",Pe="https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",je=s.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},itemContent:{alignItems:"flex-start",justifyContent:"center",borderWidth:1,borderStyle:"solid",borderRadius:2,borderColor:"#e0e0e0",backgroundColor:"#ffffff",padding:10},normalText:{fontSize:14,lineHeight:18,color:"black"},buttonBar:{flexDirection:"row",marginTop:10,flexGrow:1},button:{height:24,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",flexGrow:1,flexShrink:1},buttonText:{lineHeight:24,textAlign:"center",paddingHorizontal:20},customFont:{color:"#0052d9",fontSize:32,fontFamily:"TTTGB"}});let Le=0;class Me extends l.a.Component{constructor(e){super(e),this.state={fontSize:16,textShadowColor:"grey",textShadowOffset:{x:1,y:1},numberOfLines:2,ellipsizeMode:void 0},this.incrementFontSize=this.incrementFontSize.bind(this),this.decrementFontSize=this.decrementFontSize.bind(this),this.incrementLine=this.incrementLine.bind(this),this.decrementLine=this.decrementLine.bind(this),this.changeMode=this.changeMode.bind(this)}incrementFontSize(){const{fontSize:e}=this.state;24!==e&&this.setState({fontSize:e+1})}decrementFontSize(){const{fontSize:e}=this.state;6!==e&&this.setState({fontSize:e-1})}incrementLine(){const{numberOfLines:e}=this.state;e<6&&this.setState({numberOfLines:e+1})}decrementLine(){const{numberOfLines:e}=this.state;e>1&&this.setState({numberOfLines:e-1})}changeMode(e){this.setState({ellipsizeMode:e})}changeBreakStrategy(e){this.setState({breakStrategy:e})}render(){const{fontSize:e,textShadowColor:t,textShadowOffset:n,numberOfLines:o,ellipsizeMode:r,breakStrategy:i}=this.state,a=e=>l.a.createElement(s.View,{style:je.itemTitle},l.a.createElement(s.Text,{style:!0},e));return l.a.createElement(s.ScrollView,{style:{paddingHorizontal:10}},a("shadow"),l.a.createElement(s.View,{style:[je.itemContent,{height:60}],onClick:()=>{let e="red",t={x:10,y:1};Le%2==1&&(e="grey",t={x:1,y:1}),Le+=1,this.setState({textShadowColor:e,textShadowOffset:t})}},l.a.createElement(s.Text,{style:[je.normalText,{color:"#242424",textShadowOffset:n,textShadowRadius:3,textShadowColor:t}]},"Text shadow is grey with radius 3 and offset 1")),a("color"),l.a.createElement(s.View,{style:[je.itemContent,{height:80}]},l.a.createElement(s.Text,{style:[je.normalText,{color:"#242424"}]},"Text color is black"),l.a.createElement(s.Text,{style:[je.normalText,{color:"blue"}]},"Text color is blue"),l.a.createElement(s.Text,{style:[je.normalText,{color:"rgb(228,61,36)"}]},"This is red")),a("fontSize"),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{style:[je.normalText,{fontSize:e}]},"Text fontSize is "+e),l.a.createElement(s.View,{style:je.button,onClick:this.incrementFontSize},l.a.createElement(s.Text,{style:je.buttonText},"放大字体")),l.a.createElement(s.View,{style:je.button,onClick:this.decrementFontSize},l.a.createElement(s.Text,{style:je.buttonText},"缩小字体"))),a("fontStyle"),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{style:[je.normalText,{fontStyle:"normal"}]},"Text fontStyle is normal"),l.a.createElement(s.Text,{style:[je.normalText,{fontStyle:"italic"}]},"Text fontStyle is italic")),a("numberOfLines and ellipsizeMode"),l.a.createElement(s.View,{style:[je.itemContent]},l.a.createElement(s.Text,{style:[je.normalText,{marginBottom:10}]},`numberOfLines=${o} | ellipsizeMode=${r}`),l.a.createElement(s.Text,{numberOfLines:o,ellipsizeMode:r,style:[je.normalText,{lineHeight:void 0,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Text,{style:{fontSize:19,color:"white"}},"先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。"),l.a.createElement(s.Text,null,"然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")),l.a.createElement(s.Text,{numberOfLines:o,ellipsizeMode:r,style:[je.normalText,{backgroundColor:"#4c9afa",marginBottom:10,color:"white",paddingHorizontal:10,paddingVertical:5}]},"line 1\n\nline 3\n\nline 5"),l.a.createElement(s.Text,{numberOfLines:o,ellipsizeMode:r,style:[je.normalText,{lineHeight:void 0,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5,verticalAlign:"middle"}]},l.a.createElement(s.Image,{style:{width:24,height:24},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24},source:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEnRSTlMA/QpX7WQU2m27pi3Ej9KEQXaD5HhjAAAAqklEQVQoz41SWxLDIAh0RcFXTHL/yzZSO01LMpP9WJEVUNA9gfdXTioCSKE/kQQTQmf/ArRYva+xAcuPP37seFII2L7FN4BmXdHzlEPIpDHiZ0A7eIViPcw2QwqipkvMSdNEFBUE1bmMNOyE7FyFaIkAP4jHhhG80lvgkzBODTKpwhRMcexuR7fXzcp08UDq6GRbootp4oRtO3NNpd4NKtnR9hB6oaefweIFQU0EfnGDRoQAAAAASUVORK5CYII="}}),l.a.createElement(s.Text,null,"Text + Attachment")),l.a.createElement(s.View,{style:je.buttonBar},l.a.createElement(s.View,{style:je.button,onClick:this.incrementLine},l.a.createElement(s.Text,{style:je.buttonText},"加一行")),l.a.createElement(s.View,{style:je.button,onClick:this.decrementLine},l.a.createElement(s.Text,{style:je.buttonText},"减一行"))),l.a.createElement(s.View,{style:je.buttonBar},l.a.createElement(s.View,{style:je.button,onClick:()=>this.changeMode("clip")},l.a.createElement(s.Text,{style:je.buttonText},"clip")),l.a.createElement(s.View,{style:je.button,onClick:()=>this.changeMode("head")},l.a.createElement(s.Text,{style:je.buttonText},"head")),l.a.createElement(s.View,{style:je.button,onClick:()=>this.changeMode("middle")},l.a.createElement(s.Text,{style:je.buttonText},"middle")),l.a.createElement(s.View,{style:je.button,onClick:()=>this.changeMode("tail")},l.a.createElement(s.Text,{style:je.buttonText},"tail")))),a("textDecoration"),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[je.normalText,{textDecorationLine:"underline",textDecorationStyle:"dotted"}]},"underline"),l.a.createElement(s.Text,{numberOfLines:1,style:[je.normalText,{textDecorationLine:"line-through",textDecorationColor:"red"}]},"line-through")),a("LetterSpacing"),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[je.normalText,{letterSpacing:-1}]},"Text width letter-spacing -1"),l.a.createElement(s.Text,{numberOfLines:1,style:[je.normalText,{letterSpacing:5}]},"Text width letter-spacing 5")),a("Nest Text"),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:3},l.a.createElement(s.Text,{numberOfLines:3,style:[je.normalText,{color:"#4c9afa"}]},"#SpiderMan#"),l.a.createElement(s.Text,{numberOfLines:3,style:je.normalText},"Hello world, I am a spider man and I have five friends in other universe."))),a("Custom font"),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:je.customFont},"Hippy 跨端框架")),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[je.customFont,{fontWeight:"bold"}]},"Hippy 跨端框架 粗体")),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[je.customFont,{fontStyle:"italic"}]},"Hippy 跨端框架 斜体")),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[je.customFont,{fontWeight:"bold",fontStyle:"italic"}]},"Hippy 跨端框架 粗斜体")),a("Text Nested"),l.a.createElement(s.View,{style:[je.itemContent,{height:150}]},l.a.createElement(s.Text,{style:{height:100,lineHeight:50}},l.a.createElement(s.Text,{numberOfLines:1,style:je.normalText},"后面有张图片"),l.a.createElement(s.Image,{style:{width:70,height:35},source:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAAtCAMAAABmgJ64AAAAOVBMVEX/Rx8AAAD/QiL/Tif/QyH/RR//QiH/QiP/RCD/QSL/Qxz/QyH/QiL/QiD/QyL/QiL/QiH/QyH/QiLwirLUAAAAEnRSTlMZAF4OTC7DrWzjI4iietrRk0EEv/0YAAAB0UlEQVRYw72Y0Y6sIAxAKwUFlFH7/x97izNXF2lN1pU5D800jD2hJAJCdwYZuAUyVbmToKh903IhQHgErAVH+ccV0KI+G2oBPMxJgPA4WAigAT8F0IRDgNAE3ARyfeMFDGSc3YHVFkTBAHKDAgkEyHjacae/GTjxFqAo8NbakXrL9DRy9B+BCQwRcXR9OBKmEuAmAFFgcy0agBnIc1xZsMPOI5loAoUsQFmQjDEL9YbpaeGYBMGRKKAuqFEFL/JXApCw/zFEZk9qgbLGBx0gXLISxT25IUBREEgh1II1fph/IViGnZnCcDDVAgfgVg6gCy6ZaClySbDQpAl04vCGaB4+xGcFRK8CLvW0IBb5bQGqAlNwU4C6oEIVTLTcmoEr0AWcpKsZ/H0NAtkLQffnFjkOqiC/TTWBL9AFCwXQBHgI7rXImMgjCZwFa50s6DRBXyALmIECuMASiWNPFgRTgSJwM+XW8PDCmbwndzdaNL8FMYXPNjASDVChnIvWlBI/MKadPV952HszbmXtRERhhQ0vGFA52SVSSVt7MjHvxfRK8cdTpqovn02dUcltMrwiKf+wQ1FxXKCk9en6e/eDNnP44h2thQEb35O/etNv/q3iHza+KuhqqhZAAAAAAElFTkSuQmCC"}}),l.a.createElement(s.Text,{numberOfLines:1,style:je.customFont},"前面有张图片")),l.a.createElement(s.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"center",paddingHorizontal:10,paddingVertical:5,backgroundColor:"#4c9afa"}},l.a.createElement(s.Image,{style:{width:24,height:24,alignSelf:"center"},source:{uri:De}}),l.a.createElement(s.Text,{style:{fontSize:15,alignItems:"center",justifyContent:"center"}},"Image+Text"))),"android"===s.Platform.OS&&a("breakStrategy"),"android"===s.Platform.OS&&l.a.createElement(s.View,{style:je.itemContent},l.a.createElement(s.Text,{style:[je.normalText,{borderWidth:1,borderColor:"gray"}],breakStrategy:i},"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales."),l.a.createElement(s.Text,{style:je.normalText},"breakStrategy: "+i),l.a.createElement(s.View,{style:je.buttonBar},l.a.createElement(s.View,{style:je.button,onClick:()=>this.changeBreakStrategy("simple")},l.a.createElement(s.Text,{style:je.buttonText},"simple")),l.a.createElement(s.View,{style:je.button,onClick:()=>this.changeBreakStrategy("high_quality")},l.a.createElement(s.Text,{style:je.buttonText},"high_quality")),l.a.createElement(s.View,{style:je.button,onClick:()=>this.changeBreakStrategy("balanced")},l.a.createElement(s.Text,{style:je.buttonText},"balanced")))),a("verticalAlign"),l.a.createElement(s.View,{style:[je.itemContent,{height:"android"===s.Platform.OS?160:70}]},l.a.createElement(s.Text,{style:[je.normalText,{lineHeight:50,backgroundColor:"#4c9afa",paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"top"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:18,height:12,verticalAlign:"middle"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:12,verticalAlign:"baseline"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:36,height:24,verticalAlign:"bottom"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"top"},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:18,height:12,verticalAlign:"middle"},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:24,height:12,verticalAlign:"baseline"},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:36,height:24,verticalAlign:"bottom"},source:{uri:Pe}}),l.a.createElement(s.Text,{style:{fontSize:16,verticalAlign:"top"}},"字"),l.a.createElement(s.Text,{style:{fontSize:16,verticalAlign:"middle"}},"字"),l.a.createElement(s.Text,{style:{fontSize:16,verticalAlign:"baseline"}},"字"),l.a.createElement(s.Text,{style:{fontSize:16,verticalAlign:"bottom"}},"字")),"android"===s.Platform.OS&&l.a.createElement(l.a.Fragment,null,l.a.createElement(s.Text,null,"legacy mode:"),l.a.createElement(s.Text,{style:[je.normalText,{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:0},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:18,height:12,verticalAlignment:1},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:12,verticalAlignment:2},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:36,height:24,verticalAlignment:3},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,top:-10},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:18,height:12,top:-5},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:24,height:12},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:36,height:24,top:3},source:{uri:Pe}}),l.a.createElement(s.Text,{style:{fontSize:16}},"字"),l.a.createElement(s.Text,{style:{fontSize:16}},"字"),l.a.createElement(s.Text,{style:{fontSize:16}},"字"),l.a.createElement(s.Text,{style:{fontSize:16}},"字")))),a("tintColor & backgroundColor"),l.a.createElement(s.View,{style:[je.itemContent]},l.a.createElement(s.Text,{style:[je.normalText,{lineHeight:30,backgroundColor:"#4c9afa",paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"middle",tintColor:"orange"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"middle",tintColor:"orange",backgroundColor:"#ccc"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"middle",backgroundColor:"#ccc"},source:{uri:De}}),l.a.createElement(s.Text,{style:{verticalAlign:"middle",backgroundColor:"#090"}},"text")),"android"===s.Platform.OS&&l.a.createElement(l.a.Fragment,null,l.a.createElement(s.Text,null,"legacy mode:"),l.a.createElement(s.Text,{style:[je.normalText,{lineHeight:30,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,tintColor:"orange"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,tintColor:"orange",backgroundColor:"#ccc"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,backgroundColor:"#ccc"},source:{uri:De}})))),a("margin"),l.a.createElement(s.View,{style:[je.itemContent]},l.a.createElement(s.Text,{style:[{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"top",backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"middle",backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"baseline",backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"bottom",backgroundColor:"#ccc",margin:5},source:{uri:De}})),"android"===s.Platform.OS&&l.a.createElement(l.a.Fragment,null,l.a.createElement(s.Text,null,"legacy mode:"),l.a.createElement(s.Text,{style:[je.normalText,{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:0,backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:1,backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:2,backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:3,backgroundColor:"#ccc",margin:5},source:{uri:De}})))))}}const Be=s.StyleSheet.create({container_style:{padding:10},input_style:{width:300,marginVertical:10,fontSize:16,color:"#242424",height:30,lineHeight:30},input_style_block:{height:100,lineHeight:20,fontSize:15,borderWidth:1,borderColor:"gray",underlineColorAndroid:"transparent"},itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},itemContent:{marginTop:10},buttonBar:{flexDirection:"row",marginTop:10,flexGrow:1},button:{width:200,height:24,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",marginTop:5,marginBottom:5,flexGrow:1,flexShrink:1}});class ze extends a.Component{constructor(e){super(e),this.state={textContent:""},this.changeInputContent=this.changeInputContent.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this)}changeInputContent(){this.setState({textContent:"当前时间毫秒:"+Date.now()})}focus(){this.input.focus()}blur(){this.input.blur()}async onFocus(){const e=await this.input.isFocused();this.setState({event:"onFocus",isFocused:e})}async onBlur(){const e=await this.input.isFocused();this.setState({event:"onBlur",isFocused:e})}changeBreakStrategy(e){this.setState({breakStrategy:e})}render(){const{textContent:e,event:t,isFocused:n,breakStrategy:o}=this.state,r=e=>l.a.createElement(s.View,{style:Be.itemTitle},l.a.createElement(s.Text,null,e));return l.a.createElement(s.ScrollView,{style:Be.container_style},r("text"),l.a.createElement(s.TextInput,{ref:e=>{this.input=e},style:Be.input_style,caretColor:"yellow",underlineColorAndroid:"grey",placeholderTextColor:"#4c9afa",placeholder:"text",defaultValue:e,onBlur:()=>this.onBlur(),onFocus:()=>this.onFocus()}),l.a.createElement(s.Text,{style:Be.itemContent},`事件: ${t} | isFocused: ${n}`),l.a.createElement(s.View,{style:Be.button,onClick:this.changeInputContent},l.a.createElement(s.Text,null,"点击改变输入框内容")),l.a.createElement(s.View,{style:Be.button,onClick:this.focus},l.a.createElement(s.Text,null,"Focus")),l.a.createElement(s.View,{style:Be.button,onClick:this.blur},l.a.createElement(s.Text,null,"Blur")),r("numeric"),l.a.createElement(s.TextInput,{style:Be.input_style,keyboardType:"numeric",placeholder:"numeric"}),r("phone-pad"),l.a.createElement(s.TextInput,{style:Be.input_style,keyboardType:"phone-pad",placeholder:"phone-pad"}),r("password"),l.a.createElement(s.TextInput,{style:Be.input_style,keyboardType:"password",placeholder:"Password",multiline:!1}),r("maxLength"),l.a.createElement(s.TextInput,{caretColor:"yellow",style:Be.input_style,placeholder:"maxLength=5",maxLength:5}),"android"===s.Platform.OS&&r("breakStrategy"),"android"===s.Platform.OS&&l.a.createElement(l.a.Fragment,null,l.a.createElement(s.TextInput,{style:Be.input_style_block,breakStrategy:o,defaultValue:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales."}),l.a.createElement(s.Text,{style:{}},"breakStrategy: "+o),l.a.createElement(s.View,{style:Be.buttonBar},l.a.createElement(s.View,{style:Be.button,onClick:()=>this.changeBreakStrategy("simple")},l.a.createElement(s.Text,{style:Be.buttonText},"simple")),l.a.createElement(s.View,{style:Be.button,onClick:()=>this.changeBreakStrategy("high_quality")},l.a.createElement(s.Text,{style:Be.buttonText},"high_quality")),l.a.createElement(s.View,{style:Be.button,onClick:()=>this.changeBreakStrategy("balanced")},l.a.createElement(s.Text,{style:Be.buttonText},"balanced")))))}}var Fe=n.p+"assets/defaultSource.jpg";const He=s.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},rectangle:{width:160,height:80,marginVertical:10},bigRectangle:{width:200,height:100,borderColor:"#eee",borderWidth:1,borderStyle:"solid",padding:10,marginVertical:10},smallRectangle:{width:40,height:40,borderRadius:10}});function _e(){const e=e=>l.a.createElement(s.View,{style:He.itemTitle},l.a.createElement(s.Text,null,e));return l.a.createElement(s.ScrollView,{style:{paddingHorizontal:10}},e("backgroundColor"),l.a.createElement(s.View,{style:[He.rectangle,{backgroundColor:"#4c9afa"}]}),e("backgroundImage"),l.a.createElement(s.View,{style:[He.rectangle,{alignItems:"center",justifyContent:"center",marginTop:20,backgroundImage:Fe}],accessible:!0,accessibilityLabel:"背景图",accessibilityRole:"image",accessibilityState:{disabled:!1,selected:!0,checked:!1,expanded:!1,busy:!0},accessibilityValue:{min:1,max:10,now:5,text:"middle"}},l.a.createElement(s.Text,{style:{color:"white"}},"背景图")),e("backgroundImage linear-gradient"),l.a.createElement(s.View,{style:[He.rectangle,{alignItems:"center",justifyContent:"center",marginTop:20,borderWidth:2,borderStyle:"solid",borderColor:"black",borderRadius:2,backgroundImage:"linear-gradient(30deg, blue 10%, yellow 40%, red 50%);"}]},l.a.createElement(s.Text,{style:{color:"white"}},"渐变色")),e("border props"),l.a.createElement(s.View,{style:[He.rectangle,{borderColor:"#242424",borderRadius:4,borderWidth:1,borderStyle:"solid"}]}),e("flex props"),l.a.createElement(s.View,{style:[He.bigRectangle,{flexDirection:"row",alignItems:"center",justifyContent:"space-between"}]},l.a.createElement(s.View,{style:[He.smallRectangle,{backgroundColor:"yellow"}]}),l.a.createElement(s.View,{style:[He.smallRectangle,{backgroundColor:"blue"}]}),l.a.createElement(s.View,{style:[He.smallRectangle,{backgroundColor:"green"}]})))}const Ne=s.StyleSheet.create({pageContainer:{alignItems:"center",justifyContent:"center",flex:1,paddingTop:20},mainRec:{backgroundColor:"#4c9afaAA",width:256,height:48,marginBottom:10,marginTop:156},title:{verticalAlign:"middle",lineHeight:48,height:48,fontSize:16,color:"white",alignSelf:"center"},shapeBase:{width:128,height:128,backgroundColor:"#4c9afa"},square:{},circle:{borderRadius:64},triangle:{borderStyle:"solid",borderTopWidth:0,borderRightWidth:70,borderBottomWidth:128,borderLeftWidth:70,borderTopColor:"transparent",borderRightColor:"transparent",borderLeftColor:"transparent",borderBottomColor:"#4c9afa",backgroundColor:"transparent",width:140}}),We="SquarePagerView",Ke="TrianglePagerView",Ue="CirclePagerView";function Ge(e,t){const n=t=>l.a.createElement(s.View,{style:Ne.pageContainer,key:t},l.a.createElement(s.View,{style:[Ne.shapeBase,e],key:"shape"}),l.a.createElement(s.View,{style:Ne.mainRec,key:"title"},t?l.a.createElement(s.Text,{style:Ne.title},t):null));return n.displayName=t,n}const qe=Ge(Ne.square,We),Qe=Ge(Ne.triangle,Ke),Ye=Ge(Ne.circle,Ue),Xe=s.StyleSheet.create({dotContainer:{position:"absolute",bottom:10,left:0,right:0,flexDirection:"row",alignItems:"center",justifyContent:"center"},dot:{width:6,height:6,borderRadius:3,margin:3,backgroundColor:"#BBBBBB"},selectDot:{backgroundColor:"#000000"},container:{height:500},buttonContainer:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12},button:{width:120,height:36,backgroundColor:"#4c9afa",borderRadius:18,alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,color:"#fff"}});class Je extends l.a.Component{constructor(e){super(e),_()(this,"state",{selectedIndex:0}),this.onPageSelected=this.onPageSelected.bind(this),this.onPageScrollStateChanged=this.onPageScrollStateChanged.bind(this)}onPageSelected(e){console.log("onPageSelected",e.position),this.setState({selectedIndex:e.position})}onPageScrollStateChanged(e){console.log("onPageScrollStateChanged",e)}onPageScroll({offset:e,position:t}){console.log("onPageScroll",e,t)}render(){const{selectedIndex:e}=this.state;return l.a.createElement(s.View,{style:{flex:1,backgroundColor:"#ffffff"}},l.a.createElement(s.View,{style:Xe.buttonContainer},l.a.createElement(s.View,{style:Xe.button,onClick:()=>{this.viewpager.setPage(2)}},l.a.createElement(s.Text,{style:Xe.buttonText},"动效滑到第3页")),l.a.createElement(s.View,{style:Xe.button,onClick:()=>this.viewpager.setPageWithoutAnimation(0)},l.a.createElement(s.Text,{style:Xe.buttonText},"直接滑到第1页"))),l.a.createElement(s.ViewPager,{ref:e=>{this.viewpager=e},style:Xe.container,initialPage:0,keyboardDismissMode:"none",scrollEnabled:!0,onPageSelected:this.onPageSelected,onPageScrollStateChanged:this.onPageScrollStateChanged,onPageScroll:this.onPageScroll},[qe("squarePager"),Qe("TrianglePager"),Ye("CirclePager")]),l.a.createElement(s.View,{style:Xe.dotContainer},new Array(3).fill(0).map((t,n)=>{const o=n===e;return l.a.createElement(s.View,{style:[Xe.dot,o?Xe.selectDot:null],key:"dot_"+n})})))}}const Ze=s.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},webViewStyle:{padding:10,flex:1,flexGrow:1,borderRadius:10}});function $e(){return l.a.createElement(s.View,{style:{paddingHorizontal:10,flex:1}},l.a.createElement(s.View,{style:Ze.itemTitle},l.a.createElement(s.Text,null,"WebView 示例")),l.a.createElement(s.WebView,{source:{uri:"https://hippyjs.org"},method:"get",userAgent:"Mozilla/5.0 (Linux; U; Android 5.1.1; zh-cn; vivo X7 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko)Version/4.0 Chrome/37.0.0.0 MQQBrowser/8.2 Mobile Safari/537.36",style:Ze.webViewStyle,onLoad:({url:e})=>console.log("webview onload",e),onLoadStart:({url:e})=>console.log("webview onLoadStart",e),onLoadEnd:({url:e,success:t,error:n})=>console.log("webview onLoadEnd",e,t,n)}))}const et=s.StyleSheet.create({shadowDemo:{flex:1,overflowY:"scroll"},shadowDemoCubeAndroid:{position:"absolute",left:50,top:50,width:170,height:170,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowColor:"#4c9afa",borderRadius:5},shadowDemoContentAndroid:{position:"absolute",left:5,top:5,width:160,height:160,backgroundColor:"grey",borderRadius:5,display:"flex",justifyContent:"center",alignItems:"center"},shadowDemoCubeIos:{position:"absolute",left:50,top:50,width:160,height:160,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowSpread:1,boxShadowColor:"#4c9afa",borderRadius:5},shadowDemoContentIos:{width:160,height:160,backgroundColor:"grey",borderRadius:5,display:"flex",justifyContent:"center",alignItems:"center"},text:{color:"white"}}),tt=s.StyleSheet.create({shadowDemoCubeAndroid:{position:"absolute",left:50,top:300,width:175,height:175,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:15,boxShadowOffsetY:15,boxShadowColor:"#4c9afa"},shadowDemoContentAndroid:{width:160,height:160,backgroundColor:"grey",display:"flex",justifyContent:"center",alignItems:"center"},shadowDemoCubeIos:{position:"absolute",left:50,top:300,width:160,height:160,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:10,boxShadowOffsetY:10,boxShadowSpread:1,boxShadowColor:"#4c9afa"},shadowDemoContentIos:{width:160,height:160,backgroundColor:"grey",display:"flex",justifyContent:"center",alignItems:"center"},text:{color:"white"}});function nt(){return l.a.createElement(s.View,{style:et.shadowDemo},"android"===s.Platform.OS?l.a.createElement(s.View,{style:et.shadowDemoCubeAndroid},l.a.createElement(s.View,{style:et.shadowDemoContentAndroid},l.a.createElement(s.Text,{style:et.text},"没有偏移阴影样式"))):l.a.createElement(s.View,{style:et.shadowDemoCubeIos},l.a.createElement(s.View,{style:et.shadowDemoContentIos},l.a.createElement(s.Text,{style:et.text},"没有偏移阴影样式"))),"android"===s.Platform.OS?l.a.createElement(s.View,{style:tt.shadowDemoCubeAndroid},l.a.createElement(s.View,{style:tt.shadowDemoContentAndroid},l.a.createElement(s.Text,{style:tt.text},"偏移阴影样式"))):l.a.createElement(s.View,{style:tt.shadowDemoCubeIos},l.a.createElement(s.View,{style:tt.shadowDemoContentIos},l.a.createElement(s.Text,{style:tt.text},"偏移阴影样式"))))}const ot=ce.filter(e=>2!==e.style),rt=s.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},splitter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},pullContainer:{height:50,backgroundColor:"#4c9afa"},pullContent:{lineHeight:50,color:"white",height:50,textAlign:"center"},pullFooter:{flex:1,height:40,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}});class it extends l.a.Component{constructor(e){super(e),this.state={dataSource:[],headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",horizontal:void 0},this.numberOfColumns=2,this.columnSpacing=6,this.interItemSpacing=6,this.mockFetchData=this.mockFetchData.bind(this),this.renderItem=this.renderItem.bind(this),this.getItemType=this.getItemType.bind(this),this.getItemKey=this.getItemKey.bind(this),this.onEndReached=this.onEndReached.bind(this),this.onRefresh=this.onRefresh.bind(this),this.getRefresh=this.getRefresh.bind(this),this.renderPullFooter=this.renderPullFooter.bind(this),this.renderPullHeader=this.renderPullHeader.bind(this),this.onHeaderReleased=this.onHeaderReleased.bind(this),this.onHeaderPulling=this.onHeaderPulling.bind(this),this.onFooterPulling=this.onFooterPulling.bind(this),this.renderBanner=this.renderBanner.bind(this),this.getItemStyle=this.getItemStyle.bind(this),this.getHeaderStyle=this.getHeaderStyle.bind(this),this.onScroll=this.onScroll.bind(this)}async componentDidMount(){const e=await this.mockFetchData();this.setState({dataSource:e})}async onEndReached(){const{dataSource:e}=this.state;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.setState({footerRefreshText:"加载更多..."});let t=[];try{t=await this.mockFetchData()}catch(e){}0===t.length&&this.setState({footerRefreshText:"没有更多数据"});const n=[...e,...t];this.setState({dataSource:n}),this.loadMoreDataFlag=!1,this.listView.collapsePullFooter()}async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.setState({headerRefreshText:"刷新数据中,请稍等"});let e=[];try{e=await this.mockFetchData()}catch(e){}this.fetchingDataFlag=!1,this.setState({dataSource:e,headerRefreshText:"2秒后收起"},()=>{this.listView.collapsePullHeader({time:2e3})})}onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>rt.pullContent.height?this.setState({headerRefreshText:"松手,即可触发刷新"}):this.setState({headerRefreshText:"继续下拉,触发刷新"}))}onFooterPulling(e){console.log("onFooterPulling",e)}renderPullFooter(){const{horizontal:e}=this.state;return e?l.a.createElement(s.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{color:"white",lineHeight:25,width:40,paddingHorizontal:15}},this.state.footerRefreshText)):l.a.createElement(s.View,{style:rt.pullFooter},l.a.createElement(s.Text,{style:{color:"white"}},this.state.footerRefreshText))}async onRefresh(){setTimeout(async()=>{const e=await this.mockFetchData();this.setState({dataSource:e}),this.refresh.refreshComplected()},1e3)}getRefresh(){return l.a.createElement(s.View,{style:{flex:1,height:40,justifyContent:"center",alignItems:"center",backgroundColor:"#4c9afa"}},l.a.createElement(s.Text,{style:{height:40,lineHeight:40,textAlign:"center",color:"white"}},"下拉刷新中..."))}onClickItem(e){console.log(`item: ${e} is clicked..`)}getItemType(e){return this.state.dataSource[e].style}getItemKey(e){return"row-"+e}onItemClick(e){console.log("onItemClick",e),this.listView.scrollToIndex({index:e,animation:!0})}onScroll(e){}renderBanner(){return 0===this.state.dataSource.length?null:l.a.createElement(s.View,{style:{backgroundColor:"grey",height:100,justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{fontSize:20,color:"white",lineHeight:100,height:100}},"Banner View"))}renderItem(e){const{dataSource:t}=this.state;let n=null;const o=t[e];switch(o.style){case 1:n=l.a.createElement(ye,{itemBean:o.itemBean});break;case 2:n=l.a.createElement(Se,{itemBean:o.itemBean});break;case 5:n=l.a.createElement(Ae,{itemBean:o.itemBean})}return l.a.createElement(s.View,{onClick:()=>this.onItemClick(e),style:rt.container},l.a.createElement(s.View,{style:rt.itemContainer},n),l.a.createElement(s.View,{style:rt.splitter}))}mockFetchData(){return new Promise(e=>{setTimeout(()=>{const t=[...ot,...ot];return e(t)},600)})}getWaterfallContentInset(){return{top:0,left:0,bottom:0,right:0}}getItemStyle(){const{numberOfColumns:e,columnSpacing:t}=this,n=s.Dimensions.get("screen").width-32,o=this.getWaterfallContentInset();return{width:(n-o.left-o.right-(e-1)*t)/e}}getHeaderStyle(){const{horizontal:e}=this.state;return e?{width:50}:{}}renderPullHeader(){const{headerRefreshText:e,horizontal:t}=this.state;return t?l.a.createElement(s.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{lineHeight:25,color:"white",width:40,paddingHorizontal:15}},e)):l.a.createElement(s.View,{style:rt.pullContainer},l.a.createElement(s.Text,{style:rt.pullContent},e))}render(){const{dataSource:e}=this.state,{numberOfColumns:t,columnSpacing:n,interItemSpacing:o}=this,r=this.getWaterfallContentInset();return l.a.createElement(s.WaterfallView,{ref:e=>{this.listView=e},numberOfColumns:t,columnSpacing:n,interItemSpacing:o,numberOfItems:e.length,preloadItemNumber:4,style:{flex:1},onScroll:this.onScroll,renderBanner:this.renderBanner,renderPullHeader:this.renderPullHeader,onEndReached:this.onEndReached,onFooterReleased:this.onEndReached,onHeaderReleased:this.onHeaderReleased,onHeaderPulling:this.onHeaderPulling,renderItem:this.renderItem,getItemType:this.getItemType,getItemKey:this.getItemKey,getItemStyle:this.getItemStyle,getHeaderStyle:this.getHeaderStyle,contentInset:r})}}var at=n.p+"assets/defaultSource.jpg";function lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function st(e){for(var t=1;t{i.current.setPressed(!1)},{nativeBackgroundAndroid:h,style:u}=e;return l.a.createElement(s.View,{onLayout:()=>{s.UIManagerModule.measureInAppWindow(i.current,e=>{n(e.x),r(e.y)})},style:u,onTouchDown:e=>{i.current.setHotspot(e.page_x-t,e.page_y-o),i.current.setPressed(!0)},onTouchEnd:c,onTouchCancel:c,ref:i,nativeBackgroundAndroid:st(st({},ct),h)},e.children)}const ut=s.StyleSheet.create({imgRectangle:{width:260,height:56,alignItems:"center",justifyContent:"center"},circleRipple:{marginTop:30,width:150,height:56,alignItems:"center",justifyContent:"center",borderWidth:3,borderStyle:"solid",borderColor:"#4c9afa"},squareRipple:{alignItems:"center",justifyContent:"center",width:150,height:150,backgroundColor:"#4c9afa",marginTop:30,borderRadius:12,overflow:"hidden"},squareRippleWrapper:{alignItems:"flex-start",justifyContent:"center",height:150,marginTop:30},squareRipple1:{alignItems:"center",justifyContent:"center",width:150,height:150,borderWidth:5,borderStyle:"solid",backgroundSize:"cover",borderColor:"#4c9afa",backgroundImage:at,paddingHorizontal:10},squareRipple2:{alignItems:"center",justifyContent:"center",width:150,height:150,paddingHorizontal:10,backgroundSize:"cover",backgroundImage:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}});function dt(){return"ios"===s.Platform.OS?l.a.createElement(s.Text,null,"iOS暂未支持水波纹效果"):l.a.createElement(s.ScrollView,{style:{margin:10,flex:1}},l.a.createElement(s.View,{style:[ut.imgRectangle,{marginTop:20,backgroundImage:at,backgroundSize:"cover"}]},l.a.createElement(ht,{style:[ut.imgRectangle],nativeBackgroundAndroid:{borderless:!0,color:"#666666"}},l.a.createElement(s.Text,{style:{color:"white",maxWidth:200}},"外层背景图,内层无边框水波纹,受外层影响始终有边框"))),l.a.createElement(ht,{style:[ut.circleRipple],nativeBackgroundAndroid:{borderless:!0,color:"#666666",rippleRadius:100}},l.a.createElement(s.Text,{style:{color:"black",textAlign:"center"}},"无边框圆形水波纹")),l.a.createElement(ht,{style:[ut.squareRipple],nativeBackgroundAndroid:{borderless:!1,color:"#666666"}},l.a.createElement(s.Text,{style:{color:"#fff"}},"带背景色水波纹")),l.a.createElement(s.View,{style:[ut.squareRippleWrapper]},l.a.createElement(ht,{style:[ut.squareRipple1],nativeBackgroundAndroid:{borderless:!1,color:"#666666"}},l.a.createElement(s.Text,{style:{color:"white"}},"有边框水波纹,带本地底图效果"))),l.a.createElement(s.View,{style:[ut.squareRippleWrapper]},l.a.createElement(ht,{style:[ut.squareRipple2],nativeBackgroundAndroid:{borderless:!1,color:"#666666"}},l.a.createElement(s.Text,{style:{color:"black"}},"有边框水波纹,带网络底图效果"))))}const mt="#4c9afa",gt="#f44837",ft=s.StyleSheet.create({container:{paddingHorizontal:10},square:{width:80,height:80,backgroundColor:gt},showArea:{height:150,marginVertical:10},button:{borderColor:mt,borderWidth:2,borderStyle:"solid",justifyContent:"center",alignItems:"center",width:70,borderRadius:8,height:50,marginTop:20,marginRight:8},buttonText:{fontSize:20,color:mt,textAlign:"center",textAlignVertical:"center"},colorText:{fontSize:14,color:"white",textAlign:"center",textAlignVertical:"center"},buttonContainer:{flexDirection:"row",alignItems:"center"},title:{fontSize:24,marginTop:8}});class yt extends l.a.Component{constructor(e){super(e),this.state={}}componentWillMount(){this.horizonAnimation=new s.Animation({startValue:150,toValue:20,duration:1e3,delay:500,mode:"timing",timingFunction:"linear",repeatCount:"loop"}),this.verticalAnimation=new s.Animation({startValue:80,toValue:40,duration:1e3,delay:0,mode:"timing",timingFunction:"linear",repeatCount:"loop"}),this.scaleAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:1,toValue:1.2,duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:1.2,toValue:.2,duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.rotateAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:0,toValue:180,duration:2e3,delay:0,valueType:"deg",mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:180,toValue:360,duration:2e3,delay:0,valueType:"deg",mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.skewXAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:0,toValue:20,duration:2e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:20,toValue:0,duration:2e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.skewYAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:0,toValue:20,duration:2e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:20,toValue:0,duration:2e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.bgColorAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:"red",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:"yellow",toValue:"blue",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.txtColorAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:"white",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:"yellow",toValue:"white",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.cubicBezierScaleAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:0,toValue:1,duration:1e3,delay:0,mode:"timing",timingFunction:"cubic-bezier(.45,2.84,.38,.5)"}),follow:!1},{animation:new s.Animation({startValue:1,toValue:0,duration:1e3,mode:"timing",timingFunction:"cubic-bezier(.17,1.45,.78,.14)"}),follow:!0}],repeatCount:"loop"})}componentDidMount(){"web"===s.Platform.OS&&(this.verticalAnimation.setRef(this.verticalRef),this.horizonAnimation.setRef(this.horizonRef),this.scaleAnimationSet.setRef(this.scaleRef),this.bgColorAnimationSet.setRef(this.bgColorRef),this.txtColorAnimationSet.setRef(this.textColorRef),this.txtColorAnimationSet.setRef(this.textColorRef),this.cubicBezierScaleAnimationSet.setRef(this.cubicBezierScaleRef),this.rotateAnimationSet.setRef(this.rotateRef),this.skewXAnimationSet.setRef(this.skewRef),this.skewYAnimationSet.setRef(this.skewRef)),this.horizonAnimation.onAnimationStart(()=>{console.log("on animation start!!!")}),this.horizonAnimation.onAnimationEnd(()=>{console.log("on animation end!!!")}),this.horizonAnimation.onAnimationCancel(()=>{console.log("on animation cancel!!!")}),this.horizonAnimation.onAnimationRepeat(()=>{console.log("on animation repeat!!!")})}componentWillUnmount(){this.horizonAnimation&&this.horizonAnimation.destroy(),this.verticalAnimation&&this.verticalAnimation.destroy(),this.scaleAnimationSet&&this.scaleAnimationSet.destroy(),this.bgColorAnimationSet&&this.bgColorAnimationSet.destroy(),this.txtColorAnimationSet&&this.txtColorAnimationSet.destroy(),this.cubicBezierScaleAnimationSet&&this.cubicBezierScaleAnimationSet.destroy(),this.rotateAnimationSet&&this.rotateAnimationSet.destroy(),this.skewXAnimationSet&&this.skewXAnimationSet.destroy(),this.skewYAnimationSet&&this.skewYAnimationSet.destroy()}render(){return l.a.createElement(s.ScrollView,{style:ft.container},l.a.createElement(s.Text,{style:ft.title},"水平位移动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.horizonAnimation.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.horizonAnimation.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.horizonAnimation.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.horizonAnimation.updateAnimation({startValue:50,toValue:100})}},l.a.createElement(s.Text,{style:ft.buttonText},"更新"))),l.a.createElement(s.View,{style:ft.showArea},l.a.createElement(s.View,{ref:e=>{this.horizonRef=e},style:[ft.square,{transform:[{translateX:this.horizonAnimation}]}]})),l.a.createElement(s.Text,{style:ft.title},"高度形变动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.verticalAnimation.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.verticalAnimation.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.verticalAnimation.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:ft.showArea},l.a.createElement(s.View,{ref:e=>{this.verticalRef=e},style:[ft.square,{height:this.verticalAnimation}]})),l.a.createElement(s.Text,{style:ft.title},"旋转动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.rotateAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.rotateAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.rotateAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:ft.showArea},l.a.createElement(s.View,{ref:e=>{this.rotateRef=e},style:[ft.square,{transform:[{rotate:this.rotateAnimationSet}]}]})),l.a.createElement(s.Text,{style:ft.title},"倾斜动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.skewXAnimationSet.start(),this.skewYAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.skewXAnimationSet.pause(),this.skewYAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.skewXAnimationSet.resume(),this.skewYAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:ft.showArea},l.a.createElement(s.View,{ref:e=>{this.skewRef=e},style:[ft.square,{transform:[{skewX:this.skewXAnimationSet},{skewY:this.skewYAnimationSet}]}]})),l.a.createElement(s.Text,{style:ft.title},"缩放动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.scaleAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.scaleAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.scaleAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:[ft.showArea,{marginVertical:20}]},l.a.createElement(s.View,{ref:e=>{this.scaleRef=e},style:[ft.square,{transform:[{scale:this.scaleAnimationSet}]}]})),l.a.createElement(s.Text,{style:ft.title},"颜色渐变动画(文字渐变仅Android支持)"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.bgColorAnimationSet.start(),this.txtColorAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.bgColorAnimationSet.pause(),this.txtColorAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.bgColorAnimationSet.resume(),this.txtColorAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:[ft.showArea,{marginVertical:20}]},l.a.createElement(s.View,{ref:e=>{this.bgColorRef=e},style:[ft.square,{justifyContent:"center",alignItems:"center"},{backgroundColor:this.bgColorAnimationSet}]},l.a.createElement(s.Text,{ref:e=>{this.textColorRef=e},style:[ft.colorText,{color:"android"===s.Platform.OS?this.txtColorAnimationSet:"white"}]},"颜色渐变背景和文字"))),l.a.createElement(s.Text,{style:ft.title},"贝塞尔曲线动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.cubicBezierScaleAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.cubicBezierScaleAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.cubicBezierScaleAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:[ft.showArea,{marginVertical:20}]},l.a.createElement(s.View,{ref:e=>{this.cubicBezierScaleRef=e},style:[ft.square,{transform:[{scale:this.cubicBezierScaleAnimationSet}]}]})))}}const pt=s.StyleSheet.create({containerStyle:{margin:20,alignItems:"center",flexDirection:"column"},itemGroupStyle:{flexDirection:"row",marginTop:10,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",width:100,height:40,justifyContent:"center",alignItems:"center"},viewGroupStyle:{flexDirection:"row",marginTop:10},infoStyle:{width:60,height:40,fontSize:16,color:"#4c9afa",textAlign:"center"},inputStyle:{width:200,height:40,placeholderTextColor:"#aaaaaa",underlineColorAndroid:"#4c9afa",fontSize:16,color:"#242424",textAlign:"left"},buttonStyle:{textAlign:"center",fontSize:16,color:"#4c9afa",backgroundColor:"#4c9afa11",marginLeft:10,marginRight:10}});class bt extends l.a.Component{constructor(e){super(e),this.state={result:""},this.onTextChangeKey=this.onTextChangeKey.bind(this),this.onTextChangeValue=this.onTextChangeValue.bind(this),this.onClickSet=this.onClickSet.bind(this),this.onTextChangeKey=this.onTextChangeKey.bind(this),this.onClickGet=this.onClickGet.bind(this)}onClickSet(){const{key:e,value:t}=this.state;e&&s.AsyncStorage.setItem(e,t)}onClickGet(){const{key:e}=this.state;e&&s.AsyncStorage.getItem(e).then(e=>{this.setState({result:e})})}onTextChangeKey(e){this.setState({key:e})}onTextChangeValue(e){this.setState({value:e})}render(){const{result:e}=this.state;return l.a.createElement(s.ScrollView,{style:pt.containerStyle},l.a.createElement(s.View,{style:pt.viewGroupStyle},l.a.createElement(s.Text,{style:pt.infoStyle},"Key:"),l.a.createElement(s.TextInput,{style:pt.inputStyle,onChangeText:this.onTextChangeKey})),l.a.createElement(s.View,{style:pt.viewGroupStyle},l.a.createElement(s.Text,{style:pt.infoStyle},"Value:"),l.a.createElement(s.TextInput,{style:pt.inputStyle,onChangeText:this.onTextChangeValue})),l.a.createElement(s.View,{style:pt.itemGroupStyle,onClick:this.onClickSet},l.a.createElement(s.Text,{style:pt.buttonStyle},"Set")),l.a.createElement(s.View,{style:[pt.viewGroupStyle,{marginTop:60}]},l.a.createElement(s.Text,{style:pt.infoStyle},"Key:"),l.a.createElement(s.TextInput,{style:pt.inputStyle,onChangeText:this.onTextChangeKey})),l.a.createElement(s.View,{style:[pt.viewGroupStyle,{display:"none"}]},l.a.createElement(s.Text,{style:pt.infoStyle},"Value:"),l.a.createElement(s.Text,{style:[pt.infoStyle,{width:200}]},e)),l.a.createElement(s.View,{style:pt.itemGroupStyle,onClick:this.onClickGet},l.a.createElement(s.Text,{style:pt.buttonStyle},"Get")))}}const wt=s.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},wrapper:{borderColor:"#eee",borderWidth:1,borderStyle:"solid",paddingHorizontal:10,paddingVertical:5,marginVertical:10,flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start"},infoContainer:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",marginTop:5,marginBottom:5,flexWrap:"wrap"},infoText:{collapsable:!1,marginVertical:5}});class xt extends l.a.Component{constructor(e){super(e),this.state={netInfoStatusTxt:"",netInfoChangeTxt:"",fetchInfoTxt:"",cookies:""},this.listener=null}async fetchNetInfoStatus(){this.setState({netInfoStatusTxt:await s.NetInfo.fetch()})}fetchUrl(){fetch("https://hippyjs.org",{mode:"no-cors"}).then(e=>(this.setState({fetchInfoTxt:"成功状态: "+e.status}),e)).catch(e=>{this.setState({fetchInfoTxt:"收到错误: "+e})})}setCookies(){s.NetworkModule.setCookie("https://hippyjs.org","name=hippy;network=mobile")}getCookies(){s.NetworkModule.getCookies("https://hippyjs.org").then(e=>{this.setState({cookies:e})})}async componentWillMount(){const e=this;this.listener=s.NetInfo.addEventListener("change",t=>{e.setState({netInfoChangeTxt:""+t.network_info})})}componentWillUnmount(){this.listener&&s.NetInfo.removeEventListener("change",this.listener)}componentDidMount(){this.fetchUrl(),this.fetchNetInfoStatus()}render(){const{netInfoStatusTxt:e,fetchInfoTxt:t,netInfoChangeTxt:n,cookies:o}=this.state,r=e=>l.a.createElement(s.View,{style:wt.itemTitle},l.a.createElement(s.Text,null,e));return l.a.createElement(s.ScrollView,{style:{paddingHorizontal:10}},r("Fetch"),l.a.createElement(s.View,{style:[wt.wrapper]},l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10},onClick:()=>this.fetchUrl()},l.a.createElement(s.Text,{style:{color:"white"}},"请求 hippy 网址:")),l.a.createElement(s.Text,{style:wt.infoText},t))),r("NetInfo"),l.a.createElement(s.View,{style:[wt.wrapper]},l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10},onClick:()=>this.fetchNetInfoStatus()},l.a.createElement(s.Text,{style:{color:"white"}},"获取网络状态:")),l.a.createElement(s.Text,{style:wt.infoText},e)),l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10}},l.a.createElement(s.Text,{style:{color:"white"}},"监听网络变化:")),l.a.createElement(s.Text,{style:wt.infoText},n))),r("NetworkModule"),l.a.createElement(s.View,{style:[wt.wrapper]},l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10},onClick:()=>this.setCookies()},l.a.createElement(s.Text,{style:{color:"white"}},"设置Cookies:")),l.a.createElement(s.Text,{style:wt.infoText},"name=hippy;network=mobile")),l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10},onClick:()=>this.getCookies()},l.a.createElement(s.Text,{style:{color:"white"}},"获取Cookies:")),l.a.createElement(s.Text,{style:wt.infoText},o))))}}const St=s.StyleSheet.create({fullScreen:{flex:1},row:{flexDirection:"row"},title:{color:"#ccc"},button:{height:56,backgroundColor:"#4c9afa",borderColor:"#5dabfb",borderStyle:"solid",borderWidth:1,paddingHorizontal:20,fontSize:16,textAlign:"center",lineHeight:56,color:"#fff",margin:10},input:{color:"black",flex:1,height:36,lineHeight:36,fontSize:14,borderBottomColor:"#4c9afa",borderBottomStyle:"solid",borderBottomWidth:1,padding:0},output:{color:"black"}}),Et="wss://echo.websocket.org",Tt="Rock it with Hippy WebSocket";let Ct;var At=function(){const e=Object(a.useRef)(null),t=Object(a.useRef)(null),[n,o]=Object(a.useState)([]),r=e=>{o(t=>[e,...t])};return l.a.createElement(s.View,{style:St.fullScreen},l.a.createElement(s.View,null,l.a.createElement(s.Text,{style:St.title},"Url:"),l.a.createElement(s.TextInput,{ref:e,value:Et,style:St.input}),l.a.createElement(s.View,{style:St.row},l.a.createElement(s.Text,{onClick:()=>{e.current.getValue().then(e=>{Ct&&1===Ct.readyState&&Ct.close(),Ct=new WebSocket(e),Ct.onopen=()=>r("[Opened] "+Ct.url),Ct.onclose=()=>r("[Closed] "+Ct.url),Ct.onerror=e=>r("[Error] "+e.reason),Ct.onmessage=e=>r("[Received] "+e.data)})},style:St.button},"Connect"),l.a.createElement(s.Text,{onClick:()=>Ct.close(),style:St.button},"Disconnect"))),l.a.createElement(s.View,null,l.a.createElement(s.Text,{style:St.title},"Message:"),l.a.createElement(s.TextInput,{ref:t,value:Tt,style:St.input}),l.a.createElement(s.Text,{onClick:()=>t.current.getValue().then(e=>{r("[Sent] "+e),Ct.send(e)}),style:St.button},"Send")),l.a.createElement(s.View,null,l.a.createElement(s.Text,{style:St.title},"Log:"),l.a.createElement(s.ScrollView,{style:St.fullScreen},n.map((e,t)=>l.a.createElement(s.Text,{key:t,style:St.output},e)))))};function vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Rt(e){for(var t=1;t{const e=s.Dimensions.get("screen");({width:t,height:n}=e)});const[o,r]=Object(a.useState)({width:100,height:100,top:10,left:10}),[i,c]=Object(a.useState)({width:0,height:0,x:0,y:0}),h=async(t=!1)=>{try{const n=await s.UIManagerModule.getBoundingClientRect(e.current,{relToContainer:t});c(n)}catch(e){console.error("getBoxPosition error",e)}},u=Rt(Rt({},Vt.box),o);return l.a.createElement(s.View,{style:Vt.full},l.a.createElement(s.View,{style:Vt.demoContent},l.a.createElement(s.View,{ref:e,style:u},l.a.createElement(s.Text,{style:Vt.text,numberOfLines:2},"I am the box"))),l.a.createElement(s.View,{style:Vt.buttonContainer},l.a.createElement(s.View,{onClick:()=>{const e=kt(0,t-100),o=kt(0,n-450),i=kt(80,120);r({left:e,top:o,width:i,height:i})},style:Vt.button},l.a.createElement(s.Text,{style:Vt.buttonText},"Move position")),l.a.createElement(s.View,{onClick:()=>h(!1),style:Vt.button},l.a.createElement(s.Text,{style:Vt.buttonText},"Measure in App Window")),l.a.createElement(s.View,{onClick:()=>h(!0),style:Vt.button},l.a.createElement(s.Text,{style:Vt.buttonText},"Measure in Container(RootView)"))),l.a.createElement(s.View,{style:Vt.row},l.a.createElement(s.View,null,l.a.createElement(s.Text,null,"Box style:"),l.a.createElement(s.Text,{style:Vt.black},"Width: "+u.width),l.a.createElement(s.Text,{style:Vt.black},"Height: "+u.height),l.a.createElement(s.Text,{style:Vt.black},"Left: "+u.left),l.a.createElement(s.Text,{style:Vt.black},"Top: "+u.top)),l.a.createElement(s.View,null,l.a.createElement(s.Text,null,"getBoundingClientRect output:"),l.a.createElement(s.Text,{style:Vt.black},"Width: "+i.width),l.a.createElement(s.Text,{style:Vt.black},"Height: "+i.height),l.a.createElement(s.Text,{style:Vt.black},"X: "+i.x),l.a.createElement(s.Text,{style:Vt.black},"Y: "+i.y))))};const Ot=s.StyleSheet.create({style_indicator_item:{width:4,height:4,marginLeft:2.5,marginRight:2.5,borderRadius:2},style_indicator:{position:"absolute",bottom:6,left:0,right:0,marginLeft:0,marginRight:0,alignItems:"center",justifyContent:"center",flexDirection:"row"}});class Dt extends l.a.Component{constructor(e){super(e),this.state={current:e.current||0}}update(e){const{current:t}=this.state;t!==e&&this.setState({current:e})}render(){const{count:e}=this.props,{current:t}=this.state,n=[];for(let o=0;o=r||(this.indicator&&this.indicator.update(o),this.currentIndex=o)}onScrollBeginDrag(){this.touchStartOffset=this.scrollOffset,this.doClearTimer()}onScrollEndDrag(){this.doCreateTimer()}onLayout(e){this.width=e.layout.width}doSwitchPage(e){this.scrollView.scrollTo({x:this.imgWidth*e,y:0,animated:!0})}doCreateTimer(){this.doClearTimer(),this.duration<=0||(this.interval=setInterval(()=>{this.doSwitchPage((this.currentIndex+1)%this.itemCount)},this.duration))}doClearTimer(){this.interval&&clearInterval(this.interval),this.interval=null}render(){const{images:e}=this.props,t=[];for(let n=0;n{this.scrollView=e}},t),l.a.createElement(Dt,{ref:e=>{this.indicator=e},count:this.itemCount}))}}_()(Pt,"defaultProps",{duration:0,currentPage:0,images:[]});const jt=["https://user-images.githubusercontent.com/12878546/148736627-bca54707-6939-45b3-84f7-74e6c2c09c88.jpg","https://user-images.githubusercontent.com/12878546/148736679-0521fdff-09f5-40e3-a36a-55c8f714be16.jpg","https://user-images.githubusercontent.com/12878546/148736685-a4c226ad-f64a-4fe0-b3df-ce0d8fcd7a01.jpg"],Lt=s.StyleSheet.create({sliderStyle:{width:400,height:180},infoStyle:{height:40,fontSize:16,color:"#4c9afa",marginTop:15}});function Mt(){return l.a.createElement(s.ScrollView,null,l.a.createElement(s.Text,{style:Lt.infoStyle},"Auto:"),l.a.createElement(Pt,{style:Lt.sliderStyle,images:jt,duration:1e3}),l.a.createElement(s.Text,{style:Lt.infoStyle},"Manual:"),l.a.createElement(Pt,{style:Lt.sliderStyle,images:jt,duration:0}))}const Bt=s.StyleSheet.create({container:{height:45,paddingLeft:4,flexDirection:"row",backgroundColor:"#ffffff",borderBottomColor:"#E5E5E5",borderBottomWidth:1,borderStyle:"solid"},scroll:{flex:1,height:44},navItem:{width:60,height:44,paddingTop:13},navItemText:{fontSize:16,lineHeight:17,textAlign:"center",backgroundColor:"#ffffff"},navItemTextNormal:{color:"#666666"},navItemTextBlue:{color:"#2D73FF"}});class zt extends l.a.Component{constructor(e){super(e),this.state={curIndex:0,navList:["头条","推荐","圈子","NBA","中超","英超","西甲","CBA","澳网","电影","本地","娱乐","小说","生活","直播","游戏"]},this.navScrollView=null,this.viewPager=null,this.onViewPagerChange=this.onViewPagerChange.bind(this),this.pressNavItem=this.pressNavItem.bind(this),this.scrollSV=this.scrollSV.bind(this)}static getPage(e,t){switch(t%3){case 0:return qe(e);case 1:return Ye(e);case 2:return Qe(e);default:return null}}componentDidUpdate(){this.scrollSV()}onViewPagerChange({position:e}){this.setState({curIndex:e})}scrollSV(){if(this.navScrollView){const{curIndex:e,navList:t}=this.state,n=t.length,o=de.getScreenWidth(),r=o/2/60,i=60*nn-r?60*n-o:60*e-60*r+30,this.navScrollView.scrollTo({x:a,y:0,animated:!0})}}pressNavItem(e){this.setState({curIndex:e}),this.viewPager&&this.viewPager.setPage(e)}renderNav(){const{navList:e,curIndex:t}=this.state;return l.a.createElement(s.View,{style:Bt.container},l.a.createElement(s.ScrollView,{style:Bt.scroll,horizontal:!0,showsHorizontalScrollIndicator:!1,ref:e=>{this.navScrollView=e}},e.map((e,n)=>l.a.createElement(s.View,{style:Bt.navItem,key:"nav_"+e,activeOpacity:.5,onClick:()=>this.pressNavItem(n)},l.a.createElement(s.Text,{style:[Bt.navItemText,t===n?Bt.navItemTextBlue:Bt.navItemTextNormal],numberOfLines:1},e)))))}render(){const{navList:e}=this.state;return l.a.createElement(s.View,{style:{flex:1,backgroundColor:"#ffffff"}},this.renderNav(),l.a.createElement(s.ViewPager,{ref:e=>{this.viewPager=e},style:{flex:1},initialPage:0,onPageSelected:this.onViewPagerChange},e.map((e,t)=>zt.getPage(e,t))))}}const{width:Ft}=s.Dimensions.get("window"),Ht=s.StyleSheet.create({setNativePropsDemo:{display:"flex",alignItems:"center",position:"relative"},nativeDemo1Drag:{height:80,width:Ft,backgroundColor:"#4c9afa",position:"relative",marginTop:10},nativeDemo1Point:{height:80,width:80,color:"#4cccfa",backgroundColor:"#4cccfa",position:"absolute",left:0},nativeDemo2Drag:{height:80,width:Ft,backgroundColor:"#4c9afa",position:"relative",marginTop:10},nativeDemo2Point:{height:80,width:80,color:"#4cccfa",backgroundColor:"#4cccfa",position:"absolute",left:0},splitter:{marginTop:50}});class _t extends l.a.Component{constructor(e){super(e),this.demon1Point=l.a.createRef(),this.demo1PointDom=null,this.state={demo2Left:0},this.isDemon1Layouted=!1,this.idDemon2Layouted=!1,this.onTouchDown1=this.onTouchDown1.bind(this),this.onDemon1Layout=this.onDemon1Layout.bind(this),this.onTouchMove1=this.onTouchMove1.bind(this),this.onTouchDown2=this.onTouchDown2.bind(this),this.onTouchMove2=this.onTouchMove2.bind(this)}componentDidMount(){}onDemon1Layout(){this.isDemon1Layouted||(this.isDemon1Layouted=!0,this.demo1PointDom=s.UIManagerModule.getElementFromFiberRef(this.demon1Point.current))}onTouchDown1(e){const{page_x:t}=e,n=t-40;console.log("touchdown x",t,n,Ft),this.demo1PointDom&&this.demo1PointDom.setNativeProps({style:{left:n}})}onTouchMove1(e){const{page_x:t}=e,n=t-40;console.log("touchmove x",t,n,Ft),this.demo1PointDom&&this.demo1PointDom.setNativeProps({style:{left:n}})}onTouchDown2(e){const{page_x:t}=e,n=t-40;console.log("touchdown x",t,n,Ft),this.setState({demo2Left:n})}onTouchMove2(e){const{page_x:t}=e,n=t-40;console.log("touchmove x",t,n,Ft),this.setState({demo2Left:n})}render(){const{demo2Left:e}=this.state;return l.a.createElement(s.View,{style:Ht.setNativePropsDemo},l.a.createElement(s.Text,null,"setNativeProps实现拖动效果"),l.a.createElement(s.View,{style:Ht.nativeDemo1Drag,onTouchDown:this.onTouchDown1,onTouchMove:this.onTouchMove1},l.a.createElement(s.View,{onLayout:this.onDemon1Layout,style:Ht.nativeDemo1Point,ref:this.demon1Point})),l.a.createElement(s.View,{style:Ht.splitter}),l.a.createElement(s.Text,null,"普通渲染实现拖动效果"),l.a.createElement(s.View,{style:Ht.nativeDemo2Drag,onTouchDown:this.onTouchDown2,onTouchMove:this.onTouchMove2},l.a.createElement(s.View,{style:[Ht.nativeDemo2Point,{left:e}]})))}}const Nt=s.StyleSheet.create({dynamicImportDemo:{marginTop:20,display:"flex",flex:1,alignItems:"center",position:"relative",flexDirection:"column"}});class Wt extends l.a.Component{constructor(e){super(e),this.state={AsyncComponentFromLocal:null,AsyncComponentFromHttp:null},this.onAsyncComponentLoad=this.onAsyncComponentLoad.bind(this)}onAsyncComponentLoad(){console.log("load async component"),n.e(1).then(n.bind(null,"./src/externals/DyanmicImport/AsyncComponentLocal.jsx")).then(e=>{this.setState({AsyncComponentFromLocal:e.default||e})}).catch(e=>console.error("import async local component error",e)),n.e(0).then(n.bind(null,"./src/externals/DyanmicImport/AsyncComponentHttp.jsx")).then(e=>{this.setState({AsyncComponentFromHttp:e.default||e})}).catch(e=>console.error("import async remote component error",e))}render(){const{AsyncComponentFromLocal:e,AsyncComponentFromHttp:t}=this.state;return l.a.createElement(s.View,{style:Nt.dynamicImportDemo},l.a.createElement(s.View,{style:{width:130,height:40,textAlign:"center",backgroundColor:"#4c9afa",borderRadius:5},onTouchDown:this.onAsyncComponentLoad},l.a.createElement(s.Text,{style:{height:40,lineHeight:40,textAlign:"center"}},"点我异步加载")),l.a.createElement(s.View,{style:{marginTop:20}},e?l.a.createElement(e,null):null,t?l.a.createElement(t,null):null))}}const Kt=s.StyleSheet.create({LocalizationDemo:{marginTop:20,display:"flex",flex:1,alignItems:"center",position:"relative",flexDirection:"column"}});class Ut extends l.a.Component{render(){const{country:e,language:t,direction:n}=s.Platform.Localization||{};return l.a.createElement(s.View,{style:Kt.LocalizationDemo},l.a.createElement(s.View,{style:{height:40,textAlign:"center",backgroundColor:"#4c9afa",borderRadius:5},onTouchDown:this.onAsyncComponentLoad},l.a.createElement(s.Text,{style:{color:"white",marginHorizontal:30,height:40,lineHeight:40,textAlign:"center"}},`国际化相关信息:国家 ${e} | 语言 ${t} | 方向 ${1===n?"RTL":"LTR"}`)))}}const Gt=()=>getTurboModule("demoTurbo").getTurboConfig(),qt=s.StyleSheet.create({container:{flex:1},cellContentView:{flexDirection:"row",justifyContent:"space-between",backgroundColor:"#ccc",marginBottom:1},funcInfo:{justifyContent:"center",paddingLeft:15,paddingRight:15},actionButton:{backgroundColor:"#4c9afa",color:"#fff",height:44,lineHeight:44,textAlign:"center",width:80,borderRadius:6},resultView:{backgroundColor:"darkseagreen",minHeight:150,padding:15}});class Qt extends l.a.Component{constructor(e){super(e),this.state={config:null,result:"",funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"]},this.onTurboFunc=this.onTurboFunc.bind(this),this.getRenderRow=this.getRenderRow.bind(this),this.getRowKey=this.getRowKey.bind(this)}async onTurboFunc(e){let t;if("nativeWithPromise"===e)t=await(async e=>turboPromise(getTurboModule("demoTurbo").nativeWithPromise)(e))("aaa");else if("getTurboConfig"===e)this.config=Gt(),t="获取到config对象";else if("printTurboConfig"===e)n=this.config||Gt(),t=getTurboModule("demoTurbo").printTurboConfig(n);else if("getInfo"===e)t=(this.config||Gt()).getInfo();else if("setInfo"===e)(this.config||Gt()).setInfo("Hello World"),t="设置config信息成功";else{t={getString:()=>{return e="123",getTurboModule("demoTurbo").getString(e);var e},getNum:()=>{return e=1024,getTurboModule("demoTurbo").getNum(e);var e},getBoolean:()=>{return e=!0,getTurboModule("demoTurbo").getBoolean(e);var e},getMap:()=>{return e=new Map([["a","1"],["b",2]]),getTurboModule("demoTurbo").getMap(e);var e},getObject:()=>{return e={c:"3",d:"4"},getTurboModule("demoTurbo").getObject(e);var e},getArray:()=>{return e=["a","b","c"],getTurboModule("demoTurbo").getArray(e);var e}}[e]()}var n;this.setState({result:t})}renderResultView(){return l.a.createElement(s.View,{style:qt.resultView},l.a.createElement(s.Text,{style:{backgroundColor:"darkseagreen"}},""+this.state.result))}getRenderRow(e){const{funList:t}=this.state;return l.a.createElement(s.View,{style:qt.cellContentView},l.a.createElement(s.View,{style:qt.funcInfo},l.a.createElement(s.Text,{numberofLines:0},"函数名:",t[e])),l.a.createElement(s.Text,{style:qt.actionButton,onClick:()=>this.onTurboFunc(t[e])},"执行"))}getRowKey(e){const{funList:t}=this.state;return t[e]}render(){const{funList:e}=this.state;return l.a.createElement(s.View,{style:qt.container},this.renderResultView(),l.a.createElement(s.ListView,{numberOfRows:e.length,renderRow:this.getRenderRow,getRowKey:this.getRowKey,style:{flex:1}}))}}const Yt=s.StyleSheet.create({demoWrap:{horizontal:!1,flex:1,flexDirection:"column"},banner:{backgroundImage:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",backgroundSize:"cover",height:150,justifyContent:"flex-end"},bannerText:{color:"coral",textAlign:"center"},tabs:{flexDirection:"row",height:30},tabText:{flex:1,textAlign:"center",backgroundColor:"#eee",color:"#999"},tabSelected:{flex:1,textAlign:"center",color:"#4c9afa"},itemEven:{height:40,backgroundColor:"gray"},itemEvenText:{lineHeight:40,color:"white",fontSize:20,textAlign:"center"},itemOdd:{height:40},itemOddText:{lineHeight:40,fontSize:20,textAlign:"center"}});class Xt extends l.a.Component{constructor(e){super(e),this.state={layoutHeight:0,currentSlide:0}}selectPage(e){var t;this.setState({currentSlide:e}),null===(t=this.viewPager)||void 0===t||t.setPage(e)}render(){const{layoutHeight:e,currentSlide:t}=this.state;return l.a.createElement(s.ScrollView,{style:Yt.demoWrap,scrollEventThrottle:50,onLayout:e=>this.setState({layoutHeight:e.layout.height})},l.a.createElement(s.View,{style:Yt.banner}),l.a.createElement(s.View,{style:Yt.tabs},l.a.createElement(s.Text,{key:"tab1",style:0===t?Yt.tabSelected:Yt.tabText,onClick:()=>this.selectPage(0)},"tab 1 (parent first)"),l.a.createElement(s.Text,{key:"tab2",style:1===t?Yt.tabSelected:Yt.tabText,onClick:()=>this.selectPage(1)},"tab 2 (self first)")),l.a.createElement(s.ViewPager,{ref:e=>this.viewPager=e,initialPage:t,style:{height:e-80},onPageSelected:e=>this.setState({currentSlide:e.position})},l.a.createElement(s.ListView,{nestedScrollTopPriority:"parent",key:"slide1",numberOfRows:30,getRowKey:e=>"item"+e,initialListSize:30,renderRow:e=>l.a.createElement(s.Text,{style:e%2?Yt.itemEvenText:Yt.itemOddText},"Item ",e),getRowStyle:e=>e%2?Yt.itemEven:Yt.itemOdd}),l.a.createElement(s.ListView,{nestedScrollTopPriority:"self",key:"slide2",numberOfRows:30,getRowKey:e=>"item"+e,initialListSize:30,renderRow:e=>l.a.createElement(s.Text,{style:e%2?Yt.itemEvenText:Yt.itemOddText},"Item ",e),getRowStyle:e=>e%2?Yt.itemEven:Yt.itemOdd})))}}function Jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Zt(e){for(var t=1;t 组件",component:$t.View,meta:{type:en.COMPONENT}},{path:"/Text",name:" 组件",component:$t.Text,meta:{type:en.COMPONENT}},{path:"/Image",name:" 组件",component:$t.Image,meta:{type:en.COMPONENT}},{path:"/ListView",name:" 组件",component:$t.ListView,meta:{type:en.COMPONENT}},{path:"/WaterfallView",name:" 组件",component:$t.WaterfallView,meta:{type:en.COMPONENT}},{path:"/PullHeader",name:" 组件",component:$t.PullHeaderFooter,meta:{type:en.COMPONENT}},{path:"/RefreshWrapper",name:" 组件",component:$t.RefreshWrapper,meta:{type:en.COMPONENT}},{path:"/ScrollView",name:" 组件",component:$t.ScrollView,meta:{type:en.COMPONENT}},{path:"/ViewPager",name:" 组件",component:$t.ViewPager,meta:{type:en.COMPONENT}},{path:"/TextInput",name:" 组件",component:$t.TextInput,meta:{type:en.COMPONENT}},{path:"/Modal",name:" 组件",component:$t.Modal,meta:{type:en.COMPONENT}},{path:"/Slider",name:" 组件",component:$t.Slider,meta:{type:en.COMPONENT}},{path:"/TabHost",name:" 组件",component:$t.TabHost,meta:{type:en.COMPONENT}},{path:"/WebView",name:" 组件",component:$t.WebView,meta:{type:en.COMPONENT}},{path:"/RippleViewAndroid",name:" 组件",component:$t.RippleViewAndroid,meta:{type:en.COMPONENT}},{path:"/Moduels",name:"Modules",meta:{type:en.TITLE,mapType:en.MODULE}},{path:"/Animation",name:"Animation 模块",component:$t.Animation,meta:{type:en.MODULE}},{path:"/WebSocket",name:"WebSocket 模块",component:$t.WebSocket,meta:{type:en.MODULE}},{path:"/NetInfo",name:"Network 模块",component:$t.NetInfo,meta:{type:en.MODULE}},{path:"/UIManagerModule",name:"UIManagerModule 模块",component:$t.UIManagerModule,meta:{type:en.MODULE}},{path:"/Others",name:"Others",meta:{type:en.TITLE,mapType:en.OTHER}},{path:"/NestedScroll",name:"NestedScroll 范例",component:$t.NestedScroll,meta:{type:en.OTHER}},{path:"/BoxShadow",name:"BoxShadow 范例",component:$t.BoxShadow,meta:{type:en.OTHER}},{path:"/SetNativeProps",name:"setNativeProps 范例",component:$t.SetNativeProps,meta:{type:en.OTHER}},{path:"/DynamicImport",name:"DynamicImport 范例",component:$t.DynamicImport,meta:{type:en.OTHER}},{path:"/Localization",name:"Localization 范例",component:$t.Localization,meta:{type:en.OTHER}},{path:"/Turbo",name:"Turbo 范例",component:$t.Turbo,meta:{type:en.OTHER}}],nn="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";const on="#1E304A",rn=s.StyleSheet.create({container:{marginTop:20,marginBottom:12,height:24,flexDirection:"row",alignItems:"center",justifyContent:"space-between"},backIcon:{tintColor:on,width:15,height:15},headerButton:{height:24,alignItems:"center",justifyContent:"center"},title:{fontSize:16,color:on,lineHeight:16}});var an=F(({history:e,route:t})=>0===e.index?l.a.createElement(s.View,{style:[rn.container]},l.a.createElement(s.View,null,l.a.createElement(s.Text,{numberOfLines:1,style:[rn.title]},t.name)),l.a.createElement(s.View,{style:rn.headerButton},l.a.createElement(s.Text,{numberOfLines:1,style:rn.title},"unspecified"!==s.default.version?""+s.default.version:"master"))):l.a.createElement(s.View,{style:[rn.container]},l.a.createElement(s.View,{onClick:()=>e.goBack(),style:[rn.headerButton]},l.a.createElement(s.Image,{style:rn.backIcon,source:{uri:nn}})),l.a.createElement(s.View,{style:rn.headerButton},l.a.createElement(s.Text,{numberOfLines:1,style:rn.title},t.name))));function ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function sn(e){for(var t=1;t{t[en[e]]=!1}),this.state={pressItem:"",dataSource:[...tn],typeVisibleState:t},this.renderRow=this.renderRow.bind(this),this.getRowType=this.getRowType.bind(this),this.getRowKey=this.getRowKey.bind(this),this.clickTo=this.clickTo.bind(this),this.clickToggle=this.clickToggle.bind(this)}componentDidMount(){const{history:e}=this.props;"android"===s.Platform.OS&&s.BackAndroid.addListener(()=>(console.log("BackAndroid"),0!==e.index&&(e.goBack(),!0)))}getRowType(e){const{dataSource:t}=this.state;return t[e].meta.type}getRowKey(e){const{dataSource:t}=this.state;return t[e].path||""+e}feedback(e){const t=e||"";this.setState({pressItem:t})}clickTo(e){const{history:t}=this.props;t.push(e)}clickToggle(e){this.setState({typeVisibleState:sn(sn({},this.state.typeVisibleState),{},{[e]:!this.state.typeVisibleState[e]})})}renderRow(e){const{dataSource:t,pressItem:n,typeVisibleState:o}=this.state,r=t[e],{type:i}=r.meta;if(i===en.TITLE){const{mapType:e}=r.meta;return l.a.createElement(s.View,{style:[cn.typeContainer,o[e]?{borderBottomLeftRadius:0,borderBottomRightRadius:0}:{borderBottomLeftRadius:4,borderBottomRightRadius:4}],onClick:()=>this.clickToggle(e)},l.a.createElement(s.Text,{style:cn.typeText},r.name),l.a.createElement(s.Image,{style:[cn.arrowIcon,o[e]?{transform:[{rotate:"-90deg"}]}:{transform:[{rotate:"180deg"}]}],source:{uri:nn}}))}let a=!1;const c=t[e+1],h=t.length-1;return(c&&c.meta.type===en.TITLE||e===h)&&(a=!0),l.a.createElement(s.View,{style:o[i]?{display:"flex"}:{display:"none"}},l.a.createElement(s.View,{onPressIn:()=>this.feedback(r.path),onPressOut:()=>this.feedback(),onClick:()=>this.clickTo(r.path),style:[cn.buttonView,{opacity:n===r.path?.5:1}]},l.a.createElement(s.Text,{style:cn.buttonText},r.name)),a?null:l.a.createElement(s.View,{style:cn.separatorLine}))}render(){const{dataSource:e}=this.state;return l.a.createElement(s.ListView,{style:{flex:1},numberOfRows:e.length,renderRow:this.renderRow,getRowType:this.getRowType,getRowKey:this.getRowKey,paintType:"fcp"})}}const un=[{path:"/Gallery",name:"Hippy React",component:F(hn)},...tn];var dn=()=>l.a.createElement(s.View,{style:{flex:1}},l.a.createElement(k,{initialEntries:["/Gallery"]},un.map(e=>{const t=e.component;return l.a.createElement(P,{key:e.path,exact:!0,path:""+e.path},l.a.createElement(s.View,{style:{flex:1}},l.a.createElement(an,{route:e}),l.a.createElement(t,null)))})));const mn={container:{flex:1,paddingHorizontal:16,backgroundColor:"#E5E5E5"}};class gn extends a.Component{render(){const{children:e}=this.props;return l.a.createElement(s.View,{style:mn.container,onLayout:this.onLayout},e)}}class fn extends a.Component{componentDidMount(){s.ConsoleModule.log("~~~~~~~~~~~~~~~~~ This is a log from ConsoleModule ~~~~~~~~~~~~~~~~~")}render(){return l.a.createElement(gn,null,l.a.createElement(dn,null))}}},"./src/main.js":function(e,t,n){"use strict";n.r(t),function(e){var t=n("../../packages/hippy-react/dist/index.js"),o=n("./src/app.jsx");e.Hippy.on("uncaughtException",e=>{console.error("uncaughtException error",e.stack,e.message)}),e.Hippy.on("unhandledRejection",e=>{console.error("unhandledRejection reason",e)}),new t.Hippy({appName:"Demo",entryPage:o.a,bubbles:!1,silent:!1}).start()}.call(this,n("./node_modules/webpack/buildin/global.js"))},0:function(e,t,n){n("./node_modules/regenerator-runtime/runtime.js"),e.exports=n("./src/main.js")},"dll-reference hippyReactBase":function(e,t){e.exports=hippyReactBase}}); \ No newline at end of file + */var o="function"==typeof Symbol&&Symbol.for,r=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,a=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,s=o?Symbol.for("react.profiler"):60114,c=o?Symbol.for("react.provider"):60109,h=o?Symbol.for("react.context"):60110,u=o?Symbol.for("react.async_mode"):60111,d=o?Symbol.for("react.concurrent_mode"):60111,m=o?Symbol.for("react.forward_ref"):60112,g=o?Symbol.for("react.suspense"):60113,f=o?Symbol.for("react.suspense_list"):60120,y=o?Symbol.for("react.memo"):60115,p=o?Symbol.for("react.lazy"):60116,b=o?Symbol.for("react.block"):60121,w=o?Symbol.for("react.fundamental"):60117,x=o?Symbol.for("react.responder"):60118,S=o?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case a:case s:case l:case g:return e;default:switch(e=e&&e.$$typeof){case h:case m:case p:case y:case c:return e;default:return t}}case i:return t}}}function T(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=h,t.ContextProvider=c,t.Element=r,t.ForwardRef=m,t.Fragment=a,t.Lazy=p,t.Memo=y,t.Portal=i,t.Profiler=s,t.StrictMode=l,t.Suspense=g,t.isAsyncMode=function(e){return T(e)||E(e)===u},t.isConcurrentMode=T,t.isContextConsumer=function(e){return E(e)===h},t.isContextProvider=function(e){return E(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===m},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===p},t.isMemo=function(e){return E(e)===y},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===l},t.isSuspense=function(e){return E(e)===g},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===s||e===l||e===g||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===y||e.$$typeof===c||e.$$typeof===h||e.$$typeof===m||e.$$typeof===w||e.$$typeof===x||e.$$typeof===S||e.$$typeof===b)},t.typeOf=E},"./node_modules/react-is/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/react-is/cjs/react-is.production.min.js")},"./node_modules/react/index.js":function(e,t,n){e.exports=n("dll-reference hippyReactBase")("./node_modules/react/index.js")},"./node_modules/regenerator-runtime/runtime.js":function(e,t,n){var o=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new A(r||[]);return o(a,"_invoke",{value:S(e,n,l)}),a}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function m(){}function g(){}var f={};s(f,i,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(v([])));p&&p!==t&&n.call(p,i)&&(f=p);var b=g.prototype=d.prototype=Object.create(f);function w(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){var r;o(this,"_invoke",{value:function(o,i){function a(){return new t((function(r,a){!function o(r,i,a,l){var s=h(e[r],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}})}function S(e,t,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return R()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var l=E(a,n);if(l){if(l===u)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var s=h(e,t,n);if("normal"===s.type){if(o=n.done?"completed":"suspendedYield",s.arg===u)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o="completed",n.method="throw",n.arg=s.arg)}}}function E(e,t){var n=t.method,o=e.iterator[n];if(void 0===o)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),u;var r=h(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function v(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;C(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:v(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=o}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}},"./node_modules/webpack/buildin/global.js":function(e,t,n){e.exports=n("dll-reference hippyReactBase")("./node_modules/webpack/buildin/global.js")},"./src/app.jsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return fn}));var o={};n.r(o),n.d(o,"Focusable",(function(){return W})),n.d(o,"Image",(function(){return q})),n.d(o,"ListView",(function(){return $})),n.d(o,"Modal",(function(){return re})),n.d(o,"RefreshWrapper",(function(){return Re})),n.d(o,"PullHeaderFooter",(function(){return ke})),n.d(o,"ScrollView",(function(){return Oe})),n.d(o,"Text",(function(){return Be})),n.d(o,"TextInput",(function(){return Fe})),n.d(o,"View",(function(){return _e})),n.d(o,"ViewPager",(function(){return Je})),n.d(o,"WebView",(function(){return $e})),n.d(o,"BoxShadow",(function(){return nt})),n.d(o,"WaterfallView",(function(){return it})),n.d(o,"RippleViewAndroid",(function(){return dt}));var r={};n.r(r),n.d(r,"Animation",(function(){return yt})),n.d(r,"AsyncStorage",(function(){return bt})),n.d(r,"NetInfo",(function(){return xt})),n.d(r,"WebSocket",(function(){return At})),n.d(r,"UIManagerModule",(function(){return It}));var i={};n.r(i),n.d(i,"Slider",(function(){return Bt})),n.d(i,"TabHost",(function(){return Ft})),n.d(i,"SetNativeProps",(function(){return _t})),n.d(i,"DynamicImport",(function(){return Nt})),n.d(i,"Localization",(function(){return Ut})),n.d(i,"Turbo",(function(){return Qt})),n.d(i,"NestedScroll",(function(){return Xt}));var a=n("./node_modules/react/index.js"),l=n.n(a),s=n("../../packages/hippy-react/dist/index.js"),c=n("./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0;h--){var m=r[h];"."===m?d(r,h):".."===m?(d(r,h),c++):c&&(d(r,h),c--)}if(!l)for(;c--;c)r.unshift("..");!l||""===r[0]||r[0]&&u(r[0])||r.unshift("");var g=r.join("/");return n&&"/"!==g.substr(-1)&&(g+="/"),g};var g="Invariant failed";function f(e,t){if(!e)throw new Error(g)}function y(e){var t=e.pathname,n=e.search,o=e.hash,r=t||"/";return n&&"?"!==n&&(r+="?"===n.charAt(0)?n:"?"+n),o&&"#"!==o&&(r+="#"===o.charAt(0)?o:"#"+o),r}function p(e,t,n,o){var r;"string"==typeof e?(r=function(e){var t=e||"/",n="",o="",r=t.indexOf("#");-1!==r&&(o=t.substr(r),t=t.substr(0,r));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===o?"":o}}(e)).state=t:(void 0===(r=h({},e)).pathname&&(r.pathname=""),r.search?"?"!==r.search.charAt(0)&&(r.search="?"+r.search):r.search="",r.hash?"#"!==r.hash.charAt(0)&&(r.hash="#"+r.hash):r.hash="",void 0!==t&&void 0===r.state&&(r.state=t));try{r.pathname=decodeURI(r.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+r.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(r.key=n),o?r.pathname?"/"!==r.pathname.charAt(0)&&(r.pathname=m(r.pathname,o.pathname)):r.pathname=o.pathname:r.pathname||(r.pathname="/"),r}function b(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,o,r){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof o?o(i,r):r(!0):r(!1!==i)}else r(!0)},appendListener:function(e){var n=!0;function o(){n&&e.apply(void 0,arguments)}return t.push(o),function(){n=!1,t=t.filter((function(e){return e!==o}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),o=0;ot?n.splice(t,n.length-t,o):n.push(o),u({action:"PUSH",location:o,index:t,entries:n})}}))},replace:function(e,t){var o=p(e,t,d(),S.location);c.confirmTransitionTo(o,"REPLACE",n,(function(e){e&&(S.entries[S.index]=o,u({action:"REPLACE",location:o}))}))},go:x,goBack:function(){x(-1)},goForward:function(){x(1)},canGo:function(e){var t=S.index+e;return t>=0&&t=0)continue;n[o]=e[o]}return n}var A=n("./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"),v=n.n(A),R=function(e){var t=Object(S.a)();return t.displayName=e,t}("Router"),V=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(c.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return l.a.createElement(R.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(l.a.Component);var k=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;rthis.onClick(e),requestFocus:0===e,focusStyle:{backgroundColor:"red"},noFocusStyle:{backgroundColor:"blue"}},l.a.createElement(s.Text,{style:{color:"white"}},t===e?"我被点击了"+e:"没有被点击"+e)))}render(){return l.a.createElement(s.ScrollView,null,this.getRenderRow(0),this.getRenderRow(1),this.getRenderRow(2),this.getRenderRow(3),this.getRenderRow(4),this.getRenderRow(5),this.getRenderRow(6),this.getRenderRow(7),this.getRenderRow(8),this.getRenderRow(9),this.getRenderRow(10),this.getRenderRow(11),this.getRenderRow(12),this.getRenderRow(13),this.getRenderRow(14),this.getRenderRow(15),this.getRenderRow(16),this.getRenderRow(17),this.getRenderRow(18))}}var N=n.p+"assets/defaultSource.jpg",K=n.p+"assets/hippyLogoWhite.png";const U="https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",G=s.StyleSheet.create({container_style:{alignItems:"center"},image_style:{width:300,height:180,margin:16,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",borderRadius:4},info_style:{marginTop:15,marginLeft:16,fontSize:16,color:"#4c9afa"},img_result:{width:300,marginTop:-15,marginLeft:16,fontSize:16,color:"#4c9afa",borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",borderRadius:4}});class q extends l.a.Component{constructor(e){super(e),this.state={gifLoadResult:{}}}render(){const{width:e,height:t,url:n}=this.state.gifLoadResult;return l.a.createElement(s.ScrollView,{style:G.container_style},l.a.createElement(s.Text,{style:G.info_style},"Contain:"),l.a.createElement(s.Image,{style:[G.image_style],resizeMode:s.Image.resizeMode.contain,defaultSource:N,source:{uri:U},onProgress:e=>{console.log("onProgress",e)},onLoadStart:()=>{console.log("image onloadStart")},onLoad:()=>{console.log("image onLoad")},onError:e=>{console.log("image onError",e)},onLoadEnd:()=>{console.log("image onLoadEnd")}}),l.a.createElement(s.Text,{style:G.info_style},"Cover:"),l.a.createElement(s.Image,{style:[G.image_style],defaultSource:N,source:{uri:U},resizeMode:s.Image.resizeMode.cover}),l.a.createElement(s.Text,{style:G.info_style},"Center:"),l.a.createElement(s.Image,{style:[G.image_style],defaultSource:N,source:{uri:U},resizeMode:s.Image.resizeMode.center}),l.a.createElement(s.Text,{style:G.info_style},"CapInsets:"),l.a.createElement(s.Image,{style:[G.image_style],defaultSource:N,source:{uri:U},capInsets:{top:50,left:50,bottom:50,right:50},resizeMode:s.Image.resizeMode.cover}),l.a.createElement(s.Text,{style:G.info_style},"TintColor:"),l.a.createElement(s.Image,{style:[G.image_style,{tintColor:"#4c9afa99"}],defaultSource:N,source:{uri:K},resizeMode:s.Image.resizeMode.center}),l.a.createElement(s.Text,{style:G.info_style},"Cover GIF:"),l.a.createElement(s.Image,{style:[G.image_style],resizeMode:s.Image.resizeMode.cover,defaultSource:N,source:{uri:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif"},onLoad:e=>{console.log("gif onLoad result: "+e);const{width:t,height:n,url:o}=e;this.setState({gifLoadResult:{width:t,height:n,url:o}})}}),l.a.createElement(s.Text,{style:G.img_result},`gifLoadResult: { width: ${e}, height: ${t}, url: ${n} }`))}}const Q=[{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}],Y=s.StyleSheet.create({container:{backgroundColor:"#fff",collapsable:!1},itemContainer:{padding:12},separatorLine:{marginLeft:12,marginRight:12,height:1,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}});function X({index:e}){return l.a.createElement(s.View,{style:Y.container,onClickCapture:e=>{console.log("onClickCapture style1",e.target.nodeId,e.currentTarget.nodeId)},onTouchDown:e=>(e.stopPropagation(),console.log("onTouchDown style1",e.target.nodeId,e.currentTarget.nodeId),!1),onClick:e=>(console.log("click style1",e.target.nodeId,e.currentTarget.nodeId),!1)},l.a.createElement(s.Text,{numberOfLines:1},e+": Style 1 UI"))}function J({index:e}){return l.a.createElement(s.View,{style:Y.container},l.a.createElement(s.Text,{numberOfLines:1},e+": Style 2 UI"))}function Z({index:e}){return l.a.createElement(s.View,{style:Y.container},l.a.createElement(s.Text,{numberOfLines:1},e+": Style 5 UI"))}class $ extends l.a.Component{constructor(e){super(e),this.state={dataSource:Q,fetchingDataFlag:!1,horizontal:void 0},this.delText="Delete",this.mockFetchData=this.mockFetchData.bind(this),this.getRenderRow=this.getRenderRow.bind(this),this.onEndReached=this.onEndReached.bind(this),this.getRowType=this.getRowType.bind(this),this.getRowKey=this.getRowKey.bind(this),this.getRowStyle=this.getRowStyle.bind(this),this.onDelete=this.onDelete.bind(this),this.onAppear=this.onAppear.bind(this),this.onDisappear=this.onDisappear.bind(this),this.onWillAppear=this.onWillAppear.bind(this),this.onWillDisappear=this.onWillDisappear.bind(this),this.rowShouldSticky=this.rowShouldSticky.bind(this),this.onScroll=this.onScroll.bind(this)}onDelete({index:e}){const{dataSource:t}=this.state,n=t.filter((t,n)=>e!==n);this.setState({dataSource:n})}async onEndReached(){const{dataSource:e,fetchingDataFlag:t}=this.state;if(t)return;this.setState({fetchingDataFlag:!0,dataSource:e.concat([{style:100}])});const n=await this.mockFetchData(),o=e.concat(n);this.setState({dataSource:o,fetchingDataFlag:!1})}onAppear(e){console.log("onAppear",e)}onScroll(e){console.log("onScroll",e.contentOffset.y),e.contentOffset.y<=0?this.topReached||(this.topReached=!0,console.log("onTopReached")):this.topReached=!1}onDisappear(e){console.log("onDisappear",e)}onWillAppear(e){console.log("onWillAppear",e)}onWillDisappear(e){console.log("onWillDisappear",e)}rowShouldSticky(e){return 2===e}getRowType(e){return this.state.dataSource[e].style}getRowStyle(){const{horizontal:e}=this.state;return e?{width:100,height:50}:{}}getRowKey(e){return"row-"+e}getRenderRow(e){const{dataSource:t}=this.state;let n=null;const o=t[e],r=t.length===e+1;switch(o.style){case 1:n=l.a.createElement(X,{index:e});break;case 2:n=l.a.createElement(J,{index:e});break;case 5:n=l.a.createElement(Z,{index:e});break;case 100:n=l.a.createElement(s.Text,{style:Y.loading},"Loading now...")}return l.a.createElement(s.View,{style:Y.container,onClickCapture:e=>{console.log("onClickCapture style outer",e.target.nodeId,e.currentTarget.nodeId)},onTouchDown:e=>(console.log("onTouchDown style outer",e.target.nodeId,e.currentTarget.nodeId),!1),onClick:e=>(console.log("click style outer",e.target.nodeId,e.currentTarget.nodeId),!1)},l.a.createElement(s.View,{style:Y.itemContainer},n),r?null:l.a.createElement(s.View,{style:Y.separatorLine}))}mockFetchData(){return new Promise(e=>{setTimeout(()=>e(Q),600)})}changeDirection(){this.setState({horizontal:void 0===this.state.horizontal||void 0})}render(){const{dataSource:e,horizontal:t}=this.state;return l.a.createElement(s.View,{style:{flex:1,collapsable:!1}},l.a.createElement(s.ListView,{onTouchDown:e=>{console.log("onTouchDown ListView",e.target.nodeId,e.currentTarget.nodeId)},onClickCapture:e=>{console.log("onClickCapture listview",e.target.nodeId,e.currentTarget.nodeId)},onClick:e=>(console.log("click listview",e.target.nodeId,e.currentTarget.nodeId),!0),bounces:!0,horizontal:t,style:[{backgroundColor:"#ffffff"},t?{height:50}:{flex:1}],numberOfRows:e.length,renderRow:this.getRenderRow,onEndReached:this.onEndReached,getRowType:this.getRowType,onDelete:this.onDelete,onMomentumScrollBegin:e=>console.log("onMomentumScrollBegin",e),onMomentumScrollEnd:e=>console.log("onMomentumScrollEnd",e),onScrollBeginDrag:e=>console.log("onScrollBeginDrag",e),onScrollEndDrag:e=>console.log("onScrollEndDrag",e),delText:this.delText,editable:!0,getRowStyle:this.getRowStyle,getRowKey:this.getRowKey,initialListSize:15,rowShouldSticky:this.rowShouldSticky,onAppear:this.onAppear,onDisappear:this.onDisappear,onWillAppear:this.onWillAppear,onWillDisappear:this.onWillDisappear,onScroll:this.onScroll,scrollEventThrottle:1e3}),l.a.createElement(s.View,{onClick:()=>this.changeDirection(),style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#4c9afa"}},l.a.createElement(s.View,{style:{width:60,height:60,borderRadius:30,backgroundColor:"#4c9afa",display:"flex",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{color:"white"}},"切换方向"))))}}const ee="#4c9afa",te="#4c9afa",ne="white",oe=s.StyleSheet.create({container:{flex:1,flexDirection:"column",justifyContent:"flex-start",alignItems:"center"},buttonView:{borderColor:ee,borderWidth:2,borderStyle:"solid",borderRadius:8,justifyContent:"center",alignItems:"center",width:250,height:50,marginTop:30},buttonText:{fontSize:20,color:ee,textAlign:"center",textAlignVertical:"center"},selectionText:{fontSize:20,textAlign:"center",textAlignVertical:"center",marginLeft:10,marginRight:10,padding:5,borderRadius:5,borderWidth:2}});class re extends l.a.Component{constructor(e){super(e),this.state={visible:!1,press:!1,animationType:"fade",immerseStatusBar:!1,hideStatusBar:!1,hideNavigationBar:!1},this.show=this.show.bind(this),this.hide=this.hide.bind(this)}feedback(e){this.setState({press:"in"===e})}show(){this.setState({visible:!0})}hide(){this.setState({visible:!1})}render(){const{press:e,visible:t}=this.state;return l.a.createElement(s.ScrollView,null,l.a.createElement(s.View,{style:oe.container},l.a.createElement(s.View,{onPressIn:()=>this.feedback("in"),onPressOut:()=>this.feedback("out"),onClick:this.show,style:[oe.buttonView,{borderColor:ee,opacity:e?.5:1}]},l.a.createElement(s.Text,{style:[oe.buttonText,{color:ee}]},"点击弹出浮层"))),l.a.createElement(s.View,{style:{flexDirection:"row",justifyContent:"center",marginTop:20}},l.a.createElement(s.Text,{onClick:()=>{this.setState({animationType:"fade"})},style:[oe.selectionText,{borderColor:"fade"===this.state.animationType?"red":ee},{color:"fade"===this.state.animationType?"red":ee}]},"fade"),l.a.createElement(s.Text,{onClick:()=>{this.setState({animationType:"slide"})},style:[oe.selectionText,{borderColor:"slide"===this.state.animationType?"red":ee},{color:"slide"===this.state.animationType?"red":ee}]},"slide"),l.a.createElement(s.Text,{onClick:()=>{this.setState({animationType:"slide_fade"})},style:[oe.selectionText,{borderColor:"slide_fade"===this.state.animationType?"red":ee},{color:"slide_fade"===this.state.animationType?"red":ee}]},"slide_fade")),l.a.createElement(s.View,{style:{flexDirection:"row",justifyContent:"center",marginTop:20}},l.a.createElement(s.Text,{onClick:()=>{this.setState({hideStatusBar:!this.state.hideStatusBar})},style:[oe.selectionText,{borderColor:this.state.hideStatusBar?"red":ee},{color:this.state.hideStatusBar?"red":ee}]},"autoHideStatusBar")),l.a.createElement(s.View,{style:{flexDirection:"row",justifyContent:"center",marginTop:20}},l.a.createElement(s.Text,{onClick:()=>{this.setState({immerseStatusBar:!this.state.immerseStatusBar})},style:[oe.selectionText,{borderColor:this.state.immerseStatusBar?"red":ee},{color:this.state.immerseStatusBar?"red":ee}]},"immersionStatusBar")),l.a.createElement(s.View,{style:{flexDirection:"row",justifyContent:"center",marginTop:20}},l.a.createElement(s.Text,{onClick:()=>{this.setState({hideNavigationBar:!this.state.hideNavigationBar})},style:[oe.selectionText,{borderColor:this.state.hideNavigationBar?"red":ee},{color:this.state.hideNavigationBar?"red":ee}]},"autoHideNavigationBar")),l.a.createElement(s.Modal,{transparent:!0,animationType:this.state.animationType,visible:t,onShow:()=>{console.log("modal show")},requestClose:()=>{},orientationChange:e=>{console.log("orientation changed",e.orientation)},supportedOrientations:["portrait"],immersionStatusBar:this.state.immerseStatusBar,autoHideStatusBar:this.state.hideStatusBar,autoHideNavigationBar:this.state.hideNavigationBar},l.a.createElement(s.View,{style:{flex:1,flexDirection:"row",justifyContent:"center",backgroundColor:"#4c9afa88"}},l.a.createElement(s.View,{onClick:this.hide,style:{width:200,height:200,backgroundColor:te,marginTop:300,flexDirection:"row",justifyContent:"center"}},l.a.createElement(s.Text,{style:{color:ne,fontSize:22,marginTop:80}},"点击关闭浮层")))))}}const ie="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",ae={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[ie,ie,ie],subInfo:["三图评论","11评"]}},le={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},se={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}};var ce=[se,ae,le,ae,le,ae,le,se,ae],he=n("./node_modules/@babel/runtime/helpers/extends.js"),ue=n.n(he);var de={getScreenWidth(){const e=s.Dimensions.get("screen").width,t=s.Dimensions.get("screen").height,n=e>t?t:e;return Math.floor(n)},uniqueArray(e){const t=[];for(let n=0;n=812&&s.PixelRatio.get()>=2&&(e=!0),e}};const me=(de.getScreenWidth()-24-12)/3,ge=Math.floor(me/1.35),fe=s.StyleSheet.create({imageContainer:{flexDirection:"row",justifyContent:"center",height:ge,marginTop:8},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},image:{width:me,height:ge},title:{fontSize:"android"===s.Platform.OS?17:18,lineHeight:24,color:"#242424"},tagLine:{marginTop:8,height:20,flexDirection:"row",justifyContent:"flex-start"}});function ye(e){const{itemBean:{title:t,picList:n}}=e;let{itemBean:{subInfo:o}}=e,r=null;if(o&&o.length){o=de.uniqueArray(o);const e=o.join(" ");r=l.a.createElement(s.Text,{style:fe.normalText,numberOfLines:1},e)}return l.a.createElement(s.View,ue()({},e,{style:{collapsable:!1}}),l.a.createElement(s.Text,{style:[fe.title],numberOfLines:2,enableScale:!0},t),l.a.createElement(s.View,{style:fe.imageContainer},l.a.createElement(s.Image,{style:fe.image,source:{uri:n[0]},resizeMode:s.Image.resizeMode.cover}),l.a.createElement(s.Image,{style:[fe.image,{marginLeft:6,marginRight:6}],source:{uri:n[1]},resizeMode:s.Image.resizeMode.cover}),l.a.createElement(s.Image,{style:fe.image,source:{uri:n[2]},resizeMode:s.Image.resizeMode.cover})),r?l.a.createElement(s.View,{style:fe.tagLine},r):null)}const pe=de.getScreenWidth()-24,be=Math.floor(pe-12)/3,we=Math.floor(be/1.35),xe=s.StyleSheet.create({container:{flexDirection:"row",justifyContent:"space-between",height:we},leftContainer:{flex:1,flexDirection:"column",justifyContent:"center",marginRight:8},imageContainer:{width:be,height:we},image:{width:be,height:we},title:{fontSize:"android"===s.Platform.OS?17:18,lineHeight:24},tagLine:{marginTop:8,height:20,flexDirection:"row",justifyContent:"flex-start"},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}});function Se(e){if("undefined"===e)return null;const{itemBean:t}=e;if(!t)return null;let n=null;const{title:o,picUrl:r}=t;let{subInfo:i}=t;if(i&&i.length){i=de.uniqueArray(i);const e=i.join(" ");n=l.a.createElement(s.Text,{style:xe.normalText,numberOfLines:1},e)}return l.a.createElement(s.View,ue()({},e,{style:xe.container}),l.a.createElement(s.View,{style:xe.leftContainer},l.a.createElement(s.Text,{style:xe.title,numberOfLines:2,enableScale:!0},o),n?l.a.createElement(s.View,{style:xe.tagLine},n):null),l.a.createElement(s.View,{style:xe.imageContainer},l.a.createElement(s.Image,{resizeMode:s.Image.resizeMode.cover,style:xe.image,source:{uri:r}})))}const Ee=de.getScreenWidth()-24,Te=Math.floor(188*Ee/336),Ce=s.StyleSheet.create({text:{fontSize:"android"===s.Platform.OS?17:18,lineHeight:24,color:"#242424"},playerView:{marginTop:8,alignItems:"center",width:Ee,height:Te,alignSelf:"center"},image:{width:Ee,height:Te},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},tagLine:{marginTop:8,flexDirection:"row",justifyContent:"space-between",alignItems:"center"}});function Ae(e){if("undefined"===e)return null;const{itemBean:t}=e;if(!t)return null;const{title:n,picUrl:o}=t;let{subInfo:r}=t,i=null;if(r&&r.length){r=de.uniqueArray(r);const e=r.join(" ");i=l.a.createElement(s.Text,{style:Ce.normalText,numberOfLines:1},e)}return l.a.createElement(s.View,e,l.a.createElement(s.Text,{style:Ce.text,numberOfLines:2,enableScale:!0},n),l.a.createElement(s.View,{style:Ce.playerView},l.a.createElement(s.Image,{style:Ce.image,source:{uri:o},resizeMode:s.Image.resizeMode.cover})),i?l.a.createElement(s.View,{style:Ce.tagLine},i):null)}const ve=s.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},spliter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}});class Re extends l.a.Component{constructor(e){super(e),this.state={dataSource:[],loadingState:"正在加载..."},this.fetchTimes=0,this.mockFetchData=this.mockFetchData.bind(this),this.onRefresh=this.onRefresh.bind(this),this.getRefresh=this.getRefresh.bind(this),this.getRenderRow=this.getRenderRow.bind(this),this.onEndReached=this.onEndReached.bind(this),this.getRowType=this.getRowType.bind(this),this.getRowKey=this.getRowKey.bind(this)}async componentDidMount(){const e=await this.mockFetchData();this.setState({dataSource:e})}async onEndReached(){const{dataSource:e,fetchingDataFlag:t}=this.state;if(t)return;this.setState({fetchingDataFlag:!0,dataSource:e.concat([{style:100}])});const n=await this.mockFetchData(),o=e[e.length-1];o&&100===o.style&&e.pop();const r=e.concat(n);this.setState({dataSource:r})}onRefresh(){setTimeout(async()=>{const e=await this.mockFetchData();this.setState({dataSource:e}),this.refresh.refreshComplected()},1e3)}onClickItem(e){console.log(`item: ${e} is clicked..`)}getRenderRow(e){const{dataSource:t,loadingState:n}=this.state;let o=null;const r=t[e],i=t.length===e+1;switch(r.style){case 1:o=l.a.createElement(ye,{itemBean:r.itemBean,onClick:()=>this.onClickItem(e)});break;case 2:o=l.a.createElement(Se,{itemBean:r.itemBean,onClick:()=>this.onClickItem(e)});break;case 5:o=l.a.createElement(Ae,{itemBean:r.itemBean,onClick:()=>this.onClickItem(e)});break;case 100:o=l.a.createElement(s.Text,{style:ve.loading},n)}return l.a.createElement(s.View,{style:ve.container},l.a.createElement(s.View,{style:ve.itemContainer},o),i?null:l.a.createElement(s.View,{style:ve.spliter}))}getRowType(e){return this.state.dataSource[e].style}getRowKey(e){return"row-"+e}getRefresh(){return l.a.createElement(s.View,{style:{flex:1,height:30}},l.a.createElement(s.Text,{style:{flex:1,textAlign:"center"}},"下拉刷新中..."))}mockFetchData(){return new Promise(e=>{setTimeout(()=>(this.setState({fetchingDataFlag:!1}),this.fetchTimes+=1,this.fetchTimes>=50?e([]):e(ce)),600)})}render(){const{dataSource:e}=this.state;return l.a.createElement(s.RefreshWrapper,{ref:e=>{this.refresh=e},style:{flex:1},onRefresh:this.onRefresh,bounceTime:100,getRefresh:this.getRefresh},l.a.createElement(s.ListView,{style:{flex:1,backgroundColor:"#ffffff"},numberOfRows:e.length,renderRow:this.getRenderRow,onEndReached:this.onEndReached,getRowType:this.getRowType,getRowKey:this.getRowKey}))}}const Ve=s.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},splitter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},pullContainer:{flex:1,height:50,backgroundColor:"#4c9afa"},pullContent:{lineHeight:50,color:"white",height:50,textAlign:"center"},pullFooter:{height:40,flex:1,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}});class ke extends l.a.Component{constructor(e){super(e),this.state={dataSource:[],headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",horizontal:void 0},this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.mockFetchData=this.mockFetchData.bind(this),this.renderRow=this.renderRow.bind(this),this.getRowType=this.getRowType.bind(this),this.getRowKey=this.getRowKey.bind(this),this.getHeaderStyle=this.getHeaderStyle.bind(this),this.getFooterStyle=this.getFooterStyle.bind(this),this.getRowStyle=this.getRowStyle.bind(this),this.renderPullHeader=this.renderPullHeader.bind(this),this.renderPullFooter=this.renderPullFooter.bind(this),this.onEndReached=this.onEndReached.bind(this),this.onHeaderReleased=this.onHeaderReleased.bind(this),this.onHeaderPulling=this.onHeaderPulling.bind(this),this.onFooterPulling=this.onFooterPulling.bind(this)}async componentDidMount(){const e=await this.mockFetchData();this.setState({dataSource:e}),this.listView.collapsePullHeader()}mockFetchData(){return new Promise(e=>{setTimeout(()=>e(ce),800)})}async onEndReached(){const{dataSource:e}=this.state;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.setState({footerRefreshText:"加载更多..."});let t=[];try{t=await this.mockFetchData()}catch(e){}0===t.length&&this.setState({footerRefreshText:"没有更多数据"});const n=[...e,...t];this.setState({dataSource:n}),this.loadMoreDataFlag=!1,this.listView.collapsePullFooter()}async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.setState({headerRefreshText:"刷新数据中,请稍等"});let e=[];try{e=await this.mockFetchData(),e=e.reverse()}catch(e){}this.fetchingDataFlag=!1,this.setState({dataSource:e,headerRefreshText:"2秒后收起"},()=>{this.listView.collapsePullHeader({time:2e3})})}onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>Ve.pullContent.height?this.setState({headerRefreshText:"松手,即可触发刷新"}):this.setState({headerRefreshText:"继续下拉,触发刷新"}))}onFooterPulling(e){console.log("onFooterPulling",e)}onClickItem(e,t){console.log(`item: ${e} is clicked..`,t.target.nodeId,t.currentTarget.nodeId)}getRowType(e){return this.state.dataSource[e].style}getRowKey(e){return"row-"+e}getHeaderStyle(){const{horizontal:e}=this.state;return e?{width:50}:{}}renderPullHeader(){const{headerRefreshText:e,horizontal:t}=this.state;return t?l.a.createElement(s.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{lineHeight:25,color:"white",width:40,paddingHorizontal:15}},e)):l.a.createElement(s.View,{style:Ve.pullContainer},l.a.createElement(s.Text,{style:Ve.pullContent},e))}getFooterStyle(){const{horizontal:e}=this.state;return e?{width:40}:{}}renderPullFooter(){const{horizontal:e}=this.state;return e?l.a.createElement(s.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{color:"white",lineHeight:25,width:40,paddingHorizontal:15}},this.state.footerRefreshText)):l.a.createElement(s.View,{style:Ve.pullFooter},l.a.createElement(s.Text,{style:{color:"white"}},this.state.footerRefreshText))}renderRow(e){const{dataSource:t}=this.state;let n=null;const o=t[e],r=t.length===e+1;switch(o.style){case 1:n=l.a.createElement(ye,{itemBean:o.itemBean,onClick:t=>this.onClickItem(e,t)});break;case 2:n=l.a.createElement(Se,{itemBean:o.itemBean,onClick:t=>this.onClickItem(e,t)});break;case 5:n=l.a.createElement(Ae,{itemBean:o.itemBean,onClick:t=>this.onClickItem(e,t)})}return l.a.createElement(s.View,{style:Ve.container},l.a.createElement(s.View,{style:Ve.itemContainer},n),r?null:l.a.createElement(s.View,{style:Ve.splitter}))}getRowStyle(){const{horizontal:e}=this.state;return e?{height:300,justifyContent:"center",alignItems:"center"}:{}}changeDirection(){this.setState({horizontal:void 0===this.state.horizontal||void 0})}render(){const{dataSource:e,horizontal:t}=this.state;return l.a.createElement(s.View,{style:{flex:1,collapsable:!1}},l.a.createElement(s.ListView,{horizontal:t,onClick:e=>console.log("ListView",e.target.nodeId,e.currentTarget.nodeId),ref:e=>{this.listView=e},style:[{backgroundColor:"#ffffff"},t?{height:300}:{flex:1}],numberOfRows:e.length,getRowType:this.getRowType,getRowKey:this.getRowKey,getHeaderStyle:this.getHeaderStyle,getFooterStyle:this.getFooterStyle,getRowStyle:this.getRowStyle,renderRow:this.renderRow,renderPullHeader:this.renderPullHeader,renderPullFooter:this.renderPullFooter,onHeaderReleased:this.onHeaderReleased,onHeaderPulling:this.onHeaderPulling,onFooterReleased:this.onEndReached,onFooterPulling:this.onFooterPulling,rowShouldSticky:e=>0===e}),"android"===s.Platform.OS?l.a.createElement(s.View,{onClick:()=>this.changeDirection(),style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#4c9afa"}},l.a.createElement(s.View,{style:{width:60,height:60,borderRadius:30,backgroundColor:"#4c9afa",display:"flex",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{color:"white"}},"切换方向"))):null)}}const Ie=s.StyleSheet.create({itemStyle:{width:100,height:100,lineHeight:100,borderWidth:1,borderStyle:"solid",borderColor:"#4c9afa",fontSize:80,margin:20,color:"#4c9afa",textAlign:"center"},verticalScrollView:{height:300,width:140,margin:20,borderColor:"#eee",borderWidth:1,borderStyle:"solid"},itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10}});function Oe(){return l.a.createElement(s.ScrollView,null,l.a.createElement(s.View,{style:Ie.itemTitle},l.a.createElement(s.Text,null,"Horizontal ScrollView")),l.a.createElement(s.View,null,l.a.createElement(s.ScrollView,{horizontal:!0,bounces:!0,showsHorizontalScrollIndicator:!1,showScrollIndicator:!1,onScroll:e=>console.log("onScroll",e),onMomentumScrollBegin:e=>console.log("onMomentumScrollBegin",e),onMomentumScrollEnd:e=>console.log("onMomentumScrollEnd",e),onScrollBeginDrag:e=>console.log("onScrollBeginDrag",e),onScrollEndDrag:e=>console.log("onScrollEndDrag",e)},l.a.createElement(s.Text,{style:Ie.itemStyle},"A"),l.a.createElement(s.Text,{style:Ie.itemStyle},"B"),l.a.createElement(s.Text,{style:Ie.itemStyle},"C"),l.a.createElement(s.Text,{style:Ie.itemStyle},"D"),l.a.createElement(s.Text,{style:Ie.itemStyle},"E"),l.a.createElement(s.Text,{style:Ie.itemStyle},"F"),l.a.createElement(s.Text,{style:Ie.itemStyle},"A"))),l.a.createElement(s.View,{style:Ie.itemTitle},l.a.createElement(s.Text,null,"Vertical ScrollView")),l.a.createElement(s.ScrollView,{bounces:!0,horizontal:!1,style:Ie.verticalScrollView,showScrollIndicator:!1,showsVerticalScrollIndicator:!1},l.a.createElement(s.Text,{style:Ie.itemStyle},"A"),l.a.createElement(s.Text,{style:Ie.itemStyle},"B"),l.a.createElement(s.Text,{style:Ie.itemStyle},"C"),l.a.createElement(s.Text,{style:Ie.itemStyle},"D"),l.a.createElement(s.Text,{style:Ie.itemStyle},"E"),l.a.createElement(s.Text,{style:Ie.itemStyle},"F"),l.a.createElement(s.Text,{style:Ie.itemStyle},"A")))}const De="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEXRSTlMA9QlZEMPc2Mmmj2VkLEJ4Rsx+pEgAAAChSURBVCjPjVLtEsMgCDOAdbbaNu//sttVPes+zvGD8wgQCLp/TORbUGMAQtQ3UBeSAMlF7/GV9Cmb5eTJ9R7H1t4bOqLE3rN2UCvvwpLfarhILfDjJL6WRKaXfzxc84nxAgLzCGSGiwKwsZUB8hPorZwUV1s1cnGKw+yAOrnI+7hatNIybl9Q3OkBfzopCw6SmDVJJiJ+yD451OS0/TNM7QnuAAbvCG0TSAAAAABJRU5ErkJggg==",Pe="https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",je=s.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},itemContent:{alignItems:"flex-start",justifyContent:"center",borderWidth:1,borderStyle:"solid",borderRadius:2,borderColor:"#e0e0e0",backgroundColor:"#ffffff",padding:10},normalText:{fontSize:14,lineHeight:18,color:"black",fontWeight:"normal"},buttonBar:{flexDirection:"row",marginTop:10,flexGrow:1},button:{height:24,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",flexGrow:1,flexShrink:1,justifyContent:"center"},buttonText:{lineHeight:24,textAlign:"center",paddingHorizontal:20},customFont:{color:"#0052d9",fontSize:32,fontFamily:"TTTGB"}});let Le=0;class Be extends l.a.Component{constructor(e){super(e),this.state={fontSize:16,fontWeight:"400",textShadowColor:"grey",textShadowOffset:{x:1,y:1},scrollColor:"gray",numberOfLines:2,ellipsizeMode:void 0},this.incrementFontSize=this.incrementFontSize.bind(this),this.decrementFontSize=this.decrementFontSize.bind(this),this.incrementFontWeight=this.incrementFontWeight.bind(this),this.decrementFontWeight=this.decrementFontWeight.bind(this),this.incrementLine=this.incrementLine.bind(this),this.decrementLine=this.decrementLine.bind(this),this.changeMode=this.changeMode.bind(this),this.changeColor=this.changeColor.bind(this)}incrementFontWeight(){const{fontWeight:e}=this.state;if("1000"!=e){var t=parseInt(e,10);t+=100,this.setState({fontWeight:t.toString()})}}decrementFontWeight(){const{fontWeight:e}=this.state;if("100"!==e){var t=parseInt(e,10);t-=100,this.setState({fontWeight:t.toString()})}}incrementFontSize(){const{fontSize:e}=this.state;24!==e&&this.setState({fontSize:e+1})}decrementFontSize(){const{fontSize:e}=this.state;6!==e&&this.setState({fontSize:e-1})}incrementLine(){const{numberOfLines:e}=this.state;e<6&&this.setState({numberOfLines:e+1})}decrementLine(){const{numberOfLines:e}=this.state;e>1&&this.setState({numberOfLines:e-1})}changeMode(e){this.setState({ellipsizeMode:e})}changeColor(){this.setState({scrollColor:"red"})}changeBreakStrategy(e){this.setState({breakStrategy:e})}render(){const{fontSize:e,fontWeight:t,textShadowColor:n,textShadowOffset:o,numberOfLines:r,ellipsizeMode:i,breakStrategy:a,scrollColor:c}=this.state,h=e=>l.a.createElement(s.View,{style:je.itemTitle},l.a.createElement(s.Text,{style:!0},e));return l.a.createElement(s.ScrollView,{style:{padding:10,color:c,fontFamily:"TTTGB"}},h("shadow"),l.a.createElement(s.View,{style:[je.itemContent,{height:60}],onClick:()=>{let e="red",t={x:10,y:1};Le%2==1&&(e="grey",t={x:1,y:1}),Le+=1,this.setState({textShadowColor:e,textShadowOffset:t})}},l.a.createElement(s.Text,{style:[je.normalText,{color:"#242424",textShadowOffset:o,textShadowRadius:3,textShadowColor:n}]},"Text shadow is grey with radius 3 and offset 1")),h("color"),l.a.createElement(s.View,{style:[je.itemContent,{height:80}]},l.a.createElement(s.Text,{style:[je.normalText,{color:"#242424"}]},"Text color is black"),l.a.createElement(s.Text,{style:[je.normalText,{color:"blue"}]},"Text color is blue"),l.a.createElement(s.Text,{style:[je.normalText,{color:"rgb(228,61,36)"}]},"This is red")),h("fontSize"),l.a.createElement(s.View,{style:[je.itemContent,{height:125,color:"blue",fontFamily:"not-support-fontstyle"}]},l.a.createElement(s.Text,{style:[je.normalText,{fontSize:e}]},"Text fontSize is "+e),l.a.createElement(s.View,{style:je.button,onClick:this.changeColor},l.a.createElement(s.Text,{style:je.buttonText},"切换字体颜色")),l.a.createElement(s.View,{style:je.button,onClick:this.incrementFontSize},l.a.createElement(s.Text,{style:je.buttonText},"放大字体")),l.a.createElement(s.View,{style:je.button,onClick:this.decrementFontSize},l.a.createElement(s.Text,{style:je.buttonText},"缩小字体"))),h("fontWeight"),l.a.createElement(s.View,{style:[je.itemContent,{height:125,color:"blue",fontFamily:"not-support-fontstyle"}]},l.a.createElement(s.Text,{style:[je.normalText,{fontWeight:t}]},"Text fontWeight is "+t),l.a.createElement(s.View,{style:je.button,onClick:this.incrementFontWeight},l.a.createElement(s.Text,{style:je.buttonText},"加粗字体")),l.a.createElement(s.View,{style:je.button,onClick:this.decrementFontWeight},l.a.createElement(s.Text,{style:je.buttonText},"减细字体"))),h("fontStyle"),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{style:[je.normalText,{fontStyle:"normal"}]},"Text fontStyle is normal"),l.a.createElement(s.Text,{style:[je.normalText,{fontStyle:"italic"}]},"Text fontStyle is italic")),h("numberOfLines and ellipsizeMode"),l.a.createElement(s.View,{style:[je.itemContent]},l.a.createElement(s.Text,{style:[je.normalText,{marginBottom:10}]},`numberOfLines=${r} | ellipsizeMode=${i}`),l.a.createElement(s.Text,{numberOfLines:r,ellipsizeMode:i,style:[je.normalText,{lineHeight:void 0,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Text,{style:{fontSize:19,color:"white"}},"先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。"),l.a.createElement(s.Text,null,"然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")),l.a.createElement(s.Text,{numberOfLines:r,ellipsizeMode:i,style:[je.normalText,{backgroundColor:"#4c9afa",marginBottom:10,color:"white",paddingHorizontal:10,paddingVertical:5}]},"line 1\n\nline 3\n\nline 5"),l.a.createElement(s.Text,{numberOfLines:r,ellipsizeMode:i,style:[je.normalText,{lineHeight:void 0,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5,verticalAlign:"middle"}]},l.a.createElement(s.Image,{style:{width:24,height:24},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24},source:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEnRSTlMA/QpX7WQU2m27pi3Ej9KEQXaD5HhjAAAAqklEQVQoz41SWxLDIAh0RcFXTHL/yzZSO01LMpP9WJEVUNA9gfdXTioCSKE/kQQTQmf/ArRYva+xAcuPP37seFII2L7FN4BmXdHzlEPIpDHiZ0A7eIViPcw2QwqipkvMSdNEFBUE1bmMNOyE7FyFaIkAP4jHhhG80lvgkzBODTKpwhRMcexuR7fXzcp08UDq6GRbootp4oRtO3NNpd4NKtnR9hB6oaefweIFQU0EfnGDRoQAAAAASUVORK5CYII="}}),l.a.createElement(s.Text,null,"Text + Attachment")),l.a.createElement(s.View,{style:je.buttonBar},l.a.createElement(s.View,{style:je.button,onClick:this.incrementLine},l.a.createElement(s.Text,{style:je.buttonText},"加一行")),l.a.createElement(s.View,{style:je.button,onClick:this.decrementLine},l.a.createElement(s.Text,{style:je.buttonText},"减一行"))),l.a.createElement(s.View,{style:je.buttonBar},l.a.createElement(s.View,{style:je.button,onClick:()=>this.changeMode("clip")},l.a.createElement(s.Text,{style:je.buttonText},"clip")),l.a.createElement(s.View,{style:je.button,onClick:()=>this.changeMode("head")},l.a.createElement(s.Text,{style:je.buttonText},"head")),l.a.createElement(s.View,{style:je.button,onClick:()=>this.changeMode("middle")},l.a.createElement(s.Text,{style:je.buttonText},"middle")),l.a.createElement(s.View,{style:je.button,onClick:()=>this.changeMode("tail")},l.a.createElement(s.Text,{style:je.buttonText},"tail")))),h("textDecoration"),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[je.normalText,{textDecorationLine:"underline",textDecorationStyle:"dotted"}]},"underline"),l.a.createElement(s.Text,{numberOfLines:1,style:[je.normalText,{textDecorationLine:"line-through",textDecorationColor:"red"}]},"line-through")),h("LetterSpacing"),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[je.normalText,{letterSpacing:-1}]},"Text width letter-spacing -1"),l.a.createElement(s.Text,{numberOfLines:1,style:[je.normalText,{letterSpacing:5}]},"Text width letter-spacing 5")),h("Nest Text"),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:3},l.a.createElement(s.Text,{numberOfLines:3,style:[je.normalText,{color:"#4c9afa"}]},"#SpiderMan#"),l.a.createElement(s.Text,{numberOfLines:3,style:je.normalText},"Hello world, I am a spider man and I have five friends in other universe."))),h("Custom font"),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:je.customFont},"Hippy 跨端框架")),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[je.customFont,{fontWeight:"bold"}]},"Hippy 跨端框架 粗体")),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[je.customFont,{fontStyle:"italic"}]},"Hippy 跨端框架 斜体")),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[je.customFont,{fontWeight:"bold",fontStyle:"italic"}]},"Hippy 跨端框架 粗斜体")),h("Text Nested"),l.a.createElement(s.View,{style:[je.itemContent,{height:150}]},l.a.createElement(s.Text,{style:{height:100,lineHeight:50}},l.a.createElement(s.Text,{numberOfLines:1,style:je.normalText},"后面有张图片"),l.a.createElement(s.Image,{style:{width:70,height:35},source:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAAtCAMAAABmgJ64AAAAOVBMVEX/Rx8AAAD/QiL/Tif/QyH/RR//QiH/QiP/RCD/QSL/Qxz/QyH/QiL/QiD/QyL/QiL/QiH/QyH/QiLwirLUAAAAEnRSTlMZAF4OTC7DrWzjI4iietrRk0EEv/0YAAAB0UlEQVRYw72Y0Y6sIAxAKwUFlFH7/x97izNXF2lN1pU5D800jD2hJAJCdwYZuAUyVbmToKh903IhQHgErAVH+ccV0KI+G2oBPMxJgPA4WAigAT8F0IRDgNAE3ARyfeMFDGSc3YHVFkTBAHKDAgkEyHjacae/GTjxFqAo8NbakXrL9DRy9B+BCQwRcXR9OBKmEuAmAFFgcy0agBnIc1xZsMPOI5loAoUsQFmQjDEL9YbpaeGYBMGRKKAuqFEFL/JXApCw/zFEZk9qgbLGBx0gXLISxT25IUBREEgh1II1fph/IViGnZnCcDDVAgfgVg6gCy6ZaClySbDQpAl04vCGaB4+xGcFRK8CLvW0IBb5bQGqAlNwU4C6oEIVTLTcmoEr0AWcpKsZ/H0NAtkLQffnFjkOqiC/TTWBL9AFCwXQBHgI7rXImMgjCZwFa50s6DRBXyALmIECuMASiWNPFgRTgSJwM+XW8PDCmbwndzdaNL8FMYXPNjASDVChnIvWlBI/MKadPV952HszbmXtRERhhQ0vGFA52SVSSVt7MjHvxfRK8cdTpqovn02dUcltMrwiKf+wQ1FxXKCk9en6e/eDNnP44h2thQEb35O/etNv/q3iHza+KuhqqhZAAAAAAElFTkSuQmCC"}}),l.a.createElement(s.Text,{numberOfLines:1,style:je.customFont},"前面有张图片")),l.a.createElement(s.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"center",paddingHorizontal:10,paddingVertical:5,backgroundColor:"#4c9afa"}},l.a.createElement(s.Image,{style:{width:24,height:24,alignSelf:"center"},source:{uri:De}}),l.a.createElement(s.Text,{style:{fontSize:15,alignItems:"center",justifyContent:"center"}},"Image+Text"))),"android"===s.Platform.OS&&h("breakStrategy"),"android"===s.Platform.OS&&l.a.createElement(s.View,{style:je.itemContent},l.a.createElement(s.Text,{style:[je.normalText,{borderWidth:1,borderColor:"gray"}],breakStrategy:a},"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales."),l.a.createElement(s.Text,{style:je.normalText},"breakStrategy: "+a),l.a.createElement(s.View,{style:je.buttonBar},l.a.createElement(s.View,{style:je.button,onClick:()=>this.changeBreakStrategy("simple")},l.a.createElement(s.Text,{style:je.buttonText},"simple")),l.a.createElement(s.View,{style:je.button,onClick:()=>this.changeBreakStrategy("high_quality")},l.a.createElement(s.Text,{style:je.buttonText},"high_quality")),l.a.createElement(s.View,{style:je.button,onClick:()=>this.changeBreakStrategy("balanced")},l.a.createElement(s.Text,{style:je.buttonText},"balanced")))),h("verticalAlign"),l.a.createElement(s.View,{style:[je.itemContent,{height:"android"===s.Platform.OS?160:70}]},l.a.createElement(s.Text,{style:[je.normalText,{lineHeight:50,backgroundColor:"#4c9afa",paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"top"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:18,height:12,verticalAlign:"middle"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:12,verticalAlign:"baseline"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:36,height:24,verticalAlign:"bottom"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"top"},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:18,height:12,verticalAlign:"middle"},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:24,height:12,verticalAlign:"baseline"},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:36,height:24,verticalAlign:"bottom"},source:{uri:Pe}}),l.a.createElement(s.Text,{style:{fontSize:16,verticalAlign:"top"}},"字"),l.a.createElement(s.Text,{style:{fontSize:16,verticalAlign:"middle"}},"字"),l.a.createElement(s.Text,{style:{fontSize:16,verticalAlign:"baseline"}},"字"),l.a.createElement(s.Text,{style:{fontSize:16,verticalAlign:"bottom"}},"字")),"android"===s.Platform.OS&&l.a.createElement(l.a.Fragment,null,l.a.createElement(s.Text,null,"legacy mode:"),l.a.createElement(s.Text,{style:[je.normalText,{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:0},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:18,height:12,verticalAlignment:1},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:12,verticalAlignment:2},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:36,height:24,verticalAlignment:3},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,top:-10},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:18,height:12,top:-5},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:24,height:12},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:36,height:24,top:3},source:{uri:Pe}}),l.a.createElement(s.Text,{style:{fontSize:16}},"字"),l.a.createElement(s.Text,{style:{fontSize:16}},"字"),l.a.createElement(s.Text,{style:{fontSize:16}},"字"),l.a.createElement(s.Text,{style:{fontSize:16}},"字")))),h("tintColor & backgroundColor"),l.a.createElement(s.View,{style:[je.itemContent]},l.a.createElement(s.Text,{style:[je.normalText,{lineHeight:30,backgroundColor:"#4c9afa",paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"middle",tintColor:"orange"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"middle",tintColor:"orange",backgroundColor:"#ccc"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"middle",backgroundColor:"#ccc"},source:{uri:De}}),l.a.createElement(s.Text,{style:{verticalAlign:"middle",backgroundColor:"#090"}},"text")),"android"===s.Platform.OS&&l.a.createElement(l.a.Fragment,null,l.a.createElement(s.Text,null,"legacy mode:"),l.a.createElement(s.Text,{style:[je.normalText,{lineHeight:30,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,tintColor:"orange"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,tintColor:"orange",backgroundColor:"#ccc"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,backgroundColor:"#ccc"},source:{uri:De}})))),h("margin"),l.a.createElement(s.View,{style:[je.itemContent]},l.a.createElement(s.Text,{style:[{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"top",backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"middle",backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"baseline",backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"bottom",backgroundColor:"#ccc",margin:5},source:{uri:De}})),"android"===s.Platform.OS&&l.a.createElement(l.a.Fragment,null,l.a.createElement(s.Text,null,"legacy mode:"),l.a.createElement(s.Text,{style:[je.normalText,{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:0,backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:1,backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:2,backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:3,backgroundColor:"#ccc",margin:5},source:{uri:De}})))))}}const Me=s.StyleSheet.create({container_style:{padding:10},input_style:{width:300,marginVertical:10,fontSize:16,color:"#242424",height:30,lineHeight:30},input_style_block:{height:100,lineHeight:20,fontSize:15,borderWidth:1,borderColor:"gray",underlineColorAndroid:"transparent"},itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},itemContent:{marginTop:10},buttonBar:{flexDirection:"row",marginTop:10,flexGrow:1},button:{width:200,height:24,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",marginTop:5,marginBottom:5,flexGrow:1,flexShrink:1}});class Fe extends a.Component{constructor(e){super(e),this.state={textContent:""},this.changeInputContent=this.changeInputContent.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this)}changeInputContent(){this.setState({textContent:"当前时间毫秒:"+Date.now()})}focus(){this.input.focus()}blur(){this.input.blur()}async onFocus(){const e=await this.input.isFocused();this.setState({event:"onFocus",isFocused:e})}async onBlur(){const e=await this.input.isFocused();this.setState({event:"onBlur",isFocused:e})}changeBreakStrategy(e){this.setState({breakStrategy:e})}render(){const{textContent:e,event:t,isFocused:n,breakStrategy:o}=this.state,r=e=>l.a.createElement(s.View,{style:Me.itemTitle},l.a.createElement(s.Text,null,e));return l.a.createElement(s.ScrollView,{style:Me.container_style},r("text"),l.a.createElement(s.TextInput,{ref:e=>{this.input=e},style:Me.input_style,caretColor:"yellow",underlineColorAndroid:"grey",placeholderTextColor:"#4c9afa",placeholder:"text",defaultValue:e,onBlur:()=>this.onBlur(),onFocus:()=>this.onFocus()}),l.a.createElement(s.Text,{style:Me.itemContent},`事件: ${t} | isFocused: ${n}`),l.a.createElement(s.View,{style:Me.button,onClick:this.changeInputContent},l.a.createElement(s.Text,null,"点击改变输入框内容")),l.a.createElement(s.View,{style:Me.button,onClick:this.focus},l.a.createElement(s.Text,null,"Focus")),l.a.createElement(s.View,{style:Me.button,onClick:this.blur},l.a.createElement(s.Text,null,"Blur")),r("numeric"),l.a.createElement(s.TextInput,{style:Me.input_style,keyboardType:"numeric",placeholder:"numeric"}),r("phone-pad"),l.a.createElement(s.TextInput,{style:Me.input_style,keyboardType:"phone-pad",placeholder:"phone-pad"}),r("password"),l.a.createElement(s.TextInput,{style:Me.input_style,keyboardType:"password",placeholder:"Password",multiline:!1}),r("maxLength"),l.a.createElement(s.TextInput,{caretColor:"yellow",style:Me.input_style,placeholder:"maxLength=5",maxLength:5}),"android"===s.Platform.OS&&r("breakStrategy"),"android"===s.Platform.OS&&l.a.createElement(l.a.Fragment,null,l.a.createElement(s.TextInput,{style:Me.input_style_block,breakStrategy:o,defaultValue:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales."}),l.a.createElement(s.Text,{style:{}},"breakStrategy: "+o),l.a.createElement(s.View,{style:Me.buttonBar},l.a.createElement(s.View,{style:Me.button,onClick:()=>this.changeBreakStrategy("simple")},l.a.createElement(s.Text,{style:Me.buttonText},"simple")),l.a.createElement(s.View,{style:Me.button,onClick:()=>this.changeBreakStrategy("high_quality")},l.a.createElement(s.Text,{style:Me.buttonText},"high_quality")),l.a.createElement(s.View,{style:Me.button,onClick:()=>this.changeBreakStrategy("balanced")},l.a.createElement(s.Text,{style:Me.buttonText},"balanced")))))}}var ze=n.p+"assets/defaultSource.jpg";const He=s.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},rectangle:{width:160,height:80,marginVertical:10},bigRectangle:{width:200,height:100,borderColor:"#eee",borderWidth:1,borderStyle:"solid",padding:10,marginVertical:10},smallRectangle:{width:40,height:40,borderRadius:10}});function _e(){const e=e=>l.a.createElement(s.View,{style:He.itemTitle},l.a.createElement(s.Text,null,e));return l.a.createElement(s.ScrollView,{style:{paddingHorizontal:10}},e("backgroundColor"),l.a.createElement(s.View,{style:[He.rectangle,{backgroundColor:"#4c9afa"}]}),e("backgroundImage"),l.a.createElement(s.View,{style:[He.rectangle,{alignItems:"center",justifyContent:"center",marginTop:20,backgroundImage:ze}],accessible:!0,accessibilityLabel:"背景图",accessibilityRole:"image",accessibilityState:{disabled:!1,selected:!0,checked:!1,expanded:!1,busy:!0},accessibilityValue:{min:1,max:10,now:5,text:"middle"}},l.a.createElement(s.Text,{style:{color:"white"}},"背景图")),e("backgroundImage linear-gradient"),l.a.createElement(s.View,{style:[He.rectangle,{alignItems:"center",justifyContent:"center",marginTop:20,borderWidth:2,borderStyle:"solid",borderColor:"black",borderRadius:2,backgroundImage:"linear-gradient(30deg, blue 10%, yellow 40%, red 50%);"}]},l.a.createElement(s.Text,{style:{color:"white"}},"渐变色")),e("border props"),l.a.createElement(s.View,{style:[He.rectangle,{borderColor:"#242424",borderRadius:4,borderWidth:1,borderStyle:"solid"}]}),e("flex props"),l.a.createElement(s.View,{style:[He.bigRectangle,{flexDirection:"row",alignItems:"center",justifyContent:"space-between"}]},l.a.createElement(s.View,{style:[He.smallRectangle,{backgroundColor:"yellow"}]}),l.a.createElement(s.View,{style:[He.smallRectangle,{backgroundColor:"blue"}]}),l.a.createElement(s.View,{style:[He.smallRectangle,{backgroundColor:"green"}]})))}const We=s.StyleSheet.create({pageContainer:{alignItems:"center",justifyContent:"center",flex:1,paddingTop:20},mainRec:{backgroundColor:"#4c9afaAA",width:256,height:48,marginBottom:10,marginTop:156},title:{verticalAlign:"middle",lineHeight:48,height:48,fontSize:16,color:"white",alignSelf:"center"},shapeBase:{width:128,height:128,backgroundColor:"#4c9afa"},square:{},circle:{borderRadius:64},triangle:{borderStyle:"solid",borderTopWidth:0,borderRightWidth:70,borderBottomWidth:128,borderLeftWidth:70,borderTopColor:"transparent",borderRightColor:"transparent",borderLeftColor:"transparent",borderBottomColor:"#4c9afa",backgroundColor:"transparent",width:140}}),Ne="SquarePagerView",Ke="TrianglePagerView",Ue="CirclePagerView";function Ge(e,t){const n=t=>l.a.createElement(s.View,{style:We.pageContainer,key:t},l.a.createElement(s.View,{style:[We.shapeBase,e],key:"shape"}),l.a.createElement(s.View,{style:We.mainRec,key:"title"},t?l.a.createElement(s.Text,{style:We.title},t):null));return n.displayName=t,n}const qe=Ge(We.square,Ne),Qe=Ge(We.triangle,Ke),Ye=Ge(We.circle,Ue),Xe=s.StyleSheet.create({dotContainer:{position:"absolute",bottom:10,left:0,right:0,flexDirection:"row",alignItems:"center",justifyContent:"center"},dot:{width:6,height:6,borderRadius:3,margin:3,backgroundColor:"#BBBBBB"},selectDot:{backgroundColor:"#000000"},container:{height:500},buttonContainer:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12},button:{width:120,height:36,backgroundColor:"#4c9afa",borderRadius:18,alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,color:"#fff"}});class Je extends l.a.Component{constructor(e){super(e),_()(this,"state",{selectedIndex:0}),this.onPageSelected=this.onPageSelected.bind(this),this.onPageScrollStateChanged=this.onPageScrollStateChanged.bind(this)}onPageSelected(e){console.log("onPageSelected",e.position),this.setState({selectedIndex:e.position})}onPageScrollStateChanged(e){console.log("onPageScrollStateChanged",e)}onPageScroll({offset:e,position:t}){console.log("onPageScroll",e,t)}render(){const{selectedIndex:e}=this.state;return l.a.createElement(s.View,{style:{flex:1,backgroundColor:"#ffffff"}},l.a.createElement(s.View,{style:Xe.buttonContainer},l.a.createElement(s.View,{style:Xe.button,onClick:()=>{this.viewpager.setPage(2)}},l.a.createElement(s.Text,{style:Xe.buttonText},"动效滑到第3页")),l.a.createElement(s.View,{style:Xe.button,onClick:()=>this.viewpager.setPageWithoutAnimation(0)},l.a.createElement(s.Text,{style:Xe.buttonText},"直接滑到第1页"))),l.a.createElement(s.ViewPager,{ref:e=>{this.viewpager=e},style:Xe.container,initialPage:0,keyboardDismissMode:"none",scrollEnabled:!0,onPageSelected:this.onPageSelected,onPageScrollStateChanged:this.onPageScrollStateChanged,onPageScroll:this.onPageScroll},[qe("squarePager"),Qe("TrianglePager"),Ye("CirclePager")]),l.a.createElement(s.View,{style:Xe.dotContainer},new Array(3).fill(0).map((t,n)=>{const o=n===e;return l.a.createElement(s.View,{style:[Xe.dot,o?Xe.selectDot:null],key:"dot_"+n})})))}}const Ze=s.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},webViewStyle:{padding:10,flex:1,flexGrow:1,borderRadius:10}});function $e(){return l.a.createElement(s.View,{style:{paddingHorizontal:10,flex:1}},l.a.createElement(s.View,{style:Ze.itemTitle},l.a.createElement(s.Text,null,"WebView 示例")),l.a.createElement(s.WebView,{source:{uri:"https://hippyjs.org"},method:"get",userAgent:"Mozilla/5.0 (Linux; U; Android 5.1.1; zh-cn; vivo X7 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko)Version/4.0 Chrome/37.0.0.0 MQQBrowser/8.2 Mobile Safari/537.36",style:Ze.webViewStyle,onLoad:({url:e})=>console.log("webview onload",e),onLoadStart:({url:e})=>console.log("webview onLoadStart",e),onLoadEnd:({url:e,success:t,error:n})=>console.log("webview onLoadEnd",e,t,n)}))}const et=s.StyleSheet.create({shadowDemo:{flex:1,overflowY:"scroll"},shadowDemoCubeAndroid:{position:"absolute",left:50,top:50,width:170,height:170,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowColor:"#4c9afa",borderRadius:5},shadowDemoContentAndroid:{position:"absolute",left:5,top:5,width:160,height:160,backgroundColor:"grey",borderRadius:5,display:"flex",justifyContent:"center",alignItems:"center"},shadowDemoCubeIos:{position:"absolute",left:50,top:50,width:160,height:160,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowSpread:1,boxShadowColor:"#4c9afa",borderRadius:5},shadowDemoContentIos:{width:160,height:160,backgroundColor:"grey",borderRadius:5,display:"flex",justifyContent:"center",alignItems:"center"},text:{color:"white"}}),tt=s.StyleSheet.create({shadowDemoCubeAndroid:{position:"absolute",left:50,top:300,width:175,height:175,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:15,boxShadowOffsetY:15,boxShadowColor:"#4c9afa"},shadowDemoContentAndroid:{width:160,height:160,backgroundColor:"grey",display:"flex",justifyContent:"center",alignItems:"center"},shadowDemoCubeIos:{position:"absolute",left:50,top:300,width:160,height:160,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:10,boxShadowOffsetY:10,boxShadowSpread:1,boxShadowColor:"#4c9afa"},shadowDemoContentIos:{width:160,height:160,backgroundColor:"grey",display:"flex",justifyContent:"center",alignItems:"center"},text:{color:"white"}});function nt(){return l.a.createElement(s.View,{style:et.shadowDemo},"android"===s.Platform.OS?l.a.createElement(s.View,{style:et.shadowDemoCubeAndroid},l.a.createElement(s.View,{style:et.shadowDemoContentAndroid},l.a.createElement(s.Text,{style:et.text},"没有偏移阴影样式"))):l.a.createElement(s.View,{style:et.shadowDemoCubeIos},l.a.createElement(s.View,{style:et.shadowDemoContentIos},l.a.createElement(s.Text,{style:et.text},"没有偏移阴影样式"))),"android"===s.Platform.OS?l.a.createElement(s.View,{style:tt.shadowDemoCubeAndroid},l.a.createElement(s.View,{style:tt.shadowDemoContentAndroid},l.a.createElement(s.Text,{style:tt.text},"偏移阴影样式"))):l.a.createElement(s.View,{style:tt.shadowDemoCubeIos},l.a.createElement(s.View,{style:tt.shadowDemoContentIos},l.a.createElement(s.Text,{style:tt.text},"偏移阴影样式"))))}const ot=ce.filter(e=>2!==e.style),rt=s.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},splitter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},pullContainer:{height:50,backgroundColor:"#4c9afa"},pullContent:{lineHeight:50,color:"white",height:50,textAlign:"center"},pullFooter:{flex:1,height:40,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}});class it extends l.a.Component{constructor(e){super(e),this.state={dataSource:[],headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",horizontal:void 0},this.numberOfColumns=2,this.columnSpacing=6,this.interItemSpacing=6,this.mockFetchData=this.mockFetchData.bind(this),this.renderItem=this.renderItem.bind(this),this.getItemType=this.getItemType.bind(this),this.getItemKey=this.getItemKey.bind(this),this.onEndReached=this.onEndReached.bind(this),this.onRefresh=this.onRefresh.bind(this),this.getRefresh=this.getRefresh.bind(this),this.renderPullFooter=this.renderPullFooter.bind(this),this.renderPullHeader=this.renderPullHeader.bind(this),this.onHeaderReleased=this.onHeaderReleased.bind(this),this.onHeaderPulling=this.onHeaderPulling.bind(this),this.onFooterPulling=this.onFooterPulling.bind(this),this.renderBanner=this.renderBanner.bind(this),this.renderFooter=this.renderFooter.bind(this),this.getItemStyle=this.getItemStyle.bind(this),this.getHeaderStyle=this.getHeaderStyle.bind(this),this.onScroll=this.onScroll.bind(this)}async componentDidMount(){const e=await this.mockFetchData();this.setState({dataSource:e})}async onEndReached(){const{dataSource:e}=this.state;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.setState({footerRefreshText:"加载更多..."});let t=[];try{t=await this.mockFetchData()}catch(e){}0===t.length&&this.setState({footerRefreshText:"没有更多数据"});const n=[...e,...t];this.setState({dataSource:n}),this.loadMoreDataFlag=!1,this.listView.collapsePullFooter()}async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.setState({headerRefreshText:"刷新数据中,请稍等"});let e=[];try{e=await this.mockFetchData()}catch(e){}this.fetchingDataFlag=!1,this.setState({dataSource:e,headerRefreshText:"2秒后收起"},()=>{this.listView.collapsePullHeader({time:2e3})})}onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>rt.pullContent.height?this.setState({headerRefreshText:"松手,即可触发刷新"}):this.setState({headerRefreshText:"继续下拉,触发刷新"}))}onFooterPulling(e){console.log("onFooterPulling",e)}renderPullFooter(){const{horizontal:e}=this.state;return e?l.a.createElement(s.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{color:"white",lineHeight:25,width:40,paddingHorizontal:15}},this.state.footerRefreshText)):l.a.createElement(s.View,{style:rt.pullFooter},l.a.createElement(s.Text,{style:{color:"white"}},this.state.footerRefreshText))}async onRefresh(){setTimeout(async()=>{const e=await this.mockFetchData();this.setState({dataSource:e}),this.refresh.refreshComplected()},1e3)}getRefresh(){return l.a.createElement(s.View,{style:{flex:1,height:40,justifyContent:"center",alignItems:"center",backgroundColor:"#4c9afa"}},l.a.createElement(s.Text,{style:{height:40,lineHeight:40,textAlign:"center",color:"white"}},"下拉刷新中..."))}onClickItem(e){console.log(`item: ${e} is clicked..`)}getItemType(e){return this.state.dataSource[e].style}getItemKey(e){return"row-"+e}onItemClick(e){console.log("onItemClick",e),this.listView.scrollToIndex({index:e,animation:!0})}onScroll(e){console.log("onScroll",e)}renderBanner(){return 0===this.state.dataSource.length?null:l.a.createElement(s.View,{style:{backgroundColor:"grey",height:100,justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{fontSize:20,color:"white",lineHeight:100,height:100}},"Banner View"))}renderFooter(){return 0===this.state.dataSource.length?null:l.a.createElement(s.View,{style:{backgroundColor:"grey",height:100,justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{fontSize:20,color:"white",lineHeight:100,height:100}},"Footer View"))}renderItem(e){const{dataSource:t}=this.state;let n=null;const o=t[e];switch(o.style){case 1:n=l.a.createElement(ye,{itemBean:o.itemBean});break;case 2:n=l.a.createElement(Se,{itemBean:o.itemBean});break;case 5:n=l.a.createElement(Ae,{itemBean:o.itemBean})}return l.a.createElement(s.View,{onClick:()=>this.onItemClick(e),style:rt.container},l.a.createElement(s.View,{style:rt.itemContainer},n),l.a.createElement(s.View,{style:rt.splitter}))}mockFetchData(){return new Promise(e=>{setTimeout(()=>{const t=[...ot,...ot];return e(t)},600)})}getWaterfallContentInset(){return{top:12,left:12,bottom:12,right:12}}getItemStyle(){const{numberOfColumns:e,columnSpacing:t}=this,n=s.Dimensions.get("screen").width-32,o=this.getWaterfallContentInset();return{width:(n-o.left-o.right-(e-1)*t)/e}}getHeaderStyle(){const{horizontal:e}=this.state;return e?{width:50}:{}}renderPullHeader(){const{headerRefreshText:e,horizontal:t}=this.state;return t?l.a.createElement(s.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{lineHeight:25,color:"white",width:40,paddingHorizontal:15}},e)):l.a.createElement(s.View,{style:rt.pullContainer},l.a.createElement(s.Text,{style:rt.pullContent},e))}render(){const{dataSource:e}=this.state,{numberOfColumns:t,columnSpacing:n,interItemSpacing:o}=this,r=this.getWaterfallContentInset();return l.a.createElement(s.WaterfallView,{ref:e=>{this.listView=e},numberOfColumns:t,columnSpacing:n,interItemSpacing:o,numberOfItems:e.length,contentInset:r,preloadItemNumber:12,style:{flex:1},onScroll:this.onScroll,renderBanner:this.renderBanner,renderFooter:this.renderFooter,renderPullHeader:this.renderPullHeader,renderPullFooter:this.renderPullFooter,onEndReached:this.onEndReached,onFooterReleased:this.onEndReached,onHeaderReleased:this.onHeaderReleased,onHeaderPulling:this.onHeaderPulling,renderItem:this.renderItem,getItemType:this.getItemType,getItemKey:this.getItemKey,getItemStyle:this.getItemStyle,getHeaderStyle:this.getHeaderStyle})}}var at=n.p+"assets/defaultSource.jpg";function lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function st(e){for(var t=1;t{i.current.setPressed(!1)},{nativeBackgroundAndroid:h,style:u}=e;return l.a.createElement(s.View,{onLayout:()=>{s.UIManagerModule.measureInAppWindow(i.current,e=>{n(e.x),r(e.y)})},style:u,onTouchDown:e=>{i.current.setHotspot(e.page_x-t,e.page_y-o),i.current.setPressed(!0)},onTouchEnd:c,onTouchCancel:c,ref:i,nativeBackgroundAndroid:st(st({},ct),h)},e.children)}const ut=s.StyleSheet.create({imgRectangle:{width:260,height:56,alignItems:"center",justifyContent:"center"},circleRipple:{marginTop:30,width:150,height:56,alignItems:"center",justifyContent:"center",borderWidth:3,borderStyle:"solid",borderColor:"#4c9afa"},squareRipple:{alignItems:"center",justifyContent:"center",width:150,height:150,backgroundColor:"#4c9afa",marginTop:30,borderRadius:12,overflow:"hidden"},squareRippleWrapper:{alignItems:"flex-start",justifyContent:"center",height:150,marginTop:30},squareRipple1:{alignItems:"center",justifyContent:"center",width:150,height:150,borderWidth:5,borderStyle:"solid",backgroundSize:"cover",borderColor:"#4c9afa",backgroundImage:at,paddingHorizontal:10},squareRipple2:{alignItems:"center",justifyContent:"center",width:150,height:150,paddingHorizontal:10,backgroundSize:"cover",backgroundImage:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}});function dt(){return"ios"===s.Platform.OS?l.a.createElement(s.Text,null,"iOS暂未支持水波纹效果"):l.a.createElement(s.ScrollView,{style:{margin:10,flex:1}},l.a.createElement(s.View,{style:[ut.imgRectangle,{marginTop:20,backgroundImage:at,backgroundSize:"cover"}]},l.a.createElement(ht,{style:[ut.imgRectangle],nativeBackgroundAndroid:{borderless:!0,color:"#666666"}},l.a.createElement(s.Text,{style:{color:"white",maxWidth:200}},"外层背景图,内层无边框水波纹,受外层影响始终有边框"))),l.a.createElement(ht,{style:[ut.circleRipple],nativeBackgroundAndroid:{borderless:!0,color:"#666666",rippleRadius:100}},l.a.createElement(s.Text,{style:{color:"black",textAlign:"center"}},"无边框圆形水波纹")),l.a.createElement(ht,{style:[ut.squareRipple],nativeBackgroundAndroid:{borderless:!1,color:"#666666"}},l.a.createElement(s.Text,{style:{color:"#fff"}},"带背景色水波纹")),l.a.createElement(s.View,{style:[ut.squareRippleWrapper]},l.a.createElement(ht,{style:[ut.squareRipple1],nativeBackgroundAndroid:{borderless:!1,color:"#666666"}},l.a.createElement(s.Text,{style:{color:"white"}},"有边框水波纹,带本地底图效果"))),l.a.createElement(s.View,{style:[ut.squareRippleWrapper]},l.a.createElement(ht,{style:[ut.squareRipple2],nativeBackgroundAndroid:{borderless:!1,color:"#666666"}},l.a.createElement(s.Text,{style:{color:"black"}},"有边框水波纹,带网络底图效果"))))}const mt="#4c9afa",gt="#f44837",ft=s.StyleSheet.create({container:{paddingHorizontal:10},square:{width:80,height:80,backgroundColor:gt},showArea:{height:150,marginVertical:10},button:{borderColor:mt,borderWidth:2,borderStyle:"solid",justifyContent:"center",alignItems:"center",width:70,borderRadius:8,height:50,marginTop:20,marginRight:8},buttonText:{fontSize:20,color:mt,textAlign:"center",textAlignVertical:"center"},colorText:{fontSize:14,color:"white",textAlign:"center",textAlignVertical:"center"},buttonContainer:{flexDirection:"row",alignItems:"center"},title:{fontSize:24,marginTop:8}});class yt extends l.a.Component{constructor(e){super(e),this.state={}}componentWillMount(){this.horizonAnimation=new s.Animation({startValue:150,toValue:20,duration:1e3,delay:500,mode:"timing",timingFunction:"linear",repeatCount:"loop"}),this.verticalAnimation=new s.Animation({startValue:80,toValue:40,duration:1e3,delay:0,mode:"timing",timingFunction:"linear",repeatCount:"loop"}),this.scaleAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:1,toValue:1.2,duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:1.2,toValue:.2,duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.rotateAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:0,toValue:180,duration:2e3,delay:0,valueType:"deg",mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:180,toValue:360,duration:2e3,delay:0,valueType:"deg",mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.skewXAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:0,toValue:20,duration:2e3,delay:0,mode:"timing",valueType:"deg",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:20,toValue:0,duration:2e3,delay:0,mode:"timing",valueType:"deg",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.skewYAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:0,toValue:20,duration:2e3,delay:0,mode:"timing",valueType:"deg",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:20,toValue:0,duration:2e3,delay:0,mode:"timing",valueType:"deg",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.bgColorAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:"red",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:"yellow",toValue:"blue",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.txtColorAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:"white",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:"yellow",toValue:"white",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.cubicBezierScaleAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:0,toValue:1,duration:1e3,delay:0,mode:"timing",timingFunction:"cubic-bezier(.45,2.84,.38,.5)"}),follow:!1},{animation:new s.Animation({startValue:1,toValue:0,duration:1e3,mode:"timing",timingFunction:"cubic-bezier(.17,1.45,.78,.14)"}),follow:!0}],repeatCount:"loop"})}componentDidMount(){"web"===s.Platform.OS&&(this.verticalAnimation.setRef(this.verticalRef),this.horizonAnimation.setRef(this.horizonRef),this.scaleAnimationSet.setRef(this.scaleRef),this.bgColorAnimationSet.setRef(this.bgColorRef),this.txtColorAnimationSet.setRef(this.textColorRef),this.txtColorAnimationSet.setRef(this.textColorRef),this.cubicBezierScaleAnimationSet.setRef(this.cubicBezierScaleRef),this.rotateAnimationSet.setRef(this.rotateRef),this.skewXAnimationSet.setRef(this.skewRef),this.skewYAnimationSet.setRef(this.skewRef)),this.horizonAnimation.onAnimationStart(()=>{console.log("on animation start!!!")}),this.horizonAnimation.onAnimationEnd(()=>{console.log("on animation end!!!")}),this.horizonAnimation.onAnimationCancel(()=>{console.log("on animation cancel!!!")}),this.horizonAnimation.onAnimationRepeat(()=>{console.log("on animation repeat!!!")})}componentWillUnmount(){this.horizonAnimation&&this.horizonAnimation.destroy(),this.verticalAnimation&&this.verticalAnimation.destroy(),this.scaleAnimationSet&&this.scaleAnimationSet.destroy(),this.bgColorAnimationSet&&this.bgColorAnimationSet.destroy(),this.txtColorAnimationSet&&this.txtColorAnimationSet.destroy(),this.cubicBezierScaleAnimationSet&&this.cubicBezierScaleAnimationSet.destroy(),this.rotateAnimationSet&&this.rotateAnimationSet.destroy(),this.skewXAnimationSet&&this.skewXAnimationSet.destroy(),this.skewYAnimationSet&&this.skewYAnimationSet.destroy()}render(){return l.a.createElement(s.ScrollView,{style:ft.container},l.a.createElement(s.Text,{style:ft.title},"水平位移动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.horizonAnimation.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.horizonAnimation.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.horizonAnimation.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.horizonAnimation.updateAnimation({startValue:50,toValue:100})}},l.a.createElement(s.Text,{style:ft.buttonText},"更新"))),l.a.createElement(s.View,{style:ft.showArea},l.a.createElement(s.View,{ref:e=>{this.horizonRef=e},style:[ft.square,{transform:[{translateX:this.horizonAnimation}]}]})),l.a.createElement(s.Text,{style:ft.title},"高度形变动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.verticalAnimation.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.verticalAnimation.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.verticalAnimation.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:ft.showArea},l.a.createElement(s.View,{ref:e=>{this.verticalRef=e},style:[ft.square,{height:this.verticalAnimation}]})),l.a.createElement(s.Text,{style:ft.title},"旋转动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.rotateAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.rotateAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.rotateAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:ft.showArea},l.a.createElement(s.View,{ref:e=>{this.rotateRef=e},style:[ft.square,{transform:[{rotate:this.rotateAnimationSet}]}]})),l.a.createElement(s.Text,{style:ft.title},"倾斜动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.skewXAnimationSet.start(),this.skewYAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.skewXAnimationSet.pause(),this.skewYAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.skewXAnimationSet.resume(),this.skewYAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:ft.showArea},l.a.createElement(s.View,{ref:e=>{this.skewRef=e},style:[ft.square,{transform:[{skewX:this.skewXAnimationSet},{skewY:this.skewYAnimationSet}]}]})),l.a.createElement(s.Text,{style:ft.title},"缩放动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.scaleAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.scaleAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.scaleAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:[ft.showArea,{marginVertical:20}]},l.a.createElement(s.View,{ref:e=>{this.scaleRef=e},style:[ft.square,{transform:[{scale:this.scaleAnimationSet}]}]})),l.a.createElement(s.Text,{style:ft.title},"颜色渐变动画(文字渐变仅Android支持)"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.bgColorAnimationSet.start(),this.txtColorAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.bgColorAnimationSet.pause(),this.txtColorAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.bgColorAnimationSet.resume(),this.txtColorAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:[ft.showArea,{marginVertical:20}]},l.a.createElement(s.View,{ref:e=>{this.bgColorRef=e},style:[ft.square,{justifyContent:"center",alignItems:"center"},{backgroundColor:this.bgColorAnimationSet}]},l.a.createElement(s.Text,{ref:e=>{this.textColorRef=e},style:[ft.colorText,{color:"android"===s.Platform.OS?this.txtColorAnimationSet:"white"}]},"颜色渐变背景和文字"))),l.a.createElement(s.Text,{style:ft.title},"贝塞尔曲线动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.cubicBezierScaleAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.cubicBezierScaleAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.cubicBezierScaleAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:[ft.showArea,{marginVertical:20}]},l.a.createElement(s.View,{ref:e=>{this.cubicBezierScaleRef=e},style:[ft.square,{transform:[{scale:this.cubicBezierScaleAnimationSet}]}]})))}}const pt=s.StyleSheet.create({containerStyle:{margin:20,alignItems:"center",flexDirection:"column"},itemGroupStyle:{flexDirection:"row",marginTop:10,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",width:100,height:40,justifyContent:"center",alignItems:"center"},viewGroupStyle:{flexDirection:"row",marginTop:10},infoStyle:{width:60,height:40,fontSize:16,color:"#4c9afa",textAlign:"center"},inputStyle:{width:200,height:40,placeholderTextColor:"#aaaaaa",underlineColorAndroid:"#4c9afa",fontSize:16,color:"#242424",textAlign:"left"},buttonStyle:{textAlign:"center",fontSize:16,color:"#4c9afa",backgroundColor:"#4c9afa11",marginLeft:10,marginRight:10}});class bt extends l.a.Component{constructor(e){super(e),this.state={result:""},this.onTextChangeKey=this.onTextChangeKey.bind(this),this.onTextChangeValue=this.onTextChangeValue.bind(this),this.onClickSet=this.onClickSet.bind(this),this.onTextChangeKey=this.onTextChangeKey.bind(this),this.onClickGet=this.onClickGet.bind(this)}onClickSet(){const{key:e,value:t}=this.state;e&&s.AsyncStorage.setItem(e,t)}onClickGet(){const{key:e}=this.state;e&&s.AsyncStorage.getItem(e).then(e=>{this.setState({result:e})})}onTextChangeKey(e){this.setState({key:e})}onTextChangeValue(e){this.setState({value:e})}render(){const{result:e}=this.state;return l.a.createElement(s.ScrollView,{style:pt.containerStyle},l.a.createElement(s.View,{style:pt.viewGroupStyle},l.a.createElement(s.Text,{style:pt.infoStyle},"Key:"),l.a.createElement(s.TextInput,{style:pt.inputStyle,onChangeText:this.onTextChangeKey})),l.a.createElement(s.View,{style:pt.viewGroupStyle},l.a.createElement(s.Text,{style:pt.infoStyle},"Value:"),l.a.createElement(s.TextInput,{style:pt.inputStyle,onChangeText:this.onTextChangeValue})),l.a.createElement(s.View,{style:pt.itemGroupStyle,onClick:this.onClickSet},l.a.createElement(s.Text,{style:pt.buttonStyle},"Set")),l.a.createElement(s.View,{style:[pt.viewGroupStyle,{marginTop:60}]},l.a.createElement(s.Text,{style:pt.infoStyle},"Key:"),l.a.createElement(s.TextInput,{style:pt.inputStyle,onChangeText:this.onTextChangeKey})),l.a.createElement(s.View,{style:[pt.viewGroupStyle,{display:"none"}]},l.a.createElement(s.Text,{style:pt.infoStyle},"Value:"),l.a.createElement(s.Text,{style:[pt.infoStyle,{width:200}]},e)),l.a.createElement(s.View,{style:pt.itemGroupStyle,onClick:this.onClickGet},l.a.createElement(s.Text,{style:pt.buttonStyle},"Get")))}}const wt=s.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},wrapper:{borderColor:"#eee",borderWidth:1,borderStyle:"solid",paddingHorizontal:10,paddingVertical:5,marginVertical:10,flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start"},infoContainer:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",marginTop:5,marginBottom:5,flexWrap:"wrap"},infoText:{collapsable:!1,marginVertical:5}});class xt extends l.a.Component{constructor(e){super(e),this.state={netInfoStatusTxt:"",netInfoChangeTxt:"",fetchInfoTxt:"",cookies:""},this.listener=null}async fetchNetInfoStatus(){this.setState({netInfoStatusTxt:await s.NetInfo.fetch()})}fetchUrl(){fetch("https://hippyjs.org",{mode:"no-cors"}).then(e=>(this.setState({fetchInfoTxt:"成功状态: "+e.status}),e)).catch(e=>{this.setState({fetchInfoTxt:"收到错误: "+e})})}setCookies(){s.NetworkModule.setCookie("https://hippyjs.org","name=hippy;network=mobile")}getCookies(){s.NetworkModule.getCookies("https://hippyjs.org").then(e=>{this.setState({cookies:e})})}async componentWillMount(){const e=this;this.listener=s.NetInfo.addEventListener("change",t=>{e.setState({netInfoChangeTxt:""+t.network_info})})}componentWillUnmount(){this.listener&&s.NetInfo.removeEventListener("change",this.listener)}componentDidMount(){this.fetchUrl(),this.fetchNetInfoStatus()}render(){const{netInfoStatusTxt:e,fetchInfoTxt:t,netInfoChangeTxt:n,cookies:o}=this.state,r=e=>l.a.createElement(s.View,{style:wt.itemTitle},l.a.createElement(s.Text,null,e));return l.a.createElement(s.ScrollView,{style:{paddingHorizontal:10}},r("Fetch"),l.a.createElement(s.View,{style:[wt.wrapper]},l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10},onClick:()=>this.fetchUrl()},l.a.createElement(s.Text,{style:{color:"white"}},"请求 hippy 网址:")),l.a.createElement(s.Text,{style:wt.infoText},t))),r("NetInfo"),l.a.createElement(s.View,{style:[wt.wrapper]},l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10},onClick:()=>this.fetchNetInfoStatus()},l.a.createElement(s.Text,{style:{color:"white"}},"获取网络状态:")),l.a.createElement(s.Text,{style:wt.infoText},e)),l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10}},l.a.createElement(s.Text,{style:{color:"white"}},"监听网络变化:")),l.a.createElement(s.Text,{style:wt.infoText},n))),r("NetworkModule"),l.a.createElement(s.View,{style:[wt.wrapper]},l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10},onClick:()=>this.setCookies()},l.a.createElement(s.Text,{style:{color:"white"}},"设置Cookies:")),l.a.createElement(s.Text,{style:wt.infoText},"name=hippy;network=mobile")),l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10},onClick:()=>this.getCookies()},l.a.createElement(s.Text,{style:{color:"white"}},"获取Cookies:")),l.a.createElement(s.Text,{style:wt.infoText},o))))}}const St=s.StyleSheet.create({fullScreen:{flex:1},row:{flexDirection:"row"},title:{color:"#ccc"},button:{height:56,backgroundColor:"#4c9afa",borderColor:"#5dabfb",borderStyle:"solid",borderWidth:1,paddingHorizontal:20,fontSize:16,textAlign:"center",lineHeight:56,color:"#fff",margin:10},input:{color:"black",flex:1,height:36,lineHeight:36,fontSize:14,borderBottomColor:"#4c9afa",borderBottomStyle:"solid",borderBottomWidth:1,padding:0},output:{color:"black"}}),Et="wss://echo.websocket.org",Tt="Rock it with Hippy WebSocket";let Ct;var At=function(){const e=Object(a.useRef)(null),t=Object(a.useRef)(null),[n,o]=Object(a.useState)([]),r=e=>{o(t=>[e,...t])};return l.a.createElement(s.View,{style:St.fullScreen},l.a.createElement(s.View,null,l.a.createElement(s.Text,{style:St.title},"Url:"),l.a.createElement(s.TextInput,{ref:e,value:Et,style:St.input}),l.a.createElement(s.View,{style:St.row},l.a.createElement(s.Text,{onClick:()=>{e.current.getValue().then(e=>{Ct&&1===Ct.readyState&&Ct.close(),Ct=new WebSocket(e),Ct.onopen=()=>r("[Opened] "+Ct.url),Ct.onclose=()=>r("[Closed] "+Ct.url),Ct.onerror=e=>r("[Error] "+e.reason),Ct.onmessage=e=>r("[Received] "+e.data)})},style:St.button},"Connect"),l.a.createElement(s.Text,{onClick:()=>Ct.close(),style:St.button},"Disconnect"))),l.a.createElement(s.View,null,l.a.createElement(s.Text,{style:St.title},"Message:"),l.a.createElement(s.TextInput,{ref:t,value:Tt,style:St.input}),l.a.createElement(s.Text,{onClick:()=>t.current.getValue().then(e=>{r("[Sent] "+e),Ct.send(e)}),style:St.button},"Send")),l.a.createElement(s.View,null,l.a.createElement(s.Text,{style:St.title},"Log:"),l.a.createElement(s.ScrollView,{style:St.fullScreen},n.map((e,t)=>l.a.createElement(s.Text,{key:t,style:St.output},e)))))};function vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Rt(e){for(var t=1;t{const e=s.Dimensions.get("screen");({width:t,height:n}=e)});const[o,r]=Object(a.useState)({width:100,height:100,top:10,left:10}),[i,c]=Object(a.useState)({width:0,height:0,x:0,y:0}),h=async(t=!1)=>{try{const n=await s.UIManagerModule.getBoundingClientRect(e.current,{relToContainer:t});c(n)}catch(e){console.error("getBoxPosition error",e)}},u=Rt(Rt({},Vt.box),o);return l.a.createElement(s.View,{style:Vt.full},l.a.createElement(s.View,{style:Vt.demoContent},l.a.createElement(s.View,{ref:e,style:u},l.a.createElement(s.Text,{style:Vt.text,numberOfLines:2},"I am the box"))),l.a.createElement(s.View,{style:Vt.buttonContainer},l.a.createElement(s.View,{onClick:()=>{const e=kt(0,t-100),o=kt(0,n-450),i=kt(80,120);r({left:e,top:o,width:i,height:i})},style:Vt.button},l.a.createElement(s.Text,{style:Vt.buttonText},"Move position")),l.a.createElement(s.View,{onClick:()=>h(!1),style:Vt.button},l.a.createElement(s.Text,{style:Vt.buttonText},"Measure in App Window")),l.a.createElement(s.View,{onClick:()=>h(!0),style:Vt.button},l.a.createElement(s.Text,{style:Vt.buttonText},"Measure in Container(RootView)"))),l.a.createElement(s.View,{style:Vt.row},l.a.createElement(s.View,null,l.a.createElement(s.Text,null,"Box style:"),l.a.createElement(s.Text,{style:Vt.black},"Width: "+u.width),l.a.createElement(s.Text,{style:Vt.black},"Height: "+u.height),l.a.createElement(s.Text,{style:Vt.black},"Left: "+u.left),l.a.createElement(s.Text,{style:Vt.black},"Top: "+u.top)),l.a.createElement(s.View,null,l.a.createElement(s.Text,null,"getBoundingClientRect output:"),l.a.createElement(s.Text,{style:Vt.black},"Width: "+i.width),l.a.createElement(s.Text,{style:Vt.black},"Height: "+i.height),l.a.createElement(s.Text,{style:Vt.black},"X: "+i.x),l.a.createElement(s.Text,{style:Vt.black},"Y: "+i.y))))};const Ot=s.StyleSheet.create({style_indicator_item:{width:4,height:4,marginLeft:2.5,marginRight:2.5,borderRadius:2},style_indicator:{position:"absolute",bottom:6,left:0,right:0,marginLeft:0,marginRight:0,alignItems:"center",justifyContent:"center",flexDirection:"row",pointerEvents:"none"}});class Dt extends l.a.Component{constructor(e){super(e),this.state={current:e.current||0}}update(e){const{current:t}=this.state;t!==e&&this.setState({current:e})}render(){const{count:e}=this.props,{current:t}=this.state,n=[];for(let o=0;o=r||(this.indicator&&this.indicator.update(o),this.currentIndex=o)}onScrollBeginDrag(){this.touchStartOffset=this.scrollOffset,this.doClearTimer()}onScrollEndDrag(){this.doCreateTimer()}onLayout(e){this.width=e.layout.width}doSwitchPage(e){this.scrollView.scrollTo({x:this.imgWidth*e,y:0,animated:!0})}doCreateTimer(){this.doClearTimer(),this.duration<=0||(this.interval=setInterval(()=>{this.doSwitchPage((this.currentIndex+1)%this.itemCount)},this.duration))}doClearTimer(){this.interval&&clearInterval(this.interval),this.interval=null}render(){const{images:e}=this.props,t=[];for(let n=0;n{this.scrollView=e}},t),l.a.createElement(Dt,{ref:e=>{this.indicator=e},count:this.itemCount}))}}_()(Pt,"defaultProps",{duration:0,currentPage:0,images:[]});const jt=["https://user-images.githubusercontent.com/12878546/148736627-bca54707-6939-45b3-84f7-74e6c2c09c88.jpg","https://user-images.githubusercontent.com/12878546/148736679-0521fdff-09f5-40e3-a36a-55c8f714be16.jpg","https://user-images.githubusercontent.com/12878546/148736685-a4c226ad-f64a-4fe0-b3df-ce0d8fcd7a01.jpg"],Lt=s.StyleSheet.create({sliderStyle:{width:400,height:180},infoStyle:{height:40,fontSize:16,color:"#4c9afa",marginTop:15}});function Bt(){return l.a.createElement(s.ScrollView,null,l.a.createElement(s.Text,{style:Lt.infoStyle},"Auto:"),l.a.createElement(Pt,{style:Lt.sliderStyle,images:jt,duration:1e3}),l.a.createElement(s.Text,{style:Lt.infoStyle},"Manual:"),l.a.createElement(Pt,{style:Lt.sliderStyle,images:jt,duration:0}))}const Mt=s.StyleSheet.create({container:{height:45,paddingLeft:4,flexDirection:"row",backgroundColor:"#ffffff",borderBottomColor:"#E5E5E5",borderBottomWidth:1,borderStyle:"solid"},scroll:{flex:1,height:44},navItem:{width:60,height:44,paddingTop:13},navItemText:{fontSize:16,lineHeight:17,textAlign:"center",backgroundColor:"#ffffff"},navItemTextNormal:{color:"#666666"},navItemTextBlue:{color:"#2D73FF"}});class Ft extends l.a.Component{constructor(e){super(e),this.state={curIndex:0,navList:["头条","推荐","圈子","NBA","中超","英超","西甲","CBA","澳网","电影","本地","娱乐","小说","生活","直播","游戏"]},this.navScrollView=null,this.viewPager=null,this.onViewPagerChange=this.onViewPagerChange.bind(this),this.pressNavItem=this.pressNavItem.bind(this),this.scrollSV=this.scrollSV.bind(this)}static getPage(e,t){switch(t%3){case 0:return qe(e);case 1:return Ye(e);case 2:return Qe(e);default:return null}}componentDidUpdate(){this.scrollSV()}onViewPagerChange({position:e}){this.setState({curIndex:e})}scrollSV(){if(this.navScrollView){const{curIndex:e,navList:t}=this.state,n=t.length,o=de.getScreenWidth(),r=o/2/60,i=60*nn-r?60*n-o:60*e-60*r+30,this.navScrollView.scrollTo({x:a,y:0,animated:!0})}}pressNavItem(e){this.setState({curIndex:e}),this.viewPager&&this.viewPager.setPage(e)}renderNav(){const{navList:e,curIndex:t}=this.state;return l.a.createElement(s.View,{style:Mt.container},l.a.createElement(s.ScrollView,{style:Mt.scroll,horizontal:!0,showsHorizontalScrollIndicator:!1,ref:e=>{this.navScrollView=e}},e.map((e,n)=>l.a.createElement(s.View,{style:Mt.navItem,key:"nav_"+e,activeOpacity:.5,onClick:()=>this.pressNavItem(n)},l.a.createElement(s.Text,{style:[Mt.navItemText,t===n?Mt.navItemTextBlue:Mt.navItemTextNormal],numberOfLines:1},e)))))}render(){const{navList:e}=this.state;return l.a.createElement(s.View,{style:{flex:1,backgroundColor:"#ffffff"}},this.renderNav(),l.a.createElement(s.ViewPager,{ref:e=>{this.viewPager=e},style:{flex:1},initialPage:0,onPageSelected:this.onViewPagerChange},e.map((e,t)=>Ft.getPage(e,t))))}}const{width:zt}=s.Dimensions.get("window"),Ht=s.StyleSheet.create({setNativePropsDemo:{display:"flex",alignItems:"center",position:"relative"},nativeDemo1Drag:{height:80,width:zt,backgroundColor:"#4c9afa",position:"relative",marginTop:10},nativeDemo1Point:{height:80,width:80,color:"#4cccfa",backgroundColor:"#4cccfa",position:"absolute",left:0},nativeDemo2Drag:{height:80,width:zt,backgroundColor:"#4c9afa",position:"relative",marginTop:10},nativeDemo2Point:{height:80,width:80,color:"#4cccfa",backgroundColor:"#4cccfa",position:"absolute",left:0},splitter:{marginTop:50}});class _t extends l.a.Component{constructor(e){super(e),this.demon1Point=l.a.createRef(),this.demo1PointDom=null,this.state={demo2Left:0},this.isDemon1Layouted=!1,this.idDemon2Layouted=!1,this.onTouchDown1=this.onTouchDown1.bind(this),this.onDemon1Layout=this.onDemon1Layout.bind(this),this.onTouchMove1=this.onTouchMove1.bind(this),this.onTouchDown2=this.onTouchDown2.bind(this),this.onTouchMove2=this.onTouchMove2.bind(this)}componentDidMount(){}onDemon1Layout(){this.isDemon1Layouted||(this.isDemon1Layouted=!0,this.demo1PointDom=s.UIManagerModule.getElementFromFiberRef(this.demon1Point.current))}onTouchDown1(e){const{page_x:t}=e,n=t-40;console.log("touchdown x",t,n,zt),this.demo1PointDom&&this.demo1PointDom.setNativeProps({style:{left:n}})}onTouchMove1(e){const{page_x:t}=e,n=t-40;console.log("touchmove x",t,n,zt),this.demo1PointDom&&this.demo1PointDom.setNativeProps({style:{left:n}})}onTouchDown2(e){const{page_x:t}=e,n=t-40;console.log("touchdown x",t,n,zt),this.setState({demo2Left:n})}onTouchMove2(e){const{page_x:t}=e,n=t-40;console.log("touchmove x",t,n,zt),this.setState({demo2Left:n})}render(){const{demo2Left:e}=this.state;return l.a.createElement(s.View,{style:Ht.setNativePropsDemo},l.a.createElement(s.Text,null,"setNativeProps实现拖动效果"),l.a.createElement(s.View,{style:Ht.nativeDemo1Drag,onTouchDown:this.onTouchDown1,onTouchMove:this.onTouchMove1},l.a.createElement(s.View,{onLayout:this.onDemon1Layout,style:Ht.nativeDemo1Point,ref:this.demon1Point})),l.a.createElement(s.View,{style:Ht.splitter}),l.a.createElement(s.Text,null,"普通渲染实现拖动效果"),l.a.createElement(s.View,{style:Ht.nativeDemo2Drag,onTouchDown:this.onTouchDown2,onTouchMove:this.onTouchMove2},l.a.createElement(s.View,{style:[Ht.nativeDemo2Point,{left:e}]})))}}const Wt=s.StyleSheet.create({dynamicImportDemo:{marginTop:20,display:"flex",flex:1,alignItems:"center",position:"relative",flexDirection:"column"}});class Nt extends l.a.Component{constructor(e){super(e),this.state={AsyncComponentFromLocal:null,AsyncComponentFromHttp:null},this.onAsyncComponentLoad=this.onAsyncComponentLoad.bind(this)}onAsyncComponentLoad(){console.log("load async component"),n.e(1).then(n.bind(null,"./src/externals/DyanmicImport/AsyncComponentLocal.jsx")).then(e=>{this.setState({AsyncComponentFromLocal:e.default||e})}).catch(e=>console.error("import async local component error",e)),n.e(0).then(n.bind(null,"./src/externals/DyanmicImport/AsyncComponentHttp.jsx")).then(e=>{this.setState({AsyncComponentFromHttp:e.default||e})}).catch(e=>console.error("import async remote component error",e))}render(){const{AsyncComponentFromLocal:e,AsyncComponentFromHttp:t}=this.state;return l.a.createElement(s.View,{style:Wt.dynamicImportDemo},l.a.createElement(s.View,{style:{width:130,height:40,textAlign:"center",backgroundColor:"#4c9afa",borderRadius:5},onTouchDown:this.onAsyncComponentLoad},l.a.createElement(s.Text,{style:{height:40,lineHeight:40,textAlign:"center"}},"点我异步加载")),l.a.createElement(s.View,{style:{marginTop:20}},e?l.a.createElement(e,null):null,t?l.a.createElement(t,null):null))}}const Kt=s.StyleSheet.create({LocalizationDemo:{marginTop:20,display:"flex",flex:1,alignItems:"center",position:"relative",flexDirection:"column"}});class Ut extends l.a.Component{render(){const{country:e,language:t,direction:n}=s.Platform.Localization||{};return l.a.createElement(s.View,{style:Kt.LocalizationDemo},l.a.createElement(s.View,{style:{height:40,textAlign:"center",backgroundColor:"#4c9afa",borderRadius:5},onTouchDown:this.onAsyncComponentLoad},l.a.createElement(s.Text,{style:{color:"white",marginHorizontal:30,height:40,lineHeight:40,textAlign:"center"}},`国际化相关信息:国家 ${e} | 语言 ${t} | 方向 ${1===n?"RTL":"LTR"}`)))}}const Gt=()=>getTurboModule("demoTurbo").getTurboConfig(),qt=s.StyleSheet.create({container:{flex:1},cellContentView:{flexDirection:"row",justifyContent:"space-between",backgroundColor:"#ccc",marginBottom:1},funcInfo:{justifyContent:"center",paddingLeft:15,paddingRight:15},actionButton:{backgroundColor:"#4c9afa",color:"#fff",height:44,lineHeight:44,textAlign:"center",width:80,borderRadius:6},resultView:{backgroundColor:"darkseagreen",minHeight:150,padding:15}});class Qt extends l.a.Component{constructor(e){super(e),this.state={config:null,result:"",funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"]},this.onTurboFunc=this.onTurboFunc.bind(this),this.getRenderRow=this.getRenderRow.bind(this),this.getRowKey=this.getRowKey.bind(this)}async onTurboFunc(e){let t;if("nativeWithPromise"===e)t=await(async e=>turboPromise(getTurboModule("demoTurbo").nativeWithPromise)(e))("aaa");else if("getTurboConfig"===e)this.config=Gt(),t="获取到config对象";else if("printTurboConfig"===e)n=this.config||Gt(),t=getTurboModule("demoTurbo").printTurboConfig(n);else if("getInfo"===e)t=(this.config||Gt()).getInfo();else if("setInfo"===e)(this.config||Gt()).setInfo("Hello World"),t="设置config信息成功";else{t={getString:()=>{return e="123",getTurboModule("demoTurbo").getString(e);var e},getNum:()=>{return e=1024,getTurboModule("demoTurbo").getNum(e);var e},getBoolean:()=>{return e=!0,getTurboModule("demoTurbo").getBoolean(e);var e},getMap:()=>{return e=new Map([["a","1"],["b",2]]),getTurboModule("demoTurbo").getMap(e);var e},getObject:()=>{return e={c:"3",d:"4"},getTurboModule("demoTurbo").getObject(e);var e},getArray:()=>{return e=["a","b","c"],getTurboModule("demoTurbo").getArray(e);var e}}[e]()}var n;this.setState({result:t})}renderResultView(){return l.a.createElement(s.View,{style:qt.resultView},l.a.createElement(s.Text,{style:{backgroundColor:"darkseagreen"}},""+this.state.result))}getRenderRow(e){const{funList:t}=this.state;return l.a.createElement(s.View,{style:qt.cellContentView},l.a.createElement(s.View,{style:qt.funcInfo},l.a.createElement(s.Text,{numberofLines:0},"函数名:",t[e])),l.a.createElement(s.Text,{style:qt.actionButton,onClick:()=>this.onTurboFunc(t[e])},"执行"))}getRowKey(e){const{funList:t}=this.state;return t[e]}render(){const{funList:e}=this.state;return l.a.createElement(s.View,{style:qt.container},this.renderResultView(),l.a.createElement(s.ListView,{numberOfRows:e.length,renderRow:this.getRenderRow,getRowKey:this.getRowKey,style:{flex:1}}))}}const Yt=s.StyleSheet.create({demoWrap:{horizontal:!1,flex:1,flexDirection:"column"},banner:{backgroundImage:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",backgroundSize:"cover",height:150,justifyContent:"flex-end"},bannerText:{color:"coral",textAlign:"center"},tabs:{flexDirection:"row",height:30},tabText:{flex:1,textAlign:"center",backgroundColor:"#eee",color:"#999"},tabSelected:{flex:1,textAlign:"center",color:"#4c9afa",backgroundColor:"#fff"},itemEven:{height:40,backgroundColor:"gray"},itemEvenText:{lineHeight:40,color:"white",fontSize:20,textAlign:"center"},itemOdd:{height:40},itemOddText:{lineHeight:40,fontSize:20,textAlign:"center"}});class Xt extends l.a.Component{constructor(e){super(e),this.state={layoutHeight:0,currentSlide:0}}selectPage(e){var t;this.setState({currentSlide:e}),null===(t=this.viewPager)||void 0===t||t.setPage(e)}render(){const{layoutHeight:e,currentSlide:t}=this.state;return l.a.createElement(s.ScrollView,{style:Yt.demoWrap,scrollEventThrottle:50,onLayout:e=>this.setState({layoutHeight:e.layout.height})},l.a.createElement(s.View,{style:Yt.banner}),l.a.createElement(s.View,{style:Yt.tabs},l.a.createElement(s.Text,{key:"tab1",style:0===t?Yt.tabSelected:Yt.tabText,onClick:()=>this.selectPage(0)},"tab 1 (parent first)"),l.a.createElement(s.Text,{key:"tab2",style:1===t?Yt.tabSelected:Yt.tabText,onClick:()=>this.selectPage(1)},"tab 2 (self first)")),l.a.createElement(s.ViewPager,{ref:e=>this.viewPager=e,initialPage:t,style:{height:e-80},onPageSelected:e=>this.setState({currentSlide:e.position})},l.a.createElement(s.ListView,{nestedScrollTopPriority:"parent",key:"slide1",numberOfRows:30,getRowKey:e=>"item"+e,initialListSize:30,renderRow:e=>l.a.createElement(s.Text,{style:e%2?Yt.itemEvenText:Yt.itemOddText},"Item ",e),getRowStyle:e=>e%2?Yt.itemEven:Yt.itemOdd}),l.a.createElement(s.ListView,{nestedScrollTopPriority:"self",key:"slide2",numberOfRows:30,getRowKey:e=>"item"+e,initialListSize:30,renderRow:e=>l.a.createElement(s.Text,{style:e%2?Yt.itemEvenText:Yt.itemOddText},"Item ",e),getRowStyle:e=>e%2?Yt.itemEven:Yt.itemOdd})))}}function Jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Zt(e){for(var t=1;t 组件",component:$t.View,meta:{type:en.COMPONENT}},{path:"/Text",name:" 组件",component:$t.Text,meta:{type:en.COMPONENT}},{path:"/Image",name:" 组件",component:$t.Image,meta:{type:en.COMPONENT}},{path:"/ListView",name:" 组件",component:$t.ListView,meta:{type:en.COMPONENT}},{path:"/WaterfallView",name:" 组件",component:$t.WaterfallView,meta:{type:en.COMPONENT}},{path:"/PullHeader",name:" 组件",component:$t.PullHeaderFooter,meta:{type:en.COMPONENT}},{path:"/RefreshWrapper",name:" 组件",component:$t.RefreshWrapper,meta:{type:en.COMPONENT}},{path:"/ScrollView",name:" 组件",component:$t.ScrollView,meta:{type:en.COMPONENT}},{path:"/ViewPager",name:" 组件",component:$t.ViewPager,meta:{type:en.COMPONENT}},{path:"/TextInput",name:" 组件",component:$t.TextInput,meta:{type:en.COMPONENT}},{path:"/Modal",name:" 组件",component:$t.Modal,meta:{type:en.COMPONENT}},{path:"/Slider",name:" 组件",component:$t.Slider,meta:{type:en.COMPONENT}},{path:"/TabHost",name:" 组件",component:$t.TabHost,meta:{type:en.COMPONENT}},{path:"/WebView",name:" 组件",component:$t.WebView,meta:{type:en.COMPONENT}},{path:"/RippleViewAndroid",name:" 组件",component:$t.RippleViewAndroid,meta:{type:en.COMPONENT}},{path:"/Moduels",name:"Modules",meta:{type:en.TITLE,mapType:en.MODULE}},{path:"/Animation",name:"Animation 模块",component:$t.Animation,meta:{type:en.MODULE}},{path:"/WebSocket",name:"WebSocket 模块",component:$t.WebSocket,meta:{type:en.MODULE}},{path:"/NetInfo",name:"Network 模块",component:$t.NetInfo,meta:{type:en.MODULE}},{path:"/UIManagerModule",name:"UIManagerModule 模块",component:$t.UIManagerModule,meta:{type:en.MODULE}},{path:"/Others",name:"Others",meta:{type:en.TITLE,mapType:en.OTHER}},{path:"/NestedScroll",name:"NestedScroll 范例",component:$t.NestedScroll,meta:{type:en.OTHER}},{path:"/BoxShadow",name:"BoxShadow 范例",component:$t.BoxShadow,meta:{type:en.OTHER}},{path:"/SetNativeProps",name:"setNativeProps 范例",component:$t.SetNativeProps,meta:{type:en.OTHER}},{path:"/DynamicImport",name:"DynamicImport 范例",component:$t.DynamicImport,meta:{type:en.OTHER}},{path:"/Localization",name:"Localization 范例",component:$t.Localization,meta:{type:en.OTHER}},{path:"/Turbo",name:"Turbo 范例",component:$t.Turbo,meta:{type:en.OTHER}}],nn="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";const on="#1E304A",rn=s.StyleSheet.create({container:{marginTop:20,marginBottom:12,height:24,flexDirection:"row",alignItems:"center",justifyContent:"space-between"},backIcon:{tintColor:on,width:15,height:15},headerButton:{height:24,alignItems:"center",justifyContent:"center"},title:{fontSize:16,color:on,lineHeight:16}});var an=z(({history:e,route:t})=>0===e.index?l.a.createElement(s.View,{style:[rn.container]},l.a.createElement(s.View,null,l.a.createElement(s.Text,{numberOfLines:1,style:[rn.title]},t.name)),l.a.createElement(s.View,{style:rn.headerButton},l.a.createElement(s.Text,{numberOfLines:1,style:rn.title},"unspecified"!==s.default.version?""+s.default.version:"master"))):l.a.createElement(s.View,{style:[rn.container]},l.a.createElement(s.View,{onClick:()=>e.goBack(),style:[rn.headerButton]},l.a.createElement(s.Image,{style:rn.backIcon,source:{uri:nn}})),l.a.createElement(s.View,{style:rn.headerButton},l.a.createElement(s.Text,{numberOfLines:1,style:rn.title},t.name))));function ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function sn(e){for(var t=1;t{t[en[e]]=!1}),this.state={pressItem:"",dataSource:[...tn],typeVisibleState:t},this.renderRow=this.renderRow.bind(this),this.getRowType=this.getRowType.bind(this),this.getRowKey=this.getRowKey.bind(this),this.clickTo=this.clickTo.bind(this),this.clickToggle=this.clickToggle.bind(this)}componentDidMount(){const{history:e}=this.props;"android"===s.Platform.OS&&s.BackAndroid.addListener(()=>(console.log("BackAndroid"),0!==e.index&&(e.goBack(),!0)))}getRowType(e){const{dataSource:t}=this.state;return t[e].meta.type}getRowKey(e){const{dataSource:t}=this.state;return t[e].path||""+e}feedback(e){const t=e||"";this.setState({pressItem:t})}clickTo(e){const{history:t}=this.props;t.push(e)}clickToggle(e){this.setState({typeVisibleState:sn(sn({},this.state.typeVisibleState),{},{[e]:!this.state.typeVisibleState[e]})})}renderRow(e){const{dataSource:t,pressItem:n,typeVisibleState:o}=this.state,r=t[e],{type:i}=r.meta;if(i===en.TITLE){const{mapType:e}=r.meta;return l.a.createElement(s.View,{style:[cn.typeContainer,o[e]?{borderBottomLeftRadius:0,borderBottomRightRadius:0}:{borderBottomLeftRadius:4,borderBottomRightRadius:4}],onClick:()=>this.clickToggle(e)},l.a.createElement(s.Text,{style:cn.typeText},r.name),l.a.createElement(s.Image,{style:[cn.arrowIcon,o[e]?{transform:[{rotate:"-90deg"}]}:{transform:[{rotate:"180deg"}]}],source:{uri:nn}}))}let a=!1;const c=t[e+1],h=t.length-1;return(c&&c.meta.type===en.TITLE||e===h)&&(a=!0),l.a.createElement(s.View,{style:o[i]?{display:"flex"}:{display:"none"}},l.a.createElement(s.View,{onPressIn:()=>this.feedback(r.path),onPressOut:()=>this.feedback(),onClick:()=>this.clickTo(r.path),style:[cn.buttonView,{opacity:n===r.path?.5:1}]},l.a.createElement(s.Text,{style:cn.buttonText},r.name)),a?null:l.a.createElement(s.View,{style:cn.separatorLine}))}render(){const{dataSource:e}=this.state;return l.a.createElement(s.ListView,{style:{flex:1},numberOfRows:e.length,renderRow:this.renderRow,getRowType:this.getRowType,getRowKey:this.getRowKey,paintType:"fcp"})}}const un=[{path:"/Gallery",name:"Hippy React",component:z(hn)},...tn];var dn=()=>l.a.createElement(s.View,{style:{flex:1}},l.a.createElement(k,{initialEntries:["/Gallery"]},un.map(e=>{const t=e.component;return l.a.createElement(P,{key:e.path,exact:!0,path:""+e.path},l.a.createElement(s.View,{style:{flex:1}},l.a.createElement(an,{route:e}),l.a.createElement(t,null)))})));const mn={container:{flex:1,paddingHorizontal:16,backgroundColor:"#E5E5E5"}};class gn extends a.Component{render(){const{children:e}=this.props;return l.a.createElement(s.View,{style:mn.container,onLayout:this.onLayout},e)}}class fn extends a.Component{componentDidMount(){s.ConsoleModule.log("~~~~~~~~~~~~~~~~~ This is a log from ConsoleModule ~~~~~~~~~~~~~~~~~")}render(){return l.a.createElement(gn,null,l.a.createElement(dn,null))}}},"./src/main.js":function(e,t,n){"use strict";n.r(t),function(e){var t=n("../../packages/hippy-react/dist/index.js"),o=n("./src/app.jsx");e.Hippy.on("uncaughtException",e=>{console.error("uncaughtException error",e.stack,e.message)}),e.Hippy.on("unhandledRejection",e=>{console.error("unhandledRejection reason",e)}),new t.Hippy({appName:"Demo",entryPage:o.a,bubbles:!1,silent:!1}).start()}.call(this,n("./node_modules/webpack/buildin/global.js"))},0:function(e,t,n){n("./node_modules/regenerator-runtime/runtime.js"),e.exports=n("./src/main.js")},"dll-reference hippyReactBase":function(e,t){e.exports=hippyReactBase}}); \ No newline at end of file diff --git a/framework/examples/android-demo/res/react/vendor.android.js b/framework/examples/android-demo/res/react/vendor.android.js index b05f15601d9..f359e4c3d7d 100644 --- a/framework/examples/android-demo/res/react/vendor.android.js +++ b/framework/examples/android-demo/res/react/vendor.android.js @@ -1,7 +1,7 @@ -var hippyReactBase=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-react/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e,r){n.d(t,"Animated",(function(){return Cn})),n.d(t,"Animation",(function(){return Qe})),n.d(t,"AnimationSet",(function(){return Xe})),n.d(t,"AppRegistry",(function(){return vn})),n.d(t,"AsyncStorage",(function(){return Jn})),n.d(t,"BackAndroid",(function(){return Zn})),n.d(t,"Clipboard",(function(){return tr})),n.d(t,"ConsoleModule",(function(){return hr})),n.d(t,"Dimensions",(function(){return vr})),n.d(t,"Easing",(function(){return xn})),n.d(t,"EventBus",(function(){return Pe})),n.d(t,"Focusable",(function(){return Qn})),n.d(t,"Hippy",(function(){return yr})),n.d(t,"HippyEventEmitter",(function(){return Se})),n.d(t,"HippyEventListener",(function(){return Ee})),n.d(t,"HippyRegister",(function(){return ir})),n.d(t,"Image",(function(){return Sn})),n.d(t,"ImageBackground",(function(){return gr})),n.d(t,"ImageLoaderModule",(function(){return or})),n.d(t,"ListView",(function(){return _n})),n.d(t,"ListViewItem",(function(){return Nn})),n.d(t,"Modal",(function(){return $n})),n.d(t,"Navigator",(function(){return An})),n.d(t,"NetInfo",(function(){return ar})),n.d(t,"NetworkModule",(function(){return nr})),n.d(t,"PixelRatio",(function(){return br})),n.d(t,"Platform",(function(){return mr})),n.d(t,"PullFooter",(function(){return In})),n.d(t,"PullHeader",(function(){return Pn})),n.d(t,"RefreshWrapper",(function(){return Ln})),n.d(t,"ScrollView",(function(){return Wn})),n.d(t,"StyleSheet",(function(){return Dn})),n.d(t,"Text",(function(){return En})),n.d(t,"TextInput",(function(){return Fn})),n.d(t,"TimerModule",(function(){return pr})),n.d(t,"UIManagerModule",(function(){return lr})),n.d(t,"View",(function(){return bn})),n.d(t,"ViewPager",(function(){return zn})),n.d(t,"WaterfallView",(function(){return Xn})),n.d(t,"WebSocket",(function(){return Kn})),n.d(t,"WebView",(function(){return qn})),n.d(t,"callNative",(function(){return ur})),n.d(t,"callNativeWithCallbackId",(function(){return fr})),n.d(t,"callNativeWithPromise",(function(){return cr})),n.d(t,"colorParse",(function(){return He})),n.d(t,"default",(function(){return gn})),n.d(t,"flushSync",(function(){return sr})),n.d(t,"removeNativeCallback",(function(){return dr}));var i=n("./node_modules/react/index.js"),o=n.n(i),a=n("./node_modules/@hippy/react-reconciler/index.js"),l=n.n(a);const s=["children"],u=["collapsable","style"],c=["style"],f=["children","style","imageStyle","imageRef","source","sources","src","srcs","tintColor","tintColors"],d=["children"],p=["children"],h=["children","style","renderRow","renderPullHeader","renderPullFooter","getRowType","getRowStyle","getHeaderStyle","getFooterStyle","getRowKey","dataSource","initialListSize","rowShouldSticky","onRowLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","onAppear","onDisappear","onWillAppear","onWillDisappear"],m=["children"],y=["initialRoute"],g=["component"],v=["children","onPageScrollStateChanged"],b=["style","renderBanner","numberOfColumns","columnSpacing","interItemSpacing","numberOfItems","preloadItemNumber","renderItem","renderPullHeader","renderPullFooter","getItemType","getItemKey","getItemStyle","contentInset","onItemLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","containPullHeader","containPullFooter","containBannerView"];function w(){w=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,i){var o=new RegExp(e,r);return t.set(o,i||t.get(e)),k(o,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var i=r[n];if("number"==typeof i)t[n]=e[i];else{for(var o=0;void 0===e[i[o]]&&o+1]+)>/g,(function(e,t){var n=o[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof i){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,a)),i.apply(this,e)}))}return e[Symbol.replace].call(this,n,i)},w.apply(this,arguments)}function E(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&&k(e,t)}function k(e,t){return(k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t=0||(i[n]=e[n]);return i} +var hippyReactBase=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-react/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e,r){n.d(t,"Animated",(function(){return Nn})),n.d(t,"Animation",(function(){return qe})),n.d(t,"AnimationSet",(function(){return Je})),n.d(t,"AppRegistry",(function(){return wn})),n.d(t,"AsyncStorage",(function(){return er})),n.d(t,"BackAndroid",(function(){return tr})),n.d(t,"Clipboard",(function(){return rr})),n.d(t,"ConsoleModule",(function(){return yr})),n.d(t,"Dimensions",(function(){return wr})),n.d(t,"Easing",(function(){return Pn})),n.d(t,"EventBus",(function(){return Ie})),n.d(t,"Focusable",(function(){return Gn})),n.d(t,"Hippy",(function(){return vr})),n.d(t,"HippyEventEmitter",(function(){return xe})),n.d(t,"HippyEventListener",(function(){return ke})),n.d(t,"HippyRegister",(function(){return ar})),n.d(t,"Image",(function(){return Cn})),n.d(t,"ImageBackground",(function(){return br})),n.d(t,"ImageLoaderModule",(function(){return lr})),n.d(t,"ListView",(function(){return Tn})),n.d(t,"ListViewItem",(function(){return In})),n.d(t,"Modal",(function(){return qn})),n.d(t,"Navigator",(function(){return zn})),n.d(t,"NetInfo",(function(){return sr})),n.d(t,"NetworkModule",(function(){return ir})),n.d(t,"PixelRatio",(function(){return Er})),n.d(t,"Platform",(function(){return gr})),n.d(t,"PullFooter",(function(){return Ln})),n.d(t,"PullHeader",(function(){return _n})),n.d(t,"RefreshWrapper",(function(){return An})),n.d(t,"ScrollView",(function(){return $n})),n.d(t,"StyleSheet",(function(){return Wn})),n.d(t,"Text",(function(){return Sn})),n.d(t,"TextInput",(function(){return Mn})),n.d(t,"TimerModule",(function(){return mr})),n.d(t,"UIManagerModule",(function(){return ur})),n.d(t,"View",(function(){return En})),n.d(t,"ViewPager",(function(){return jn})),n.d(t,"WaterfallView",(function(){return Zn})),n.d(t,"WebSocket",(function(){return Xn})),n.d(t,"WebView",(function(){return Kn})),n.d(t,"callNative",(function(){return fr})),n.d(t,"callNativeWithCallbackId",(function(){return pr})),n.d(t,"callNativeWithPromise",(function(){return dr})),n.d(t,"colorParse",(function(){return Me})),n.d(t,"default",(function(){return bn})),n.d(t,"flushSync",(function(){return cr})),n.d(t,"removeNativeCallback",(function(){return hr}));var i=n("./node_modules/react/index.js"),o=n.n(i),a=n("./node_modules/@hippy/react-reconciler/index.js"),l=n.n(a);const s=["children"],u=["collapsable","style"],c=["style"],f=["children","style","imageStyle","imageRef","source","sources","src","srcs","tintColor","tintColors"],d=["children"],p=["children"],h=["children","style","renderRow","renderPullHeader","renderPullFooter","getRowType","getRowStyle","getHeaderStyle","getFooterStyle","getRowKey","dataSource","initialListSize","rowShouldSticky","onRowLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","onAppear","onDisappear","onWillAppear","onWillDisappear"],m=["children"],y=["initialRoute"],g=["component"],v=["children","onPageScrollStateChanged"],b=["style","renderBanner","renderFooter","numberOfColumns","columnSpacing","interItemSpacing","numberOfItems","preloadItemNumber","renderItem","renderPullHeader","renderPullFooter","getItemType","getItemKey","getItemStyle","contentInset","onItemLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","containPullHeader","containPullFooter","containBannerView"];function w(){w=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,i){var o=RegExp(e,r);return t.set(o,i||t.get(e)),k(o,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var i=r[n];if("number"==typeof i)t[n]=e[i];else{for(var o=0;void 0===e[i[o]]&&o+1]+)>/g,(function(e,t){var n=o[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof i){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,a)),i.apply(this,e)}))}return e[Symbol.replace].call(this,n,i)},w.apply(this,arguments)}function E(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&&k(e,t)}function k(e,t){return(k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t=0)continue;n[r]=e[r]}return n} /*! * @hippy/react vunspecified - * Build at: Fri Apr 12 2024 14:59:31 GMT+0800 (中国标准时间) + * Build at: Thu Nov 14 2024 11:26:33 GMT+0800 (中国标准时间) * * Tencent is pleased to support the open source community by making * Hippy available. @@ -20,7 +20,7 @@ var hippyReactBase=function(e){var t={};function n(r){if(t[r])return t[r].export * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}e.__GLOBAL__||(e.__GLOBAL__={}),e.__GLOBAL__.nodeId=0,e.__GLOBAL__.animationId=0;const{asyncStorage:P,bridge:I,device:_,document:L,register:T,on:A,off:R,emit:z}=e.Hippy;var O=Object.freeze({__proto__:null,addEventListener:A,removeEventListener:R,dispatchEvent:z,AsyncStorage:P,Bridge:I,Device:_,HippyRegister:T,UIManager:L});let j,F;const H=new Map;function M(e,t){F=e,j=t}function B(){if(!F)throw new Error("getRootViewId must execute after setRootContainer");return F}function D(e){if(!j)return null;const{current:t}=j,n=[t];for(;n.length;){const t=n.shift();if(!t)break;if(e(t))return t;t.child&&n.push(t.child),t.sibling&&n.push(t.sibling)}return null}function U(e,t){H.set(t,e)}function W(e){H.delete(e)}function V(e){return(null==e?void 0:e.stateNode)||null}function $(e){return H.get(e)||null}function Q(t){!function(t,n){if(!e.requestIdleCallback)return setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>1/0})},1);e.requestIdleCallback(t,n)}(e=>{(e.timeRemaining()>0||e.didTimeout)&&function e(t){"number"==typeof t?W(t):t&&(W(t.nodeId),Array.isArray(t.childNodes)&&t.childNodes.forEach(t=>e(t)))}(t)},{timeout:50})}const q=0,G=1,K=-1,Y=1,X={onTouchStart:["onTouchStart","onTouchDown"],onPress:["onPress","onClick"]},J={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3},Z={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"};const ee=new RegExp(/^\d+$/);let te=!1,ne=!1;function re(...e){ce()&&console.log(...e)}function ie(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)))}const oe=new RegExp("^on.+Capture$");function ae(e){return oe.test(e)}const le=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function se(e){return"[object Function]"===Object.prototype.toString.call(e)}function ue(e){te=e}function ce(){return!1}function fe(){return ne}function de(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){0;return`${"hpfile://"}./${e}`}return e}class pe{constructor(e){this.handlerContainer={},this.nextIdForHandler=0,this.eventName=e}getEventListeners(){return Object.keys(this.handlerContainer).filter(e=>this.handlerContainer[e]).map(e=>this.handlerContainer[e])}getHandlerSize(){return Object.keys(this.handlerContainer).length}addEventHandler(e,t){if(!e)throw new TypeError("Invalid arguments for addEventHandler");const n=this.nextIdForHandler;this.nextIdForHandler+=1;const r={id:n,eventHandler:e,context:t},i="eventHandler_"+n;return this.handlerContainer[i]=r,n}notifyEvent(...e){Object.keys(this.handlerContainer).forEach(t=>{const n=this.handlerContainer[t];n&&n.eventHandler&&(n.context?n.eventHandler.call(n.context,...e):n.eventHandler(...e))})}removeEventHandler(e){if("number"!=typeof e)throw new TypeError("Invalid arguments for removeEventHandler");const t="eventHandler_"+e;this.handlerContainer[t]&&delete this.handlerContainer[t]}}class he{constructor(e,t,n){this.type=e,this.bubbles=!0,this.currentTarget=t,this.target=n}stopPropagation(){this.bubbles=!1}preventDefault(){}}const me=new Map,ye=["%c[event]%c","color: green","color: auto"];function ge(e,t){return!(!t.memoizedProps||"function"!=typeof t.memoizedProps[e])}function ve(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for getHippyEventHub: "+e);return me.get(e)||null}const be={registerNativeEventHub:function(e){if(re(...ye,"registerNativeEventHub",e),"string"!=typeof e)throw new TypeError("Invalid eventName for registerNativeEventHub: "+e);let t=me.get(e);return t||(t=new pe(e),me.set(e,t)),t},getHippyEventHub:ve,unregisterNativeEventHub:function(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for unregisterNativeEventHub: "+e);me.has(e)&&me.delete(e)},receiveNativeEvent:function(e){if(re(...ye,"receiveNativeEvent",e),!e||!Array.isArray(e)||e.length<2)throw new TypeError("Invalid params for receiveNativeEvent: "+JSON.stringify(e));const[t,n]=e;if("string"!=typeof t)throw new TypeError("Invalid arguments for nativeEvent eventName");const r=ve(t);r&&r.notifyEvent(n)},receiveComponentEvent:function(e,t){if(re(...ye,"receiveComponentEvent",e),!e||!t)return;const{id:n,currentId:r,nativeName:i,originalName:o,params:a={}}=e,l=$(r),s=$(n);l&&s&&(Z[i]?function(e,t,n,r,i,o){try{let t=!1;const a=V(r),l=V(n),{eventPhase:s}=o;if(ge(e,n)&&ae(e)&&[J.AT_TARGET,J.CAPTURING_PHASE].indexOf(s)>-1){const t=new he(e,l,a);Object.assign(t,{eventPhase:s},i),n.memoizedProps[e](t),!t.bubbles&&o&&o.stopPropagation()}if(ge(e,n)&&!ae(e)&&[J.AT_TARGET,J.BUBBLING_PHASE].indexOf(s)>-1){const r=new he(e,l,a);Object.assign(r,{eventPhase:s},i),t=n.memoizedProps[e](r),"boolean"!=typeof t&&(t=!fe()),r.bubbles||(t=!0),t&&o&&o.stopPropagation()}}catch(e){console.error(e)}}(o,0,l,s,a,t):function(e,t,n,r,i,o){let a=!1;const l=V(r),s=V(n);try{const{eventPhase:t}=o;if(ge(e,n)&&!ae(e)&&[J.AT_TARGET,J.BUBBLING_PHASE].indexOf(t)>-1){const r=new he(e,s,l);Object.assign(r,{eventPhase:t},i),n.memoizedProps[e](r),a=!fe(),r.bubbles||(a=!0),a&&o&&o.stopPropagation()}}catch(e){console.error(e)}}(o,0,l,s,a,t))}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=be);class we{constructor(e,t){this.callback=e,this.bindListener=t}remove(){"number"==typeof this.callback&&this.bindListener&&(this.bindListener.removeCallback(this.callback),this.bindListener=void 0)}}class Ee{constructor(e){this.eventName=e,this.listenerIdList=[]}unregister(){const e=be.getHippyEventHub(this.eventName);if(!e)throw new ReferenceError("No listeners for "+this.eventName);const t=this.listenerIdList.length;for(let n=0;n{if("string"!=typeof e&&!Array.isArray(e)||"function"!=typeof t)throw new TypeError("Invalid arguments for EventBus.on()");return Array.isArray(e)?e.forEach(e=>{xe(e,t,n)}):xe(e,t,n),Pe},off:(e,t)=>{if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("The event argument is not string or array for EventBus.off()");return Array.isArray(e)?e.forEach(e=>{Ne(e,t)}):Ne(e,t),Pe},sizeOf(e){if("string"!=typeof e)throw new TypeError("The event argument is not string for EventBus.sizeOf()");const t=Ce[e];return(null==t?void 0:t.eventMap)?t.eventMap.size:0},emit(e,...t){if("string"!=typeof e)throw new TypeError("The event argument is not string for EventBus.emit()");const n=be.getHippyEventHub(e);return n?(n.notifyEvent(...t),Pe):Pe}};function Ie(...e){return`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`}const _e={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Le="[-+]?\\d*\\.?\\d+",Te={rgb:new RegExp("rgb"+Ie(Le,Le,Le)),rgba:new RegExp("rgba"+Ie(Le,Le,Le,Le)),hsl:new RegExp("hsl"+Ie(Le,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+Ie(Le,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",Le)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/};function Ae(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Re(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ze(e,t,n){let r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Oe(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=ze(i,r,e+1/3),a=ze(i,r,e),l=ze(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function je(e){return(parseFloat(e)%360+360)%360/360}function Fe(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function He(e){if(Number.isInteger(e))return e;let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Te.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(_e,e)?_e[e]:(t=Te.rgb.exec(e),Array.isArray(t)?(Ae(t[1])<<24|Ae(t[2])<<16|Ae(t[3])<<8|255)>>>0:(t=Te.rgba.exec(e),t?(Ae(t[1])<<24|Ae(t[2])<<16|Ae(t[3])<<8|Re(t[4]))>>>0:(t=Te.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Te.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=Te.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Te.hsl.exec(e),t?(255|Oe(je(t[1]),Fe(t[2]),Fe(t[3])))>>>0:(t=Te.hsla.exec(e),t?(Oe(je(t[1]),Fe(t[2]),Fe(t[3]))|Re(t[4]))>>>0:null))))))))}(e);return null===t?0:(t=(t<<24|t>>>8)>>>0,t)}function Me(e){return Array.isArray(e)?e.map(e=>He(e)):[0]}function Be(e){return"loop"===e?-1:e}function De(e,t){return"color"===e&&["number","string"].indexOf(typeof t)>=0?He(t):t}const Ue="animationstart",We="animationend",Ve="animationcancel",$e="animationrepeat";class Qe{constructor(t){var n;let r;if((null===(n=t.startValue)||void 0===n?void 0:n.constructor)&&"Animation"===t.startValue.constructor.name)r={animationId:t.startValue.animationId};else{const{startValue:e}=t;r=De(t.valueType,e)}const i=De(t.valueType,t.toValue);this.mode=t.mode||"timing",this.delay=t.delay||0,this.startValue=r||0,this.toValue=i||0,this.valueType=t.valueType||void 0,this.duration=t.duration||0,this.direction=t.direction||"center",this.timingFunction=t.timingFunction||"linear",this.repeatCount=Be(t.repeatCount||0),this.inputRange=t.inputRange||[],this.outputRange=t.outputRange||[],this.animation=new e.Hippy.Animation(Object.assign({mode:this.mode,delay:this.delay,startValue:this.startValue,toValue:this.toValue,duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{})),this.animationId=this.animation.getId(),this.destroy=this.destroy.bind(this),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}removeEventListener(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(Ue),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(We),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(Ve),"function"==typeof this.onAnimationRepeatCallback&&this.animation.removeEventListener($e)}start(){if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(Ue,()=>{"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback()}),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(We,()=>{"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback()}),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener(Ve,()=>{"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback()}),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener($e,()=>{"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()}),this.animation.start()}destroy(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}pause(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}resume(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}updateAnimation(e){if(!this.animation)throw new Error("animation has not been initialized yet");if("object"!=typeof e)throw new TypeError("Invalid arguments");if("string"==typeof e.mode&&e.mode!==this.mode)throw new TypeError("Update animation mode not supported");Object.keys(e).forEach(t=>{const n=e[t];if("startValue"===t){let t;if(e.startValue instanceof Qe)t={animationId:e.startValue.animationId};else{const{startValue:n}=e;t=De(this.valueType,n)}this.startValue=t||0}else"repeatCount"===t?this.repeatCount=Be(e.repeatCount||0):Object.defineProperty(this,t,{value:n})}),this.animation.updateAnimation(Object.assign({mode:this.mode,delay:this.delay,startValue:this.startValue,toValue:De(this.valueType,this.toValue),duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{}))}onAnimationStart(e){this.onAnimationStartCallback=e}onAnimationEnd(e){this.onAnimationEndCallback=e}onAnimationCancel(e){this.onAnimationCancelCallback=e}onAnimationRepeat(e){this.onAnimationRepeatCallback=e}}const qe="animationstart",Ge="animationend",Ke="animationcancel",Ye="animationrepeat";class Xe{constructor(t){this.animationList=[],null==t||t.children.forEach(e=>{this.animationList.push({animationId:e.animation.animationId,follow:e.follow||!1})}),this.animation=new e.Hippy.AnimationSet({repeatCount:Be(t.repeatCount||0),children:this.animationList}),this.animationId=this.animation.getId(),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}removeEventListener(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(qe),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(Ge),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(Ke),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(Ye)}start(){if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(qe,()=>{"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback()}),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(Ge,()=>{"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback()}),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener(Ke,()=>{"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback()}),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener(Ke,()=>{"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()}),this.animation.start()}destory(){this.destroy()}destroy(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}pause(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}resume(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}onAnimationStart(e){this.onAnimationStartCallback=e}onAnimationEnd(e){this.onAnimationEndCallback=e}onAnimationCancel(e){this.onAnimationCancelCallback=e}onAnimationRepeat(e){this.onAnimationRepeatCallback=e}}const Je={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode"),moveNode:Symbol("moveNode")};let Ze=!0,et=[];function tt(e=[],t){e.forEach(e=>{if(e){const{id:n,eventList:r}=e;r.forEach(e=>{const{name:r,type:i,listener:o,isCapture:a}=e;let l;l=function(e){return!!Z[e]}(r)?Z[r]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(r),i===G&&t.removeEventListener(n,l,o),i===q&&t.addEventListener(n,l,o,a)})}})}function nt(e,t){0}function rt(t){const n=function(e){const t=[];for(let n=0;n{switch(e.type){case Je.createNode:nt(e.printedNodes),r.create(e.nodes),tt(e.eventNodes,r);break;case Je.updateNode:nt(e.printedNodes),r.update(e.nodes),tt(e.eventNodes,r);break;case Je.deleteNode:nt(e.printedNodes),r.delete(e.nodes);break;case Je.moveNode:nt(e.printedNodes),r.move(e.nodes)}}),r.build()}function it(e=!1){if(!Ze)return;if(Ze=!1,0===et.length)return void(Ze=!0);const t=B();e?(rt(t),et=[],Ze=!0):Promise.resolve().then(()=>{rt(t),et=[],Ze=!0})}function ot(e){const t=e.attributes,{children:n}=t;return N(t,s)}function at(e,t,n={}){var r;if(!t.nativeName)return[];if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: "+t.tagName);const i={id:t.nodeId,pId:(null===(r=t.parentNode)||void 0===r?void 0:r.nodeId)||e,name:t.nativeName,props:C(C({},ot(t)),{},{style:t.style}),tagName:t.tagName},o=function(e){let t=void 0;const n=e.events;if(n){const r=[];Object.keys(n).forEach(t=>{const{name:i,type:o,isCapture:a,listener:l}=n[t];e.isListenerHandled(t,o)||(e.setListenerHandledType(t,o),r.push({name:i,type:o,isCapture:a,listener:l}))}),t={id:e.nodeId,eventList:r}}return t}(t);let a=void 0;return[[i,n],o,a]}function lt(e,t,n,r={}){const i=[],o=[],a=[];return t.traverseChildren((t,r)=>{const[l,s,u]=at(e,t,r);l&&i.push(l),s&&o.push(s),u&&a.push(u),"function"==typeof n&&n(t)},r),[i,o,a]}function st(e){return!!j&&e instanceof j.containerInfo.constructor}function ut(e,t,n={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;const r=B(),i=st(e)&&!e.isMounted,o=e.isMounted&&!t.isMounted;if(i||o){const[e,i,o]=lt(r,t,e=>{e.isMounted||(e.isMounted=!0)},n);et.push({type:Je.createNode,nodes:e,eventNodes:i,printedNodes:o})}}function ct(e){if(!e.isMounted)return;const t=B(),[n,r,i]=at(t,e);n&&et.push({type:Je.updateNode,nodes:[n],eventNodes:[r],printedNodes:[]})}let ft=0;class dt{constructor(){this.meta={component:{}},this.index=0,this.childNodes=[],this.parentNode=null,this.mounted=!1,this.nodeId=(ft+=1,ft%10==0&&(ft+=1),ft)}toString(){return this.constructor.name}get isMounted(){return this.mounted}set isMounted(e){this.mounted=e}insertBefore(e,t){if(!e)throw new Error("Can't insert child.");if(e.meta.skipAddToDom)return;if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't insert child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't insert child, because it already has a different parent.");const n=this.childNodes.indexOf(t);return e.parentNode=this,this.childNodes.splice(n,0,e),ut(this,e,{refId:t.nodeId,relativeToRef:K})}moveChild(e,t){if(!e)throw new Error("Can't move child.");if(e.meta.skipAddToDom)return;if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't move child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't move child, because it already has a different parent.");const n=this.childNodes.indexOf(e);if(this.childNodes.indexOf(t)===n)return e;this.childNodes.splice(n,1);const r=this.childNodes.indexOf(t);return this.childNodes.splice(r,0,e),function(e,t,n={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;const r=B(),i={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},o=[[i,n]],a=[];et.push({printedNodes:a,type:Je.moveNode,nodes:o,eventNodes:[]})}(this,e,{refId:t.nodeId,relativeToRef:K})}appendChild(e){if(!e)throw new Error("Can't append child.");if(e.meta.skipAddToDom)return;if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");e.parentNode=this;const t=this.childNodes.length-1,n=this.childNodes[t];this.childNodes.push(e),ut(this,e,n&&{refId:n.nodeId,relativeToRef:Y})}removeChild(e){if(!e)throw new Error("Can't remove child.");if(e.meta.skipAddToDom)return;if(!e.parentNode)throw new Error("Can't remove child, because it has no parent.");if(e.parentNode!==this)throw new Error("Can't remove child, because it has a different parent.");const t=this.childNodes.indexOf(e);this.childNodes.splice(t,1),function(e,t){if(!t||t.meta.skipAddToDom)return;t.isMounted=!1;const n=B(),r={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:n},i=[[r,{}]],o=[];et.push({printedNodes:o,type:Je.deleteNode,nodes:i,eventNodes:[]})}(0,e)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(let t=0;t{this.traverseChildren.call(t,e,{})})}}const pt={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},ht={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},mt="turn",yt="rad",gt="deg";function vt(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=w(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(!Array.isArray(n))return;let r="180";const[i,o,a]=n;return o&&a?r=function(e,t=gt){const n=parseFloat(e);let r=e||"";const[,i]=e.split(".");switch(i&&i.length>2&&(r=n.toFixed(2)),t){case mt:r=""+(360*n).toFixed(2);break;case yt:r=""+(180/Math.PI*n).toFixed(2)}return r}(o,a):i&&void 0!==ht[i]&&(r=ht[i]),r}function bt(e){const t=(e||"").replace(/\s+/g," ").trim(),[n,r]=t.split(/\s+(?![^(]*?\))/),i=/^([+-]?\d+\.?\d*)%$/g;return!n||i.exec(n)||r?n&&i.exec(r)?{ratio:parseFloat(r.split("%")[0])/100,color:He(n)}:void 0:{color:He(n)}}class wt extends dt{constructor(e){super(),this.id="",this.style={},this.attributes={},this.events={},this.tagName=e}get nativeName(){return this.meta.component.name}toString(){return`${this.tagName}:(${this.nativeName})`}setListenerHandledType(e,t){this.events[e]&&(this.events[e].handledType=t)}isListenerHandled(e,t){return!this.events[e]||t===this.events[e].handledType}hasAttribute(e){return!!this.attributes[e]}getAttribute(e){return this.attributes[e]}setStyleAttribute(e){this.style={};let t=e;if(!Array.isArray(t)&&Object.hasOwnProperty.call(t,0)){const e=[],n={};Object.keys(t).forEach(r=>{var i;i=r,ee.test(i)?e.push(t[r]):n[r]=t[r]}),t=[...e,n]}Array.isArray(t)||(t=[t]);let n={};t.forEach(e=>{Array.isArray(e)?e.forEach(e=>{n=C(C({},n),e)}):"object"==typeof e&&e&&(n=C(C({},n),e))}),Object.keys(n).forEach(e=>{const t=n[e];if(Object.prototype.hasOwnProperty.call(pt,e)&&(e=pt[e]),"transform"===e){const e={};if(!Array.isArray(t))throw new TypeError("transform only support array args");t.forEach(t=>{Object.keys(t).forEach(n=>{const r=t[n];r instanceof Qe||r instanceof Xe?e[n]={animationId:r.animationId}:null===r?e[n]&&delete e[n]:void 0!==r&&(e[n]=r)})});const n=Object.keys(e);n.length&&(Array.isArray(this.style.transform)||(this.style.transform=[]),n.forEach(t=>this.style.transform.push({[t]:e[t]})))}else if(null===t&&void 0!==this.style[e])this.style[e]=void 0;else if(t instanceof Qe||t instanceof Xe)this.style[e]={animationId:t.animationId};else if(e.toLowerCase().indexOf("colors")>-1)this.style[e]=Me(t);else if(e.toLowerCase().indexOf("color")>-1)this.style[e]=He(t);else if("fontWeight"===e&&t)this.style[e]="string"!=typeof t?t.toString():t;else if("backgroundImage"===e&&t)this.style=function(e,t,n){if(0===t.indexOf("linear-gradient")){const e=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),r=[];n.linearGradient=n.linearGradient||{},e.forEach((e,t)=>{if(0===t){const t=vt(e);if(t)n.linearGradient.angle=t;else{n.linearGradient.angle="180";const t=bt(e);t&&r.push(t)}}else{const t=bt(e);t&&r.push(t)}}),n.linearGradient.colorStopList=r}else n[e]=de(t);return n}(e,t,this.style);else if("textShadowOffset"===e){const{x:n=0,width:r=0,y:i=0,height:o=0}=t||{};this.style[e]={width:n||r,height:i||o}}else["textShadowOffsetX","textShadowOffsetY"].indexOf(e)>=0?this.style=function(e,t,n){return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[{textShadowOffsetX:"width",textShadowOffsetY:"height"}[e]]:t||0}),n}(e,t,this.style):this.style[e]=t})}setAttributes(e=[]){Array.isArray(e)&&e.length>0&&(e.forEach(e=>{if(Array.isArray(e)){const[t,n]=e;this.setAttribute(t,n,{notToNative:!0})}}),ct(this))}parseAnimationStyleProp(e){let t=!1;Object.keys(e).some(n=>{const r=e[n];if(r&&Array.isArray(r)&&"transform"===n)for(let e=0;e["id"].indexOf(e)>=0,action:()=>(t===this.id||(this.id=t,function(e){if(!e.isMounted)return;const t=B(),[n,r,i]=lt(t,e)||{};n&&et.push({type:Je.updateNode,nodes:n,eventNodes:r,printedNodes:i})}(this)),!0)},{match:()=>["value","defaultValue","placeholder"].indexOf(e)>=0,action:()=>(this.attributes[e]=ie(t),!1)},{match:()=>["text"].indexOf(e)>=0,action:()=>(this.attributes[e]=t,!1)},{match:()=>["style"].indexOf(e)>=0,action:()=>"object"!=typeof t||null==t||(this.setStyleAttribute(t),!1)},{match:()=>!0,action:()=>{if("function"==typeof t){const t=function(e){return ae(e)&&(e=e.replace("Capture","")),X[e]?X[e][1]:e}(e);this.events[e]?this.events[e]&&this.events[e].type!==q&&(this.events[e].type=q):this.events[e]={name:t,type:q,isCapture:ae(e),listener:(n=t,r=e,e=>{const{id:t,currentId:i,params:o,eventPhase:a}=e,l={id:t,nativeName:n,originalName:r,params:o,currentId:i,eventPhase:a};be.receiveComponentEvent(l,e)})}}else{if(function(e,t){return void 0!==t&&"object"==typeof t[e]&&!!t[e]}(e,this.events)&&"function"!=typeof t)return this.events[e].type=G,!1;this.attributes[e]=t}var n,r;return!1}}].some(e=>!!e.match()&&(n=e.action(),!0)),n}setAttribute(e,t,n={}){try{if("boolean"==typeof this.attributes[e]&&""===t&&(t=!0),void 0===e)return void(!n.notToNative&&ct(this));if(this.parseAttributeProp(e,t))return;this.parseAnimationStyleProp(this.style),!n.notToNative&&ct(this)}catch(e){}}removeAttribute(e){delete this.attributes[e]}setStyle(e,t,n=!1){if(null===t)return void delete this.style[e];let r=t,i=e;Object.prototype.hasOwnProperty.call(pt,e)&&(i=pt[e]),"string"==typeof r&&(r=t.trim(),r=i.toLowerCase().indexOf("colors")>-1?Me(r):i.toLowerCase().indexOf("color")>-1?He(r):function(e){if("number"==typeof e)return e;if("string"==typeof e&&le.test(e))try{return parseFloat(e)}catch(t){return e}return e}(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||ct(this))}setNativeProps(e){if(e){const{style:t}=e;if(t){const e=t;Object.keys(e).forEach(t=>{this.setStyle(t,e[t],!0)}),ct(this),it(!0)}}}setText(e){if("string"!=typeof e)try{e=e.toString()}catch(e){throw new Error("Only string type is acceptable for setText")}return(e=e.trim())||this.getAttribute("text")?(e=(e=ie(e)).replace(/ /g," ").replace(/Â/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}class Et extends dt{constructor(){super(),this.documentElement=new wt("document")}createElement(e){return new wt(e)}createElementNS(e,t){return new wt(`${e}:${t}`)}}Et.createElement=Et.prototype.createElement,Et.createElementNS=Et.prototype.createElementNS;var kt=Array.isArray,St=Object.keys,Ct=Object.prototype.hasOwnProperty;const xt=setTimeout,Nt=clearTimeout;var Pt=Object.freeze({__proto__:null,commitMutationEffectsBegin:function(){},commitMutationEffectsComplete:function(){it(!0)},getCurrentEventPriority:function(){return 16},scheduleTimeout:xt,cancelTimeout:Nt,noTimeout:-1,afterActiveInstanceBlur:function(){},appendChild:function(e,t){e.childNodes.indexOf(t)>=0&&e.removeChild(t),e.appendChild(t)},appendChildToContainer:function(e,t){e.appendChild(t)},appendInitialChild:function(e,t){e.appendChild(t)},beforeActiveInstanceBlur:function(){},commitMount:function(){},commitTextUpdate:function(){},commitUpdate:function(e,t,n,r,i,o){U(o,e.nodeId);const a=Object.keys(t||{});if(0===a.length)return;const l=a.map(e=>[e,t[e]]);e.setAttributes(l)},clearContainer:function(){},createContainerChildSet:function(){},createInstance:function(e,t,n,r,i){const o=n.createElement(e);return Object.keys(t).forEach(e=>{switch(e){case"children":break;case"nativeName":o.meta.component.name=t.nativeName;break;default:o.setAttribute(e,t[e])}}),[5,7].indexOf(i.tag)<0&&(o.meta.skipAddToDom=!0),U(i,o.nodeId),o},createTextInstance:function(e,t,n,r){const i=t.createElement("p");return i.setAttribute("text",ie(e)),i.meta={component:{name:"Text"}},U(r,i.nodeId),i},detachDeletedInstance:function(){},finalizeContainerChildren:function(){},finalizeInitialChildren:function(){return!0},getChildHostContext:function(){return{}},getPublicInstance:function(e){return e},getInstanceFromNode:function(){throw new Error("Not yet implemented.")},getFundamentalComponentInstance:function(){throw new Error("Not yet implemented.")},getRootHostContext:function(){return{}},hideInstance:function(e){const t={style:{display:"none"}};Object.keys(t).forEach(n=>e.setAttribute(n,t[n]))},hideTextInstance:function(){throw new Error("Not yet implemented.")},insertBefore:function(e,t,n){e.childNodes.indexOf(t)>=0?e.moveChild(t,n):e.insertBefore(t,n)},isOpaqueHydratingObject:function(){throw new Error("Not yet implemented")},makeClientId:function(){throw new Error("Not yet implemented")},makeClientIdInDEV:function(){throw new Error("Not yet implemented")},makeOpaqueHydratingObject:function(){throw new Error("Not yet implemented.")},mountFundamentalComponent:function(){throw new Error("Not yet implemented.")},prepareForCommit:function(){return null},preparePortalMount:function(){},prepareUpdate:function(e,t,n,r){const i={};return Object.keys(n).forEach(e=>{const t=n[e],o=r[e];null!=t&&null==o&&(i[e]=o)}),Object.keys(r).forEach(e=>{const t=n[e],o=r[e];switch(e){case"children":t===o||"number"!=typeof o&&"string"!=typeof o||(i[e]=o);break;default:null!=o&&null==t?i[e]=o:"function"==typeof o||function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,i,o,a=kt(t),l=kt(n);if(a&&l){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=l)return!1;var s=t instanceof Date,u=n instanceof Date;if(s!=u)return!1;if(s&&u)return t.getTime()==n.getTime();var c=t instanceof RegExp,f=n instanceof RegExp;if(c!=f)return!1;if(c&&f)return t.toString()==n.toString();var d=St(t);if((i=d.length)!==St(n).length)return!1;for(r=i;0!=r--;)if(!Ct.call(n,d[r]))return!1;for(r=i;0!=r--;)if(!e(t[o=d[r]],n[o]))return!1;return!0}return t!=t&&n!=n}(t,o)||(i[e]=o)}}),i},replaceContainerChildren:function(){},removeChild:function(e,t){e.removeChild(t),Q(t)},removeChildFromContainer:function(e,t){e.removeChild(t),Q(t)},resetAfterCommit:function(){},resetTextContent:function(){},unmountFundamentalComponent:function(){throw new Error("Not yet implemented.")},updateFundamentalComponent:function(){throw new Error("Not yet implemented.")},unhideTextInstance:function(){throw new Error("Not yet implemented.")},unhideInstance:function(e,t){const n=C(C({},t),{},{style:C(C({},t.style),{},{display:"flex"})});Object.keys(n).forEach(t=>e.setAttribute(t,n[t]))},shouldDeprioritizeSubtree:function(){return!0},shouldUpdateFundamentalComponent:function(){throw new Error("Not yet implemented.")},shouldSetTextContent:function(e,t){if(t&&"Text"===t.nativeName||-1!==["p","span"].indexOf(e)){const{children:e}=t;return"string"==typeof e||"number"==typeof e}return!1}});const It=l()(C(C({},Pt),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:()=>{},cancelDeferredCallback:()=>{}}));var _t=Object.freeze({__proto__:null,getString:function(){return I.callNativeWithPromise("ClipboardModule","getString")},setString:function(e){I.callNative("ClipboardModule","setString",e)}});var Lt=Object.freeze({__proto__:null,getCookies:function(e){return I.callNativeWithPromise("network","getCookie",e)},setCookie:function(e,t,n){let r="";"string"==typeof n&&(r=n),n instanceof Date&&(r=n.toUTCString()),I.callNative("network","setCookie",e,t,r)}});function Tt(e){return I.callNativeWithPromise("ImageLoaderModule","getSize",e)}function At(e){I.callNative("ImageLoaderModule","prefetch",e)}var Rt=Object.freeze({__proto__:null,getSize:Tt,prefetch:At});const zt=new Map,Ot=new Se;class jt{constructor(e,t){this.eventName=e,this.listener=t}remove(){this.eventName&&this.listener&&(Ft(this.eventName,this.listener),this.listener=void 0)}}function Ft(e,t){if(t instanceof jt)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange");const r=zt.get(t);if(!r)return;r.remove(),zt.delete(t);Ot.listenerSize(n)<1&&I.callNative("NetInfo","removeListener",n)}var Ht=Object.freeze({__proto__:null,addEventListener:function(e,t){let n=e;n&&"change"===n&&(n="networkStatusDidChange"),Ot.listenerSize(n)<1&&I.callNative("NetInfo","addListener",n);const r=Ot.addListener(n,e=>{t(e)});return zt.set(t,r),new jt(n,t)},removeEventListener:Ft,fetch:function(){return I.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)}});const{createNode:Mt,updateNode:Bt,deleteNode:Dt,flushBatch:Ut,endBatch:Wt,sendRenderError:Vt}=L,$t=["%c[native]%c","color: red","color: auto"],Qt=function(e){return D(t=>t.stateNode&&t.stateNode.nodeId===e)};function qt(e){if(e instanceof wt)return e;if(!e)return null;const t=e._reactInternalFiber||e._reactInternals;if(null==t?void 0:t.child){let e=t.child;for(;e&&!(e.stateNode instanceof wt);)e=e.child;return e&&e.stateNode?e.stateNode:null}return null}function Gt(e){let t=e;if("string"==typeof e){const n=D(t=>!!(t.return&&t.return.ref&&t.return.ref._stringRef)&&t.return.ref._stringRef===e);if(!n||!n.stateNode)return 0;t=n.stateNode}if(!t.nodeId){const e=qt(t);return e?e.nodeId:0}return t.nodeId}function Kt(e,t,...n){let{nativeName:r,nodeId:i}=e;if(!i||!r){const t=qt(e);t&&({nodeId:i,nativeName:r}=t)}if(!r)throw new Error("callUIFunction is calling a unnamed component");if(!i)throw new Error("callUIFunction is calling a component have no nodeId");let[o=[],a]=n;se(o)&&(a=o,o=[]);null!==B()&&(re(...$t,"callUIFunction",{nodeId:i,funcName:t,paramList:o}),L.callUIFunction(i,t,o,a))}function Yt(e,t,n){const r=Gt(t);return new Promise((t,i)=>r?(re(...$t,"callUIFunction",{nodeId:r,funcName:e,paramList:[]}),L.callUIFunction(r,e,[],e=>(n&&se(n)&&n(e),"this view is null"===e?i(new Error("Android cannot get the node")):t(e)))):(n&&se(n)&&n("this view is null"),i(new Error(e+" cannot get nodeId"))))}var Xt=Object.freeze({__proto__:null,createNode:Mt,updateNode:Bt,deleteNode:Dt,flushBatch:Ut,endBatch:Wt,sendRenderError:Vt,getNodeById:Qt,getNodeIdByRef:Gt,getElementFromFiberRef:qt,callUIFunction:Kt,getBoundingClientRect:function(e,t){const n=Gt(e);return new Promise((r,i)=>n?(re(...$t,"callUIFunction",{nodeId:n,funcName:"getBoundingClientRect",params:t}),L.callUIFunction(n,"getBoundingClientRect",[t],e=>{if(!e||e.errMsg)return i(new Error((null==e?void 0:e.errMsg)||"getBoundingClientRect error with no response"));const{x:t,y:n,width:o,height:a}=e;let l=void 0,s=void 0;return"number"==typeof n&&"number"==typeof a&&(l=n+a),"number"==typeof t&&"number"==typeof o&&(s=t+o),r({x:t,y:n,width:o,height:a,bottom:l,right:s,left:t,top:n})})):i(new Error("getBoundingClientRect cannot get nodeId of "+e)))},measureInWindow:function(e,t){return Yt("measureInWindow",e,t)},measureInAppWindow:function(e,t){return"android"===_.platform.OS?Yt("measureInWindow",e,t):Yt("measureInAppWindow",e,t)}});const Jt=new Se,Zt=new Set,en={exitApp(){I.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(I.callNative("DeviceEventModule","setListenBackPress",!0),Zt.add(e),{remove(){en.removeListener(e)}}),removeListener(e){Zt.delete(e),0===Zt.size&&I.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){Jt.addListener("hardwareBackPress",()=>{let e=!0;[...Zt].reverse().every(t=>"function"!=typeof t||!t()||(e=!1,!1)),e&&en.exitApp()})}},tn=(en.initEventListener(),en),{flushSync:nn}=It,{addEventListener:rn,removeEventListener:on,dispatchEvent:an,AsyncStorage:ln,Bridge:sn,Device:un,HippyRegister:cn}=O;var fn=Object.freeze({__proto__:null,addEventListener:rn,removeEventListener:on,dispatchEvent:an,AsyncStorage:ln,BackAndroid:tn,Bridge:sn,Clipboard:_t,Cookie:Lt,Device:un,HippyRegister:cn,ImageLoader:Rt,NetworkInfo:Ht,UIManager:Xt,flushSync:nn});const{createContainer:dn,updateContainer:pn,getPublicRootInstance:hn,injectIntoDevTools:mn}=It,yn=['%c[Hippy-React "unspecified"]%c',"color: #61dafb","color: auto"];class gn{constructor(e){if(!e.appName||!e.entryPage)throw new TypeError("Invalid arguments");this.config=e,this.regist=this.start,this.render=this.render.bind(this);const t=new Et;this.rootContainer=dn(t,0,!1,null)}static get Native(){return fn}start(){cn.regist(this.config.appName,this.render)}render(e){const{appName:t,entryPage:n,silent:r=!1,bubbles:i=!1,callback:a=(()=>{})}=this.config,{__instanceId__:l}=e;re(...yn,"Start",t,"with rootViewId",l,e),this.rootContainer.containerInfo.nodeId=l,r&&ue(r),i&&function(e=!1){ne=e}(i),M(l,this.rootContainer);const s=o.a.createElement(n,e);return pn(s,this.rootContainer,null,a),hn(this.rootContainer)}}gn.version="unspecified";const vn={registerComponent(e,t){new gn({appName:e,entryPage:t}).start()}};class bn extends o.a.Component{constructor(){super(...arguments),this.instance=null}setPressed(e){Kt(this.instance,"setPressed",[e])}setHotspot(e,t){Kt(this.instance,"setHotspot",[e,t])}render(){const e=this.props,{collapsable:t,style:n={}}=e,r=N(e,u),i=n,{nativeBackgroundAndroid:a}=r;return"boolean"==typeof t&&(i.collapsable=t),void 0!==(null==a?void 0:a.color)&&(a.color=He(a.color)),o.a.createElement("div",C({ref:e=>{this.instance=e},nativeName:"View",style:i},r))}}function wn(e,t){let{style:n}=e,r=N(e,c);const i=n;if(n&&(Array.isArray(n)?-1===n.filter(e=>"object"==typeof e&&e).findIndex(e=>e.color||e.colors)&&(i[0].color="#000"):"object"==typeof n&&void 0===n.color&&void 0===n.colors&&(i.color="#000")),r.text="","string"==typeof r.children)r.text=ie(r.children);else if("number"==typeof r.children)r.text=ie(r.children.toString());else if(Array.isArray(r.children)){const e=r.children.filter(e=>"string"==typeof e||"number"==typeof e).join("");e&&(r.text=ie(e),r.children=r.text)}return o.a.createElement("p",C({ref:t,nativeName:"Text",style:i},r))}wn.displayName="Text";const En=o.a.forwardRef(wn);En.displayName="Text";var kn=Object.freeze({__proto__:null,default:En});class Sn extends o.a.Component{static get resizeMode(){return{contain:"contain",cover:"cover",stretch:"stretch",center:"center",repeat:"repeat"}}static getSize(e,t,n){if("string"!=typeof e)throw new TypeError("Image.getSize first argument must be a string url");const r=Tt(e);return"function"==typeof t&&r.then(e=>t(e.width,e.height)),"function"==typeof n?r.catch(n):r.catch(e=>{}),r}render(){const e=this.props,{children:t,style:n,imageStyle:r,imageRef:i,source:a,sources:l,src:s,srcs:u,tintColor:c,tintColors:d}=e,p=N(e,f),h=this.getImageUrls({src:s,srcs:u,source:a,sources:l});1===h.length?[p.src]=h:h.length>1&&(p.srcs=h),"string"==typeof p.defaultSource&&(p.defaultSource.indexOf("data:image/"),p.defaultSource=de(p.defaultSource));const m=C({},n);return this.handleTintColor(m,c,d),p.style=m,t?o.a.createElement(bn,{style:n},o.a.createElement("img",C(C({},p),{},{nativeName:"Image",alt:"",ref:i,style:[{position:"absolute",left:0,right:0,top:0,bottom:0,width:n.width,height:n.height},r]})),t):o.a.createElement("img",C(C({},p),{},{nativeName:"Image",alt:"",ref:i}))}getImageUrls({src:e,srcs:t,source:n,sources:r}){let i=[];if("string"==typeof e&&i.push(e),Array.isArray(t)&&(i=[...i,...t]),n)if("string"==typeof n)i.push(n);else if("object"==typeof n&&null!==n){const{uri:e}=n;e&&i.push(e)}return r&&Array.isArray(r)&&r.forEach(e=>{"string"==typeof e?i.push(e):"object"==typeof e&&null!==e&&e.uri&&i.push(e.uri)}),i.length&&(i=i.map(e=>de(e))),i}handleTintColor(e,t,n){t&&Object.assign(e,{tintColor:t}),Array.isArray(n)&&Object.assign(e,{tintColors:n})}}Sn.prefetch=At;class Cn{constructor(){this.Value=Cn.Value}static Value(e){return e}static timing(e,t){return new Qe({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}Cn.View=bn,Cn.Text=kn,Cn.Image=Sn;const xn={step0:e=>e>0?1:0,step1:e=>e>=1?1:0,linear:()=>"linear",ease:()=>"ease",quad:e=>e**2,cubic:e=>e**3,poly:e=>t=>t**e,sin:e=>1-Math.cos(e*Math.PI/2),circle:e=>1-Math.sqrt(1-e*e),exp:e=>2**(10*(e-1)),elastic:()=>"elastic",back:(e=1.70158)=>t=>t*t*((e+1)*t-e),bounce(e){let t=e;return t<1/2.75?7.5625*t*t:t<2/2.75?(t-=1.5/2.75,7.5625*t*t+.75):t<2.5/2.75?(t-=2.25/2.75,7.5625*t*t+.9375):(t-=2.625/2.75,7.5625*t*t+.984375)},bezier:()=>"bezier",in:()=>"ease-in",out:()=>"ease-out",inOut:()=>"ease-in-out"};function Nn(e){return o.a.createElement("li",C({nativeName:"ListViewItem"},e))}class Pn extends o.a.Component{constructor(){super(...arguments),this.instance=null}expandPullHeader(){Kt(this.instance,"expandPullHeader",[])}collapsePullHeader(e){void 0!==e?Kt(this.instance,"collapsePullHeaderWithOptions",[e]):Kt(this.instance,"collapsePullHeader",[])}render(){const e=this.props,{children:t}=e,n=N(e,d);return o.a.createElement("div",C({nativeName:"PullHeaderView",ref:e=>{this.instance=e}},n),t)}}class In extends o.a.Component{constructor(){super(...arguments),this.instance=null}expandPullFooter(){Kt(this.instance,"expandPullFooter",[])}collapsePullFooter(){Kt(this.instance,"collapsePullFooter",[])}render(){const e=this.props,{children:t}=e,n=N(e,p);return o.a.createElement("div",C({nativeName:"PullFooterView",ref:e=>{this.instance=e}},n),t)}}class _n extends o.a.Component{constructor(e){super(e),this.instance=null,this.pullHeader=null,this.pullFooter=null,this.handleInitialListReady=this.handleInitialListReady.bind(this),this.state={initialListReady:!1}}componentDidMount(){const{getRowKey:e}=this.props}scrollToIndex(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Kt(this.instance,"scrollToIndex",[e,t,n])}scrollToContentOffset(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Kt(this.instance,"scrollToContentOffset",[e,t,n])}expandPullHeader(){this.pullHeader&&this.pullHeader.expandPullHeader()}collapsePullHeader(e){this.pullHeader&&this.pullHeader.collapsePullHeader(e)}expandPullFooter(){this.pullFooter&&this.pullFooter.expandPullFooter()}collapsePullFooter(){this.pullFooter&&this.pullFooter.collapsePullFooter()}render(){const e=this.props,{children:t,style:n,renderRow:r,renderPullHeader:i,renderPullFooter:a,getRowType:l,getRowStyle:s,getHeaderStyle:u,getFooterStyle:c,getRowKey:f,dataSource:d,initialListSize:p,rowShouldSticky:m,onRowLayout:y,onHeaderPulling:g,onHeaderReleased:v,onFooterPulling:b,onFooterReleased:w,onAppear:E,onDisappear:k,onWillAppear:S,onWillDisappear:x}=e,P=N(e,h),I=[];if("function"==typeof r){const{initialListReady:e}=this.state;let{numberOfRows:t}=this.props;const h=this.getPullHeader(i,g,v,u),N=this.getPullFooter(a,b,w,c);!t&&d&&(t=d.length),e||(t=Math.min(t,p||15));for(let e=0;e{"function"==typeof n&&(t[r]=()=>{n(e)})}),n&&I.push(o.a.createElement(Nn,C({},t),n))}h&&I.unshift(h),N&&I.push(N),"function"==typeof m&&Object.assign(P,{rowShouldSticky:!0});const _=[E,k,S,x];P.exposureEventEnabled=_.some(e=>"function"==typeof e),"ios"===un.platform.OS&&(P.numberOfRows=I.length),void 0!==p&&(P.initialListSize=p),P.style=C({overflow:"scroll"},n)}return o.a.createElement("ul",C({ref:e=>{this.instance=e},nativeName:"ListView",initialListReady:this.handleInitialListReady},P),I.length?I:t)}handleInitialListReady(){this.setState({initialListReady:!0})}getPullHeader(e,t,n,r){let i=null,a={};return"function"==typeof r&&(a=r()),"function"==typeof e&&(i=o.a.createElement(Pn,{style:a,key:"pull-header",ref:e=>{this.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),i}getPullFooter(e,t,n,r){let i=null,a={};return"function"==typeof r&&(a=r()),"function"==typeof e&&(i=o.a.createElement(In,{style:a,key:"pull-footer",ref:e=>{this.pullFooter=e},onFooterPulling:t,onFooterReleased:n},e())),i}handleRowProps(e,t,{getRowKey:n,getRowStyle:r,onRowLayout:i,getRowType:o,rowShouldSticky:a}){if("function"==typeof n&&(e.key=n(t)),"function"==typeof r&&(e.style=r(t)),"function"==typeof i&&(e.onLayout=e=>{i(e,t)}),"function"==typeof o){const n=o(t);Number.isInteger(n),e.type=n}"function"==typeof a&&(e.sticky=a(t))}}_n.defaultProps={numberOfRows:0};class Ln extends o.a.Component{constructor(e){super(e),this.instance=null,this.refreshComplected=this.refreshCompleted.bind(this)}startRefresh(){Kt(this.instance,"startRefresh",null)}refreshCompleted(){Kt(this.instance,"refreshComplected",null)}render(){const e=this.props,{children:t}=e,n=N(e,m);return o.a.createElement("div",C({nativeName:"RefreshWrapper",ref:e=>{this.instance=e}},n),o.a.createElement("div",{nativeName:"RefreshWrapperItemView",style:{left:0,right:0,position:"absolute"}},this.getRefresh()),t)}getRefresh(){const{getRefresh:e}=this.props;return"function"==typeof e&&e()||null}}class Tn{constructor(){this.top=null,this.size=0}push(e){this.top={data:e,next:this.top},this.size+=1}peek(){return null===this.top?null:this.top.data}pop(){if(null===this.top)return null;const e=this.top;return this.top=this.top.next,this.size>0&&(this.size-=1),e.data}clear(){this.top=null,this.size=0}displayAll(){const e=[];if(null===this.top)return e;let t=this.top;for(let n=0,r=this.size;n1&&this.pop({animated:!0})}push(e){if(null==e?void 0:e.component){if(!this.routeList[e.routeName]){new gn({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0}delete e.component}const t=[e];this.stack.push(e),Kt(this.instance,"push",t)}pop(e){if(this.stack.size>1){const t=[e];this.stack.pop(),Kt(this.instance,"pop",t)}}clear(){this.stack.clear()}render(){const e=this.props,{initialRoute:{component:t}}=e,n=N(e.initialRoute,g),r=N(e,y);return r.initialRoute=n,o.a.createElement("div",C({nativeName:"Navigator",ref:e=>{this.instance=e}},r))}}function Rn(e){return o.a.createElement("div",C(C({nativeName:"ViewPagerItem"},e),{},{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}class zn extends o.a.Component{constructor(e){super(e),this.instance=null,this.setPage=this.setPage.bind(this),this.setPageWithoutAnimation=this.setPageWithoutAnimation.bind(this),this.onPageScrollStateChanged=this.onPageScrollStateChanged.bind(this)}onPageScrollStateChanged(e){const{onPageScrollStateChanged:t}=this.props;t&&t(e.pageScrollState)}setPage(e){"number"==typeof e&&Kt(this.instance,"setPage",[e])}setPageWithoutAnimation(e){"number"==typeof e&&Kt(this.instance,"setPageWithoutAnimation",[e])}render(){const e=this.props,{children:t,onPageScrollStateChanged:n}=e,r=N(e,v);let i=[];return Array.isArray(t)?i=t.map(e=>{const t={};return"string"==typeof e.key&&(t.key="viewPager_"+e.key),o.a.createElement(Rn,C({},t),e)}):i.push(o.a.createElement(Rn,null,t)),"function"==typeof n&&(r.onPageScrollStateChanged=this.onPageScrollStateChanged),o.a.createElement("div",C({nativeName:"ViewPager",ref:e=>{this.instance=e}},r),i)}}function On(){const e=_.platform.Localization;return!!e&&1===e.direction}const jn={caretColor:"caret-color"};class Fn extends o.a.Component{constructor(e){super(e),this.instance=null,this._lastNativeText="",this.onChangeText=this.onChangeText.bind(this),this.onKeyboardWillShow=this.onKeyboardWillShow.bind(this)}componentDidMount(){const{value:e,autoFocus:t}=this.props;this._lastNativeText=e,t&&this.focus()}componentWillUnmount(){this.blur()}getValue(){return new Promise(e=>{Kt(this.instance,"getValue",t=>e(t.text))})}setValue(e){return Kt(this.instance,"setValue",[e]),e}focus(){Kt(this.instance,"focusTextInput",[])}blur(){Kt(this.instance,"blurTextInput",[])}isFocused(){return new Promise(e=>{Kt(this.instance,"isFocused",t=>e(t.value))})}showInputMethod(){}hideInputMethod(){}clear(){Kt(this.instance,"clear",[])}render(){const e=C({},this.props);return["underlineColorAndroid","placeholderTextColor","placeholderTextColors","caretColor","caret-color"].forEach(t=>{let n=t;const r=this.props[t];"string"==typeof this.props[t]&&(jn[t]&&(n=jn[t]),Array.isArray(e.style)?e.style.push({[n]:r}):e.style&&"object"==typeof e.style?e.style[n]=r:e.style={[n]:r},delete e[t])}),On()&&(e.style?"object"!=typeof e.style||Array.isArray(e.style)||e.style.textAlign||(e.style.textAlign="right"):e.style={textAlign:"right"}),o.a.createElement("div",C(C({nativeName:"TextInput"},e),{},{ref:e=>{this.instance=e},onChangeText:this.onChangeText,onKeyboardWillShow:this.onKeyboardWillShow}))}onChangeText(e){const{onChangeText:t}=this.props;"function"==typeof t&&t(e.text),this.instance&&(this._lastNativeText=e.text)}onKeyboardWillShow(e){const{onKeyboardWillShow:t}=this.props;"function"==typeof t&&t(e)}}const Hn=un.window.scale;let Mn=Math.round(.4*Hn)/Hn;function Bn(e){return e}0===Mn&&(Mn=1/Hn);var Dn=Object.freeze({__proto__:null,get hairlineWidth(){return Mn},create:Bn});const Un={baseVertical:{flexGrow:1,flexShrink:1,flexDirection:"column",overflow:"scroll"},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:"row",overflow:"scroll"},contentContainerVertical:{collapsable:!1,flexDirection:"column"},contentContainerHorizontal:{collapsable:!1,flexDirection:"row"}};class Wn extends o.a.Component{constructor(){super(...arguments),this.instance=null}scrollTo(e,t,n=!0){let r=e,i=t,o=n;"object"==typeof e&&e&&({x:r,y:i,animated:o}=e),r=r||0,i=i||0,o=!!o,Kt(this.instance,"scrollTo",[r,i,o])}scrollToWithDuration(e=0,t=0,n=1e3){Kt(this.instance,"scrollToWithOptions",[{x:e,y:t,duration:n}])}render(){const{horizontal:e,contentContainerStyle:t,children:n,style:r}=this.props,i=[e?Un.contentContainerHorizontal:Un.contentContainerVertical,t],a=e?Object.assign({},Un.baseHorizontal,r):Object.assign({},Un.baseVertical,r);return e&&(a.flexDirection=On()?"row-reverse":"row"),o.a.createElement("div",C(C({nativeName:"ScrollView",ref:e=>{this.instance=e}},this.props),{},{style:a}),o.a.createElement(bn,{style:i},n))}}const Vn={modal:{position:"absolute",collapsable:!1}};class $n extends o.a.Component{constructor(e){super(e),this.eventSubscription=null}componentDidMount(){"ios"===un.platform.OS&&(this.eventSubscription=new Ee("modalDismissed"),this.eventSubscription.addCallback(e=>{const{primaryKey:t,onDismiss:n}=this.props;e.primaryKey===t&&"function"==typeof n&&n()}))}componentWillUnmount(){"ios"===un.platform.OS&&this.eventSubscription&&this.eventSubscription.unregister()}render(){const{children:e,visible:t,transparent:n,animated:r}=this.props;let{animationType:i}=this.props;if(!1===t)return null;const a={backgroundColor:n?"transparent":"white"};return i||(i="none",r&&(i="slide")),o.a.createElement("div",C({nativeName:"Modal",animationType:i,transparent:n,style:[Vn.modal,a]},this.props),e)}}$n.defaultProps={visible:!0};class Qn extends o.a.Component{constructor(e){super(e);const{requestFocus:t}=this.props;this.state={isFocus:!!t},this.handleFocus=this.handleFocus.bind(this)}render(){var e,t,n;const{requestFocus:r,children:i,nextFocusDownId:a,nextFocusUpId:l,nextFocusLeftId:s,nextFocusRightId:u,style:c,noFocusStyle:f,focusStyle:d,onClick:p}=this.props,{isFocus:h}=this.state,m=o.a.Children.only(i);let y;(null===(t=null===(e=null==m?void 0:m.child)||void 0===e?void 0:e.memoizedProps)||void 0===t?void 0:t.nativeName)?y=m.child.memoizedProps.nativeName:(null===(n=null==m?void 0:m.type)||void 0===n?void 0:n.displayName)&&(y=m.type.displayName);const g=a&&Gt(a),v=l&&Gt(l),b=s&&Gt(s),w=u&&Gt(u);let E=c;if("Text"!==y){const e=m.memoizedProps.style;E=C(C({},E),e)}if(Object.assign(E,h?d:f),"Text"===y)return o.a.createElement(bn,{focusable:!0,nextFocusDownId:g,nextFocusUpId:v,nextFocusLeftId:b,nextFocusRightId:w,requestFocus:r,style:E,onClick:p,onFocus:this.handleFocus},m);const{children:k}=m.memoizedProps;return o.a.cloneElement(m,{nextFocusDownId:a,nextFocusUpId:l,nextFocusLeftId:s,nextFocusRightId:u,requestFocus:r,onClick:p,focusable:!0,children:k,style:E,onFocus:this.handleFocus})}handleFocus(e){const{onFocus:t}=this.props;"function"==typeof t&&t(e);const{isFocus:n}=this.state;n!==e.focus&&this.setState({isFocus:e.focus})}}function qn(e){return o.a.createElement("iframe",C({title:"hippy",nativeName:"WebView"},e))}let Gn;class Kn{constructor(e,t,n){if(this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),Gn||(Gn=new Ee("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!e||"string"!=typeof e)throw new TypeError("Invalid WebSocket url");const r=C({},n);if(void 0!==t)if(Array.isArray(t)&&t.length>0)r["Sec-WebSocket-Protocol"]=t.join(",");else{if("string"!=typeof t)throw new TypeError("Invalid WebSocket protocols");r["Sec-WebSocket-Protocol"]=t}const i={headers:r,url:e};this.url=e,this.webSocketCallbackId=Gn.addCallback(this.onWebSocketEvent),I.callNativeWithPromise("websocket","connect",i).then(e=>{e&&0===e.code&&"number"==typeof e.id&&(this.webSocketId=e.id)})}close(e,t){1===this.readyState&&(this.readyState=2,I.callNative("websocket","close",{id:this.webSocketId,code:e,reason:t}))}send(e){if(1===this.readyState){if("string"!=typeof e)throw new TypeError("Unsupported websocket data type: "+typeof e);I.callNative("websocket","send",{id:this.webSocketId,data:e})}}set onopen(e){this.webSocketCallbacks.onOpen=e}set onclose(e){this.webSocketCallbacks.onClose=e}set onerror(e){this.webSocketCallbacks.onError=e}set onmessage(e){this.webSocketCallbacks.onMessage=e}onWebSocketEvent(e){if("object"!=typeof e||e.id!==this.webSocketId)return;const{type:t}=e;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,Gn.removeCallback(this.webSocketCallbackId));const n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}function Yn(e){return o.a.createElement("li",C({nativeName:"WaterfallItem"},e))}class Xn extends o.a.Component{constructor(e){super(e),this.instance=null,this.pullHeader=null,this.pullFooter=null,this.handleInitialListReady=this.handleInitialListReady.bind(this)}scrollToIndex({index:e=0,animated:t=!0}){Kt(this.instance,"scrollToIndex",[e,e,t])}scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){Kt(this.instance,"scrollToContentOffset",[e,t,n])}expandPullHeader(){this.pullHeader&&this.pullHeader.expandPullHeader()}collapsePullHeader(e){this.pullHeader&&this.pullHeader.collapsePullHeader(e)}expandPullFooter(){this.pullFooter&&this.pullFooter.expandPullFooter()}collapsePullFooter(){this.pullFooter&&this.pullFooter.collapsePullFooter()}render(){const e=this.props,{style:t={},renderBanner:n,numberOfColumns:r=2,columnSpacing:i=0,interItemSpacing:a=0,numberOfItems:l=0,preloadItemNumber:s=0,renderItem:u,renderPullHeader:c,renderPullFooter:f,getItemType:d,getItemKey:p,getItemStyle:h,contentInset:m={top:0,left:0,bottom:0,right:0},onItemLayout:y,onHeaderPulling:g,onHeaderReleased:v,onFooterPulling:w,onFooterReleased:E,containPullHeader:k=!1,containPullFooter:S=!1,containBannerView:x=!1}=e,P=C(C({},N(e,b)),{},{style:t,numberOfColumns:r,columnSpacing:i,interItemSpacing:a,preloadItemNumber:s,contentInset:m,containPullHeader:k,containPullFooter:S,containBannerView:x}),I=[];if("function"==typeof n){const e=n();if(e)if("ios"===un.platform.OS)I.push(o.a.createElement(bn,{key:"bannerView"},o.a.cloneElement(e))),P.containBannerView=!0;else if("android"===un.platform.OS){const t={key:"bannerView",fullSpan:!0,style:{}};I.push(o.a.createElement(Yn,C({},t),o.a.cloneElement(e)))}}if("function"==typeof u){const e=this.getPullHeader(c,g,v),n=this.getPullFooter(f,w,E);for(let e=0;ethis.instance=e,initialListReady:this.handleInitialListReady.bind(this)},P),I)}componentDidMount(){const{getItemKey:e}=this.props}handleRowProps(e,t,{getItemKey:n,getItemStyle:r,onItemLayout:i,getItemType:o}){if("function"==typeof n&&(e.key=n(t)),"function"==typeof r&&(e.style=r(t)),"function"==typeof i&&(e.onLayout=e=>{i.call(this,e,t)}),"function"==typeof o){const n=o(t);Number.isInteger(n),e.type=n}}getPullHeader(e,t,n){let r=null;return"function"==typeof e&&(r=o.a.createElement(Pn,{key:"PullHeader",ref:e=>{this.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),r}getPullFooter(e,t,n){let r=null;return"function"==typeof e&&(r=o.a.createElement(In,{key:"PullFooter",ref:e=>{this.pullFooter=e},onFooterPulling:t,onFooterReleased:n},e())),r}handleInitialListReady(){const{onInitialListReady:e}=this.props;"function"==typeof e&&e()}}e.WebSocket=Kn;const{AsyncStorage:Jn,BackAndroid:Zn,Bridge:er,Clipboard:tr,Cookie:nr,Device:rr,HippyRegister:ir,ImageLoader:or,NetworkInfo:ar,UIManager:lr,flushSync:sr}=fn,{callNative:ur,callNativeWithPromise:cr,callNativeWithCallbackId:fr,removeNativeCallback:dr}=er,pr=null,hr=e.ConsoleModule||e.console,mr=rr.platform,yr=gn,gr=Sn,vr={get:e=>rr[e]},br={get:()=>rr.screen.scale}}.call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/process/browser.js"))},"./node_modules/@hippy/react-reconciler/cjs/react-reconciler.production.min.js":function(e,t,n){(function(e){ + */(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}e.__GLOBAL__||(e.__GLOBAL__={}),e.__GLOBAL__.nodeId=0,e.__GLOBAL__.animationId=0;const{asyncStorage:P,bridge:I,device:_,document:L,register:T,on:A,off:R,emit:z}=e.Hippy;var O=Object.freeze({__proto__:null,addEventListener:A,removeEventListener:R,dispatchEvent:z,AsyncStorage:P,Bridge:I,Device:_,HippyRegister:T,UIManager:L});let j,F;const H=new Map;function M(e,t){F=e,j=t}function B(){if(!F)throw new Error("getRootViewId must execute after setRootContainer");return F}function D(e){if(!j)return null;const{current:t}=j,n=[t];for(;n.length;){const t=n.shift();if(!t)break;if(e(t))return t;t.child&&n.push(t.child),t.sibling&&n.push(t.sibling)}return null}function U(e,t){H.set(t,e)}function W(e){H.delete(e)}function V(e){return(null==e?void 0:e.stateNode)||null}function $(e){return H.get(e)||null}function Q(t){!function(t,n){if(!e.requestIdleCallback)return setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>1/0})},1);e.requestIdleCallback(t,n)}(e=>{(e.timeRemaining()>0||e.didTimeout)&&function e(t){"number"==typeof t?W(t):t&&(W(t.nodeId),Array.isArray(t.childNodes)&&t.childNodes.forEach(t=>e(t)))}(t)},{timeout:50})}const q=0,G=1,K=-1,Y=1,X={onTouchStart:["onTouchStart","onTouchDown"],onPress:["onPress","onClick"]},J={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3},Z={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"};const ee=new RegExp(/^\d+$/);let te=!1,ne=!1;function re(...e){ce()&&console.log(...e)}function ie(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)))}const oe=new RegExp("^on.+Capture$");function ae(e){return oe.test(e)}const le=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function se(e){return"[object Function]"===Object.prototype.toString.call(e)}function ue(e){te=e}function ce(){return!1}function fe(){return ne}function de(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){0;return`${"hpfile://"}./${e}`}return e}function pe(e){return"string"==typeof e?""!==e.trim():null!=e}class he{constructor(e){this.handlerContainer={},this.nextIdForHandler=0,this.eventName=e}getEventListeners(){return Object.keys(this.handlerContainer).filter(e=>this.handlerContainer[e]).map(e=>this.handlerContainer[e])}getHandlerSize(){return Object.keys(this.handlerContainer).length}addEventHandler(e,t){if(!e)throw new TypeError("Invalid arguments for addEventHandler");const n=this.nextIdForHandler;this.nextIdForHandler+=1;const r={id:n,eventHandler:e,context:t},i="eventHandler_"+n;return this.handlerContainer[i]=r,n}notifyEvent(...e){Object.keys(this.handlerContainer).forEach(t=>{const n=this.handlerContainer[t];n&&n.eventHandler&&(n.context?n.eventHandler.call(n.context,...e):n.eventHandler(...e))})}removeEventHandler(e){if("number"!=typeof e)throw new TypeError("Invalid arguments for removeEventHandler");const t="eventHandler_"+e;this.handlerContainer[t]&&delete this.handlerContainer[t]}}class me{constructor(e,t,n){this.type=e,this.bubbles=!0,this.currentTarget=t,this.target=n}stopPropagation(){this.bubbles=!1}preventDefault(){}}const ye=new Map,ge=["%c[event]%c","color: green","color: auto"];function ve(e,t){return!(!t.memoizedProps||"function"!=typeof t.memoizedProps[e])}function be(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for getHippyEventHub: "+e);return ye.get(e)||null}const we={registerNativeEventHub:function(e){if(re(...ge,"registerNativeEventHub",e),"string"!=typeof e)throw new TypeError("Invalid eventName for registerNativeEventHub: "+e);let t=ye.get(e);return t||(t=new he(e),ye.set(e,t)),t},getHippyEventHub:be,unregisterNativeEventHub:function(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for unregisterNativeEventHub: "+e);ye.has(e)&&ye.delete(e)},receiveNativeEvent:function(e){if(re(...ge,"receiveNativeEvent",e),!e||!Array.isArray(e)||e.length<2)throw new TypeError("Invalid params for receiveNativeEvent: "+JSON.stringify(e));const[t,n]=e;if("string"!=typeof t)throw new TypeError("Invalid arguments for nativeEvent eventName");const r=be(t);r&&r.notifyEvent(n)},receiveComponentEvent:function(e,t){if(re(...ge,"receiveComponentEvent",e),!e||!t)return;const{id:n,currentId:r,nativeName:i,originalName:o,params:a={}}=e,l=$(r),s=$(n);l&&s&&(Z[i]?function(e,t,n,r,i,o){try{let t=!1;const a=V(r),l=V(n),{eventPhase:s}=o;if(ve(e,n)&&ae(e)&&[J.AT_TARGET,J.CAPTURING_PHASE].indexOf(s)>-1){const t=new me(e,l,a);Object.assign(t,{eventPhase:s},i),n.memoizedProps[e](t),!t.bubbles&&o&&o.stopPropagation()}if(ve(e,n)&&!ae(e)&&[J.AT_TARGET,J.BUBBLING_PHASE].indexOf(s)>-1){const r=new me(e,l,a);Object.assign(r,{eventPhase:s},i),t=n.memoizedProps[e](r),"boolean"!=typeof t&&(t=!fe()),r.bubbles||(t=!0),t&&o&&o.stopPropagation()}}catch(e){console.error(e)}}(o,0,l,s,a,t):function(e,t,n,r,i,o){let a=!1;const l=V(r),s=V(n);try{const{eventPhase:t}=o;if(ve(e,n)&&!ae(e)&&[J.AT_TARGET,J.BUBBLING_PHASE].indexOf(t)>-1){const r=new me(e,s,l);Object.assign(r,{eventPhase:t},i),n.memoizedProps[e](r),a=!fe(),r.bubbles||(a=!0),a&&o&&o.stopPropagation()}}catch(e){console.error(e)}}(o,0,l,s,a,t))}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=we);class Ee{constructor(e,t){this.callback=e,this.bindListener=t}remove(){"number"==typeof this.callback&&this.bindListener&&(this.bindListener.removeCallback(this.callback),this.bindListener=void 0)}}class ke{constructor(e){this.eventName=e,this.listenerIdList=[]}unregister(){const e=we.getHippyEventHub(this.eventName);if(!e)throw new ReferenceError("No listeners for "+this.eventName);const t=this.listenerIdList.length;for(let n=0;n{if("string"!=typeof e&&!Array.isArray(e)||"function"!=typeof t)throw new TypeError("Invalid arguments for EventBus.on()");return Array.isArray(e)?e.forEach(e=>{Ne(e,t,n)}):Ne(e,t,n),Ie},off:(e,t)=>{if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("The event argument is not string or array for EventBus.off()");return Array.isArray(e)?e.forEach(e=>{Pe(e,t)}):Pe(e,t),Ie},sizeOf(e){if("string"!=typeof e)throw new TypeError("The event argument is not string for EventBus.sizeOf()");const t=Ce[e];return(null==t?void 0:t.eventMap)?t.eventMap.size:0},emit(e,...t){if("string"!=typeof e)throw new TypeError("The event argument is not string for EventBus.emit()");const n=we.getHippyEventHub(e);return n?(n.notifyEvent(...t),Ie):Ie}};function _e(...e){return`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`}const Le={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Te="[-+]?\\d*\\.?\\d+",Ae={rgb:new RegExp("rgb"+_e(Te,Te,Te)),rgba:new RegExp("rgba"+_e(Te,Te,Te,Te)),hsl:new RegExp("hsl"+_e(Te,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+_e(Te,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",Te)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/};function Re(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function ze(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Oe(e,t,n){let r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function je(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Oe(i,r,e+1/3),a=Oe(i,r,e),l=Oe(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function Fe(e){return(parseFloat(e)%360+360)%360/360}function He(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Me(e){if(Number.isInteger(e))return e;let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Ae.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(Le,e)?Le[e]:(t=Ae.rgb.exec(e),Array.isArray(t)?(Re(t[1])<<24|Re(t[2])<<16|Re(t[3])<<8|255)>>>0:(t=Ae.rgba.exec(e),t?(Re(t[1])<<24|Re(t[2])<<16|Re(t[3])<<8|ze(t[4]))>>>0:(t=Ae.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Ae.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=Ae.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Ae.hsl.exec(e),t?(255|je(Fe(t[1]),He(t[2]),He(t[3])))>>>0:(t=Ae.hsla.exec(e),t?(je(Fe(t[1]),He(t[2]),He(t[3]))|ze(t[4]))>>>0:null))))))))}(e);return null===t?0:(t=(t<<24|t>>>8)>>>0,t)}function Be(e){return Array.isArray(e)?e.map(e=>Me(e)):[0]}function De(e){return"loop"===e?-1:e}function Ue(e,t){return"color"===e&&["number","string"].indexOf(typeof t)>=0?Me(t):t}const We="animationstart",Ve="animationend",$e="animationcancel",Qe="animationrepeat";class qe{constructor(t){var n;let r;if((null===(n=t.startValue)||void 0===n?void 0:n.constructor)&&"Animation"===t.startValue.constructor.name)r={animationId:t.startValue.animationId};else{const{startValue:e}=t;r=Ue(t.valueType,e)}const i=Ue(t.valueType,t.toValue);this.mode=t.mode||"timing",this.delay=t.delay||0,this.startValue=r||0,this.toValue=i||0,this.valueType=t.valueType||void 0,this.duration=t.duration||0,this.direction=t.direction||"center",this.timingFunction=t.timingFunction||"linear",this.repeatCount=De(t.repeatCount||0),this.inputRange=t.inputRange||[],this.outputRange=t.outputRange||[],this.animation=new e.Hippy.Animation(Object.assign({mode:this.mode,delay:this.delay,startValue:this.startValue,toValue:this.toValue,duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{})),this.animationId=this.animation.getId(),this.destroy=this.destroy.bind(this),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}removeEventListener(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(We),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(Ve),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener($e),"function"==typeof this.onAnimationRepeatCallback&&this.animation.removeEventListener(Qe)}start(){if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(We,()=>{"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback()}),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(Ve,()=>{"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback()}),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener($e,()=>{"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback()}),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener(Qe,()=>{"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()}),this.animation.start()}destroy(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}pause(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}resume(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}updateAnimation(e){if(!this.animation)throw new Error("animation has not been initialized yet");if("object"!=typeof e)throw new TypeError("Invalid arguments");if("string"==typeof e.mode&&e.mode!==this.mode)throw new TypeError("Update animation mode not supported");Object.keys(e).forEach(t=>{const n=e[t];if("startValue"===t){let t;if(e.startValue instanceof qe)t={animationId:e.startValue.animationId};else{const{startValue:n}=e;t=Ue(this.valueType,n)}this.startValue=t||0}else"repeatCount"===t?this.repeatCount=De(e.repeatCount||0):Object.defineProperty(this,t,{value:n})}),this.animation.updateAnimation(Object.assign({mode:this.mode,delay:this.delay,startValue:this.startValue,toValue:Ue(this.valueType,this.toValue),duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{}))}onAnimationStart(e){this.onAnimationStartCallback=e}onAnimationEnd(e){this.onAnimationEndCallback=e}onAnimationCancel(e){this.onAnimationCancelCallback=e}onAnimationRepeat(e){this.onAnimationRepeatCallback=e}}const Ge="animationstart",Ke="animationend",Ye="animationcancel",Xe="animationrepeat";class Je{constructor(t){this.animationList=[],null==t||t.children.forEach(e=>{this.animationList.push({animationId:e.animation.animationId,follow:e.follow||!1})}),this.animation=new e.Hippy.AnimationSet({repeatCount:De(t.repeatCount||0),children:this.animationList}),this.animationId=this.animation.getId(),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}removeEventListener(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(Ge),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(Ke),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(Ye),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(Xe)}start(){if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(Ge,()=>{"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback()}),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(Ke,()=>{"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback()}),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener(Ye,()=>{"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback()}),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener(Ye,()=>{"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()}),this.animation.start()}destory(){this.destroy()}destroy(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}pause(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}resume(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}onAnimationStart(e){this.onAnimationStartCallback=e}onAnimationEnd(e){this.onAnimationEndCallback=e}onAnimationCancel(e){this.onAnimationCancelCallback=e}onAnimationRepeat(e){this.onAnimationRepeatCallback=e}}const Ze={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode"),moveNode:Symbol("moveNode")};let et=!0,tt=[];function nt(e=[],t){e.forEach(e=>{if(e){const{id:n,eventList:r}=e;r.forEach(e=>{const{name:r,type:i,listener:o,isCapture:a}=e;let l;l=function(e){return!!Z[e]}(r)?Z[r]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(r),i===G&&t.removeEventListener(n,l,o),i===q&&t.addEventListener(n,l,o,a)})}})}function rt(e,t){0}function it(t){const n=function(e){const t=[];for(let n=0;n{switch(e.type){case Ze.createNode:rt(e.printedNodes),r.create(e.nodes),nt(e.eventNodes,r);break;case Ze.updateNode:rt(e.printedNodes),r.update(e.nodes),nt(e.eventNodes,r);break;case Ze.deleteNode:rt(e.printedNodes),r.delete(e.nodes);break;case Ze.moveNode:rt(e.printedNodes),r.move(e.nodes)}}),r.build()}function ot(e=!1){if(!et)return;if(et=!1,0===tt.length)return void(et=!0);const t=B();e?(it(t),tt=[],et=!0):Promise.resolve().then(()=>{it(t),tt=[],et=!0})}function at(e){const t=e.attributes,{children:n}=t;return N(t,s)}function lt(e,t,n={}){var r;if(!t.nativeName)return[];if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: "+t.tagName);let i=t.style;if(t.parentNode instanceof kt){const e=Object.assign({},t.parentNode.inheritStyle,t.parentNode.style),{style:n,inheritStyle:r}=t;["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"].forEach(t=>{!pe(n[t])&&pe(e[t])&&(r[t]=e[t])}),function(e){return e&&"Text"===e.nativeName||-1!==["p","span"].indexOf(e.tagName)}(t)&&(i=Object.assign({},r,n))}const o={id:t.nodeId,pId:(null===(r=t.parentNode)||void 0===r?void 0:r.nodeId)||e,name:t.nativeName,props:x(x({},at(t)),{},{style:i}),tagName:t.tagName},a=function(e){let t=void 0;const n=e.events;if(n){const r=[];Object.keys(n).forEach(t=>{const{name:i,type:o,isCapture:a,listener:l}=n[t];e.isListenerHandled(t,o)||(e.setListenerHandledType(t,o),r.push({name:i,type:o,isCapture:a,listener:l}))}),t={id:e.nodeId,eventList:r}}return t}(t);let l=void 0;return[[o,n],a,l]}function st(e,t,n,r={}){const i=[],o=[],a=[];return t.traverseChildren((t,r)=>{const[l,s,u]=lt(e,t,r);l&&i.push(l),s&&o.push(s),u&&a.push(u),"function"==typeof n&&n(t)},r),[i,o,a]}function ut(e){return!!j&&e instanceof j.containerInfo.constructor}function ct(e,t,n={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;const r=B(),i=ut(e)&&!e.isMounted,o=e.isMounted&&!t.isMounted;if(i||o){const[e,i,o]=st(r,t,e=>{e.isMounted||(e.isMounted=!0)},n);tt.push({type:Ze.createNode,nodes:e,eventNodes:i,printedNodes:o})}}function ft(e){if(!e.isMounted)return;const t=B(),[n,r,i]=lt(t,e);n&&tt.push({type:Ze.updateNode,nodes:[n],eventNodes:[r],printedNodes:[]})}function dt(e){if(!e.isMounted)return;const t=B(),[n,r,i]=st(t,e)||{};n&&tt.push({type:Ze.updateNode,nodes:n,eventNodes:r,printedNodes:i})}let pt=0;class ht{constructor(){this.meta={component:{}},this.index=0,this.childNodes=[],this.parentNode=null,this.mounted=!1,this.nodeId=(pt+=1,pt%10==0&&(pt+=1),pt)}toString(){return this.constructor.name}get isMounted(){return this.mounted}set isMounted(e){this.mounted=e}insertBefore(e,t){if(!e)throw new Error("Can't insert child.");if(e.meta.skipAddToDom)return;if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't insert child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't insert child, because it already has a different parent.");const n=this.childNodes.indexOf(t);return e.parentNode=this,this.childNodes.splice(n,0,e),ct(this,e,{refId:t.nodeId,relativeToRef:K})}moveChild(e,t){if(!e)throw new Error("Can't move child.");if(e.meta.skipAddToDom)return;if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't move child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't move child, because it already has a different parent.");const n=this.childNodes.indexOf(e);if(this.childNodes.indexOf(t)===n)return e;this.childNodes.splice(n,1);const r=this.childNodes.indexOf(t);return this.childNodes.splice(r,0,e),function(e,t,n={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;const r=B(),i={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},o=[[i,n]],a=[];tt.push({printedNodes:a,type:Ze.moveNode,nodes:o,eventNodes:[]})}(this,e,{refId:t.nodeId,relativeToRef:K})}appendChild(e){if(!e)throw new Error("Can't append child.");if(e.meta.skipAddToDom)return;if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");e.parentNode=this;const t=this.childNodes.length-1,n=this.childNodes[t];this.childNodes.push(e),ct(this,e,n&&{refId:n.nodeId,relativeToRef:Y})}removeChild(e){if(!e)throw new Error("Can't remove child.");if(e.meta.skipAddToDom)return;if(!e.parentNode)throw new Error("Can't remove child, because it has no parent.");if(e.parentNode!==this)throw new Error("Can't remove child, because it has a different parent.");const t=this.childNodes.indexOf(e);this.childNodes.splice(t,1),function(e,t){if(!t||t.meta.skipAddToDom)return;t.isMounted=!1;const n=B(),r={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:n},i=[[r,{}]],o=[];tt.push({printedNodes:o,type:Ze.deleteNode,nodes:i,eventNodes:[]})}(0,e)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(let t=0;t{this.traverseChildren.call(t,e,{})})}}const mt={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},yt={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},gt="turn",vt="rad",bt="deg";function wt(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=w(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(!Array.isArray(n))return;let r="180";const[i,o,a]=n;return o&&a?r=function(e,t=bt){const n=parseFloat(e);let r=e||"";const[,i]=e.split(".");switch(i&&i.length>2&&(r=n.toFixed(2)),t){case gt:r=""+(360*n).toFixed(2);break;case vt:r=""+(180/Math.PI*n).toFixed(2)}return r}(o,a):i&&void 0!==yt[i]&&(r=yt[i]),r}function Et(e){const t=(e||"").replace(/\s+/g," ").trim(),[n,r]=t.split(/\s+(?![^(]*?\))/),i=/^([+-]?\d+\.?\d*)%$/g;return!n||i.exec(n)||r?n&&i.exec(r)?{ratio:parseFloat(r.split("%")[0])/100,color:Me(n)}:void 0:{color:Me(n)}}class kt extends ht{constructor(e){super(),this.id="",this.style={},this.inheritStyle={},this.attributes={},this.events={},this.tagName=e}get nativeName(){return this.meta.component.name}toString(){return`${this.tagName}:(${this.nativeName})`}setListenerHandledType(e,t){this.events[e]&&(this.events[e].handledType=t)}isListenerHandled(e,t){return!this.events[e]||t===this.events[e].handledType}hasAttribute(e){return!!this.attributes[e]}getAttribute(e){return this.attributes[e]}setStyleAttribute(e){this.style={};let t=e;if(!Array.isArray(t)&&Object.hasOwnProperty.call(t,0)){const e=[],n={};Object.keys(t).forEach(r=>{var i;i=r,ee.test(i)?e.push(t[r]):n[r]=t[r]}),t=[...e,n]}Array.isArray(t)||(t=[t]);let n={};t.forEach(e=>{Array.isArray(e)?e.forEach(e=>{n=x(x({},n),e)}):"object"==typeof e&&e&&(n=x(x({},n),e))}),Object.keys(n).forEach(e=>{const t=n[e];if(Object.prototype.hasOwnProperty.call(mt,e)&&(e=mt[e]),"transform"===e){const e={};if(!Array.isArray(t))throw new TypeError("transform only support array args");t.forEach(t=>{Object.keys(t).forEach(n=>{const r=t[n];r instanceof qe||r instanceof Je?e[n]={animationId:r.animationId}:null===r?e[n]&&delete e[n]:void 0!==r&&(e[n]=r)})});const n=Object.keys(e);n.length&&(Array.isArray(this.style.transform)||(this.style.transform=[]),n.forEach(t=>this.style.transform.push({[t]:e[t]})))}else if(null===t&&void 0!==this.style[e])this.style[e]=void 0;else if(t instanceof qe||t instanceof Je)this.style[e]={animationId:t.animationId};else if(e.toLowerCase().indexOf("colors")>-1)this.style[e]=Be(t);else if(e.toLowerCase().indexOf("color")>-1)this.style[e]=Me(t);else if("fontWeight"===e&&t)this.style[e]="string"!=typeof t?t.toString():t;else if("backgroundImage"===e&&t)this.style=function(e,t,n){if(0===t.indexOf("linear-gradient")){const e=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),r=[];n.linearGradient=n.linearGradient||{},e.forEach((e,t)=>{if(0===t){const t=wt(e);if(t)n.linearGradient.angle=t;else{n.linearGradient.angle="180";const t=Et(e);t&&r.push(t)}}else{const t=Et(e);t&&r.push(t)}}),n.linearGradient.colorStopList=r}else n[e]=de(t);return n}(e,t,this.style);else if("textShadowOffset"===e){const{x:n=0,width:r=0,y:i=0,height:o=0}=t||{};this.style[e]={width:n||r,height:i||o}}else["textShadowOffsetX","textShadowOffsetY"].indexOf(e)>=0?this.style=function(e,t,n){return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[{textShadowOffsetX:"width",textShadowOffsetY:"height"}[e]]:t||0}),n}(e,t,this.style):this.style[e]=t})}setAttributes(e=[]){Array.isArray(e)&&e.length>0&&(e.forEach(e=>{if(Array.isArray(e)){const[t,n]=e;this.setAttribute(t,n,{notToNative:!0})}}),ft(this))}parseAnimationStyleProp(e){let t=!1;Object.keys(e).some(n=>{const r=e[n];if(r&&Array.isArray(r)&&"transform"===n)for(let e=0;e["id"].indexOf(e)>=0,action:()=>(t===this.id||(this.id=t,dt(this)),!0)},{match:()=>["value","defaultValue","placeholder"].indexOf(e)>=0,action:()=>(this.attributes[e]=ie(t),!1)},{match:()=>["text"].indexOf(e)>=0,action:()=>(this.attributes[e]=t,!1)},{match:()=>["style"].indexOf(e)>=0,action:()=>{if("object"!=typeof t||null==t)return!0;this.setStyleAttribute(t);return["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"].some(e=>Object.prototype.hasOwnProperty.call(t,e))&&dt(this),!1}},{match:()=>!0,action:()=>{if("function"==typeof t){const t=function(e){return ae(e)&&(e=e.replace("Capture","")),X[e]?X[e][1]:e}(e);this.events[e]?this.events[e]&&this.events[e].type!==q&&(this.events[e].type=q):this.events[e]={name:t,type:q,isCapture:ae(e),listener:(n=t,r=e,e=>{const{id:t,currentId:i,params:o,eventPhase:a}=e,l={id:t,nativeName:n,originalName:r,params:o,currentId:i,eventPhase:a};we.receiveComponentEvent(l,e)})}}else{if(function(e,t){return void 0!==t&&"object"==typeof t[e]&&!!t[e]}(e,this.events)&&"function"!=typeof t)return this.events[e].type=G,!1;this.attributes[e]=t}var n,r;return!1}}].some(e=>!!e.match()&&(n=e.action(),!0)),n}setAttribute(e,t,n={}){try{if("boolean"==typeof this.attributes[e]&&""===t&&(t=!0),void 0===e)return void(!n.notToNative&&ft(this));if(this.parseAttributeProp(e,t))return;this.parseAnimationStyleProp(this.style),!n.notToNative&&ft(this)}catch(e){}}removeAttribute(e){delete this.attributes[e]}setStyle(e,t,n=!1){if(null===t)return void delete this.style[e];let r=t,i=e;Object.prototype.hasOwnProperty.call(mt,e)&&(i=mt[e]),"string"==typeof r&&(r=t.trim(),r=i.toLowerCase().indexOf("colors")>-1?Be(r):i.toLowerCase().indexOf("color")>-1?Me(r):function(e){if("number"==typeof e)return e;if("string"==typeof e&&le.test(e))try{return parseFloat(e)}catch(t){return e}return e}(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||ft(this))}setNativeProps(e){if(e){const{style:t}=e;if(t){const e=t;Object.keys(e).forEach(t=>{this.setStyle(t,e[t],!0)}),ft(this),ot(!0)}}}setText(e){if("string"!=typeof e)try{e=e.toString()}catch(e){throw new Error("Only string type is acceptable for setText")}return(e=e.trim())||this.getAttribute("text")?(e=(e=ie(e)).replace(/ /g," ").replace(/Â/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}class St extends ht{constructor(){super(),this.documentElement=new kt("document")}createElement(e){return new kt(e)}createElementNS(e,t){return new kt(`${e}:${t}`)}}St.createElement=St.prototype.createElement,St.createElementNS=St.prototype.createElementNS;var xt=Array.isArray,Ct=Object.keys,Nt=Object.prototype.hasOwnProperty;const Pt=setTimeout,It=clearTimeout;var _t=Object.freeze({__proto__:null,commitMutationEffectsBegin:function(){},commitMutationEffectsComplete:function(){ot(!0)},getCurrentEventPriority:function(){return 16},scheduleTimeout:Pt,cancelTimeout:It,noTimeout:-1,afterActiveInstanceBlur:function(){},appendChild:function(e,t){e.childNodes.indexOf(t)>=0&&e.removeChild(t),e.appendChild(t)},appendChildToContainer:function(e,t){e.appendChild(t)},appendInitialChild:function(e,t){e.appendChild(t)},beforeActiveInstanceBlur:function(){},commitMount:function(){},commitTextUpdate:function(){},commitUpdate:function(e,t,n,r,i,o){U(o,e.nodeId);const a=Object.keys(t||{});if(0===a.length)return;const l=a.map(e=>[e,t[e]]);e.setAttributes(l)},clearContainer:function(){},createContainerChildSet:function(){},createInstance:function(e,t,n,r,i){const o=n.createElement(e);return Object.keys(t).forEach(e=>{switch(e){case"children":break;case"nativeName":o.meta.component.name=t.nativeName;break;default:o.setAttribute(e,t[e])}}),[5,7].indexOf(i.tag)<0&&(o.meta.skipAddToDom=!0),U(i,o.nodeId),o},createTextInstance:function(e,t,n,r){const i=t.createElement("p");return i.setAttribute("text",ie(e)),i.meta={component:{name:"Text"}},U(r,i.nodeId),i},detachDeletedInstance:function(){},finalizeContainerChildren:function(){},finalizeInitialChildren:function(){return!0},getChildHostContext:function(){return{}},getPublicInstance:function(e){return e},getInstanceFromNode:function(){throw new Error("Not yet implemented.")},getFundamentalComponentInstance:function(){throw new Error("Not yet implemented.")},getRootHostContext:function(){return{}},hideInstance:function(e){const t={style:{display:"none"}};Object.keys(t).forEach(n=>e.setAttribute(n,t[n]))},hideTextInstance:function(){throw new Error("Not yet implemented.")},insertBefore:function(e,t,n){e.childNodes.indexOf(t)>=0?e.moveChild(t,n):e.insertBefore(t,n)},isOpaqueHydratingObject:function(){throw new Error("Not yet implemented")},makeClientId:function(){throw new Error("Not yet implemented")},makeClientIdInDEV:function(){throw new Error("Not yet implemented")},makeOpaqueHydratingObject:function(){throw new Error("Not yet implemented.")},mountFundamentalComponent:function(){throw new Error("Not yet implemented.")},prepareForCommit:function(){return null},preparePortalMount:function(){},prepareUpdate:function(e,t,n,r){const i={};return Object.keys(n).forEach(e=>{const t=n[e],o=r[e];null!=t&&null==o&&(i[e]=o)}),Object.keys(r).forEach(e=>{const t=n[e],o=r[e];switch(e){case"children":t===o||"number"!=typeof o&&"string"!=typeof o||(i[e]=o);break;default:null!=o&&null==t?i[e]=o:"function"==typeof o||function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,i,o,a=xt(t),l=xt(n);if(a&&l){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=l)return!1;var s=t instanceof Date,u=n instanceof Date;if(s!=u)return!1;if(s&&u)return t.getTime()==n.getTime();var c=t instanceof RegExp,f=n instanceof RegExp;if(c!=f)return!1;if(c&&f)return t.toString()==n.toString();var d=Ct(t);if((i=d.length)!==Ct(n).length)return!1;for(r=i;0!=r--;)if(!Nt.call(n,d[r]))return!1;for(r=i;0!=r--;)if(!e(t[o=d[r]],n[o]))return!1;return!0}return t!=t&&n!=n}(t,o)||(i[e]=o)}}),i},replaceContainerChildren:function(){},removeChild:function(e,t){e.removeChild(t),Q(t)},removeChildFromContainer:function(e,t){e.removeChild(t),Q(t)},resetAfterCommit:function(){},resetTextContent:function(){},unmountFundamentalComponent:function(){throw new Error("Not yet implemented.")},updateFundamentalComponent:function(){throw new Error("Not yet implemented.")},unhideTextInstance:function(){throw new Error("Not yet implemented.")},unhideInstance:function(e,t){const n=x(x({},t),{},{style:x(x({},t.style),{},{display:"flex"})});Object.keys(n).forEach(t=>e.setAttribute(t,n[t]))},shouldDeprioritizeSubtree:function(){return!0},shouldUpdateFundamentalComponent:function(){throw new Error("Not yet implemented.")},shouldSetTextContent:function(e,t){if(t&&"Text"===t.nativeName||-1!==["p","span"].indexOf(e)){const{children:e}=t;return"string"==typeof e||"number"==typeof e}return!1}});const Lt=l()(x(x({},_t),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:()=>{},cancelDeferredCallback:()=>{}}));var Tt=Object.freeze({__proto__:null,getString:function(){return I.callNativeWithPromise("ClipboardModule","getString")},setString:function(e){I.callNative("ClipboardModule","setString",e)}});var At=Object.freeze({__proto__:null,getCookies:function(e){return I.callNativeWithPromise("network","getCookie",e)},setCookie:function(e,t,n){let r="";"string"==typeof n&&(r=n),n instanceof Date&&(r=n.toUTCString()),I.callNative("network","setCookie",e,t,r)}});function Rt(e){return I.callNativeWithPromise("ImageLoaderModule","getSize",e)}function zt(e){I.callNative("ImageLoaderModule","prefetch",e)}var Ot=Object.freeze({__proto__:null,getSize:Rt,prefetch:zt});const jt=new Map,Ft=new xe;class Ht{constructor(e,t){this.eventName=e,this.listener=t}remove(){this.eventName&&this.listener&&(Mt(this.eventName,this.listener),this.listener=void 0)}}function Mt(e,t){if(t instanceof Ht)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange");const r=jt.get(t);if(!r)return;r.remove(),jt.delete(t);Ft.listenerSize(n)<1&&I.callNative("NetInfo","removeListener",n)}var Bt=Object.freeze({__proto__:null,addEventListener:function(e,t){let n=e;n&&"change"===n&&(n="networkStatusDidChange"),Ft.listenerSize(n)<1&&I.callNative("NetInfo","addListener",n);const r=Ft.addListener(n,e=>{t(e)});return jt.set(t,r),new Ht(n,t)},removeEventListener:Mt,fetch:function(){return I.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)}});const{createNode:Dt,updateNode:Ut,deleteNode:Wt,flushBatch:Vt,endBatch:$t,sendRenderError:Qt}=L,qt=["%c[native]%c","color: red","color: auto"],Gt=function(e){return D(t=>t.stateNode&&t.stateNode.nodeId===e)};function Kt(e){if(e instanceof kt)return e;if(!e)return null;const t=e._reactInternalFiber||e._reactInternals;if(null==t?void 0:t.child){let e=t.child;for(;e&&!(e.stateNode instanceof kt);)e=e.child;return e&&e.stateNode?e.stateNode:null}return null}function Yt(e){let t=e;if("string"==typeof e){const n=D(t=>!!(t.return&&t.return.ref&&t.return.ref._stringRef)&&t.return.ref._stringRef===e);if(!n||!n.stateNode)return 0;t=n.stateNode}if(!t.nodeId){const e=Kt(t);return e?e.nodeId:0}return t.nodeId}function Xt(e,t,...n){let{nativeName:r,nodeId:i}=e;if(!i||!r){const t=Kt(e);t&&({nodeId:i,nativeName:r}=t)}if(!r)throw new Error("callUIFunction is calling a unnamed component");if(!i)throw new Error("callUIFunction is calling a component have no nodeId");let[o=[],a]=n;se(o)&&(a=o,o=[]);null!==B()&&(re(...qt,"callUIFunction",{nodeId:i,funcName:t,paramList:o}),L.callUIFunction(i,t,o,a))}function Jt(e,t,n){const r=Yt(t);return new Promise((t,i)=>r?(re(...qt,"callUIFunction",{nodeId:r,funcName:e,paramList:[]}),L.callUIFunction(r,e,[],e=>(n&&se(n)&&n(e),"this view is null"===e?i(new Error("Android cannot get the node")):t(e)))):(n&&se(n)&&n("this view is null"),i(new Error(e+" cannot get nodeId"))))}var Zt=Object.freeze({__proto__:null,createNode:Dt,updateNode:Ut,deleteNode:Wt,flushBatch:Vt,endBatch:$t,sendRenderError:Qt,getNodeById:Gt,getNodeIdByRef:Yt,getElementFromFiberRef:Kt,callUIFunction:Xt,getBoundingClientRect:function(e,t){const n=Yt(e);return new Promise((r,i)=>n?(re(...qt,"callUIFunction",{nodeId:n,funcName:"getBoundingClientRect",params:t}),L.callUIFunction(n,"getBoundingClientRect",[t],e=>{if(!e||e.errMsg)return i(new Error((null==e?void 0:e.errMsg)||"getBoundingClientRect error with no response"));const{x:t,y:n,width:o,height:a}=e;let l=void 0,s=void 0;return"number"==typeof n&&"number"==typeof a&&(l=n+a),"number"==typeof t&&"number"==typeof o&&(s=t+o),r({x:t,y:n,width:o,height:a,bottom:l,right:s,left:t,top:n})})):i(new Error("getBoundingClientRect cannot get nodeId of "+e)))},measureInWindow:function(e,t){return Jt("measureInWindow",e,t)},measureInAppWindow:function(e,t){return"android"===_.platform.OS?Jt("measureInWindow",e,t):Jt("measureInAppWindow",e,t)}});const en=new xe,tn=new Set,nn={exitApp(){I.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(I.callNative("DeviceEventModule","setListenBackPress",!0),tn.add(e),{remove(){nn.removeListener(e)}}),removeListener(e){tn.delete(e),0===tn.size&&I.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){en.addListener("hardwareBackPress",()=>{let e=!0;[...tn].reverse().every(t=>"function"!=typeof t||!t()||(e=!1,!1)),e&&nn.exitApp()})}},rn=(nn.initEventListener(),nn),{flushSync:on}=Lt,{addEventListener:an,removeEventListener:ln,dispatchEvent:sn,AsyncStorage:un,Bridge:cn,Device:fn,HippyRegister:dn}=O;var pn=Object.freeze({__proto__:null,addEventListener:an,removeEventListener:ln,dispatchEvent:sn,AsyncStorage:un,BackAndroid:rn,Bridge:cn,Clipboard:Tt,Cookie:At,Device:fn,HippyRegister:dn,ImageLoader:Ot,NetworkInfo:Bt,UIManager:Zt,flushSync:on});const{createContainer:hn,updateContainer:mn,getPublicRootInstance:yn,injectIntoDevTools:gn}=Lt,vn=['%c[Hippy-React "unspecified"]%c',"color: #61dafb","color: auto"];class bn{constructor(e){if(!e.appName||!e.entryPage)throw new TypeError("Invalid arguments");this.config=e,this.regist=this.start,this.render=this.render.bind(this);const t=new St;this.rootContainer=hn(t,0,!1,null)}static get Native(){return pn}start(){dn.regist(this.config.appName,this.render)}render(e){const{appName:t,entryPage:n,silent:r=!1,bubbles:i=!1,callback:a=(()=>{})}=this.config,{__instanceId__:l}=e;re(...vn,"Start",t,"with rootViewId",l,e),this.rootContainer.containerInfo.nodeId=l,r&&ue(r),i&&function(e=!1){ne=e}(i),M(l,this.rootContainer);const s=o.a.createElement(n,e);return mn(s,this.rootContainer,null,a),yn(this.rootContainer)}}bn.version="unspecified";const wn={registerComponent(e,t){new bn({appName:e,entryPage:t}).start()}};class En extends o.a.Component{constructor(){super(...arguments),this.instance=null}setPressed(e){Xt(this.instance,"setPressed",[e])}setHotspot(e,t){Xt(this.instance,"setHotspot",[e,t])}render(){const e=this.props,{collapsable:t,style:n={}}=e,r=N(e,u),i=n,{nativeBackgroundAndroid:a}=r;return"boolean"==typeof t&&(i.collapsable=t),void 0!==(null==a?void 0:a.color)&&(a.color=Me(a.color)),o.a.createElement("div",x({ref:e=>{this.instance=e},nativeName:"View",style:i},r))}}function kn(e,t){let{style:n}=e,r=N(e,c);const i=n;if(n&&(Array.isArray(n)?-1===n.filter(e=>"object"==typeof e&&e).findIndex(e=>e.color||e.colors)&&(i[0].color="#000"):"object"==typeof n&&void 0===n.color&&void 0===n.colors&&(i.color="#000")),r.text="","string"==typeof r.children)r.text=ie(r.children);else if("number"==typeof r.children)r.text=ie(r.children.toString());else if(Array.isArray(r.children)){const e=r.children.filter(e=>"string"==typeof e||"number"==typeof e).join("");e&&(r.text=ie(e),r.children=r.text)}return o.a.createElement("p",x({ref:t,nativeName:"Text",style:i},r))}kn.displayName="Text";const Sn=o.a.forwardRef(kn);Sn.displayName="Text";var xn=Object.freeze({__proto__:null,default:Sn});class Cn extends o.a.Component{static get resizeMode(){return{contain:"contain",cover:"cover",stretch:"stretch",center:"center",repeat:"repeat"}}static getSize(e,t,n){if("string"!=typeof e)throw new TypeError("Image.getSize first argument must be a string url");const r=Rt(e);return"function"==typeof t&&r.then(e=>t(e.width,e.height)),"function"==typeof n?r.catch(n):r.catch(e=>{}),r}render(){const e=this.props,{children:t,style:n,imageStyle:r,imageRef:i,source:a,sources:l,src:s,srcs:u,tintColor:c,tintColors:d}=e,p=N(e,f),h=this.getImageUrls({src:s,srcs:u,source:a,sources:l});1===h.length?[p.src]=h:h.length>1&&(p.srcs=h),"string"==typeof p.defaultSource&&(p.defaultSource.indexOf("data:image/"),p.defaultSource=de(p.defaultSource));const m=x({},n);return this.handleTintColor(m,c,d),p.style=m,t?o.a.createElement(En,{style:n},o.a.createElement("img",x(x({},p),{},{nativeName:"Image",alt:"",ref:i,style:[{position:"absolute",left:0,right:0,top:0,bottom:0,width:n.width,height:n.height},r]})),t):o.a.createElement("img",x(x({},p),{},{nativeName:"Image",alt:"",ref:i}))}getImageUrls({src:e,srcs:t,source:n,sources:r}){let i=[];if("string"==typeof e&&i.push(e),Array.isArray(t)&&(i=[...i,...t]),n)if("string"==typeof n)i.push(n);else if("object"==typeof n&&null!==n){const{uri:e}=n;e&&i.push(e)}return r&&Array.isArray(r)&&r.forEach(e=>{"string"==typeof e?i.push(e):"object"==typeof e&&null!==e&&e.uri&&i.push(e.uri)}),i.length&&(i=i.map(e=>de(e))),i}handleTintColor(e,t,n){t&&Object.assign(e,{tintColor:t}),Array.isArray(n)&&Object.assign(e,{tintColors:n})}}Cn.prefetch=zt;class Nn{constructor(){this.Value=Nn.Value}static Value(e){return e}static timing(e,t){return new qe({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}Nn.View=En,Nn.Text=xn,Nn.Image=Cn;const Pn={step0:e=>e>0?1:0,step1:e=>e>=1?1:0,linear:()=>"linear",ease:()=>"ease",quad:e=>e**2,cubic:e=>e**3,poly:e=>t=>t**e,sin:e=>1-Math.cos(e*Math.PI/2),circle:e=>1-Math.sqrt(1-e*e),exp:e=>2**(10*(e-1)),elastic:()=>"elastic",back:(e=1.70158)=>t=>t*t*((e+1)*t-e),bounce(e){let t=e;return t<1/2.75?7.5625*t*t:t<2/2.75?(t-=1.5/2.75,7.5625*t*t+.75):t<2.5/2.75?(t-=2.25/2.75,7.5625*t*t+.9375):(t-=2.625/2.75,7.5625*t*t+.984375)},bezier:()=>"bezier",in:()=>"ease-in",out:()=>"ease-out",inOut:()=>"ease-in-out"};function In(e){return o.a.createElement("li",x({nativeName:"ListViewItem"},e))}class _n extends o.a.Component{constructor(){super(...arguments),this.instance=null}expandPullHeader(){Xt(this.instance,"expandPullHeader",[])}collapsePullHeader(e){void 0!==e?Xt(this.instance,"collapsePullHeaderWithOptions",[e]):Xt(this.instance,"collapsePullHeader",[])}render(){const e=this.props,{children:t}=e,n=N(e,d);return o.a.createElement("div",x({nativeName:"PullHeaderView",ref:e=>{this.instance=e}},n),t)}}class Ln extends o.a.Component{constructor(){super(...arguments),this.instance=null}expandPullFooter(){Xt(this.instance,"expandPullFooter",[])}collapsePullFooter(){Xt(this.instance,"collapsePullFooter",[])}render(){const e=this.props,{children:t}=e,n=N(e,p);return o.a.createElement("div",x({nativeName:"PullFooterView",ref:e=>{this.instance=e}},n),t)}}class Tn extends o.a.Component{constructor(e){super(e),this.instance=null,this.pullHeader=null,this.pullFooter=null,this.handleInitialListReady=this.handleInitialListReady.bind(this),this.state={initialListReady:!1}}componentDidMount(){const{getRowKey:e}=this.props}scrollToIndex(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Xt(this.instance,"scrollToIndex",[e,t,n])}scrollToContentOffset(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Xt(this.instance,"scrollToContentOffset",[e,t,n])}expandPullHeader(){this.pullHeader&&this.pullHeader.expandPullHeader()}collapsePullHeader(e){this.pullHeader&&this.pullHeader.collapsePullHeader(e)}expandPullFooter(){this.pullFooter&&this.pullFooter.expandPullFooter()}collapsePullFooter(){this.pullFooter&&this.pullFooter.collapsePullFooter()}render(){const e=this.props,{children:t,style:n,renderRow:r,renderPullHeader:i,renderPullFooter:a,getRowType:l,getRowStyle:s,getHeaderStyle:u,getFooterStyle:c,getRowKey:f,dataSource:d,initialListSize:p,rowShouldSticky:m,onRowLayout:y,onHeaderPulling:g,onHeaderReleased:v,onFooterPulling:b,onFooterReleased:w,onAppear:E,onDisappear:k,onWillAppear:S,onWillDisappear:C}=e,P=N(e,h),I=[];if("function"==typeof r){const{initialListReady:e}=this.state;let{numberOfRows:t}=this.props;const h=this.getPullHeader(i,g,v,u),N=this.getPullFooter(a,b,w,c);!t&&d&&(t=d.length),e||(t=Math.min(t,p||15));for(let e=0;e{"function"==typeof n&&(t[r]=()=>{n(e)})}),n&&I.push(o.a.createElement(In,x({},t),n))}h&&I.unshift(h),N&&I.push(N),"function"==typeof m&&Object.assign(P,{rowShouldSticky:!0});const _=[E,k,S,C];P.exposureEventEnabled=_.some(e=>"function"==typeof e),"ios"===fn.platform.OS&&(P.numberOfRows=I.length),void 0!==p&&(P.initialListSize=p),P.style=x({overflow:"scroll"},n)}return o.a.createElement("ul",x({ref:e=>{this.instance=e},nativeName:"ListView",initialListReady:this.handleInitialListReady},P),I.length?I:t)}handleInitialListReady(){this.setState({initialListReady:!0})}getPullHeader(e,t,n,r){let i=null,a={};return"function"==typeof r&&(a=r()),"function"==typeof e&&(i=o.a.createElement(_n,{style:a,key:"pull-header",ref:e=>{this.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),i}getPullFooter(e,t,n,r){let i=null,a={};if("function"==typeof r&&(a=r()),"function"==typeof e){const r={style:a,key:"pull-footer",ref:e=>{this.pullFooter=e}};"function"==typeof t&&(r.onFooterPulling=t),"function"==typeof t&&(r.onFooterReleased=n),i=o.a.createElement(Ln,x({},r),e())}return i}handleRowProps(e,t,{getRowKey:n,getRowStyle:r,onRowLayout:i,getRowType:o,rowShouldSticky:a}){if("function"==typeof n&&(e.key=n(t)),"function"==typeof r&&(e.style=r(t)),"function"==typeof i&&(e.onLayout=e=>{i(e,t)}),"function"==typeof o){const n=o(t);Number.isInteger(n),e.type=n}"function"==typeof a&&(e.sticky=a(t))}}Tn.defaultProps={numberOfRows:0};class An extends o.a.Component{constructor(e){super(e),this.instance=null,this.refreshComplected=this.refreshCompleted.bind(this)}startRefresh(){Xt(this.instance,"startRefresh",null)}refreshCompleted(){Xt(this.instance,"refreshComplected",null)}render(){const e=this.props,{children:t}=e,n=N(e,m);return o.a.createElement("div",x({nativeName:"RefreshWrapper",ref:e=>{this.instance=e}},n),o.a.createElement("div",{nativeName:"RefreshWrapperItemView",style:{left:0,right:0,position:"absolute"}},this.getRefresh()),t)}getRefresh(){const{getRefresh:e}=this.props;return"function"==typeof e&&e()||null}}class Rn{constructor(){this.top=null,this.size=0}push(e){this.top={data:e,next:this.top},this.size+=1}peek(){return null===this.top?null:this.top.data}pop(){if(null===this.top)return null;const e=this.top;return this.top=this.top.next,this.size>0&&(this.size-=1),e.data}clear(){this.top=null,this.size=0}displayAll(){const e=[];if(null===this.top)return e;let t=this.top;for(let n=0,r=this.size;n1&&this.pop({animated:!0})}push(e){if(null==e?void 0:e.component){if(!this.routeList[e.routeName]){new bn({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0}delete e.component}const t=[e];this.stack.push(e),Xt(this.instance,"push",t)}pop(e){if(this.stack.size>1){const t=[e];this.stack.pop(),Xt(this.instance,"pop",t)}}clear(){this.stack.clear()}render(){const e=this.props,{initialRoute:{component:t}}=e,n=N(e.initialRoute,g),r=N(e,y);return r.initialRoute=n,o.a.createElement("div",x({nativeName:"Navigator",ref:e=>{this.instance=e}},r))}}function On(e){return o.a.createElement("div",x(x({nativeName:"ViewPagerItem"},e),{},{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}class jn extends o.a.Component{constructor(e){super(e),this.instance=null,this.setPage=this.setPage.bind(this),this.setPageWithoutAnimation=this.setPageWithoutAnimation.bind(this),this.onPageScrollStateChanged=this.onPageScrollStateChanged.bind(this)}onPageScrollStateChanged(e){const{onPageScrollStateChanged:t}=this.props;t&&t(e.pageScrollState)}setPage(e){"number"==typeof e&&Xt(this.instance,"setPage",[e])}setPageWithoutAnimation(e){"number"==typeof e&&Xt(this.instance,"setPageWithoutAnimation",[e])}render(){const e=this.props,{children:t,onPageScrollStateChanged:n}=e,r=N(e,v);let i=[];return Array.isArray(t)?i=t.map(e=>{const t={};return"string"==typeof e.key&&(t.key="viewPager_"+e.key),o.a.createElement(On,x({},t),e)}):i.push(o.a.createElement(On,null,t)),"function"==typeof n&&(r.onPageScrollStateChanged=this.onPageScrollStateChanged),o.a.createElement("div",x({nativeName:"ViewPager",ref:e=>{this.instance=e}},r),i)}}function Fn(){const e=_.platform.Localization;return!!e&&1===e.direction}const Hn={caretColor:"caret-color"};class Mn extends o.a.Component{constructor(e){super(e),this.instance=null,this._lastNativeText="",this.onChangeText=this.onChangeText.bind(this),this.onKeyboardWillShow=this.onKeyboardWillShow.bind(this)}componentDidMount(){const{value:e,autoFocus:t}=this.props;this._lastNativeText=e,t&&this.focus()}componentWillUnmount(){this.blur()}getValue(){return new Promise(e=>{Xt(this.instance,"getValue",t=>e(t.text))})}setValue(e){return Xt(this.instance,"setValue",[e]),e}focus(){Xt(this.instance,"focusTextInput",[])}blur(){Xt(this.instance,"blurTextInput",[])}isFocused(){return new Promise(e=>{Xt(this.instance,"isFocused",t=>e(t.value))})}showInputMethod(){}hideInputMethod(){}clear(){Xt(this.instance,"clear",[])}render(){const e=x({},this.props);return["underlineColorAndroid","placeholderTextColor","placeholderTextColors","caretColor","caret-color"].forEach(t=>{let n=t;const r=this.props[t];"string"==typeof this.props[t]&&(Hn[t]&&(n=Hn[t]),Array.isArray(e.style)?e.style.push({[n]:r}):e.style&&"object"==typeof e.style?e.style[n]=r:e.style={[n]:r},delete e[t])}),Fn()&&(e.style?"object"!=typeof e.style||Array.isArray(e.style)||e.style.textAlign||(e.style.textAlign="right"):e.style={textAlign:"right"}),o.a.createElement("div",x(x({nativeName:"TextInput"},e),{},{ref:e=>{this.instance=e},onChangeText:this.onChangeText,onKeyboardWillShow:this.onKeyboardWillShow}))}onChangeText(e){const{onChangeText:t}=this.props;"function"==typeof t&&t(e.text),this.instance&&(this._lastNativeText=e.text)}onKeyboardWillShow(e){const{onKeyboardWillShow:t}=this.props;"function"==typeof t&&t(e)}}const Bn=fn.window.scale;let Dn=Math.round(.4*Bn)/Bn;function Un(e){return e}0===Dn&&(Dn=1/Bn);var Wn=Object.freeze({__proto__:null,get hairlineWidth(){return Dn},create:Un});const Vn={baseVertical:{flexGrow:1,flexShrink:1,flexDirection:"column",overflow:"scroll"},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:"row",overflow:"scroll"},contentContainerVertical:{collapsable:!1,flexDirection:"column"},contentContainerHorizontal:{collapsable:!1,flexDirection:"row"}};class $n extends o.a.Component{constructor(){super(...arguments),this.instance=null}scrollTo(e,t,n=!0){let r=e,i=t,o=n;"object"==typeof e&&e&&({x:r,y:i,animated:o}=e),r=r||0,i=i||0,o=!!o,Xt(this.instance,"scrollTo",[r,i,o])}scrollToWithDuration(e=0,t=0,n=1e3){Xt(this.instance,"scrollToWithOptions",[{x:e,y:t,duration:n}])}render(){const{horizontal:e,contentContainerStyle:t,children:n,style:r}=this.props,i=[e?Vn.contentContainerHorizontal:Vn.contentContainerVertical,t],a=e?Object.assign({},Vn.baseHorizontal,r):Object.assign({},Vn.baseVertical,r);return e&&(a.flexDirection=Fn()?"row-reverse":"row"),o.a.createElement("div",x(x({nativeName:"ScrollView",ref:e=>{this.instance=e}},this.props),{},{style:a}),o.a.createElement(En,{style:i},n))}}const Qn={modal:{position:"absolute",collapsable:!1}};class qn extends o.a.Component{constructor(e){super(e),this.eventSubscription=null}componentDidMount(){"ios"===fn.platform.OS&&(this.eventSubscription=new ke("modalDismissed"),this.eventSubscription.addCallback(e=>{const{primaryKey:t,onDismiss:n}=this.props;e.primaryKey===t&&"function"==typeof n&&n()}))}componentWillUnmount(){"ios"===fn.platform.OS&&this.eventSubscription&&this.eventSubscription.unregister()}render(){const{children:e,visible:t,transparent:n,animated:r}=this.props;let{animationType:i}=this.props;if(!1===t)return null;const a={backgroundColor:n?"transparent":"white"};return i||(i="none",r&&(i="slide")),o.a.createElement("div",x({nativeName:"Modal",animationType:i,transparent:n,style:[Qn.modal,a]},this.props),e)}}qn.defaultProps={visible:!0};class Gn extends o.a.Component{constructor(e){super(e);const{requestFocus:t}=this.props;this.state={isFocus:!!t},this.handleFocus=this.handleFocus.bind(this)}render(){var e,t,n;const{requestFocus:r,children:i,nextFocusDownId:a,nextFocusUpId:l,nextFocusLeftId:s,nextFocusRightId:u,style:c,noFocusStyle:f,focusStyle:d,onClick:p}=this.props,{isFocus:h}=this.state,m=o.a.Children.only(i);let y;(null===(t=null===(e=null==m?void 0:m.child)||void 0===e?void 0:e.memoizedProps)||void 0===t?void 0:t.nativeName)?y=m.child.memoizedProps.nativeName:(null===(n=null==m?void 0:m.type)||void 0===n?void 0:n.displayName)&&(y=m.type.displayName);const g=a&&Yt(a),v=l&&Yt(l),b=s&&Yt(s),w=u&&Yt(u);let E=c;if("Text"!==y){const e=m.memoizedProps.style;E=x(x({},E),e)}if(Object.assign(E,h?d:f),"Text"===y)return o.a.createElement(En,{focusable:!0,nextFocusDownId:g,nextFocusUpId:v,nextFocusLeftId:b,nextFocusRightId:w,requestFocus:r,style:E,onClick:p,onFocus:this.handleFocus},m);const{children:k}=m.memoizedProps;return o.a.cloneElement(m,{nextFocusDownId:a,nextFocusUpId:l,nextFocusLeftId:s,nextFocusRightId:u,requestFocus:r,onClick:p,focusable:!0,children:k,style:E,onFocus:this.handleFocus})}handleFocus(e){const{onFocus:t}=this.props;"function"==typeof t&&t(e);const{isFocus:n}=this.state;n!==e.focus&&this.setState({isFocus:e.focus})}}function Kn(e){return o.a.createElement("iframe",x({title:"hippy",nativeName:"WebView"},e))}let Yn;class Xn{constructor(e,t,n){if(this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),Yn||(Yn=new ke("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!e||"string"!=typeof e)throw new TypeError("Invalid WebSocket url");const r=x({},n);if(void 0!==t)if(Array.isArray(t)&&t.length>0)r["Sec-WebSocket-Protocol"]=t.join(",");else{if("string"!=typeof t)throw new TypeError("Invalid WebSocket protocols");r["Sec-WebSocket-Protocol"]=t}const i={headers:r,url:e};this.url=e,this.webSocketCallbackId=Yn.addCallback(this.onWebSocketEvent),I.callNativeWithPromise("websocket","connect",i).then(e=>{e&&0===e.code&&"number"==typeof e.id&&(this.webSocketId=e.id)})}close(e,t){1===this.readyState&&(this.readyState=2,I.callNative("websocket","close",{id:this.webSocketId,code:e,reason:t}))}send(e){if(1===this.readyState){if("string"!=typeof e)throw new TypeError("Unsupported websocket data type: "+typeof e);I.callNative("websocket","send",{id:this.webSocketId,data:e})}}set onopen(e){this.webSocketCallbacks.onOpen=e}set onclose(e){this.webSocketCallbacks.onClose=e}set onerror(e){this.webSocketCallbacks.onError=e}set onmessage(e){this.webSocketCallbacks.onMessage=e}onWebSocketEvent(e){if("object"!=typeof e||e.id!==this.webSocketId)return;const{type:t}=e;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,Yn.removeCallback(this.webSocketCallbackId));const n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}function Jn(e){return o.a.createElement("li",x({nativeName:"WaterfallItem"},e))}class Zn extends o.a.Component{constructor(e){super(e),this.instance=null,this.pullHeader=null,this.pullFooter=null,this.handleInitialListReady=this.handleInitialListReady.bind(this)}scrollToIndex({index:e=0,animated:t=!0}){Xt(this.instance,"scrollToIndex",[e,e,t])}scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){Xt(this.instance,"scrollToContentOffset",[e,t,n])}expandPullHeader(){this.pullHeader&&this.pullHeader.expandPullHeader()}collapsePullHeader(e){this.pullHeader&&this.pullHeader.collapsePullHeader(e)}expandPullFooter(){this.pullFooter&&this.pullFooter.expandPullFooter()}collapsePullFooter(){this.pullFooter&&this.pullFooter.collapsePullFooter()}render(){const e=this.props,{style:t={},renderBanner:n,renderFooter:r,numberOfColumns:i=2,columnSpacing:a=0,interItemSpacing:l=0,numberOfItems:s=0,preloadItemNumber:u=0,renderItem:c,renderPullHeader:f,renderPullFooter:d,getItemType:p,getItemKey:h,getItemStyle:m,contentInset:y={top:0,left:0,bottom:0,right:0},onItemLayout:g,onHeaderPulling:v,onHeaderReleased:w,onFooterPulling:E,onFooterReleased:k,containPullHeader:S=!1,containPullFooter:C=!1,containBannerView:P=!1}=e,I=x(x({},N(e,b)),{},{style:t,numberOfColumns:i,columnSpacing:a,interItemSpacing:l,preloadItemNumber:u,contentInset:y,containPullHeader:S,containPullFooter:C,containBannerView:P}),_=[];if("function"==typeof n){const e=n();if(e)if("ohos"===fn.platform.OS)_.push(o.a.createElement(En,{key:"bannerView"},o.a.cloneElement(e))),I.containBannerView=!0;else{const t={key:"bannerView",isHeader:!0,fullSpan:!0,style:{}};_.push(o.a.createElement(Jn,x({},t),o.a.cloneElement(e)))}}if("function"==typeof c){const e=this.getPullHeader(f,v,w),n=this.getPullFooter(d,E,k);for(let e=0;ethis.instance=e,initialListReady:this.handleInitialListReady.bind(this)},I),_)}componentDidMount(){const{getItemKey:e}=this.props}handleRowProps(e,t,{getItemKey:n,getItemStyle:r,onItemLayout:i,getItemType:o}){if("function"==typeof n&&(e.key=n(t)),"function"==typeof r&&(e.style=r(t)),"function"==typeof i&&(e.onLayout=e=>{i.call(this,e,t)}),"function"==typeof o){const n=o(t);Number.isInteger(n),e.type=n}}getPullHeader(e,t,n){let r=null;return"function"==typeof e&&(r=o.a.createElement(_n,{key:"PullHeader",ref:e=>{this.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),r}getPullFooter(e,t,n){let r=null;if("function"==typeof e){const i={key:"PullFooter",ref:e=>{this.pullFooter=e},onFooterReleased:n};"function"==typeof t&&(i.onFooterPulling=t),r=o.a.createElement(Ln,x({},i),e())}return r}handleInitialListReady(){const{onInitialListReady:e}=this.props;"function"==typeof e&&e()}}e.WebSocket=Xn;const{AsyncStorage:er,BackAndroid:tr,Bridge:nr,Clipboard:rr,Cookie:ir,Device:or,HippyRegister:ar,ImageLoader:lr,NetworkInfo:sr,UIManager:ur,flushSync:cr}=pn,{callNative:fr,callNativeWithPromise:dr,callNativeWithCallbackId:pr,removeNativeCallback:hr}=nr,mr=null,yr=e.ConsoleModule||e.console,gr=or.platform,vr=bn,br=Cn,wr={get:e=>or[e]},Er={get:()=>or.screen.scale}}.call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/process/browser.js"))},"./node_modules/@hippy/react-reconciler/cjs/react-reconciler.production.min.js":function(e,t,n){(function(e){ /** @license React v0.26.2 * react-reconciler.production.min.js * @@ -29,7 +29,7 @@ var hippyReactBase=function(e){var t={};function n(r){if(t[r])return t[r].export * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -e.exports=function(t){var r={},i=n("./node_modules/object-assign/index.js"),o=n("./node_modules/react/index.js"),a=n("./node_modules/scheduler/index.js");function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n--l||i[a]!==o[l])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=l);break}}}finally{et=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ze(e):""}var nt=[],rt=-1;function it(e){return{current:e}}function ot(e){0>rt||(e.current=nt[rt],nt[rt]=null,rt--)}function at(e,t){rt++,nt[rt]=e.current,e.current=t}var lt={},st=it(lt),ut=it(!1),ct=lt;function ft(e,t){var n=e.type.contextTypes;if(!n)return lt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function dt(e){return null!=(e=e.childContextTypes)}function pt(){ot(ut),ot(st)}function ht(e,t,n){if(st.current!==lt)throw Error(l(168));at(st,t),at(ut,n)}function mt(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(l(108,I(t)||"Unknown",o));return i({},n,r)}function yt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||lt,ct=st.current,at(st,e),at(ut,ut.current),!0}function gt(e,t,n){var r=e.stateNode;if(!r)throw Error(l(169));n?(e=mt(e,t,ct),r.__reactInternalMemoizedMergedChildContext=e,ot(ut),ot(st),at(st,e)):ot(ut),at(ut,n)}var vt=null,bt=null;(0,a.unstable_now)();var wt=0,Et=8;function kt(e){if(0!=(1&e))return Et=15,1;if(0!=(2&e))return Et=14,2;if(0!=(4&e))return Et=13,4;var t=24&e;return 0!==t?(Et=12,t):0!=(32&e)?(Et=11,32):0!==(t=192&e)?(Et=10,t):0!=(256&e)?(Et=9,256):0!==(t=3584&e)?(Et=8,t):0!=(4096&e)?(Et=7,4096):0!==(t=4186112&e)?(Et=6,t):0!==(t=62914560&e)?(Et=5,t):67108864&e?(Et=4,67108864):0!=(134217728&e)?(Et=3,134217728):0!==(t=805306368&e)?(Et=2,t):0!=(1073741824&e)?(Et=1,1073741824):(Et=8,e)}function St(e,t){var n=e.pendingLanes;if(0===n)return Et=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==o)r=o,i=Et=15;else if(0!==(o=134217727&n)){var s=o&~a;0!==s?(r=kt(s),i=Et):0!==(l&=o)&&(r=kt(l),i=Et)}else 0!==(o=n&~a)?(r=kt(o),i=Et):0!==l&&(r=kt(l),i=Et);if(0===r)return 0;if(r=n&((0>(r=31-_t(r))?0:1<n;n++)t.push(e);return t}function It(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-_t(t)]=n}var _t=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Lt(e)/Tt|0)|0},Lt=Math.log,Tt=Math.LN2;var At=a.unstable_runWithPriority,Rt=a.unstable_scheduleCallback,zt=a.unstable_cancelCallback,Ot=a.unstable_shouldYield,jt=a.unstable_requestPaint,Ft=a.unstable_now,Ht=a.unstable_getCurrentPriorityLevel,Mt=a.unstable_ImmediatePriority,Bt=a.unstable_UserBlockingPriority,Dt=a.unstable_NormalPriority,Ut=a.unstable_LowPriority,Wt=a.unstable_IdlePriority,Vt={},$t=void 0!==jt?jt:function(){},Qt=null,qt=null,Gt=!1,Kt=Ft(),Yt=1e4>Kt?Ft:function(){return Ft()-Kt};function Xt(){switch(Ht()){case Mt:return 99;case Bt:return 98;case Dt:return 97;case Ut:return 96;case Wt:return 95;default:throw Error(l(332))}}function Jt(e){switch(e){case 99:return Mt;case 98:return Bt;case 97:return Dt;case 96:return Ut;case 95:return Wt;default:throw Error(l(332))}}function Zt(e,t){return e=Jt(e),At(e,t)}function en(e,t,n){return e=Jt(e),Rt(e,t,n)}function tn(){if(null!==qt){var e=qt;qt=null,zt(e)}nn()}function nn(){if(!Gt&&null!==Qt){Gt=!0;var e=0;try{var t=Qt;Zt(99,(function(){for(;ed?(p=f,f=null):p=f.sibling;var h=y(i,f,l[d],s);if(null===h){null===f&&(f=p);break}e&&f&&null===h.alternate&&t(i,f),a=o(h,a,d),null===c?u=h:c.sibling=h,c=h,f=p}if(d===l.length)return n(i,f),u;if(null===f){for(;dp?(h=d,d=null):h=d.sibling;var b=y(i,d,v.value,u);if(null===b){null===d&&(d=h);break}e&&d&&null===b.alternate&&t(i,d),a=o(b,a,p),null===f?c=b:f.sibling=b,f=b,d=h}if(v.done)return n(i,d),c;if(null===d){for(;!v.done;p++,v=s.next())null!==(v=m(i,v.value,u))&&(a=o(v,a,p),null===f?c=v:f.sibling=v,f=v);return c}for(d=r(i,d);!v.done;p++,v=s.next())null!==(v=g(d,i,p,v.value,u))&&(e&&null!==v.alternate&&d.delete(null===v.key?p:v.key),a=o(v,a,p),null===f?c=v:f.sibling=v,f=v);return e&&d.forEach((function(e){return t(i,e)})),c}return function e(r,o,s,d){var p="object"==typeof s&&null!==s&&s.type===f&&null===s.key;p&&(s=s.props.children);var h="object"==typeof s&&null!==s;if(h)switch(s.$$typeof){case u:e:{for(h=s.key,p=o;null!==p;){if(p.key===h){switch(p.tag){case 7:if(s.type===f){n(r,p.sibling),(o=i(p,s.props.children)).return=r,r=o;break e}break;case 22:if((h=s.type).$$typeof===w&&(h=Hn(h)),h.$$typeof===E&&h._render===p.type._render){n(r,p.sibling),(o=i(p,s.props)).type=h,o.return=r,r=o;break e}default:if(p.elementType===s.type){n(r,p.sibling),(o=i(p,s.props)).ref=jn(r,p,s),o.return=r,r=o;break e}}n(r,p);break}t(r,p),p=p.sibling}s.type===f?((o=Ma(s.props.children,r.mode,d,s.key)).return=r,r=o):((d=Ha(s.type,s.key,s.props,null,r.mode,d)).ref=jn(r,o,s),d.return=r,r=d)}return a(r);case c:e:{for(p=s.key;null!==o;){if(o.key===p){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=i(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Ua(s,r.mode,d)).return=r,r=o}return a(r);case w:return e(r,o,(p=s._init)(s._payload),d)}if("string"==typeof s||"number"==typeof s)return s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,s)).return=r,r=o):(n(r,o),(o=Da(s,r.mode,d)).return=r,r=o),a(r);if(On(s))return v(r,o,s,d);if(P(s))return b(r,o,s,d);if(h&&Fn(r,s),void 0===s&&!p)switch(r.tag){case 1:case 22:case 0:case 11:case 15:throw Error(l(152,I(r.type)||"Component"))}return n(r,o)}}var Bn=Mn(!0),Dn=Mn(!1),Un={},Wn=it(Un),Vn=it(Un),$n=it(Un);function Qn(e){if(e===Un)throw Error(l(174));return e}function qn(e,t){at($n,t),at(Vn,e),at(Wn,Un),e=j(t),ot(Wn),at(Wn,e)}function Gn(){ot(Wn),ot(Vn),ot($n)}function Kn(e){var t=Qn($n.current),n=Qn(Wn.current);n!==(t=F(n,e.type,t))&&(at(Vn,e),at(Wn,t))}function Yn(e){Vn.current===e&&(ot(Wn),ot(Vn))}var Xn=it(0);function Jn(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Be(n)||De(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Zn=null,er=null,tr=!1;function nr(e,t){var n=Oa(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function rr(e,t){switch(e.tag){case 5:return null!==(t=Fe(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=He(t,e.pendingProps))&&(e.stateNode=t,!0);case 13:if(null!==(t=Me(t))){e.memoizedState={dehydrated:t,retryLane:1073741824};var n=Oa(18,null,null,0);return n.stateNode=t,n.return=e,e.child=n,!0}return!1;default:return!1}}function ir(e){if(tr){var t=er;if(t){var n=t;if(!rr(e,t)){if(!(t=We(n))||!rr(e,t))return e.flags=-1025&e.flags|2,tr=!1,void(Zn=e);nr(Zn,n)}Zn=e,er=Ve(t)}else e.flags=-1025&e.flags|2,tr=!1,Zn=e}}function or(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Zn=e}function ar(e){if(!J||e!==Zn)return!1;if(!tr)return or(e),tr=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!V(t,e.memoizedProps))for(t=er;t;)nr(e,t),t=We(t);if(or(e),13===e.tag){if(!J)throw Error(l(316));if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(l(317));er=Ge(e)}else er=Zn?We(e.stateNode):null;return!0}function lr(){J&&(er=Zn=null,tr=!1)}var sr=[];function ur(){for(var e=0;eo))throw Error(l(301));o+=1,mr=hr=null,t.updateQueue=null,cr.current=Kr,e=n(r,i)}while(gr)}if(cr.current=Qr,t=null!==hr&&null!==hr.next,dr=0,mr=hr=pr=null,yr=!1,t)throw Error(l(300));return e}function Er(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~n}function kr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===mr?pr.memoizedState=mr=e:mr=mr.next=e,mr}function Sr(){if(null===hr){var e=pr.alternate;e=null!==e?e.memoizedState:null}else e=hr.next;var t=null===mr?pr.memoizedState:mr.next;if(null!==t)mr=t,hr=e;else{if(null===e)throw Error(l(310));e={memoizedState:(hr=e).memoizedState,baseState:hr.baseState,baseQueue:hr.baseQueue,queue:hr.queue,next:null},null===mr?pr.memoizedState=mr=e:mr=mr.next=e}return mr}function Cr(e,t){return"function"==typeof t?t(e):t}function xr(e){var t=Sr(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=hr,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=a=o=null,u=i;do{var c=u.lane;if((dr&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===s?(a=s=f,o=r):s=s.next=f,pr.lanes|=c,ko|=c}u=u.next}while(null!==u&&u!==i);null===s?o=r:s.next=a,on(r,t.memoizedState)||(Xr=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Nr(e){var t=Sr(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);on(o,t.memoizedState)||(Xr=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Pr(e,t,n){var r=t._getVersion;r=r(t._source);var i=K?t._workInProgressVersionPrimary:t._workInProgressVersionSecondary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(dr&e)===e)&&(K?t._workInProgressVersionPrimary=r:t._workInProgressVersionSecondary=r,sr.push(t))),e)return n(t._source);throw sr.push(t),Error(l(350))}function Ir(e,t,n,r){var i=ho;if(null===i)throw Error(l(349));var o=t._getVersion,a=o(t._source),s=cr.current,u=s.useState((function(){return Pr(i,t,n)})),c=u[1],f=u[0];u=mr;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var y=pr;return e.memoizedState={refs:p,source:t,subscribe:r},s.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=o(t._source);if(!on(a,e)){e=n(t._source),on(f,e)||(c(e),e=Go(y),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,l=e;0n?98:n,(function(){e(!0)})),Zt(97Po&&(t.flags|=64,i=!0,Ni(r,!1),t.lanes=33554432)}else{if(!i)if(null!==(e=Jn(o))){if(t.flags|=64,i=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),Ni(r,!0),null===r.tail&&"hidden"===r.tailMode&&!o.alternate&&!tr)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Yt()-r.renderingStartTime>Po&&1073741824!==n&&(t.flags|=64,i=!0,Ni(r,!1),t.lanes=33554432);r.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=r.last)?e.sibling=o:t.child=o,r.last=o)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Yt(),e.sibling=null,t=Xn.current,at(Xn,i?1&t|2:1&t),e):null;case 22:return null;case 23:case 24:return ia(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(l(156,t.tag))}function Ii(e){switch(e.tag){case 1:dt(e.type)&&pt();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Gn(),ot(ut),ot(st),ur(),0!=(64&(t=e.flags)))throw Error(l(285));return e.flags=-4097&t|64,e;case 5:return Yn(e),null;case 13:if(ot(Xn),null!==(t=e.memoizedState)&&null!==t.dehydrated){if(null===e.alternate)throw Error(l(340));lr()}return 4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ot(Xn),null;case 4:return Gn(),null;case 10:return yn(e),null;case 23:case 24:return ia(),null;default:return null}}function _i(e,t){try{var n="",r=t;do{n+=sn(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function Li(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Ti="function"==typeof WeakMap?WeakMap:Map;function Ai(e,t,n){(n=Sn(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){To||(To=!0,Ao=r),Li(0,t)},n}function Ri(e,t,n){(n=Sn(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return Li(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ro?Ro=new Set([this]):Ro.add(this),Li(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var zi="function"==typeof WeakSet?WeakSet:Set;function Oi(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){ka(e,t)}else t.current=null}function ji(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:un(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(Y&&256&t.flags&&Pe(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(l(163))}function Fi(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function Hi(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(ba(n,e),va(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:un(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&Pn(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=O(n.child.stateNode);break;case 1:e=n.child.stateNode}Pn(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&ye(e,n.type,n.memoizedProps,n));case 6:case 4:case 12:return;case 13:return void(J&&null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Ye(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(l(163))}function Mi(e,t){if(Y)for(var n=e;;){if(5===n.tag){var r=n.stateNode;t?Se(r):xe(n.stateNode,n.memoizedProps)}else if(6===n.tag)r=n.stateNode,t?Ce(r):Ne(r,n.memoizedProps);else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Bi(e,t){if(bt&&"function"==typeof bt.onCommitFiberUnmount)try{bt.onCommitFiberUnmount(vt,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))ba(t,n);else{r=t;try{i()}catch(e){ka(r,e)}}n=n.next}while(n!==e)}break;case 1:if(Oi(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){ka(t,e)}break;case 5:Oi(t);break;case 4:Y?$i(e,t):X&&X&&(t=t.stateNode.containerInfo,e=Te(t),ze(t,e))}}function Di(e,t){for(var n=t;;)if(Bi(e,n),null===n.child||Y&&4===n.tag){if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}else n.child.return=n,n=n.child}function Ui(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Wi(e){return 5===e.tag||3===e.tag||4===e.tag}function Vi(e){if(Y){e:{for(var t=e.return;null!==t;){if(Wi(t))break e;t=t.return}throw Error(l(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(l(161))}16&n.flags&&(ke(t),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Wi(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?be(r,t,n):he(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?ve(r,t,n):pe(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}}function $i(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(l(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag)Di(e,i),r?Ee(n,i.stateNode):we(n,i.stateNode);else if(18===i.tag)r?Je(n,i.stateNode):Xe(n,i.stateNode);else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(Bi(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function Qi(e,t){if(Y){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Fi(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var i=t.type,o=t.updateQueue;t.updateQueue=null,null!==o&&ge(n,o,i,e,r,t)}return;case 6:if(null===t.stateNode)throw Error(l(162));return n=t.memoizedProps,void me(t.stateNode,null!==e?e.memoizedProps:n,n);case 3:return void(J&&(t=t.stateNode,t.hydrate&&(t.hydrate=!1,Ke(t.containerInfo))));case 12:return;case 13:return qi(t),void Gi(t);case 19:return void Gi(t);case 17:return;case 23:case 24:return void Mi(t,null!==t.memoizedState)}throw Error(l(163))}switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Fi(3,t);case 12:return;case 13:return qi(t),void Gi(t);case 19:return void Gi(t);case 3:J&&((n=t.stateNode).hydrate&&(n.hydrate=!1,Ke(n.containerInfo)));break;case 23:case 24:return}e:if(X){switch(t.tag){case 1:case 5:case 6:case 20:break e;case 3:case 4:t=t.stateNode,ze(t.containerInfo,t.pendingChildren);break e}throw Error(l(163))}}function qi(e){null!==e.memoizedState&&(No=Yt(),Y&&Mi(e.child,!0))}function Gi(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new zi),t.forEach((function(t){var r=Na.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ki(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Yi=0,Xi=1,Ji=2,Zi=3,eo=4;if("function"==typeof Symbol&&Symbol.for){var to=Symbol.for;Yi=to("selector.component"),Xi=to("selector.has_pseudo_class"),Ji=to("selector.role"),Zi=to("selector.test_id"),eo=to("selector.text")}function no(e){var t=Z(e);if(null!=t){if("string"!=typeof t.memoizedProps["data-testname"])throw Error(l(364));return t}if(null===(e=ae(e)))throw Error(l(362));return e.stateNode.current}function ro(e,t){switch(t.$$typeof){case Yi:if(e.type===t.value)return!0;break;case Xi:e:{t=t.value,e=[e,0];for(var n=0;n";case Xi:return":has("+(io(e)||"")+")";case Ji:return'[role="'+e.value+'"]';case eo:return'"'+e.value+'"';case Zi:return'[data-testname="'+e.value+'"]';default:throw Error(l(365,e))}}function oo(e,t){var n=[];e=[e,0];for(var r=0;ri&&(i=a),n&=~o}if(n=i,10<(n=(120>(n=Yt()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*so(n/1960))-n)){e.timeoutHandle=Q(ha.bind(null,e),n);break}ha(e);break;case 5:ha(e);break;default:throw Error(l(329))}}return Xo(e,Yt()),e.callbackNode===t?Jo.bind(null,e):null}function Zo(e,t){for(t&=~Co,t&=~So,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==bo&&(bo=2),s=_i(s,l),d=a;do{switch(d.tag){case 3:o=s,d.flags|=4096,t&=-t,d.lanes|=t,xn(d,Ai(0,o,t));break e;case 1:o=s;var E=d.type,k=d.stateNode;if(0==(64&d.flags)&&("function"==typeof E.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===Ro||!Ro.has(k)))){d.flags|=4096,t&=-t,d.lanes|=t,xn(d,Ri(d,o,t));break e}}d=d.return}while(null!==d)}pa(n)}catch(e){t=e,mo===n&&null!==n&&(mo=n=n.return);continue}break}}function la(){var e=uo.current;return uo.current=Qr,null===e?Qr:e}function sa(){0!==bo&&3!==bo||(bo=4),null===ho||0==(134217727&ko)&&0==(134217727&So)||Zo(ho,yo)}function ua(e,t){var n=po;po|=16;var r=la();for(ho===e&&yo===t||oa(e,t);;)try{ca();break}catch(t){aa(e,t)}if(hn(),po=n,uo.current=r,null!==mo)throw Error(l(261));return ho=null,yo=0,bo}function ca(){for(;null!==mo;)da(mo)}function fa(){for(;null!==mo&&!Ot();)da(mo)}function da(e){var t=_o(e.alternate,e,go);e.memoizedProps=e.pendingProps,null===t?pa(e):mo=t,co.current=null}function pa(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=Pi(n,t,go)))return void(mo=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&go)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1Yt()-No?oa(e,0):Co|=n),Xo(e,t)}function Ca(e,t){0===t&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Xt()?1:2:(0===Wo&&(Wo=Eo),0===(t=Nt(62914560&~Wo))&&(t=4194304)));var n=qo();null!==(e=Yo(e,t))&&(It(e,t,n),Xo(e,n))}function xa(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ca(e,n)}function Na(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(l(314))}null!==r&&r.delete(t),Ca(e,n)}_o=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ut.current)Xr=!0;else{if(0==(n&r)){switch(Xr=!1,t.tag){case 3:si(t),lr();break;case 5:Kn(t);break;case 1:dt(t.type)&&yt(t);break;case 4:qn(t,t.stateNode.containerInfo);break;case 10:mn(t,t.memoizedProps.value);break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(at(Xn,1&Xn.current),t.flags|=64,null):0!=(n&t.child.childLanes)?hi(e,t,n):(at(Xn,1&Xn.current),null!==(t=Si(e,t,n))?t.sibling:null);at(Xn,1&Xn.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return ki(e,t,n);t.flags|=64}var i=t.memoizedState;if(null!==i&&(i.rendering=null,i.tail=null,i.lastEffect=null),at(Xn,Xn.current),r)break;return null;case 23:case 24:return t.lanes=0,ni(e,t,n)}return Si(e,t,n)}Xr=0!=(16384&e.flags)}else Xr=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=ft(t,st.current),vn(t,n),i=wr(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,dt(r)){var o=!0;yt(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,En(t);var a=r.getDerivedStateFromProps;"function"==typeof a&&_n(t,r,a,e),i.updater=Ln,t.stateNode=i,i._reactInternals=t,zn(t,r,e,n),t=li(null,t,r,!0,o,n)}else t.tag=0,Jr(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return ja(e)?1:0;if(null!=e){if((e=e.$$typeof)===y)return 11;if(e===b)return 14;if(e===E)return 22}return 2}(i),a=un(i,e),o){case 0:t=ii(null,t,i,a,n);break e;case 1:t=ai(null,t,i,a,n);break e;case 11:t=Zr(null,t,i,a,n);break e;case 14:t=ei(null,t,i,un(i.type,a),r,n);break e;case 22:t=oi(null,t,i,e,n);break e}throw Error(l(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,ii(e,t,r,i=t.elementType===r?i:un(r,i),n);case 1:return r=t.type,i=t.pendingProps,ai(e,t,r,i=t.elementType===r?i:un(r,i),n);case 3:if(si(t),r=t.updateQueue,null===e||null===r)throw Error(l(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,kn(e,t),Nn(t,r,null,n),(r=t.memoizedState.element)===i)lr(),t=Si(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(J?(er=Ve(t.stateNode.containerInfo),Zn=t,o=tr=!0):o=!1),o){if(J&&null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i=c&&o>=d&&i<=f&&a<=p){e.splice(t,1);break}if(!(r!==c||n.width!==u.width||pa)){d>o&&(u.height+=d-o,u.y=o),pi)){c>r&&(u.width+=c-r,u.x=r),fn&&(n=a)),a ")+"\n\nNo matching component was found for:\n "+e.join(" > ")}return null},r.getPublicRootInstance=function(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:return O(e.child.stateNode);default:return e.child.stateNode}},r.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:qa,findFiberByHostInstance:e.findFiberByHostInstance||Ga,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null},"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t.isDisabled&&t.supportsFiber)try{vt=t.inject(e),bt=t}catch(e){}e=!0}return e},r.observeVisibleRects=function(e,t,n,r){if(!oe)throw Error(l(363));e=ao(e,t);var i=de(e,n,r).disconnect;return{disconnect:function(){i()}}},r.registerMutableSourceForHydration=function(e,t){var n=t._getVersion;n=n(t._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},r.runWithPriority=function(e,t){var n=wt;try{return wt=e,t()}finally{wt=n}},r.shouldSuspend=function(){return!1},r.unbatchedUpdates=function(e,t){var n=po;po&=-2,po|=8;try{return e(t)}finally{0===(po=n)&&(Io(),tn())}},r.updateContainer=function(e,t,n,r){var i=t.current,o=qo(),a=Go(i);e:if(n){t:{if(_(n=n._reactInternals)!==n||1!==n.tag)throw Error(l(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(dt(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(l(171))}if(1===n.tag){var u=n.type;if(dt(u)){n=mt(n,u,s);break e}}n=s}else n=lt;return null===t.context?t.context=n:t.pendingContext=n,(t=Sn(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),Cn(i,t),Ko(i,a,o),a},r}}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/@hippy/react-reconciler/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/@hippy/react-reconciler/cjs/react-reconciler.production.min.js")},"./node_modules/object-assign/index.js":function(e,t,n){"use strict"; +e.exports=function(t){var r={},i=n("./node_modules/object-assign/index.js"),o=n("./node_modules/react/index.js"),a=n("./node_modules/scheduler/index.js");function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n--l||i[a]!==o[l])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=l);break}}}finally{et=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ze(e):""}var nt=[],rt=-1;function it(e){return{current:e}}function ot(e){0>rt||(e.current=nt[rt],nt[rt]=null,rt--)}function at(e,t){rt++,nt[rt]=e.current,e.current=t}var lt={},st=it(lt),ut=it(!1),ct=lt;function ft(e,t){var n=e.type.contextTypes;if(!n)return lt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function dt(e){return null!=(e=e.childContextTypes)}function pt(){ot(ut),ot(st)}function ht(e,t,n){if(st.current!==lt)throw Error(l(168));at(st,t),at(ut,n)}function mt(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(l(108,I(t)||"Unknown",o));return i({},n,r)}function yt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||lt,ct=st.current,at(st,e),at(ut,ut.current),!0}function gt(e,t,n){var r=e.stateNode;if(!r)throw Error(l(169));n?(e=mt(e,t,ct),r.__reactInternalMemoizedMergedChildContext=e,ot(ut),ot(st),at(st,e)):ot(ut),at(ut,n)}var vt=null,bt=null;(0,a.unstable_now)();var wt=0,Et=8;function kt(e){if(0!=(1&e))return Et=15,1;if(0!=(2&e))return Et=14,2;if(0!=(4&e))return Et=13,4;var t=24&e;return 0!==t?(Et=12,t):0!=(32&e)?(Et=11,32):0!==(t=192&e)?(Et=10,t):0!=(256&e)?(Et=9,256):0!==(t=3584&e)?(Et=8,t):0!=(4096&e)?(Et=7,4096):0!==(t=4186112&e)?(Et=6,t):0!==(t=62914560&e)?(Et=5,t):67108864&e?(Et=4,67108864):0!=(134217728&e)?(Et=3,134217728):0!==(t=805306368&e)?(Et=2,t):0!=(1073741824&e)?(Et=1,1073741824):(Et=8,e)}function St(e,t){var n=e.pendingLanes;if(0===n)return Et=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==o)r=o,i=Et=15;else if(0!==(o=134217727&n)){var s=o&~a;0!==s?(r=kt(s),i=Et):0!==(l&=o)&&(r=kt(l),i=Et)}else 0!==(o=n&~a)?(r=kt(o),i=Et):0!==l&&(r=kt(l),i=Et);if(0===r)return 0;if(r=n&((0>(r=31-_t(r))?0:1<n;n++)t.push(e);return t}function It(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-_t(t)]=n}var _t=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Lt(e)/Tt|0)|0},Lt=Math.log,Tt=Math.LN2;var At=a.unstable_runWithPriority,Rt=a.unstable_scheduleCallback,zt=a.unstable_cancelCallback,Ot=a.unstable_shouldYield,jt=a.unstable_requestPaint,Ft=a.unstable_now,Ht=a.unstable_getCurrentPriorityLevel,Mt=a.unstable_ImmediatePriority,Bt=a.unstable_UserBlockingPriority,Dt=a.unstable_NormalPriority,Ut=a.unstable_LowPriority,Wt=a.unstable_IdlePriority,Vt={},$t=void 0!==jt?jt:function(){},Qt=null,qt=null,Gt=!1,Kt=Ft(),Yt=1e4>Kt?Ft:function(){return Ft()-Kt};function Xt(){switch(Ht()){case Mt:return 99;case Bt:return 98;case Dt:return 97;case Ut:return 96;case Wt:return 95;default:throw Error(l(332))}}function Jt(e){switch(e){case 99:return Mt;case 98:return Bt;case 97:return Dt;case 96:return Ut;case 95:return Wt;default:throw Error(l(332))}}function Zt(e,t){return e=Jt(e),At(e,t)}function en(e,t,n){return e=Jt(e),Rt(e,t,n)}function tn(){if(null!==qt){var e=qt;qt=null,zt(e)}nn()}function nn(){if(!Gt&&null!==Qt){Gt=!0;var e=0;try{var t=Qt;Zt(99,(function(){for(;ed?(p=f,f=null):p=f.sibling;var h=y(i,f,l[d],s);if(null===h){null===f&&(f=p);break}e&&f&&null===h.alternate&&t(i,f),a=o(h,a,d),null===c?u=h:c.sibling=h,c=h,f=p}if(d===l.length)return n(i,f),u;if(null===f){for(;dp?(h=d,d=null):h=d.sibling;var b=y(i,d,v.value,u);if(null===b){null===d&&(d=h);break}e&&d&&null===b.alternate&&t(i,d),a=o(b,a,p),null===f?c=b:f.sibling=b,f=b,d=h}if(v.done)return n(i,d),c;if(null===d){for(;!v.done;p++,v=s.next())null!==(v=m(i,v.value,u))&&(a=o(v,a,p),null===f?c=v:f.sibling=v,f=v);return c}for(d=r(i,d);!v.done;p++,v=s.next())null!==(v=g(d,i,p,v.value,u))&&(e&&null!==v.alternate&&d.delete(null===v.key?p:v.key),a=o(v,a,p),null===f?c=v:f.sibling=v,f=v);return e&&d.forEach((function(e){return t(i,e)})),c}return function e(r,o,s,d){var p="object"==typeof s&&null!==s&&s.type===f&&null===s.key;p&&(s=s.props.children);var h="object"==typeof s&&null!==s;if(h)switch(s.$$typeof){case u:e:{for(h=s.key,p=o;null!==p;){if(p.key===h){switch(p.tag){case 7:if(s.type===f){n(r,p.sibling),(o=i(p,s.props.children)).return=r,r=o;break e}break;case 22:if((h=s.type).$$typeof===w&&(h=Hn(h)),h.$$typeof===E&&h._render===p.type._render){n(r,p.sibling),(o=i(p,s.props)).type=h,o.return=r,r=o;break e}default:if(p.elementType===s.type){n(r,p.sibling),(o=i(p,s.props)).ref=jn(r,p,s),o.return=r,r=o;break e}}n(r,p);break}t(r,p),p=p.sibling}s.type===f?((o=Ma(s.props.children,r.mode,d,s.key)).return=r,r=o):((d=Ha(s.type,s.key,s.props,null,r.mode,d)).ref=jn(r,o,s),d.return=r,r=d)}return a(r);case c:e:{for(p=s.key;null!==o;){if(o.key===p){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=i(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Ua(s,r.mode,d)).return=r,r=o}return a(r);case w:return e(r,o,(p=s._init)(s._payload),d)}if("string"==typeof s||"number"==typeof s)return s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,s)).return=r,r=o):(n(r,o),(o=Da(s,r.mode,d)).return=r,r=o),a(r);if(On(s))return v(r,o,s,d);if(P(s))return b(r,o,s,d);if(h&&Fn(r,s),void 0===s&&!p)switch(r.tag){case 1:case 22:case 0:case 11:case 15:throw Error(l(152,I(r.type)||"Component"))}return n(r,o)}}var Bn=Mn(!0),Dn=Mn(!1),Un={},Wn=it(Un),Vn=it(Un),$n=it(Un);function Qn(e){if(e===Un)throw Error(l(174));return e}function qn(e,t){at($n,t),at(Vn,e),at(Wn,Un),e=j(t),ot(Wn),at(Wn,e)}function Gn(){ot(Wn),ot(Vn),ot($n)}function Kn(e){var t=Qn($n.current),n=Qn(Wn.current);n!==(t=F(n,e.type,t))&&(at(Vn,e),at(Wn,t))}function Yn(e){Vn.current===e&&(ot(Wn),ot(Vn))}var Xn=it(0);function Jn(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Be(n)||De(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Zn=null,er=null,tr=!1;function nr(e,t){var n=Oa(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function rr(e,t){switch(e.tag){case 5:return null!==(t=Fe(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=He(t,e.pendingProps))&&(e.stateNode=t,!0);case 13:if(null!==(t=Me(t))){e.memoizedState={dehydrated:t,retryLane:1073741824};var n=Oa(18,null,null,0);return n.stateNode=t,n.return=e,e.child=n,!0}return!1;default:return!1}}function ir(e){if(tr){var t=er;if(t){var n=t;if(!rr(e,t)){if(!(t=We(n))||!rr(e,t))return e.flags=-1025&e.flags|2,tr=!1,void(Zn=e);nr(Zn,n)}Zn=e,er=Ve(t)}else e.flags=-1025&e.flags|2,tr=!1,Zn=e}}function or(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Zn=e}function ar(e){if(!J||e!==Zn)return!1;if(!tr)return or(e),tr=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!V(t,e.memoizedProps))for(t=er;t;)nr(e,t),t=We(t);if(or(e),13===e.tag){if(!J)throw Error(l(316));if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(l(317));er=Ge(e)}else er=Zn?We(e.stateNode):null;return!0}function lr(){J&&(er=Zn=null,tr=!1)}var sr=[];function ur(){for(var e=0;eo))throw Error(l(301));o+=1,mr=hr=null,t.updateQueue=null,cr.current=Kr,e=n(r,i)}while(gr)}if(cr.current=Qr,t=null!==hr&&null!==hr.next,dr=0,mr=hr=pr=null,yr=!1,t)throw Error(l(300));return e}function Er(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~n}function kr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===mr?pr.memoizedState=mr=e:mr=mr.next=e,mr}function Sr(){if(null===hr){var e=pr.alternate;e=null!==e?e.memoizedState:null}else e=hr.next;var t=null===mr?pr.memoizedState:mr.next;if(null!==t)mr=t,hr=e;else{if(null===e)throw Error(l(310));e={memoizedState:(hr=e).memoizedState,baseState:hr.baseState,baseQueue:hr.baseQueue,queue:hr.queue,next:null},null===mr?pr.memoizedState=mr=e:mr=mr.next=e}return mr}function xr(e,t){return"function"==typeof t?t(e):t}function Cr(e){var t=Sr(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=hr,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=a=o=null,u=i;do{var c=u.lane;if((dr&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===s?(a=s=f,o=r):s=s.next=f,pr.lanes|=c,ko|=c}u=u.next}while(null!==u&&u!==i);null===s?o=r:s.next=a,on(r,t.memoizedState)||(Xr=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Nr(e){var t=Sr(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);on(o,t.memoizedState)||(Xr=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Pr(e,t,n){var r=t._getVersion;r=r(t._source);var i=K?t._workInProgressVersionPrimary:t._workInProgressVersionSecondary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(dr&e)===e)&&(K?t._workInProgressVersionPrimary=r:t._workInProgressVersionSecondary=r,sr.push(t))),e)return n(t._source);throw sr.push(t),Error(l(350))}function Ir(e,t,n,r){var i=ho;if(null===i)throw Error(l(349));var o=t._getVersion,a=o(t._source),s=cr.current,u=s.useState((function(){return Pr(i,t,n)})),c=u[1],f=u[0];u=mr;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var y=pr;return e.memoizedState={refs:p,source:t,subscribe:r},s.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=o(t._source);if(!on(a,e)){e=n(t._source),on(f,e)||(c(e),e=Go(y),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,l=e;0n?98:n,(function(){e(!0)})),Zt(97Po&&(t.flags|=64,i=!0,Ni(r,!1),t.lanes=33554432)}else{if(!i)if(null!==(e=Jn(o))){if(t.flags|=64,i=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),Ni(r,!0),null===r.tail&&"hidden"===r.tailMode&&!o.alternate&&!tr)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Yt()-r.renderingStartTime>Po&&1073741824!==n&&(t.flags|=64,i=!0,Ni(r,!1),t.lanes=33554432);r.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=r.last)?e.sibling=o:t.child=o,r.last=o)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Yt(),e.sibling=null,t=Xn.current,at(Xn,i?1&t|2:1&t),e):null;case 22:return null;case 23:case 24:return ia(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(l(156,t.tag))}function Ii(e){switch(e.tag){case 1:dt(e.type)&&pt();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Gn(),ot(ut),ot(st),ur(),0!=(64&(t=e.flags)))throw Error(l(285));return e.flags=-4097&t|64,e;case 5:return Yn(e),null;case 13:if(ot(Xn),null!==(t=e.memoizedState)&&null!==t.dehydrated){if(null===e.alternate)throw Error(l(340));lr()}return 4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ot(Xn),null;case 4:return Gn(),null;case 10:return yn(e),null;case 23:case 24:return ia(),null;default:return null}}function _i(e,t){try{var n="",r=t;do{n+=sn(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function Li(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Ti="function"==typeof WeakMap?WeakMap:Map;function Ai(e,t,n){(n=Sn(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){To||(To=!0,Ao=r),Li(0,t)},n}function Ri(e,t,n){(n=Sn(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return Li(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ro?Ro=new Set([this]):Ro.add(this),Li(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var zi="function"==typeof WeakSet?WeakSet:Set;function Oi(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){ka(e,t)}else t.current=null}function ji(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:un(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(Y&&256&t.flags&&Pe(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(l(163))}function Fi(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function Hi(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(ba(n,e),va(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:un(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&Pn(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=O(n.child.stateNode);break;case 1:e=n.child.stateNode}Pn(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&ye(e,n.type,n.memoizedProps,n));case 6:case 4:case 12:return;case 13:return void(J&&null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Ye(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(l(163))}function Mi(e,t){if(Y)for(var n=e;;){if(5===n.tag){var r=n.stateNode;t?Se(r):Ce(n.stateNode,n.memoizedProps)}else if(6===n.tag)r=n.stateNode,t?xe(r):Ne(r,n.memoizedProps);else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Bi(e,t){if(bt&&"function"==typeof bt.onCommitFiberUnmount)try{bt.onCommitFiberUnmount(vt,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))ba(t,n);else{r=t;try{i()}catch(e){ka(r,e)}}n=n.next}while(n!==e)}break;case 1:if(Oi(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){ka(t,e)}break;case 5:Oi(t);break;case 4:Y?$i(e,t):X&&X&&(t=t.stateNode.containerInfo,e=Te(t),ze(t,e))}}function Di(e,t){for(var n=t;;)if(Bi(e,n),null===n.child||Y&&4===n.tag){if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}else n.child.return=n,n=n.child}function Ui(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Wi(e){return 5===e.tag||3===e.tag||4===e.tag}function Vi(e){if(Y){e:{for(var t=e.return;null!==t;){if(Wi(t))break e;t=t.return}throw Error(l(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(l(161))}16&n.flags&&(ke(t),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Wi(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?be(r,t,n):he(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?ve(r,t,n):pe(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}}function $i(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(l(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag)Di(e,i),r?Ee(n,i.stateNode):we(n,i.stateNode);else if(18===i.tag)r?Je(n,i.stateNode):Xe(n,i.stateNode);else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(Bi(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function Qi(e,t){if(Y){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Fi(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var i=t.type,o=t.updateQueue;t.updateQueue=null,null!==o&&ge(n,o,i,e,r,t)}return;case 6:if(null===t.stateNode)throw Error(l(162));return n=t.memoizedProps,void me(t.stateNode,null!==e?e.memoizedProps:n,n);case 3:return void(J&&(t=t.stateNode,t.hydrate&&(t.hydrate=!1,Ke(t.containerInfo))));case 12:return;case 13:return qi(t),void Gi(t);case 19:return void Gi(t);case 17:return;case 23:case 24:return void Mi(t,null!==t.memoizedState)}throw Error(l(163))}switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Fi(3,t);case 12:return;case 13:return qi(t),void Gi(t);case 19:return void Gi(t);case 3:J&&((n=t.stateNode).hydrate&&(n.hydrate=!1,Ke(n.containerInfo)));break;case 23:case 24:return}e:if(X){switch(t.tag){case 1:case 5:case 6:case 20:break e;case 3:case 4:t=t.stateNode,ze(t.containerInfo,t.pendingChildren);break e}throw Error(l(163))}}function qi(e){null!==e.memoizedState&&(No=Yt(),Y&&Mi(e.child,!0))}function Gi(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new zi),t.forEach((function(t){var r=Na.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ki(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Yi=0,Xi=1,Ji=2,Zi=3,eo=4;if("function"==typeof Symbol&&Symbol.for){var to=Symbol.for;Yi=to("selector.component"),Xi=to("selector.has_pseudo_class"),Ji=to("selector.role"),Zi=to("selector.test_id"),eo=to("selector.text")}function no(e){var t=Z(e);if(null!=t){if("string"!=typeof t.memoizedProps["data-testname"])throw Error(l(364));return t}if(null===(e=ae(e)))throw Error(l(362));return e.stateNode.current}function ro(e,t){switch(t.$$typeof){case Yi:if(e.type===t.value)return!0;break;case Xi:e:{t=t.value,e=[e,0];for(var n=0;n";case Xi:return":has("+(io(e)||"")+")";case Ji:return'[role="'+e.value+'"]';case eo:return'"'+e.value+'"';case Zi:return'[data-testname="'+e.value+'"]';default:throw Error(l(365,e))}}function oo(e,t){var n=[];e=[e,0];for(var r=0;ri&&(i=a),n&=~o}if(n=i,10<(n=(120>(n=Yt()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*so(n/1960))-n)){e.timeoutHandle=Q(ha.bind(null,e),n);break}ha(e);break;case 5:ha(e);break;default:throw Error(l(329))}}return Xo(e,Yt()),e.callbackNode===t?Jo.bind(null,e):null}function Zo(e,t){for(t&=~xo,t&=~So,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==bo&&(bo=2),s=_i(s,l),d=a;do{switch(d.tag){case 3:o=s,d.flags|=4096,t&=-t,d.lanes|=t,Cn(d,Ai(0,o,t));break e;case 1:o=s;var E=d.type,k=d.stateNode;if(0==(64&d.flags)&&("function"==typeof E.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===Ro||!Ro.has(k)))){d.flags|=4096,t&=-t,d.lanes|=t,Cn(d,Ri(d,o,t));break e}}d=d.return}while(null!==d)}pa(n)}catch(e){t=e,mo===n&&null!==n&&(mo=n=n.return);continue}break}}function la(){var e=uo.current;return uo.current=Qr,null===e?Qr:e}function sa(){0!==bo&&3!==bo||(bo=4),null===ho||0==(134217727&ko)&&0==(134217727&So)||Zo(ho,yo)}function ua(e,t){var n=po;po|=16;var r=la();for(ho===e&&yo===t||oa(e,t);;)try{ca();break}catch(t){aa(e,t)}if(hn(),po=n,uo.current=r,null!==mo)throw Error(l(261));return ho=null,yo=0,bo}function ca(){for(;null!==mo;)da(mo)}function fa(){for(;null!==mo&&!Ot();)da(mo)}function da(e){var t=_o(e.alternate,e,go);e.memoizedProps=e.pendingProps,null===t?pa(e):mo=t,co.current=null}function pa(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=Pi(n,t,go)))return void(mo=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&go)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1Yt()-No?oa(e,0):xo|=n),Xo(e,t)}function xa(e,t){0===t&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Xt()?1:2:(0===Wo&&(Wo=Eo),0===(t=Nt(62914560&~Wo))&&(t=4194304)));var n=qo();null!==(e=Yo(e,t))&&(It(e,t,n),Xo(e,n))}function Ca(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),xa(e,n)}function Na(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(l(314))}null!==r&&r.delete(t),xa(e,n)}_o=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ut.current)Xr=!0;else{if(0==(n&r)){switch(Xr=!1,t.tag){case 3:si(t),lr();break;case 5:Kn(t);break;case 1:dt(t.type)&&yt(t);break;case 4:qn(t,t.stateNode.containerInfo);break;case 10:mn(t,t.memoizedProps.value);break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(at(Xn,1&Xn.current),t.flags|=64,null):0!=(n&t.child.childLanes)?hi(e,t,n):(at(Xn,1&Xn.current),null!==(t=Si(e,t,n))?t.sibling:null);at(Xn,1&Xn.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return ki(e,t,n);t.flags|=64}var i=t.memoizedState;if(null!==i&&(i.rendering=null,i.tail=null,i.lastEffect=null),at(Xn,Xn.current),r)break;return null;case 23:case 24:return t.lanes=0,ni(e,t,n)}return Si(e,t,n)}Xr=0!=(16384&e.flags)}else Xr=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=ft(t,st.current),vn(t,n),i=wr(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,dt(r)){var o=!0;yt(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,En(t);var a=r.getDerivedStateFromProps;"function"==typeof a&&_n(t,r,a,e),i.updater=Ln,t.stateNode=i,i._reactInternals=t,zn(t,r,e,n),t=li(null,t,r,!0,o,n)}else t.tag=0,Jr(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return ja(e)?1:0;if(null!=e){if((e=e.$$typeof)===y)return 11;if(e===b)return 14;if(e===E)return 22}return 2}(i),a=un(i,e),o){case 0:t=ii(null,t,i,a,n);break e;case 1:t=ai(null,t,i,a,n);break e;case 11:t=Zr(null,t,i,a,n);break e;case 14:t=ei(null,t,i,un(i.type,a),r,n);break e;case 22:t=oi(null,t,i,e,n);break e}throw Error(l(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,ii(e,t,r,i=t.elementType===r?i:un(r,i),n);case 1:return r=t.type,i=t.pendingProps,ai(e,t,r,i=t.elementType===r?i:un(r,i),n);case 3:if(si(t),r=t.updateQueue,null===e||null===r)throw Error(l(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,kn(e,t),Nn(t,r,null,n),(r=t.memoizedState.element)===i)lr(),t=Si(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(J?(er=Ve(t.stateNode.containerInfo),Zn=t,o=tr=!0):o=!1),o){if(J&&null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i=c&&o>=d&&i<=f&&a<=p){e.splice(t,1);break}if(!(r!==c||n.width!==u.width||pa)){d>o&&(u.height+=d-o,u.y=o),pi)){c>r&&(u.width+=c-r,u.x=r),fn&&(n=a)),a ")+"\n\nNo matching component was found for:\n "+e.join(" > ")}return null},r.getPublicRootInstance=function(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:return O(e.child.stateNode);default:return e.child.stateNode}},r.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:qa,findFiberByHostInstance:e.findFiberByHostInstance||Ga,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null},"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t.isDisabled&&t.supportsFiber)try{vt=t.inject(e),bt=t}catch(e){}e=!0}return e},r.observeVisibleRects=function(e,t,n,r){if(!oe)throw Error(l(363));e=ao(e,t);var i=de(e,n,r).disconnect;return{disconnect:function(){i()}}},r.registerMutableSourceForHydration=function(e,t){var n=t._getVersion;n=n(t._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},r.runWithPriority=function(e,t){var n=wt;try{return wt=e,t()}finally{wt=n}},r.shouldSuspend=function(){return!1},r.unbatchedUpdates=function(e,t){var n=po;po&=-2,po|=8;try{return e(t)}finally{0===(po=n)&&(Io(),tn())}},r.updateContainer=function(e,t,n,r){var i=t.current,o=qo(),a=Go(i);e:if(n){t:{if(_(n=n._reactInternals)!==n||1!==n.tag)throw Error(l(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(dt(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(l(171))}if(1===n.tag){var u=n.type;if(dt(u)){n=mt(n,u,s);break e}}n=s}else n=lt;return null===t.context?t.context=n:t.pendingContext=n,(t=Sn(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),xn(i,t),Ko(i,a,o),a},r}}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/@hippy/react-reconciler/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/@hippy/react-reconciler/cjs/react-reconciler.production.min.js")},"./node_modules/object-assign/index.js":function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus @@ -42,7 +42,7 @@ object-assign * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var r=n("./node_modules/object-assign/index.js"),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,l=60110,s=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),o=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),l=f("react.context"),s=f("react.forward_ref"),t.Suspense=f("react.suspense"),u=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n=w},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,i=e[r];if(!(void 0!==i&&0N(a,n))void 0!==s&&0>N(s,a)?(e[r]=s,e[l]=n,r=l):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==s&&0>N(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function N(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],I=[],_=1,L=null,T=3,A=!1,R=!1,z=!1;function O(e){for(var t=C(I);null!==t;){if(null===t.callback)x(I);else{if(!(t.startTime<=e))break;x(I),t.sortIndex=t.expirationTime,S(P,t)}t=C(I)}}function j(e){if(z=!1,O(e),!R)if(null!==C(P))R=!0,r(F);else{var t=C(I);null!==t&&i(j,t.startTime-e)}}function F(e,n){R=!1,z&&(z=!1,o()),A=!0;var r=T;try{for(O(n),L=C(P);null!==L&&(!(L.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=L.callback;if("function"==typeof a){L.callback=null,T=L.priorityLevel;var l=a(L.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?L.callback=l:L===C(P)&&x(P),O(n)}else x(P);L=C(P)}if(null!==L)var s=!0;else{var u=C(I);null!==u&&i(j,u.startTime-n),s=!1}return s}finally{L=null,T=r,A=!1}}var H=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){R||A||(R=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_getFirstCallbackNode=function(){return C(P)},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var n=T;T=t;try{return e()}finally{T=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=H,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=T;T=e;try{return t()}finally{T=n}},t.unstable_scheduleCallback=function(e,n,a){var l=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0l?(e.sortIndex=a,S(I,e),null===C(P)&&e===C(I)&&(z?o():z=!0,i(j,a-l))):(e.sortIndex=s,S(P,e),R||A||(R=!0,r(F))),e},t.unstable_wrapCallback=function(e){var t=T;return function(){var n=T;T=t;try{return e.apply(this,arguments)}finally{T=n}}}},"./node_modules/scheduler/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/scheduler/cjs/scheduler.production.min.js")},"./node_modules/webpack/buildin/global.js":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},"./node_modules/webpack/buildin/module.js":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"./scripts/vendor.js":function(e,t,n){n("../../packages/hippy-react/dist/index.js")},0:function(e,t,n){e.exports=n}}); \ No newline at end of file + */var r,i,o,a;if("object"==typeof performance&&"function"==typeof performance.now){var l=performance;t.unstable_now=function(){return l.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,f=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(d,0),e}};r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(d,0))},i=function(e,t){f=setTimeout(e,t)},o=function(){clearTimeout(f)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var y=!1,g=null,v=-1,b=5,w=0;t.unstable_shouldYield=function(){return t.unstable_now()>=w},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,i=e[r];if(!(void 0!==i&&0N(a,n))void 0!==s&&0>N(s,a)?(e[r]=s,e[l]=n,r=l):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==s&&0>N(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function N(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],I=[],_=1,L=null,T=3,A=!1,R=!1,z=!1;function O(e){for(var t=x(I);null!==t;){if(null===t.callback)C(I);else{if(!(t.startTime<=e))break;C(I),t.sortIndex=t.expirationTime,S(P,t)}t=x(I)}}function j(e){if(z=!1,O(e),!R)if(null!==x(P))R=!0,r(F);else{var t=x(I);null!==t&&i(j,t.startTime-e)}}function F(e,n){R=!1,z&&(z=!1,o()),A=!0;var r=T;try{for(O(n),L=x(P);null!==L&&(!(L.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=L.callback;if("function"==typeof a){L.callback=null,T=L.priorityLevel;var l=a(L.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?L.callback=l:L===x(P)&&C(P),O(n)}else C(P);L=x(P)}if(null!==L)var s=!0;else{var u=x(I);null!==u&&i(j,u.startTime-n),s=!1}return s}finally{L=null,T=r,A=!1}}var H=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){R||A||(R=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_getFirstCallbackNode=function(){return x(P)},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var n=T;T=t;try{return e()}finally{T=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=H,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=T;T=e;try{return t()}finally{T=n}},t.unstable_scheduleCallback=function(e,n,a){var l=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0l?(e.sortIndex=a,S(I,e),null===x(P)&&e===x(I)&&(z?o():z=!0,i(j,a-l))):(e.sortIndex=s,S(P,e),R||A||(R=!0,r(F))),e},t.unstable_wrapCallback=function(e){var t=T;return function(){var n=T;T=t;try{return e.apply(this,arguments)}finally{T=n}}}},"./node_modules/scheduler/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/scheduler/cjs/scheduler.production.min.js")},"./node_modules/webpack/buildin/global.js":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},"./node_modules/webpack/buildin/module.js":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"./scripts/vendor.js":function(e,t,n){n("../../packages/hippy-react/dist/index.js")},0:function(e,t,n){e.exports=n}}); \ No newline at end of file diff --git a/framework/examples/android-demo/res/vue2/index.android.js b/framework/examples/android-demo/res/vue2/index.android.js index d8291b9fa68..4f5696350c1 100644 --- a/framework/examples/android-demo/res/vue2/index.android.js +++ b/framework/examples/android-demo/res/vue2/index.android.js @@ -1,8 +1,8 @@ -!function(e){function t(t){for(var a,r,s=t[0],i=t[1],n=0,c=[];n0===n.indexOf(e))){var l=n.split("/"),c=l[l.length-1],d=c.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(n=p+c)}else{var p;d=n.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(n=p+n)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+n;var a=o[e];0!==a&&a&&a[1](t),o[e]=void 0}},global.dynamicLoad(n,onScriptComplete)}return Promise.all(t)},r.m=e,r.c=a,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(a,o,function(t){return e[t]}.bind(null,o));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var s=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],i=s.push.bind(s);s.push=t,s=s.slice();for(var n=0;na[e.toLowerCase()]:e=>a[e]}function s(e){let t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}let i;function n(){return i}function l(e){return"[object Function]"===Object.prototype.toString.call(e)}function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a.d(t,"a",(function(){return fe})), +!function(e){function t(t){for(var a,r,s=t[0],i=t[1],n=0,c=[];n0===n.indexOf(e))){var l=n.split("/"),c=l[l.length-1],d=c.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(n=p+c)}else{var p;d=n.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(n=p+n)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+n;var a=o[e];0!==a&&a&&a[1](t),o[e]=void 0}},global.dynamicLoad(n,onScriptComplete)}return Promise.all(t)},r.m=e,r.c=a,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(a,o,function(t){return e[t]}.bind(null,o));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var s=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],i=s.push.bind(s);s.push=t,s=s.slice();for(var n=0;na[e.toLowerCase()]:e=>a[e]}function s(e){let t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}let i;function n(){return i}function l(e){return"[object Function]"===Object.prototype.toString.call(e)}function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a.d(t,"a",(function(){return fe})), /*! * @hippy/vue-router vunspecified * (Using Vue v2.6.14 and Hippy-Vue vunspecified) - * Build at: Sun Apr 07 2024 19:11:31 GMT+0800 (中国标准时间) + * Build at: Thu Nov 14 2024 11:26:33 GMT+0800 (中国标准时间) * * Tencent is pleased to support the open source community by making * Hippy available. @@ -22,4 +22,4 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -Object.freeze({}),r("slot,component",!0),r("key,ref,slot,slot-scope,is"),e.env.PORT;var d={exports:{}},p={exports:{}},u={exports:{}};!function(e){function t(a){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(a)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(u);var v={exports:{}};!function(e){var t=u.exports.default;e.exports=function(e,a){if("object"!==t(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,a||"default");if("object"!==t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(v),function(e){var t=u.exports.default,a=v.exports;e.exports=function(e){var o=a(e,"string");return"symbol"===t(o)?o:String(o)},e.exports.__esModule=!0,e.exports.default=e.exports}(p),function(e){var t=p.exports;e.exports=function(e,a,o){return(a=t(a))in e?Object.defineProperty(e,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[a]=o,e},e.exports.__esModule=!0,e.exports.default=e.exports}(d);var y=c(d.exports);function h(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function b(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}var m={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render(e,{props:t,children:a,parent:o,data:r}){r.routerView=!0;const s=o.$createElement,{name:i}=t,n=o.$route,l=o._routerViewCache||(o._routerViewCache={});let c=0,d=!1;for(;o&&o._routerRoot!==o;)o.$vnode&&o.$vnode.data.routerView&&(c+=1),o._inactive&&(d=!0),o=o.$parent;if(r.routerViewDepth=c,d)return s(l[i],r,a);const p=n.matched[c];if(!p)return l[i]=null,s();const u=p.components[i];l[i]=u,r.registerRouteInstance=(e,t)=>{const a=p.instances[i];(t&&a!==e||!t&&a===e)&&(p.instances[i]=t)},r.hook||(r.hook={}),r.hook.prepatch=(e,t)=>{p.instances[i]=t.componentInstance};let v=function(e,t){switch(typeof t){case"undefined":return null;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:return null}}(n,p.props&&p.props[i]);if(r.props=v,v){v=function(e){for(var t=1;t{u.props&&t in u.props||(e[t]=v[t],delete v[t])})}return s(u,r,a)}};const f=/[!'()*]/g,g=e=>"%"+e.charCodeAt(0).toString(16),_=/%2C/g,C=e=>encodeURIComponent(e).replace(f,g).replace(_,","),x=decodeURIComponent;function S(e){const t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(e=>{const a=e.replace(/\+/g," ").split("="),o=x(a.shift()),r=a.length>0?x(a.join("=")):null;void 0===t[o]?t[o]=r:Array.isArray(t[o])?t[o].push(r):t[o]=[t[o],r]}),t):t}function w(e){const t=e?Object.keys(e).map(t=>{const a=e[t];if(void 0===a)return"";if(null===a)return C(t);if(Array.isArray(a)){const e=[];return a.forEach(a=>{void 0!==a&&(null===a?e.push(C(t)):e.push(`${C(t)}=${C(a)}`))}),e.join("&")}return`${C(t)}=${C(a)}`}).filter(e=>e.length>0).join("&"):null;return t?"?"+t:""}const k=/\/?$/;function A(e){if(Array.isArray(e))return e.map(A);if(e&&"object"==typeof e){const t={};return Object.keys(e).forEach(a=>{t[a]=A(e[a])}),t}return e}function P(e){const t=[];for(;e;)t.unshift(e),e=e.parent;return t}function E({path:e,query:t={},hash:a=""},o){return(e||"/")+(o||w)(t)+a}function j(e={},t={}){if(!e||!t)return e===t;const a=Object.keys(e),o=Object.keys(t);return a.length===o.length&&a.every(a=>{const o=e[a],r=t[a];return"object"==typeof o&&"object"==typeof r?j(o,r):String(o)===String(r)})}function T(e,t,a,o){let r;o&&({stringifyQuery:r}=o.options);let s=t.query||{};try{s=A(s)}catch(e){}const i={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:s,params:t.params||{},fullPath:E(t,r),matched:e?P(e):[]};return a&&(i.redirectedFrom=E(a,r)),Object.freeze(i)}const V=T(null,{path:"/"});function I(e,t){return t===V?e===t:!!t&&(e.path&&t.path?e.path.replace(k,"")===t.path.replace(k,"")&&e.hash===t.hash&&j(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&j(e.query,t.query)&&j(e.params,t.params)))}function L(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}function Y(e){for(var t=1;t{O(e)&&(this.replace?t.replace(o):t.push(o))},h={click:O};Array.isArray(this.event)?this.event.forEach(e=>{h[e]=y}):h[this.event]=y;const b={class:i};if("a"===this.tag)b.on=h,b.attrs={href:s};else{const e=function e(t){return t?t.find(t=>{if("a"===t.tag)return!0;if(t.children){return!!e(t.children)}return!1}):null}(this.$slots.default);if(e){e.isStatic=!1;const t=Y({},e.data);e.data=t,t.on=h;const a=Y({},e.data.attrs);e.data.attrs=a,a.href=s}else b.on=h}return e(this.tag,b,this.$slots.default)}};var D={exports:{}},R=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)};D.exports=G,D.exports.parse=U,D.exports.compile=function(e,t){return M(U(e,t),t)},D.exports.tokensToFunction=M,D.exports.tokensToRegExp=K;var B=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function U(e,t){for(var a,o=[],r=0,s=0,i="",n=t&&t.delimiter||"/";null!=(a=B.exec(e));){var l=a[0],c=a[1],d=a.index;if(i+=e.slice(s,d),s=d+l.length,c)i+=c[1];else{var p=e[s],u=a[2],v=a[3],y=a[4],h=a[5],b=a[6],m=a[7];i&&(o.push(i),i="");var f=null!=u&&null!=p&&p!==u,g="+"===b||"*"===b,_="?"===b||"*"===b,C=a[2]||n,x=y||h;o.push({name:v||r++,prefix:u||"",delimiter:C,optional:_,repeat:g,partial:f,asterisk:!!m,pattern:x?z(x):m?".*":"[^"+F(C)+"]+?"})}}return s=0&&(t=e.slice(o),e=e.slice(0,o));const r=e.indexOf("?");return r>=0&&(a=e.slice(r+1),e=e.slice(0,r)),{path:e,query:a,hash:t}}(r.path||""),i=t&&t.path||"/",n=s.path?J(s.path,i,a||r.append):i,l=function(e,t={},a){const o=a||S;let r;try{r=o(e||"")}catch(e){0,r={}}return Object.keys(t).forEach(e=>{r[e]=t[e]}),r}(s.query,r.query,o&&o.options.parseQuery);let c=r.hash||s.hash;return c&&"#"!==c.charAt(0)&&(c="#"+c),{_normalized:!0,path:n,query:l,hash:c}}function oe(e,t){return q(e,[],t)}function re(e,t,a,o,r,s){const{path:i,name:n}=o;const l=o.pathToRegexpOptions||{},c=function(e,t,a){return a||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:Z(`${t.path}/${e}`)}(i,r,l.strict);"boolean"==typeof o.caseSensitive&&(l.sensitive=o.caseSensitive);const d={path:c,regex:oe(c,l),components:o.components||{default:o.component},instances:{},name:n,parent:r,matchAs:s,redirect:o.redirect,beforeEnter:o.beforeEnter,meta:o.meta||{},props:null==o.props?{}:o.components?o.props:{default:o.props}};if(o.children&&o.children.forEach(o=>{const r=s?Z(`${s}/${o.path}`):void 0;re(e,t,a,o,d,r)}),void 0!==o.alias){(Array.isArray(o.alias)?o.alias:[o.alias]).forEach(s=>{const i={path:s,children:o.children};re(e,t,a,i,r,d.path||"/")})}t[d.path]||(e.push(d.path),t[d.path]=d),n&&(a[n]||(a[n]=d))}function se(e,t,a,o){const r=t||[],s=a||Object.create(null),i=o||Object.create(null);e.forEach(e=>{re(r,s,i,e)});for(let e=0,t=r.length;e!e.optional).map(e=>e.name);if("object"!=typeof l.params&&(l.params={}),s&&"object"==typeof s.params&&Object.keys(s.params).forEach(e=>{!(e in l.params)&&t.indexOf(e)>-1&&(l.params[e]=s.params[e])}),e)return l.path=X(e.path,l.params),n(e,l,i)}else if(l.path){l.params={};for(let e=0;eo[e])}}}function ne(e,t,a){const o=t.match(e);if(!o)return!1;if(!a)return!0;for(let t=1,r=o.length;t{r>=e.length?a():e[r]?t(e[r],()=>{o(r+1)}):o(r+1)};o(0)}const ce="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function de(e){return Array.prototype.concat.apply([],e)}function pe(e,t){return de(e.map(e=>Object.keys(e.components).map(a=>t(e.components[a],e.instances[a],e,a))))}function ue(e){return(t,a,o)=>{let r=!1,i=0,l=null;pe(e,(e,t,a,c)=>{if("function"==typeof e&&void 0===e.cid){r=!0,i+=1;const t=s(t=>{const r=n();var s;((s=t).__esModule||ce&&"Module"===s[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:r.extend(t),a.components[c]=t,i-=1,i<=0&&o()}),d=s(e=>{const t=`Failed to resolve async component ${c}: ${e}`;l||(l=h(e)?e:new Error(t),o(l))});let p;try{p=e(t,d)}catch(e){d(e)}if(p)if("function"==typeof p.then)p.then(t,d);else{const e=p.component;e&&"function"==typeof e.then&&e.then(t,d)}}}),r||o()}}function ve(e,t,a,o){const r=pe(e,(e,o,r,s)=>{const i=function(e,t){if("function"!=typeof e){e=n().extend(e)}return e.options[t]}(e,t);return i?Array.isArray(i)?i.map(e=>a(e,o,r,s)):a(i,o,r,s):null});return de(o?r.reverse():r)}function ye(e,t){return t?function(...a){return e.apply(t,a)}:null}function he(e,t,a,o,r){return function(s,i,n){return e(s,i,e=>{n(e),"function"==typeof e&&o.push(()=>{!function e(t,a,o,r){a[o]&&!a[o]._isBeingDestroyed?t(a[o]):r()&&setTimeout(()=>{e(t,a,o,r)},16)}(e,t.instances,a,r)})})}}class be{constructor(e,t="/"){this.router=e,this.base=function(e){return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}(t),this.current=V,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[];const a=this.router.match("/",this.current);if(!a)throw new Error("Root router path with / is required");this.stack=[a],this.index=0}push(e,t,a){this.transitionTo(e,e=>{this.stack=this.stack.slice(0,this.index+1).concat(e),this.index+=1,l(t)&&t(e)},a)}replace(e,t,a){this.transitionTo(e,e=>{this.stack=this.stack.slice(0,this.index).concat(e),l(t)&&t(e)},a)}go(e){const t=this.index+e;if(t<0||t>=this.stack.length)return;const a=this.stack[t];this.confirmTransition(a,()=>{this.index=t,this.updateRoute(a),this.stack=this.stack.slice(0,t+1)})}getCurrentLocation(){const e=this.stack[this.stack.length-1];return e?e.fullPath:"/"}ensureURL(){}listen(e){this.cb=e}onReady(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))}onError(e){this.errorCbs.push(e)}transitionTo(e,t,a){const o=this.router.match(e,this.current);this.confirmTransition(o,()=>{this.updateRoute(o),l(t)&&t(o),this.ensureURL(),this.ready||(this.ready=!0,this.readyCbs.forEach(e=>{e(o)}))},e=>{a&&a(e),e&&!this.ready&&(this.ready=!0,this.readyErrorCbs.forEach(t=>{t(e)}))})}confirmTransition(e,t,a){const{current:o}=this,r=e=>{h(e)&&this.errorCbs.length&&this.errorCbs.forEach(t=>{t(e)}),l(a)&&a(e)};if(I(e,o)&&e.matched.length===o.matched.length)return this.ensureURL(),r();const{updated:s,deactivated:i,activated:n}=function(e,t){let a;const o=Math.max(e.length,t.length);for(a=0;ae.beforeEnter),ue(n));this.pending=e;const d=(t,a)=>{if(this.pending!==e)return r();try{return t(e,o,e=>{!1===e||h(e)?(this.ensureURL(!0),r(e)):"string"==typeof e||"object"==typeof e&&("string"==typeof e.path||"string"==typeof e.name)?(r(),"object"==typeof e&&e.replace?this.replace(e):this.push(e)):a(e)})}catch(e){return r(e)}};return le(c,d,()=>{const a=[];le(function(e,t,a){return ve(e,"beforeRouteEnter",(e,o,r,s)=>he(e,r,s,t,a))}(n,a,()=>this.current===e).concat(this.router.resolveHooks),d,()=>this.pending!==e?r():(this.pending=null,t(e),this.router.app?this.router.app.$nextTick(()=>{a.forEach(e=>{e()})}):null))})}updateRoute(e){const t=this.current;this.current=e,l(this.cb)&&this.cb(e),this.router.afterHooks.forEach(a=>{l(a)&&a(e,t)})}hardwareBackPress(){if(this.stack.length>1)return this.go(-1);const{matched:e}=this.stack[0];if(e.length){const{components:t,instances:a}=e[0];if(t&&t.default&&l(t.default.beforeAppExit))return t.default.beforeAppExit.call(a.default,this.exitApp)}return this.exitApp()}exitApp(){n().Native.callNative("DeviceEventModule","invokeDefaultBackPressHandler")}}function me(e,t){return e.push(t),()=>{const a=e.indexOf(t);a>-1&&e.splice(a,1)}}class fe{constructor(e={}){if(this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=ie(e.routes||[],this),!o.__GLOBAL__||!o.__GLOBAL__.appRegister)throw new Error("Hippy-Vue-Router can\t work without Native environment");this.history=new be(this,e.base)}match(e,t,a){return this.matcher.match(e,t,a)}get currentRoute(){return this.history&&this.history.current}init(e,t){if(this.apps.push(e),this.app)return;this.app=e;const{history:a}=this;a instanceof be&&a.transitionTo(a.getCurrentLocation()),a.listen(e=>{this.apps.forEach(t=>{t._route=e})}),"android"===t.Native.Platform&&l(a.hardwareBackPress)&&!this.options.disableAutoBack&&(setTimeout(()=>t.Native.callNative("DeviceEventModule","setListenBackPress",!0),300),e.$on("hardwareBackPress",()=>a.hardwareBackPress()))}beforeEach(e){return me(this.beforeHooks,e)}beforeResolve(e){return me(this.resolveHooks,e)}afterEach(e){return me(this.afterHooks,e)}onReady(e,t){this.history.onReady(e,t)}onError(e){this.history.onError(e)}push(e,t,a){this.history.push(e,t,a)}replace(e,t,a){this.history.replace(e,t,a)}go(e){this.history.go(e)}back(){this.go(-1)}forward(){this.go(1)}getMatchedComponents(e){const t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?t.matched.map(e=>Object.keys(e.components).map(t=>e.components[t])):[]}resolve(e,t,a){const o=ae(e,t||this.history.current,a,this),r=this.match(o,t),s=r.redirectedFrom||r.fullPath,{base:i}=this.history;return{location:o,route:r,href:function(e,t){return e?Z(`${e}/${t}`):t}(i,s),normalizedTo:o,resolved:r}}addRoutes(e){this.matcher.addRoutes(e),this.history.current!==V&&this.history.transitionTo(this.history.getCurrentLocation())}}fe.install=function e(t){if(e.installed&&n()===t)return;e.installed=!0,function(e){i=e}(t);const a=e=>void 0!==e,o=(e,t)=>{let o=e.$options._parentVnode;a(o)&&a(o=o.data)&&a(o=o.registerRouteInstance)&&o(e,t)};t.mixin({beforeCreate(){a(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this,t),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,o(this,this)},destroyed(){o(this)}}),Object.defineProperty(t.prototype,"$router",{get(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get(){return this._routerRoot._route}}),t.component("RouterView",m),t.component("RouterLink",H);const r=t.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created},fe.version="2.6.14"}).call(this,a("./node_modules/process/browser.js"),a("./node_modules/webpack/buildin/global.js"))},"../../packages/hippy-vue/dist/index.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("../../packages/hippy-vue/dist/index.js")},"./node_modules/process/browser.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("./node_modules/process/browser.js")},"./node_modules/webpack/buildin/global.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("./node_modules/webpack/buildin/global.js")},"./src/app.vue":function(e,t,a){"use strict";var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"root"}},[a("div",{attrs:{id:"header"}},[a("div",{staticClass:"left-title"},[a("img",{directives:[{name:"show",rawName:"v-show",value:!["/","/debug","/remote-debug"].includes(e.$router.history.current.path),expression:"!['/', '/debug', '/remote-debug'].includes($router.history.current.path)"}],attrs:{id:"back-btn",src:e.imgs.backButtonImg},on:{click:e.goToHome}}),e._v(" "),["/","/debug","/remote-debug"].includes(e.$router.history.current.path)?a("label",{staticClass:"title"},[e._v("Hippy Vue")]):e._e()]),e._v(" "),a("label",{staticClass:"title"},[e._v(e._s(e.subtitle))])]),e._v(" "),a("div",{staticClass:"body-container",on:{click:function(e){return e.stopPropagation()}}},[a("keep-alive",[a("router-view",{staticClass:"feature-content"})],1)],1),e._v(" "),a("div",{staticClass:"bottom-tabs"},e._l(e.tabs,(function(t,o){return a("div",{key:"tab-"+o,class:["bottom-tab",o===e.activatedTab?"activated":""],on:{click:function(a){return e.navigateTo(a,t,o)}}},[a("span",{staticClass:"bottom-tab-text"},[e._v("\n "+e._s(t.text)+"\n ")])])})),0)])};o._withStripped=!0;var r={name:"App",data:()=>({imgs:{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"},subtitle:"",activatedTab:0,tabs:[{text:"API",path:"/"},{text:"调试",path:"/remote-debug"}]}),watch:{$route(e){void 0!==e.name?this.subtitle=e.name:this.subtitle=""}},methods:{navigateTo(e,t,a){a!==this.activatedTab&&(e.stopPropagation(),console.log(t),this.activatedTab=a,this.$router.replace({path:t.path}))},goToHome(){this.$router.back()}}},s=(a("./src/app.vue?vue&type=style&index=0&lang=css&"),a("../../packages/hippy-vue-loader/lib/runtime/componentNormalizer.js")),i=Object(s.a)(r,o,[],!1,null,null,null);i.options.__file="src/app.vue";t.a=i.exports},"./src/app.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/app.vue?vue&type=style&index=0&lang=css&")},"./src/assets/defaultSource.jpg":function(e,t,a){e.exports=a.p+"assets/defaultSource.jpg"},"./src/assets/hippyLogoWhite.png":function(e,t,a){e.exports=a.p+"assets/hippyLogoWhite.png"},"./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&")},"./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&")},"./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&")},"./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&")},"./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&")},"./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&")},"./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&")},"./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&")},"./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&")},"./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&")},"./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&")},"./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&")},"./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&")},"./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&")},"./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&")},"./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&")},"./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&")},"./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&")},"./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&")},"./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&")},"./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&")},"./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&")},"./src/components/native-demos/demo-swiper.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-swiper.vue?vue&type=style&index=0&lang=css&")},"./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&")},"./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&")},"./src/main-native.js":function(e,t,a){"use strict";a.r(t),function(e){var t=a("../../packages/hippy-vue/dist/index.js"),o=a("../../packages/hippy-vue-router/dist/index.js"),r=a("../../packages/hippy-vue-native-components/dist/index.js"),s=a("./src/app.vue"),i=a("./src/routes.js"),n=a("./src/util.js");t.default.config.productionTip=!1,t.default.config.trimWhitespace=!0,t.default.use(r.default),t.default.use(o.a);const l=new o.a(i.a);e.Hippy.on("uncaughtException",e=>{console.error("uncaughtException error",e.stack,e.message)}),e.Hippy.on("unhandledRejection",e=>{console.error("unhandledRejection reason",e)});const c=new t.default({appName:"Demo",rootView:"#root",render:e=>e(s.a),iPhone:{statusBar:{backgroundColor:4283416717}},router:l});c.$start((e,a)=>{console.log("instance",e,"initialProps",a),t.default.Native.BackAndroid.addListener(()=>(console.log("backAndroid"),!0))}),Object(n.b)(c)}.call(this,a("./node_modules/webpack/buildin/global.js"))},"./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&")},"./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&")},"./src/routes.js":function(e,t,a){"use strict";var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{staticClass:"v4fb46863 feature-list"},[a("li",[a("div",{staticClass:"v4fb46863",attrs:{id:"version-info"}},[a("p",{staticClass:"v4fb46863 feature-title"},[e._v("\n Vue: "+e._s(e.Vue.version)+"\n ")]),e._v(" "),e.Vue.Native?a("p",{staticClass:"v4fb46863 feature-title"},[e._v("\n Hippy-Vue: "+e._s("unspecified"!==e.Vue.Native.version?e.Vue.Native.version:"master")+"\n ")]):e._e()])]),e._v(" "),e._m(0),e._v(" "),e._l(e.featureList,(function(t){return a("li",{key:t.id,staticClass:"v4fb46863 feature-item"},[a("router-link",{staticClass:"v4fb46863 button",attrs:{to:{path:"/demo/"+t.id}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)})),e._v(" "),e.nativeFeatureList.length?a("li",[a("p",{staticClass:"v4fb46863 feature-title",attrs:{paintType:"fcp"}},[e._v("\n 终端组件 Demos\n ")])]):e._e(),e._v(" "),e._l(e.nativeFeatureList,(function(t){return a("li",{key:t.id,staticClass:"v4fb46863 feature-item"},[a("router-link",{staticClass:"v4fb46863 button",attrs:{to:{path:"/demo/"+t.id}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)}))],2)};o._withStripped=!0;var r=a("../../packages/hippy-vue/dist/index.js"),s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v26278b5d button-demo"},[a("label",{staticClass:"v26278b5d button-label"},[e._v("按钮和状态绑定")]),e._v(" "),a("button",{staticClass:"v26278b5d button-demo-1",class:{"is-active":e.isClicked,"is-pressing":e.isPressing},on:{touchstart:e.onTouchBtnStart,touchmove:e.onTouchBtnMove,touchend:e.onTouchBtnEnd,click:e.clickView}},[e.isClicked?a("span",{staticClass:"v26278b5d button-text"},[e._v("视图已经被点击了,再点一下恢复")]):a("span",{staticClass:"v26278b5d button-text"},[e._v("视图尚未点击")])]),e._v(" "),a("img",{directives:[{name:"show",rawName:"v-show",value:e.isClicked,expression:"isClicked"}],staticClass:"v26278b5d button-demo-1-image",attrs:{alt:"demo1-image",src:"https://user-images.githubusercontent.com/12878546/148737148-d0b227cb-69c8-4b21-bf92-739fb0c3f3aa.png"}})])};s._withStripped=!0;var i={data:()=>({isClicked:!1,isPressing:!1}),methods:{clickView(){this.isClicked=!this.isClicked},onTouchBtnStart(e){console.log("onBtnTouchDown",e),e.stopPropagation()},onTouchBtnMove(e){console.log("onBtnTouchMove",e),e.stopPropagation(),console.log(e)},onTouchBtnEnd(e){console.log("onBtnTouchEnd",e),e.stopPropagation(),console.log(e)}}},n=(a("./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&"),a("../../packages/hippy-vue-loader/lib/runtime/componentNormalizer.js")),l=Object(n.a)(i,s,[],!1,null,"26278b5d",null);l.options.__file="src/components/demos/demo-button.vue";var c=l.exports,d=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614",attrs:{id:"div-demo"},on:{scroll:e.onOuterScroll}},[a("div",["ios"!==e.Vue.Native.Platform?a("div",[a("label",[e._v("水波纹效果: ")]),e._v(" "),a("div",{staticClass:"ve3dda614",style:Object.assign({},e.imgRectangle,e.imgRectangleExtra)},[a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.imgRectangle,"native-background-android":{borderless:!0,color:"#666666"}}},[a("p",{staticClass:"ve3dda614",style:{color:"white",maxWidth:200}},[e._v("\n 外层背景图,内层无边框水波纹,受外层影响始终有边框\n ")])])],1),e._v(" "),a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.circleRipple,"native-background-android":{borderless:!0,color:"#666666",rippleRadius:100}}},[a("p",{staticClass:"ve3dda614",style:{color:"black",textAlign:"center"}},[e._v("\n 无边框圆形水波纹\n ")])]),e._v(" "),a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.squareRipple,"native-background-android":{borderless:!1,color:"#666666"}}},[a("p",{staticClass:"ve3dda614",style:{color:"#fff"}},[e._v("\n 带背景色水波纹\n ")])])],1):e._e(),e._v(" "),a("label",[e._v("背景图效果:")]),e._v(" "),a("div",{staticClass:"ve3dda614",style:e.demo1Style,attrs:{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"}},[a("p",{staticClass:"ve3dda614 div-demo-1-text"},[e._v("\n Hippy 背景图展示\n ")])]),e._v(" "),a("label",[e._v("渐变色效果:")]),e._v(" "),e._m(0),e._v(" "),a("label",[e._v("Transform")]),e._v(" "),e._m(1),e._v(" "),a("label",[e._v("水平滚动:")]),e._v(" "),a("div",{ref:"demo-2",staticClass:"ve3dda614 div-demo-2",attrs:{bounces:!0,scrollEnabled:!0,pagingEnabled:!1,showsHorizontalScrollIndicator:!1},on:{scroll:e.onScroll,momentumScrollBegin:e.onMomentumScrollBegin,momentumScrollEnd:e.onMomentumScrollEnd,scrollBeginDrag:e.onScrollBeginDrag,scrollEndDrag:e.onScrollEndDrag}},[e._m(2)]),e._v(" "),a("label",[e._v("垂直滚动:")]),e._v(" "),a("div",{staticClass:"ve3dda614 div-demo-3",attrs:{showsVerticalScrollIndicator:!1}},[e._m(3)])])])};d._withStripped=!0;var p=a("./src/assets/defaultSource.jpg"),u=a.n(p),v=function(){var e=this.$createElement;return(this._self._c||e)("div",{ref:"ripple1",style:this.wrapperStyle,attrs:{nativeBackgroundAndroid:Object.assign({},this.nativeBackgroundAndroid)},on:{layout:this.onLayout,touchstart:this.onTouchStart,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[this._t("default")],2)};v._withStripped=!0;const y={display:"flex",height:"40px",width:"200px",backgroundImage:""+u.a,backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"};var h={name:"DemoRippleDiv",props:{nativeBackgroundAndroid:{default:{borderless:!1}},wrapperStyle:{type:Object,default:()=>y},positionY:{default:0}},data(){return{scrollOffsetY:this.positionY,viewX:0,viewY:0,demo1Style:y}},watch:{positionY(e){this.scrollOffsetY=e}},mounted(){this.rippleRef=this.$refs.ripple1},methods:{async onLayout(){const e=await r.default.Native.measureInAppWindow(this.rippleRef);this.viewX=e.left,this.viewY=e.top},onTouchStart(e){const t=e.touches[0];this.rippleRef.setHotspot(t.clientX-this.viewX,t.clientY+this.scrollOffsetY-this.viewY),this.rippleRef.setPressed(!0)},onTouchEnd(){this.rippleRef.setPressed(!1)}}},b=Object(n.a)(h,v,[],!1,null,null,null);b.options.__file="src/components/demos/demo-ripple-div.vue";var m={components:{"demo-ripple-div":b.exports},data:()=>({Vue:r.default,offsetY:0,demo1Style:{display:"flex",height:"40px",width:"200px",backgroundImage:""+u.a,backgroundSize:"cover",backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"},imgRectangle:{width:"260px",height:"56px",alignItems:"center",justifyContent:"center"},imgRectangleExtra:{marginTop:"20px",backgroundImage:""+u.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"}}),mounted(){this.demon2=this.$refs["demo-2"],setTimeout(()=>{this.demon2.scrollTo(50,0,1e3)},1e3)},methods:{onOuterScroll(e){this.offsetY=e.offsetY},onScroll(e){console.log("onScroll",e)},onMomentumScrollBegin(e){console.log("onMomentumScrollBegin",e)},onMomentumScrollEnd(e){console.log("onMomentumScrollEnd",e)},onScrollBeginDrag(e){console.log("onScrollBeginDrag",e)},onScrollEndDrag(e){console.log("onScrollEndDrag",e)}}},f=(a("./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&"),Object(n.a)(m,d,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ve3dda614 div-demo-1-1"},[t("p",{staticClass:"ve3dda614 div-demo-1-text"},[this._v("\n Hippy 背景渐变色展示\n ")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ve3dda614 div-demo-transform"},[t("p",{staticClass:"ve3dda614 div-demo-transform-text"},[this._v("\n Transform\n ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614 display-flex flex-row"},[a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n A\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n B\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n C\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n D\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n E\n ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614 display-flex flex-column"},[a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n A\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n B\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n C\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n D\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n E\n ")])])}],!1,null,"e3dda614",null));f.options.__file="src/components/demos/demo-div.vue";var g=f.exports,_=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vc6df51b0",attrs:{id:"demo-img"}},[a("div",{staticClass:"vc6df51b0",attrs:{id:"demo-img-container"}},[a("label",[e._v("Contain:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image contain",attrs:{src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",placeholder:e.defaultImage},on:{touchstart:e.onTouchStart,touchmove:e.onTouchMove,touchend:e.onTouchEnd}}),e._v(" "),a("label",[e._v("Cover:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}}),e._v(" "),a("label",[e._v("Center:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image center",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}}),e._v(" "),a("label",[e._v("CapInsets:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",capInsets:{top:50,left:50,bottom:50,right:50}}}),e._v(" "),a("label",[e._v("TintColor:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image center tint-color",attrs:{src:e.hippyLogoImage}}),e._v(" "),a("label",[e._v("Gif:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif"},on:{load:e.onLoad}}),e._v(" "),a("div",{staticClass:"vc6df51b0 img-result"},[a("p",[e._v("Load Result: "+e._s(e.gifLoadResult))])])])])};_._withStripped=!0;var C=a("./src/assets/hippyLogoWhite.png"),x=a.n(C),S={data:()=>({defaultImage:u.a,hippyLogoImage:x.a,gifLoadResult:{}}),methods:{onTouchStart(e){console.log("onTouchDown",e),e.stopPropagation()},onTouchMove(e){console.log("onTouchMove",e),e.stopPropagation(),console.log(e)},onTouchEnd(e){console.log("onTouchEnd",e),e.stopPropagation(),console.log(e)},onLoad(e){console.log("onLoad",e);const{width:t,height:a,url:o}=e;this.gifLoadResult={width:t,height:a,url:o}}}},w=(a("./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&"),Object(n.a)(S,_,[],!1,null,"c6df51b0",null));w.options.__file="src/components/demos/demo-img.vue";var k=w.exports,A=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"inputDemo",staticClass:"v76bc5c6f demo-input",on:{click:e.blurAllInput}},[a("label",[e._v("文本:")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.text,expression:"text"}],ref:"input",staticClass:"v76bc5c6f input",attrs:{placeholder:"Text","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",editable:!0},domProps:{value:e.text},on:{click:e.stopPropagation,keyboardWillShow:e.onKeyboardWillShow,keyboardWillHide:e.onKeyboardWillHide,blur:e.onBlur,focus:e.onFocus,input:function(t){t.target.composing||(e.text=t.target.value)}}}),e._v(" "),a("div",[a("span",[e._v("文本内容为:")]),e._v(" "),a("span",[e._v(e._s(e.text))])]),e._v(" "),a("div",[a("span",[e._v(e._s("事件: "+e.event+" | isFocused: "+e.isFocused))])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.clearTextContent}},[a("span",[e._v("清空文本内容")])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.focus}},[a("span",[e._v("Focus")])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.blur}},[a("span",[e._v("Blur")])]),e._v(" "),a("label",[e._v("数字:")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{type:"number","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Number"},on:{change:e.textChange,click:e.stopPropagation}}),e._v(" "),a("label",[e._v("密码:")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{type:"password","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Password"},on:{change:e.textChange,click:e.stopPropagation}}),e._v(" "),a("label",[e._v("文本(限制5个字符):")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{maxlength:5,"caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"5 个字符"},on:{change:e.textChange,click:e.stopPropagation}})])};A._withStripped=!0;var P={data:()=>({text:"",event:void 0,isFocused:void 0}),mounted(){this.getChildNodes(this.$refs.inputDemo.childNodes).find(e=>"input"===e.tagName).focus()},methods:{textChange(e){console.log(e.value)},blurAllInput(){this.getChildNodes(this.$refs.inputDemo.childNodes).filter(e=>"input"===e.tagName).forEach(e=>e.blur())},stopPropagation(e){e.stopPropagation()},clearTextContent(){this.text=""},onKeyboardWillHide(){console.log("onKeyboardWillHide")},onKeyboardWillShow(e){console.log("onKeyboardWillShow",e)},getChildNodes:e=>r.default.Native?e:Array.from(e),focus(e){e.stopPropagation(),this.$refs.input.focus()},blur(e){e.stopPropagation(),this.$refs.input.blur()},async onFocus(){this.isFocused=await this.$refs.input.isFocused(),this.event="onFocus"},async onBlur(){this.isFocused=await this.$refs.input.isFocused(),this.event="onBlur"}}},E=(a("./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&"),Object(n.a)(P,A,[],!1,null,"76bc5c6f",null));E.options.__file="src/components/demos/demo-input.vue";var j=E.exports,T=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v36005ed6 p-demo"},[a("div",[a("label",[e._v("不带样式:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-content",on:{touchstart:e.onTouchTextStart,touchmove:e.onTouchTextMove,touchend:e.onTouchTextEnd}},[e._v("\n 这是最普通的一行可点击文字\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-content-status"},[e._v("\n 当前touch状态: "+e._s(e.labelTouchStatus)+"\n ")]),e._v(" "),a("label",[e._v("颜色:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-1 p-demo-content"},[e._v("\n 这行文字改变了颜色\n ")]),e._v(" "),a("label",[e._v("尺寸:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-2 p-demo-content"},[e._v("\n 这行改变了大小\n ")]),e._v(" "),a("label",[e._v("粗体:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-3 p-demo-content"},[e._v("\n 这行加粗了\n ")]),e._v(" "),a("label",[e._v("下划线:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-4 p-demo-content"},[e._v("\n 这里有条下划线\n ")]),e._v(" "),a("label",[e._v("删除线:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-5 p-demo-content"},[e._v("\n 这里有条删除线\n ")]),e._v(" "),a("label",[e._v("自定义字体:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content"},[e._v("\n 腾讯字体 Hippy\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-weight":"bold"}},[e._v("\n 腾讯字体 Hippy 粗体\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-style":"italic"}},[e._v("\n 腾讯字体 Hippy 斜体\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-weight":"bold","font-style":"italic"}},[e._v("\n 腾讯字体 Hippy 粗斜体\n ")]),e._v(" "),a("label",[e._v("文字阴影:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-7 p-demo-content",style:e.textShadow,on:{click:e.changeTextShadow}},[e._v("\n 这里是文字灰色阴影,点击可改变颜色\n ")]),e._v(" "),a("label",[e._v("文本字符间距")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-8 p-demo-content",staticStyle:{"margin-bottom":"5px"}},[e._v("\n Text width letter-spacing -1\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-9 p-demo-content",staticStyle:{"margin-top":"5px"}},[e._v("\n Text width letter-spacing 5\n ")]),e._v(" "),a("label",[e._v("字体 style:")]),e._v(" "),e._m(0),e._v(" "),a("label",[e._v("numberOfLines="+e._s(e.textMode.numberOfLines)+" | ellipsizeMode="+e._s(e.textMode.ellipsizeMode))]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"19px",color:"white"}},[e._v("先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。")]),e._v(" "),a("span",[e._v("然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")])]),e._v(" "),a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[e._v("\n "+e._s("line 1\n\nline 3\n\nline 5")+"\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5,fontSize:14},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[a("img",{staticClass:"v36005ed6",style:{width:24,height:24},attrs:{src:e.img1}}),e._v(" "),a("img",{staticClass:"v36005ed6",style:{width:24,height:24},attrs:{src:e.img2}})]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:e.incrementLine}},[a("span",[e._v("加一行")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:e.decrementLine}},[a("span",[e._v("减一行")])])]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("clip")}}},[a("span",[e._v("clip")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("head")}}},[a("span",[e._v("head")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("middle")}}},[a("span",[e._v("middle")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("tail")}}},[a("span",[e._v("tail")])])])]),e._v(" "),"android"===e.Platform?a("label",[e._v("break-strategy="+e._s(e.breakStrategy))]):e._e(),e._v(" "),"android"===e.Platform?a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"border-width":"1","border-color":"gray"},attrs:{"break-strategy":e.breakStrategy}},[e._v("\n "+e._s(e.longText)+"\n ")]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("simple")}}},[a("span",[e._v("simple")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("high_quality")}}},[a("span",[e._v("high_quality")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("balanced")}}},[a("span",[e._v("balanced")])])])]):e._e(),e._v(" "),a("label",[e._v("vertical-align")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-align":"middle"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-align":"baseline"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-align":"bottom"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-align":"middle"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-align":"baseline"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-align":"bottom"},attrs:{src:e.img3}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"top"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"middle"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"baseline"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"bottom"}},[e._v("字")])]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{lineHeight:"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"0"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-alignment":"1"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-alignment":"2"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-alignment":"3"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24",top:"-10"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12",top:"-5"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24",top:"5"},attrs:{src:e.img3}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")])]):e._e()]),e._v(" "),a("label",[e._v("tint-color & background-color")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"vertical-align":"middle","background-color":"#99f"}},[e._v("text")])]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","tint-color":"orange"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","tint-color":"orange","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","background-color":"#ccc"},attrs:{src:e.img2}})]):e._e()]),e._v(" "),a("label",[e._v("margin")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"baseline","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"bottom","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}})]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"0","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"1","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"2","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"3","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}})]):e._e()])])])};T._withStripped=!0;var V={data:()=>({Platform:r.default.Native.Platform,textShadowIndex:0,isClicked:!1,isPressing:!1,labelTouchStatus:"",textShadow:{textShadowOffset:{x:1,y:1},textShadowRadius:3,textShadowColor:"grey"},textMode:{numberOfLines:2,ellipsizeMode:"tail"},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.",breakStrategy:"simple"}),methods:{changeTextShadow(){this.textShadow={textShadowOffsetX:this.textShadowIndex%2==1?10:1,textShadowOffsetY:1,textShadowRadius:3,textShadowColor:this.textShadowIndex%2==1?"red":"grey"},this.textShadowIndex+=1},onTouchTextStart(e){this.labelTouchStatus="touch start",console.log("onTextTouchDown",e),e.stopPropagation()},onTouchTextMove(e){this.labelTouchStatus="touch move",console.log("onTextTouchMove",e),e.stopPropagation(),console.log(e)},onTouchTextEnd(e){this.labelTouchStatus="touch end",console.log("onTextTouchEnd",e),e.stopPropagation(),console.log(e)},incrementLine(){this.textMode.numberOfLines<6&&(this.textMode.numberOfLines+=1)},decrementLine(){this.textMode.numberOfLines>1&&(this.textMode.numberOfLines-=1)},changeMode(e){this.textMode.ellipsizeMode=e},changeBreakStrategy(e){this.breakStrategy=e}}},I=(a("./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&"),Object(n.a)(V,T,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v36005ed6 p-demo-content"},[t("p",{staticClass:"v36005ed6",staticStyle:{"font-style":"normal"}},[this._v("\n font-style: normal\n ")]),this._v(" "),t("p",{staticClass:"v36005ed6",staticStyle:{"font-style":"italic"}},[this._v("\n font-style: italic\n ")]),this._v(" "),t("p",[this._v("font-style: [not set]")])])}],!1,null,"36005ed6",null));I.options.__file="src/components/demos/demo-p.vue";var L=I.exports,Y=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v5819936a",attrs:{id:"shadow-demo"}},["android"===e.Platform?a("div",{staticClass:"v5819936a no-offset-shadow-demo-cube-android"},[e._m(0)]):e._e(),e._v(" "),"ios"===e.Platform?a("div",{staticClass:"v5819936a no-offset-shadow-demo-cube-ios"},[e._m(1)]):e._e(),e._v(" "),"android"===e.Platform?a("div",{staticClass:"v5819936a offset-shadow-demo-cube-android"},[e._m(2)]):e._e(),e._v(" "),"ios"===e.Platform?a("div",{staticClass:"v5819936a offset-shadow-demo-cube-ios"},[e._m(3)]):e._e()])};Y._withStripped=!0;var O={data:()=>({Platform:r.default.Native.Platform}),mounted(){this.Platform=r.default.Native.Platform}},H=(a("./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&"),Object(n.a)(O,Y,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a no-offset-shadow-demo-content-android"},[t("p",[this._v("没有偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a no-offset-shadow-demo-content-ios"},[t("p",[this._v("没有偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a offset-shadow-demo-content-android"},[t("p",[this._v("偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a offset-shadow-demo-content-ios"},[t("p",[this._v("偏移阴影样式")])])}],!1,null,"5819936a",null));H.options.__file="src/components/demos/demo-shadow.vue";var D=H.exports,R=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v6cb502b6",attrs:{id:"demo-textarea"}},[a("label",[e._v("多行文本:")]),e._v(" "),a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],staticClass:"v6cb502b6 textarea",attrs:{rows:10,placeholder:"多行文本编辑器"},domProps:{value:e.content},on:{contentSizeChange:e.contentSizeChange,input:function(t){t.target.composing||(e.content=t.target.value)}}}),e._v(" "),a("div",{staticClass:"v6cb502b6 output-container"},[a("p",{staticClass:"v6cb502b6 output"},[e._v("\n 输入的文本为:"+e._s(e.content)+"\n ")])]),e._v(" "),"android"===e.Platform?a("label",[e._v("break-strategy="+e._s(e.breakStrategy))]):e._e(),e._v(" "),"android"===e.Platform?a("div",[a("textarea",{staticClass:"v6cb502b6 textarea",attrs:{defaultValue:e.longText,"break-strategy":e.breakStrategy}}),e._v(" "),a("div",{staticClass:"v6cb502b6 button-bar"},[a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("simple")}}},[a("span",[e._v("simple")])]),e._v(" "),a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("high_quality")}}},[a("span",[e._v("high_quality")])]),e._v(" "),a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("balanced")}}},[a("span",[e._v("balanced")])])])]):e._e()])};R._withStripped=!0;var B={data:()=>({Platform:r.default.Native.Platform,content:"The quick brown fox jumps over the lazy dog,快灰狐狸跳过了懒 🐕。",longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",breakStrategy:"simple"}),methods:{contentSizeChange(e){console.log(e)},changeBreakStrategy(e){this.breakStrategy=e}}},U=(a("./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&"),Object(n.a)(B,R,[],!1,null,"6cb502b6",null));U.options.__file="src/components/demos/demo-textarea.vue";var N=U.exports,M=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v71b90789",attrs:{id:"demo-list"}},[a("ul",{ref:"list",staticClass:"v71b90789",style:e.horizontal&&{height:50,flex:0},attrs:{id:"list",horizontal:e.horizontal,exposureEventEnabled:!0,delText:e.delText,editable:!0,bounces:!0,rowShouldSticky:!0,overScrollEnabled:!0,scrollEventThrottle:1e3},on:{endReached:e.onEndReached,delete:e.onDelete,scroll:e.onScroll,momentumScrollBegin:e.onMomentumScrollBegin,momentumScrollEnd:e.onMomentumScrollEnd,scrollBeginDrag:e.onScrollBeginDrag,scrollEndDrag:e.onScrollEndDrag}},e._l(e.dataSource,(function(t,o){return a("li",{key:o+"_"+t.style,staticClass:"v71b90789",class:e.horizontal&&"item-horizontal-style",attrs:{type:t.style,sticky:1===o},on:{appear:function(t){return e.onAppear(o)},disappear:function(t){return e.onDisappear(o)},willAppear:function(t){return e.onWillAppear(o)},willDisappear:function(t){return e.onWillDisappear(o)}}},[1===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 1 UI")+"\n ")])])]):2===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 2 UI")+"\n ")])])]):5===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 5 UI")+"\n ")])])]):a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{id:"loading"}},[e._v("\n "+e._s(e.loadingState)+"\n ")])])]),e._v(" "),o!==e.dataSource.length-1?a("div",{staticClass:"v71b90789 separator-line"}):e._e()])})),0),e._v(" "),"android"===e.Vue.Native.Platform?a("div",{staticClass:"v71b90789",style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#40b883"},on:{click:e.changeDirection}},[a("div",{staticClass:"v71b90789",style:{width:60,height:60,borderRadius:30,backgroundColor:"#40b883",display:"flex",justifyContent:"center",alignItems:"center"}},[a("p",{staticClass:"v71b90789",style:{color:"white"}},[e._v("\n 切换方向\n ")])])]):e._e()])};M._withStripped=!0;const F=[{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}];var z={data:()=>({Vue:r.default,loadingState:"Loading now...",dataSource:[],delText:"Delete",horizontal:void 0}),mounted(){this.isLoading=!1,this.dataSource=F},methods:{changeDirection(){this.horizontal=void 0===this.horizontal||void 0},onAppear(e){console.log("onAppear",e)},onDisappear(e){console.log("onDisappear",e)},onWillAppear(e){console.log("onWillAppear",e)},onWillDisappear(e){console.log("onWillDisappear",e)},mockFetchData:()=>new Promise(e=>{setTimeout(()=>e(F),600)}),onDelete(e){this.dataSource.splice(e.index,1)},async onEndReached(){const{dataSource:e,isLoading:t}=this;if(t)return;this.isLoading=!0,this.dataSource=e.concat([{style:100}]);const a=await this.mockFetchData();this.dataSource=e.concat(a),this.isLoading=!1},onScroll(e){console.log("onScroll",e.offsetY),e.offsetY<=0?this.topReached||(this.topReached=!0,console.log("onTopReached")):this.topReached=!1},onMomentumScrollBegin(e){console.log("momentumScrollBegin",e)},onMomentumScrollEnd(e){console.log("momentumScrollEnd",e)},onScrollBeginDrag(e){console.log("onScrollBeginDrag",e)},onScrollEndDrag(e){console.log("onScrollEndDrag",e)}}},$=(a("./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&"),Object(n.a)(z,M,[],!1,null,"71b90789",null));$.options.__file="src/components/demos/demo-list.vue";var W=$.exports,K=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{style:e.iframeStyle,attrs:{id:"iframe-demo"}},[a("label",[e._v("地址栏:")]),e._v(" "),a("input",{ref:"input",attrs:{id:"address",name:"url",returnKeyType:"go"},domProps:{value:e.displayUrl},on:{endEditing:e.goToUrl,keyup:e.onKeyUp}}),e._v(" "),a("iframe",{ref:"iframe",attrs:{id:"iframe",src:e.url,method:"get"},on:{load:e.onLoad,loadStart:e.onLoadStart,loadEnd:e.onLoadEnd}})])};K._withStripped=!0;var G={data:()=>({url:"https://hippyjs.org",displayUrl:"https://hippyjs.org",iframeStyle:{"min-height":r.default.Native?100:"100vh"}}),methods:{onLoad(e){let{url:t}=e;void 0===t&&(t=this.$refs.iframe.src),t!==this.url&&(this.displayUrl=t)},onLoadStart(e){const{url:t}=e;console.log("onLoadStart",t)},onLoadEnd(e){const{url:t,success:a,error:o}=e;console.log("onLoadEnd",t,a,o)},onKeyUp(e){13===e.keyCode&&(e.preventDefault(),this.goToUrl({value:this.$refs.input.value}))},goToUrl(e){this.url=e.value}}},q=(a("./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&"),Object(n.a)(G,K,[],!1,null,null,null));q.options.__file="src/components/demos/demo-iframe.vue";var Q=q.exports,X=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v77bce928",attrs:{id:"websocket-demo"}},[a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Url:\n ")]),e._v(" "),a("input",{ref:"inputUrl",staticClass:"v77bce928",attrs:{value:"wss://echo.websocket.org"}}),e._v(" "),a("div",{staticClass:"v77bce928 row"},[a("button",{staticClass:"v77bce928",on:{click:e.connect}},[a("span",[e._v("Connect")])]),e._v(" "),a("button",{staticClass:"v77bce928",on:{click:e.disconnect}},[a("span",[e._v("Disconnect")])])])]),e._v(" "),a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Message:\n ")]),e._v(" "),a("input",{ref:"inputMessage",staticClass:"v77bce928",attrs:{value:"Rock it with Hippy WebSocket"}}),e._v(" "),a("button",{staticClass:"v77bce928",on:{click:e.sendMessage}},[a("span",[e._v("Send")])])]),e._v(" "),a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Log:\n ")]),e._v(" "),a("div",{staticClass:"v77bce928 output fullscreen"},[a("div",e._l(e.output,(function(t,o){return a("p",{key:o,staticClass:"v77bce928"},[e._v("\n "+e._s(t)+"\n ")])})),0)])])])};X._withStripped=!0;var J={data:()=>({output:[]}),methods:{connect(){this.$refs.inputUrl.getValue().then(e=>{this.disconnect();const t=new WebSocket(e);t.onopen=()=>this.appendOutput("[Opened] "+t.url),t.onclose=()=>this.appendOutput("[Closed] "+t.url),t.onerror=e=>this.appendOutput("[Error] "+e.reason),t.onmessage=e=>this.appendOutput("[Received] "+e.data),this.ws=t})},disconnect(){this.ws&&1===this.ws.readyState&&this.ws.close()},appendOutput(e){this.output.unshift(e)},sendMessage(){this.$refs.inputMessage.getValue().then(e=>{this.appendOutput("[Sent] "+e),this.ws.send(e)})}}},Z=(a("./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&"),Object(n.a)(J,X,[],!1,null,"77bce928",null));Z.options.__file="src/components/demos/demo-websocket.vue";var ee=Z.exports,te=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v2ea31349",attrs:{id:"demo-dynamicimport"},on:{click:this.onAsyncComponentLoad}},[this._m(0),this._v(" "),this.loaded?t("div",{staticClass:"v2ea31349 async-com-wrapper"},[t("AsyncComponentFromLocal",{staticClass:"v2ea31349 async-component-outer-local"}),this._v(" "),t("AsyncComponentFromHttp")],1):this._e()])};te._withStripped=!0;var ae={components:{AsyncComponentFromLocal:()=>a.e(1).then(a.bind(null,"./src/components/demos/dynamicImport/async-component-local.vue")).then(e=>e).catch(e=>console.error("import async local component error",e)),AsyncComponentFromHttp:()=>a.e(0).then(a.bind(null,"./src/components/demos/dynamicImport/async-component-http.vue")).then(e=>e).catch(e=>console.error("import async remote component error",e))},data:()=>({loaded:!1}),methods:{onAsyncComponentLoad(){this.loaded=!0}}},oe=(a("./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&"),Object(n.a)(ae,te,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v2ea31349 import-btn"},[t("p",[this._v("点我异步加载")])])}],!1,null,"2ea31349",null));oe.options.__file="src/components/demos/demo-dynamicimport.vue";var re=oe.exports,se=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v14216e7a demo-turbo"},[a("span",{staticClass:"v14216e7a result"},[e._v(" "+e._s(e.result)+" ")]),e._v(" "),a("ul",{staticClass:"v14216e7a",staticStyle:{flex:"1"}},e._l(e.funList,(function(t){return a("li",{key:t,staticClass:"v14216e7a cell"},[a("div",{staticClass:"v14216e7a contentView"},[a("div",{staticClass:"v14216e7a func-info"},[a("span",{staticClass:"v14216e7a",attrs:{numberOfLines:0}},[e._v("函数名:"+e._s(t))])]),e._v(" "),a("span",{staticClass:"v14216e7a action-button",on:{click:function(a){return a.stopPropagation(),function(){return e.onTurboFunc(t)}.apply(null,arguments)}}},[e._v("运行")])])])})),0)])};se._withStripped=!0;const ie=()=>getTurboModule("demoTurbo").getTurboConfig();var ne={data:()=>({config:null,result:"",funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"]}),methods:{async onTurboFunc(e){if("nativeWithPromise"===e)this.result=await(async e=>turboPromise(getTurboModule("demoTurbo").nativeWithPromise)(e))("aaa");else if("getTurboConfig"===e)this.config=ie(),this.result="获取到config对象";else if("printTurboConfig"===e)this.result=(t=this.config||ie(),getTurboModule("demoTurbo").printTurboConfig(t));else if("getInfo"===e)this.result=(this.config||ie()).getInfo();else if("setInfo"===e)(this.config||ie()).setInfo("Hello World"),this.result="设置config信息成功";else{const t={getString:()=>{return e="123",getTurboModule("demoTurbo").getString(e);var e},getNum:()=>{return e=1024,getTurboModule("demoTurbo").getNum(e);var e},getBoolean:()=>{return e=!0,getTurboModule("demoTurbo").getBoolean(e);var e},getMap:()=>{return e=new Map([["a","1"],["b",2]]),getTurboModule("demoTurbo").getMap(e);var e},getObject:()=>{return e={c:"3",d:"4"},getTurboModule("demoTurbo").getObject(e);var e},getArray:()=>{return e=["a","b","c"],getTurboModule("demoTurbo").getArray(e);var e}};this.result=t[e]()}var t}}},le=(a("./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&"),Object(n.a)(ne,se,[],!1,null,"14216e7a",null));le.options.__file="src/components/demos/demo-turbo.vue";var ce={demoDiv:{name:"div 组件",component:g},demoShadow:{name:"box-shadow",component:D},demoP:{name:"p 组件",component:L},demoButton:{name:"button 组件",component:c},demoImg:{name:"img 组件",component:k},demoInput:{name:"input 组件",component:j},demoTextarea:{name:"textarea 组件",component:N},demoUl:{name:"ul/li 组件",component:W},demoIFrame:{name:"iframe 组件",component:Q},demoWebSocket:{name:"WebSocket",component:ee},demoDynamicImport:{name:"DynamicImport",component:re},demoTurbo:{name:"Turbo",component:le.exports}},de=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v4ffd9eb0 set-native-props-demo"},[a("label",[e._v("setNativeProps实现拖动效果")]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 native-demo-1-drag",style:{width:e.screenWidth},on:{touchstart:e.onTouchDown1,touchmove:e.onTouchMove1}},[a("div",{ref:"demo-1-point",staticClass:"v4ffd9eb0 native-demo-1-point"})]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 splitter"}),e._v(" "),a("label",[e._v("普通渲染实现拖动效果")]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 native-demo-2-drag",style:{width:e.screenWidth},on:{touchstart:e.onTouchDown2,touchmove:e.onTouchMove2}},[a("div",{ref:"demo-2-point",staticClass:"v4ffd9eb0 native-demo-2-point",style:{left:e.demon2Left+"px"}})])])};de._withStripped=!0;var pe={data:()=>({demon2Left:0,screenWidth:0}),mounted(){this.screenWidth=r.default.Native.Dimensions.screen.width,this.demon1Point=this.$refs["demo-1-point"]},methods:{onTouchDown1(e){e.stopPropagation();const t=e.touches[0].clientX-40;console.log("touchdown x",t,this.screenWidth),this.demon1Point.setNativeProps({style:{left:t}})},onTouchMove1(e){e.stopPropagation();const t=e.touches[0].clientX-40;console.log("touchmove x",t,this.screenWidth),this.demon1Point.setNativeProps({style:{left:t}})},onTouchDown2(e){e.stopPropagation(),this.demon2Left=e.touches[0].clientX-40,console.log("touchdown x",this.demon2Left,this.screenWidth)},onTouchMove2(e){e.stopPropagation(),this.demon2Left=e.touches[0].clientX-40,console.log("touchmove x",this.demon2Left,this.screenWidth)}}},ue=(a("./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&"),Object(n.a)(pe,de,[],!1,null,"4ffd9eb0",null));ue.options.__file="src/components/demos/demo-set-native-props.vue";var ve=ue.exports,ye=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"rect",staticClass:"v864846ba",attrs:{id:"demo-vue-native"}},[a("div",[e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Platform")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Platform))])]):e._e(),e._v(" "),e.Vue.Native.Device?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Device")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Device))])]):e._e(),e._v(" "),"ios"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.isIPhoneX")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.isIPhoneX))])]):e._e(),e._v(" "),"ios"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.OSVersion")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.OSVersion||"null"))])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Localization")]),e._v(" "),a("p",[e._v(e._s("国际化相关信息"))]),e._v(" "),a("p",[e._v(e._s("国家 "+e.Vue.Native.Localization.country))]),e._v(" "),a("p",[e._v(e._s("语言 "+e.Vue.Native.Localization.language))]),e._v(" "),a("p",[e._v(e._s("方向 "+(1===e.Vue.Native.Localization.direction?"RTL":"LTR")))])]),e._v(" "),"android"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.APILevel")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.APILevel||"null"))])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block",on:{layout:e.refreshScreenStatus}},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.screenIsVertical")]),e._v(" "),a("p",[e._v(e._s(e.screenIsVertical))])]),e._v(" "),e.Vue.Native.Dimensions.window.width?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.window.width")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.window.width))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.window.height?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.window.height")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.window.height))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.width?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.width")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.width))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.height?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.height")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.height))])]):e._e(),e._v(" "),e.Vue.Native.OnePixel?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.OnePixel")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.OnePixel))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.navigatorBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.navigatorBarHeight")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.navigatorBarHeight))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.statusBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.statusBarHeight")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.statusBarHeight))])]):e._e(),e._v(" "),"android"===e.Vue.Native.Platform&&void 0!==e.Vue.Native.Dimensions.screen.navigatorBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.navigatorBarHeight(Android only)")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.navigatorBarHeight))])]):e._e(),e._v(" "),e.app?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("App.$options.$superProps")]),e._v(" "),a("p",[e._v(e._s(JSON.stringify(e.app.$options.$superProps)))])]):e._e(),e._v(" "),e.app?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("App event")]),e._v(" "),a("div",[a("button",{staticClass:"v864846ba event-btn",on:{click:e.triggerAppEvent}},[a("span",{staticClass:"v864846ba event-btn-text"},[e._v("Trigger app event")])]),e._v(" "),a("div",{staticClass:"v864846ba event-btn-result"},[a("p",[e._v("Event triggered times: "+e._s(e.eventTriggeredTimes))])])])]):e._e(),e._v(" "),e.Vue.Native.getBoundingClientRect?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.getBoundingClientRect")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:function(){return e.getBoundingClientRect(!1)}}},[a("span",[e._v("relative to App")])]),e._v(" "),a("span",{staticClass:"v864846ba",staticStyle:{"max-width":"200px"}},[e._v(e._s(e.rect1))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:function(){return e.getBoundingClientRect(!0)}}},[a("span",[e._v("relative to container")])]),e._v(" "),a("span",{staticClass:"v864846ba",staticStyle:{"max-width":"200px"}},[e._v(e._s(e.rect2))])])]):e._e(),e._v(" "),e.Vue.Native.AsyncStorage?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("AsyncStorage 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setItem}},[a("span",[e._v("setItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageSetStatus))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.removeItem}},[a("span",[e._v("removeItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageSetStatus))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getItem}},[a("span",[e._v("getItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageValue))])])]):e._e(),e._v(" "),e.Vue.Native.ImageLoader?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("ImageLoader 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getSize}},[a("span",[e._v("getSize")])]),e._v(" "),a("span",[e._v(e._s(e.imageSize))])])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Fetch 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("span",[e._v(e._s(e.fetchText))])])]),e._v(" "),e.Vue.Native.NetInfo?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("NetInfo 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("span",[e._v(e._s(e.netInfoText))])])]):e._e(),e._v(" "),e.Vue.Native.Cookie?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Cookie 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setCookie}},[a("span",[e._v("setCookie")])]),e._v(" "),a("span",[e._v(e._s(e.cookieString))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getCookie}},[a("span",[e._v("getCookie")])]),e._v(" "),a("span",[e._v(e._s(e.cookiesValue))])])]):e._e(),e._v(" "),e.Vue.Native.Clipboard?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Clipboard 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setString}},[a("span",[e._v("setString")])]),e._v(" "),a("span",[e._v(e._s(e.clipboardString))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getString}},[a("span",[e._v("getString")])]),e._v(" "),a("span",[e._v(e._s(e.clipboardValue))])])]):e._e()])])};ye._withStripped=!0;var he=a("./src/util.js");var be={data(){const{screenIsVertical:e}=r.default.Native;return{app:this.app,eventTriggeredTimes:0,rect1:null,rect2:null,Vue:r.default,screenIsVertical:e,storageValue:"",storageSetStatus:"ready to set",clipboardString:"ready to set",clipboardValue:"",imageSize:"",netInfoText:"正在获取...",fetchText:"请求网址中...",cookieString:"ready to set",cookiesValue:"",hasLayout:!1}},async created(){this.storageValue="",this.imageSize="",this.netInfoText="",this.netInfoText=await r.default.Native.NetInfo.fetch(),this.netInfoListener=r.default.Native.NetInfo.addEventListener("change",e=>{this.netInfoText="收到通知: "+e.network_info}),fetch("https://hippyjs.org",{mode:"no-cors"}).then(e=>{this.fetchText="成功状态: "+e.status}).catch(e=>{this.fetchText="收到错误: "+e})},async mounted(){this.app=Object(he.a)(),this.app.$on("testEvent",()=>{this.eventTriggeredTimes+=1})},beforeDestroy(){this.netInfoListener&&r.default.Native.NetInfo.remove("change",this.netInfoListener),this.app.$off("testEvent"),delete this.app},methods:{async getBoundingClientRect(e=!1){try{const t=await r.default.Native.getBoundingClientRect(this.$refs.rect,{relToContainer:e});e?this.rect2=""+JSON.stringify(t):this.rect1=""+JSON.stringify(t)}catch(e){console.error("getBoundingClientRect error",e)}},triggerAppEvent(){this.app.$emit("testEvent")},refreshScreenStatus(){this.screenIsVertical=r.default.Native.screenIsVertical},setItem(){r.default.Native.AsyncStorage.setItem("itemKey","hippy"),this.storageSetStatus='set "hippy" value succeed'},removeItem(){r.default.Native.AsyncStorage.removeItem("itemKey"),this.storageSetStatus='remove "hippy" value succeed'},async getItem(){const e=await r.default.Native.AsyncStorage.getItem("itemKey");this.storageValue=e||"undefined"},async getSize(){const e=await r.default.Native.ImageLoader.getSize("https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png");console.log("ImageLoader getSize",e),this.imageSize=`${e.width}x${e.height}`},setCookie(){r.default.Native.Cookie.set("https://hippyjs.org","name=hippy;network=mobile"),this.cookieString="'name=hippy;network=mobile' is set"},getCookie(){r.default.Native.Cookie.getAll("https://hippyjs.org").then(e=>{this.cookiesValue=e})},setString(){r.default.Native.Clipboard.setString("hippy"),this.clipboardString='copy "hippy" value succeed'},async getString(){const e=await r.default.Native.Clipboard.getString();this.clipboardValue=e||"undefined"}}},me=(a("./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&"),Object(n.a)(be,ye,[],!1,null,"864846ba",null));me.options.__file="src/components/native-demos/demo-vue-native.vue";var fe=me.exports,ge=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{staticClass:"v1b9933af",attrs:{id:"animation-demo"}},[a("li",[a("label",[e._v("控制动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleLoopPlaying}},[e.loopPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])]),e._v(" "),a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleDirection}},["horizon"===e.direction?a("span",[e._v("切换为纵向")]):a("span",[e._v("切换为横向")])])]),e._v(" "),a("div",{staticClass:"v1b9933af",staticStyle:{height:"150px"}},[a("loop",{staticClass:"v1b9933af",attrs:{playing:e.loopPlaying,direction:e.direction,"on-ref":e.onRef},on:{actionsDidUpdate:e.actionsDidUpdate}},[a("p",[e._v("I'm a looping animation")])])],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("点赞笑脸动画:")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.voteUp}},[a("span",[e._v("点赞 👍")])]),e._v(" "),a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.voteDown}},[a("span",[e._v("踩 👎")])])]),e._v(" "),a("div",{staticClass:"v1b9933af vote-face-container center"},[a(e.voteComponent,{tag:"component",staticClass:"v1b9933af vote-icon",attrs:{"is-changed":e.isChanged}})],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("渐变色动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleColorPlaying}},[e.colorPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])])]),e._v(" "),a("div",[a("color-component",{staticClass:"v1b9933af",attrs:{playing:e.colorPlaying}},[a("p",[e._v("背景色渐变")])])],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("贝塞尔曲线动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleCubicPlaying}},[e.cubicPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])])]),e._v(" "),a("div",[a("cubic-bezier",{staticClass:"v1b9933af",attrs:{playing:e.cubicPlaying}},[a("p",[e._v("cubic-bezier(.45,2.84,.38,.5)")])])],1)])])};ge._withStripped=!0;var _e=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("animation",{ref:"animationLoop",staticClass:"v63fc9d7f loop-green",style:{backgroundColor:"grey"},attrs:{playing:e.playing,actions:e.loopActions},on:{actionsDidUpdate:function(t){return e.$emit("actionsDidUpdate")}}},[a("div",{staticClass:"v63fc9d7f loop-white"},[e._t("default")],2)])],1)};_e._withStripped=!0;const Ce={transform:{translateX:{startValue:0,toValue:200,duration:2e3,repeatCount:-1}}},xe={transform:{translateY:{startValue:0,toValue:50,duration:2e3,repeatCount:-1}}};var Se={props:{playing:Boolean,direction:{validator:e=>["horizon","vertical"].indexOf(e)>-1},onRef:Function},data(){let e;switch(this.$props.direction){case"horizon":e=Ce;break;case"vertical":e=xe;break;default:throw new Error("direction must be defined in props")}return{loopActions:e}},watch:{direction(e){switch(e){case"horizon":this.loopActions=Ce;break;case"vertical":this.loopActions=xe}}},mounted(){this.$props.onRef&&this.$props.onRef(this.$refs.animationLoop)}},we=(a("./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&"),Object(n.a)(Se,_e,[],!1,null,"63fc9d7f",null));we.options.__file="src/components/native-demos/animations/loop.vue";var ke=we.exports,Ae=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{ref:"animationView",staticClass:"v44bf239d loop-green",attrs:{playing:this.playing,actions:this.loopActions}},[t("div",{staticClass:"v44bf239d loop-white"},[this._t("default")],2)])],1)};Ae._withStripped=!0;const Pe={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 Ee={props:{playing:Boolean,onRef:Function},data:()=>({loopActions:Pe}),mounted(){this.$props.onRef&&this.$props.onRef(this.$refs.animationView)}},je=(a("./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&"),Object(n.a)(Ee,Ae,[],!1,null,"44bf239d",null));je.options.__file="src/components/native-demos/animations/cubic-bezier.vue";var Te=je.exports,Ve=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{staticClass:"vca89125a vote-face",attrs:{actions:this.animations.face,playing:""}}),this._v(" "),t("animation",{staticClass:"vca89125a vote-up-eye",attrs:{tag:"img",playing:"",props:{src:this.imgs.upVoteEye},actions:this.animations.upVoteEye}}),this._v(" "),t("animation",{staticClass:"vca89125a vote-up-mouth",attrs:{tag:"img",playing:"",props:{src:this.imgs.upVoteMouth},actions:this.animations.upVoteMouth}})],1)};Ve._withStripped=!0;var Ie={data:()=>({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}]}}}})},Le=(a("./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&"),Object(n.a)(Ie,Ve,[],!1,null,"ca89125a",null));Le.options.__file="src/components/native-demos/animations/vote-up.vue";var Ye=Le.exports,Oe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("animation",{ref:"animationRef",staticClass:"v3adfe95a vote-face",attrs:{actions:e.animations.face,playing:""},on:{start:e.animationStart,end:e.animationEnd,repeat:e.animationRepeat,cancel:e.animationCancel}}),e._v(" "),a("animation",{staticClass:"v3adfe95a vote-down-face",attrs:{tag:"img",playing:"",props:{src:e.imgs.downVoteFace},actions:e.animations.downVoteFace}})],1)};Oe._withStripped=!0;const He={transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},De={transform:{translateX:[{startValue:10,toValue:1,duration:250,timingFunction:"linear"},{startValue:1,toValue:10,duration:250,delay:750,timingFunction:"linear",repeatCount:-1}]}};var Re={props:["isChanged"],data:()=>({imgs:{downVoteFace:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAAAXVBMVEUAAACmaCCoaSKlZyCmaCCoaiG0byOlZyCmaCGnaSKmaCCmZyClZyCmaCCmaSCybyymZyClaCGlaCGnaCCnaSGnaiOlZyKocCXMmTOmaCKnaCKmaSClZyGoZyClZyDPYmTmAAAAHnRSTlMA6S/QtjYO+FdJ4tyZbWYH7cewgTw5JRQFkHFfXk8vbZ09AAAAiUlEQVQY07WQRxLDMAhFPyq21dxLKvc/ZoSiySTZ+y3g8YcFA5wFcOkHYEi5QDkknparH5EZKS6GExQLs0RzUQUY6VYiK2ayNIapQ6EjNk2xd616Bi5qIh2fn8BqroS1XtPmgYKXxo+y07LuDrH95pm3LBM5FMpHWg2osOOLjRR6hR/WOw780bwASN0IT3NosMcAAAAASUVORK5CYII="},animations:{face:He,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"}]}}}}),watch:{isChanged(e,t){!t&&e?(console.log("changed to face2"),this.animations.face=De):t&&!e&&(console.log("changed to face1"),this.animations.face=He),setTimeout(()=>{this.animationRef.start()},10)}},mounted(){this.animationRef=this.$refs.animationRef},methods:{animationStart(){console.log("animation-start callback")},animationEnd(){console.log("animation-end callback")},animationRepeat(){console.log("animation-repeat callback")},animationCancel(){console.log("animation-cancel callback")}}},Be=(a("./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&"),Object(n.a)(Re,Oe,[],!1,null,"3adfe95a",null));Be.options.__file="src/components/native-demos/animations/vote-down.vue";var Ue=Be.exports,Ne=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{ref:"animationView",staticClass:"vc3eb3b96 color-green",attrs:{playing:this.playing,actions:this.colorActions}},[t("div",{staticClass:"vc3eb3b96 color-white"},[this._t("default")],2)])],1)};Ne._withStripped=!0;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 Fe={props:{playing:Boolean,onRef:Function},data:()=>({colorActions:Me})},ze=(a("./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&"),Object(n.a)(Fe,Ne,[],!1,null,"c3eb3b96",null));ze.options.__file="src/components/native-demos/animations/color-change.vue";var $e=ze.exports,We={components:{Loop:ke,colorComponent:$e,CubicBezier:Te},data:()=>({loopPlaying:!0,colorPlaying:!0,cubicPlaying:!0,direction:"horizon",voteComponent:Ye,colorComponent:$e,isChanged:!0}),methods:{onRef(e){this.animationRef=e},voteUp(){this.voteComponent=Ye},voteDown(){this.voteComponent=Ue,this.isChanged=!this.isChanged},toggleLoopPlaying(){this.loopPlaying=!this.loopPlaying},toggleColorPlaying(){this.colorPlaying=!this.colorPlaying},toggleCubicPlaying(){this.cubicPlaying=!this.cubicPlaying},toggleDirection(){this.direction="horizon"===this.direction?"vertical":"horizon"},actionsDidUpdate(){console.log("actions updated & startAnimation"),this.animationRef.start()}}},Ke=(a("./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&"),Object(n.a)(We,ge,[],!1,null,"1b9933af",null));Ke.options.__file="src/components/native-demos/demo-animation.vue";var Ge=Ke.exports,qe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vbdcf35a6",attrs:{id:"dialog-demo"}},[a("label",[e._v("显示或者隐藏对话框:")]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("slide")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--slide")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("fade")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--fade")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("slide_fade")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--slide_fade")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.autoHideStatusBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("hideStatusBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("隐藏状态栏")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.immersionStatusBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("immerseStatusBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("沉浸式状态栏")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.autoHideNavigationBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("hideNavigationBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("隐藏导航栏")])]),e._v(" "),e.dialogIsVisible?a("dialog",{staticClass:"vbdcf35a6",attrs:{animationType:e.dialogAnimationType,transparent:!0,supportedOrientations:e.supportedOrientations,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar},on:{show:e.onShow,requestClose:e.onClose}},[a("div",{staticClass:"vbdcf35a6 dialog-demo-wrapper"},[a("div",{staticClass:"vbdcf35a6 fullscreen center row",on:{click:e.clickView}},[a("div",{staticClass:"vbdcf35a6 dialog-demo-close-btn center column",on:{click:e.stopPropagation}},[a("p",{staticClass:"vbdcf35a6 dialog-demo-close-btn-text"},[e._v("\n 点击空白区域关闭\n ")]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-2",on:{click:e.clickOpenSecond}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("点击打开二级全屏弹窗")])])]),e._v(" "),e.dialog2IsVisible?a("dialog",{staticClass:"vbdcf35a6",attrs:{animationType:e.dialogAnimationType,transparent:!0,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar},on:{requestClose:e.onClose}},[a("div",{staticClass:"vbdcf35a6 dialog-2-demo-wrapper center column row",on:{click:e.clickOpenSecond}},[a("p",{staticClass:"vbdcf35a6 dialog-demo-close-btn-text",staticStyle:{color:"white"}},[e._v("\n Hello 我是二级全屏弹窗,点击任意位置关闭。\n ")])])]):e._e()])])]):e._e()])};qe._withStripped=!0;var Qe={beforeRouteLeave(e,t,a){this.dialogIsVisible||a()},data:()=>({supportedOrientations:["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"],dialogIsVisible:!1,dialog2IsVisible:!1,dialogAnimationType:"",immersionStatusBar:!1,autoHideStatusBar:!1,autoHideNavigationBar:!1}),methods:{clickView(e=""){this.dialogIsVisible=!this.dialogIsVisible,this.dialogIsVisible&&(this.dialogAnimationType=e)},clickOpenSecond(e){e.stopPropagation(),this.dialog2IsVisible=!this.dialog2IsVisible},clickDialogConfig(e){switch(e){case"hideStatusBar":this.autoHideStatusBar=!this.autoHideStatusBar;break;case"immerseStatusBar":this.immersionStatusBar=!this.immersionStatusBar;break;case"hideNavigationBar":this.autoHideNavigationBar=!this.autoHideNavigationBar}},onShow(){console.log("Dialog is opening")},onClose(e){e.stopPropagation(),this.dialog2IsVisible?this.dialog2IsVisible=!1:this.dialogIsVisible=!1,console.log("Dialog is closing")},stopPropagation(e){e.stopPropagation()}}},Xe=(a("./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&"),Object(n.a)(Qe,qe,[],!1,null,"bdcf35a6",null));Xe.options.__file="src/components/native-demos/demo-dialog.vue";var Je=Xe.exports,Ze=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"demo-swiper"}},[a("div",{staticClass:"toolbar"},[a("button",{staticClass:"toolbar-btn",on:{click:e.scrollToPrevPage}},[a("span",[e._v("翻到上一页")])]),e._v(" "),a("button",{staticClass:"toolbar-btn",on:{click:e.scrollToNextPage}},[a("span",[e._v("翻到下一页")])]),e._v(" "),a("p",{staticClass:"toolbar-text"},[e._v("\n 当前第 "+e._s(e.currentSlideNum+1)+" 页\n ")])]),e._v(" "),a("swiper",{ref:"swiper",attrs:{id:"swiper","need-animation":"",current:e.currentSlide},on:{dragging:e.onDragging,dropped:e.onDropped,stateChanged:e.onStateChanged}},e._l(e.dataSource,(function(t){return a("swiper-slide",{key:t,style:{backgroundColor:4278222848+100*t}},[a("p",[e._v("I'm Slide "+e._s(t+1))])])})),1),e._v(" "),a("div",{attrs:{id:"swiper-dots"}},e._l(e.dataSource,(function(t){return a("div",{key:t,staticClass:"dot",class:{hightlight:e.currentSlideNum===t}})})),0)],1)};Ze._withStripped=!0;var et={data:()=>({dataSource:new Array(7).fill(0).map((e,t)=>t),currentSlide:2,currentSlideNum:2,state:"idle"}),mounted(){this.$maxSlideIndex=this.$refs.swiper.$el.childNodes.length-1},methods:{scrollToNextPage(){this.currentSlide 如果不需要显示加载情况,可以直接使用 ul 的 onEndReached 实现一直加载\n *\n * 事件:\n * idle: 滑动距离在 pull-footer 区域内触发一次,参数 contentOffset,滑动距离\n * pulling: 滑动距离超出 pull-footer 后触发一次,参数 contentOffset,滑动距离\n * released: 滑动超出距离,松手后触发一次\n */\n "),a("pull-footer",{ref:"pullFooter",staticClass:"v44ac5390 pull-footer",on:{idle:e.onFooterIdle,pulling:e.onFooterPulling,released:e.onEndReached}},[a("p",{staticClass:"v44ac5390 pull-footer-text"},[e._v("\n "+e._s(e.footerRefreshText)+"\n ")])])],2)])};ot._withStripped=!0;const rt="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",st={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[rt,rt,rt],subInfo:["三图评论","11评"]}},it={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},nt={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}};var lt=[nt,st,it,st,it,st,it,nt,st],ct=(r.default.component("StyleOne",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n

\n {{ itemBean.title }}\n

\n
\n \n
\n
\n

\n {{ itemBean.subInfo.join(\'\') }}\n

\n
\n
\n '}),r.default.component("StyleTwo",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n
\n

\n {{ itemBean.title }}\n

\n
\n

\n {{ itemBean.subInfo.join(\'\') }}\n

\n
\n
\n
\n \n
\n
\n '}),r.default.component("StyleFive",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n

\n {{ itemBean.title }}\n

\n
\n \n
\n
\n

\n {{ itemBean.subInfo.join(\' \') }}\n

\n
\n
\n '}),{data:()=>({headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",dataSource:[],scrollPos:{top:0,left:0},Vue:r.default}),mounted(){this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.dataSource=[...lt],r.default.Native?(this.$windowHeight=r.default.Native.Dimensions.window.height,console.log("Vue.Native.Dimensions.window",r.default.Native.Dimensions)):this.$windowHeight=window.innerHeight,this.$refs.pullHeader.collapsePullHeader({time:2e3})},methods:{mockFetchData:()=>new Promise(e=>{setTimeout(()=>e(lt),800)}),onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?this.headerRefreshText="松手,即可触发刷新":this.headerRefreshText="继续下拉,触发刷新")},onFooterPulling(e){console.log("onFooterPulling",e)},onHeaderIdle(){},onFooterIdle(){},onScroll(e){e.stopPropagation(),this.scrollPos={top:e.offsetY,left:e.offsetX}},async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.headerRefreshText="刷新数据中,请稍等";const e=await this.mockFetchData();this.dataSource=e.reverse(),this.fetchingDataFlag=!1,this.headerRefreshText="2秒后收起",this.$refs.pullHeader.collapsePullHeader({time:2e3})},async onEndReached(){const{dataSource:e}=this;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.footerRefreshText="加载更多...";const t=await this.mockFetchData();0===t.length&&(this.footerRefreshText="没有更多数据"),this.dataSource=[...e,...t],this.loadMoreDataFlag=!1,this.$refs.pullFooter.collapsePullFooter()},scrollToNextPage(){if(!r.default.Native)return void alert("This method is only supported in Native environment.");const{list:e}=this.$refs,{scrollPos:t}=this,a=t.top+this.$windowHeight-200;e.scrollTo({left:t.left,top:a})},scrollToBottom(){if(!r.default.Native)return void alert("This method is only supported in Native environment.");const{list:e}=this.$refs;e.scrollToIndex(0,e.childNodes.length-1)}}}),dt=(a("./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&"),Object(n.a)(ct,ot,[],!1,null,"44ac5390",null));dt.options.__file="src/components/native-demos/demo-pull-header-footer.vue";var pt=dt.exports,ut=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v782cda3d",attrs:{id:"demo-waterfall"}},[a("waterfall",{ref:"gridView",staticClass:"v782cda3d",style:{flex:1},attrs:{"content-inset":e.contentInset,"column-spacing":e.columnSpacing,"contain-banner-view":e.isIos,"contain-pull-footer":!0,"inter-item-spacing":e.interItemSpacing,"number-of-columns":e.numberOfColumns,"preload-item-number":4},on:{endReached:e.onEndReached,scroll:e.onScroll}},[a("pull-header",{ref:"pullHeader",staticClass:"v782cda3d ul-refresh",on:{idle:e.onHeaderIdle,pulling:e.onHeaderPulling,released:e.onHeaderReleased}},[a("p",{staticClass:"v782cda3d ul-refresh-text"},[e._v("\n "+e._s(e.headerRefreshText)+"\n ")])]),e._v(" "),e.isIos?a("div",{staticClass:"v782cda3d banner-view"},[a("span",[e._v("BannerView")])]):e._e(),e._v(" "),a("waterfall-item",{staticClass:"v782cda3d banner-view",attrs:{fullSpan:!0,",":""}},[a("span",[e._v("BannerView")])]),e._v(" "),e._l(e.dataSource,(function(t,o){return a("waterfall-item",{key:o,staticClass:"v782cda3d",style:{width:e.itemWidth},attrs:{type:t.style},on:{click:function(t){return t.stopPropagation(),function(){return e.onItemClick(o)}.apply(null,arguments)}}},[1===t.style?a("style-one",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e(),e._v(" "),2===t.style?a("style-two",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e(),e._v(" "),5===t.style?a("style-five",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e()],1)})),e._v(" "),a("pull-footer",{ref:"pullFooter",staticClass:"v782cda3d pull-footer",on:{idle:e.onFooterIdle,pulling:e.onFooterPulling,released:e.onEndReached}},[a("p",{staticClass:"v782cda3d pull-footer-text"},[e._v("\n "+e._s(e.footerRefreshText)+"\n ")])])],2)],1)};ut._withStripped=!0;var vt={data:()=>({dataSource:[...lt,...lt,...lt,...lt],isRefreshing:!1,Vue:r.default,STYLE_LOADING:100,headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",isLoading:!1,isIos:"ios"===r.default.Native.Platform}),mounted(){this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.dataSource=[...lt],r.default.Native?(this.$windowHeight=r.default.Native.Dimensions.window.height,console.log("Vue.Native.Dimensions.window",r.default.Native.Dimensions)):this.$windowHeight=window.innerHeight,this.$refs.pullHeader.collapsePullHeader({time:2e3})},computed:{refreshText(){return this.isRefreshing?"正在刷新":"下拉刷新"},itemWidth(){return(r.default.Native.Dimensions.screen.width-this.contentInset.left-this.contentInset.right-(this.numberOfColumns-1)*this.columnSpacing)/this.numberOfColumns},listMargin:()=>5,columnSpacing:()=>6,interItemSpacing:()=>6,numberOfColumns:()=>2,contentInset:()=>({top:0,left:5,bottom:0,right:5})},methods:{mockFetchData(){return new Promise(e=>{setTimeout(()=>(this.fetchTimes+=1,this.fetchTimes>=50?e([]):e([...lt,...lt])),600)})},onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?this.headerRefreshText="松手,即可触发刷新":this.headerRefreshText="继续下拉,触发刷新")},onFooterPulling(e){console.log("onFooterPulling",e)},onHeaderIdle(){},onFooterIdle(){},async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.headerRefreshText="刷新数据中,请稍等";await this.mockFetchData();this.fetchingDataFlag=!1,this.headerRefreshText="2秒后收起",this.$refs.pullHeader.collapsePullHeader({time:2e3})},async onRefresh(){this.isRefreshing=!0;const e=await this.mockFetchData();this.isRefreshing=!1,this.dataSource=e.reverse(),this.$refs.header.refreshCompleted()},onScroll(e){console.log("waterfall onScroll",e)},async onEndReached(){const{dataSource:e}=this;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.footerRefreshText="加载更多...";const t=await this.mockFetchData();0===t.length&&(this.footerRefreshText="没有更多数据"),this.dataSource=[...e,...t],this.loadMoreDataFlag=!1,this.$refs.pullFooter.collapsePullFooter()},onItemClick(e){this.$refs.gridView.scrollToIndex({index:e,animation:!0})}}},yt=(a("./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&"),Object(n.a)(vt,ut,[],!1,null,"782cda3d",null));yt.options.__file="src/components/native-demos/demo-waterfall.vue";var ht=yt.exports,bt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v3bbacb8e",attrs:{id:"demo-wrap"},on:{layout:e.onLayout}},[a("div",{staticClass:"v3bbacb8e",attrs:{id:"demo-content"}},[a("div",{staticClass:"v3bbacb8e",attrs:{id:"banner"}}),e._v(" "),a("div",{staticClass:"v3bbacb8e",attrs:{id:"tabs"}},e._l(2,(function(t){return a("p",{key:"tab"+t,staticClass:"v3bbacb8e",class:e.currentSlide===t-1?"selected":"",on:{click:function(a){return e.onTabClick(t)}}},[e._v("\n tab "+e._s(t)+" "+e._s(1===t?"(parent first)":"(self first)")+"\n ")])})),0),e._v(" "),a("swiper",{ref:"swiper",staticClass:"v3bbacb8e",style:{height:e.layoutHeight-80},attrs:{id:"swiper","need-animation":"",current:e.currentSlide},on:{dropped:e.onDropped}},[a("swiper-slide",{key:"slide1",staticClass:"v3bbacb8e"},[a("ul",{staticClass:"v3bbacb8e",attrs:{nestedScrollTopPriority:"parent"}},e._l(30,(function(t){return a("li",{key:"item"+t,staticClass:"v3bbacb8e",class:t%2?"item-even":"item-odd"},[a("p",[e._v("Item "+e._s(t))])])})),0)]),e._v(" "),a("swiper-slide",{key:"slide2",staticClass:"v3bbacb8e"},[a("ul",{staticClass:"v3bbacb8e",attrs:{nestedScrollTopPriority:"self"}},e._l(30,(function(t){return a("li",{key:"item"+t,staticClass:"v3bbacb8e",class:t%2?"item-even":"item-odd"},[a("p",[e._v("Item "+e._s(t))])])})),0)])],1)],1)])};bt._withStripped=!0;var mt={data:()=>({layoutHeight:0,currentSlide:0}),methods:{onLayout(e){this.layoutHeight=e.height},onTabClick(e){console.log("onclick",e),this.currentSlide=e-1},onDropped(e){this.currentSlide=e.currentSlide}}},ft=(a("./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&"),Object(n.a)(mt,bt,[],!1,null,"3bbacb8e",null));ft.options.__file="src/components/native-demos/demo-nested-scroll.vue";var gt=ft.exports;const _t={};r.default.Native&&Object.assign(_t,{demoVueNative:{name:"Vue.Native 能力",component:fe},demoAnimation:{name:"animation 组件",component:Ge},demoModal:{name:"dialog 组件",component:Je},demoSwiper:{name:"swiper 组件",component:at},demoPullHeaderFooter:{name:"pull-header/footer 组件",component:pt},demoWaterfall:{name:"waterfall 组件",component:ht},demoNestedScroll:{name:"nested scroll 示例",component:gt},demoSetNativeProps:{name:"setNativeProps",component:ve}});var Ct=_t,xt={name:"App",data:()=>({featureList:Object.keys(ce).map(e=>({id:e,name:ce[e].name})),nativeFeatureList:Object.keys(Ct).map(e=>({id:e,name:Ct[e].name})),Vue:r.default}),beforeAppExit(){}},St=(a("./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&"),Object(n.a)(xt,o,[function(){var e=this.$createElement,t=this._self._c||e;return t("li",[t("p",{staticClass:"v4fb46863 feature-title"},[this._v("\n 浏览器组件 Demos\n ")])])}],!1,null,"4fb46863",null));St.options.__file="src/pages/menu.vue";var wt=St.exports,kt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"inputDemo",staticClass:"v66065e90 demo-remote-input",on:{click:e.blurInput}},[a("div",{staticClass:"v66065e90 tips-wrap"},e._l(e.tips,(function(t,o){return a("p",{key:o,staticClass:"v66065e90 tips-item",style:e.styles.tipText},[e._v("\n "+e._s(o+1)+". "+e._s(t)+"\n ")])})),0),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.bundleUrl,expression:"bundleUrl"}],ref:"input",staticClass:"v66065e90 remote-input",attrs:{"caret-color":"yellow",placeholder:"please input bundleUrl",multiple:!0,numberOfLines:"4"},domProps:{value:e.bundleUrl},on:{click:e.stopPropagation,input:function(t){t.target.composing||(e.bundleUrl=t.target.value)}}}),e._v(" "),a("div",{staticClass:"v66065e90 buttonContainer",style:e.styles.buttonContainer},[a("button",{staticClass:"v66065e90 input-button",style:e.styles.button,on:{click:e.openBundle}},[a("span",{staticClass:"v66065e90",style:e.styles.buttonText},[e._v("开始")])])])])};kt._withStripped=!0;var At={data:()=>({bundleUrl:"http://127.0.0.1:38989/index.bundle?debugUrl=ws%3A%2F%2F127.0.0.1%3A38989%2Fdebugger-proxy",tips:["安装远程调试依赖: npm i -D @hippy/debug-server-next@latest","修改 webpack 配置,添加远程调试地址","运行 npm run hippy:dev 开始编译,编译结束后打印出 bundleUrl 及调试首页地址","粘贴 bundleUrl 并点击开始按钮","访问调试首页开始远程调试,远程调试支持热更新(HMR)"],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"}}}),methods:{blurInput(e){e.stopPropagation(),this.$refs.input.blur()},openBundle(){this.bundleUrl&&r.default.Native.callNative("TestModule","remoteDebug",this.$root.$options.rootViewId,this.bundleUrl)},stopPropagation(e){e.stopPropagation()},clearTextContent(){this.bundleUrl=""},getChildNodes:e=>r.default.Native?e:Array.from(e)}},Pt=(a("./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&"),Object(n.a)(At,kt,[],!1,null,"66065e90",null));Pt.options.__file="src/pages/remote-debug.vue";var Et=Pt.exports;t.a={disableAutoBack:!1,routes:[{path:"/",component:wt},{path:"/remote-debug",component:Et,name:"调试"},...Object.keys(ce).map(e=>({path:"/demo/"+e,name:ce[e].name,component:ce[e].component})),...Object.keys(Ct).map(e=>({path:"/demo/"+e,name:Ct[e].name,component:Ct[e].component}))]}},"./src/util.js":function(e,t,a){"use strict";let o;function r(e){o=e}function s(){return o}a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return s}))},0:function(e,t,a){e.exports=a("./src/main-native.js")},"dll-reference hippyVueBase":function(e,t){e.exports=hippyVueBase}}); \ No newline at end of file +Object.freeze({}),r("slot,component",!0),r("key,ref,slot,slot-scope,is"),e.env.PORT;var d={exports:{}},p={exports:{}},u={exports:{}};!function(e){function t(a){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(a)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(u);var v={exports:{}};!function(e){var t=u.exports.default;e.exports=function(e,a){if("object"!=t(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,a||"default");if("object"!=t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(v),function(e){var t=u.exports.default,a=v.exports;e.exports=function(e){var o=a(e,"string");return"symbol"==t(o)?o:o+""},e.exports.__esModule=!0,e.exports.default=e.exports}(p),function(e){var t=p.exports;e.exports=function(e,a,o){return(a=t(a))in e?Object.defineProperty(e,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[a]=o,e},e.exports.__esModule=!0,e.exports.default=e.exports}(d);var y=c(d.exports);function h(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function b(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}var m={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render(e,{props:t,children:a,parent:o,data:r}){r.routerView=!0;const s=o.$createElement,{name:i}=t,n=o.$route,l=o._routerViewCache||(o._routerViewCache={});let c=0,d=!1;for(;o&&o._routerRoot!==o;)o.$vnode&&o.$vnode.data.routerView&&(c+=1),o._inactive&&(d=!0),o=o.$parent;if(r.routerViewDepth=c,d)return s(l[i],r,a);const p=n.matched[c];if(!p)return l[i]=null,s();const u=p.components[i];l[i]=u,r.registerRouteInstance=(e,t)=>{const a=p.instances[i];(t&&a!==e||!t&&a===e)&&(p.instances[i]=t)},r.hook||(r.hook={}),r.hook.prepatch=(e,t)=>{p.instances[i]=t.componentInstance};let v=function(e,t){switch(typeof t){case"undefined":return null;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:return null}}(n,p.props&&p.props[i]);if(r.props=v,v){v=function(e){for(var t=1;t{u.props&&t in u.props||(e[t]=v[t],delete v[t])})}return s(u,r,a)}};const f=/[!'()*]/g,g=e=>"%"+e.charCodeAt(0).toString(16),_=/%2C/g,C=e=>encodeURIComponent(e).replace(f,g).replace(_,","),x=decodeURIComponent;function S(e){const t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(e=>{const a=e.replace(/\+/g," ").split("="),o=x(a.shift()),r=a.length>0?x(a.join("=")):null;void 0===t[o]?t[o]=r:Array.isArray(t[o])?t[o].push(r):t[o]=[t[o],r]}),t):t}function w(e){const t=e?Object.keys(e).map(t=>{const a=e[t];if(void 0===a)return"";if(null===a)return C(t);if(Array.isArray(a)){const e=[];return a.forEach(a=>{void 0!==a&&(null===a?e.push(C(t)):e.push(`${C(t)}=${C(a)}`))}),e.join("&")}return`${C(t)}=${C(a)}`}).filter(e=>e.length>0).join("&"):null;return t?"?"+t:""}const k=/\/?$/;function A(e){if(Array.isArray(e))return e.map(A);if(e&&"object"==typeof e){const t={};return Object.keys(e).forEach(a=>{t[a]=A(e[a])}),t}return e}function P(e){const t=[];for(;e;)t.unshift(e),e=e.parent;return t}function E({path:e,query:t={},hash:a=""},o){return(e||"/")+(o||w)(t)+a}function j(e={},t={}){if(!e||!t)return e===t;const a=Object.keys(e),o=Object.keys(t);return a.length===o.length&&a.every(a=>{const o=e[a],r=t[a];return"object"==typeof o&&"object"==typeof r?j(o,r):String(o)===String(r)})}function T(e,t,a,o){let r;o&&({stringifyQuery:r}=o.options);let s=t.query||{};try{s=A(s)}catch(e){}const i={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:s,params:t.params||{},fullPath:E(t,r),matched:e?P(e):[]};return a&&(i.redirectedFrom=E(a,r)),Object.freeze(i)}const V=T(null,{path:"/"});function L(e,t){return t===V?e===t:!!t&&(e.path&&t.path?e.path.replace(k,"")===t.path.replace(k,"")&&e.hash===t.hash&&j(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&j(e.query,t.query)&&j(e.params,t.params)))}function I(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}function Y(e){for(var t=1;t{O(e)&&(this.replace?t.replace(o):t.push(o))},h={click:O};Array.isArray(this.event)?this.event.forEach(e=>{h[e]=y}):h[this.event]=y;const b={class:i};if("a"===this.tag)b.on=h,b.attrs={href:s};else{const e=function e(t){return t?t.find(t=>{if("a"===t.tag)return!0;if(t.children){return!!e(t.children)}return!1}):null}(this.$slots.default);if(e){e.isStatic=!1;const t=Y({},e.data);e.data=t,t.on=h;const a=Y({},e.data.attrs);e.data.attrs=a,a.href=s}else b.on=h}return e(this.tag,b,this.$slots.default)}};var D={exports:{}},R=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)};D.exports=G,D.exports.parse=U,D.exports.compile=function(e,t){return M(U(e,t),t)},D.exports.tokensToFunction=M,D.exports.tokensToRegExp=K;var B=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function U(e,t){for(var a,o=[],r=0,s=0,i="",n=t&&t.delimiter||"/";null!=(a=B.exec(e));){var l=a[0],c=a[1],d=a.index;if(i+=e.slice(s,d),s=d+l.length,c)i+=c[1];else{var p=e[s],u=a[2],v=a[3],y=a[4],h=a[5],b=a[6],m=a[7];i&&(o.push(i),i="");var f=null!=u&&null!=p&&p!==u,g="+"===b||"*"===b,_="?"===b||"*"===b,C=a[2]||n,x=y||h;o.push({name:v||r++,prefix:u||"",delimiter:C,optional:_,repeat:g,partial:f,asterisk:!!m,pattern:x?z(x):m?".*":"[^"+F(C)+"]+?"})}}return s=0&&(t=e.slice(o),e=e.slice(0,o));const r=e.indexOf("?");return r>=0&&(a=e.slice(r+1),e=e.slice(0,r)),{path:e,query:a,hash:t}}(r.path||""),i=t&&t.path||"/",n=s.path?J(s.path,i,a||r.append):i,l=function(e,t={},a){const o=a||S;let r;try{r=o(e||"")}catch(e){0,r={}}return Object.keys(t).forEach(e=>{r[e]=t[e]}),r}(s.query,r.query,o&&o.options.parseQuery);let c=r.hash||s.hash;return c&&"#"!==c.charAt(0)&&(c="#"+c),{_normalized:!0,path:n,query:l,hash:c}}function oe(e,t){return q(e,[],t)}function re(e,t,a,o,r,s){const{path:i,name:n}=o;const l=o.pathToRegexpOptions||{},c=function(e,t,a){return a||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:Z(`${t.path}/${e}`)}(i,r,l.strict);"boolean"==typeof o.caseSensitive&&(l.sensitive=o.caseSensitive);const d={path:c,regex:oe(c,l),components:o.components||{default:o.component},instances:{},name:n,parent:r,matchAs:s,redirect:o.redirect,beforeEnter:o.beforeEnter,meta:o.meta||{},props:null==o.props?{}:o.components?o.props:{default:o.props}};if(o.children&&o.children.forEach(o=>{const r=s?Z(`${s}/${o.path}`):void 0;re(e,t,a,o,d,r)}),void 0!==o.alias){(Array.isArray(o.alias)?o.alias:[o.alias]).forEach(s=>{const i={path:s,children:o.children};re(e,t,a,i,r,d.path||"/")})}t[d.path]||(e.push(d.path),t[d.path]=d),n&&(a[n]||(a[n]=d))}function se(e,t,a,o){const r=t||[],s=a||Object.create(null),i=o||Object.create(null);e.forEach(e=>{re(r,s,i,e)});for(let e=0,t=r.length;e!e.optional).map(e=>e.name);if("object"!=typeof l.params&&(l.params={}),s&&"object"==typeof s.params&&Object.keys(s.params).forEach(e=>{!(e in l.params)&&t.indexOf(e)>-1&&(l.params[e]=s.params[e])}),e)return l.path=X(e.path,l.params),n(e,l,i)}else if(l.path){l.params={};for(let e=0;eo[e])}}}function ne(e,t,a){const o=t.match(e);if(!o)return!1;if(!a)return!0;for(let t=1,r=o.length;t{r>=e.length?a():e[r]?t(e[r],()=>{o(r+1)}):o(r+1)};o(0)}const ce="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function de(e){return Array.prototype.concat.apply([],e)}function pe(e,t){return de(e.map(e=>Object.keys(e.components).map(a=>t(e.components[a],e.instances[a],e,a))))}function ue(e){return(t,a,o)=>{let r=!1,i=0,l=null;pe(e,(e,t,a,c)=>{if("function"==typeof e&&void 0===e.cid){r=!0,i+=1;const t=s(t=>{const r=n();var s;((s=t).__esModule||ce&&"Module"===s[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:r.extend(t),a.components[c]=t,i-=1,i<=0&&o()}),d=s(e=>{const t=`Failed to resolve async component ${c}: ${e}`;l||(l=h(e)?e:new Error(t),o(l))});let p;try{p=e(t,d)}catch(e){d(e)}if(p)if("function"==typeof p.then)p.then(t,d);else{const e=p.component;e&&"function"==typeof e.then&&e.then(t,d)}}}),r||o()}}function ve(e,t,a,o){const r=pe(e,(e,o,r,s)=>{const i=function(e,t){if("function"!=typeof e){e=n().extend(e)}return e.options[t]}(e,t);return i?Array.isArray(i)?i.map(e=>a(e,o,r,s)):a(i,o,r,s):null});return de(o?r.reverse():r)}function ye(e,t){return t?function(...a){return e.apply(t,a)}:null}function he(e,t,a,o,r){return function(s,i,n){return e(s,i,e=>{n(e),"function"==typeof e&&o.push(()=>{!function e(t,a,o,r){a[o]&&!a[o]._isBeingDestroyed?t(a[o]):r()&&setTimeout(()=>{e(t,a,o,r)},16)}(e,t.instances,a,r)})})}}class be{constructor(e,t="/"){this.router=e,this.base=function(e){return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}(t),this.current=V,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[];const a=this.router.match("/",this.current);if(!a)throw new Error("Root router path with / is required");this.stack=[a],this.index=0}push(e,t,a){this.transitionTo(e,e=>{this.stack=this.stack.slice(0,this.index+1).concat(e),this.index+=1,l(t)&&t(e)},a)}replace(e,t,a){this.transitionTo(e,e=>{this.stack=this.stack.slice(0,this.index).concat(e),l(t)&&t(e)},a)}go(e){const t=this.index+e;if(t<0||t>=this.stack.length)return;const a=this.stack[t];this.confirmTransition(a,()=>{this.index=t,this.updateRoute(a),this.stack=this.stack.slice(0,t+1)})}getCurrentLocation(){const e=this.stack[this.stack.length-1];return e?e.fullPath:"/"}ensureURL(){}listen(e){this.cb=e}onReady(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))}onError(e){this.errorCbs.push(e)}transitionTo(e,t,a){const o=this.router.match(e,this.current);this.confirmTransition(o,()=>{this.updateRoute(o),l(t)&&t(o),this.ensureURL(),this.ready||(this.ready=!0,this.readyCbs.forEach(e=>{e(o)}))},e=>{a&&a(e),e&&!this.ready&&(this.ready=!0,this.readyErrorCbs.forEach(t=>{t(e)}))})}confirmTransition(e,t,a){const{current:o}=this,r=e=>{h(e)&&this.errorCbs.length&&this.errorCbs.forEach(t=>{t(e)}),l(a)&&a(e)};if(L(e,o)&&e.matched.length===o.matched.length)return this.ensureURL(),r();const{updated:s,deactivated:i,activated:n}=function(e,t){let a;const o=Math.max(e.length,t.length);for(a=0;ae.beforeEnter),ue(n));this.pending=e;const d=(t,a)=>{if(this.pending!==e)return r();try{return t(e,o,e=>{!1===e||h(e)?(this.ensureURL(!0),r(e)):"string"==typeof e||"object"==typeof e&&("string"==typeof e.path||"string"==typeof e.name)?(r(),"object"==typeof e&&e.replace?this.replace(e):this.push(e)):a(e)})}catch(e){return r(e)}};return le(c,d,()=>{const a=[];le(function(e,t,a){return ve(e,"beforeRouteEnter",(e,o,r,s)=>he(e,r,s,t,a))}(n,a,()=>this.current===e).concat(this.router.resolveHooks),d,()=>this.pending!==e?r():(this.pending=null,t(e),this.router.app?this.router.app.$nextTick(()=>{a.forEach(e=>{e()})}):null))})}updateRoute(e){const t=this.current;this.current=e,l(this.cb)&&this.cb(e),this.router.afterHooks.forEach(a=>{l(a)&&a(e,t)})}hardwareBackPress(){if(this.stack.length>1)return this.go(-1);const{matched:e}=this.stack[0];if(e.length){const{components:t,instances:a}=e[0];if(t&&t.default&&l(t.default.beforeAppExit))return t.default.beforeAppExit.call(a.default,this.exitApp)}return this.exitApp()}exitApp(){n().Native.callNative("DeviceEventModule","invokeDefaultBackPressHandler")}}function me(e,t){return e.push(t),()=>{const a=e.indexOf(t);a>-1&&e.splice(a,1)}}class fe{constructor(e={}){if(this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=ie(e.routes||[],this),!o.__GLOBAL__||!o.__GLOBAL__.appRegister)throw new Error("Hippy-Vue-Router can\t work without Native environment");this.history=new be(this,e.base)}match(e,t,a){return this.matcher.match(e,t,a)}get currentRoute(){return this.history&&this.history.current}init(e,t){if(this.apps.push(e),this.app)return;this.app=e;const{history:a}=this;a instanceof be&&a.transitionTo(a.getCurrentLocation()),a.listen(e=>{this.apps.forEach(t=>{t._route=e})}),"android"===t.Native.Platform&&l(a.hardwareBackPress)&&!this.options.disableAutoBack&&(setTimeout(()=>t.Native.callNative("DeviceEventModule","setListenBackPress",!0),300),e.$on("hardwareBackPress",()=>a.hardwareBackPress()))}beforeEach(e){return me(this.beforeHooks,e)}beforeResolve(e){return me(this.resolveHooks,e)}afterEach(e){return me(this.afterHooks,e)}onReady(e,t){this.history.onReady(e,t)}onError(e){this.history.onError(e)}push(e,t,a){this.history.push(e,t,a)}replace(e,t,a){this.history.replace(e,t,a)}go(e){this.history.go(e)}back(){this.go(-1)}forward(){this.go(1)}getMatchedComponents(e){const t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?t.matched.map(e=>Object.keys(e.components).map(t=>e.components[t])):[]}resolve(e,t,a){const o=ae(e,t||this.history.current,a,this),r=this.match(o,t),s=r.redirectedFrom||r.fullPath,{base:i}=this.history;return{location:o,route:r,href:function(e,t){return e?Z(`${e}/${t}`):t}(i,s),normalizedTo:o,resolved:r}}addRoutes(e){this.matcher.addRoutes(e),this.history.current!==V&&this.history.transitionTo(this.history.getCurrentLocation())}}fe.install=function e(t){if(e.installed&&n()===t)return;e.installed=!0,function(e){i=e}(t);const a=e=>void 0!==e,o=(e,t)=>{let o=e.$options._parentVnode;a(o)&&a(o=o.data)&&a(o=o.registerRouteInstance)&&o(e,t)};t.mixin({beforeCreate(){a(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this,t),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,o(this,this)},destroyed(){o(this)}}),Object.defineProperty(t.prototype,"$router",{get(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get(){return this._routerRoot._route}}),t.component("RouterView",m),t.component("RouterLink",H);const r=t.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created},fe.version="2.6.14"}).call(this,a("./node_modules/process/browser.js"),a("./node_modules/webpack/buildin/global.js"))},"../../packages/hippy-vue/dist/index.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("../../packages/hippy-vue/dist/index.js")},"./node_modules/process/browser.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("./node_modules/process/browser.js")},"./node_modules/webpack/buildin/global.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("./node_modules/webpack/buildin/global.js")},"./src/app.vue":function(e,t,a){"use strict";var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"root"}},[a("div",{attrs:{id:"header"}},[a("div",{staticClass:"left-title"},[a("img",{directives:[{name:"show",rawName:"v-show",value:!["/","/debug","/remote-debug"].includes(e.$router.history.current.path),expression:"!['/', '/debug', '/remote-debug'].includes($router.history.current.path)"}],attrs:{id:"back-btn",src:e.imgs.backButtonImg},on:{click:e.goToHome}}),e._v(" "),["/","/debug","/remote-debug"].includes(e.$router.history.current.path)?a("label",{staticClass:"title"},[e._v("Hippy Vue")]):e._e()]),e._v(" "),a("label",{staticClass:"title"},[e._v(e._s(e.subtitle))])]),e._v(" "),a("div",{staticClass:"body-container",on:{click:function(e){return e.stopPropagation()}}},[a("keep-alive",[a("router-view",{staticClass:"feature-content"})],1)],1),e._v(" "),a("div",{staticClass:"bottom-tabs"},e._l(e.tabs,(function(t,o){return a("div",{key:"tab-"+o,class:["bottom-tab",o===e.activatedTab?"activated":""],on:{click:function(a){return e.navigateTo(a,t,o)}}},[a("span",{staticClass:"bottom-tab-text"},[e._v("\n "+e._s(t.text)+"\n ")])])})),0)])};o._withStripped=!0;var r={name:"App",data:()=>({imgs:{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"},subtitle:"",activatedTab:0,tabs:[{text:"API",path:"/"},{text:"调试",path:"/remote-debug"}]}),watch:{$route(e){void 0!==e.name?this.subtitle=e.name:this.subtitle=""}},methods:{navigateTo(e,t,a){a!==this.activatedTab&&(e.stopPropagation(),console.log(t),this.activatedTab=a,this.$router.replace({path:t.path}))},goToHome(){this.$router.back()}}},s=(a("./src/app.vue?vue&type=style&index=0&lang=css&"),a("../../packages/hippy-vue-loader/lib/runtime/componentNormalizer.js")),i=Object(s.a)(r,o,[],!1,null,null,null);i.options.__file="src/app.vue";t.a=i.exports},"./src/app.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/app.vue?vue&type=style&index=0&lang=css&")},"./src/assets/defaultSource.jpg":function(e,t,a){e.exports=a.p+"assets/defaultSource.jpg"},"./src/assets/hippyLogoWhite.png":function(e,t,a){e.exports=a.p+"assets/hippyLogoWhite.png"},"./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&")},"./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&")},"./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&")},"./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&")},"./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&")},"./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&")},"./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&")},"./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&")},"./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&")},"./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&")},"./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&")},"./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&")},"./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&")},"./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&")},"./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&")},"./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&")},"./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&")},"./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&")},"./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&")},"./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&")},"./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&")},"./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&")},"./src/components/native-demos/demo-swiper.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-swiper.vue?vue&type=style&index=0&lang=css&")},"./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&")},"./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&")},"./src/main-native.js":function(e,t,a){"use strict";a.r(t),function(e){var t=a("../../packages/hippy-vue/dist/index.js"),o=a("../../packages/hippy-vue-router/dist/index.js"),r=a("../../packages/hippy-vue-native-components/dist/index.js"),s=a("./src/app.vue"),i=a("./src/routes.js"),n=a("./src/util.js");t.default.config.productionTip=!1,t.default.config.trimWhitespace=!0,t.default.use(r.default),t.default.use(o.a);const l=new o.a(i.a);e.Hippy.on("uncaughtException",e=>{console.error("uncaughtException error",e.stack,e.message)}),e.Hippy.on("unhandledRejection",e=>{console.error("unhandledRejection reason",e)});const c=new t.default({appName:"Demo",rootView:"#root",render:e=>e(s.a),iPhone:{statusBar:{backgroundColor:4283416717}},router:l});c.$start((e,a)=>{console.log("instance",e,"initialProps",a),t.default.Native.BackAndroid.addListener(()=>(console.log("backAndroid"),!0))}),Object(n.b)(c)}.call(this,a("./node_modules/webpack/buildin/global.js"))},"./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&")},"./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&")},"./src/routes.js":function(e,t,a){"use strict";var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{staticClass:"v4fb46863 feature-list"},[a("li",[a("div",{staticClass:"v4fb46863",attrs:{id:"version-info"}},[a("p",{staticClass:"v4fb46863 feature-title"},[e._v("\n Vue: "+e._s(e.Vue.version)+"\n ")]),e._v(" "),e.Vue.Native?a("p",{staticClass:"v4fb46863 feature-title"},[e._v("\n Hippy-Vue: "+e._s("unspecified"!==e.Vue.Native.version?e.Vue.Native.version:"master")+"\n ")]):e._e()])]),e._v(" "),e._m(0),e._v(" "),e._l(e.featureList,(function(t){return a("li",{key:t.id,staticClass:"v4fb46863 feature-item"},[a("router-link",{staticClass:"v4fb46863 button",attrs:{to:{path:"/demo/"+t.id}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)})),e._v(" "),e.nativeFeatureList.length?a("li",[a("p",{staticClass:"v4fb46863 feature-title",attrs:{paintType:"fcp"}},[e._v("\n 终端组件 Demos\n ")])]):e._e(),e._v(" "),e._l(e.nativeFeatureList,(function(t){return a("li",{key:t.id,staticClass:"v4fb46863 feature-item"},[a("router-link",{staticClass:"v4fb46863 button",attrs:{to:{path:"/demo/"+t.id}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)}))],2)};o._withStripped=!0;var r=a("../../packages/hippy-vue/dist/index.js"),s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v26278b5d button-demo"},[a("label",{staticClass:"v26278b5d button-label"},[e._v("按钮和状态绑定")]),e._v(" "),a("button",{staticClass:"v26278b5d button-demo-1",class:{"is-active":e.isClicked,"is-pressing":e.isPressing},on:{touchstart:e.onTouchBtnStart,touchmove:e.onTouchBtnMove,touchend:e.onTouchBtnEnd,click:e.clickView}},[e.isClicked?a("span",{staticClass:"v26278b5d button-text"},[e._v("视图已经被点击了,再点一下恢复")]):a("span",{staticClass:"v26278b5d button-text"},[e._v("视图尚未点击")])]),e._v(" "),a("img",{directives:[{name:"show",rawName:"v-show",value:e.isClicked,expression:"isClicked"}],staticClass:"v26278b5d button-demo-1-image",attrs:{alt:"demo1-image",src:"https://user-images.githubusercontent.com/12878546/148737148-d0b227cb-69c8-4b21-bf92-739fb0c3f3aa.png"}})])};s._withStripped=!0;var i={data:()=>({isClicked:!1,isPressing:!1}),methods:{clickView(){this.isClicked=!this.isClicked},onTouchBtnStart(e){console.log("onBtnTouchDown",e),e.stopPropagation()},onTouchBtnMove(e){console.log("onBtnTouchMove",e),e.stopPropagation(),console.log(e)},onTouchBtnEnd(e){console.log("onBtnTouchEnd",e),e.stopPropagation(),console.log(e)}}},n=(a("./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&"),a("../../packages/hippy-vue-loader/lib/runtime/componentNormalizer.js")),l=Object(n.a)(i,s,[],!1,null,"26278b5d",null);l.options.__file="src/components/demos/demo-button.vue";var c=l.exports,d=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614",attrs:{id:"div-demo"},on:{scroll:e.onOuterScroll}},[a("div",["ios"!==e.Vue.Native.Platform?a("div",[a("label",[e._v("水波纹效果: ")]),e._v(" "),a("div",{staticClass:"ve3dda614",style:Object.assign({},e.imgRectangle,e.imgRectangleExtra)},[a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.imgRectangle,"native-background-android":{borderless:!0,color:"#666666"}}},[a("p",{staticClass:"ve3dda614",style:{color:"white",maxWidth:200}},[e._v("\n 外层背景图,内层无边框水波纹,受外层影响始终有边框\n ")])])],1),e._v(" "),a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.circleRipple,"native-background-android":{borderless:!0,color:"#666666",rippleRadius:100}}},[a("p",{staticClass:"ve3dda614",style:{color:"black",textAlign:"center"}},[e._v("\n 无边框圆形水波纹\n ")])]),e._v(" "),a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.squareRipple,"native-background-android":{borderless:!1,color:"#666666"}}},[a("p",{staticClass:"ve3dda614",style:{color:"#fff"}},[e._v("\n 带背景色水波纹\n ")])])],1):e._e(),e._v(" "),a("label",[e._v("背景图效果:")]),e._v(" "),a("div",{staticClass:"ve3dda614",style:e.demo1Style,attrs:{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"}},[a("p",{staticClass:"ve3dda614 div-demo-1-text"},[e._v("\n Hippy 背景图展示\n ")])]),e._v(" "),a("label",[e._v("渐变色效果:")]),e._v(" "),e._m(0),e._v(" "),a("label",[e._v("Transform")]),e._v(" "),e._m(1),e._v(" "),a("label",[e._v("水平滚动:")]),e._v(" "),a("div",{ref:"demo-2",staticClass:"ve3dda614 div-demo-2",attrs:{bounces:!0,scrollEnabled:!0,pagingEnabled:!1,showsHorizontalScrollIndicator:!1},on:{scroll:e.onScroll,momentumScrollBegin:e.onMomentumScrollBegin,momentumScrollEnd:e.onMomentumScrollEnd,scrollBeginDrag:e.onScrollBeginDrag,scrollEndDrag:e.onScrollEndDrag}},[e._m(2)]),e._v(" "),a("label",[e._v("垂直滚动:")]),e._v(" "),a("div",{staticClass:"ve3dda614 div-demo-3",attrs:{showsVerticalScrollIndicator:!1}},[e._m(3)])])])};d._withStripped=!0;var p=a("./src/assets/defaultSource.jpg"),u=a.n(p),v=function(){var e=this.$createElement;return(this._self._c||e)("div",{ref:"ripple1",style:this.wrapperStyle,attrs:{nativeBackgroundAndroid:Object.assign({},this.nativeBackgroundAndroid)},on:{layout:this.onLayout,touchstart:this.onTouchStart,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[this._t("default")],2)};v._withStripped=!0;const y={display:"flex",height:"40px",width:"200px",backgroundImage:""+u.a,backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"};var h={name:"DemoRippleDiv",props:{nativeBackgroundAndroid:{default:{borderless:!1}},wrapperStyle:{type:Object,default:()=>y},positionY:{default:0}},data(){return{scrollOffsetY:this.positionY,viewX:0,viewY:0,demo1Style:y}},watch:{positionY(e){this.scrollOffsetY=e}},mounted(){this.rippleRef=this.$refs.ripple1},methods:{async onLayout(){const e=await r.default.Native.measureInAppWindow(this.rippleRef);this.viewX=e.left,this.viewY=e.top},onTouchStart(e){const t=e.touches[0];this.rippleRef.setHotspot(t.clientX-this.viewX,t.clientY+this.scrollOffsetY-this.viewY),this.rippleRef.setPressed(!0)},onTouchEnd(){this.rippleRef.setPressed(!1)}}},b=Object(n.a)(h,v,[],!1,null,null,null);b.options.__file="src/components/demos/demo-ripple-div.vue";var m={components:{"demo-ripple-div":b.exports},data:()=>({Vue:r.default,offsetY:0,demo1Style:{display:"flex",height:"40px",width:"200px",backgroundImage:""+u.a,backgroundSize:"cover",backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"},imgRectangle:{width:"260px",height:"56px",alignItems:"center",justifyContent:"center"},imgRectangleExtra:{marginTop:"20px",backgroundImage:""+u.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"}}),mounted(){this.demon2=this.$refs["demo-2"],setTimeout(()=>{this.demon2.scrollTo(50,0,1e3)},1e3)},methods:{onOuterScroll(e){this.offsetY=e.offsetY},onScroll(e){console.log("onScroll",e)},onMomentumScrollBegin(e){console.log("onMomentumScrollBegin",e)},onMomentumScrollEnd(e){console.log("onMomentumScrollEnd",e)},onScrollBeginDrag(e){console.log("onScrollBeginDrag",e)},onScrollEndDrag(e){console.log("onScrollEndDrag",e)}}},f=(a("./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&"),Object(n.a)(m,d,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ve3dda614 div-demo-1-1"},[t("p",{staticClass:"ve3dda614 div-demo-1-text"},[this._v("\n Hippy 背景渐变色展示\n ")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ve3dda614 div-demo-transform"},[t("p",{staticClass:"ve3dda614 div-demo-transform-text"},[this._v("\n Transform\n ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614 display-flex flex-row"},[a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n A\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n B\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n C\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n D\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n E\n ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614 display-flex flex-column"},[a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n A\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n B\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n C\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n D\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n E\n ")])])}],!1,null,"e3dda614",null));f.options.__file="src/components/demos/demo-div.vue";var g=f.exports,_=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vc6df51b0",attrs:{id:"demo-img"}},[a("div",{staticClass:"vc6df51b0",attrs:{id:"demo-img-container"}},[a("label",[e._v("Contain:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image contain",attrs:{src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",placeholder:e.defaultImage},on:{touchstart:e.onTouchStart,touchmove:e.onTouchMove,touchend:e.onTouchEnd}}),e._v(" "),a("label",[e._v("Cover:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}}),e._v(" "),a("label",[e._v("Center:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image center",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}}),e._v(" "),a("label",[e._v("CapInsets:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",capInsets:{top:50,left:50,bottom:50,right:50}}}),e._v(" "),a("label",[e._v("TintColor:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image center tint-color",attrs:{src:e.hippyLogoImage}}),e._v(" "),a("label",[e._v("Gif:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif"},on:{load:e.onLoad}}),e._v(" "),a("div",{staticClass:"vc6df51b0 img-result"},[a("p",[e._v("Load Result: "+e._s(e.gifLoadResult))])])])])};_._withStripped=!0;var C=a("./src/assets/hippyLogoWhite.png"),x=a.n(C),S={data:()=>({defaultImage:u.a,hippyLogoImage:x.a,gifLoadResult:{}}),methods:{onTouchStart(e){console.log("onTouchDown",e),e.stopPropagation()},onTouchMove(e){console.log("onTouchMove",e),e.stopPropagation(),console.log(e)},onTouchEnd(e){console.log("onTouchEnd",e),e.stopPropagation(),console.log(e)},onLoad(e){console.log("onLoad",e);const{width:t,height:a,url:o}=e;this.gifLoadResult={width:t,height:a,url:o}}}},w=(a("./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&"),Object(n.a)(S,_,[],!1,null,"c6df51b0",null));w.options.__file="src/components/demos/demo-img.vue";var k=w.exports,A=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"inputDemo",staticClass:"v76bc5c6f demo-input",on:{click:e.blurAllInput}},[a("label",[e._v("文本:")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.text,expression:"text"}],ref:"input",staticClass:"v76bc5c6f input",attrs:{placeholder:"Text","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",editable:!0},domProps:{value:e.text},on:{click:e.stopPropagation,keyboardWillShow:e.onKeyboardWillShow,keyboardWillHide:e.onKeyboardWillHide,blur:e.onBlur,focus:e.onFocus,input:function(t){t.target.composing||(e.text=t.target.value)}}}),e._v(" "),a("div",[a("span",[e._v("文本内容为:")]),e._v(" "),a("span",[e._v(e._s(e.text))])]),e._v(" "),a("div",[a("span",[e._v(e._s("事件: "+e.event+" | isFocused: "+e.isFocused))])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.clearTextContent}},[a("span",[e._v("清空文本内容")])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.focus}},[a("span",[e._v("Focus")])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.blur}},[a("span",[e._v("Blur")])]),e._v(" "),a("label",[e._v("数字:")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{type:"number","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Number"},on:{change:e.textChange,click:e.stopPropagation}}),e._v(" "),a("label",[e._v("密码:")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{type:"password","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Password"},on:{change:e.textChange,click:e.stopPropagation}}),e._v(" "),a("label",[e._v("文本(限制5个字符):")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{maxlength:5,"caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"5 个字符"},on:{change:e.textChange,click:e.stopPropagation}})])};A._withStripped=!0;var P={data:()=>({text:"",event:void 0,isFocused:void 0}),mounted(){this.getChildNodes(this.$refs.inputDemo.childNodes).find(e=>"input"===e.tagName).focus()},methods:{textChange(e){console.log(e.value)},blurAllInput(){this.getChildNodes(this.$refs.inputDemo.childNodes).filter(e=>"input"===e.tagName).forEach(e=>e.blur())},stopPropagation(e){e.stopPropagation()},clearTextContent(){this.text=""},onKeyboardWillHide(){console.log("onKeyboardWillHide")},onKeyboardWillShow(e){console.log("onKeyboardWillShow",e)},getChildNodes:e=>r.default.Native?e:Array.from(e),focus(e){e.stopPropagation(),this.$refs.input.focus()},blur(e){e.stopPropagation(),this.$refs.input.blur()},async onFocus(){this.isFocused=await this.$refs.input.isFocused(),this.event="onFocus"},async onBlur(){this.isFocused=await this.$refs.input.isFocused(),this.event="onBlur"}}},E=(a("./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&"),Object(n.a)(P,A,[],!1,null,"76bc5c6f",null));E.options.__file="src/components/demos/demo-input.vue";var j=E.exports,T=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v36005ed6 p-demo",style:{color:e.topColor}},[a("div",[a("label",[e._v("不带样式:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-content",on:{touchstart:e.onTouchTextStart,touchmove:e.onTouchTextMove,touchend:e.onTouchTextEnd}},[e._v("\n 这是最普通的一行可点击文字\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-content-status"},[e._v("\n 当前touch状态: "+e._s(e.labelTouchStatus)+"\n ")]),e._v(" "),a("label",[e._v("颜色:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-1 p-demo-content"},[e._v("\n 这行文字改变了颜色\n ")]),e._v(" "),a("label",[e._v("尺寸:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-2 p-demo-content"},[e._v("\n 这行改变了大小\n ")]),e._v(" "),a("label",[e._v("粗体:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-3 p-demo-content"},[e._v("\n 这行加粗了\n ")]),e._v(" "),a("label",[e._v("下划线:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-4 p-demo-content"},[e._v("\n 这里有条下划线\n ")]),e._v(" "),a("label",[e._v("删除线:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-5 p-demo-content"},[e._v("\n 这里有条删除线\n ")]),e._v(" "),a("label",[e._v("自定义字体:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content"},[e._v("\n 腾讯字体 Hippy\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-weight":"bold"}},[e._v("\n 腾讯字体 Hippy 粗体\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-style":"italic"}},[e._v("\n 腾讯字体 Hippy 斜体\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-weight":"bold","font-style":"italic"}},[e._v("\n 腾讯字体 Hippy 粗斜体\n ")]),e._v(" "),a("label",[e._v("文字阴影:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-7 p-demo-content",style:e.textShadow,on:{click:e.changeTextShadow}},[e._v("\n 这里是文字灰色阴影,点击可改变颜色\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-7 p-demo-content",style:e.textShadow,on:{click:e.changeTextColor}},[e._v("\n 验证属性继承更改效果,点击可改变整体颜色\n ")]),e._v(" "),a("label",[e._v("文本字符间距")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-8 p-demo-content",staticStyle:{"margin-bottom":"5px"}},[e._v("\n Text width letter-spacing -1\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-9 p-demo-content",staticStyle:{"margin-top":"5px"}},[e._v("\n Text width letter-spacing 5\n ")]),e._v(" "),a("label",[e._v("字体 style:")]),e._v(" "),e._m(0),e._v(" "),a("label",[e._v("numberOfLines="+e._s(e.textMode.numberOfLines)+" | ellipsizeMode="+e._s(e.textMode.ellipsizeMode))]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"19px",color:"white"}},[e._v("先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。")]),e._v(" "),a("span",[e._v("然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")])]),e._v(" "),a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[e._v("\n "+e._s("line 1\n\nline 3\n\nline 5")+"\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5,fontSize:14},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[a("img",{staticClass:"v36005ed6",style:{width:24,height:24},attrs:{src:e.img1}}),e._v(" "),a("img",{staticClass:"v36005ed6",style:{width:24,height:24},attrs:{src:e.img2}})]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:e.incrementLine}},[a("span",[e._v("加一行")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:e.decrementLine}},[a("span",[e._v("减一行")])])]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("clip")}}},[a("span",[e._v("clip")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("head")}}},[a("span",[e._v("head")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("middle")}}},[a("span",[e._v("middle")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("tail")}}},[a("span",[e._v("tail")])])])]),e._v(" "),"android"===e.Platform?a("label",[e._v("break-strategy="+e._s(e.breakStrategy))]):e._e(),e._v(" "),"android"===e.Platform?a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"border-width":"1","border-color":"gray"},attrs:{"break-strategy":e.breakStrategy}},[e._v("\n "+e._s(e.longText)+"\n ")]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("simple")}}},[a("span",[e._v("simple")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("high_quality")}}},[a("span",[e._v("high_quality")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("balanced")}}},[a("span",[e._v("balanced")])])])]):e._e(),e._v(" "),a("label",[e._v("vertical-align")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-align":"middle"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-align":"baseline"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-align":"bottom"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-align":"middle"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-align":"baseline"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-align":"bottom"},attrs:{src:e.img3}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"top"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"middle"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"baseline"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"bottom"}},[e._v("字")])]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{lineHeight:"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"0"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-alignment":"1"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-alignment":"2"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-alignment":"3"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24",top:"-10"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12",top:"-5"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24",top:"5"},attrs:{src:e.img3}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")])]):e._e()]),e._v(" "),a("label",[e._v("tint-color & background-color")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"vertical-align":"middle","background-color":"#99f"}},[e._v("text")])]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","tint-color":"orange"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","tint-color":"orange","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","background-color":"#ccc"},attrs:{src:e.img2}})]):e._e()]),e._v(" "),a("label",[e._v("margin")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"baseline","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"bottom","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}})]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"0","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"1","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"2","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"3","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}})]):e._e()])])])};T._withStripped=!0;var V={data:()=>({topColor:"grey",Platform:r.default.Native.Platform,textShadowIndex:0,isClicked:!1,isPressing:!1,labelTouchStatus:"",textShadow:{textShadowOffset:{x:1,y:1},textShadowRadius:3,textShadowColor:"grey"},textMode:{numberOfLines:2,ellipsizeMode:"tail"},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.",breakStrategy:"simple"}),methods:{changeTextShadow(){this.textShadow={textShadowOffsetX:this.textShadowIndex%2==1?10:1,textShadowOffsetY:1,textShadowRadius:3,textShadowColor:this.textShadowIndex%2==1?"red":"grey"},this.textShadowIndex+=1},changeTextColor(){this.topColor=this.textShadowIndex%2==1?"red":"grey",this.textShadowIndex+=1},onTouchTextStart(e){this.labelTouchStatus="touch start",console.log("onTextTouchDown",e),e.stopPropagation()},onTouchTextMove(e){this.labelTouchStatus="touch move",console.log("onTextTouchMove",e),e.stopPropagation(),console.log(e)},onTouchTextEnd(e){this.labelTouchStatus="touch end",console.log("onTextTouchEnd",e),e.stopPropagation(),console.log(e)},incrementLine(){this.textMode.numberOfLines<6&&(this.textMode.numberOfLines+=1)},decrementLine(){this.textMode.numberOfLines>1&&(this.textMode.numberOfLines-=1)},changeMode(e){this.textMode.ellipsizeMode=e},changeBreakStrategy(e){this.breakStrategy=e}}},L=(a("./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&"),Object(n.a)(V,T,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v36005ed6 p-demo-content"},[t("p",{staticClass:"v36005ed6",staticStyle:{"font-style":"normal"}},[this._v("\n font-style: normal\n ")]),this._v(" "),t("p",{staticClass:"v36005ed6",staticStyle:{"font-style":"italic"}},[this._v("\n font-style: italic\n ")]),this._v(" "),t("p",[this._v("font-style: [not set]")])])}],!1,null,"36005ed6",null));L.options.__file="src/components/demos/demo-p.vue";var I=L.exports,Y=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v5819936a",attrs:{id:"shadow-demo"}},["android"===e.Platform?a("div",{staticClass:"v5819936a no-offset-shadow-demo-cube-android"},[e._m(0)]):e._e(),e._v(" "),"ios"===e.Platform?a("div",{staticClass:"v5819936a no-offset-shadow-demo-cube-ios"},[e._m(1)]):e._e(),e._v(" "),"android"===e.Platform?a("div",{staticClass:"v5819936a offset-shadow-demo-cube-android"},[e._m(2)]):e._e(),e._v(" "),"ios"===e.Platform?a("div",{staticClass:"v5819936a offset-shadow-demo-cube-ios"},[e._m(3)]):e._e()])};Y._withStripped=!0;var O={data:()=>({Platform:r.default.Native.Platform}),mounted(){this.Platform=r.default.Native.Platform}},H=(a("./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&"),Object(n.a)(O,Y,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a no-offset-shadow-demo-content-android"},[t("p",[this._v("没有偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a no-offset-shadow-demo-content-ios"},[t("p",[this._v("没有偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a offset-shadow-demo-content-android"},[t("p",[this._v("偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a offset-shadow-demo-content-ios"},[t("p",[this._v("偏移阴影样式")])])}],!1,null,"5819936a",null));H.options.__file="src/components/demos/demo-shadow.vue";var D=H.exports,R=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v6cb502b6",attrs:{id:"demo-textarea"}},[a("label",[e._v("多行文本:")]),e._v(" "),a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],staticClass:"v6cb502b6 textarea",attrs:{rows:10,placeholder:"多行文本编辑器"},domProps:{value:e.content},on:{contentSizeChange:e.contentSizeChange,input:function(t){t.target.composing||(e.content=t.target.value)}}}),e._v(" "),a("div",{staticClass:"v6cb502b6 output-container"},[a("p",{staticClass:"v6cb502b6 output"},[e._v("\n 输入的文本为:"+e._s(e.content)+"\n ")])]),e._v(" "),"android"===e.Platform?a("label",[e._v("break-strategy="+e._s(e.breakStrategy))]):e._e(),e._v(" "),"android"===e.Platform?a("div",[a("textarea",{staticClass:"v6cb502b6 textarea",attrs:{defaultValue:e.longText,"break-strategy":e.breakStrategy}}),e._v(" "),a("div",{staticClass:"v6cb502b6 button-bar"},[a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("simple")}}},[a("span",[e._v("simple")])]),e._v(" "),a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("high_quality")}}},[a("span",[e._v("high_quality")])]),e._v(" "),a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("balanced")}}},[a("span",[e._v("balanced")])])])]):e._e()])};R._withStripped=!0;var B={data:()=>({Platform:r.default.Native.Platform,content:"The quick brown fox jumps over the lazy dog,快灰狐狸跳过了懒 🐕。",longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",breakStrategy:"simple"}),methods:{contentSizeChange(e){console.log(e)},changeBreakStrategy(e){this.breakStrategy=e}}},U=(a("./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&"),Object(n.a)(B,R,[],!1,null,"6cb502b6",null));U.options.__file="src/components/demos/demo-textarea.vue";var N=U.exports,M=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v71b90789",attrs:{id:"demo-list"}},[a("ul",{ref:"list",staticClass:"v71b90789",style:e.horizontal&&{height:50,flex:0},attrs:{id:"list",horizontal:e.horizontal,exposureEventEnabled:!0,delText:e.delText,editable:!0,bounces:!0,rowShouldSticky:!0,overScrollEnabled:!0,scrollEventThrottle:1e3},on:{endReached:e.onEndReached,delete:e.onDelete,scroll:e.onScroll,momentumScrollBegin:e.onMomentumScrollBegin,momentumScrollEnd:e.onMomentumScrollEnd,scrollBeginDrag:e.onScrollBeginDrag,scrollEndDrag:e.onScrollEndDrag}},e._l(e.dataSource,(function(t,o){return a("li",{key:o+"_"+t.style,staticClass:"v71b90789",class:e.horizontal&&"item-horizontal-style",attrs:{type:t.style,sticky:1===o},on:{appear:function(t){return e.onAppear(o)},disappear:function(t){return e.onDisappear(o)},willAppear:function(t){return e.onWillAppear(o)},willDisappear:function(t){return e.onWillDisappear(o)}}},[1===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 1 UI")+"\n ")])])]):2===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 2 UI")+"\n ")])])]):5===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 5 UI")+"\n ")])])]):a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{id:"loading"}},[e._v("\n "+e._s(e.loadingState)+"\n ")])])]),e._v(" "),o!==e.dataSource.length-1?a("div",{staticClass:"v71b90789 separator-line"}):e._e()])})),0),e._v(" "),a("div",{staticClass:"v71b90789",style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#40b883"},on:{click:e.changeDirection}},[a("div",{staticClass:"v71b90789",style:{width:60,height:60,borderRadius:30,backgroundColor:"#40b883",display:"flex",justifyContent:"center",alignItems:"center"}},[a("p",{staticClass:"v71b90789",style:{color:"white"}},[e._v("\n 切换方向\n ")])])])])};M._withStripped=!0;const F=[{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}];var z={data:()=>({Vue:r.default,loadingState:"Loading now...",dataSource:[],delText:"Delete",horizontal:void 0}),mounted(){this.isLoading=!1,this.dataSource=F},methods:{changeDirection(){this.horizontal=void 0===this.horizontal||void 0},onAppear(e){console.log("onAppear",e)},onDisappear(e){console.log("onDisappear",e)},onWillAppear(e){console.log("onWillAppear",e)},onWillDisappear(e){console.log("onWillDisappear",e)},mockFetchData:()=>new Promise(e=>{setTimeout(()=>e(F),600)}),onDelete(e){this.dataSource.splice(e.index,1)},async onEndReached(){const{dataSource:e,isLoading:t}=this;if(t)return;this.isLoading=!0,this.dataSource=e.concat([{style:100}]);const a=await this.mockFetchData();this.dataSource=e.concat(a),this.isLoading=!1},onScroll(e){console.log("onScroll",e.offsetY),e.offsetY<=0?this.topReached||(this.topReached=!0,console.log("onTopReached")):this.topReached=!1},onMomentumScrollBegin(e){console.log("momentumScrollBegin",e)},onMomentumScrollEnd(e){console.log("momentumScrollEnd",e)},onScrollBeginDrag(e){console.log("onScrollBeginDrag",e)},onScrollEndDrag(e){console.log("onScrollEndDrag",e)}}},$=(a("./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&"),Object(n.a)(z,M,[],!1,null,"71b90789",null));$.options.__file="src/components/demos/demo-list.vue";var W=$.exports,K=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{style:e.iframeStyle,attrs:{id:"iframe-demo"}},[a("label",[e._v("地址栏:")]),e._v(" "),a("input",{ref:"input",attrs:{id:"address",name:"url",returnKeyType:"go"},domProps:{value:e.displayUrl},on:{endEditing:e.goToUrl,keyup:e.onKeyUp}}),e._v(" "),a("iframe",{ref:"iframe",attrs:{id:"iframe",src:e.url,method:"get"},on:{load:e.onLoad,loadStart:e.onLoadStart,loadEnd:e.onLoadEnd}})])};K._withStripped=!0;var G={data:()=>({url:"https://hippyjs.org",displayUrl:"https://hippyjs.org",iframeStyle:{"min-height":r.default.Native?100:"100vh"}}),methods:{onLoad(e){let{url:t}=e;void 0===t&&(t=this.$refs.iframe.src),t!==this.url&&(this.displayUrl=t)},onLoadStart(e){const{url:t}=e;console.log("onLoadStart",t)},onLoadEnd(e){const{url:t,success:a,error:o}=e;console.log("onLoadEnd",t,a,o)},onKeyUp(e){13===e.keyCode&&(e.preventDefault(),this.goToUrl({value:this.$refs.input.value}))},goToUrl(e){this.url=e.value}}},q=(a("./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&"),Object(n.a)(G,K,[],!1,null,null,null));q.options.__file="src/components/demos/demo-iframe.vue";var Q=q.exports,X=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v77bce928",attrs:{id:"websocket-demo"}},[a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Url:\n ")]),e._v(" "),a("input",{ref:"inputUrl",staticClass:"v77bce928",attrs:{value:"wss://echo.websocket.org"}}),e._v(" "),a("div",{staticClass:"v77bce928 row"},[a("button",{staticClass:"v77bce928",on:{click:e.connect}},[a("span",[e._v("Connect")])]),e._v(" "),a("button",{staticClass:"v77bce928",on:{click:e.disconnect}},[a("span",[e._v("Disconnect")])])])]),e._v(" "),a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Message:\n ")]),e._v(" "),a("input",{ref:"inputMessage",staticClass:"v77bce928",attrs:{value:"Rock it with Hippy WebSocket"}}),e._v(" "),a("button",{staticClass:"v77bce928",on:{click:e.sendMessage}},[a("span",[e._v("Send")])])]),e._v(" "),a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Log:\n ")]),e._v(" "),a("div",{staticClass:"v77bce928 output fullscreen"},[a("div",e._l(e.output,(function(t,o){return a("p",{key:o,staticClass:"v77bce928"},[e._v("\n "+e._s(t)+"\n ")])})),0)])])])};X._withStripped=!0;var J={data:()=>({output:[]}),methods:{connect(){this.$refs.inputUrl.getValue().then(e=>{this.disconnect();const t=new WebSocket(e);t.onopen=()=>this.appendOutput("[Opened] "+t.url),t.onclose=()=>this.appendOutput("[Closed] "+t.url),t.onerror=e=>this.appendOutput("[Error] "+e.reason),t.onmessage=e=>this.appendOutput("[Received] "+e.data),this.ws=t})},disconnect(){this.ws&&1===this.ws.readyState&&this.ws.close()},appendOutput(e){this.output.unshift(e)},sendMessage(){this.$refs.inputMessage.getValue().then(e=>{this.appendOutput("[Sent] "+e),this.ws.send(e)})}}},Z=(a("./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&"),Object(n.a)(J,X,[],!1,null,"77bce928",null));Z.options.__file="src/components/demos/demo-websocket.vue";var ee=Z.exports,te=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v2ea31349",attrs:{id:"demo-dynamicimport"},on:{click:this.onAsyncComponentLoad}},[this._m(0),this._v(" "),this.loaded?t("div",{staticClass:"v2ea31349 async-com-wrapper"},[t("AsyncComponentFromLocal",{staticClass:"v2ea31349 async-component-outer-local"}),this._v(" "),t("AsyncComponentFromHttp")],1):this._e()])};te._withStripped=!0;var ae={components:{AsyncComponentFromLocal:()=>a.e(1).then(a.bind(null,"./src/components/demos/dynamicImport/async-component-local.vue")).then(e=>e).catch(e=>console.error("import async local component error",e)),AsyncComponentFromHttp:()=>a.e(0).then(a.bind(null,"./src/components/demos/dynamicImport/async-component-http.vue")).then(e=>e).catch(e=>console.error("import async remote component error",e))},data:()=>({loaded:!1}),methods:{onAsyncComponentLoad(){this.loaded=!0}}},oe=(a("./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&"),Object(n.a)(ae,te,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v2ea31349 import-btn"},[t("p",[this._v("点我异步加载")])])}],!1,null,"2ea31349",null));oe.options.__file="src/components/demos/demo-dynamicimport.vue";var re=oe.exports,se=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v14216e7a demo-turbo"},[a("span",{staticClass:"v14216e7a result"},[e._v(" "+e._s(e.result)+" ")]),e._v(" "),a("ul",{staticClass:"v14216e7a",staticStyle:{flex:"1"}},e._l(e.funList,(function(t){return a("li",{key:t,staticClass:"v14216e7a cell"},[a("div",{staticClass:"v14216e7a contentView"},[a("div",{staticClass:"v14216e7a func-info"},[a("span",{staticClass:"v14216e7a",attrs:{numberOfLines:0}},[e._v("函数名:"+e._s(t))])]),e._v(" "),a("span",{staticClass:"v14216e7a action-button",on:{click:function(a){return a.stopPropagation(),function(){return e.onTurboFunc(t)}.apply(null,arguments)}}},[e._v("运行")])])])})),0)])};se._withStripped=!0;const ie=()=>getTurboModule("demoTurbo").getTurboConfig();var ne={data:()=>({config:null,result:"",funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"]}),methods:{async onTurboFunc(e){if("nativeWithPromise"===e)this.result=await(async e=>turboPromise(getTurboModule("demoTurbo").nativeWithPromise)(e))("aaa");else if("getTurboConfig"===e)this.config=ie(),this.result="获取到config对象";else if("printTurboConfig"===e)this.result=(t=this.config||ie(),getTurboModule("demoTurbo").printTurboConfig(t));else if("getInfo"===e)this.result=(this.config||ie()).getInfo();else if("setInfo"===e)(this.config||ie()).setInfo("Hello World"),this.result="设置config信息成功";else{const t={getString:()=>{return e="123",getTurboModule("demoTurbo").getString(e);var e},getNum:()=>{return e=1024,getTurboModule("demoTurbo").getNum(e);var e},getBoolean:()=>{return e=!0,getTurboModule("demoTurbo").getBoolean(e);var e},getMap:()=>{return e=new Map([["a","1"],["b",2]]),getTurboModule("demoTurbo").getMap(e);var e},getObject:()=>{return e={c:"3",d:"4"},getTurboModule("demoTurbo").getObject(e);var e},getArray:()=>{return e=["a","b","c"],getTurboModule("demoTurbo").getArray(e);var e}};this.result=t[e]()}var t}}},le=(a("./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&"),Object(n.a)(ne,se,[],!1,null,"14216e7a",null));le.options.__file="src/components/demos/demo-turbo.vue";var ce={demoDiv:{name:"div 组件",component:g},demoShadow:{name:"box-shadow",component:D},demoP:{name:"p 组件",component:I},demoButton:{name:"button 组件",component:c},demoImg:{name:"img 组件",component:k},demoInput:{name:"input 组件",component:j},demoTextarea:{name:"textarea 组件",component:N},demoUl:{name:"ul/li 组件",component:W},demoIFrame:{name:"iframe 组件",component:Q},demoWebSocket:{name:"WebSocket",component:ee},demoDynamicImport:{name:"DynamicImport",component:re},demoTurbo:{name:"Turbo",component:le.exports}},de=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v4ffd9eb0 set-native-props-demo"},[a("label",[e._v("setNativeProps实现拖动效果")]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 native-demo-1-drag",style:{width:e.screenWidth},on:{touchstart:e.onTouchDown1,touchmove:e.onTouchMove1}},[a("div",{ref:"demo-1-point",staticClass:"v4ffd9eb0 native-demo-1-point"})]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 splitter"}),e._v(" "),a("label",[e._v("普通渲染实现拖动效果")]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 native-demo-2-drag",style:{width:e.screenWidth},on:{touchstart:e.onTouchDown2,touchmove:e.onTouchMove2}},[a("div",{ref:"demo-2-point",staticClass:"v4ffd9eb0 native-demo-2-point",style:{left:e.demon2Left+"px"}})])])};de._withStripped=!0;var pe={data:()=>({demon2Left:0,screenWidth:0}),mounted(){this.screenWidth=r.default.Native.Dimensions.screen.width,this.demon1Point=this.$refs["demo-1-point"]},methods:{onTouchDown1(e){e.stopPropagation();const t=e.touches[0].clientX-40;console.log("touchdown x",t,this.screenWidth),this.demon1Point.setNativeProps({style:{left:t}})},onTouchMove1(e){e.stopPropagation();const t=e.touches[0].clientX-40;console.log("touchmove x",t,this.screenWidth),this.demon1Point.setNativeProps({style:{left:t}})},onTouchDown2(e){e.stopPropagation(),this.demon2Left=e.touches[0].clientX-40,console.log("touchdown x",this.demon2Left,this.screenWidth)},onTouchMove2(e){e.stopPropagation(),this.demon2Left=e.touches[0].clientX-40,console.log("touchmove x",this.demon2Left,this.screenWidth)}}},ue=(a("./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&"),Object(n.a)(pe,de,[],!1,null,"4ffd9eb0",null));ue.options.__file="src/components/demos/demo-set-native-props.vue";var ve=ue.exports,ye=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"rect",staticClass:"v864846ba",attrs:{id:"demo-vue-native"}},[a("div",[e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Platform")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Platform))])]):e._e(),e._v(" "),e.Vue.Native.Device?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Device")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Device))])]):e._e(),e._v(" "),"ios"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.isIPhoneX")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.isIPhoneX))])]):e._e(),e._v(" "),"ios"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.OSVersion")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.OSVersion||"null"))])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Localization")]),e._v(" "),a("p",[e._v(e._s("国际化相关信息"))]),e._v(" "),a("p",[e._v(e._s("国家 "+e.Vue.Native.Localization.country))]),e._v(" "),a("p",[e._v(e._s("语言 "+e.Vue.Native.Localization.language))]),e._v(" "),a("p",[e._v(e._s("方向 "+(1===e.Vue.Native.Localization.direction?"RTL":"LTR")))])]),e._v(" "),"android"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.APILevel")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.APILevel||"null"))])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block",on:{layout:e.refreshScreenStatus}},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.screenIsVertical")]),e._v(" "),a("p",[e._v(e._s(e.screenIsVertical))])]),e._v(" "),e.Vue.Native.Dimensions.window.width?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.window.width")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.window.width))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.window.height?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.window.height")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.window.height))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.width?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.width")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.width))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.height?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.height")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.height))])]):e._e(),e._v(" "),e.Vue.Native.OnePixel?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.OnePixel")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.OnePixel))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.navigatorBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.navigatorBarHeight")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.navigatorBarHeight))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.statusBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.statusBarHeight")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.statusBarHeight))])]):e._e(),e._v(" "),"android"===e.Vue.Native.Platform&&void 0!==e.Vue.Native.Dimensions.screen.navigatorBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.navigatorBarHeight(Android only)")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.navigatorBarHeight))])]):e._e(),e._v(" "),e.app?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("App.$options.$superProps")]),e._v(" "),a("p",[e._v(e._s(JSON.stringify(e.app.$options.$superProps)))])]):e._e(),e._v(" "),e.app?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("App event")]),e._v(" "),a("div",[a("button",{staticClass:"v864846ba event-btn",on:{click:e.triggerAppEvent}},[a("span",{staticClass:"v864846ba event-btn-text"},[e._v("Trigger app event")])]),e._v(" "),a("div",{staticClass:"v864846ba event-btn-result"},[a("p",[e._v("Event triggered times: "+e._s(e.eventTriggeredTimes))])])])]):e._e(),e._v(" "),e.Vue.Native.getBoundingClientRect?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.getBoundingClientRect")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:function(){return e.getBoundingClientRect(!1)}}},[a("span",[e._v("relative to App")])]),e._v(" "),a("span",{staticClass:"v864846ba",staticStyle:{"max-width":"200px"}},[e._v(e._s(e.rect1))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:function(){return e.getBoundingClientRect(!0)}}},[a("span",[e._v("relative to container")])]),e._v(" "),a("span",{staticClass:"v864846ba",staticStyle:{"max-width":"200px"}},[e._v(e._s(e.rect2))])])]):e._e(),e._v(" "),e.Vue.Native.AsyncStorage?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("AsyncStorage 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setItem}},[a("span",[e._v("setItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageSetStatus))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.removeItem}},[a("span",[e._v("removeItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageSetStatus))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getItem}},[a("span",[e._v("getItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageValue))])])]):e._e(),e._v(" "),e.Vue.Native.ImageLoader?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("ImageLoader 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getSize}},[a("span",[e._v("getSize")])]),e._v(" "),a("span",[e._v(e._s(e.imageSize))])])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Fetch 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("span",[e._v(e._s(e.fetchText))])])]),e._v(" "),e.Vue.Native.NetInfo?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("NetInfo 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("span",[e._v(e._s(e.netInfoText))])])]):e._e(),e._v(" "),e.Vue.Native.Cookie?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Cookie 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setCookie}},[a("span",[e._v("setCookie")])]),e._v(" "),a("span",[e._v(e._s(e.cookieString))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getCookie}},[a("span",[e._v("getCookie")])]),e._v(" "),a("span",[e._v(e._s(e.cookiesValue))])])]):e._e()])])};ye._withStripped=!0;var he=a("./src/util.js");var be={data(){const{screenIsVertical:e}=r.default.Native;return{app:this.app,eventTriggeredTimes:0,rect1:null,rect2:null,Vue:r.default,screenIsVertical:e,storageValue:"",storageSetStatus:"ready to set",imageSize:"",netInfoText:"正在获取...",fetchText:"请求网址中...",cookieString:"ready to set",cookiesValue:"",hasLayout:!1}},async created(){this.storageValue="",this.imageSize="",this.netInfoText="",this.netInfoText=await r.default.Native.NetInfo.fetch(),this.netInfoListener=r.default.Native.NetInfo.addEventListener("change",e=>{this.netInfoText="收到通知: "+e.network_info}),fetch("https://hippyjs.org",{mode:"no-cors"}).then(e=>{this.fetchText="成功状态: "+e.status}).catch(e=>{this.fetchText="收到错误: "+e})},async mounted(){this.app=Object(he.a)(),this.app.$on("testEvent",()=>{this.eventTriggeredTimes+=1})},beforeDestroy(){this.netInfoListener&&r.default.Native.NetInfo.remove("change",this.netInfoListener),this.app.$off("testEvent"),delete this.app},methods:{async getBoundingClientRect(e=!1){try{const t=await r.default.Native.getBoundingClientRect(this.$refs.rect,{relToContainer:e});e?this.rect2=""+JSON.stringify(t):this.rect1=""+JSON.stringify(t)}catch(e){console.error("getBoundingClientRect error",e)}},triggerAppEvent(){this.app.$emit("testEvent")},refreshScreenStatus(){this.screenIsVertical=r.default.Native.screenIsVertical},setItem(){r.default.Native.AsyncStorage.setItem("itemKey","hippy"),this.storageSetStatus='set "hippy" value succeed'},removeItem(){r.default.Native.AsyncStorage.removeItem("itemKey"),this.storageSetStatus='remove "hippy" value succeed'},async getItem(){const e=await r.default.Native.AsyncStorage.getItem("itemKey");this.storageValue=e||"undefined"},async getSize(){const e=await r.default.Native.ImageLoader.getSize("https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png");console.log("ImageLoader getSize",e),this.imageSize=`${e.width}x${e.height}`},setCookie(){r.default.Native.Cookie.set("https://hippyjs.org","name=hippy;network=mobile"),this.cookieString="'name=hippy;network=mobile' is set"},getCookie(){r.default.Native.Cookie.getAll("https://hippyjs.org").then(e=>{this.cookiesValue=e})}}},me=(a("./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&"),Object(n.a)(be,ye,[],!1,null,"864846ba",null));me.options.__file="src/components/native-demos/demo-vue-native.vue";var fe=me.exports,ge=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{staticClass:"v1b9933af",attrs:{id:"animation-demo"}},[a("li",[a("label",[e._v("控制动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleLoopPlaying}},[e.loopPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])]),e._v(" "),a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleDirection}},["horizon"===e.direction?a("span",[e._v("切换为纵向")]):a("span",[e._v("切换为横向")])])]),e._v(" "),a("div",{staticClass:"v1b9933af",staticStyle:{height:"150px"}},[a("loop",{staticClass:"v1b9933af",attrs:{playing:e.loopPlaying,direction:e.direction,"on-ref":e.onRef},on:{actionsDidUpdate:e.actionsDidUpdate}},[a("p",[e._v("I'm a looping animation")])])],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("点赞笑脸动画:")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.voteUp}},[a("span",[e._v("点赞 👍")])]),e._v(" "),a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.voteDown}},[a("span",[e._v("踩 👎")])])]),e._v(" "),a("div",{staticClass:"v1b9933af vote-face-container center"},[a(e.voteComponent,{tag:"component",staticClass:"v1b9933af vote-icon",attrs:{"is-changed":e.isChanged}})],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("渐变色动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleColorPlaying}},[e.colorPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])])]),e._v(" "),a("div",[a("color-component",{staticClass:"v1b9933af",attrs:{playing:e.colorPlaying}},[a("p",[e._v("背景色渐变")])])],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("贝塞尔曲线动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleCubicPlaying}},[e.cubicPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])])]),e._v(" "),a("div",[a("cubic-bezier",{staticClass:"v1b9933af",attrs:{playing:e.cubicPlaying}},[a("p",[e._v("cubic-bezier(.45,2.84,.38,.5)")])])],1)])])};ge._withStripped=!0;var _e=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("animation",{ref:"animationLoop",staticClass:"v63fc9d7f loop-green",style:{backgroundColor:"grey"},attrs:{playing:e.playing,actions:e.loopActions},on:{actionsDidUpdate:function(t){return e.$emit("actionsDidUpdate")}}},[a("div",{staticClass:"v63fc9d7f loop-white"},[e._t("default")],2)])],1)};_e._withStripped=!0;const Ce={transform:{translateX:{startValue:0,toValue:200,duration:2e3,repeatCount:-1}}},xe={transform:{translateY:{startValue:0,toValue:50,duration:2e3,repeatCount:-1}}};var Se={props:{playing:Boolean,direction:{validator:e=>["horizon","vertical"].indexOf(e)>-1},onRef:Function},data(){let e;switch(this.$props.direction){case"horizon":e=Ce;break;case"vertical":e=xe;break;default:throw new Error("direction must be defined in props")}return{loopActions:e}},watch:{direction(e){switch(e){case"horizon":this.loopActions=Ce;break;case"vertical":this.loopActions=xe}}},mounted(){this.$props.onRef&&this.$props.onRef(this.$refs.animationLoop)}},we=(a("./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&"),Object(n.a)(Se,_e,[],!1,null,"63fc9d7f",null));we.options.__file="src/components/native-demos/animations/loop.vue";var ke=we.exports,Ae=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{ref:"animationView",staticClass:"v44bf239d loop-green",attrs:{playing:this.playing,actions:this.loopActions}},[t("div",{staticClass:"v44bf239d loop-white"},[this._t("default")],2)])],1)};Ae._withStripped=!0;const Pe={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 Ee={props:{playing:Boolean,onRef:Function},data:()=>({loopActions:Pe}),mounted(){this.$props.onRef&&this.$props.onRef(this.$refs.animationView)}},je=(a("./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&"),Object(n.a)(Ee,Ae,[],!1,null,"44bf239d",null));je.options.__file="src/components/native-demos/animations/cubic-bezier.vue";var Te=je.exports,Ve=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{staticClass:"vca89125a vote-face",attrs:{actions:this.animations.face,playing:""}}),this._v(" "),t("animation",{staticClass:"vca89125a vote-up-eye",attrs:{tag:"img",playing:"",props:{src:this.imgs.upVoteEye},actions:this.animations.upVoteEye}}),this._v(" "),t("animation",{staticClass:"vca89125a vote-up-mouth",attrs:{tag:"img",playing:"",props:{src:this.imgs.upVoteMouth},actions:this.animations.upVoteMouth}})],1)};Ve._withStripped=!0;var Le={data:()=>({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}]}}}})},Ie=(a("./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&"),Object(n.a)(Le,Ve,[],!1,null,"ca89125a",null));Ie.options.__file="src/components/native-demos/animations/vote-up.vue";var Ye=Ie.exports,Oe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("animation",{ref:"animationRef",staticClass:"v3adfe95a vote-face",attrs:{actions:e.animations.face,playing:""},on:{start:e.animationStart,end:e.animationEnd,repeat:e.animationRepeat,cancel:e.animationCancel}}),e._v(" "),a("animation",{staticClass:"v3adfe95a vote-down-face",attrs:{tag:"img",playing:"",props:{src:e.imgs.downVoteFace},actions:e.animations.downVoteFace}})],1)};Oe._withStripped=!0;const He={transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},De={transform:{translateX:[{startValue:10,toValue:1,duration:250,timingFunction:"linear"},{startValue:1,toValue:10,duration:250,delay:750,timingFunction:"linear",repeatCount:-1}]}};var Re={props:["isChanged"],data:()=>({imgs:{downVoteFace:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAAAXVBMVEUAAACmaCCoaSKlZyCmaCCoaiG0byOlZyCmaCGnaSKmaCCmZyClZyCmaCCmaSCybyymZyClaCGlaCGnaCCnaSGnaiOlZyKocCXMmTOmaCKnaCKmaSClZyGoZyClZyDPYmTmAAAAHnRSTlMA6S/QtjYO+FdJ4tyZbWYH7cewgTw5JRQFkHFfXk8vbZ09AAAAiUlEQVQY07WQRxLDMAhFPyq21dxLKvc/ZoSiySTZ+y3g8YcFA5wFcOkHYEi5QDkknparH5EZKS6GExQLs0RzUQUY6VYiK2ayNIapQ6EjNk2xd616Bi5qIh2fn8BqroS1XtPmgYKXxo+y07LuDrH95pm3LBM5FMpHWg2osOOLjRR6hR/WOw780bwASN0IT3NosMcAAAAASUVORK5CYII="},animations:{face:He,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"}]}}}}),watch:{isChanged(e,t){!t&&e?(console.log("changed to face2"),this.animations.face=De):t&&!e&&(console.log("changed to face1"),this.animations.face=He),setTimeout(()=>{this.animationRef.start()},10)}},mounted(){this.animationRef=this.$refs.animationRef},methods:{animationStart(){console.log("animation-start callback")},animationEnd(){console.log("animation-end callback")},animationRepeat(){console.log("animation-repeat callback")},animationCancel(){console.log("animation-cancel callback")}}},Be=(a("./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&"),Object(n.a)(Re,Oe,[],!1,null,"3adfe95a",null));Be.options.__file="src/components/native-demos/animations/vote-down.vue";var Ue=Be.exports,Ne=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{ref:"animationView",staticClass:"vc3eb3b96 color-green",attrs:{playing:this.playing,actions:this.colorActions}},[t("div",{staticClass:"vc3eb3b96 color-white"},[this._t("default")],2)])],1)};Ne._withStripped=!0;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 Fe={props:{playing:Boolean,onRef:Function},data:()=>({colorActions:Me})},ze=(a("./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&"),Object(n.a)(Fe,Ne,[],!1,null,"c3eb3b96",null));ze.options.__file="src/components/native-demos/animations/color-change.vue";var $e=ze.exports,We={components:{Loop:ke,colorComponent:$e,CubicBezier:Te},data:()=>({loopPlaying:!0,colorPlaying:!0,cubicPlaying:!0,direction:"horizon",voteComponent:Ye,colorComponent:$e,isChanged:!0}),methods:{onRef(e){this.animationRef=e},voteUp(){this.voteComponent=Ye},voteDown(){this.voteComponent=Ue,this.isChanged=!this.isChanged},toggleLoopPlaying(){this.loopPlaying=!this.loopPlaying},toggleColorPlaying(){this.colorPlaying=!this.colorPlaying},toggleCubicPlaying(){this.cubicPlaying=!this.cubicPlaying},toggleDirection(){this.direction="horizon"===this.direction?"vertical":"horizon"},actionsDidUpdate(){console.log("actions updated & startAnimation"),this.animationRef.start()}}},Ke=(a("./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&"),Object(n.a)(We,ge,[],!1,null,"1b9933af",null));Ke.options.__file="src/components/native-demos/demo-animation.vue";var Ge=Ke.exports,qe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vbdcf35a6",attrs:{id:"dialog-demo"}},[a("label",[e._v("显示或者隐藏对话框:")]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("slide")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--slide")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("fade")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--fade")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("slide_fade")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--slide_fade")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.autoHideStatusBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("hideStatusBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("隐藏状态栏")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.immersionStatusBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("immerseStatusBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("沉浸式状态栏")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.autoHideNavigationBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("hideNavigationBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("隐藏导航栏")])]),e._v(" "),e.dialogIsVisible?a("dialog",{staticClass:"vbdcf35a6",attrs:{animationType:e.dialogAnimationType,transparent:!0,supportedOrientations:e.supportedOrientations,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar},on:{show:e.onShow,requestClose:e.onClose,orientationChange:e.onOrientationChange}},[a("div",{staticClass:"vbdcf35a6 dialog-demo-wrapper"},[a("div",{staticClass:"vbdcf35a6 fullscreen center row",on:{click:e.clickView}},[a("div",{staticClass:"vbdcf35a6 dialog-demo-close-btn center column",on:{click:e.stopPropagation}},[a("p",{staticClass:"vbdcf35a6 dialog-demo-close-btn-text"},[e._v("\n 点击空白区域关闭\n ")]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-2",on:{click:e.clickOpenSecond}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("点击打开二级全屏弹窗")])])]),e._v(" "),e.dialog2IsVisible?a("dialog",{staticClass:"vbdcf35a6",attrs:{animationType:e.dialogAnimationType,transparent:!0,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar},on:{requestClose:e.onClose,orientationChange:e.onOrientationChange}},[a("div",{staticClass:"vbdcf35a6 dialog-2-demo-wrapper center column row",on:{click:e.clickOpenSecond}},[a("p",{staticClass:"vbdcf35a6 dialog-demo-close-btn-text",staticStyle:{color:"white"}},[e._v("\n Hello 我是二级全屏弹窗,点击任意位置关闭。\n ")])])]):e._e()])])]):e._e()])};qe._withStripped=!0;var Qe={beforeRouteLeave(e,t,a){this.dialogIsVisible||a()},data:()=>({supportedOrientations:["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"],dialogIsVisible:!1,dialog2IsVisible:!1,dialogAnimationType:"",immersionStatusBar:!1,autoHideStatusBar:!1,autoHideNavigationBar:!1}),methods:{clickView(e=""){this.dialogIsVisible=!this.dialogIsVisible,this.dialogIsVisible&&(this.dialogAnimationType=e)},clickOpenSecond(e){e.stopPropagation(),this.dialog2IsVisible=!this.dialog2IsVisible},clickDialogConfig(e){switch(e){case"hideStatusBar":this.autoHideStatusBar=!this.autoHideStatusBar;break;case"immerseStatusBar":this.immersionStatusBar=!this.immersionStatusBar;break;case"hideNavigationBar":this.autoHideNavigationBar=!this.autoHideNavigationBar}},onShow(){console.log("Dialog is opening")},onOrientationChange(e){console.log("orientation changed",e.nativeParams)},onClose(e){e.stopPropagation(),this.dialog2IsVisible?this.dialog2IsVisible=!1:this.dialogIsVisible=!1,console.log("Dialog is closing")},stopPropagation(e){e.stopPropagation()}}},Xe=(a("./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&"),Object(n.a)(Qe,qe,[],!1,null,"bdcf35a6",null));Xe.options.__file="src/components/native-demos/demo-dialog.vue";var Je=Xe.exports,Ze=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"demo-swiper"}},[a("div",{staticClass:"toolbar"},[a("button",{staticClass:"toolbar-btn",on:{click:e.scrollToPrevPage}},[a("span",[e._v("翻到上一页")])]),e._v(" "),a("button",{staticClass:"toolbar-btn",on:{click:e.scrollToNextPage}},[a("span",[e._v("翻到下一页")])]),e._v(" "),a("p",{staticClass:"toolbar-text"},[e._v("\n 当前第 "+e._s(e.currentSlideNum+1)+" 页\n ")])]),e._v(" "),a("swiper",{ref:"swiper",attrs:{id:"swiper","need-animation":"",current:e.currentSlide},on:{dragging:e.onDragging,dropped:e.onDropped,stateChanged:e.onStateChanged}},e._l(e.dataSource,(function(t){return a("swiper-slide",{key:t,style:{backgroundColor:4278222848+100*t}},[a("p",[e._v("I'm Slide "+e._s(t+1))])])})),1),e._v(" "),a("div",{attrs:{id:"swiper-dots"}},e._l(e.dataSource,(function(t){return a("div",{key:t,staticClass:"dot",class:{hightlight:e.currentSlideNum===t}})})),0)],1)};Ze._withStripped=!0;var et={data:()=>({dataSource:new Array(7).fill(0).map((e,t)=>t),currentSlide:2,currentSlideNum:2,state:"idle"}),mounted(){this.$maxSlideIndex=this.$refs.swiper.$el.childNodes.length-1},methods:{scrollToNextPage(){this.currentSlide 如果不需要显示加载情况,可以直接使用 ul 的 onEndReached 实现一直加载\n *\n * 事件:\n * idle: 滑动距离在 pull-footer 区域内触发一次,参数 contentOffset,滑动距离\n * pulling: 滑动距离超出 pull-footer 后触发一次,参数 contentOffset,滑动距离\n * released: 滑动超出距离,松手后触发一次\n */\n "),a("pull-footer",{ref:"pullFooter",staticClass:"v44ac5390 pull-footer",on:{idle:e.onFooterIdle,pulling:e.onFooterPulling,released:e.onEndReached}},[a("p",{staticClass:"v44ac5390 pull-footer-text"},[e._v("\n "+e._s(e.footerRefreshText)+"\n ")])])],2)])};ot._withStripped=!0;const rt="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",st={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[rt,rt,rt],subInfo:["三图评论","11评"]}},it={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},nt={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}};var lt=[nt,st,it,st,it,st,it,nt,st],ct=(r.default.component("StyleOne",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n

\n {{ itemBean.title }}\n

\n
\n \n
\n
\n

\n {{ itemBean.subInfo.join(\'\') }}\n

\n
\n
\n '}),r.default.component("StyleTwo",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n
\n

\n {{ itemBean.title }}\n

\n
\n

\n {{ itemBean.subInfo.join(\'\') }}\n

\n
\n
\n
\n \n
\n
\n '}),r.default.component("StyleFive",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n

\n {{ itemBean.title }}\n

\n
\n \n
\n
\n

\n {{ itemBean.subInfo.join(\' \') }}\n

\n
\n
\n '}),{data:()=>({headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",dataSource:[],scrollPos:{top:0,left:0},Vue:r.default}),mounted(){this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.dataSource=[...lt],r.default.Native?(this.$windowHeight=r.default.Native.Dimensions.window.height,console.log("Vue.Native.Dimensions.window",r.default.Native.Dimensions)):this.$windowHeight=window.innerHeight,this.$refs.pullHeader.collapsePullHeader({time:2e3})},methods:{mockFetchData:()=>new Promise(e=>{setTimeout(()=>e(lt),800)}),onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?this.headerRefreshText="松手,即可触发刷新":this.headerRefreshText="继续下拉,触发刷新")},onFooterPulling(e){console.log("onFooterPulling",e)},onHeaderIdle(){},onFooterIdle(){},onScroll(e){e.stopPropagation(),this.scrollPos={top:e.offsetY,left:e.offsetX}},async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.headerRefreshText="刷新数据中,请稍等";const e=await this.mockFetchData();this.dataSource=e.reverse(),this.fetchingDataFlag=!1,this.headerRefreshText="2秒后收起",this.$refs.pullHeader.collapsePullHeader({time:2e3})},async onEndReached(){const{dataSource:e}=this;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.footerRefreshText="加载更多...";const t=await this.mockFetchData();0===t.length&&(this.footerRefreshText="没有更多数据"),this.dataSource=[...e,...t],this.loadMoreDataFlag=!1,this.$refs.pullFooter.collapsePullFooter()},scrollToNextPage(){if(!r.default.Native)return void alert("This method is only supported in Native environment.");const{list:e}=this.$refs,{scrollPos:t}=this,a=t.top+this.$windowHeight-200;e.scrollTo({left:t.left,top:a})},scrollToBottom(){if(!r.default.Native)return void alert("This method is only supported in Native environment.");const{list:e}=this.$refs;e.scrollToIndex(0,e.childNodes.length-1)}}}),dt=(a("./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&"),Object(n.a)(ct,ot,[],!1,null,"44ac5390",null));dt.options.__file="src/components/native-demos/demo-pull-header-footer.vue";var pt=dt.exports,ut=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v782cda3d",attrs:{id:"demo-waterfall"}},[a("waterfall",{ref:"gridView",staticClass:"v782cda3d",style:{flex:1},attrs:{"content-inset":e.contentInset,"column-spacing":e.columnSpacing,"contain-banner-view":!e.isAndroid,"contain-pull-footer":!0,"inter-item-spacing":e.interItemSpacing,"number-of-columns":e.numberOfColumns,"preload-item-number":4},on:{endReached:e.onEndReached,scroll:e.onScroll}},[a("pull-header",{ref:"pullHeader",staticClass:"v782cda3d ul-refresh",on:{idle:e.onHeaderIdle,pulling:e.onHeaderPulling,released:e.onHeaderReleased}},[a("p",{staticClass:"v782cda3d ul-refresh-text"},[e._v("\n "+e._s(e.headerRefreshText)+"\n ")])]),e._v(" "),e.isAndroid||e.isiOS?a("waterfall-item",{staticClass:"v782cda3d banner-view",attrs:{fullSpan:!0,",":"",isHeader:!0,",":""}},[a("span",[e._v("Banner View")])]):a("div",{staticClass:"v782cda3d banner-view"},[a("span",[e._v("BannerView")])]),e._v(" "),e._l(e.dataSource,(function(t,o){return a("waterfall-item",{key:o,staticClass:"v782cda3d",style:{width:e.itemWidth},attrs:{type:t.style},on:{click:function(t){return t.stopPropagation(),function(){return e.onItemClick(o)}.apply(null,arguments)}}},[1===t.style?a("style-one",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e(),e._v(" "),2===t.style?a("style-two",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e(),e._v(" "),5===t.style?a("style-five",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e()],1)})),e._v(" "),a("waterfall-item",{staticClass:"v782cda3d banner-view",attrs:{fullSpan:!0,",":"",isFooter:!0,",":""}},[a("span",[e._v("Footer View")])]),e._v(" "),a("pull-footer",{ref:"pullFooter",staticClass:"v782cda3d pull-footer",on:{idle:e.onFooterIdle,pulling:e.onFooterPulling,released:e.onEndReached}},[a("p",{staticClass:"v782cda3d pull-footer-text"},[e._v("\n "+e._s(e.footerRefreshText)+"\n ")])])],2)],1)};ut._withStripped=!0;var vt={data:()=>({dataSource:[...lt,...lt,...lt,...lt],isRefreshing:!1,Vue:r.default,STYLE_LOADING:100,headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",isLoading:!1,isAndroid:"android"===r.default.Native.Platform,isiOS:"android"===r.default.Native.Platform}),mounted(){this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.dataSource=[...lt],r.default.Native?(this.$windowHeight=r.default.Native.Dimensions.window.height,console.log("Vue.Native.Dimensions.window",r.default.Native.Dimensions)):this.$windowHeight=window.innerHeight,this.$refs.pullHeader.collapsePullHeader({time:2e3})},computed:{refreshText(){return this.isRefreshing?"正在刷新":"下拉刷新"},itemWidth(){return(r.default.Native.Dimensions.screen.width-this.contentInset.left-this.contentInset.right-(this.numberOfColumns-1)*this.columnSpacing)/this.numberOfColumns},listMargin:()=>5,columnSpacing:()=>6,interItemSpacing:()=>6,numberOfColumns:()=>2,contentInset:()=>({top:0,left:5,bottom:0,right:5})},methods:{mockFetchData(){return new Promise(e=>{setTimeout(()=>(this.fetchTimes+=1,this.fetchTimes>=50?e([]):e([...lt,...lt])),600)})},onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?this.headerRefreshText="松手,即可触发刷新":this.headerRefreshText="继续下拉,触发刷新")},onFooterPulling(e){console.log("onFooterPulling",e)},onHeaderIdle(){},onFooterIdle(){},async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.headerRefreshText="刷新数据中,请稍等";await this.mockFetchData();this.fetchingDataFlag=!1,this.headerRefreshText="2秒后收起",this.$refs.pullHeader.collapsePullHeader({time:2e3})},async onRefresh(){this.isRefreshing=!0;const e=await this.mockFetchData();this.isRefreshing=!1,this.dataSource=e.reverse(),this.$refs.header.refreshCompleted()},onScroll(e){console.log("waterfall onScroll",e)},async onEndReached(){const{dataSource:e}=this;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.footerRefreshText="加载更多...";const t=await this.mockFetchData();0===t.length&&(this.footerRefreshText="没有更多数据"),this.dataSource=[...e,...t],this.loadMoreDataFlag=!1,this.$refs.pullFooter.collapsePullFooter()},onItemClick(e){this.$refs.gridView.scrollToIndex({index:e,animation:!0})}}},yt=(a("./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&"),Object(n.a)(vt,ut,[],!1,null,"782cda3d",null));yt.options.__file="src/components/native-demos/demo-waterfall.vue";var ht=yt.exports,bt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v3bbacb8e",attrs:{id:"demo-wrap"},on:{layout:e.onLayout}},[a("div",{staticClass:"v3bbacb8e",attrs:{id:"demo-content"}},[a("div",{staticClass:"v3bbacb8e",attrs:{id:"banner"}}),e._v(" "),a("div",{staticClass:"v3bbacb8e",attrs:{id:"tabs"}},e._l(2,(function(t){return a("p",{key:"tab"+t,staticClass:"v3bbacb8e",class:e.currentSlide===t-1?"selected":"",on:{click:function(a){return e.onTabClick(t)}}},[e._v("\n tab "+e._s(t)+" "+e._s(1===t?"(parent first)":"(self first)")+"\n ")])})),0),e._v(" "),a("swiper",{ref:"swiper",staticClass:"v3bbacb8e",style:{height:e.layoutHeight-80},attrs:{id:"swiper","need-animation":"",current:e.currentSlide},on:{dropped:e.onDropped}},[a("swiper-slide",{key:"slide1",staticClass:"v3bbacb8e"},[a("ul",{staticClass:"v3bbacb8e",attrs:{nestedScrollTopPriority:"parent"}},e._l(30,(function(t){return a("li",{key:"item"+t,staticClass:"v3bbacb8e",class:t%2?"item-even":"item-odd"},[a("p",[e._v("Item "+e._s(t))])])})),0)]),e._v(" "),a("swiper-slide",{key:"slide2",staticClass:"v3bbacb8e"},[a("ul",{staticClass:"v3bbacb8e",attrs:{nestedScrollTopPriority:"self"}},e._l(30,(function(t){return a("li",{key:"item"+t,staticClass:"v3bbacb8e",class:t%2?"item-even":"item-odd"},[a("p",[e._v("Item "+e._s(t))])])})),0)])],1)],1)])};bt._withStripped=!0;var mt={data:()=>({layoutHeight:0,currentSlide:0}),methods:{onLayout(e){this.layoutHeight=e.height},onTabClick(e){console.log("onclick",e),this.currentSlide=e-1},onDropped(e){this.currentSlide=e.currentSlide}}},ft=(a("./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&"),Object(n.a)(mt,bt,[],!1,null,"3bbacb8e",null));ft.options.__file="src/components/native-demos/demo-nested-scroll.vue";var gt=ft.exports;const _t={};r.default.Native&&Object.assign(_t,{demoVueNative:{name:"Vue.Native 能力",component:fe},demoAnimation:{name:"animation 组件",component:Ge},demoModal:{name:"dialog 组件",component:Je},demoSwiper:{name:"swiper 组件",component:at},demoPullHeaderFooter:{name:"pull-header/footer 组件",component:pt},demoWaterfall:{name:"waterfall 组件",component:ht},demoNestedScroll:{name:"nested scroll 示例",component:gt},demoSetNativeProps:{name:"setNativeProps",component:ve}});var Ct=_t,xt={name:"App",data:()=>({featureList:Object.keys(ce).map(e=>({id:e,name:ce[e].name})),nativeFeatureList:Object.keys(Ct).map(e=>({id:e,name:Ct[e].name})),Vue:r.default}),beforeAppExit(){}},St=(a("./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&"),Object(n.a)(xt,o,[function(){var e=this.$createElement,t=this._self._c||e;return t("li",[t("p",{staticClass:"v4fb46863 feature-title"},[this._v("\n 浏览器组件 Demos\n ")])])}],!1,null,"4fb46863",null));St.options.__file="src/pages/menu.vue";var wt=St.exports,kt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"inputDemo",staticClass:"v66065e90 demo-remote-input",on:{click:e.blurInput}},[a("div",{staticClass:"v66065e90 tips-wrap"},e._l(e.tips,(function(t,o){return a("p",{key:o,staticClass:"v66065e90 tips-item",style:e.styles.tipText},[e._v("\n "+e._s(o+1)+". "+e._s(t)+"\n ")])})),0),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.bundleUrl,expression:"bundleUrl"}],ref:"input",staticClass:"v66065e90 remote-input",attrs:{"caret-color":"yellow",placeholder:"please input bundleUrl",multiple:!0,numberOfLines:"4"},domProps:{value:e.bundleUrl},on:{click:e.stopPropagation,input:function(t){t.target.composing||(e.bundleUrl=t.target.value)}}}),e._v(" "),a("div",{staticClass:"v66065e90 buttonContainer",style:e.styles.buttonContainer},[a("button",{staticClass:"v66065e90 input-button",style:e.styles.button,on:{click:e.openBundle}},[a("span",{staticClass:"v66065e90",style:e.styles.buttonText},[e._v("开始")])])])])};kt._withStripped=!0;var At={data:()=>({bundleUrl:"http://127.0.0.1:38989/index.bundle?debugUrl=ws%3A%2F%2F127.0.0.1%3A38989%2Fdebugger-proxy",tips:["安装远程调试依赖: npm i -D @hippy/debug-server-next@latest","修改 webpack 配置,添加远程调试地址","运行 npm run hippy:dev 开始编译,编译结束后打印出 bundleUrl 及调试首页地址","粘贴 bundleUrl 并点击开始按钮","访问调试首页开始远程调试,远程调试支持热更新(HMR)"],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"}}}),methods:{blurInput(e){e.stopPropagation(),this.$refs.input.blur()},openBundle(){this.bundleUrl&&r.default.Native.callNative("TestModule","remoteDebug",this.$root.$options.rootViewId,this.bundleUrl)},stopPropagation(e){e.stopPropagation()},clearTextContent(){this.bundleUrl=""},getChildNodes:e=>r.default.Native?e:Array.from(e)}},Pt=(a("./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&"),Object(n.a)(At,kt,[],!1,null,"66065e90",null));Pt.options.__file="src/pages/remote-debug.vue";var Et=Pt.exports;t.a={disableAutoBack:!1,routes:[{path:"/",component:wt},{path:"/remote-debug",component:Et,name:"调试"},...Object.keys(ce).map(e=>({path:"/demo/"+e,name:ce[e].name,component:ce[e].component})),...Object.keys(Ct).map(e=>({path:"/demo/"+e,name:Ct[e].name,component:Ct[e].component}))]}},"./src/util.js":function(e,t,a){"use strict";let o;function r(e){o=e}function s(){return o}a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return s}))},0:function(e,t,a){e.exports=a("./src/main-native.js")},"dll-reference hippyVueBase":function(e,t){e.exports=hippyVueBase}}); \ No newline at end of file diff --git a/framework/examples/android-demo/res/vue2/vendor.android.js b/framework/examples/android-demo/res/vue2/vendor.android.js index 8d1bf466091..4ebb85124a2 100644 --- a/framework/examples/android-demo/res/vue2/vendor.android.js +++ b/framework/examples/android-demo/res/vue2/vendor.android.js @@ -1,8 +1,8 @@ -var hippyVueBase=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},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-native-components/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"AnimationComponent",(function(){return u})),n.d(t,"DialogComponent",(function(){return d})),n.d(t,"ListRefreshComponent",(function(){return h})),n.d(t,"PullsComponents",(function(){return y})),n.d(t,"SwiperComponent",(function(){return m})),n.d(t,"WaterfallComponent",(function(){return g})),n.d(t,"default",(function(){return v}));const o=["mode","valueType","startValue","toValue"],r=["transform"],i=["transform"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(e){for(var t=1;t=0||(r[n]=e[n]);return r} +var hippyVueBase=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},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-native-components/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"AnimationComponent",(function(){return u})),n.d(t,"DialogComponent",(function(){return d})),n.d(t,"ListRefreshComponent",(function(){return h})),n.d(t,"PullsComponents",(function(){return y})),n.d(t,"SwiperComponent",(function(){return m})),n.d(t,"WaterfallComponent",(function(){return g})),n.d(t,"default",(function(){return v}));const o=["mode","valueType","startValue","toValue"],r=["transform"],i=["transform"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function u(t){const n={valueType:void 0,delay:0,startValue:0,toValue:0,duration:0,direction:"center",timingFunction:"linear",repeatCount:0,inputRange:[],outputRange:[]};function s(e,n){return"color"===e&&["number","string"].indexOf(typeof n)>=0?t.Native.parseColor(n):n}function c(t){const{mode:r="timing",valueType:i,startValue:c,toValue:d}=t,f=l(t,o),p=a(a({},n),f);void 0!==i&&(p.valueType=t.valueType),p.startValue=s(p.valueType,c),p.toValue=s(p.valueType,d),p.repeatCount=u(p.repeatCount),p.mode=r;const h=new e.Hippy.Animation(p),m=h.getId();return{animation:h,animationId:m}}function u(e){return"loop"===e?-1:e}function d(t,n={}){const o={};return Object.keys(t).forEach(r=>{if(Array.isArray(t[r])){const i=t[r],{repeatCount:s}=i[i.length-1],a=i.map(e=>{const{animationId:t,animation:o}=c(Object.assign({},e,{repeatCount:0}));return Object.assign(n,{[t]:o}),{animationId:t,follow:!0}}),{animationId:l,animation:d}=function(t,n=0){const o=new e.Hippy.AnimationSet({children:t,repeatCount:n}),r=o.getId();return{animation:o,animationId:r}}(a,u(s));o[r]={animationId:l},Object.assign(n,{[l]:d})}else{const e=t[r],{animationId:i,animation:s}=c(e);Object.assign(n,{[i]:s}),o[r]={animationId:i}}}),o}function f(e){const{transform:t}=e,n=l(e,r);let o=Object.keys(n).map(t=>e[t].animationId);if(Array.isArray(t)&&t.length>0){const e=[];t.forEach(t=>Object.keys(t).forEach(n=>{if(t[n]){const{animationId:o}=t[n];"number"==typeof o&&o%1==0&&e.push(o)}})),o=[...o,...e]}return o}t.component("Animation",{inheritAttrs:!1,props:{tag:{type:String,default:"div"},playing:{type:Boolean,default:!1},actions:{type:Object,required:!0},props:Object},data:()=>({style:{},animationIds:[],animationIdsMap:{},animationEventMap:{}}),watch:{playing(e,t){!t&&e?this.start():t&&!e&&this.pause()},actions(){this.destroy(),this.create(),setTimeout(()=>{"function"==typeof this.$listeners.actionsDidUpdate&&this.$listeners.actionsDidUpdate()})}},created(){this.animationEventMap={start:"animationstart",end:"animationend",repeat:"animationrepeat",cancel:"animationcancel"}},beforeMount(){this.create()},mounted(){const{playing:e}=this.$props;e&&setTimeout(()=>{this.start()},0)},beforeDestroy(){this.destroy()},methods:{create(){const e=this.$props,{actions:{transform:t}}=e,n=l(e.actions,i);this.animationIdsMap={};const o=d(n,this.animationIdsMap);if(t){const e=d(t,this.animationIdsMap);o.transform=Object.keys(e).map(t=>({[t]:e[t]}))}this.$alreadyStarted=!1,this.style=o},removeAnimationEvent(){this.animationIds.forEach(e=>{const t=this.animationIdsMap[e];t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$listeners[e])return;const n=this.animationEventMap[e];n&&t.removeEventListener(n)})})},addAnimationEvent(){this.animationIds.forEach(e=>{const t=this.animationIdsMap[e];t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$listeners[e])return;const n=this.animationEventMap[e];n&&t.addEventListener(n,()=>{this.$emit(e)})})})},reset(){this.$alreadyStarted=!1},start(){this.$alreadyStarted?this.resume():(this.animationIds=f(this.style),this.$alreadyStarted=!0,this.removeAnimationEvent(),this.addAnimationEvent(),this.animationIds.forEach(e=>{const t=this.animationIdsMap[e];null==t||t.start()}))},resume(){f(this.style).forEach(e=>{const t=this.animationIdsMap[e];null==t||t.resume()})},pause(){if(!this.$alreadyStarted)return;f(this.style).forEach(e=>{const t=this.animationIdsMap[e];null==t||t.pause()})},destroy(){this.removeAnimationEvent(),this.$alreadyStarted=!1;f(this.style).forEach(e=>{const t=this.animationIdsMap[e];null==t||t.destroy()})}},template:'\n \n \n \n '})}function d(e){e.registerElement("hi-dialog",{component:{name:"Modal",defaultNativeStyle:{position:"absolute"}}}),e.component("Dialog",{inheritAttrs:!1,props:{collapsable:{type:Boolean,default:!1},transparent:{type:Boolean,default:!0},immersionStatusBar:{type:Boolean,default:!0},autoHideStatusBar:{type:Boolean,default:!1},autoHideNavigationBar:{type:Boolean,default:!1}},render(e){const t=(n=this.$slots.default)?Array.isArray(n)?n[0]:n||void 0:null;var n;t&&(t.data.attrs?Object.assign(t.data.attrs,{__modalFirstChild__:!0}):t.data.attrs={__modalFirstChild__:!0});const{collapsable:o,transparent:r,immersionStatusBar:i,autoHideStatusBar:s,autoHideNavigationBar:c}=this;return e("hi-dialog",{on:a({},this.$listeners),attrs:{collapsable:o,transparent:r,immersionStatusBar:i,autoHideStatusBar:s,autoHideNavigationBar:c}},this.$slots.default)}})}function f(e){return"string"!=typeof e?"":`${e.charAt(0).toUpperCase()}${e.slice(1)}`}function p(e){const t={};return e.forEach(e=>{if(Array.isArray(e)){const[n,o]=e;Object.prototype.hasOwnProperty.call(this.$listeners,n)&&(this["on"+f(o)]?t[e]=this["on"+f(o)]:t[e]=e=>this.$emit(n,e))}else Object.prototype.hasOwnProperty.call(this.$listeners,e)&&(this["on"+f(e)]?t[e]=this["on"+f(e)]:t[e]=t=>this.$emit(e,t))}),t}function h(e){e.registerElement("hi-ul-refresh-wrapper",{component:{name:"RefreshWrapper"}}),e.registerElement("hi-refresh-wrapper-item",{component:{name:"RefreshWrapperItemView"}}),e.component("UlRefreshWrapper",{inheritAttrs:!1,props:{bounceTime:{type:Number,defaultValue:100}},methods:{startRefresh(){e.Native.callUIFunction(this.$refs.refreshWrapper,"startRefresh",null)},refreshCompleted(){e.Native.callUIFunction(this.$refs.refreshWrapper,"refreshComplected",null)}},render(e){return e("hi-ul-refresh-wrapper",{on:p.call(this,["refresh"]),ref:"refreshWrapper"},this.$slots.default)}}),e.component("UlRefresh",{inheritAttrs:!1,template:"\n \n
\n \n
\n
\n "})}function m(e){e.registerElement("hi-swiper",{component:{name:"ViewPager",processEventData(e,t,n){switch(t){case"onPageSelected":e.currentSlide=n.position;break;case"onPageScroll":e.nextSlide=n.position,e.offset=n.offset;break;case"onPageScrollStateChanged":e.state=n.pageScrollState}return e}}}),e.registerElement("swiper-slide",{component:{name:"ViewPagerItem",defaultNativeStyle:{position:"absolute",top:0,right:0,bottom:0,left:0}}}),e.component("Swiper",{inheritAttrs:!1,props:{current:{type:Number,defaultValue:0},needAnimation:{type:Boolean,defaultValue:!0}},watch:{current(e){this.$props.needAnimation?this.setSlide(e):this.setSlideWithoutAnimation(e)}},beforeMount(){this.$initialSlide=this.$props.current},methods:{setSlide(t){e.Native.callUIFunction(this.$refs.swiper,"setPage",[t])},setSlideWithoutAnimation(t){e.Native.callUIFunction(this.$refs.swiper,"setPageWithoutAnimation",[t])}},render(e){return e("hi-swiper",{on:p.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]),ref:"swiper",attrs:{initialPage:this.$initialSlide}},this.$slots.default)}})}function y(e){const{callUIFunction:t}=e.Native;[["Header","header"],["Footer","footer"]].forEach(([n,o])=>{e.registerElement("hi-pull-"+o,{component:{name:`Pull${n}View`,processEventData(e,t,o){switch(t){case`on${n}Released`:case`on${n}Pulling`:Object.assign(e,o)}return e}}}),e.component("pull-"+o,{methods:{["expandPull"+n](){t(this.$refs.instance,"expandPull"+n)},["collapsePull"+n](e){"Header"===n&&void 0!==e?t(this.$refs.instance,`collapsePull${n}WithOptions`,[e]):t(this.$refs.instance,"collapsePull"+n)},onLayout(e){this.$contentHeight=e.height},[`on${n}Released`](e){this.$emit("released",e)},[`on${n}Pulling`](e){e.contentOffset>this.$contentHeight?"pulling"!==this.$lastEvent&&(this.$lastEvent="pulling",this.$emit("pulling",e)):"idle"!==this.$lastEvent&&(this.$lastEvent="idle",this.$emit("idle",e))}},render(e){const{released:t,pulling:r,idle:i}=this.$listeners,s={layout:this.onLayout};return"function"==typeof t&&(s[o+"Released"]=this[`on${n}Released`]),"function"!=typeof r&&"function"!=typeof i||(s[o+"Pulling"]=this[`on${n}Pulling`]),e("hi-pull-"+o,{on:s,ref:"instance"},this.$slots.default)}})})}function g(e){e.registerElement("hi-waterfall",{component:{name:"WaterfallView",processEventData(e,t,n){switch(t){case"onExposureReport":e.exposureInfo=n.exposureInfo;break;case"onScroll":{const{startEdgePos:t,endEdgePos:o,firstVisibleRowIndex:r,lastVisibleRowIndex:i,visibleRowFrames:s}=n;Object.assign(e,{startEdgePos:t,endEdgePos:o,firstVisibleRowIndex:r,lastVisibleRowIndex:i,visibleRowFrames:s});break}}return e}}}),e.registerElement("hi-waterfall-item",{component:{name:"WaterfallItem"}}),e.component("Waterfall",{inheritAttrs:!1,props:{numberOfColumns:{type:Number,default:2},contentInset:{type:Object,default:()=>({top:0,left:0,bottom:0,right:0})},columnSpacing:{type:Number,default:0},interItemSpacing:{type:Number,default:0},preloadItemNumber:{type:Number,default:0},containBannerView:{type:Boolean,default:!1},containPullHeader:{type:Boolean,default:!1},containPullFooter:{type:Boolean,default:!1}},methods:{call(t,n){e.Native.callUIFunction(this.$refs.waterfall,t,n)},startRefresh(){this.call("startRefresh")},startRefreshWithType(e){this.call("startRefreshWithType",[e])},callExposureReport(){this.call("callExposureReport",[])},scrollToIndex({index:e=0,animated:t=!0}){"number"==typeof e&&"boolean"==typeof t&&this.call("scrollToIndex",[e,e,t])},scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&this.call("scrollToContentOffset",[e,t,n])},startLoadMore(){this.call("startLoadMore")}},render(e){return e("hi-waterfall",{on:p.call(this,["headerReleased","headerPulling","endReached","exposureReport","initialListReady","scroll"]),ref:"waterfall",attrs:{numberOfColumns:this.numberOfColumns,contentInset:this.contentInset,columnSpacing:this.columnSpacing,interItemSpacing:this.interItemSpacing,preloadItemNumber:this.preloadItemNumber,containBannerView:this.containBannerView,containPullHeader:this.containPullHeader,containPullFooter:this.containPullFooter}},this.$slots.default)}}),e.component("WaterfallItem",{inheritAttrs:!1,props:{type:{type:[String,Number],default:""}},render(e){return e("hi-waterfall-item",{on:a({},this.$listeners),attrs:{type:this.type}},this.$slots.default)}})}const v={install(e){u(e),d(e),h(e),m(e),y(e),g(e)}}}.call(this,n("./node_modules/webpack/buildin/global.js"))},"../../packages/hippy-vue/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e,o,r){function i(){i=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,o,r){var i=new RegExp(e,o);return t.set(i,r||t.get(e)),a(i,n.prototype)}function o(e,n){var o=t.get(n);return Object.keys(o).reduce((function(t,n){var r=o[n];if("number"==typeof r)t[n]=e[r];else{for(var i=0;void 0===e[r[i]]&&i+1]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof r){var s=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(o(e,s)),r.apply(this,e)}))}return e[Symbol.replace].call(this,n,r)},i.apply(this,arguments)}function s(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&&a(e,t)}function a(e,t){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function l(e){for(var t=1;t=0?t.Native.parseColor(n):n}function c(t){const{mode:r="timing",valueType:i,startValue:c,toValue:d}=t,f=l(t,o),p=a(a({},n),f);void 0!==i&&(p.valueType=t.valueType),p.startValue=s(p.valueType,c),p.toValue=s(p.valueType,d),p.repeatCount=u(p.repeatCount),p.mode=r;const h=new e.Hippy.Animation(p),m=h.getId();return{animation:h,animationId:m}}function u(e){return"loop"===e?-1:e}function d(t,n={}){const o={};return Object.keys(t).forEach(r=>{if(Array.isArray(t[r])){const i=t[r],{repeatCount:s}=i[i.length-1],a=i.map(e=>{const{animationId:t,animation:o}=c(Object.assign({},e,{repeatCount:0}));return Object.assign(n,{[t]:o}),{animationId:t,follow:!0}}),{animationId:l,animation:d}=function(t,n=0){const o=new e.Hippy.AnimationSet({children:t,repeatCount:n}),r=o.getId();return{animation:o,animationId:r}}(a,u(s));o[r]={animationId:l},Object.assign(n,{[l]:d})}else{const e=t[r],{animationId:i,animation:s}=c(e);Object.assign(n,{[i]:s}),o[r]={animationId:i}}}),o}function f(e){const{transform:t}=e,n=l(e,r);let o=Object.keys(n).map(t=>e[t].animationId);if(Array.isArray(t)&&t.length>0){const e=[];t.forEach(t=>Object.keys(t).forEach(n=>{if(t[n]){const{animationId:o}=t[n];"number"==typeof o&&o%1==0&&e.push(o)}})),o=[...o,...e]}return o}t.component("Animation",{inheritAttrs:!1,props:{tag:{type:String,default:"div"},playing:{type:Boolean,default:!1},actions:{type:Object,required:!0},props:Object},data:()=>({style:{},animationIds:[],animationIdsMap:{},animationEventMap:{}}),watch:{playing(e,t){!t&&e?this.start():t&&!e&&this.pause()},actions(){this.destroy(),this.create(),setTimeout(()=>{"function"==typeof this.$listeners.actionsDidUpdate&&this.$listeners.actionsDidUpdate()})}},created(){this.animationEventMap={start:"animationstart",end:"animationend",repeat:"animationrepeat",cancel:"animationcancel"}},beforeMount(){this.create()},mounted(){const{playing:e}=this.$props;e&&setTimeout(()=>{this.start()},0)},beforeDestroy(){this.destroy()},methods:{create(){const e=this.$props,{actions:{transform:t}}=e,n=l(e.actions,i);this.animationIdsMap={};const o=d(n,this.animationIdsMap);if(t){const e=d(t,this.animationIdsMap);o.transform=Object.keys(e).map(t=>({[t]:e[t]}))}this.$alreadyStarted=!1,this.style=o},removeAnimationEvent(){this.animationIds.forEach(e=>{const t=this.animationIdsMap[e];t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$listeners[e])return;const n=this.animationEventMap[e];n&&t.removeEventListener(n)})})},addAnimationEvent(){this.animationIds.forEach(e=>{const t=this.animationIdsMap[e];t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$listeners[e])return;const n=this.animationEventMap[e];n&&t.addEventListener(n,()=>{this.$emit(e)})})})},reset(){this.$alreadyStarted=!1},start(){this.$alreadyStarted?this.resume():(this.animationIds=f(this.style),this.$alreadyStarted=!0,this.removeAnimationEvent(),this.addAnimationEvent(),this.animationIds.forEach(e=>{const t=this.animationIdsMap[e];null==t||t.start()}))},resume(){f(this.style).forEach(e=>{const t=this.animationIdsMap[e];null==t||t.resume()})},pause(){if(!this.$alreadyStarted)return;f(this.style).forEach(e=>{const t=this.animationIdsMap[e];null==t||t.pause()})},destroy(){this.removeAnimationEvent(),this.$alreadyStarted=!1;f(this.style).forEach(e=>{const t=this.animationIdsMap[e];null==t||t.destroy()})}},template:'\n \n \n \n '})}function d(e){e.registerElement("hi-dialog",{component:{name:"Modal",defaultNativeStyle:{position:"absolute"}}}),e.component("Dialog",{inheritAttrs:!1,props:{collapsable:{type:Boolean,default:!1},transparent:{type:Boolean,default:!0},immersionStatusBar:{type:Boolean,default:!0},autoHideStatusBar:{type:Boolean,default:!1},autoHideNavigationBar:{type:Boolean,default:!1}},render(e){const t=(n=this.$slots.default)?Array.isArray(n)?n[0]:n||void 0:null;var n;t&&(t.data.attrs?Object.assign(t.data.attrs,{__modalFirstChild__:!0}):t.data.attrs={__modalFirstChild__:!0});const{collapsable:o,transparent:r,immersionStatusBar:i,autoHideStatusBar:s,autoHideNavigationBar:c}=this;return e("hi-dialog",{on:a({},this.$listeners),attrs:{collapsable:o,transparent:r,immersionStatusBar:i,autoHideStatusBar:s,autoHideNavigationBar:c}},this.$slots.default)}})}function f(e){return"string"!=typeof e?"":`${e.charAt(0).toUpperCase()}${e.slice(1)}`}function p(e){const t={};return e.forEach(e=>{if(Array.isArray(e)){const[n,o]=e;Object.prototype.hasOwnProperty.call(this.$listeners,n)&&(this["on"+f(o)]?t[e]=this["on"+f(o)]:t[e]=e=>this.$emit(n,e))}else Object.prototype.hasOwnProperty.call(this.$listeners,e)&&(this["on"+f(e)]?t[e]=this["on"+f(e)]:t[e]=t=>this.$emit(e,t))}),t}function h(e){e.registerElement("hi-ul-refresh-wrapper",{component:{name:"RefreshWrapper",processEventData(e,t,n){switch(t){case"onScroll":e.offsetX=n.contentOffset.x,e.offsetY=n.contentOffset.y}return e}}}),e.registerElement("hi-refresh-wrapper-item",{component:{name:"RefreshWrapperItemView"}}),e.component("UlRefreshWrapper",{inheritAttrs:!1,props:{bounceTime:{type:Number,defaultValue:100}},methods:{startRefresh(){e.Native.callUIFunction(this.$refs.refreshWrapper,"startRefresh",null)},refreshCompleted(){e.Native.callUIFunction(this.$refs.refreshWrapper,"refreshComplected",null)}},render(e){return e("hi-ul-refresh-wrapper",{on:p.call(this,["refresh","scroll"]),ref:"refreshWrapper"},this.$slots.default)}}),e.component("UlRefresh",{inheritAttrs:!1,template:"\n \n
\n \n
\n
\n "})}function m(e){e.registerElement("hi-swiper",{component:{name:"ViewPager",processEventData(e,t,n){switch(t){case"onPageSelected":e.currentSlide=n.position;break;case"onPageScroll":e.nextSlide=n.position,e.offset=n.offset;break;case"onPageScrollStateChanged":e.state=n.pageScrollState}return e}}}),e.registerElement("swiper-slide",{component:{name:"ViewPagerItem",defaultNativeStyle:{position:"absolute",top:0,right:0,bottom:0,left:0}}}),e.component("Swiper",{inheritAttrs:!1,props:{current:{type:Number,defaultValue:0},needAnimation:{type:Boolean,defaultValue:!0}},watch:{current(e){this.$props.needAnimation?this.setSlide(e):this.setSlideWithoutAnimation(e)}},beforeMount(){this.$initialSlide=this.$props.current},methods:{setSlide(t){e.Native.callUIFunction(this.$refs.swiper,"setPage",[t])},setSlideWithoutAnimation(t){e.Native.callUIFunction(this.$refs.swiper,"setPageWithoutAnimation",[t])}},render(e){return e("hi-swiper",{on:p.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]),ref:"swiper",attrs:{initialPage:this.$initialSlide}},this.$slots.default)}})}function y(e){const{callUIFunction:t}=e.Native;[["Header","header"],["Footer","footer"]].forEach(([n,o])=>{e.registerElement("hi-pull-"+o,{component:{name:`Pull${n}View`,processEventData(e,t,o){switch(t){case`on${n}Released`:case`on${n}Pulling`:Object.assign(e,o)}return e}}}),e.component("pull-"+o,{methods:{["expandPull"+n](){t(this.$refs.instance,"expandPull"+n)},["collapsePull"+n](e){"Header"===n&&void 0!==e?t(this.$refs.instance,`collapsePull${n}WithOptions`,[e]):t(this.$refs.instance,"collapsePull"+n)},onLayout(e){this.$contentHeight=e.height},[`on${n}Released`](e){this.$emit("released",e)},[`on${n}Pulling`](e){e.contentOffset>this.$contentHeight?"pulling"!==this.$lastEvent&&(this.$lastEvent="pulling",this.$emit("pulling",e)):"idle"!==this.$lastEvent&&(this.$lastEvent="idle",this.$emit("idle",e))}},render(e){const{released:t,pulling:r,idle:i}=this.$listeners,s={layout:this.onLayout};return"function"==typeof t&&(s[o+"Released"]=this[`on${n}Released`]),"function"!=typeof r&&"function"!=typeof i||(s[o+"Pulling"]=this[`on${n}Pulling`]),e("hi-pull-"+o,{on:s,ref:"instance"},this.$slots.default)}})})}function g(e){e.registerElement("hi-waterfall",{component:{name:"WaterfallView",processEventData(e,t,n){switch(t){case"onExposureReport":e.exposureInfo=n.exposureInfo;break;case"onScroll":{const{startEdgePos:t,endEdgePos:o,firstVisibleRowIndex:r,lastVisibleRowIndex:i,visibleRowFrames:s}=n;Object.assign(e,{startEdgePos:t,endEdgePos:o,firstVisibleRowIndex:r,lastVisibleRowIndex:i,visibleRowFrames:s});break}}return e}}}),e.registerElement("hi-waterfall-item",{component:{name:"WaterfallItem"}}),e.component("Waterfall",{inheritAttrs:!1,props:{numberOfColumns:{type:Number,default:2},contentInset:{type:Object,default:()=>({top:0,left:0,bottom:0,right:0})},columnSpacing:{type:Number,default:0},interItemSpacing:{type:Number,default:0},preloadItemNumber:{type:Number,default:0},containBannerView:{type:Boolean,default:!1},containPullHeader:{type:Boolean,default:!1},containPullFooter:{type:Boolean,default:!1}},methods:{call(t,n){e.Native.callUIFunction(this.$refs.waterfall,t,n)},startRefresh(){this.call("startRefresh")},startRefreshWithType(e){this.call("startRefreshWithType",[e])},callExposureReport(){this.call("callExposureReport",[])},scrollToIndex({index:e=0,animated:t=!0}){"number"==typeof e&&"boolean"==typeof t&&this.call("scrollToIndex",[e,e,t])},scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&this.call("scrollToContentOffset",[e,t,n])},startLoadMore(){this.call("startLoadMore")}},render(e){return e("hi-waterfall",{on:p.call(this,["headerReleased","headerPulling","endReached","exposureReport","initialListReady","scroll"]),ref:"waterfall",attrs:{numberOfColumns:this.numberOfColumns,contentInset:this.contentInset,columnSpacing:this.columnSpacing,interItemSpacing:this.interItemSpacing,preloadItemNumber:this.preloadItemNumber,containBannerView:this.containBannerView,containPullHeader:this.containPullHeader,containPullFooter:this.containPullFooter}},this.$slots.default)}}),e.component("WaterfallItem",{inheritAttrs:!1,props:{type:{type:[String,Number],default:""}},render(e){return e("hi-waterfall-item",{on:a({},this.$listeners),attrs:{type:this.type}},this.$slots.default)}})}const v={install(e){u(e),d(e),h(e),m(e),y(e),g(e)}}}.call(this,n("./node_modules/webpack/buildin/global.js"))},"../../packages/hippy-vue/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e,o,r){function i(){i=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,o,r){var i=RegExp(e,o);return t.set(i,r||t.get(e)),a(i,n.prototype)}function o(e,n){var o=t.get(n);return Object.keys(o).reduce((function(t,n){var r=o[n];if("number"==typeof r)t[n]=e[r];else{for(var i=0;void 0===e[r[i]]&&i+1]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof r){var s=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(o(e,s)),r.apply(this,e)}))}return e[Symbol.replace].call(this,n,r)},i.apply(this,arguments)}function s(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&&a(e,t)}function a(e,t){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function l(e){for(var t=1;t=0&&Math.floor(t)===t&&isFinite(e)}function w(e){return p(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function $(e){return null==e?"":Array.isArray(e)||v(e)&&e.toString===g?JSON.stringify(e,null,2):String(e)}function S(e){const t=parseFloat(e);return isNaN(t)?e:t}function x(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;en[e.toLowerCase()]:e=>n[e]}const k=x("slot,component",!0),O=x("key,ref,slot,slot-scope,is");function N(e,t){if(e.length){const n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}const C=Object.prototype.hasOwnProperty;function E(e,t){return C.call(e,t)}function I(e){const t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}const A=/-(\w)/g,T=I(e=>e.replace(A,(e,t)=>t?t.toUpperCase():"")),P=I(e=>e.charAt(0).toUpperCase()+e.slice(1)),j=/\B([A-Z])/g,L=I(e=>e.replace(j,"-$1").toLowerCase());const M=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){const o=arguments.length;return o?o>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function D(e,t){t=t||0;let n=e.length-t;const o=new Array(n);for(;n--;)o[n]=e[n+t];return o}function F(e,t){for(const n in t)e[n]=t[n];return e}function R(e,t,n){}const V=(e,t,n)=>!1,B=e=>e;function U(e,t){if(e===t)return!0;const n=y(e),o=y(t);if(!n||!o)return!n&&!o&&String(e)===String(t);try{const n=Array.isArray(e),o=Array.isArray(t);if(n&&o)return e.length===t.length&&e.every((e,n)=>U(e,t[n]));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(n||o)return!1;{const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every(n=>U(e[n],t[n]))}}catch(e){return!1}}function H(e,t){for(let n=0;n!1,ce=e.__VUE_DEVTOOLS_GLOBAL_HOOK__;function le(e){return"function"==typeof e&&/native code/.test(e.toString())}const ue="undefined"!=typeof Symbol&&le(Symbol)&&"undefined"!=typeof Reflect&&le(Reflect.ownKeys);let de;de="undefined"!=typeof Set&&le(Set)?Set:class{constructor(){this.set=Object.create(null)}has(e){return!0===this.set[e]}add(e){this.set[e]=!0}clear(){this.set=Object.create(null)}};let fe=R;let pe=0;class he{constructor(){this.id=pe++,this.subs=[]}addSub(e){this.subs.push(e)}removeSub(e){N(this.subs,e)}depend(){he.target&&he.target.addDep(this)}notify(){const e=this.subs.slice();for(let t=0,n=e.length;t{const t=new ve;return t.text=e,t.isComment=!0,t};function _e(e){return new ve(void 0,void 0,void 0,String(e))}function we(e){const t=new ve(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}const $e=Array.prototype,Se=Object.create($e);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){const t=$e[e];X(Se,e,(function(...n){const o=t.apply(this,n),r=this.__ob__;let i;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&r.observeArray(i),r.dep.notify(),o}))}));const xe=Object.getOwnPropertyNames(Se);let ke=!0;function Oe(e){ke=e}class Ne{constructor(e){this.value=e,this.dep=new he,this.vmCount=0,X(e,"__ob__",this),Array.isArray(e)?(Z?function(e,t){e.__proto__=t}(e,Se):function(e,t,n){for(let o=0,r=n.length;o{Pe[e]=Me}),z.forEach((function(e){Pe[e+"s"]=De})),Pe.watch=function(e,t,n,o){if(e===ie&&(e=void 0),t===ie&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;const r={};F(r,e);for(const e in t){let n=r[e];const o=t[e];n&&!Array.isArray(n)&&(n=[n]),r[e]=n?n.concat(o):Array.isArray(o)?o:[o]}return r},Pe.props=Pe.methods=Pe.inject=Pe.computed=function(e,t,n,o){if(!e)return t;const r=Object.create(null);return F(r,e),t&&F(r,t),r},Pe.provide=Le;const Fe=function(e,t){return void 0===t?e:t};function Re(e,t,n){if("function"==typeof t&&(t=t.options),function(e,t){const n=e.props;if(!n)return;const o={};let r,i,s;if(Array.isArray(n))for(r=n.length;r--;)i=n[r],"string"==typeof i&&(s=T(i),o[s]={type:null});else if(v(n))for(const e in n)i=n[e],s=T(e),o[s]=v(i)?i:{type:i};else 0;e.props=o}(t),function(e,t){const n=e.inject;if(!n)return;const o=e.inject={};if(Array.isArray(n))for(let e=0;e-1)if(i&&!E(r,"default"))s=!1;else if(""===s||s===L(e)){const e=ze(String,r.type);(e<0||aYe(e,o,r+" (Promise/async)")),i._handled=!0)}catch(e){Ye(e,o,r)}return i}function Ge(e,t,n){if(K.errorHandler)try{return K.errorHandler.call(null,e,t,n)}catch(t){t!==e&&qe(t,null,"config.errorHandler")}qe(e,t,n)}function qe(e,t,n){if(!Q&&!ee||"undefined"==typeof console)throw e;console.error(e)}const Xe=[];let Je,Ze=!1;function Qe(){Ze=!1;const e=Xe.slice(0);Xe.length=0;for(let t=0;t{e.then(Qe),re&&setTimeout(R)}}else if(oe||"undefined"==typeof MutationObserver||!le(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Je=void 0!==o&&le(o)?()=>{o(Qe)}:()=>{setTimeout(Qe,0)};else{let e=1;const t=new MutationObserver(Qe),n=document.createTextNode(String(e));t.observe(n,{characterData:!0}),Je=()=>{e=(e+1)%2,n.data=String(e)}}function et(e,t){let n;if(Xe.push(()=>{if(e)try{e.call(t)}catch(e){Ye(e,t,"nextTick")}else n&&n(t)}),Ze||(Ze=!0,Je()),!e&&"undefined"!=typeof Promise)return new Promise(e=>{n=e})}const tt=new de;function nt(e){!function e(t,n){let o,r;const i=Array.isArray(t);if(!i&&!y(t)||Object.isFrozen(t)||t instanceof ve)return;if(t.__ob__){const e=t.__ob__.dep.id;if(n.has(e))return;n.add(e)}if(i)for(o=t.length;o--;)e(t[o],n);else for(r=Object.keys(t),o=r.length;o--;)e(t[r[o]],n)}(e,tt),tt.clear()}const ot=I(e=>{const t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),o="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=o?e.slice(1):e,once:n,capture:o,passive:t}});function rt(e,t){function n(){const e=n.fns;if(!Array.isArray(e))return Ke(e,null,arguments,t,"v-on handler");{const n=e.slice();for(let e=0;e0&&(i=e(i,`${n||""}_${r}`),lt(i[0])&<(a)&&(o[s]=_e(a.text+i[0].text),i.shift()),o.push.apply(o,i)):m(i)?lt(a)?o[s]=_e(a.text+i):""!==i&&o.push(_e(i)):lt(i)&<(a)?o[s]=_e(a.text+i.text):(h(t._isVList)&&p(i.tag)&&f(i.key)&&p(n)&&(i.key=`__vlist${n}_${r}__`),o.push(i)));return o}(e):void 0}function lt(e){return p(e)&&p(e.text)&&!1===e.isComment}function ut(e,t){if(e){const n=Object.create(null),o=ue?Reflect.ownKeys(e):Object.keys(e);for(let r=0;r0,i=e?!!e.$stable:!r,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(i&&n&&n!==d&&s===n.$key&&!r&&!n.$hasNormal)return n;o={};for(const n in e)e[n]&&"$"!==n[0]&&(o[n]=mt(t,n,e[n]))}else o={};for(const e in t)e in o||(o[e]=yt(t,e));return e&&Object.isExtensible(e)&&(e._normalized=o),X(o,"$stable",i),X(o,"$key",s),X(o,"$hasNormal",r),o}function mt(e,t,n){const o=function(){let e=arguments.length?n.apply(null,arguments):n({});e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:ct(e);let t=e&&e[0];return e&&(!t||1===e.length&&t.isComment&&!pt(t))?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:o,enumerable:!0,configurable:!0}),o}function yt(e,t){return()=>e[t]}function gt(e,t){let n,o,r,i,s;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),o=0,r=e.length;o(this.$slots||ht(e.scopedSlots,this.$slots=dt(n,o)),this.$slots),Object.defineProperty(this,"scopedSlots",{enumerable:!0,get(){return ht(e.scopedSlots,this.slots())}}),a&&(this.$options=i,this.$slots=this.slots(),this.$scopedSlots=ht(e.scopedSlots,this.$slots)),i._scopeId?this._c=(e,t,n,r)=>{const a=Rt(s,e,t,n,r,c);return a&&!Array.isArray(a)&&(a.fnScopeId=i._scopeId,a.fnContext=o),a}:this._c=(e,t,n,o)=>Rt(s,e,t,n,o,c)}function Pt(e,t,n,o,r){const i=we(e);return i.fnContext=n,i.fnOptions=o,t.slot&&((i.data||(i.data={})).slot=t.slot),i}function jt(e,t){for(const n in t)e[T(n)]=t[n]}At(Tt.prototype);const Lt={init(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){const t=e;Lt.prepatch(t,t)}else{(e.componentInstance=function(e,t){const n={_isComponent:!0,_parentVnode:e,parent:t},o=e.data.inlineTemplate;p(o)&&(n.render=o.render,n.staticRenderFns=o.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,Kt)).$mount(t?e.elm:void 0,t)}},prepatch(e,t){const n=t.componentOptions;!function(e,t,n,o,r){0;const i=o.data.scopedSlots,s=e.$scopedSlots,a=!!(i&&!i.$stable||s!==d&&!s.$stable||i&&e.$scopedSlots.$key!==i.$key||!i&&e.$scopedSlots.$key),c=!!(r||e.$options._renderChildren||a);e.$options._parentVnode=o,e.$vnode=o,e._vnode&&(e._vnode.parent=o);if(e.$options._renderChildren=r,e.$attrs=o.data.attrs||d,e.$listeners=n||d,t&&e.$options.props){Oe(!1);const n=e._props,o=e.$options._propKeys||[];for(let r=0;rN(o,n));const a=e=>{for(let e=0,t=o.length;e{e.resolved=Ut(n,t),r?o.length=0:a(!0)}),l=W(t=>{p(e.errorComp)&&(e.error=!0,a(!0))}),u=e(c,l);return y(u)&&(w(u)?f(e.resolved)&&u.then(c,l):w(u.component)&&(u.component.then(c,l),p(u.error)&&(e.errorComp=Ut(u.error,t)),p(u.loading)&&(e.loadingComp=Ut(u.loading,t),0===u.delay?e.loading=!0:i=setTimeout(()=>{i=null,f(e.resolved)&&f(e.error)&&(e.loading=!0,a(!1))},u.delay||200)),p(u.timeout)&&(s=setTimeout(()=>{s=null,f(e.resolved)&&l(null)},u.timeout)))),r=!1,e.loading?e.loadingComp:e.resolved}}(s,i))))return function(e,t,n,o,r){const i=be();return i.asyncFactory=e,i.asyncMeta={data:t,context:n,children:o,tag:r},i}(s,t,n,o,r);t=t||{},yn(e),p(t.model)&&function(e,t){const n=e.model&&e.model.prop||"value",o=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;const r=t.on||(t.on={}),i=r[o],s=t.model.callback;p(i)?(Array.isArray(i)?-1===i.indexOf(s):i!==s)&&(r[o]=[s].concat(i)):r[o]=s}(e.options,t);const a=function(e,t,n){const o=t.options.props;if(f(o))return;const r={},{attrs:i,props:s}=e;if(p(i)||p(s))for(const e in o){const t=L(e);0,at(r,s,e,t,!0)||at(r,i,e,t,!1)}return r}(t,e);if(h(e.options.functional))return function(e,t,n,o,r){const i=e.options,s={},a=i.props;if(p(a))for(const e in a)s[e]=Be(e,a,t||d);else p(n.attrs)&&jt(s,n.attrs),p(n.props)&&jt(s,n.props);const c=new Tt(n,s,r,o,e),l=i.render.call(null,c._c,c);if(l instanceof ve)return Pt(l,n,c.parent,i,c);if(Array.isArray(l)){const e=ct(l)||[],t=new Array(e.length);for(let o=0;o{e(n,o),t(n,o)};return n._merged=!0,n}function Rt(e,t,n,o,r,i){return(Array.isArray(n)||m(n))&&(r=o,o=n,n=void 0),h(i)&&(r=2),function(e,t,n,o,r){if(p(n)&&p(n.__ob__))return be();p(n)&&p(n.is)&&(t=n.is);if(!t)return be();0;Array.isArray(o)&&"function"==typeof o[0]&&((n=n||{}).scopedSlots={default:o[0]},o.length=0);2===r?o=ct(o):1===r&&(o=function(e){for(let t=0;tdocument.createEvent("Event").timeStamp&&(on=()=>e.now())}function rn(){let e,t;for(on(),tn=!0,Jt.sort((e,t)=>e.id-t.id),nn=0;nnnn&&Jt[t].id>e.id;)t--;Jt.splice(t+1,0,e)}else Jt.push(e);en||(en=!0,et(rn))}}(this)}run(){if(this.active){const e=this.get();if(e!==this.value||y(e)||this.deep){const t=this.value;if(this.value=e,this.user){const n=`callback for watcher "${this.expression}"`;Ke(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}}evaluate(){this.value=this.get(),this.dirty=!1}depend(){let e=this.deps.length;for(;e--;)this.deps[e].depend()}teardown(){if(this.active){this.vm._isBeingDestroyed||N(this.vm._watchers,this);let e=this.deps.length;for(;e--;)this.deps[e].removeSub(this);this.active=!1}}}const cn={enumerable:!0,configurable:!0,get:R,set:R};function ln(e,t,n){cn.get=function(){return this[t][n]},cn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,cn)}function un(e){e._watchers=[];const t=e.$options;t.props&&function(e,t){const n=e.$options.propsData||{},o=e._props={},r=e.$options._propKeys=[];e.$parent&&Oe(!1);for(const i in t){r.push(i);const s=Be(i,t,n,e);Ee(o,i,s),i in e||ln(e,"_props",i)}Oe(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(const n in t)e[n]="function"!=typeof t[n]?R:M(t[n],e)}(e,t.methods),t.data?function(e){let t=e.$options.data;t=e._data="function"==typeof t?function(e,t){ye();try{return e.call(t,t)}catch(e){return Ye(e,t,"data()"),{}}finally{ge()}}(t,e):t||{},v(t)||(t={});const n=Object.keys(t),o=e.$options.props;e.$options.methods;let r=n.length;for(;r--;){const t=n[r];0,o&&E(o,t)||q(t)||ln(e,"_data",t)}Ce(t,!0)}(e):Ce(e._data={},!0),t.computed&&function(e,t){const n=e._computedWatchers=Object.create(null);for(const o in t){const r=t[o],i="function"==typeof r?r:r.get;0,n[o]=new an(e,i||R,R,dn),o in e||fn(e,o,r)}}(e,t.computed),t.watch&&t.watch!==ie&&function(e,t){for(const n in t){const o=t[n];if(Array.isArray(o))for(let t=0;t-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!b(e)&&e.test(t)}function wn(e,t){const{cache:n,keys:o,_vnode:r}=e;for(const e in n){const i=n[e];if(i){const s=i.name;s&&!t(s)&&$n(n,e,o,r)}}}function $n(e,t,n,o){const r=e[t];!r||o&&r.tag===o.tag||r.componentInstance.$destroy(),e[t]=null,N(n,t)}!function(e){e.prototype._init=function(e){const t=this;t._uid=mn++,t._isVue=!0,e&&e._isComponent?function(e,t){const n=e.$options=Object.create(e.constructor.options),o=t._parentVnode;n.parent=t.parent,n._parentVnode=o;const r=o.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Re(yn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){const t=e.$options;let n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;const t=e.$options._parentListeners;t&&Yt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;const t=e.$options,n=e.$vnode=t._parentVnode,o=n&&n.context;e.$slots=dt(t._renderChildren,o),e.$scopedSlots=d,e._c=(t,n,o,r)=>Rt(e,t,n,o,r,!1),e.$createElement=(t,n,o,r)=>Rt(e,t,n,o,r,!0);const r=n&&n.data;Ee(e,"$attrs",r&&r.attrs||d,null,!0),Ee(e,"$listeners",t._parentListeners||d,null,!0)}(t),Xt(t,"beforeCreate"),function(e){const t=ut(e.$options.inject,e);t&&(Oe(!1),Object.keys(t).forEach(n=>{Ee(e,n,t[n])}),Oe(!0))}(t),un(t),function(e){const t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),Xt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(gn),function(e){const t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Ie,e.prototype.$delete=Ae,e.prototype.$watch=function(e,t,n){const o=this;if(v(t))return hn(o,e,t,n);(n=n||{}).user=!0;const r=new an(o,e,t,n);if(n.immediate){const e=`callback for immediate watcher "${r.expression}"`;ye(),Ke(t,o,[r.value],o,e),ge()}return function(){r.teardown()}}}(gn),function(e){const t=/^hook:/;e.prototype.$on=function(e,n){const o=this;if(Array.isArray(e))for(let t=0,r=e.length;t1?D(n):n;const o=D(arguments,1),r=`event handler for "${e}"`;for(let e=0,i=n.length;e{Kt=t}}(n);n._vnode=e,n.$el=r?n.__patch__(r,e):n.__patch__(n.$el,e,t,!1),i(),o&&(o.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){const e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){const e=this;if(e._isBeingDestroyed)return;Xt(e,"beforeDestroy"),e._isBeingDestroyed=!0;const t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||N(t.$children,e),e._watcher&&e._watcher.teardown();let n=e._watchers.length;for(;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Xt(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}(gn),function(e){At(e.prototype),e.prototype.$nextTick=function(e){return et(e,this)},e.prototype._render=function(){const e=this,{render:t,_parentVnode:n}=e.$options;let o;n&&(e.$scopedSlots=ht(n.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=n;try{Bt=e,o=t.call(e._renderProxy,e.$createElement)}catch(t){Ye(t,e,"render"),o=e._vnode}finally{Bt=null}return Array.isArray(o)&&1===o.length&&(o=o[0]),o instanceof ve||(o=be()),o.parent=n,o}}(gn);const Sn=[String,RegExp,Array];var xn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Sn,exclude:Sn,max:[String,Number]},methods:{cacheVNode(){const{cache:e,keys:t,vnodeToCache:n,keyToCache:o}=this;if(n){const{tag:r,componentInstance:i,componentOptions:s}=n;e[o]={name:bn(s),tag:r,componentInstance:i},t.push(o),this.max&&t.length>parseInt(this.max)&&$n(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created(){this.cache=Object.create(null),this.keys=[]},destroyed(){for(const e in this.cache)$n(this.cache,e,this.keys)},mounted(){this.cacheVNode(),this.$watch("include",e=>{wn(this,t=>_n(e,t))}),this.$watch("exclude",e=>{wn(this,t=>!_n(e,t))})},updated(){this.cacheVNode()},render(){const e=this.$slots.default,t=function(e){if(Array.isArray(e))for(let t=0;tK};Object.defineProperty(e,"config",t),e.util={warn:fe,extend:F,mergeOptions:Re,defineReactive:Ee},e.set=Ie,e.delete=Ae,e.nextTick=et,e.observable=e=>(Ce(e),e),e.options=Object.create(null),z.forEach(t=>{e.options[t+"s"]=Object.create(null)}),e.options._base=e,F(e.options.components,xn),function(e){e.use=function(e){const t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;const n=D(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Re(this.options,e),this}}(e),vn(e),function(e){z.forEach(t=>{e[t]=function(e,n){return n?("component"===t&&v(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(gn),Object.defineProperty(gn.prototype,"$isServer",{get:ae}),Object.defineProperty(gn.prototype,"$ssrContext",{get(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(gn,"FunctionalRenderContext",{value:Tt}),gn.version="2.6.14",x("style,class");const kn=x("input,textarea,option,select,progress");function On(e){let t=e.data,n=e,o=e;for(;p(o.componentInstance);)o=o.componentInstance._vnode,o&&o.data&&(t=Nn(o.data,t));for(;p(n=n.parent);)n&&n.data&&(t=Nn(t,n.data));return function(e,t){if(p(e)||p(t))return Cn(e,En(t));return""}(t.staticClass,t.class)}function Nn(e,t){return{staticClass:Cn(e.staticClass,t.staticClass),class:p(e.class)?[e.class,t.class]:t.class}}function Cn(e,t){return e?t?e+" "+t:e:t||""}function En(e){return Array.isArray(e)?function(e){let t,n="";for(let o=0,r=e.length;o=0&&(t=e.charAt(n)," "===t);n--);t&&Pn.test(t)||(l=!0)}}else void 0===r?(p=o+1,r=e.slice(0,o).trim()):h();function h(){(i||(i=[])).push(e.slice(p,o).trim()),p=o+1}if(void 0===r?r=e.slice(0,o).trim():0!==p&&h(),i)for(o=0;o{const t=e[0].replace(Dn,"\\$&"),n=e[1].replace(Dn,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});function Rn(e,t){console.error("[Vue compiler]: "+e)}function Vn(e,t){return e?e.map(e=>e[t]).filter(e=>e):[]}function Bn(e,t,n,o,r){(e.props||(e.props=[])).push(Xn({name:t,value:n,dynamic:r},o)),e.plain=!1}function Un(e,t,n,o,r){(r?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Xn({name:t,value:n,dynamic:r},o)),e.plain=!1}function Hn(e,t,n,o){e.attrsMap[t]=n,e.attrsList.push(Xn({name:t,value:n},o))}function Wn(e,t,n,o,r,i,s,a){(e.directives||(e.directives=[])).push(Xn({name:t,rawName:n,value:o,arg:r,isDynamicArg:i,modifiers:s},a)),e.plain=!1}function zn(e,t,n){return n?`_p(${t},"${e}")`:e+t}function Yn(e,t,n,o,r,i,s,a){let c;(o=o||d).right?a?t=`(${t})==='click'?'contextmenu':(${t})`:"click"===t&&(t="contextmenu",delete o.right):o.middle&&(a?t=`(${t})==='click'?'mouseup':(${t})`:"click"===t&&(t="mouseup")),o.capture&&(delete o.capture,t=zn("!",t,a)),o.once&&(delete o.once,t=zn("~",t,a)),o.passive&&(delete o.passive,t=zn("&",t,a)),o.native?(delete o.native,c=e.nativeEvents||(e.nativeEvents={})):c=e.events||(e.events={});const l=Xn({value:n.trim(),dynamic:a},s);o!==d&&(l.modifiers=o);const u=c[t];Array.isArray(u)?r?u.unshift(l):u.push(l):c[t]=u?r?[l,u]:[u,l]:l,e.plain=!1}function Kn(e,t,n){const o=Gn(e,":"+t)||Gn(e,"v-bind:"+t);if(null!=o)return jn(o);if(!1!==n){const n=Gn(e,t);if(null!=n)return JSON.stringify(n)}}function Gn(e,t,n){let o;if(null!=(o=e.attrsMap[t])){const n=e.attrsList;for(let e=0,o=n.length;e1&&(t[o[0].trim()]=o[1].trim())}})),t}));var Qn={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;const n=Gn(e,"style");n&&(e.staticStyle=JSON.stringify(Zn(n)));const o=Kn(e,"style",!1);o&&(e.styleBinding=o)},genData:function(e){let t="";return e.staticStyle&&(t+=`staticStyle:${e.staticStyle},`),e.styleBinding&&(t+=`style:(${e.styleBinding}),`),t}};var eo=function(e){return e};const to=x("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),no=x("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),oo=x("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),ro=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,io=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,so=`[a-zA-Z_][\\-\\.0-9_a-zA-Z${G.source}]*`,ao=`((?:${so}\\:)?${so})`,co=new RegExp("^<"+ao),lo=/^\s*(\/?)>/,uo=new RegExp(`^<\\/${ao}[^>]*>`),fo=/^]+>/i,po=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},vo=/&(?:lt|gt|quot|amp|#39);/g,bo=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,_o=x("pre,textarea",!0),wo=(e,t)=>e&&_o(e)&&"\n"===t[0];function $o(e,t){const n=t?bo:vo;return e.replace(n,e=>go[e])}function So(e,t,n){const{number:o,trim:r}=n||{};let i="$$v";r&&(i="(typeof $$v === 'string'? $$v.trim(): $$v)"),o&&(i=`_n(${i})`);const s=xo(t,i);e.model={value:`(${t})`,expression:JSON.stringify(t),callback:`function ($$v) {${s}}`}}function xo(e,t){const n=function(e){if(e=e.trim(),ko=e.length,e.indexOf("[")<0||e.lastIndexOf("]")-1?{exp:e.slice(0,Co),key:'"'+e.slice(Co+1)+'"'}:{exp:e,key:null};Oo=e,Co=Eo=Io=0;for(;!To();)No=Ao(),Po(No)?Lo(No):91===No&&jo(No);return{exp:e.slice(0,Eo),key:e.slice(Eo+1,Io)}}(e);return null===n.key?`${e}=${t}`:`$set(${n.exp}, ${n.key}, ${t})`}let ko,Oo,No,Co,Eo,Io;function Ao(){return Oo.charCodeAt(++Co)}function To(){return Co>=ko}function Po(e){return 34===e||39===e}function jo(e){let t=1;for(Eo=Co;!To();)if(Po(e=Ao()))Lo(e);else if(91===e&&t++,93===e&&t--,0===t){Io=Co;break}}function Lo(e){const t=e;for(;!To()&&(e=Ao())!==t;);}const Mo=/^@|^v-on:/,Do=r.env.VBIND_PROP_SHORTHAND?/^v-|^@|^:|^\.|^#/:/^v-|^@|^:|^#/,Fo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Ro=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Vo=/^\(|\)$/g,Bo=/^\[.*\]$/,Uo=/:(.*)$/,Ho=/^:|^\.|^v-bind:/,Wo=/^\./,zo=/\.[^.\]]+(?=[^\]]*$)/g,Yo=/^v-slot(:|$)|^#/,Ko=/[\r\n]/,Go=/[ \f\t\r\n]+/g,qo=I(eo);let Xo,Jo,Zo,Qo,er,tr,nr,or,rr;function ir(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:fr(t),rawAttrsMap:{},parent:n,children:[]}}function sr(e,t){Xo=t.warn||Rn,tr=t.isPreTag||V,nr=t.mustUseProp||V,or=t.getTagNamespace||V;const n=t.isReservedTag||V;rr=e=>!(!(e.component||e.attrsMap[":is"]||e.attrsMap["v-bind:is"])&&(e.attrsMap.is?n(e.attrsMap.is):n(e.tag))),Zo=Vn(t.modules,"transformNode"),Qo=Vn(t.modules,"preTransformNode"),er=Vn(t.modules,"postTransformNode"),Jo=t.delimiters;const o=[],r=!1!==t.preserveWhitespace,i=t.whitespace;let s,a,c=!1,l=!1;function u(e){if(d(e),c||e.processed||(e=ar(e,t)),o.length||e===s||s.if&&(e.elseif||e.else)&&lr(s,{exp:e.elseif,block:e}),a&&!e.forbidden)if(e.elseif||e.else)!function(e,t){const n=function(e){let t=e.length;for(;t--;){if(1===e[t].type)return e[t];e.pop()}}(t.children);n&&n.if&&lr(n,{exp:e.elseif,block:e})}(e,a);else{if(e.slotScope){const t=e.slotTarget||'"default"';(a.scopedSlots||(a.scopedSlots={}))[t]=e}a.children.push(e),e.parent=a}e.children=e.children.filter(e=>!e.slotScope),d(e),e.pre&&(c=!1),tr(e.tag)&&(l=!1);for(let n=0;n]*>)","i")),i=e.replace(r,(function(e,r,i){return n=i.length,mo(o)||"noscript"===o||(r=r.replace(//g,"$1").replace(//g,"$1")),wo(o,r)&&(r=r.slice(1)),t.chars&&t.chars(r),""}));c+=e.length-i.length,e=i,f(o,c-n,c)}else{let n,o,r,i=e.indexOf("<");if(0===i){if(po.test(e)){const n=e.indexOf("--\x3e");if(n>=0){t.shouldKeepComment&&t.comment(e.substring(4,n),c,c+n+3),l(n+3);continue}}if(ho.test(e)){const t=e.indexOf("]>");if(t>=0){l(t+2);continue}}const n=e.match(fo);if(n){l(n[0].length);continue}const o=e.match(uo);if(o){const e=c;l(o[0].length),f(o[1],e,c);continue}const r=u();if(r){d(r),wo(r.tagName,e)&&l(1);continue}}if(i>=0){for(o=e.slice(i);!(uo.test(o)||co.test(o)||po.test(o)||ho.test(o)||(r=o.indexOf("<",1),r<0));)i+=r,o=e.slice(i);n=e.substring(0,i)}i<0&&(n=e),n&&l(n.length),t.chars&&n&&t.chars(n,c-n.length,c)}if(e===s){t.chars&&t.chars(e);break}}function l(t){c+=t,e=e.substring(t)}function u(){const t=e.match(co);if(t){const n={tagName:t[1],attrs:[],start:c};let o,r;for(l(t[0].length);!(o=e.match(lo))&&(r=e.match(io)||e.match(ro));)r.start=c,l(r[0].length),r.end=c,n.attrs.push(r);if(o)return n.unarySlash=o[1],l(o[0].length),n.end=c,n}}function d(e){const s=e.tagName,c=e.unarySlash;o&&("p"===a&&oo(s)&&f(a),i(s)&&a===s&&f(s));const l=r(s)||!!c,u=e.attrs.length,d=new Array(u);for(let n=0;n=0&&n[i].lowerCasedTag!==s;i--);else i=0;if(i>=0){for(let e=n.length-1;e>=i;e--)t.end&&t.end(n[e].tag,o,r);n.length=i,a=i&&n[i-1].tag}else"br"===s?t.start&&t.start(e,[],!0,o,r):"p"===s&&(t.start&&t.start(e,[],!1,o,r),t.end&&t.end(e,o,r))}f()}(e,{warn:Xo,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start(e,n,r,i,d){const f=a&&a.ns||or(e);oe&&"svg"===f&&(n=function(e){const t=[];for(let n=0;nc&&(r.push(a=e.slice(c,s)),o.push(JSON.stringify(a)));const t=jn(i[1].trim());o.push(`_s(${t})`),r.push({"@binding":t}),c=s+i[0].length}return c{if(!e.slotScope)return e.parent=i,!0}),i.slotScope=t.value||"_empty_",e.children=[],e.plain=!1}}}(e),"slot"===(n=e).tag&&(n.slotName=Kn(n,"name")),function(e){let t;(t=Kn(e,"is"))&&(e.component=t);null!=Gn(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(let n=0;n{e[t.slice(1)]=!0}),e}}function fr(e){const t={};for(let n=0,o=e.length;n-1`+("true"===i?`:(${t})`:`:_q(${t},${i})`)),Yn(e,"change",`var $$a=${t},$$el=$event.target,$$c=$$el.checked?(${i}):(${s});if(Array.isArray($$a)){var $$v=${o?"_n("+r+")":r},$$i=_i($$a,$$v);if($$el.checked){$$i<0&&(${xo(t,"$$a.concat([$$v])")})}else{$$i>-1&&(${xo(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")})}}else{${xo(t,"$$c")}}`,null,!0)}(e,o,r);else if("input"===i&&"radio"===s)!function(e,t,n){const o=n&&n.number;let r=Kn(e,"value")||"null";r=o?`_n(${r})`:r,Bn(e,"checked",`_q(${t},${r})`),Yn(e,"change",xo(t,r),null,!0)}(e,o,r);else if("input"===i||"textarea"===i)!function(e,t,n){const o=e.attrsMap.type;0;const{lazy:r,number:i,trim:s}=n||{},a=!r&&"range"!==o,c=r?"change":"range"===o?"__r":"input";let l="$event.target.value";s&&(l="$event.target.value.trim()");i&&(l=`_n(${l})`);let u=xo(t,l);a&&(u="if($event.target.composing)return;"+u);Bn(e,"value",`(${t})`),Yn(e,c,u,null,!0),(s||i)&&Yn(e,"blur","$forceUpdate()")}(e,o,r);else{if(!K.isReservedTag(i))return So(e,o,r),!1}return!0},text:function(e,t){t.value&&Bn(e,"textContent",`_s(${t.value})`,t)},html:function(e,t){t.value&&Bn(e,"innerHTML",`_s(${t.value})`,t)}},isPreTag:e=>"pre"===e,isUnaryTag:to,mustUseProp:(e,t,n)=>"value"===n&&kn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e,canBeLeftOpenTag:no,isReservedTag:e=>In(e)||An(e),getTagNamespace:function(e){return An(e)?"svg":"math"===e?"math":void 0},staticKeys:function(e){return e.reduce((e,t)=>e.concat(t.staticKeys||[]),[]).join(",")}(yr)};let br,_r;const wr=I((function(e){return x("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function $r(e,t){e&&(br=wr(t.staticKeys||""),_r=t.isReservedTag||V,function e(t){if(t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||k(e.tag)||!_r(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(br)))}(t),1===t.type){if(!_r(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(let n=0,o=t.children.length;n|^function(?:\s+[\w$]+)?\s*\(/,xr=/\([^)]*?\);*$/,kr=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Or={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Nr={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Cr=e=>`if(${e})return null;`,Er={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Cr("$event.target !== $event.currentTarget"),ctrl:Cr("!$event.ctrlKey"),shift:Cr("!$event.shiftKey"),alt:Cr("!$event.altKey"),meta:Cr("!$event.metaKey"),left:Cr("'button' in $event && $event.button !== 0"),middle:Cr("'button' in $event && $event.button !== 1"),right:Cr("'button' in $event && $event.button !== 2")};function Ir(e,t){const n=t?"nativeOn:":"on:";let o="",r="";for(const t in e){const n=Ar(e[t]);e[t]&&e[t].dynamic?r+=`${t},${n},`:o+=`"${t}":${n},`}return o=`{${o.slice(0,-1)}}`,r?n+`_d(${o},[${r.slice(0,-1)}])`:n+o}function Ar(e){if(!e)return"function(){}";if(Array.isArray(e))return`[${e.map(e=>Ar(e)).join(",")}]`;const t=kr.test(e.value),n=Sr.test(e.value),o=kr.test(e.value.replace(xr,""));if(e.modifiers){let r="",i="";const s=[];for(const t in e.modifiers)if(Er[t])i+=Er[t],Or[t]&&s.push(t);else if("exact"===t){const t=e.modifiers;i+=Cr(["ctrl","shift","alt","meta"].filter(e=>!t[e]).map(e=>`$event.${e}Key`).join("||"))}else s.push(t);s.length&&(r+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Tr).join("&&")+")return null;"}(s)),i&&(r+=i);return`function($event){${r}${t?`return ${e.value}.apply(null, arguments)`:n?`return (${e.value}).apply(null, arguments)`:o?"return "+e.value:e.value}}`}return t||n?e.value:`function($event){${o?"return "+e.value:e.value}}`}function Tr(e){const t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;const n=Or[e],o=Nr[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(o)+")"}var Pr={on:function(e,t){e.wrapListeners=e=>`_g(${e},${t.value})`},bind:function(e,t){e.wrapData=n=>`_b(${n},'${e.tag}',${t.value},${t.modifiers&&t.modifiers.prop?"true":"false"}${t.modifiers&&t.modifiers.sync?",true":""})`},cloak:R};class jr{constructor(e){this.options=e,this.warn=e.warn||Rn,this.transforms=Vn(e.modules,"transformCode"),this.dataGenFns=Vn(e.modules,"genData"),this.directives=F(F({},Pr),e.directives);const t=e.isReservedTag||V;this.maybeComponent=e=>!!e.component||!t(e.tag),this.onceId=0,this.staticRenderFns=[],this.pre=!1}}function Lr(e,t){const n=new jr(t);return{render:`with(this){return ${e?"script"===e.tag?"null":Mr(e,n):'_c("div")'}}`,staticRenderFns:n.staticRenderFns}}function Mr(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Dr(e,t);if(e.once&&!e.onceProcessed)return Fr(e,t);if(e.for&&!e.forProcessed)return Vr(e,t);if(e.if&&!e.ifProcessed)return Rr(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){const n=e.slotName||'"default"',o=Wr(e,t);let r=`_t(${n}${o?`,function(){return ${o}}`:""}`;const i=e.attrs||e.dynamicAttrs?Kr((e.attrs||[]).concat(e.dynamicAttrs||[]).map(e=>({name:T(e.name),value:e.value,dynamic:e.dynamic}))):null,s=e.attrsMap["v-bind"];!i&&!s||o||(r+=",null");i&&(r+=","+i);s&&(r+=`${i?"":",null"},${s}`);return r+")"}(e,t);{let n;if(e.component)n=function(e,t,n){const o=t.inlineTemplate?null:Wr(t,n,!0);return`_c(${e},${Br(t,n)}${o?","+o:""})`}(e.component,e,t);else{let o;(!e.plain||e.pre&&t.maybeComponent(e))&&(o=Br(e,t));const r=e.inlineTemplate?null:Wr(e,t,!0);n=`_c('${e.tag}'${o?","+o:""}${r?","+r:""})`}for(let o=0;o{const n=t[e];return n.slotTargetDynamic||n.if||n.for||Ur(n)}),r=!!e.if;if(!o){let t=e.parent;for(;t;){if(t.slotScope&&"_empty_"!==t.slotScope||t.for){o=!0;break}t.if&&(r=!0),t=t.parent}}const i=Object.keys(t).map(e=>Hr(t[e],n)).join(",");return`scopedSlots:_u([${i}]${o?",null,true":""}${!o&&r?",null,false,"+function(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return t>>>0}(i):""})`}(e,e.scopedSlots,t)+","),e.model&&(n+=`model:{value:${e.model.value},callback:${e.model.callback},expression:${e.model.expression}},`),e.inlineTemplate){const o=function(e,t){const n=e.children[0];0;if(n&&1===n.type){const e=Lr(n,t.options);return`inlineTemplate:{render:function(){${e.render}},staticRenderFns:[${e.staticRenderFns.map(e=>`function(){${e}}`).join(",")}]}`}}(e,t);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n=`_b(${n},"${e.tag}",${Kr(e.dynamicAttrs)})`),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Ur(e){return 1===e.type&&("slot"===e.tag||e.children.some(Ur))}function Hr(e,t){const n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Rr(e,t,Hr,"null");if(e.for&&!e.forProcessed)return Vr(e,t,Hr);const o="_empty_"===e.slotScope?"":String(e.slotScope),r=`function(${o}){return ${"template"===e.tag?e.if&&n?`(${e.if})?${Wr(e,t)||"undefined"}:undefined`:Wr(e,t)||"undefined":Mr(e,t)}}`,i=o?"":",proxy:true";return`{key:${e.slotTarget||'"default"'},fn:${r}${i}}`}function Wr(e,t,n,o,r){const i=e.children;if(i.length){const e=i[0];if(1===i.length&&e.for&&"template"!==e.tag&&"slot"!==e.tag){const r=n?t.maybeComponent(e)?",1":",0":"";return`${(o||Mr)(e,t)}${r}`}const s=n?function(e,t){let n=0;for(let o=0;ozr(e.block))){n=2;break}(t(r)||r.ifConditions&&r.ifConditions.some(e=>t(e.block)))&&(n=1)}}return n}(i,t.maybeComponent):0,a=r||Yr;return`[${i.map(e=>a(e,t)).join(",")}]${s?","+s:""}`}}function zr(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function Yr(e,t){return 1===e.type?Mr(e,t):3===e.type&&e.isComment?function(e){return`_e(${JSON.stringify(e.text)})`}(e):function(e){return`_v(${2===e.type?e.expression:Gr(JSON.stringify(e.text))})`}(e)}function Kr(e){let t="",n="";for(let o=0;oqr(e,c)),t[i]=a}}const Jr=(Zr=function(e,t){const n=sr(e.trim(),t);!1!==t.optimize&&$r(n,t);const o=Lr(n,t);return{ast:n,render:o.render,staticRenderFns:o.staticRenderFns}},function(e){function t(t,n){const o=Object.create(e),r=[],i=[];if(n){n.modules&&(o.modules=(e.modules||[]).concat(n.modules)),n.directives&&(o.directives=F(Object.create(e.directives||null),n.directives));for(const e in n)"modules"!==e&&"directives"!==e&&(o[e]=n[e])}o.warn=(e,t,n)=>{(n?i:r).push(e)};const s=Zr(t.trim(),o);return s.errors=r,s.tips=i,s}return{compile:t,compileToFunctions:Xr(t)}});var Zr;const{compile:Qr,compileToFunctions:ei}=Jr(vr),ti=`http://127.0.0.1:${r.env.PORT}/`;let ni,oi,ri=e=>e,ii=()=>{};function si(e){ni=e}function ai(){return ni}function ci(){return ri}const li=W(()=>{console.log('Hippy-Vue has "Vue.config.silent" to control trace log output, to see output logs if set it to false.')});function ui(...e){(null==oi?void 0:oi.config.silent)&&li()}function di(e){return e.charAt(0).toUpperCase()+e.slice(1)}const fi=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function pi(e){return"[object Function]"===Object.prototype.toString.call(e)}function hi(e){let t=e;return/^assets/.test(t)&&(t="hpfile://./"+t),t}function mi(e){return null==e}const yi=Symbol.for("View"),gi=Symbol.for("Image"),vi=Symbol.for("ListView"),bi=Symbol.for("ListViewItem"),_i=Symbol.for("Text"),wi=Symbol.for("TextInput"),$i=Symbol.for("WebView"),Si=Symbol.for("VideoPlayer"),xi={[yi]:"View",[gi]:"Image",[vi]:"ListView",[bi]:"ListViewItem",[_i]:"Text",[wi]:"TextInput",[$i]:"WebView",[Si]:"VideoPlayer"};function ki(...e){const t={};if(Array.isArray(e[0]))e[0].forEach(([e,n])=>{t[t[e]=n]=e});else{const[n,o]=e;t[t[n]=o]=n}return t}const Oi={number:"numeric",text:"default",search:"web-search"},Ni={role:"accessibilityRole","aria-label":"accessibilityLabel","aria-disabled":{jointKey:"accessibilityState",name:"disabled"},"aria-selected":{jointKey:"accessibilityState",name:"selected"},"aria-checked":{jointKey:"accessibilityState",name:"checked"},"aria-busy":{jointKey:"accessibilityState",name:"busy"},"aria-expanded":{jointKey:"accessibilityState",name:"expanded"},"aria-valuemin":{jointKey:"accessibilityValue",name:"min"},"aria-valuemax":{jointKey:"accessibilityValue",name:"max"},"aria-valuenow":{jointKey:"accessibilityValue",name:"now"},"aria-valuetext":{jointKey:"accessibilityValue",name:"text"}},Ci={symbol:yi,component:{name:xi[yi],eventNamesMap:ki([["touchStart","onTouchDown"],["touchstart","onTouchDown"],["touchmove","onTouchMove"],["touchend","onTouchEnd"],["touchcancel","onTouchCancel"]]),attributeMaps:l({},Ni),processEventData(e,t,n){var o,r;switch(t){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":e.offsetX=null===(o=n.contentOffset)||void 0===o?void 0:o.x,e.offsetY=null===(r=n.contentOffset)||void 0===r?void 0:r.y;break;case"onTouchDown":case"onTouchMove":case"onTouchEnd":case"onTouchCancel":e.touches={0:{clientX:n.page_x,clientY:n.page_y},length:1};break;case"onFocus":e.isFocused=t.focus}return e}}},Ei={symbol:yi,component:l(l({},Ci.component),{},{name:xi[yi],defaultNativeStyle:{}})},Ii={symbol:yi,component:{name:xi[yi]}},Ai={symbol:gi,component:l(l({},Ci.component),{},{name:xi[gi],defaultNativeStyle:{backgroundColor:0},attributeMaps:l({placeholder:{name:"defaultSource",propsValue(e){const t=hi(e);return t&&t.indexOf(ti)<0&&["https://","http://"].some(e=>0===t.indexOf(e)),t}},src:e=>hi(e)},Ni),processEventData(e,t,n){switch(t){case"onTouchDown":case"onTouchMove":case"onTouchEnd":case"onTouchCancel":e.touches={0:{clientX:n.page_x,clientY:n.page_y},length:1};break;case"onFocus":e.isFocused=t.focus;break;case"onLoad":{const{width:t,height:o,url:r}=n;e.width=t,e.height=o,e.url=r;break}}return e}})},Ti={symbol:vi,component:{name:xi[vi],defaultNativeStyle:{flex:1},attributeMaps:l({},Ni),eventNamesMap:ki("listReady","initialListReady"),processEventData(e,t,n){var o,r;switch(t){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":e.offsetX=null===(o=n.contentOffset)||void 0===o?void 0:o.x,e.offsetY=null===(r=n.contentOffset)||void 0===r?void 0:r.y;break;case"onDelete":e.index=n.index}return e}}},Pi={symbol:bi,component:{name:xi[bi],attributeMaps:l({},Ni),eventNamesMap:ki([["disappear","onDisappear"]])}},ji={symbol:yi,component:l(l({},Ci.component),{},{name:xi[_i],defaultNativeProps:{text:""},defaultNativeStyle:{color:4278190080}})},Li=ji,Mi=ji,Di={component:l(l({},ji.component),{},{defaultNativeStyle:{color:4278190318},attributeMaps:{href:{name:"href",propsValue:e=>["//","http://","https://"].filter(t=>0===e.indexOf(t)).length?"":e}}})},Fi={symbol:wi,component:{name:xi[wi],attributeMaps:l({type:{name:"keyboardType",propsValue(e){const t=Oi[e];return t||e}},disabled:{name:"editable",propsValue:e=>!e},value:"defaultValue",maxlength:"maxLength"},Ni),nativeProps:{numberOfLines:1,multiline:!1},defaultNativeProps:{underlineColorAndroid:0},defaultNativeStyle:{padding:0,color:4278190080},eventNamesMap:ki([["change","onChangeText"],["select","onSelectionChange"]]),processEventData(e,t,n){switch(t){case"onChangeText":case"onEndEditing":e.value=n.text;break;case"onSelectionChange":e.start=n.selection.start,e.end=n.selection.end;break;case"onKeyboardWillShow":e.keyboardHeight=n.keyboardHeight;break;case"onContentSizeChange":e.width=n.contentSize.width,e.height=n.contentSize.height}return e}}},Ri={symbol:wi,component:{name:xi[wi],defaultNativeProps:l(l({},Fi.component.defaultNativeProps),{},{numberOfLines:5}),attributeMaps:l(l({},Fi.component.attributeMaps),{},{rows:"numberOfLines"}),nativeProps:{multiline:!0},defaultNativeStyle:Fi.component.defaultNativeStyle,eventNamesMap:Fi.component.eventNamesMap,processEventData:Fi.component.processEventData}},Vi={symbol:$i,component:{name:xi[$i],defaultNativeProps:{method:"get",userAgent:""},attributeMaps:{src:{name:"source",propsValue:e=>({uri:e})}},processEventData(e,t,n){switch(t){case"onLoad":case"onLoadStart":e.url=n.url;break;case"onLoadEnd":e.url=n.url,e.success=n.success,e.error=n.error}return e}}};var Bi=Object.freeze({__proto__:null,button:Ei,div:Ci,form:Ii,img:Ai,input:Fi,label:Li,li:Pi,p:Mi,span:ji,a:Di,textarea:Ri,ul:Ti,iframe:Vi});const Ui=x("template,script,style,element,content,slot,button,div,form,img,input,label,li,p,span,textarea,ul",!0),Hi=new Map,Wi={skipAddToDom:!1,isUnaryTag:!1,tagNamespace:"",canBeLeftOpenTag:!1,mustUseProp:!1,model:null,component:null};function zi(e){return e.toLowerCase()}function Yi(e,t){if(!e)throw new Error("RegisterElement cannot set empty name");const n=zi(e),o=l(l({},Wi),t);if(Hi.has(n))throw new Error(`Element for ${e} already registered.`);o.component=l(l({},function(e,t,n){return{name:e,functional:!0,model:t.model,render:(e,{data:t,children:o})=>e(n,t,o)}}(e,o,n)),o.component),o.component.name&&o.component.name===di(T(e))&&o.component.name;const r={meta:o};return Hi.set(n,r),r}function Ki(e){const t=zi(e);let n=Wi;const o=Hi.get(t);return(null==o?void 0:o.meta)&&(n=o.meta),n}class Gi{constructor(e){this.value="",this.target=null,this.currentTarget=null,this.originalTarget=null,this.bubbles=!0,this.cancelable=!0,this.eventPhase=0,this.isCanceled=!1,this.type=e,this.bubbles=!0,this.cancelable=!0,this.eventPhase=0,this.originalTarget=null,this.currentTarget=null,this.target=null,this.isCanceled=!1}get canceled(){return this.isCanceled}stopPropagation(){this.bubbles=!1}preventDefault(){this.cancelable&&(this.isCanceled=!0)}initEvent(e,t=!0,n=!0){return this.type=e,!1===t&&(this.bubbles=!1),!1===n&&(this.cancelable=!1),this}}class qi{constructor(e){this.element=e,this.observers={}}getEventListeners(){return this.observers}addEventListener(e,t,n){if("string"!=typeof e)throw new TypeError("Events name(s) must be string.");if(t&&!pi(t))throw new TypeError("callback must be function.");const o=e.split(",");for(let e=0,r=o.length;e=0&&e.splice(o,1),0===e.length&&(this.observers[r]=void 0)}}else this.observers[r]=void 0}return this.observers}emit(e){var t,n;const{type:o}=e,r=this.observers[o];if(r)for(let o=r.length-1;o>=0;o-=1){const i=r[o];(null===(t=i.options)||void 0===t?void 0:t.once)&&r.splice(o,1),(null===(n=i.options)||void 0===n?void 0:n.thisArg)?i.callback.apply(i.options.thisArg,[e]):i.callback(e)}}getEventList(e,t){let n=this.observers[e];return!n&&t&&(n=[],this.observers[e]=n),n}indexOfListener(e,t,n){return e.findIndex(e=>n?e.callback===t&&U(e.options,n):e.callback===t)}}const Xi=new Map;function Ji(e){return Xi.get(e)||null}function Zi(t){!function(t,n){if(!e.requestIdleCallback)return setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>1/0})},1);e.requestIdleCallback(t,n)}(e=>{(e.timeRemaining()>0||e.didTimeout)&&function e(t){var n;o=t.nodeId,Xi.delete(o),null===(n=t.childNodes)||void 0===n||n.forEach(t=>e(t));var o}(t)},{timeout:50})}function Qi(e=[],t=0){let n=e[t];for(let o=t;o-1){const e=new as(i);if(Object.assign(e,{eventPhase:a,nativeParams:s||{}}),"onLayout"===r){const{layout:{x:t,y:n,height:o,width:r}}=s;e.top=n,e.left=t,e.bottom=n+o,e.right=t+r,e.width=r,e.height=o}else{const{processEventData:t}=c._meta.component;t&&t(e,r,s)}c.dispatchEvent(function(e,t,n){return function(e){return["onTouchDown","onTouchMove","onTouchEnd","onTouchCancel"].indexOf(e)>=0}(e)&&Object.assign(t,{touches:{0:{clientX:n.page_x,clientY:n.page_y},length:1}}),t}(r,e,s),l,t)}}catch(e){console.error("receiveComponentEvent error",e)}}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=ls);const us={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},ds=(...e)=>`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`,fs="[-+]?\\d*\\.?\\d+",ps={rgb:new RegExp("rgb"+ds(fs,fs,fs)),rgba:new RegExp("rgba"+ds(fs,fs,fs,fs)),hsl:new RegExp("hsl"+ds(fs,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+ds(fs,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",fs)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/},hs=e=>{const t=parseInt(e,10);return t<0?0:t>255?255:t},ms=e=>{const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},ys=(e,t,n)=>{let o=n;return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+6*(t-e)*o:o<.5?t:o<2/3?e+(t-e)*(2/3-o)*6:e},gs=(e,t,n)=>{const o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,i=ys(r,o,e+1/3),s=ys(r,o,e),a=ys(r,o,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*a)<<8},vs=e=>(parseFloat(e)%360+360)%360/360,bs=e=>{const t=parseFloat(e);return t<0?0:t>100?1:t/100};function _s(e){if("string"==typeof e&&-1!==e.indexOf("var("))return e;let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ps.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(us,e)?us[e]:(t=ps.rgb.exec(e),Array.isArray(t)?(hs(t[1])<<24|hs(t[2])<<16|hs(t[3])<<8|255)>>>0:(t=ps.rgba.exec(e),t?(hs(t[1])<<24|hs(t[2])<<16|hs(t[3])<<8|ms(t[4]))>>>0:(t=ps.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ps.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=ps.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ps.hsl.exec(e),t?(255|gs(vs(t[1]),bs(t[2]),bs(t[3])))>>>0:(t=ps.hsla.exec(e),t?(gs(vs(t[1]),bs(t[2]),bs(t[3]))|ms(t[4]))>>>0:null))))))))}(e);if(null===t)throw new Error("Bad color value: "+e);return t=(t<<24|t>>>8)>>>0,t}const ws={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor",caretColor:"caret-color"};var $s;function Ss(){const e=Wa.Localization;return!!e&&e.direction===$s.RTL}!function(e){e[e.RTL=1]="RTL"}($s||($s={}));const xs=new Map;function ks(e){return xs.get(e)||{}}class Os{constructor(){this.specificity=0}lookupSort(e,t){e.sortAsUniversal(t||this)}removeSort(e,t){e.removeAsUniversal(t||this)}trackChanges(e,t){this.dynamic&&t.addAttribute(e,"")}}class Ns extends Os{constructor(){super(...arguments),this.rarity=0}accumulateChanges(e,t){return this.dynamic?!!this.mayMatch(e)&&(this.trackChanges(e,t),!0):this.match(e)}mayMatch(e){return this.match(e)}match(e){return!1}}function Cs(e){return e?` ${e} `:""}const Es=(e,t)=>{const n=e.attributes[t];return void 0!==n?n:Array.isArray(e.styleScopeId)&&e.styleScopeId.includes(t)?t:void 0};class Is extends Ns{constructor(e){super(),this.specificity=e.reduce((e,t)=>t.specificity+e,0),this.head=e.reduce((e,t)=>!e||e instanceof Ns&&t.rarity>e.rarity?t:e,null),this.dynamic=e.some(e=>e.dynamic),this.selectors=e}toString(){return`${this.selectors.join("")}${Cs(this.combinator||"")}`}match(e){return!!e&&this.selectors.every(t=>t.match(e))}mayMatch(e){return!!e&&this.selectors.every(t=>t.mayMatch(e))}trackChanges(e,t){this.selectors.forEach(n=>n.trackChanges(e,t))}lookupSort(e,t){this.head&&this.head instanceof Ns&&this.head.lookupSort(e,t||this)}removeSort(e,t){this.head&&this.head instanceof Ns&&this.head.removeSort(e,t||this)}}const As=(()=>{try{return!!new RegExp("foo","y")}catch(e){return!1}})(),Ts={whiteSpaceRegEx:"\\s*",universalSelectorRegEx:"\\*",simpleIdentifierSelectorRegEx:"(#|\\.|:|\\b)([_-\\w][_-\\w\\d]*)",attributeSelectorRegEx:"\\[\\s*([_-\\w][_-\\w\\d]*)\\s*(?:(=|\\^=|\\$=|\\*=|\\~=|\\|=)\\s*(?:([_-\\w][_-\\w\\d]*)|\"((?:[^\\\\\"]|\\\\(?:\"|n|r|f|\\\\|0-9a-f))*)\"|'((?:[^\\\\']|\\\\(?:'|n|r|f|\\\\|0-9a-f))*)')\\s*)?\\]",combinatorRegEx:"\\s*(\\+|~|>)?\\s*"},Ps={};function js(e,t,n){let o="";As&&(o="gy"),Ps[e]||(Ps[e]=new RegExp(Ts[e],o));const r=Ps[e];let i;if(As)r.lastIndex=n||0,i=r.exec(t);else{if(t=t.slice(n,t.length),i=r.exec(t),!i)return{result:null,regexp:r};r.lastIndex=n||0+i[0].length}return{result:i,regexp:r}}function Ls(e,t){return function(e,t){const{result:n,regexp:o}=js("universalSelectorRegEx",e,t);return n?{value:{type:"*"},start:t,end:o.lastIndex}:null}(e,t)||function(e,t){const{result:n,regexp:o}=js("simpleIdentifierSelectorRegEx",e,t);if(!n)return null;const r=o.lastIndex;return{value:{type:n[1],identifier:n[2]},start:t,end:r}}(e,t)||function(e,t){const{result:n,regexp:o}=js("attributeSelectorRegEx",e,t);if(!n)return null;const r=o.lastIndex,i=n[1];if(n[2]){return{value:{type:"[]",property:i,test:n[2],value:n[3]||n[4]||n[5]},start:t,end:r}}return{value:{type:"[]",property:i},start:t,end:r}}(e,t)}function Ms(e,t){let n=Ls(e,t);if(!n)return null;let{end:o}=n;const r=[];for(;n;)r.push(n.value),({end:o}=n),n=Ls(e,o);return{start:t,end:o,value:r}}function Ds(e,t){const{result:n,regexp:o}=js("combinatorRegEx",e,t);if(!n)return null;let r;r=As?o.lastIndex:t;return{start:t,end:r,value:n[1]||" "}}class Fs{constructor(e,t,n){e.forEach(e=>(e.ruleSet=this,null)),this.hash=n,this.selectors=e,this.declarations=t}toString(){return`${this.selectors.join(", ")} {${this.declarations.map((e,t)=>`${0===t?" ":""}${e.property}: ${e.value}`).join("; ")}}`}lookupSort(e){this.selectors.forEach(t=>t.lookupSort(e))}removeSort(e){this.selectors.forEach(t=>t.removeSort(e))}}class Rs extends Ns{constructor(e,t="",n=""){super(),this.attribute="",this.test="",this.value="",this.specificity=256,this.rarity=0,this.dynamic=!0,this.attribute=e,this.test=t,this.value=n}match(e){if(!this.test)return!(!e||!e.attributes)&&!mi(Es(e,this.attribute));if(!this.value)return!1;if(!e||!e.attributes)return!1;const t=""+Es(e,this.attribute);if("="===this.test)return t===this.value;if("^="===this.test)return t.startsWith(this.value);if("$="===this.test)return t.endsWith(this.value);if("*="===this.test)return-1!==t.indexOf(this.value);if("~="===this.test){const e=t.split(" ");return e&&-1!==e.indexOf(this.value)}return"|="===this.test&&(t===this.value||t.startsWith(this.value+"-"))}toString(){return`[${this.attribute}${Cs(this.test)}${this.test&&this.value||""}]${Cs(this.combinator||"")}`}mayMatch(){return!0}trackChanges(e,t){t.addAttribute(e,this.attribute)}}class Vs extends Ns{constructor(e){super(),this.specificity=256,this.rarity=2,this.dynamic=!1,this.className=e}toString(){return`.${this.className}${Cs(this.combinator||"")}`}match(e){var t;return!!e&&(!!(null===(t=e.classList)||void 0===t?void 0:t.size)&&e.classList.has(this.className))}lookupSort(e,t){e.sortByClass(this.className,t||this)}removeSort(e,t){e.removeByClass(this.className,t||this)}}class Bs extends Ns{constructor(e){super(),this.specificity=65536,this.rarity=3,this.dynamic=!1,this.id=e}toString(){return`#${this.id}${Cs(this.combinator||"")}`}match(e){return!!e&&e.id===this.id}lookupSort(e,t){e.sortById(this.id,null!=t?t:this)}removeSort(e,t){e.removeById(this.id,null!=t?t:this)}}class Us extends Ns{constructor(e){super(),this.specificity=0,this.rarity=4,this.dynamic=!1,this.combinator=void 0,this.err=e}toString(){return``}match(){return!1}}class Hs extends Ns{constructor(e){super(),this.specificity=256,this.rarity=0,this.dynamic=!0,this.cssPseudoClass=e}toString(){return`:${this.cssPseudoClass}${Cs(this.combinator||"")}`}match(e){return!!e}mayMatch(){return!0}trackChanges(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}class Ws{constructor(e){this.selectors=e,this.dynamic=e.some(e=>e.dynamic)}match(e){let t=e;if(!t)return;return this.selectors.every((e,n)=>(0!==n&&(t=null==t?void 0:t.parentNode),!!t&&!!e.match(t)))?t:void 0}mayMatch(e){let t=e;if(!t)return;return this.selectors.every((e,n)=>(0!==n&&(t=null==t?void 0:t.parentNode),!!t&&!!e.mayMatch(t)))?t:void 0}trackChanges(e,t){let n=e;this.selectors.forEach((e,o)=>{0!==o&&(n=null==n?void 0:n.parentNode),n&&e.trackChanges(n,t)})}}class zs{constructor(e){this.selectors=e,this.dynamic=e.some(e=>e.dynamic)}match(e){let t=e;if(!t)return;return this.selectors.every((e,n)=>(0!==n&&(t=null==t?void 0:t.nextSibling),!!t&&!!e.match(t)))?t:void 0}mayMatch(e){let t=e;if(!t)return;return this.selectors.every((e,n)=>(0!==n&&(t=null==t?void 0:t.nextSibling),!!t&&!!e.mayMatch(t)))?t:void 0}trackChanges(e,t){let n=e;this.selectors.forEach((e,o)=>{0!==o&&(n=null==n?void 0:n.nextSibling),n&&e.trackChanges(n,t)})}}class Ys extends Os{constructor(e){super();const t=[void 0," ",">","+"];let n=[],o=[];const r=[];this.selectors=e,this.selectors.reverse().forEach(e=>{if(-1===t.indexOf(e.combinator))throw new Error(`Unsupported combinator "${e.combinator}".`);void 0!==e.combinator&&" "!==e.combinator||r.push(o=[n=[]]),">"===e.combinator&&o.push(n=[]),n.push(e)}),this.groups=r.map(e=>new Ws(e.map(e=>new zs(e))));const[i]=e;this.last=i,this.specificity=e.reduce((e,t)=>t.specificity+e,0),this.dynamic=e.some(e=>e.dynamic)}toString(){return this.selectors.join("")}match(e){let t=e;return this.groups.every((n,o)=>{if(0===o)return t=n.match(e),!!t;let r=t;for(;r=null==r?void 0:r.parentNode;)if(t=n.match(r))return!0;return!1})}lookupSort(e){this.last.lookupSort(e,this)}removeSort(e){this.last.removeSort(e,this)}accumulateChanges(e,t){let n=e;if(!this.dynamic)return this.match(n);const o=[],r=this.groups.every((t,r)=>{if(0===r){const r=t.mayMatch(e);return o.push({left:e,right:e}),n=r,!!n}let i=e;for(;i=i.parentNode;){const e=t.mayMatch(i);if(e)return o.push({left:i,right:void 0}),n=e,!0}return!1});if(!r)return!1;if(!t)return r;for(let e=0;e{if(!As){if(""===e)return;n=0}do{const t=Ms(e,n);if(!t){if(c)return null;break}({end:n}=t),s&&(l[1]=s.value),l=[t.value,void 0],i.push(l),s=Ds(e,n),s&&({end:n}=s),c=!(!s||" "===s.value)}while(s)}),{start:t,end:n,value:i}}(e);return t?function(e){if(0===e.length)return new Us(new Error("Empty selector."));if(1===e.length)return Js(e[0][0]);const t=[];for(let n=0;ne.lookupSort(this))}append(e){this.ruleSets=this.ruleSets.concat(e),e.forEach(e=>e.lookupSort(this))}delete(e){const t=[];this.ruleSets=this.ruleSets.filter(n=>n.hash!==e||(t.push(n),!1)),t.forEach(e=>e.removeSort(this))}query(e){const{tagName:t,id:n,classList:o}=e,r=[this.universal,this.id[n],this.type[t]];o.size&&o.forEach(e=>r.push(this.class[e]));const i=r.filter(e=>!!e).reduce((e,t)=>e.concat(t||[]),[]),s=new Qs;return s.selectors=i.filter(t=>t.sel.accumulateChanges(e,s)).sort((e,t)=>e.sel.specificity-t.sel.specificity||e.pos-t.pos).map(e=>e.sel),s}sortById(e,t){this.addToMap(this.id,e,t)}sortByClass(e,t){this.addToMap(this.class,e,t)}sortByType(e,t){this.addToMap(this.type,e,t)}removeById(e,t){this.removeFromMap(this.id,e,t)}removeByClass(e,t){this.removeFromMap(this.class,e,t)}removeByType(e,t){this.removeFromMap(this.type,e,t)}sortAsUniversal(e){this.universal.push(this.makeDocSelector(e))}removeAsUniversal(e){const t=this.universal.findIndex(t=>{var n,o;return(null===(n=t.sel.ruleSet)||void 0===n?void 0:n.hash)===(null===(o=e.ruleSet)||void 0===o?void 0:o.hash)});-1!==t&&this.universal.splice(t)}addToMap(e,t,n){const o=e;this.position+=1;const r=o[t];r?r.push(this.makeDocSelector(n)):o[t]=[this.makeDocSelector(n)]}removeFromMap(e,t,n){const o=e[t],r=o.findIndex(e=>{var t,o;return(null===(t=e.sel.ruleSet)||void 0===t?void 0:t.hash)===(null===(o=n.ruleSet)||void 0===o?void 0:o.hash)});-1!==r&&o.splice(r,1)}makeDocSelector(e){return this.position+=1,{sel:e,pos:this.position}}}const ta={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode"),moveNode:Symbol("moveNode"),updateEvent:Symbol("updateEvent")};let na,oa=!0,ra=[];function ia(e=[],t){e.forEach(e=>{if(e){const{id:n,eventList:o}=e;o.forEach(e=>{const{name:o,type:r,listener:i}=e;let s;s=function(e){return!!os[e]}(o)?os[o]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(o),r===ns&&t.removeEventListener(n,s,i),r===ts&&(t.removeEventListener(n,s,i),t.addEventListener(n,s,i))})}})}function sa(e,t){0}function aa(t){if(!oa)return;if(oa=!1,0===ra.length)return void(oa=!0);const{$nextTick:n,$options:{rootViewId:o}}=t;n(()=>{const t=function(e){const t=[];for(let n=0;n{switch(e.type){case ta.createNode:sa(e.printedNodes),n.create(e.nodes),ia(e.eventNodes,n);break;case ta.updateNode:sa(e.printedNodes),n.update(e.nodes),ia(e.eventNodes,n);break;case ta.deleteNode:sa(e.printedNodes),n.delete(e.nodes);break;case ta.moveNode:sa(e.printedNodes),n.move(e.nodes);break;case ta.updateEvent:ia(e.eventNodes,n)}}),n.build(),oa=!0,ra=[]})}function ca(){if(!na||e.__HIPPY_VUE_STYLES__){const t=function(e=[]){const t=ci();return e.map(e=>{const n=e.declarations.filter(qs).map(function(e){return t=>{const n=e(t);return n}}(t)),o=e.selectors.map(Zs);return new Fs(o,n,e.hash)})}(e.__HIPPY_VUE_STYLES__);na?na.append(t):na=new ea(t),e.__HIPPY_VUE_STYLES__=void 0}return e.__HIPPY_VUE_DISPOSE_STYLES__&&(e.__HIPPY_VUE_DISPOSE_STYLES__.forEach(e=>{na.delete(e)}),e.__HIPPY_VUE_DISPOSE_STYLES__=void 0),na}function la(e){const t={};return e.meta.component.defaultNativeProps&&Object.keys(e.meta.component.defaultNativeProps).forEach(n=>{if(void 0!==e.getAttribute(n))return;const o=e.meta.component.defaultNativeProps[n];pi(o)?t[n]=o(e):t[n]=o}),Object.keys(e.attributes).forEach(n=>{let o=e.getAttribute(n);if(!e.meta.component.attributeMaps||!e.meta.component.attributeMaps[n])return void(t[n]=o);const r=e.meta.component.attributeMaps[n];if("string"==typeof r)return void(t[r]=o);if(pi(r))return void(t[n]=r(o));const{name:i,propsValue:s,jointKey:a}=r;pi(s)&&(o=s(o)),a?(t[a]=t[a]||{},Object.assign(t[a],{[i]:o})):t[i]=o}),e.meta.component.nativeProps&&Object.assign(t,e.meta.component.nativeProps),t}function ua(e){const t=Object.create(null);try{ca().query(e).selectors.forEach(n=>{(function(e,t){return!(!t||!e)&&e.match(t)})(n,e)&&n.ruleSet.declarations.forEach(e=>{t[e.property]=e.value})})}catch(e){console.error("getDomCss Error:",e)}return t}function da(e){let t=void 0;const n=e.events;if(n){const o=[];Object.keys(n).forEach(e=>{const{name:t,type:r,isCapture:i,listener:s}=n[e];o.push({name:t,type:r,isCapture:i,listener:s})}),t={id:e.nodeId,eventList:o}}return t}function fa(e,t,n={},o=!1){var r;if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: "+t.tagName);let i;if(o)i=ks(t.nodeId);else{if(i=ua(t),i=l(l({},i),t.style),ii(),t.parentNode){const e=ks(t.parentNode.nodeId);["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"].forEach(t=>{!i[t]&&e[t]&&(i[t]=e[t])})}t.meta.component.defaultNativeStyle&&(i=l(l({},t.meta.component.defaultNativeStyle),i)),function(e,t){xs.set(e,t)}(t.nodeId,i)}const s={id:t.nodeId,pId:(null===(r=t.parentNode)||void 0===r?void 0:r.nodeId)||e,name:t.meta.component.name,props:l(l({},la(t)),{},{style:i}),tagName:t.tagName};!function(e){if(e.props.__modalFirstChild__){const t=e.props.style;Object.keys(t).some(e=>"position"===e&&"absolute"===t[e]&&(["position","left","right","top","bottom"].forEach(e=>delete t[e]),!0))}}(s),function(e,t,n){"View"===e.meta.component.name&&("scroll"===n.overflowX&&n.overflowY,"scroll"===n.overflowY?t.name="ScrollView":"scroll"===n.overflowX&&(t.name="ScrollView",t.props.horizontal=!0,n.flexDirection=Ss()?"row-reverse":"row"),"ScrollView"===t.name&&(e.childNodes.length,e.childNodes.length&&e.childNodes[0].setStyle("collapsable",!1)),n.backgroundImage&&(n.backgroundImage=hi(n.backgroundImage)))}(t,s,i),function(e,t){"TextInput"===e.meta.component.name&&Ss()&&(t.textAlign||(t.textAlign="right"))}(t,i);const a=da(t);let c=void 0;return[[s,n],a,c]}function pa(e,t,n,o={}){const r=[],i=[],s=[];return t.traverseChildren((t,o)=>{const[a,c,l]=fa(e,t,o);a&&r.push(a),c&&i.push(c),l&&s.push(l),"function"==typeof n&&n(t)},o),[r,i,s]}function ha(e,t,n={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;const o=ai();if(!o)return;const{$options:{rootViewId:r,rootView:i}}=o,s=function(e,t){return 3===e.nodeId||e.id===t.slice(1-t.length)}(e,i)&&!e.isMounted,a=e.isMounted&&!t.isMounted;if(s||a){const[i,a,c]=pa(r,s?e:t,e=>{var t,n;e.isMounted||(e.isMounted=!0),t=e,n=e.nodeId,Xi.set(n,t)},n);ra.push({type:ta.createNode,nodes:i,eventNodes:a,printedNodes:c}),aa(o)}}function ma(e){if(!e.isMounted)return;const t=ai(),n=da(e);ra.push({type:ta.updateEvent,nodes:[],eventNodes:[n],printedNodes:[]}),aa(t)}function ya(e,t=!1){if(!e.isMounted)return;const n=ai(),{$options:{rootViewId:o}}=n,[r,i,s]=fa(o,e,{},t);r&&(ra.push({type:ta.updateNode,nodes:r?[r]:[],eventNodes:i?[i]:[],printedNodes:[]}),aa(n))}function ga(e){if(!e.isMounted)return;const t=ai(),{$options:{rootViewId:n}}=t,[o,r,i]=pa(n,e);ra.push({type:ta.updateNode,nodes:o,eventNodes:r,printedNodes:i}),aa(t)}const va=new Set;let ba,_a=!1;const wa={exitApp(){Wa.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(_a||(_a=!0,wa.initEventListener()),Wa.callNative("DeviceEventModule","setListenBackPress",!0),va.add(e),{remove(){wa.removeListener(e)}}),removeListener(e){va.delete(e),0===va.size&&Wa.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){ba||(ba=ai()),ba.$on("hardwareBackPress",()=>{let e=!0;Array.from(va).reverse().every(t=>"function"!=typeof t||!t()||(e=!1,!1)),e&&wa.exitApp()})}},$a={exitApp(){},addListener:()=>({remove(){}}),removeListener(){},initEventListener(){}},Sa="android"===Hippy.device.platform.OS?wa:$a;let xa;const ka=new Map;class Oa{constructor(e,t){this.eventName=e,this.listener=t}remove(){this.eventName&&this.listener&&(Na(this.eventName,this.listener),this.listener=void 0)}}function Na(e,t){if(t instanceof Oa)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange");const o=ka.get(t);o&&(xa||(xa=ai()),xa.$off(n,o),ka.delete(t),ka.size<1&&Wa.callNative("NetInfo","removeListener",n))}var Ca=Object.freeze({__proto__:null,addEventListener:function(e,t){if("function"!=typeof t)return;let n=e;return"change"===n&&(n="networkStatusDidChange"),0===ka.size&&Wa.callNative("NetInfo","addListener",n),xa||(xa=ai()),xa.$on(n,t),ka.set(t,t),new Oa(n,t)},removeEventListener:Na,fetch:function(){return Wa.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)},NetInfoRevoker:Oa});const{on:Ea,off:Ia,emit:Aa,bridge:{callNative:Ta,callNativeWithPromise:Pa,callNativeWithCallbackId:ja},device:{platform:{OS:La,Localization:Ma={}},screen:{scale:Da}},device:Fa,document:Ra,register:Va}=Hippy,Ba={},Ua=["%c[native]%c","color: red","color: auto"],Ha=function(e,t){const n={top:-1,left:-1,bottom:-1,right:-1,width:-1,height:-1};if(!e.isMounted||!e.nodeId)return Promise.resolve(n);const{nodeId:o}=e;return ui(...Ua,"callUIFunction",{nodeId:o,funcName:t,params:[]}),new Promise(e=>Ra.callUIFunction(o,t,[],t=>{if(!t||"object"!=typeof t||void 0===o)return e(n);const{x:r,y:i,height:s,width:a}=t;return e({top:i,left:r,width:a,height:s,bottom:i+s,right:r+a})}))},Wa={callNative:Ta,callNativeWithPromise:Pa,callNativeWithCallbackId:ja,UIManagerModule:Ra,ConsoleModule:e.ConsoleModule||e.console,on:Ea,off:Ia,emit:Aa,PixelRatio:Da,Platform:La,Localization:Ma,version:"unspecified",Cookie:{getAll(e){if(!e)throw new TypeError("Vue.Native.Cookie.getAll() must have url argument");return Pa.call(this,"network","getCookie",e)},set(e,t,n){if(!e)throw new TypeError("Vue.Native.Cookie.getAll() must have url argument");if("string"!=typeof t)throw new TypeError("Vue.Native.Cookie.getAll() only receive string type of keyValue");let o="";if(n){if(!(n instanceof Date))throw new TypeError("Vue.Native.Cookie.getAll() only receive Date type of expires");o=n.toUTCString()}Ta.call(this,"network","setCookie",e,t,o)}},Clipboard:{getString(){return Pa.call(this,"ClipboardModule","getString")},setString(e){Ta.call(this,"ClipboardModule","setString",e)}},get isIPhoneX(){if(!p(Ba.isIPhoneX)){let e=!1;"ios"===Wa.Platform&&(e=20!==Wa.Dimensions.screen.statusBarHeight),Ba.isIPhoneX=e}return Ba.isIPhoneX},get screenIsVertical(){return Wa.Dimensions.window.widthHa(e,"measureInWindow"),measureInAppWindow:e=>"android"===Wa.Platform?Ha(e,"measureInWindow"):Ha(e,"measureInAppWindow"),getBoundingClientRect(e,t){const{nodeId:n}=e;return new Promise((o,r)=>{if(!e.isMounted||!n)return r(new Error(`getBoundingClientRect cannot get nodeId of ${e} or ${e} is not mounted`));ui(...Ua,"UIManagerModule",{nodeId:n,funcName:"getBoundingClientRect",params:t}),Ra.callUIFunction(n,"getBoundingClientRect",[t],e=>{if(!e||e.errMsg)return r(new Error((null==e?void 0:e.errMsg)||"getBoundingClientRect error with no response"));const{x:t,y:n,width:i,height:s}=e;let a=0,c=0;return"number"==typeof n&&"number"==typeof s&&(a=n+s),"number"==typeof t&&"number"==typeof i&&(c=t+i),o({x:t,y:n,width:i,height:s,bottom:a,right:c,left:t,top:n})})})},parseColor(e,t={platform:Wa.Platform}){if(Number.isInteger(e))return e;const n=Ba.COLOR_PARSER||(Ba.COLOR_PARSER=Object.create(null));return n[e]||(n[e]=_s(e)),n[e]},AsyncStorage:e.Hippy.asyncStorage,BackAndroid:Sa,ImageLoader:{getSize(e){return Pa.call(this,"ImageLoaderModule","getSize",e)},prefetch(e){Ta.call(this,"ImageLoaderModule","prefetch",e)}},NetInfo:Ca,getElemCss:ua};let za=0;e.__GLOBAL__&&Number.isInteger(e.__GLOBAL__.nodeId)&&(za=e.__GLOBAL__.nodeId);class Ya{constructor(){this._ownerDocument=null,this._isMounted=!1,this.nodeId=(za+=1,za%10==0&&(za+=1),za%10==0&&(za+=1),za),this.index=0,this.childNodes=[]}toString(){return this.constructor.name}get firstChild(){return this.childNodes.length?this.childNodes[0]:null}get lastChild(){const e=this.childNodes.length;return e?this.childNodes[e-1]:null}get meta(){return this._meta?this._meta:{}}get ownerDocument(){if(this._ownerDocument)return this._ownerDocument;let e=this;for(;"DocumentNode"!==e.constructor.name&&(e=e.parentNode,e););return this._ownerDocument=e,e}get isMounted(){return this._isMounted}set isMounted(e){this._isMounted=e}insertBefore(e,t){if(!e)throw new Error("Can't insert child.");if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't insert child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't insert child, because it already has a different parent.");const n=this.childNodes.indexOf(t);let o=t;return t.meta.skipAddToDom&&(o=Qi(this.childNodes,n)),e.parentNode=this,e.nextSibling=t,e.prevSibling=this.childNodes[n-1],this.childNodes[n-1]&&(this.childNodes[n-1].nextSibling=e),t.prevSibling=e,this.childNodes.splice(n,0,e),o.meta.skipAddToDom?ha(this,e):ha(this,e,{refId:o.nodeId,relativeToRef:es})}moveChild(e,t){if(!e)throw new Error("Can't move child.");if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't move child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't move child, because it already has a different parent.");const n=this.childNodes.indexOf(e),o=this.childNodes.indexOf(t);let r=t;if(t.meta.skipAddToDom&&(r=Qi(this.childNodes,o)),o===n)return e;e.nextSibling=t,e.prevSibling=t.prevSibling,t.prevSibling=e,this.childNodes[o-1]&&(this.childNodes[o-1].nextSibling=e),this.childNodes[o+1]&&(this.childNodes[o+1].prevSibling=e),this.childNodes[n-1]&&(this.childNodes[n-1].nextSibling=this.childNodes[n+1]),this.childNodes[n+1]&&(this.childNodes[n+1].prevSibling=this.childNodes[n-1]),this.childNodes.splice(n,1);const i=this.childNodes.indexOf(t);return this.childNodes.splice(i,0,e),r.meta.skipAddToDom?ha(this,e):function(e,t,n={}){if((null==e?void 0:e.meta)&&pi(e.meta.removeChild)&&e.meta.removeChild(e,t),!t||t.meta.skipAddToDom)return;if(n&&n.refId===t.nodeId)return;const o=ai(),{$options:{rootViewId:r}}=o,i={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},s=[[i,n]],a=[];ra.push({printedNodes:a,type:ta.moveNode,nodes:s,eventNodes:[]}),aa(o)}(this,e,{refId:r.nodeId,relativeToRef:es})}appendChild(e){if(!e)throw new Error("Can't append child.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");this.lastChild!==e&&(e.isMounted&&this.removeChild(e),e.parentNode=this,this.lastChild&&(e.prevSibling=this.lastChild,this.lastChild.nextSibling=e),this.childNodes.push(e),ha(this,e))}removeChild(e){if(!e)throw new Error("Can't remove child.");if(!e.parentNode)throw new Error("Can't remove child, because it has no parent.");if(e.parentNode!==this)throw new Error("Can't remove child, because it has a different parent.");if(e.meta.skipAddToDom)return;e.prevSibling&&(e.prevSibling.nextSibling=e.nextSibling),e.nextSibling&&(e.nextSibling.prevSibling=e.prevSibling),e.prevSibling=void 0,e.nextSibling=void 0;const t=this.childNodes.indexOf(e);this.childNodes.splice(t,1),function(e,t){if(!t||t.meta.skipAddToDom)return;t.isMounted=!1;const n=ai(),{$options:{rootViewId:o}}=n,r={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:o},i=[[r,{}]],s=[];ra.push({printedNodes:s,type:ta.deleteNode,nodes:i,eventNodes:[]}),aa(n)}(0,e)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(let t=0;t{this.traverseChildren.call(t,e,{})})}}class Ka extends Ya{constructor(e){super(),this.text=e,this._meta={symbol:_i,skipAddToDom:!0}}setText(e){this.text=e,"function"==typeof this.parentNode.setText&&this.parentNode.setText(e)}}const Ga={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},qa="turn",Xa="rad",Ja="deg",Za="beforeLoadStyleDisabled",Qa="class",ec="id",tc="text",nc="value",oc="defaultValue",rc="placeholder",ic="numberOfRows",sc="caretColor",ac="caret-color",cc="break-strategy",lc="placeholderTextColor",uc="placeholder-text-color",dc="underlineColorAndroid",fc="underline-color-android",pc="nativeBackgroundAndroid",hc={textShadowOffsetX:"width",textShadowOffsetY:"height"};function mc(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=i(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(!Array.isArray(n))return;let o="180";const[r,s,a]=n;return s&&a?o=function(e,t=Ja){const n=parseFloat(e);let o=e||"";const[,r]=e.split(".");switch(r&&r.length>2&&(o=n.toFixed(2)),t){case qa:o=""+(360*n).toFixed(2);break;case Xa:o=""+(180/Math.PI*n).toFixed(2)}return o}(s,a):r&&void 0!==Ga[r]&&(o=Ga[r]),o}function yc(e){const t=(e||"").replace(/\s+/g," ").trim(),[n,o]=t.split(/\s+(?![^(]*?\))/),r=/^([+-]?\d+\.?\d*)%$/g;return!n||r.exec(n)||o?n&&r.exec(o)?{ratio:parseFloat(o.split("%")[0])/100,color:Wa.parseColor(n)}:void 0:{color:Wa.parseColor(n)}}function gc(e,t,n){"backgroundImage"===e&&n.linearGradient&&delete n.linearGradient}function vc(e,t,n){void 0===t&&(delete n[e],gc(e,0,n),function(e,t,n){"textShadowOffsetX"!==e&&"textShadowOffsetY"!==e||!n.textShadowOffset||(delete n.textShadowOffset[hc[e]],0===Object.keys(n.textShadowOffset).length&&delete n.textShadowOffset)}(e,0,n))}function bc(e,t){if("string"!=typeof e)return;const n=e.split(",");for(let e=0,o=n.length;ee.trim()));if(function(e,t){if(e.size!==t.size)return!1;const n=e.values();let o=n.next().value;for(;o;){if(!t.has(o))return!1;o=n.next().value}return!0}(this.classList,e))return;return this.classList=e,void(!n.notToNative&&ga(this))}case ec:if(r===this.id)return;return this.id=r,void(!n.notToNative&&ga(this));case tc:case nc:case oc:case rc:if("string"!=typeof r)try{r=r.toString()}catch(e){e.message}n&&n.textUpdate||(r=function(e){return"string"!=typeof e?e:!oi||void 0===oi.config.trimWhitespace||oi.config.trimWhitespace?e.trim().replace(/Â/g," "):e.replace(/Â/g," ")}(r)),r=function(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)))}(r);break;case ic:if("ios"!==Wa.Platform)return;break;case sc:case ac:o="caret-color",r=Wa.parseColor(r);break;case cc:o="breakStrategy";break;case lc:case uc:o="placeholderTextColor",r=Wa.parseColor(r);break;case dc:case fc:o="underlineColorAndroid",r=Wa.parseColor(r);break;case pc:{const e=r;void 0!==e.color&&(e.color=Wa.parseColor(e.color)),o="nativeBackgroundAndroid",r=e;break}}if(this.attributes[o]===r)return;this.attributes[o]=r,"function"==typeof this.filterAttribute&&this.filterAttribute(this.attributes),!n.notToNative&&ya(this,n.notUpdateStyle)}catch(e){0}}removeAttribute(e){delete this.attributes[e]}setStyles(e){e&&"object"==typeof e&&0!==Object.keys(e).length&&(Object.keys(e).forEach(t=>{const n=e[t];this.setStyle(t,n,!0)}),ya(this))}setStyle(e,t,n=!1){let o=e,r=t;if(this.getAttribute(Za)||({value:r,property:o}=this.beforeLoadStyle({property:e,value:t})),void 0===t)return vc(o,r,this.style),void(n||ya(this));switch(o){case"fontWeight":"string"!=typeof r&&(r=r.toString());break;case"backgroundImage":[o,r]=function(e,t,n){delete n[e],gc(e,t,n);let o=t,r=e;if(0===t.indexOf("linear-gradient")){r="linearGradient";const e=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),n=[];o={},e.forEach((e,t)=>{if(0===t){const t=mc(e);if(t)o.angle=t;else{o.angle="180";const t=yc(e);t&&n.push(t)}}else{const t=yc(e);t&&n.push(t)}}),o.colorStopList=n}else{const e=/(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t);e&&e.length>1&&([,o]=e)}return[r,o]}(o,r,this.style);break;case"textShadowOffsetX":case"textShadowOffsetY":[o,r]=function(e,t=0,n){return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[hc[e]]:t}),["textShadowOffset",n.textShadowOffset]}(o,r,this.style);break;case"textShadowOffset":{const{x:e=0,width:t=0,y:n=0,height:o=0}=r||{};r={width:e||t,height:n||o};break}default:Object.prototype.hasOwnProperty.call(ws,o)&&(o=ws[o]),"string"==typeof r&&(r=r.trim(),r=o.toLowerCase().indexOf("color")>=0?Wa.parseColor(r):function(e,t,n){if(e.endsWith)return e.endsWith(t,n);let o=n;return(void 0===o||o>e.length)&&(o=e.length),e.slice(o-t.length,o)===t}(r,"px")?parseFloat(r.slice(0,r.length-2)):function(e){if("number"==typeof e)return e;if("string"==typeof e&&fi.test(e))try{return parseFloat(e)}catch(e){}return e}(r))}null!=r&&this.style[o]!==r&&(this.style[o]=r,n||ya(this))}setNativeProps(e){if(e){const{style:t}=e;this.setStyles(t)}}repaintWithChildren(){ga(this)}setStyleScope(e){"string"!=typeof e&&(e=e.toString()),e&&!this.scopeIdList.includes(e)&&this.scopeIdList.push(e)}get styleScopeId(){return this.scopeIdList}isTextNode(e){return(null==e?void 0:e.meta.symbol)===_i}appendChild(e){(null==e?void 0:e.meta.symbol)===_i&&e instanceof Ka&&this.setText(e.text,{notToNative:!0}),super.appendChild(e)}insertBefore(e,t){this.isTextNode(e)&&e instanceof Ka&&this.setText(e.text,{notToNative:!0}),super.insertBefore(e,t)}moveChild(e,t){this.isTextNode(e)&&e instanceof Ka&&this.setText(e.text,{notToNative:!0}),super.moveChild(e,t)}removeChild(e){this.isTextNode(e)&&e instanceof Ka&&this.setText("",{notToNative:!0}),super.removeChild(e)}setText(e,t={}){return"textarea"===this.tagName?this.setAttribute("value",e,{notToNative:!!t.notToNative}):this.setAttribute("text",e,{notToNative:!!t.notToNative})}setListenerHandledType(e,t){this.events[e]&&(this.events[e].handledType=t)}isListenerHandled(e,t){return!this.events[e]||t===this.events[e].handledType}getNativeEventName(e){let t="on"+di(e);if(this.meta.component){const{eventNamesMap:n}=this.meta.component;(null==n?void 0:n[e])&&(t=n[e])}return t}addEventListener(e,t,n){if(this._emitter||(this._emitter=new qi(this)),"scroll"===e&&!(this.getAttribute("scrollEventThrottle")>0)){const e=200;this.attributes.scrollEventThrottle=e}"function"==typeof this.polyfillNativeEvents&&({eventNames:e,callback:t,options:n}=this.polyfillNativeEvents(is,e,t,n)),this._emitter.addEventListener(e,t,n),bc(e,e=>{const t=this.getNativeEventName(e);var n,o;this.events[t]?this.events[t]&&this.events[t].type!==ts&&(this.events[t].type=ts):this.events[t]={name:t,type:ts,listener:(n=t,o=e,e=>{const{id:t,currentId:r,params:i,eventPhase:s}=e,a={id:t,nativeName:n,originalName:o,currentId:r,params:i,eventPhase:s};ls.receiveComponentEvent(a,e)}),isCapture:!1}}),ma(this)}removeEventListener(e,t,n){if(!this._emitter)return null;"function"==typeof this.polyfillNativeEvents&&({eventNames:e,callback:t,options:n}=this.polyfillNativeEvents(ss,e,t,n));const o=this._emitter.removeEventListener(e,t,n);return bc(e,e=>{const t=this.getNativeEventName(e);this.events[t]&&(this.events[t].type=ns)}),ma(this),o}dispatchEvent(e,t,n){if(!(e instanceof Gi))throw new Error("dispatchEvent method only accept Event instance");e.currentTarget=this,e.target||(e.target=t||this,"string"==typeof e.value&&e.target&&(e.target.value=e.value)),this._emitter&&this._emitter.emit(e),!e.bubbles&&n&&n.stopPropagation()}getBoundingClientRect(){return Wa.measureInWindow(this)}scrollToPosition(e=0,t=0,n=1e3){if("number"!=typeof e||"number"!=typeof t)return;let o=n;!1===o&&(o=0),Wa.callUIFunction(this,"scrollToWithOptions",[{x:e,y:t,duration:o}])}scrollTo(e,t,n){let o=n;if("object"==typeof e&&e){const{left:t,top:n,behavior:r="auto"}=e;({duration:o}=e),this.scrollToPosition(t,n,"none"===r?0:o)}else this.scrollToPosition(e,t,n)}setPressed(e){Wa.callUIFunction(this,"setPressed",[e])}setHotspot(e,t){Wa.callUIFunction(this,"setHotspot",[e,t])}}class wc extends _c{constructor(e){super("comment"),this.text=e,this._meta={symbol:_i,skipAddToDom:!0}}}class $c extends _c{getValue(){return new Promise(e=>Wa.callUIFunction(this,"getValue",t=>e(t.text)))}setValue(e){Wa.callUIFunction(this,"setValue",[e])}focus(){Wa.callUIFunction(this,"focusTextInput",[])}blur(){Wa.callUIFunction(this,"blurTextInput",[])}isFocused(){return new Promise(e=>Wa.callUIFunction(this,"isFocused",t=>e(t.value)))}clear(){Wa.callUIFunction(this,"clear",[])}showInputMethod(){}hideInputMethod(){}}class Sc extends _c{scrollToIndex(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&Wa.callUIFunction(this,"scrollToIndex",[e,t,n])}scrollToPosition(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&Wa.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}class xc extends Ya{constructor(){super(),this.documentElement=new _c("document")}static createComment(e){return new wc(e)}static createElement(e){switch(e){case"input":case"textarea":return new $c(e);case"ul":return new Sc(e);default:return new _c(e)}}static createElementNS(e,t){return new _c(`${e}:${t}`)}static createTextNode(e){return new Ka(e)}static createEvent(e){return new Gi(e)}}var kc={create(e,t){Oc(t)},update(e,t){e.data.ref!==t.data.ref&&(Oc(e,!0),Oc(t))},destroy(e){Oc(e,!0)}};function Oc(e,t){const n=e.data.ref;if(!p(n))return;const o=e.context,r=e.componentInstance||e.elm,i=o.$refs;t?Array.isArray(i[n])?N(i[n],r):i[n]===r&&(i[n]=void 0):e.data.refInFor?Array.isArray(i[n])?i[n].indexOf(r)<0&&i[n].push(r):i[n]=[r]:i[n]=r}const Nc=new ve("",{},[]),Cc=["create","activate","update","remove","destroy"];function Ec(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&p(e.data)===p(t.data)&&function(e,t){if("input"!==e.tag)return!0;let n;const o=p(n=e.data)&&p(n=n.attrs)&&n.type,r=p(n=t.data)&&p(n=n.attrs)&&n.type;return o===r||Tn(o)&&Tn(r)}(e,t)||h(e.isAsyncPlaceholder)&&f(t.asyncFactory.error))}function Ic(e,t,n){let o,r;const i={};for(o=t;o<=n;++o)r=e[o].key,p(r)&&(i[r]=o);return i}var Ac={create:Tc,update:Tc,destroy:function(e){Tc(e,Nc)}};function Tc(e,t){(e.data.directives||t.data.directives)&&function(e,t){const n=e===Nc,o=t===Nc,r=jc(e.data.directives,e.context),i=jc(t.data.directives,t.context),s=[],a=[];let c,l,u;for(c in i)l=r[c],u=i[c],l?(u.oldValue=l.value,u.oldArg=l.arg,Mc(u,"update",t,e),u.def&&u.def.componentUpdated&&a.push(u)):(Mc(u,"bind",t,e),u.def&&u.def.inserted&&s.push(u));if(s.length){const o=()=>{for(let n=0;n{for(let n=0;n{const t=r[e],o=i[e];null!=t&&null==o&&(n[e]=void 0)}),Object.keys(i).forEach(e=>{const t=r[e],o=i[e];t!==o&&(n[e]=o)}),Object.keys(n).forEach(e=>{o.setAttribute(e,n[e])})}var Rc={create:Fc,update:Fc};function Vc(e,t){const{elm:n,data:o}=t,r=e.data;if(!(o.staticClass||o.class||r&&(r.staticClass||r.class)))return;let i=On(t);const s=n._transitionClasses;s&&(i=Cn(i,En(s))),i!==n._prevClass&&(n.setAttribute("class",i),n._prevClass=i)}var Bc={create:Vc,update:Vc};let Uc;function Hc(e,t,n,o){(o||Uc).removeEventListener(e)}function Wc(e,t,n,o,r){n||Uc.addEventListener(e,t)}function zc(e,t,n){const o=Uc;return function(){const n=t(...arguments);null!==n&&Hc(e,0,0,o)}}function Yc(e,t){if(!e.data.on&&!t.data.on)return;const n=t.data.on||{},o=e.data.on||{};Uc=t.elm,it(n,o,Wc,Hc,zc,t.context)}var Kc={create:Yc,update:Yc};const Gc=I(T);function qc(e){const t={};for(let n=0;n{const r=e[o],i=t[o];!mi(r)&&mi(i)&&(n[Gc(o)]=void 0)}),Object.keys(t).forEach(o=>{const r=e[o],i=t[o];mi(i)||i===r||(n[Gc(o)]=i)}),n}function Jc(e,t){if(!t.elm||!function(e,t){return!(!e.data&&!t.data)&&!!(e.data.style||t.data.style||e.data.staticStyle||t.data.staticStyle)}(e,t))return;const n=Xc(e.data.staticStyle||{},t.data.staticStyle||{}),o=e.data.style||{};let r=t.data.style||{};const i=r.__ob__;Array.isArray(r)&&(r=qc(r),t.data.style=r),i&&(r=F({},r),t.data.style=r);const s=Xc(o,r);t.elm.setStyles(l(l({},n),s))}var Zc=[Rc,Bc,Kc,{create:Jc,update:Jc}];function Qc(e,t){let n=!1;3===e.nodeId&&(n=!0),n&&(function(e,t,n={}){var o;if(!e||!e.data)return;let{elm:r}=e;if(t&&(r=t),!r)return;let i=(null===(o=e.data)||void 0===o?void 0:o.attrs)||{};i.__ob__&&(i=F({},i),e.data.attrs=i),Object.keys(i).forEach(e=>{r.setAttribute(e,i[e],{notToNative:!!n.notToNative})})}(t,e,{notToNative:!0}),function(e,t,n={}){if(!e||!e.data)return;let{elm:o}=e;if(t&&(o=t),!o)return;const{staticStyle:r}=e.data;r&&Object.keys(r).forEach(e=>{const t=r[e];t&&o.setStyle(Gc(e),t,!!n.notToNative)});let{style:i}=e.data;if(i){const t=i.__ob__;Array.isArray(i)&&(i=qc(i),e.data.style=i),t&&(i=F({},i),e.data.style=i),Object.keys(i).forEach(e=>{o.setStyle(Gc(e),i[e],!!n.notToNative)})}}(t,e,{notToNative:!0}),function(e,t,n={}){if(!e||!e.data)return;const{data:o}=e;if(!o.staticClass&&!o.class)return;let{elm:r}=e;if(t&&(r=t),!r)return;let i=On(e);const s=r._transitionClasses;s&&(i=Cn(i,En(s))),i!==r._prevClass&&(r.setAttribute("class",i,{notToNative:!!n.notToNative}),r._prevClass=i)}(t,e,{notToNative:!0}))}const el=function(e){let t,n;const o={},{modules:r,nodeOps:i}=e;for(t=0;tm?(u=f(n[b+1])?null:n[b+1].elm,v(e,u,n,h,b,o)):h>b&&_(t,d,m)}(l,y,g,n,c):p(g)?(p(e.text)&&i.setTextContent(l,""),v(l,null,g,0,g.length-1,n)):p(y)?_(y,0,y.length-1):p(e.text)&&i.setTextContent(l,""):e.text!==t.text&&i.setTextContent(l,t.text),p(m)&&p(u=m.hook)&&p(u=u.postpatch)&&u(e,t)}function k(e,t,n){if(h(n)&&p(e.parent))e.parent.data.pendingInsert=t;else for(let e=0;e=0?e.moveChild(t,n):e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t),Zi(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.setText(t)},setAttribute:function(e,t,n){e.setAttribute(t,n)},setStyleScope:function(e,t){e.setStyleScope(t)}}),modules:Zc.concat(Dc)});function tl(e,t){t!==e.attributes.defaultValue&&(e.attributes.defaultValue=t,e.setAttribute("text",t,{textUpdate:!0}))}let nl=function(e,t,n){t!==n&&e.setAttribute("defaultValue",t,{textUpdate:!0})};const ol={inserted(e,t){"ios"===Wa.Platform&&nl!==tl&&(nl=tl),"TextInput"===e.meta.component.name&&(e._vModifiers=t.modifiers,e.attributes.defaultValue=t.value,t.modifiers.lazy||e.addEventListener("change",({value:t})=>{const n=new Gi("input");n.value=t,e.dispatchEvent(n)}))},update(e,{value:t,oldValue:n}){e.value=t,nl(e,t,n)}};function rl(e,t,n,o){t?(n.data.show=!0,e.setStyle("display",o)):e.setStyle("display","none")}const il={bind(e,{value:t},n){void 0===e.style.display&&(e.style.display="block");const o="none"===e.style.display?"":e.style.display;e.__vOriginalDisplay=o,rl(e,t,n,o)},update(e,{value:t,oldValue:n},o){!t!=!n&&rl(e,t,o,e.__vOriginalDisplay)},unbind(e,t,n,o,r){r||(e.style.display=e.__vOriginalDisplay)}};var sl=Object.freeze({__proto__:null,model:ol,show:il});const al=['%c[Hippy-Vue "unspecified"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"],cl=new xc;gn.$document=cl,gn.prototype.$document=cl,gn.$Document=xc,gn.$Event=Gi,gn.config.mustUseProp=function(e,t,n){const o=Ki(e);return!!o.mustUseProp&&o.mustUseProp(t,n)},gn.config.isReservedTag=Ui,gn.config.isUnknownElement=function(e){return t=e,!Hi.has(zi(t));var t},gn.compile=ei,gn.registerElement=Yi,F(gn.options.directives,sl),gn.prototype.__patch__=el,gn.prototype.$mount=function(e,t){const n=this.$options;if(!n.render){const{template:e}=n;if(e&&"string"!=typeof e)return fe("invalid template option: "+e,this),this;if(e){const{render:t,staticRenderFns:o}=ei(e,{delimiters:n.delimiters,comments:n.comments},this);n.render=t,n.staticRenderFns=o}}return function(e,t,n){let o;return e.$el=t,e.$options.render||(e.$options.render=be),Xt(e,"beforeMount"),o=()=>{e._update(e._render(),n)},new an(e,o,R,{before(){e._isMounted&&!e._isDestroyed&&Xt(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Xt(e,"mounted")),e}(this,e,t)},gn.prototype.$start=function(e,t){var n;si(this),pi(this.$options.beforeLoadStyle)&&(n=this.$options.beforeLoadStyle,ri=n),Hi.forEach(e=>{gn.component(e.meta.component.name,e.meta.component)}),Va.regist(this.$options.appName,n=>{const{__instanceId__:o}=n;if(this.$options.$superProps=n,this.$options.rootViewId=o,ui(...al,"Start",this.$options.appName,"with rootViewId",o,n),this.$el){this.$destroy();si(new(gn.extend(this.$options))(this.$options))}if(pi(t)&&t(this,n),this.$mount(),"ios"===Wa.Platform){const e=function(e={}){const{iPhone:t}=e;let n={};if((null==t?void 0:t.statusBar)&&(n=t.statusBar),n.disabled)return null;const o=new _c("div"),{statusBarHeight:r}=Wa.Dimensions.screen;Wa.screenIsVertical?o.setStyle("height",r):o.setStyle("height",0);let i=4282431619;if("number"==typeof n.backgroundColor&&({backgroundColor:i}=n),o.setStyle("backgroundColor",i),"string"==typeof n.backgroundImage){const t=new _c("img");t.setStyle("width",Wa.Dimensions.screen.width),t.setStyle("height",r),t.setAttribute("src",e.statusBarOpts.backgroundImage),o.appendChild(t)}return o.addEventListener("layout",()=>{Wa.screenIsVertical?o.setStyle("height",r):o.setStyle("height",0)}),o}(this.$options);e&&(this.$el.childNodes.length?this.$el.insertBefore(e,this.$el.childNodes[0]):this.$el.appendChild(e))}pi(e)&&e(this,n)})};let ll=1;gn.component=function(e,t){return t?(v(t)&&(t.name=t.name||e,t=this.options._base.extend(t)),this.options.components[e]=t,t):this.options.components[e]},gn.extend=function(e){e=e||{};const t=this,n=t.cid,o=e._Ctor||(e._Ctor={});if(o[n])return o[n];const r=e.name||t.options.name,i=function(e){this._init(e)};return(i.prototype=Object.create(t.prototype)).constructor=i,ll+=1,i.cid=ll,i.options=Re(t.options,e),i.super=t,i.options.props&&function(e){const{props:t}=e.options;Object.keys(t).forEach(t=>ln(e.prototype,"_props",t))}(i),i.options.computed&&function(e){const{computed:t}=e.options;Object.keys(t).forEach(n=>fn(e.prototype,n,t[n]))}(i),i.extend=t.extend,i.mixin=t.mixin,i.use=t.use,z.forEach(e=>{i[e]=t[e]}),r&&(i.options.components[r]=i),i.superOptions=t.options,i.extendOptions=e,i.sealedOptions=F({},i.options),o[n]=i,i},gn.Native=Wa,gn.getApp=ai,gn.use((function(){Object.keys(Bi).forEach(e=>{Yi(e,Bi[e])})})),K.devtools&&ce&&ce.emit("init",gn);gn.config._setBeforeRenderToNative=(e,t)=>{pi(e)&&(1===t?ii=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))};const ul=new Proxy(gn,{construct(e,t){const n=new e(...t);return n}});let dl;e.process=e.process||{},e.process.env=e.process.env||{},e.WebSocket=class{constructor(e,t,n){this.webSocketId=-1,dl=ai(),this.url=e,this.readyState=0,this.webSocketCallbacks={},this.onWebSocketEvent=this.onWebSocketEvent.bind(this);const o=l({},n);if(dl.$on("hippyWebsocketEvents",this.onWebSocketEvent),!e||"string"!=typeof e)throw new TypeError("Invalid WebSocket url");Array.isArray(t)&&t.length>0?o["Sec-WebSocket-Protocol"]=t.join(","):"string"==typeof t&&(o["Sec-WebSocket-Protocol"]=t);const r={headers:o,url:e};Wa.callNativeWithPromise("websocket","connect",r).then(e=>{e&&0===e.code&&"number"==typeof e.id&&(this.webSocketId=e.id)})}close(e,t){1===this.readyState&&(this.readyState=2,Wa.callNative("websocket","close",{id:this.webSocketId,code:e,reason:t}))}send(e){if(1===this.readyState){if("string"!=typeof e)throw new TypeError("Unsupported websocket data type: "+typeof e);Wa.callNative("websocket","send",{id:this.webSocketId,data:e})}}set onopen(e){this.webSocketCallbacks.onOpen=e}set onclose(e){this.webSocketCallbacks.onClose=e}set onerror(e){this.webSocketCallbacks.onError=e}set onmessage(e){this.webSocketCallbacks.onMessage=e}onWebSocketEvent(e){if("object"!=typeof e||e.id!==this.webSocketId)return;const t=e.type;if("string"!=typeof t)return;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,dl.$off("hippyWebsocketEvents",this.onWebSocketEvent));const n=this.webSocketCallbacks[t];pi(n)&&n(e.data)}},ul.config.silent=!1,ul.config.trimWhitespace=!0,function(e){oi=e}(ul)}.call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/timers-browserify/main.js").setImmediate,n("./node_modules/process/browser.js"))},"./node_modules/process/browser.js":function(e,t){var n,o,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(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{o="function"==typeof clearTimeout?clearTimeout:s}catch(e){o=s}}();var c,l=[],u=!1,d=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&p())}function p(){if(!u){var e=a(f);u=!0;for(var t=l.length;t;){for(c=l,l=[];++d1)for(var n=1;n=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n("./node_modules/setimmediate/setImmediate.js"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/webpack/buildin/global.js":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},"./scripts/vendor.js":function(e,t,n){n("../../packages/hippy-vue/dist/index.js"),n("../../packages/hippy-vue-native-components/dist/index.js")},0:function(e,t,n){e.exports=n}}); \ No newline at end of file + */(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"default",(function(){return fl}));const d=Object.freeze({});function f(e){return null==e}function p(e){return null!=e}function h(e){return!0===e}function m(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function y(e){return null!==e&&"object"==typeof e}const g=Object.prototype.toString;function v(e){return"[object Object]"===g.call(e)}function b(e){return"[object RegExp]"===g.call(e)}function _(e){const t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function w(e){return p(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function $(e){return null==e?"":Array.isArray(e)||v(e)&&e.toString===g?JSON.stringify(e,null,2):String(e)}function S(e){const t=parseFloat(e);return isNaN(t)?e:t}function x(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;en[e.toLowerCase()]:e=>n[e]}const k=x("slot,component",!0),O=x("key,ref,slot,slot-scope,is");function N(e,t){if(e.length){const n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}const E=Object.prototype.hasOwnProperty;function C(e,t){return E.call(e,t)}function I(e){const t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}const A=/-(\w)/g,T=I(e=>e.replace(A,(e,t)=>t?t.toUpperCase():"")),P=I(e=>e.charAt(0).toUpperCase()+e.slice(1)),j=/\B([A-Z])/g,L=I(e=>e.replace(j,"-$1").toLowerCase());const M=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){const o=arguments.length;return o?o>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function D(e,t){t=t||0;let n=e.length-t;const o=new Array(n);for(;n--;)o[n]=e[n+t];return o}function F(e,t){for(const n in t)e[n]=t[n];return e}function R(e,t,n){}const V=(e,t,n)=>!1,B=e=>e;function H(e,t){if(e===t)return!0;const n=y(e),o=y(t);if(!n||!o)return!n&&!o&&String(e)===String(t);try{const n=Array.isArray(e),o=Array.isArray(t);if(n&&o)return e.length===t.length&&e.every((e,n)=>H(e,t[n]));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(n||o)return!1;{const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every(n=>H(e[n],t[n]))}}catch(e){return!1}}function U(e,t){for(let n=0;n!1,ce=e.__VUE_DEVTOOLS_GLOBAL_HOOK__;function le(e){return"function"==typeof e&&/native code/.test(e.toString())}const ue="undefined"!=typeof Symbol&&le(Symbol)&&"undefined"!=typeof Reflect&&le(Reflect.ownKeys);let de;de="undefined"!=typeof Set&&le(Set)?Set:class{constructor(){this.set=Object.create(null)}has(e){return!0===this.set[e]}add(e){this.set[e]=!0}clear(){this.set=Object.create(null)}};let fe=R;let pe=0;class he{constructor(){this.id=pe++,this.subs=[]}addSub(e){this.subs.push(e)}removeSub(e){N(this.subs,e)}depend(){he.target&&he.target.addDep(this)}notify(){const e=this.subs.slice();for(let t=0,n=e.length;t{const t=new ve;return t.text=e,t.isComment=!0,t};function _e(e){return new ve(void 0,void 0,void 0,String(e))}function we(e){const t=new ve(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}const $e=Array.prototype,Se=Object.create($e);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){const t=$e[e];X(Se,e,(function(...n){const o=t.apply(this,n),r=this.__ob__;let i;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&r.observeArray(i),r.dep.notify(),o}))}));const xe=Object.getOwnPropertyNames(Se);let ke=!0;function Oe(e){ke=e}class Ne{constructor(e){this.value=e,this.dep=new he,this.vmCount=0,X(e,"__ob__",this),Array.isArray(e)?(Z?function(e,t){e.__proto__=t}(e,Se):function(e,t,n){for(let o=0,r=n.length;o{Pe[e]=Me}),z.forEach((function(e){Pe[e+"s"]=De})),Pe.watch=function(e,t,n,o){if(e===ie&&(e=void 0),t===ie&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;const r={};F(r,e);for(const e in t){let n=r[e];const o=t[e];n&&!Array.isArray(n)&&(n=[n]),r[e]=n?n.concat(o):Array.isArray(o)?o:[o]}return r},Pe.props=Pe.methods=Pe.inject=Pe.computed=function(e,t,n,o){if(!e)return t;const r=Object.create(null);return F(r,e),t&&F(r,t),r},Pe.provide=Le;const Fe=function(e,t){return void 0===t?e:t};function Re(e,t,n){if("function"==typeof t&&(t=t.options),function(e,t){const n=e.props;if(!n)return;const o={};let r,i,s;if(Array.isArray(n))for(r=n.length;r--;)i=n[r],"string"==typeof i&&(s=T(i),o[s]={type:null});else if(v(n))for(const e in n)i=n[e],s=T(e),o[s]=v(i)?i:{type:i};else 0;e.props=o}(t),function(e,t){const n=e.inject;if(!n)return;const o=e.inject={};if(Array.isArray(n))for(let e=0;e-1)if(i&&!C(r,"default"))s=!1;else if(""===s||s===L(e)){const e=ze(String,r.type);(e<0||aYe(e,o,r+" (Promise/async)")),i._handled=!0)}catch(e){Ye(e,o,r)}return i}function Ge(e,t,n){if(K.errorHandler)try{return K.errorHandler.call(null,e,t,n)}catch(t){t!==e&&qe(t,null,"config.errorHandler")}qe(e,t,n)}function qe(e,t,n){if(!Q&&!ee||"undefined"==typeof console)throw e;console.error(e)}const Xe=[];let Je,Ze=!1;function Qe(){Ze=!1;const e=Xe.slice(0);Xe.length=0;for(let t=0;t{e.then(Qe),re&&setTimeout(R)}}else if(oe||"undefined"==typeof MutationObserver||!le(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Je=void 0!==o&&le(o)?()=>{o(Qe)}:()=>{setTimeout(Qe,0)};else{let e=1;const t=new MutationObserver(Qe),n=document.createTextNode(String(e));t.observe(n,{characterData:!0}),Je=()=>{e=(e+1)%2,n.data=String(e)}}function et(e,t){let n;if(Xe.push(()=>{if(e)try{e.call(t)}catch(e){Ye(e,t,"nextTick")}else n&&n(t)}),Ze||(Ze=!0,Je()),!e&&"undefined"!=typeof Promise)return new Promise(e=>{n=e})}const tt=new de;function nt(e){!function e(t,n){let o,r;const i=Array.isArray(t);if(!i&&!y(t)||Object.isFrozen(t)||t instanceof ve)return;if(t.__ob__){const e=t.__ob__.dep.id;if(n.has(e))return;n.add(e)}if(i)for(o=t.length;o--;)e(t[o],n);else for(r=Object.keys(t),o=r.length;o--;)e(t[r[o]],n)}(e,tt),tt.clear()}const ot=I(e=>{const t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),o="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=o?e.slice(1):e,once:n,capture:o,passive:t}});function rt(e,t){function n(){const e=n.fns;if(!Array.isArray(e))return Ke(e,null,arguments,t,"v-on handler");{const n=e.slice();for(let e=0;e0&&(i=e(i,`${n||""}_${r}`),lt(i[0])&<(a)&&(o[s]=_e(a.text+i[0].text),i.shift()),o.push.apply(o,i)):m(i)?lt(a)?o[s]=_e(a.text+i):""!==i&&o.push(_e(i)):lt(i)&<(a)?o[s]=_e(a.text+i.text):(h(t._isVList)&&p(i.tag)&&f(i.key)&&p(n)&&(i.key=`__vlist${n}_${r}__`),o.push(i)));return o}(e):void 0}function lt(e){return p(e)&&p(e.text)&&!1===e.isComment}function ut(e,t){if(e){const n=Object.create(null),o=ue?Reflect.ownKeys(e):Object.keys(e);for(let r=0;r0,i=e?!!e.$stable:!r,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(i&&n&&n!==d&&s===n.$key&&!r&&!n.$hasNormal)return n;o={};for(const n in e)e[n]&&"$"!==n[0]&&(o[n]=mt(t,n,e[n]))}else o={};for(const e in t)e in o||(o[e]=yt(t,e));return e&&Object.isExtensible(e)&&(e._normalized=o),X(o,"$stable",i),X(o,"$key",s),X(o,"$hasNormal",r),o}function mt(e,t,n){const o=function(){let e=arguments.length?n.apply(null,arguments):n({});e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:ct(e);let t=e&&e[0];return e&&(!t||1===e.length&&t.isComment&&!pt(t))?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:o,enumerable:!0,configurable:!0}),o}function yt(e,t){return()=>e[t]}function gt(e,t){let n,o,r,i,s;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),o=0,r=e.length;o(this.$slots||ht(e.scopedSlots,this.$slots=dt(n,o)),this.$slots),Object.defineProperty(this,"scopedSlots",{enumerable:!0,get(){return ht(e.scopedSlots,this.slots())}}),a&&(this.$options=i,this.$slots=this.slots(),this.$scopedSlots=ht(e.scopedSlots,this.$slots)),i._scopeId?this._c=(e,t,n,r)=>{const a=Rt(s,e,t,n,r,c);return a&&!Array.isArray(a)&&(a.fnScopeId=i._scopeId,a.fnContext=o),a}:this._c=(e,t,n,o)=>Rt(s,e,t,n,o,c)}function Pt(e,t,n,o,r){const i=we(e);return i.fnContext=n,i.fnOptions=o,t.slot&&((i.data||(i.data={})).slot=t.slot),i}function jt(e,t){for(const n in t)e[T(n)]=t[n]}At(Tt.prototype);const Lt={init(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){const t=e;Lt.prepatch(t,t)}else{(e.componentInstance=function(e,t){const n={_isComponent:!0,_parentVnode:e,parent:t},o=e.data.inlineTemplate;p(o)&&(n.render=o.render,n.staticRenderFns=o.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,Kt)).$mount(t?e.elm:void 0,t)}},prepatch(e,t){const n=t.componentOptions;!function(e,t,n,o,r){0;const i=o.data.scopedSlots,s=e.$scopedSlots,a=!!(i&&!i.$stable||s!==d&&!s.$stable||i&&e.$scopedSlots.$key!==i.$key||!i&&e.$scopedSlots.$key),c=!!(r||e.$options._renderChildren||a);e.$options._parentVnode=o,e.$vnode=o,e._vnode&&(e._vnode.parent=o);if(e.$options._renderChildren=r,e.$attrs=o.data.attrs||d,e.$listeners=n||d,t&&e.$options.props){Oe(!1);const n=e._props,o=e.$options._propKeys||[];for(let r=0;rN(o,n));const a=e=>{for(let e=0,t=o.length;e{e.resolved=Ht(n,t),r?o.length=0:a(!0)}),l=W(t=>{p(e.errorComp)&&(e.error=!0,a(!0))}),u=e(c,l);return y(u)&&(w(u)?f(e.resolved)&&u.then(c,l):w(u.component)&&(u.component.then(c,l),p(u.error)&&(e.errorComp=Ht(u.error,t)),p(u.loading)&&(e.loadingComp=Ht(u.loading,t),0===u.delay?e.loading=!0:i=setTimeout(()=>{i=null,f(e.resolved)&&f(e.error)&&(e.loading=!0,a(!1))},u.delay||200)),p(u.timeout)&&(s=setTimeout(()=>{s=null,f(e.resolved)&&l(null)},u.timeout)))),r=!1,e.loading?e.loadingComp:e.resolved}}(s,i))))return function(e,t,n,o,r){const i=be();return i.asyncFactory=e,i.asyncMeta={data:t,context:n,children:o,tag:r},i}(s,t,n,o,r);t=t||{},yn(e),p(t.model)&&function(e,t){const n=e.model&&e.model.prop||"value",o=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;const r=t.on||(t.on={}),i=r[o],s=t.model.callback;p(i)?(Array.isArray(i)?-1===i.indexOf(s):i!==s)&&(r[o]=[s].concat(i)):r[o]=s}(e.options,t);const a=function(e,t,n){const o=t.options.props;if(f(o))return;const r={},{attrs:i,props:s}=e;if(p(i)||p(s))for(const e in o){const t=L(e);0,at(r,s,e,t,!0)||at(r,i,e,t,!1)}return r}(t,e);if(h(e.options.functional))return function(e,t,n,o,r){const i=e.options,s={},a=i.props;if(p(a))for(const e in a)s[e]=Be(e,a,t||d);else p(n.attrs)&&jt(s,n.attrs),p(n.props)&&jt(s,n.props);const c=new Tt(n,s,r,o,e),l=i.render.call(null,c._c,c);if(l instanceof ve)return Pt(l,n,c.parent,i,c);if(Array.isArray(l)){const e=ct(l)||[],t=new Array(e.length);for(let o=0;o{e(n,o),t(n,o)};return n._merged=!0,n}function Rt(e,t,n,o,r,i){return(Array.isArray(n)||m(n))&&(r=o,o=n,n=void 0),h(i)&&(r=2),function(e,t,n,o,r){if(p(n)&&p(n.__ob__))return be();p(n)&&p(n.is)&&(t=n.is);if(!t)return be();0;Array.isArray(o)&&"function"==typeof o[0]&&((n=n||{}).scopedSlots={default:o[0]},o.length=0);2===r?o=ct(o):1===r&&(o=function(e){for(let t=0;tdocument.createEvent("Event").timeStamp&&(on=()=>e.now())}function rn(){let e,t;for(on(),tn=!0,Jt.sort((e,t)=>e.id-t.id),nn=0;nnnn&&Jt[t].id>e.id;)t--;Jt.splice(t+1,0,e)}else Jt.push(e);en||(en=!0,et(rn))}}(this)}run(){if(this.active){const e=this.get();if(e!==this.value||y(e)||this.deep){const t=this.value;if(this.value=e,this.user){const n=`callback for watcher "${this.expression}"`;Ke(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}}evaluate(){this.value=this.get(),this.dirty=!1}depend(){let e=this.deps.length;for(;e--;)this.deps[e].depend()}teardown(){if(this.active){this.vm._isBeingDestroyed||N(this.vm._watchers,this);let e=this.deps.length;for(;e--;)this.deps[e].removeSub(this);this.active=!1}}}const cn={enumerable:!0,configurable:!0,get:R,set:R};function ln(e,t,n){cn.get=function(){return this[t][n]},cn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,cn)}function un(e){e._watchers=[];const t=e.$options;t.props&&function(e,t){const n=e.$options.propsData||{},o=e._props={},r=e.$options._propKeys=[];e.$parent&&Oe(!1);for(const i in t){r.push(i);const s=Be(i,t,n,e);Ce(o,i,s),i in e||ln(e,"_props",i)}Oe(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(const n in t)e[n]="function"!=typeof t[n]?R:M(t[n],e)}(e,t.methods),t.data?function(e){let t=e.$options.data;t=e._data="function"==typeof t?function(e,t){ye();try{return e.call(t,t)}catch(e){return Ye(e,t,"data()"),{}}finally{ge()}}(t,e):t||{},v(t)||(t={});const n=Object.keys(t),o=e.$options.props;e.$options.methods;let r=n.length;for(;r--;){const t=n[r];0,o&&C(o,t)||q(t)||ln(e,"_data",t)}Ee(t,!0)}(e):Ee(e._data={},!0),t.computed&&function(e,t){const n=e._computedWatchers=Object.create(null);for(const o in t){const r=t[o],i="function"==typeof r?r:r.get;0,n[o]=new an(e,i||R,R,dn),o in e||fn(e,o,r)}}(e,t.computed),t.watch&&t.watch!==ie&&function(e,t){for(const n in t){const o=t[n];if(Array.isArray(o))for(let t=0;t-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!b(e)&&e.test(t)}function wn(e,t){const{cache:n,keys:o,_vnode:r}=e;for(const e in n){const i=n[e];if(i){const s=i.name;s&&!t(s)&&$n(n,e,o,r)}}}function $n(e,t,n,o){const r=e[t];!r||o&&r.tag===o.tag||r.componentInstance.$destroy(),e[t]=null,N(n,t)}!function(e){e.prototype._init=function(e){const t=this;t._uid=mn++,t._isVue=!0,e&&e._isComponent?function(e,t){const n=e.$options=Object.create(e.constructor.options),o=t._parentVnode;n.parent=t.parent,n._parentVnode=o;const r=o.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Re(yn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){const t=e.$options;let n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;const t=e.$options._parentListeners;t&&Yt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;const t=e.$options,n=e.$vnode=t._parentVnode,o=n&&n.context;e.$slots=dt(t._renderChildren,o),e.$scopedSlots=d,e._c=(t,n,o,r)=>Rt(e,t,n,o,r,!1),e.$createElement=(t,n,o,r)=>Rt(e,t,n,o,r,!0);const r=n&&n.data;Ce(e,"$attrs",r&&r.attrs||d,null,!0),Ce(e,"$listeners",t._parentListeners||d,null,!0)}(t),Xt(t,"beforeCreate"),function(e){const t=ut(e.$options.inject,e);t&&(Oe(!1),Object.keys(t).forEach(n=>{Ce(e,n,t[n])}),Oe(!0))}(t),un(t),function(e){const t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),Xt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(gn),function(e){const t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Ie,e.prototype.$delete=Ae,e.prototype.$watch=function(e,t,n){const o=this;if(v(t))return hn(o,e,t,n);(n=n||{}).user=!0;const r=new an(o,e,t,n);if(n.immediate){const e=`callback for immediate watcher "${r.expression}"`;ye(),Ke(t,o,[r.value],o,e),ge()}return function(){r.teardown()}}}(gn),function(e){const t=/^hook:/;e.prototype.$on=function(e,n){const o=this;if(Array.isArray(e))for(let t=0,r=e.length;t1?D(n):n;const o=D(arguments,1),r=`event handler for "${e}"`;for(let e=0,i=n.length;e{Kt=t}}(n);n._vnode=e,n.$el=r?n.__patch__(r,e):n.__patch__(n.$el,e,t,!1),i(),o&&(o.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){const e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){const e=this;if(e._isBeingDestroyed)return;Xt(e,"beforeDestroy"),e._isBeingDestroyed=!0;const t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||N(t.$children,e),e._watcher&&e._watcher.teardown();let n=e._watchers.length;for(;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Xt(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}(gn),function(e){At(e.prototype),e.prototype.$nextTick=function(e){return et(e,this)},e.prototype._render=function(){const e=this,{render:t,_parentVnode:n}=e.$options;let o;n&&(e.$scopedSlots=ht(n.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=n;try{Bt=e,o=t.call(e._renderProxy,e.$createElement)}catch(t){Ye(t,e,"render"),o=e._vnode}finally{Bt=null}return Array.isArray(o)&&1===o.length&&(o=o[0]),o instanceof ve||(o=be()),o.parent=n,o}}(gn);const Sn=[String,RegExp,Array];var xn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Sn,exclude:Sn,max:[String,Number]},methods:{cacheVNode(){const{cache:e,keys:t,vnodeToCache:n,keyToCache:o}=this;if(n){const{tag:r,componentInstance:i,componentOptions:s}=n;e[o]={name:bn(s),tag:r,componentInstance:i},t.push(o),this.max&&t.length>parseInt(this.max)&&$n(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created(){this.cache=Object.create(null),this.keys=[]},destroyed(){for(const e in this.cache)$n(this.cache,e,this.keys)},mounted(){this.cacheVNode(),this.$watch("include",e=>{wn(this,t=>_n(e,t))}),this.$watch("exclude",e=>{wn(this,t=>!_n(e,t))})},updated(){this.cacheVNode()},render(){const e=this.$slots.default,t=function(e){if(Array.isArray(e))for(let t=0;tK};Object.defineProperty(e,"config",t),e.util={warn:fe,extend:F,mergeOptions:Re,defineReactive:Ce},e.set=Ie,e.delete=Ae,e.nextTick=et,e.observable=e=>(Ee(e),e),e.options=Object.create(null),z.forEach(t=>{e.options[t+"s"]=Object.create(null)}),e.options._base=e,F(e.options.components,xn),function(e){e.use=function(e){const t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;const n=D(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Re(this.options,e),this}}(e),vn(e),function(e){z.forEach(t=>{e[t]=function(e,n){return n?("component"===t&&v(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(gn),Object.defineProperty(gn.prototype,"$isServer",{get:ae}),Object.defineProperty(gn.prototype,"$ssrContext",{get(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(gn,"FunctionalRenderContext",{value:Tt}),gn.version="2.6.14",x("style,class");const kn=x("input,textarea,option,select,progress");function On(e){let t=e.data,n=e,o=e;for(;p(o.componentInstance);)o=o.componentInstance._vnode,o&&o.data&&(t=Nn(o.data,t));for(;p(n=n.parent);)n&&n.data&&(t=Nn(t,n.data));return function(e,t){if(p(e)||p(t))return En(e,Cn(t));return""}(t.staticClass,t.class)}function Nn(e,t){return{staticClass:En(e.staticClass,t.staticClass),class:p(e.class)?[e.class,t.class]:t.class}}function En(e,t){return e?t?e+" "+t:e:t||""}function Cn(e){return Array.isArray(e)?function(e){let t,n="";for(let o=0,r=e.length;o=0&&(t=e.charAt(n)," "===t);n--);t&&Pn.test(t)||(l=!0)}}else void 0===r?(p=o+1,r=e.slice(0,o).trim()):h();function h(){(i||(i=[])).push(e.slice(p,o).trim()),p=o+1}if(void 0===r?r=e.slice(0,o).trim():0!==p&&h(),i)for(o=0;o{const t=e[0].replace(Dn,"\\$&"),n=e[1].replace(Dn,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});function Rn(e,t){console.error("[Vue compiler]: "+e)}function Vn(e,t){return e?e.map(e=>e[t]).filter(e=>e):[]}function Bn(e,t,n,o,r){(e.props||(e.props=[])).push(Xn({name:t,value:n,dynamic:r},o)),e.plain=!1}function Hn(e,t,n,o,r){(r?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Xn({name:t,value:n,dynamic:r},o)),e.plain=!1}function Un(e,t,n,o){e.attrsMap[t]=n,e.attrsList.push(Xn({name:t,value:n},o))}function Wn(e,t,n,o,r,i,s,a){(e.directives||(e.directives=[])).push(Xn({name:t,rawName:n,value:o,arg:r,isDynamicArg:i,modifiers:s},a)),e.plain=!1}function zn(e,t,n){return n?`_p(${t},"${e}")`:e+t}function Yn(e,t,n,o,r,i,s,a){let c;(o=o||d).right?a?t=`(${t})==='click'?'contextmenu':(${t})`:"click"===t&&(t="contextmenu",delete o.right):o.middle&&(a?t=`(${t})==='click'?'mouseup':(${t})`:"click"===t&&(t="mouseup")),o.capture&&(delete o.capture,t=zn("!",t,a)),o.once&&(delete o.once,t=zn("~",t,a)),o.passive&&(delete o.passive,t=zn("&",t,a)),o.native?(delete o.native,c=e.nativeEvents||(e.nativeEvents={})):c=e.events||(e.events={});const l=Xn({value:n.trim(),dynamic:a},s);o!==d&&(l.modifiers=o);const u=c[t];Array.isArray(u)?r?u.unshift(l):u.push(l):c[t]=u?r?[l,u]:[u,l]:l,e.plain=!1}function Kn(e,t,n){const o=Gn(e,":"+t)||Gn(e,"v-bind:"+t);if(null!=o)return jn(o);if(!1!==n){const n=Gn(e,t);if(null!=n)return JSON.stringify(n)}}function Gn(e,t,n){let o;if(null!=(o=e.attrsMap[t])){const n=e.attrsList;for(let e=0,o=n.length;e1&&(t[o[0].trim()]=o[1].trim())}})),t}));var Qn={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;const n=Gn(e,"style");n&&(e.staticStyle=JSON.stringify(Zn(n)));const o=Kn(e,"style",!1);o&&(e.styleBinding=o)},genData:function(e){let t="";return e.staticStyle&&(t+=`staticStyle:${e.staticStyle},`),e.styleBinding&&(t+=`style:(${e.styleBinding}),`),t}};var eo=function(e){return e};const to=x("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),no=x("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),oo=x("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),ro=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,io=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,so=`[a-zA-Z_][\\-\\.0-9_a-zA-Z${G.source}]*`,ao=`((?:${so}\\:)?${so})`,co=new RegExp("^<"+ao),lo=/^\s*(\/?)>/,uo=new RegExp(`^<\\/${ao}[^>]*>`),fo=/^]+>/i,po=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},vo=/&(?:lt|gt|quot|amp|#39);/g,bo=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,_o=x("pre,textarea",!0),wo=(e,t)=>e&&_o(e)&&"\n"===t[0];function $o(e,t){const n=t?bo:vo;return e.replace(n,e=>go[e])}function So(e,t,n){const{number:o,trim:r}=n||{};let i="$$v";r&&(i="(typeof $$v === 'string'? $$v.trim(): $$v)"),o&&(i=`_n(${i})`);const s=xo(t,i);e.model={value:`(${t})`,expression:JSON.stringify(t),callback:`function ($$v) {${s}}`}}function xo(e,t){const n=function(e){if(e=e.trim(),ko=e.length,e.indexOf("[")<0||e.lastIndexOf("]")-1?{exp:e.slice(0,Eo),key:'"'+e.slice(Eo+1)+'"'}:{exp:e,key:null};Oo=e,Eo=Co=Io=0;for(;!To();)No=Ao(),Po(No)?Lo(No):91===No&&jo(No);return{exp:e.slice(0,Co),key:e.slice(Co+1,Io)}}(e);return null===n.key?`${e}=${t}`:`$set(${n.exp}, ${n.key}, ${t})`}let ko,Oo,No,Eo,Co,Io;function Ao(){return Oo.charCodeAt(++Eo)}function To(){return Eo>=ko}function Po(e){return 34===e||39===e}function jo(e){let t=1;for(Co=Eo;!To();)if(Po(e=Ao()))Lo(e);else if(91===e&&t++,93===e&&t--,0===t){Io=Eo;break}}function Lo(e){const t=e;for(;!To()&&(e=Ao())!==t;);}const Mo=/^@|^v-on:/,Do=r.env.VBIND_PROP_SHORTHAND?/^v-|^@|^:|^\.|^#/:/^v-|^@|^:|^#/,Fo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Ro=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Vo=/^\(|\)$/g,Bo=/^\[.*\]$/,Ho=/:(.*)$/,Uo=/^:|^\.|^v-bind:/,Wo=/^\./,zo=/\.[^.\]]+(?=[^\]]*$)/g,Yo=/^v-slot(:|$)|^#/,Ko=/[\r\n]/,Go=/[ \f\t\r\n]+/g,qo=I(eo);let Xo,Jo,Zo,Qo,er,tr,nr,or,rr;function ir(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:fr(t),rawAttrsMap:{},parent:n,children:[]}}function sr(e,t){Xo=t.warn||Rn,tr=t.isPreTag||V,nr=t.mustUseProp||V,or=t.getTagNamespace||V;const n=t.isReservedTag||V;rr=e=>!(!(e.component||e.attrsMap[":is"]||e.attrsMap["v-bind:is"])&&(e.attrsMap.is?n(e.attrsMap.is):n(e.tag))),Zo=Vn(t.modules,"transformNode"),Qo=Vn(t.modules,"preTransformNode"),er=Vn(t.modules,"postTransformNode"),Jo=t.delimiters;const o=[],r=!1!==t.preserveWhitespace,i=t.whitespace;let s,a,c=!1,l=!1;function u(e){if(d(e),c||e.processed||(e=ar(e,t)),o.length||e===s||s.if&&(e.elseif||e.else)&&lr(s,{exp:e.elseif,block:e}),a&&!e.forbidden)if(e.elseif||e.else)!function(e,t){const n=function(e){let t=e.length;for(;t--;){if(1===e[t].type)return e[t];e.pop()}}(t.children);n&&n.if&&lr(n,{exp:e.elseif,block:e})}(e,a);else{if(e.slotScope){const t=e.slotTarget||'"default"';(a.scopedSlots||(a.scopedSlots={}))[t]=e}a.children.push(e),e.parent=a}e.children=e.children.filter(e=>!e.slotScope),d(e),e.pre&&(c=!1),tr(e.tag)&&(l=!1);for(let n=0;n]*>)","i")),i=e.replace(r,(function(e,r,i){return n=i.length,mo(o)||"noscript"===o||(r=r.replace(//g,"$1").replace(//g,"$1")),wo(o,r)&&(r=r.slice(1)),t.chars&&t.chars(r),""}));c+=e.length-i.length,e=i,f(o,c-n,c)}else{let n,o,r,i=e.indexOf("<");if(0===i){if(po.test(e)){const n=e.indexOf("--\x3e");if(n>=0){t.shouldKeepComment&&t.comment(e.substring(4,n),c,c+n+3),l(n+3);continue}}if(ho.test(e)){const t=e.indexOf("]>");if(t>=0){l(t+2);continue}}const n=e.match(fo);if(n){l(n[0].length);continue}const o=e.match(uo);if(o){const e=c;l(o[0].length),f(o[1],e,c);continue}const r=u();if(r){d(r),wo(r.tagName,e)&&l(1);continue}}if(i>=0){for(o=e.slice(i);!(uo.test(o)||co.test(o)||po.test(o)||ho.test(o)||(r=o.indexOf("<",1),r<0));)i+=r,o=e.slice(i);n=e.substring(0,i)}i<0&&(n=e),n&&l(n.length),t.chars&&n&&t.chars(n,c-n.length,c)}if(e===s){t.chars&&t.chars(e);break}}function l(t){c+=t,e=e.substring(t)}function u(){const t=e.match(co);if(t){const n={tagName:t[1],attrs:[],start:c};let o,r;for(l(t[0].length);!(o=e.match(lo))&&(r=e.match(io)||e.match(ro));)r.start=c,l(r[0].length),r.end=c,n.attrs.push(r);if(o)return n.unarySlash=o[1],l(o[0].length),n.end=c,n}}function d(e){const s=e.tagName,c=e.unarySlash;o&&("p"===a&&oo(s)&&f(a),i(s)&&a===s&&f(s));const l=r(s)||!!c,u=e.attrs.length,d=new Array(u);for(let n=0;n=0&&n[i].lowerCasedTag!==s;i--);else i=0;if(i>=0){for(let e=n.length-1;e>=i;e--)t.end&&t.end(n[e].tag,o,r);n.length=i,a=i&&n[i-1].tag}else"br"===s?t.start&&t.start(e,[],!0,o,r):"p"===s&&(t.start&&t.start(e,[],!1,o,r),t.end&&t.end(e,o,r))}f()}(e,{warn:Xo,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start(e,n,r,i,d){const f=a&&a.ns||or(e);oe&&"svg"===f&&(n=function(e){const t=[];for(let n=0;nc&&(r.push(a=e.slice(c,s)),o.push(JSON.stringify(a)));const t=jn(i[1].trim());o.push(`_s(${t})`),r.push({"@binding":t}),c=s+i[0].length}return c{if(!e.slotScope)return e.parent=i,!0}),i.slotScope=t.value||"_empty_",e.children=[],e.plain=!1}}}(e),"slot"===(n=e).tag&&(n.slotName=Kn(n,"name")),function(e){let t;(t=Kn(e,"is"))&&(e.component=t);null!=Gn(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(let n=0;n{e[t.slice(1)]=!0}),e}}function fr(e){const t={};for(let n=0,o=e.length;n-1`+("true"===i?`:(${t})`:`:_q(${t},${i})`)),Yn(e,"change",`var $$a=${t},$$el=$event.target,$$c=$$el.checked?(${i}):(${s});if(Array.isArray($$a)){var $$v=${o?"_n("+r+")":r},$$i=_i($$a,$$v);if($$el.checked){$$i<0&&(${xo(t,"$$a.concat([$$v])")})}else{$$i>-1&&(${xo(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")})}}else{${xo(t,"$$c")}}`,null,!0)}(e,o,r);else if("input"===i&&"radio"===s)!function(e,t,n){const o=n&&n.number;let r=Kn(e,"value")||"null";r=o?`_n(${r})`:r,Bn(e,"checked",`_q(${t},${r})`),Yn(e,"change",xo(t,r),null,!0)}(e,o,r);else if("input"===i||"textarea"===i)!function(e,t,n){const o=e.attrsMap.type;0;const{lazy:r,number:i,trim:s}=n||{},a=!r&&"range"!==o,c=r?"change":"range"===o?"__r":"input";let l="$event.target.value";s&&(l="$event.target.value.trim()");i&&(l=`_n(${l})`);let u=xo(t,l);a&&(u="if($event.target.composing)return;"+u);Bn(e,"value",`(${t})`),Yn(e,c,u,null,!0),(s||i)&&Yn(e,"blur","$forceUpdate()")}(e,o,r);else{if(!K.isReservedTag(i))return So(e,o,r),!1}return!0},text:function(e,t){t.value&&Bn(e,"textContent",`_s(${t.value})`,t)},html:function(e,t){t.value&&Bn(e,"innerHTML",`_s(${t.value})`,t)}},isPreTag:e=>"pre"===e,isUnaryTag:to,mustUseProp:(e,t,n)=>"value"===n&&kn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e,canBeLeftOpenTag:no,isReservedTag:e=>In(e)||An(e),getTagNamespace:function(e){return An(e)?"svg":"math"===e?"math":void 0},staticKeys:function(e){return e.reduce((e,t)=>e.concat(t.staticKeys||[]),[]).join(",")}(yr)};let br,_r;const wr=I((function(e){return x("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function $r(e,t){e&&(br=wr(t.staticKeys||""),_r=t.isReservedTag||V,function e(t){if(t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||k(e.tag)||!_r(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(br)))}(t),1===t.type){if(!_r(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(let n=0,o=t.children.length;n|^function(?:\s+[\w$]+)?\s*\(/,xr=/\([^)]*?\);*$/,kr=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Or={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Nr={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Er=e=>`if(${e})return null;`,Cr={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Er("$event.target !== $event.currentTarget"),ctrl:Er("!$event.ctrlKey"),shift:Er("!$event.shiftKey"),alt:Er("!$event.altKey"),meta:Er("!$event.metaKey"),left:Er("'button' in $event && $event.button !== 0"),middle:Er("'button' in $event && $event.button !== 1"),right:Er("'button' in $event && $event.button !== 2")};function Ir(e,t){const n=t?"nativeOn:":"on:";let o="",r="";for(const t in e){const n=Ar(e[t]);e[t]&&e[t].dynamic?r+=`${t},${n},`:o+=`"${t}":${n},`}return o=`{${o.slice(0,-1)}}`,r?n+`_d(${o},[${r.slice(0,-1)}])`:n+o}function Ar(e){if(!e)return"function(){}";if(Array.isArray(e))return`[${e.map(e=>Ar(e)).join(",")}]`;const t=kr.test(e.value),n=Sr.test(e.value),o=kr.test(e.value.replace(xr,""));if(e.modifiers){let r="",i="";const s=[];for(const t in e.modifiers)if(Cr[t])i+=Cr[t],Or[t]&&s.push(t);else if("exact"===t){const t=e.modifiers;i+=Er(["ctrl","shift","alt","meta"].filter(e=>!t[e]).map(e=>`$event.${e}Key`).join("||"))}else s.push(t);s.length&&(r+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Tr).join("&&")+")return null;"}(s)),i&&(r+=i);return`function($event){${r}${t?`return ${e.value}.apply(null, arguments)`:n?`return (${e.value}).apply(null, arguments)`:o?"return "+e.value:e.value}}`}return t||n?e.value:`function($event){${o?"return "+e.value:e.value}}`}function Tr(e){const t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;const n=Or[e],o=Nr[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(o)+")"}var Pr={on:function(e,t){e.wrapListeners=e=>`_g(${e},${t.value})`},bind:function(e,t){e.wrapData=n=>`_b(${n},'${e.tag}',${t.value},${t.modifiers&&t.modifiers.prop?"true":"false"}${t.modifiers&&t.modifiers.sync?",true":""})`},cloak:R};class jr{constructor(e){this.options=e,this.warn=e.warn||Rn,this.transforms=Vn(e.modules,"transformCode"),this.dataGenFns=Vn(e.modules,"genData"),this.directives=F(F({},Pr),e.directives);const t=e.isReservedTag||V;this.maybeComponent=e=>!!e.component||!t(e.tag),this.onceId=0,this.staticRenderFns=[],this.pre=!1}}function Lr(e,t){const n=new jr(t);return{render:`with(this){return ${e?"script"===e.tag?"null":Mr(e,n):'_c("div")'}}`,staticRenderFns:n.staticRenderFns}}function Mr(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Dr(e,t);if(e.once&&!e.onceProcessed)return Fr(e,t);if(e.for&&!e.forProcessed)return Vr(e,t);if(e.if&&!e.ifProcessed)return Rr(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){const n=e.slotName||'"default"',o=Wr(e,t);let r=`_t(${n}${o?`,function(){return ${o}}`:""}`;const i=e.attrs||e.dynamicAttrs?Kr((e.attrs||[]).concat(e.dynamicAttrs||[]).map(e=>({name:T(e.name),value:e.value,dynamic:e.dynamic}))):null,s=e.attrsMap["v-bind"];!i&&!s||o||(r+=",null");i&&(r+=","+i);s&&(r+=`${i?"":",null"},${s}`);return r+")"}(e,t);{let n;if(e.component)n=function(e,t,n){const o=t.inlineTemplate?null:Wr(t,n,!0);return`_c(${e},${Br(t,n)}${o?","+o:""})`}(e.component,e,t);else{let o;(!e.plain||e.pre&&t.maybeComponent(e))&&(o=Br(e,t));const r=e.inlineTemplate?null:Wr(e,t,!0);n=`_c('${e.tag}'${o?","+o:""}${r?","+r:""})`}for(let o=0;o{const n=t[e];return n.slotTargetDynamic||n.if||n.for||Hr(n)}),r=!!e.if;if(!o){let t=e.parent;for(;t;){if(t.slotScope&&"_empty_"!==t.slotScope||t.for){o=!0;break}t.if&&(r=!0),t=t.parent}}const i=Object.keys(t).map(e=>Ur(t[e],n)).join(",");return`scopedSlots:_u([${i}]${o?",null,true":""}${!o&&r?",null,false,"+function(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return t>>>0}(i):""})`}(e,e.scopedSlots,t)+","),e.model&&(n+=`model:{value:${e.model.value},callback:${e.model.callback},expression:${e.model.expression}},`),e.inlineTemplate){const o=function(e,t){const n=e.children[0];0;if(n&&1===n.type){const e=Lr(n,t.options);return`inlineTemplate:{render:function(){${e.render}},staticRenderFns:[${e.staticRenderFns.map(e=>`function(){${e}}`).join(",")}]}`}}(e,t);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n=`_b(${n},"${e.tag}",${Kr(e.dynamicAttrs)})`),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Hr(e){return 1===e.type&&("slot"===e.tag||e.children.some(Hr))}function Ur(e,t){const n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Rr(e,t,Ur,"null");if(e.for&&!e.forProcessed)return Vr(e,t,Ur);const o="_empty_"===e.slotScope?"":String(e.slotScope),r=`function(${o}){return ${"template"===e.tag?e.if&&n?`(${e.if})?${Wr(e,t)||"undefined"}:undefined`:Wr(e,t)||"undefined":Mr(e,t)}}`,i=o?"":",proxy:true";return`{key:${e.slotTarget||'"default"'},fn:${r}${i}}`}function Wr(e,t,n,o,r){const i=e.children;if(i.length){const e=i[0];if(1===i.length&&e.for&&"template"!==e.tag&&"slot"!==e.tag){const r=n?t.maybeComponent(e)?",1":",0":"";return`${(o||Mr)(e,t)}${r}`}const s=n?function(e,t){let n=0;for(let o=0;ozr(e.block))){n=2;break}(t(r)||r.ifConditions&&r.ifConditions.some(e=>t(e.block)))&&(n=1)}}return n}(i,t.maybeComponent):0,a=r||Yr;return`[${i.map(e=>a(e,t)).join(",")}]${s?","+s:""}`}}function zr(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function Yr(e,t){return 1===e.type?Mr(e,t):3===e.type&&e.isComment?function(e){return`_e(${JSON.stringify(e.text)})`}(e):function(e){return`_v(${2===e.type?e.expression:Gr(JSON.stringify(e.text))})`}(e)}function Kr(e){let t="",n="";for(let o=0;oqr(e,c)),t[i]=a}}const Jr=(Zr=function(e,t){const n=sr(e.trim(),t);!1!==t.optimize&&$r(n,t);const o=Lr(n,t);return{ast:n,render:o.render,staticRenderFns:o.staticRenderFns}},function(e){function t(t,n){const o=Object.create(e),r=[],i=[];if(n){n.modules&&(o.modules=(e.modules||[]).concat(n.modules)),n.directives&&(o.directives=F(Object.create(e.directives||null),n.directives));for(const e in n)"modules"!==e&&"directives"!==e&&(o[e]=n[e])}o.warn=(e,t,n)=>{(n?i:r).push(e)};const s=Zr(t.trim(),o);return s.errors=r,s.tips=i,s}return{compile:t,compileToFunctions:Xr(t)}});var Zr;const{compile:Qr,compileToFunctions:ei}=Jr(vr),ti=`http://127.0.0.1:${r.env.PORT}/`;let ni,oi,ri=e=>e,ii=()=>{};function si(e){ni=e}function ai(){return ni}function ci(){return ri}const li=W(()=>{console.log('Hippy-Vue has "Vue.config.silent" to control trace log output, to see output logs if set it to false.')});function ui(...e){(null==oi?void 0:oi.config.silent)&&li()}function di(e){return e.charAt(0).toUpperCase()+e.slice(1)}const fi=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function pi(e){return"[object Function]"===Object.prototype.toString.call(e)}function hi(e){let t=e;return/^assets/.test(t)&&(t="hpfile://./"+t),t}function mi(e){return null==e}function yi(e){return"string"==typeof e?""!==e.trim():null!=e}const gi=Symbol.for("View"),vi=Symbol.for("Image"),bi=Symbol.for("ListView"),_i=Symbol.for("ListViewItem"),wi=Symbol.for("Text"),$i=Symbol.for("TextInput"),Si=Symbol.for("WebView"),xi=Symbol.for("VideoPlayer"),ki={[gi]:"View",[vi]:"Image",[bi]:"ListView",[_i]:"ListViewItem",[wi]:"Text",[$i]:"TextInput",[Si]:"WebView",[xi]:"VideoPlayer"};function Oi(...e){const t={};if(Array.isArray(e[0]))e[0].forEach(([e,n])=>{t[t[e]=n]=e});else{const[n,o]=e;t[t[n]=o]=n}return t}const Ni={number:"numeric",text:"default",search:"web-search"},Ei={role:"accessibilityRole","aria-label":"accessibilityLabel","aria-disabled":{jointKey:"accessibilityState",name:"disabled"},"aria-selected":{jointKey:"accessibilityState",name:"selected"},"aria-checked":{jointKey:"accessibilityState",name:"checked"},"aria-busy":{jointKey:"accessibilityState",name:"busy"},"aria-expanded":{jointKey:"accessibilityState",name:"expanded"},"aria-valuemin":{jointKey:"accessibilityValue",name:"min"},"aria-valuemax":{jointKey:"accessibilityValue",name:"max"},"aria-valuenow":{jointKey:"accessibilityValue",name:"now"},"aria-valuetext":{jointKey:"accessibilityValue",name:"text"}},Ci={symbol:gi,component:{name:ki[gi],eventNamesMap:Oi([["touchStart","onTouchDown"],["touchstart","onTouchDown"],["touchmove","onTouchMove"],["touchend","onTouchEnd"],["touchcancel","onTouchCancel"]]),attributeMaps:l({},Ei),processEventData(e,t,n){var o,r;switch(t){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":e.offsetX=null===(o=n.contentOffset)||void 0===o?void 0:o.x,e.offsetY=null===(r=n.contentOffset)||void 0===r?void 0:r.y;break;case"onTouchDown":case"onTouchMove":case"onTouchEnd":case"onTouchCancel":e.touches={0:{clientX:n.page_x,clientY:n.page_y},length:1};break;case"onFocus":e.isFocused=t.focus}return e}}},Ii={symbol:gi,component:l(l({},Ci.component),{},{name:ki[gi],defaultNativeStyle:{}})},Ai={symbol:gi,component:{name:ki[gi]}},Ti={symbol:vi,component:l(l({},Ci.component),{},{name:ki[vi],defaultNativeStyle:{backgroundColor:0},attributeMaps:l({placeholder:{name:"defaultSource",propsValue(e){const t=hi(e);return t&&t.indexOf(ti)<0&&["https://","http://"].some(e=>0===t.indexOf(e)),t}},src:e=>hi(e)},Ei),processEventData(e,t,n){switch(t){case"onTouchDown":case"onTouchMove":case"onTouchEnd":case"onTouchCancel":e.touches={0:{clientX:n.page_x,clientY:n.page_y},length:1};break;case"onFocus":e.isFocused=t.focus;break;case"onLoad":{const{width:t,height:o,url:r}=n;e.width=t,e.height=o,e.url=r;break}}return e}})},Pi={symbol:bi,component:{name:ki[bi],defaultNativeStyle:{flex:1},attributeMaps:l({},Ei),eventNamesMap:Oi("listReady","initialListReady"),processEventData(e,t,n){var o,r;switch(t){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":e.offsetX=null===(o=n.contentOffset)||void 0===o?void 0:o.x,e.offsetY=null===(r=n.contentOffset)||void 0===r?void 0:r.y;break;case"onDelete":e.index=n.index}return e}}},ji={symbol:_i,component:{name:ki[_i],attributeMaps:l({},Ei),eventNamesMap:Oi([["disappear","onDisappear"]])}},Li={symbol:gi,component:l(l({},Ci.component),{},{name:ki[wi],defaultNativeProps:{text:""},defaultNativeStyle:{color:4278190080}})},Mi=Li,Di=Li,Fi={component:l(l({},Li.component),{},{defaultNativeStyle:{color:4278190318},attributeMaps:{href:{name:"href",propsValue:e=>["//","http://","https://"].filter(t=>0===e.indexOf(t)).length?"":e}}})},Ri={symbol:$i,component:{name:ki[$i],attributeMaps:l({type:{name:"keyboardType",propsValue(e){const t=Ni[e];return t||e}},disabled:{name:"editable",propsValue:e=>!e},value:"defaultValue",maxlength:"maxLength"},Ei),nativeProps:{numberOfLines:1,multiline:!1},defaultNativeProps:{underlineColorAndroid:0},defaultNativeStyle:{padding:0,color:4278190080},eventNamesMap:Oi([["change","onChangeText"],["select","onSelectionChange"]]),processEventData(e,t,n){switch(t){case"onChangeText":case"onEndEditing":e.value=n.text;break;case"onSelectionChange":e.start=n.selection.start,e.end=n.selection.end;break;case"onKeyboardWillShow":e.keyboardHeight=n.keyboardHeight;break;case"onContentSizeChange":e.width=n.contentSize.width,e.height=n.contentSize.height}return e}}},Vi={symbol:$i,component:{name:ki[$i],defaultNativeProps:l(l({},Ri.component.defaultNativeProps),{},{numberOfLines:5}),attributeMaps:l(l({},Ri.component.attributeMaps),{},{rows:"numberOfLines"}),nativeProps:{multiline:!0},defaultNativeStyle:Ri.component.defaultNativeStyle,eventNamesMap:Ri.component.eventNamesMap,processEventData:Ri.component.processEventData}},Bi={symbol:Si,component:{name:ki[Si],defaultNativeProps:{method:"get",userAgent:""},attributeMaps:{src:{name:"source",propsValue:e=>({uri:e})}},processEventData(e,t,n){switch(t){case"onLoad":case"onLoadStart":e.url=n.url;break;case"onLoadEnd":e.url=n.url,e.success=n.success,e.error=n.error}return e}}};var Hi=Object.freeze({__proto__:null,button:Ii,div:Ci,form:Ai,img:Ti,input:Ri,label:Mi,li:ji,p:Di,span:Li,a:Fi,textarea:Vi,ul:Pi,iframe:Bi});const Ui=x("template,script,style,element,content,slot,button,div,form,img,input,label,li,p,span,textarea,ul",!0),Wi=new Map,zi={skipAddToDom:!1,isUnaryTag:!1,tagNamespace:"",canBeLeftOpenTag:!1,mustUseProp:!1,model:null,component:null};function Yi(e){return e.toLowerCase()}function Ki(e,t){if(!e)throw new Error("RegisterElement cannot set empty name");const n=Yi(e),o=l(l({},zi),t);if(Wi.has(n))throw new Error(`Element for ${e} already registered.`);o.component=l(l({},function(e,t,n){return{name:e,functional:!0,model:t.model,render:(e,{data:t,children:o})=>e(n,t,o)}}(e,o,n)),o.component),o.component.name&&o.component.name===di(T(e))&&o.component.name;const r={meta:o};return Wi.set(n,r),r}function Gi(e){const t=Yi(e);let n=zi;const o=Wi.get(t);return(null==o?void 0:o.meta)&&(n=o.meta),n}class qi{constructor(e){this.value="",this.target=null,this.currentTarget=null,this.originalTarget=null,this.bubbles=!0,this.cancelable=!0,this.eventPhase=0,this.isCanceled=!1,this.type=e,this.bubbles=!0,this.cancelable=!0,this.eventPhase=0,this.originalTarget=null,this.currentTarget=null,this.target=null,this.isCanceled=!1}get canceled(){return this.isCanceled}stopPropagation(){this.bubbles=!1}preventDefault(){this.cancelable&&(this.isCanceled=!0)}initEvent(e,t=!0,n=!0){return this.type=e,!1===t&&(this.bubbles=!1),!1===n&&(this.cancelable=!1),this}}class Xi{constructor(e){this.element=e,this.observers={}}getEventListeners(){return this.observers}addEventListener(e,t,n){if("string"!=typeof e)throw new TypeError("Events name(s) must be string.");if(t&&!pi(t))throw new TypeError("callback must be function.");const o=e.split(",");for(let e=0,r=o.length;e=0&&e.splice(o,1),0===e.length&&(this.observers[r]=void 0)}}else this.observers[r]=void 0}return this.observers}emit(e){var t,n;const{type:o}=e,r=this.observers[o];if(r)for(let o=r.length-1;o>=0;o-=1){const i=r[o];(null===(t=i.options)||void 0===t?void 0:t.once)&&r.splice(o,1),(null===(n=i.options)||void 0===n?void 0:n.thisArg)?i.callback.apply(i.options.thisArg,[e]):i.callback(e)}}getEventList(e,t){let n=this.observers[e];return!n&&t&&(n=[],this.observers[e]=n),n}indexOfListener(e,t,n){return e.findIndex(e=>n?e.callback===t&&H(e.options,n):e.callback===t)}}const Ji=new Map;function Zi(e){return Ji.get(e)||null}function Qi(t){!function(t,n){if(!e.requestIdleCallback)return setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>1/0})},1);e.requestIdleCallback(t,n)}(e=>{(e.timeRemaining()>0||e.didTimeout)&&function e(t){var n;o=t.nodeId,Ji.delete(o),null===(n=t.childNodes)||void 0===n||n.forEach(t=>e(t));var o}(t)},{timeout:50})}function es(e=[],t=0){let n=e[t];for(let o=t;o-1){const e=new cs(i);if(Object.assign(e,{eventPhase:a,nativeParams:s||{}}),"onLayout"===r){const{layout:{x:t,y:n,height:o,width:r}}=s;e.top=n,e.left=t,e.bottom=n+o,e.right=t+r,e.width=r,e.height=o}else{const{processEventData:t}=c._meta.component;t&&t(e,r,s)}c.dispatchEvent(function(e,t,n){return function(e){return["onTouchDown","onTouchMove","onTouchEnd","onTouchCancel"].indexOf(e)>=0}(e)&&Object.assign(t,{touches:{0:{clientX:n.page_x,clientY:n.page_y},length:1}}),t}(r,e,s),l,t)}}catch(e){console.error("receiveComponentEvent error",e)}}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=us);const ds={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},fs=(...e)=>`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`,ps="[-+]?\\d*\\.?\\d+",hs={rgb:new RegExp("rgb"+fs(ps,ps,ps)),rgba:new RegExp("rgba"+fs(ps,ps,ps,ps)),hsl:new RegExp("hsl"+fs(ps,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+fs(ps,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",ps)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/},ms=e=>{const t=parseInt(e,10);return t<0?0:t>255?255:t},ys=e=>{const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},gs=(e,t,n)=>{let o=n;return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+6*(t-e)*o:o<.5?t:o<2/3?e+(t-e)*(2/3-o)*6:e},vs=(e,t,n)=>{const o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,i=gs(r,o,e+1/3),s=gs(r,o,e),a=gs(r,o,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*a)<<8},bs=e=>(parseFloat(e)%360+360)%360/360,_s=e=>{const t=parseFloat(e);return t<0?0:t>100?1:t/100};function ws(e){if("string"==typeof e&&-1!==e.indexOf("var("))return e;let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=hs.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(ds,e)?ds[e]:(t=hs.rgb.exec(e),Array.isArray(t)?(ms(t[1])<<24|ms(t[2])<<16|ms(t[3])<<8|255)>>>0:(t=hs.rgba.exec(e),t?(ms(t[1])<<24|ms(t[2])<<16|ms(t[3])<<8|ys(t[4]))>>>0:(t=hs.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=hs.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=hs.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=hs.hsl.exec(e),t?(255|vs(bs(t[1]),_s(t[2]),_s(t[3])))>>>0:(t=hs.hsla.exec(e),t?(vs(bs(t[1]),_s(t[2]),_s(t[3]))|ys(t[4]))>>>0:null))))))))}(e);if(null===t)throw new Error("Bad color value: "+e);return t=(t<<24|t>>>8)>>>0,t}const $s={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor",caretColor:"caret-color"};var Ss;function xs(){const e=za.Localization;return!!e&&e.direction===Ss.RTL}!function(e){e[e.RTL=1]="RTL"}(Ss||(Ss={}));const ks=new Map;function Os(e){return ks.get(e)||{}}class Ns{constructor(){this.specificity=0}lookupSort(e,t){e.sortAsUniversal(t||this)}removeSort(e,t){e.removeAsUniversal(t||this)}trackChanges(e,t){this.dynamic&&t.addAttribute(e,"")}}class Es extends Ns{constructor(){super(...arguments),this.rarity=0}accumulateChanges(e,t){return this.dynamic?!!this.mayMatch(e)&&(this.trackChanges(e,t),!0):this.match(e)}mayMatch(e){return this.match(e)}match(e){return!1}}function Cs(e){return e?` ${e} `:""}const Is=(e,t)=>{const n=e.attributes[t];return void 0!==n?n:Array.isArray(e.styleScopeId)&&e.styleScopeId.includes(t)?t:void 0};class As extends Es{constructor(e){super(),this.specificity=e.reduce((e,t)=>t.specificity+e,0),this.head=e.reduce((e,t)=>!e||e instanceof Es&&t.rarity>e.rarity?t:e,null),this.dynamic=e.some(e=>e.dynamic),this.selectors=e}toString(){return`${this.selectors.join("")}${Cs(this.combinator||"")}`}match(e){return!!e&&this.selectors.every(t=>t.match(e))}mayMatch(e){return!!e&&this.selectors.every(t=>t.mayMatch(e))}trackChanges(e,t){this.selectors.forEach(n=>n.trackChanges(e,t))}lookupSort(e,t){this.head&&this.head instanceof Es&&this.head.lookupSort(e,t||this)}removeSort(e,t){this.head&&this.head instanceof Es&&this.head.removeSort(e,t||this)}}const Ts=(()=>{try{return!!new RegExp("foo","y")}catch(e){return!1}})(),Ps={whiteSpaceRegEx:"\\s*",universalSelectorRegEx:"\\*",simpleIdentifierSelectorRegEx:"(#|\\.|:|\\b)([_-\\w][_-\\w\\d]*)",attributeSelectorRegEx:"\\[\\s*([_-\\w][_-\\w\\d]*)\\s*(?:(=|\\^=|\\$=|\\*=|\\~=|\\|=)\\s*(?:([_-\\w][_-\\w\\d]*)|\"((?:[^\\\\\"]|\\\\(?:\"|n|r|f|\\\\|0-9a-f))*)\"|'((?:[^\\\\']|\\\\(?:'|n|r|f|\\\\|0-9a-f))*)')\\s*)?\\]",combinatorRegEx:"\\s*(\\+|~|>)?\\s*"},js={};function Ls(e,t,n){let o="";Ts&&(o="gy"),js[e]||(js[e]=new RegExp(Ps[e],o));const r=js[e];let i;if(Ts)r.lastIndex=n||0,i=r.exec(t);else{if(t=t.slice(n,t.length),i=r.exec(t),!i)return{result:null,regexp:r};r.lastIndex=n||0+i[0].length}return{result:i,regexp:r}}function Ms(e,t){return function(e,t){const{result:n,regexp:o}=Ls("universalSelectorRegEx",e,t);return n?{value:{type:"*"},start:t,end:o.lastIndex}:null}(e,t)||function(e,t){const{result:n,regexp:o}=Ls("simpleIdentifierSelectorRegEx",e,t);if(!n)return null;const r=o.lastIndex;return{value:{type:n[1],identifier:n[2]},start:t,end:r}}(e,t)||function(e,t){const{result:n,regexp:o}=Ls("attributeSelectorRegEx",e,t);if(!n)return null;const r=o.lastIndex,i=n[1];if(n[2]){return{value:{type:"[]",property:i,test:n[2],value:n[3]||n[4]||n[5]},start:t,end:r}}return{value:{type:"[]",property:i},start:t,end:r}}(e,t)}function Ds(e,t){let n=Ms(e,t);if(!n)return null;let{end:o}=n;const r=[];for(;n;)r.push(n.value),({end:o}=n),n=Ms(e,o);return{start:t,end:o,value:r}}function Fs(e,t){const{result:n,regexp:o}=Ls("combinatorRegEx",e,t);if(!n)return null;let r;r=Ts?o.lastIndex:t;return{start:t,end:r,value:n[1]||" "}}class Rs{constructor(e,t,n){e.forEach(e=>(e.ruleSet=this,null)),this.hash=n,this.selectors=e,this.declarations=t}toString(){return`${this.selectors.join(", ")} {${this.declarations.map((e,t)=>`${0===t?" ":""}${e.property}: ${e.value}`).join("; ")}}`}lookupSort(e){this.selectors.forEach(t=>t.lookupSort(e))}removeSort(e){this.selectors.forEach(t=>t.removeSort(e))}}class Vs extends Es{constructor(e,t="",n=""){super(),this.attribute="",this.test="",this.value="",this.specificity=256,this.rarity=0,this.dynamic=!0,this.attribute=e,this.test=t,this.value=n}match(e){if(!this.test)return!(!e||!e.attributes)&&!mi(Is(e,this.attribute));if(!this.value)return!1;if(!e||!e.attributes)return!1;const t=""+Is(e,this.attribute);if("="===this.test)return t===this.value;if("^="===this.test)return t.startsWith(this.value);if("$="===this.test)return t.endsWith(this.value);if("*="===this.test)return-1!==t.indexOf(this.value);if("~="===this.test){const e=t.split(" ");return e&&-1!==e.indexOf(this.value)}return"|="===this.test&&(t===this.value||t.startsWith(this.value+"-"))}toString(){return`[${this.attribute}${Cs(this.test)}${this.test&&this.value||""}]${Cs(this.combinator||"")}`}mayMatch(){return!0}trackChanges(e,t){t.addAttribute(e,this.attribute)}}class Bs extends Es{constructor(e){super(),this.specificity=256,this.rarity=2,this.dynamic=!1,this.className=e}toString(){return`.${this.className}${Cs(this.combinator||"")}`}match(e){var t;return!!e&&(!!(null===(t=e.classList)||void 0===t?void 0:t.size)&&e.classList.has(this.className))}lookupSort(e,t){e.sortByClass(this.className,t||this)}removeSort(e,t){e.removeByClass(this.className,t||this)}}class Hs extends Es{constructor(e){super(),this.specificity=65536,this.rarity=3,this.dynamic=!1,this.id=e}toString(){return`#${this.id}${Cs(this.combinator||"")}`}match(e){return!!e&&e.id===this.id}lookupSort(e,t){e.sortById(this.id,null!=t?t:this)}removeSort(e,t){e.removeById(this.id,null!=t?t:this)}}class Us extends Es{constructor(e){super(),this.specificity=0,this.rarity=4,this.dynamic=!1,this.combinator=void 0,this.err=e}toString(){return``}match(){return!1}}class Ws extends Es{constructor(e){super(),this.specificity=256,this.rarity=0,this.dynamic=!0,this.cssPseudoClass=e}toString(){return`:${this.cssPseudoClass}${Cs(this.combinator||"")}`}match(e){return!!e}mayMatch(){return!0}trackChanges(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}class zs{constructor(e){this.selectors=e,this.dynamic=e.some(e=>e.dynamic)}match(e){let t=e;if(!t)return;return this.selectors.every((e,n)=>(0!==n&&(t=null==t?void 0:t.parentNode),!!t&&!!e.match(t)))?t:void 0}mayMatch(e){let t=e;if(!t)return;return this.selectors.every((e,n)=>(0!==n&&(t=null==t?void 0:t.parentNode),!!t&&!!e.mayMatch(t)))?t:void 0}trackChanges(e,t){let n=e;this.selectors.forEach((e,o)=>{0!==o&&(n=null==n?void 0:n.parentNode),n&&e.trackChanges(n,t)})}}class Ys{constructor(e){this.selectors=e,this.dynamic=e.some(e=>e.dynamic)}match(e){let t=e;if(!t)return;return this.selectors.every((e,n)=>(0!==n&&(t=null==t?void 0:t.nextSibling),!!t&&!!e.match(t)))?t:void 0}mayMatch(e){let t=e;if(!t)return;return this.selectors.every((e,n)=>(0!==n&&(t=null==t?void 0:t.nextSibling),!!t&&!!e.mayMatch(t)))?t:void 0}trackChanges(e,t){let n=e;this.selectors.forEach((e,o)=>{0!==o&&(n=null==n?void 0:n.nextSibling),n&&e.trackChanges(n,t)})}}class Ks extends Ns{constructor(e){super();const t=[void 0," ",">","+"];let n=[],o=[];const r=[];this.selectors=e,this.selectors.reverse().forEach(e=>{if(-1===t.indexOf(e.combinator))throw new Error(`Unsupported combinator "${e.combinator}".`);void 0!==e.combinator&&" "!==e.combinator||r.push(o=[n=[]]),">"===e.combinator&&o.push(n=[]),n.push(e)}),this.groups=r.map(e=>new zs(e.map(e=>new Ys(e))));const[i]=e;this.last=i,this.specificity=e.reduce((e,t)=>t.specificity+e,0),this.dynamic=e.some(e=>e.dynamic)}toString(){return this.selectors.join("")}match(e){let t=e;return this.groups.every((n,o)=>{if(0===o)return t=n.match(e),!!t;let r=t;for(;r=null==r?void 0:r.parentNode;)if(t=n.match(r))return!0;return!1})}lookupSort(e){this.last.lookupSort(e,this)}removeSort(e){this.last.removeSort(e,this)}accumulateChanges(e,t){let n=e;if(!this.dynamic)return this.match(n);const o=[],r=this.groups.every((t,r)=>{if(0===r){const r=t.mayMatch(e);return o.push({left:e,right:e}),n=r,!!n}let i=e;for(;i=i.parentNode;){const e=t.mayMatch(i);if(e)return o.push({left:i,right:void 0}),n=e,!0}return!1});if(!r)return!1;if(!t)return r;for(let e=0;e{if(!Ts){if(""===e)return;n=0}do{const t=Ds(e,n);if(!t){if(c)return null;break}({end:n}=t),s&&(l[1]=s.value),l=[t.value,void 0],i.push(l),s=Fs(e,n),s&&({end:n}=s),c=!(!s||" "===s.value)}while(s)}),{start:t,end:n,value:i}}(e);return t?function(e){if(0===e.length)return new Us(new Error("Empty selector."));if(1===e.length)return Zs(e[0][0]);const t=[];for(let n=0;ne.lookupSort(this))}append(e){this.ruleSets=this.ruleSets.concat(e),e.forEach(e=>e.lookupSort(this))}delete(e){const t=[];this.ruleSets=this.ruleSets.filter(n=>n.hash!==e||(t.push(n),!1)),t.forEach(e=>e.removeSort(this))}query(e){const{tagName:t,id:n,classList:o}=e,r=[this.universal,this.id[n],this.type[t]];o.size&&o.forEach(e=>r.push(this.class[e]));const i=r.filter(e=>!!e).reduce((e,t)=>e.concat(t||[]),[]),s=new ea;return s.selectors=i.filter(t=>t.sel.accumulateChanges(e,s)).sort((e,t)=>e.sel.specificity-t.sel.specificity||e.pos-t.pos).map(e=>e.sel),s}sortById(e,t){this.addToMap(this.id,e,t)}sortByClass(e,t){this.addToMap(this.class,e,t)}sortByType(e,t){this.addToMap(this.type,e,t)}removeById(e,t){this.removeFromMap(this.id,e,t)}removeByClass(e,t){this.removeFromMap(this.class,e,t)}removeByType(e,t){this.removeFromMap(this.type,e,t)}sortAsUniversal(e){this.universal.push(this.makeDocSelector(e))}removeAsUniversal(e){const t=this.universal.findIndex(t=>{var n,o;return(null===(n=t.sel.ruleSet)||void 0===n?void 0:n.hash)===(null===(o=e.ruleSet)||void 0===o?void 0:o.hash)});-1!==t&&this.universal.splice(t)}addToMap(e,t,n){const o=e;this.position+=1;const r=o[t];r?r.push(this.makeDocSelector(n)):o[t]=[this.makeDocSelector(n)]}removeFromMap(e,t,n){const o=e[t],r=o.findIndex(e=>{var t,o;return(null===(t=e.sel.ruleSet)||void 0===t?void 0:t.hash)===(null===(o=n.ruleSet)||void 0===o?void 0:o.hash)});-1!==r&&o.splice(r,1)}makeDocSelector(e){return this.position+=1,{sel:e,pos:this.position}}}const na={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode"),moveNode:Symbol("moveNode"),updateEvent:Symbol("updateEvent")};let oa,ra=!0,ia=[];function sa(e=[],t){e.forEach(e=>{if(e){const{id:n,eventList:o}=e;o.forEach(e=>{const{name:o,type:r,listener:i}=e;let s;s=function(e){return!!rs[e]}(o)?rs[o]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(o),r===os&&t.removeEventListener(n,s,i),r===ns&&(t.removeEventListener(n,s,i),t.addEventListener(n,s,i))})}})}function aa(e,t){0}function ca(t){if(!ra)return;if(ra=!1,0===ia.length)return void(ra=!0);const{$nextTick:n,$options:{rootViewId:o}}=t;n(()=>{const t=function(e){const t=[];for(let n=0;n{switch(e.type){case na.createNode:aa(e.printedNodes),n.create(e.nodes),sa(e.eventNodes,n);break;case na.updateNode:aa(e.printedNodes),n.update(e.nodes),sa(e.eventNodes,n);break;case na.deleteNode:aa(e.printedNodes),n.delete(e.nodes);break;case na.moveNode:aa(e.printedNodes),n.move(e.nodes);break;case na.updateEvent:sa(e.eventNodes,n)}}),n.build(),ra=!0,ia=[]})}function la(){if(!oa||e.__HIPPY_VUE_STYLES__){const t=function(e=[]){const t=ci();return e.map(e=>{const n=e.declarations.filter(Xs).map(function(e){return t=>{const n=e(t);return n}}(t)),o=e.selectors.map(Qs);return new Rs(o,n,e.hash)})}(e.__HIPPY_VUE_STYLES__);oa?oa.append(t):oa=new ta(t),e.__HIPPY_VUE_STYLES__=void 0}return e.__HIPPY_VUE_DISPOSE_STYLES__&&(e.__HIPPY_VUE_DISPOSE_STYLES__.forEach(e=>{oa.delete(e)}),e.__HIPPY_VUE_DISPOSE_STYLES__=void 0),oa}function ua(e){const t={};return e.meta.component.defaultNativeProps&&Object.keys(e.meta.component.defaultNativeProps).forEach(n=>{if(void 0!==e.getAttribute(n))return;const o=e.meta.component.defaultNativeProps[n];pi(o)?t[n]=o(e):t[n]=o}),Object.keys(e.attributes).forEach(n=>{let o=e.getAttribute(n);if(!e.meta.component.attributeMaps||!e.meta.component.attributeMaps[n])return void(t[n]=o);const r=e.meta.component.attributeMaps[n];if("string"==typeof r)return void(t[r]=o);if(pi(r))return void(t[n]=r(o));const{name:i,propsValue:s,jointKey:a}=r;pi(s)&&(o=s(o)),a?(t[a]=t[a]||{},Object.assign(t[a],{[i]:o})):t[i]=o}),e.meta.component.nativeProps&&Object.assign(t,e.meta.component.nativeProps),t}function da(e){const t=Object.create(null);try{la().query(e).selectors.forEach(n=>{(function(e,t){return!(!t||!e)&&e.match(t)})(n,e)&&n.ruleSet.declarations.forEach(e=>{t[e.property]=e.value})})}catch(e){console.error("getDomCss Error:",e)}return t}function fa(e){let t=void 0;const n=e.events;if(n){const o=[];Object.keys(n).forEach(e=>{const{name:t,type:r,isCapture:i,listener:s}=n[e];o.push({name:t,type:r,isCapture:i,listener:s})}),t={id:e.nodeId,eventList:o}}return t}function pa(e,t,n={},o=!1){var r;if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: "+t.tagName);let i,s;if(o)i=Os(t.nodeId),s=i;else{i=da(t),i=l(l({},i),t.style),ii();const e=Object.assign({},i);if(t.parentNode){const e=Os(t.parentNode.nodeId);["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"].forEach(t=>{!yi(i[t])&&yi(e[t])&&(i[t]=e[t])})}!function(e,t){ks.set(e,t)}(t.nodeId,i),s=function(e){var t;return(null===(t=e.meta)||void 0===t?void 0:t.component)&&"Text"===e.meta.component.name}(t)?i:e,t.meta.component.defaultNativeStyle&&(s=l(l({},t.meta.component.defaultNativeStyle),s))}const a={id:t.nodeId,pId:(null===(r=t.parentNode)||void 0===r?void 0:r.nodeId)||e,name:t.meta.component.name,props:l(l({},ua(t)),{},{style:s}),tagName:t.tagName};!function(e){if(e.props.__modalFirstChild__){const t=e.props.style;Object.keys(t).some(e=>"position"===e&&"absolute"===t[e]&&(["position","left","right","top","bottom"].forEach(e=>delete t[e]),!0))}}(a),function(e,t,n){"View"===e.meta.component.name&&("scroll"===n.overflowX&&n.overflowY,"scroll"===n.overflowY?t.name="ScrollView":"scroll"===n.overflowX&&(t.name="ScrollView",t.props.horizontal=!0,n.flexDirection=xs()?"row-reverse":"row"),"ScrollView"===t.name&&(e.childNodes.length,e.childNodes.length&&e.childNodes[0].setStyle("collapsable",!1)),n.backgroundImage&&(n.backgroundImage=hi(n.backgroundImage)))}(t,a,s),function(e,t){"TextInput"===e.meta.component.name&&xs()&&(t.textAlign||(t.textAlign="right"))}(t,s);const c=fa(t);let u=void 0;return[[a,n],c,u]}function ha(e,t,n,o={}){const r=[],i=[],s=[];return t.traverseChildren((t,o)=>{const[a,c,l]=pa(e,t,o);a&&r.push(a),c&&i.push(c),l&&s.push(l),"function"==typeof n&&n(t)},o),[r,i,s]}function ma(e,t,n={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;const o=ai();if(!o)return;const{$options:{rootViewId:r,rootView:i}}=o,s=function(e,t){return 3===e.nodeId||e.id===t.slice(1-t.length)}(e,i)&&!e.isMounted,a=e.isMounted&&!t.isMounted;if(s||a){const[i,a,c]=ha(r,s?e:t,e=>{var t,n;e.isMounted||(e.isMounted=!0),t=e,n=e.nodeId,Ji.set(n,t)},n);ia.push({type:na.createNode,nodes:i,eventNodes:a,printedNodes:c}),ca(o)}}function ya(e){if(!e.isMounted)return;const t=ai(),n=fa(e);ia.push({type:na.updateEvent,nodes:[],eventNodes:[n],printedNodes:[]}),ca(t)}function ga(e,t=!1){if(!e.isMounted)return;const n=ai(),{$options:{rootViewId:o}}=n,[r,i,s]=pa(o,e,{},t);r&&(ia.push({type:na.updateNode,nodes:r?[r]:[],eventNodes:i?[i]:[],printedNodes:[]}),ca(n))}function va(e){if(!e.isMounted)return;const t=ai(),{$options:{rootViewId:n}}=t,[o,r,i]=ha(n,e);ia.push({type:na.updateNode,nodes:o,eventNodes:r,printedNodes:i}),ca(t)}const ba=new Set;let _a,wa=!1;const $a={exitApp(){za.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(wa||(wa=!0,$a.initEventListener()),za.callNative("DeviceEventModule","setListenBackPress",!0),ba.add(e),{remove(){$a.removeListener(e)}}),removeListener(e){ba.delete(e),0===ba.size&&za.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){_a||(_a=ai()),_a.$on("hardwareBackPress",()=>{let e=!0;Array.from(ba).reverse().every(t=>"function"!=typeof t||!t()||(e=!1,!1)),e&&$a.exitApp()})}},Sa={exitApp(){},addListener:()=>({remove(){}}),removeListener(){},initEventListener(){}},xa="android"===Hippy.device.platform.OS?$a:Sa;let ka;const Oa=new Map;class Na{constructor(e,t){this.eventName=e,this.listener=t}remove(){this.eventName&&this.listener&&(Ea(this.eventName,this.listener),this.listener=void 0)}}function Ea(e,t){if(t instanceof Na)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange");const o=Oa.get(t);o&&(ka||(ka=ai()),ka.$off(n,o),Oa.delete(t),Oa.size<1&&za.callNative("NetInfo","removeListener",n))}var Ca=Object.freeze({__proto__:null,addEventListener:function(e,t){if("function"!=typeof t)return;let n=e;return"change"===n&&(n="networkStatusDidChange"),0===Oa.size&&za.callNative("NetInfo","addListener",n),ka||(ka=ai()),ka.$on(n,t),Oa.set(t,t),new Na(n,t)},removeEventListener:Ea,fetch:function(){return za.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)},NetInfoRevoker:Na});const{on:Ia,off:Aa,emit:Ta,bridge:{callNative:Pa,callNativeWithPromise:ja,callNativeWithCallbackId:La},device:{platform:{OS:Ma,Localization:Da={}},screen:{scale:Fa}},device:Ra,document:Va,register:Ba}=Hippy,Ha={},Ua=["%c[native]%c","color: red","color: auto"],Wa=function(e,t){const n={top:-1,left:-1,bottom:-1,right:-1,width:-1,height:-1};if(!e.isMounted||!e.nodeId)return Promise.resolve(n);const{nodeId:o}=e;return ui(...Ua,"callUIFunction",{nodeId:o,funcName:t,params:[]}),new Promise(e=>Va.callUIFunction(o,t,[],t=>{if(!t||"object"!=typeof t||void 0===o)return e(n);const{x:r,y:i,height:s,width:a}=t;return e({top:i,left:r,width:a,height:s,bottom:i+s,right:r+a})}))},za={callNative:Pa,callNativeWithPromise:ja,callNativeWithCallbackId:La,UIManagerModule:Va,ConsoleModule:e.ConsoleModule||e.console,on:Ia,off:Aa,emit:Ta,PixelRatio:Fa,Platform:Ma,Localization:Da,version:"unspecified",Cookie:{getAll(e){if(!e)throw new TypeError("Vue.Native.Cookie.getAll() must have url argument");return ja.call(this,"network","getCookie",e)},set(e,t,n){if(!e)throw new TypeError("Vue.Native.Cookie.getAll() must have url argument");if("string"!=typeof t)throw new TypeError("Vue.Native.Cookie.getAll() only receive string type of keyValue");let o="";if(n){if(!(n instanceof Date))throw new TypeError("Vue.Native.Cookie.getAll() only receive Date type of expires");o=n.toUTCString()}Pa.call(this,"network","setCookie",e,t,o)}},Clipboard:{getString(){return ja.call(this,"ClipboardModule","getString")},setString(e){Pa.call(this,"ClipboardModule","setString",e)}},get isIPhoneX(){if(!p(Ha.isIPhoneX)){let e=!1;"ios"===za.Platform&&(e=20!==za.Dimensions.screen.statusBarHeight),Ha.isIPhoneX=e}return Ha.isIPhoneX},get screenIsVertical(){return za.Dimensions.window.widthWa(e,"measureInWindow"),measureInAppWindow:e=>"android"===za.Platform?Wa(e,"measureInWindow"):Wa(e,"measureInAppWindow"),getBoundingClientRect(e,t){const{nodeId:n}=e;return new Promise((o,r)=>{if(!e.isMounted||!n)return r(new Error(`getBoundingClientRect cannot get nodeId of ${e} or ${e} is not mounted`));ui(...Ua,"UIManagerModule",{nodeId:n,funcName:"getBoundingClientRect",params:t}),Va.callUIFunction(n,"getBoundingClientRect",[t],e=>{if(!e||e.errMsg)return r(new Error((null==e?void 0:e.errMsg)||"getBoundingClientRect error with no response"));const{x:t,y:n,width:i,height:s}=e;let a=0,c=0;return"number"==typeof n&&"number"==typeof s&&(a=n+s),"number"==typeof t&&"number"==typeof i&&(c=t+i),o({x:t,y:n,width:i,height:s,bottom:a,right:c,left:t,top:n})})})},parseColor(e,t={platform:za.Platform}){if(Number.isInteger(e))return e;const n=Ha.COLOR_PARSER||(Ha.COLOR_PARSER=Object.create(null));return n[e]||(n[e]=ws(e)),n[e]},AsyncStorage:e.Hippy.asyncStorage,BackAndroid:xa,ImageLoader:{getSize(e){return ja.call(this,"ImageLoaderModule","getSize",e)},prefetch(e){Pa.call(this,"ImageLoaderModule","prefetch",e)}},NetInfo:Ca,getElemCss:da};let Ya=0;e.__GLOBAL__&&Number.isInteger(e.__GLOBAL__.nodeId)&&(Ya=e.__GLOBAL__.nodeId);class Ka{constructor(){this._ownerDocument=null,this._isMounted=!1,this.nodeId=(Ya+=1,Ya%10==0&&(Ya+=1),Ya%10==0&&(Ya+=1),Ya),this.index=0,this.childNodes=[]}toString(){return this.constructor.name}get firstChild(){return this.childNodes.length?this.childNodes[0]:null}get lastChild(){const e=this.childNodes.length;return e?this.childNodes[e-1]:null}get meta(){return this._meta?this._meta:{}}get ownerDocument(){if(this._ownerDocument)return this._ownerDocument;let e=this;for(;"DocumentNode"!==e.constructor.name&&(e=e.parentNode,e););return this._ownerDocument=e,e}get isMounted(){return this._isMounted}set isMounted(e){this._isMounted=e}insertBefore(e,t){if(!e)throw new Error("Can't insert child.");if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't insert child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't insert child, because it already has a different parent.");const n=this.childNodes.indexOf(t);let o=t;return t.meta.skipAddToDom&&(o=es(this.childNodes,n)),e.parentNode=this,e.nextSibling=t,e.prevSibling=this.childNodes[n-1],this.childNodes[n-1]&&(this.childNodes[n-1].nextSibling=e),t.prevSibling=e,this.childNodes.splice(n,0,e),o.meta.skipAddToDom?ma(this,e):ma(this,e,{refId:o.nodeId,relativeToRef:ts})}moveChild(e,t){if(!e)throw new Error("Can't move child.");if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't move child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't move child, because it already has a different parent.");const n=this.childNodes.indexOf(e),o=this.childNodes.indexOf(t);let r=t;if(t.meta.skipAddToDom&&(r=es(this.childNodes,o)),o===n)return e;e.nextSibling=t,e.prevSibling=t.prevSibling,t.prevSibling=e,this.childNodes[o-1]&&(this.childNodes[o-1].nextSibling=e),this.childNodes[o+1]&&(this.childNodes[o+1].prevSibling=e),this.childNodes[n-1]&&(this.childNodes[n-1].nextSibling=this.childNodes[n+1]),this.childNodes[n+1]&&(this.childNodes[n+1].prevSibling=this.childNodes[n-1]),this.childNodes.splice(n,1);const i=this.childNodes.indexOf(t);return this.childNodes.splice(i,0,e),r.meta.skipAddToDom?ma(this,e):function(e,t,n={}){if((null==e?void 0:e.meta)&&pi(e.meta.removeChild)&&e.meta.removeChild(e,t),!t||t.meta.skipAddToDom)return;if(n&&n.refId===t.nodeId)return;const o=ai(),{$options:{rootViewId:r}}=o,i={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},s=[[i,n]],a=[];ia.push({printedNodes:a,type:na.moveNode,nodes:s,eventNodes:[]}),ca(o)}(this,e,{refId:r.nodeId,relativeToRef:ts})}appendChild(e){if(!e)throw new Error("Can't append child.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");this.lastChild!==e&&(e.isMounted&&this.removeChild(e),e.parentNode=this,this.lastChild&&(e.prevSibling=this.lastChild,this.lastChild.nextSibling=e),this.childNodes.push(e),ma(this,e))}removeChild(e){if(!e)throw new Error("Can't remove child.");if(!e.parentNode)throw new Error("Can't remove child, because it has no parent.");if(e.parentNode!==this)throw new Error("Can't remove child, because it has a different parent.");if(e.meta.skipAddToDom)return;e.prevSibling&&(e.prevSibling.nextSibling=e.nextSibling),e.nextSibling&&(e.nextSibling.prevSibling=e.prevSibling),e.prevSibling=void 0,e.nextSibling=void 0;const t=this.childNodes.indexOf(e);this.childNodes.splice(t,1),function(e,t){if(!t||t.meta.skipAddToDom)return;t.isMounted=!1;const n=ai(),{$options:{rootViewId:o}}=n,r={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:o},i=[[r,{}]],s=[];ia.push({printedNodes:s,type:na.deleteNode,nodes:i,eventNodes:[]}),ca(n)}(0,e)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(let t=0;t{this.traverseChildren.call(t,e,{})})}}class Ga extends Ka{constructor(e){super(),this.text=e,this._meta={symbol:wi,skipAddToDom:!0}}setText(e){this.text=e,"function"==typeof this.parentNode.setText&&this.parentNode.setText(e)}}const qa={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},Xa="turn",Ja="rad",Za="deg",Qa="beforeLoadStyleDisabled",ec="class",tc="id",nc="text",oc="value",rc="defaultValue",ic="placeholder",sc="numberOfRows",ac="caretColor",cc="caret-color",lc="break-strategy",uc="placeholderTextColor",dc="placeholder-text-color",fc="underlineColorAndroid",pc="underline-color-android",hc="nativeBackgroundAndroid",mc={textShadowOffsetX:"width",textShadowOffsetY:"height"};function yc(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=i(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(!Array.isArray(n))return;let o="180";const[r,s,a]=n;return s&&a?o=function(e,t=Za){const n=parseFloat(e);let o=e||"";const[,r]=e.split(".");switch(r&&r.length>2&&(o=n.toFixed(2)),t){case Xa:o=""+(360*n).toFixed(2);break;case Ja:o=""+(180/Math.PI*n).toFixed(2)}return o}(s,a):r&&void 0!==qa[r]&&(o=qa[r]),o}function gc(e){const t=(e||"").replace(/\s+/g," ").trim(),[n,o]=t.split(/\s+(?![^(]*?\))/),r=/^([+-]?\d+\.?\d*)%$/g;return!n||r.exec(n)||o?n&&r.exec(o)?{ratio:parseFloat(o.split("%")[0])/100,color:za.parseColor(n)}:void 0:{color:za.parseColor(n)}}function vc(e,t,n){"backgroundImage"===e&&n.linearGradient&&delete n.linearGradient}function bc(e,t,n){void 0===t&&(delete n[e],vc(e,0,n),function(e,t,n){"textShadowOffsetX"!==e&&"textShadowOffsetY"!==e||!n.textShadowOffset||(delete n.textShadowOffset[mc[e]],0===Object.keys(n.textShadowOffset).length&&delete n.textShadowOffset)}(e,0,n))}function _c(e,t){if("string"!=typeof e)return;const n=e.split(",");for(let e=0,o=n.length;ee.trim()));if(function(e,t){if(e.size!==t.size)return!1;const n=e.values();let o=n.next().value;for(;o;){if(!t.has(o))return!1;o=n.next().value}return!0}(this.classList,e))return;return this.classList=e,void(!n.notToNative&&va(this))}case tc:if(r===this.id)return;return this.id=r,void(!n.notToNative&&va(this));case nc:case oc:case rc:case ic:if("string"!=typeof r)try{r=r.toString()}catch(e){e.message}n&&n.textUpdate||(r=function(e){return"string"!=typeof e?e:!oi||void 0===oi.config.trimWhitespace||oi.config.trimWhitespace?e.trim().replace(/( |Â)/g," "):e.replace(/( |Â)/g," ")}(r)),r=function(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)))}(r);break;case sc:if("ios"!==za.Platform)return;break;case ac:case cc:o="caret-color",r=za.parseColor(r);break;case lc:o="breakStrategy";break;case uc:case dc:o="placeholderTextColor",r=za.parseColor(r);break;case fc:case pc:o="underlineColorAndroid",r=za.parseColor(r);break;case hc:{const e=r;void 0!==e.color&&(e.color=za.parseColor(e.color)),o="nativeBackgroundAndroid",r=e;break}}if(this.attributes[o]===r)return;this.attributes[o]=r,"function"==typeof this.filterAttribute&&this.filterAttribute(this.attributes),!n.notToNative&&ga(this,n.notUpdateStyle)}catch(e){0}}removeAttribute(e){delete this.attributes[e]}setStyles(e){if(!e||"object"!=typeof e||0===Object.keys(e).length)return;Object.keys(e).forEach(t=>{const n=e[t];this.setStyle(t,n,!0)});wc.some(t=>Object.prototype.hasOwnProperty.call(e,t))?va(this):ga(this)}setStyle(e,t,n=!1){let o=e,r=t;if(this.getAttribute(Qa)||({value:r,property:o}=this.beforeLoadStyle({property:e,value:t})),void 0===t)return bc(o,r,this.style),void(n||ga(this));switch(o){case"fontWeight":"string"!=typeof r&&(r=r.toString());break;case"backgroundImage":[o,r]=function(e,t,n){delete n[e],vc(e,t,n);let o=t,r=e;if(0===t.indexOf("linear-gradient")){r="linearGradient";const e=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),n=[];o={},e.forEach((e,t)=>{if(0===t){const t=yc(e);if(t)o.angle=t;else{o.angle="180";const t=gc(e);t&&n.push(t)}}else{const t=gc(e);t&&n.push(t)}}),o.colorStopList=n}else{const e=/(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t);e&&e.length>1&&([,o]=e)}return[r,o]}(o,r,this.style);break;case"textShadowOffsetX":case"textShadowOffsetY":[o,r]=function(e,t=0,n){return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[mc[e]]:t}),["textShadowOffset",n.textShadowOffset]}(o,r,this.style);break;case"textShadowOffset":{const{x:e=0,width:t=0,y:n=0,height:o=0}=r||{};r={width:e||t,height:n||o};break}default:Object.prototype.hasOwnProperty.call($s,o)&&(o=$s[o]),"string"==typeof r&&(r=r.trim(),r=o.toLowerCase().indexOf("color")>=0?za.parseColor(r):function(e,t,n){if(e.endsWith)return e.endsWith(t,n);let o=n;return(void 0===o||o>e.length)&&(o=e.length),e.slice(o-t.length,o)===t}(r,"px")?parseFloat(r.slice(0,r.length-2)):function(e){if("number"==typeof e)return e;if("string"==typeof e&&fi.test(e))try{return parseFloat(e)}catch(e){}return e}(r))}null!=r&&this.style[o]!==r&&(this.style[o]=r,n||(wc.indexOf(o)>=0?va(this):ga(this)))}setNativeProps(e){if(e){const{style:t}=e;this.setStyles(t)}}repaintWithChildren(){va(this)}setStyleScope(e){"string"!=typeof e&&(e=e.toString()),e&&!this.scopeIdList.includes(e)&&this.scopeIdList.push(e)}get styleScopeId(){return this.scopeIdList}isTextNode(e){return(null==e?void 0:e.meta.symbol)===wi}appendChild(e){(null==e?void 0:e.meta.symbol)===wi&&e instanceof Ga&&this.setText(e.text,{notToNative:!0}),super.appendChild(e)}insertBefore(e,t){this.isTextNode(e)&&e instanceof Ga&&this.setText(e.text,{notToNative:!0}),super.insertBefore(e,t)}moveChild(e,t){this.isTextNode(e)&&e instanceof Ga&&this.setText(e.text,{notToNative:!0}),super.moveChild(e,t)}removeChild(e){this.isTextNode(e)&&e instanceof Ga&&this.setText("",{notToNative:!0}),super.removeChild(e)}setText(e,t={}){return"textarea"===this.tagName?this.setAttribute("value",e,{notToNative:!!t.notToNative}):this.setAttribute("text",e,{notToNative:!!t.notToNative})}setListenerHandledType(e,t){this.events[e]&&(this.events[e].handledType=t)}isListenerHandled(e,t){return!this.events[e]||t===this.events[e].handledType}getNativeEventName(e){let t="on"+di(e);if(this.meta.component){const{eventNamesMap:n}=this.meta.component;(null==n?void 0:n[e])&&(t=n[e])}return t}addEventListener(e,t,n){if(this._emitter||(this._emitter=new Xi(this)),"scroll"===e&&!(this.getAttribute("scrollEventThrottle")>0)){const e=200;this.attributes.scrollEventThrottle=e}"function"==typeof this.polyfillNativeEvents&&({eventNames:e,callback:t,options:n}=this.polyfillNativeEvents(ss,e,t,n)),this._emitter.addEventListener(e,t,n),_c(e,e=>{const t=this.getNativeEventName(e);var n,o;this.events[t]?this.events[t]&&this.events[t].type!==ns&&(this.events[t].type=ns):this.events[t]={name:t,type:ns,listener:(n=t,o=e,e=>{const{id:t,currentId:r,params:i,eventPhase:s}=e,a={id:t,nativeName:n,originalName:o,currentId:r,params:i,eventPhase:s};us.receiveComponentEvent(a,e)}),isCapture:!1}}),ya(this)}removeEventListener(e,t,n){if(!this._emitter)return null;"function"==typeof this.polyfillNativeEvents&&({eventNames:e,callback:t,options:n}=this.polyfillNativeEvents(as,e,t,n));const o=this._emitter.removeEventListener(e,t,n);return _c(e,e=>{const t=this.getNativeEventName(e);this.events[t]&&(this.events[t].type=os)}),ya(this),o}dispatchEvent(e,t,n){if(!(e instanceof qi))throw new Error("dispatchEvent method only accept Event instance");e.currentTarget=this,e.target||(e.target=t||this,"string"==typeof e.value&&e.target&&(e.target.value=e.value)),this._emitter&&this._emitter.emit(e),!e.bubbles&&n&&n.stopPropagation()}getBoundingClientRect(){return za.measureInWindow(this)}scrollToPosition(e=0,t=0,n=1e3){if("number"!=typeof e||"number"!=typeof t)return;let o=n;!1===o&&(o=0),za.callUIFunction(this,"scrollToWithOptions",[{x:e,y:t,duration:o}])}scrollTo(e,t,n){let o=n;if("object"==typeof e&&e){const{left:t,top:n,behavior:r="auto"}=e;({duration:o}=e),this.scrollToPosition(t,n,"none"===r?0:o)}else this.scrollToPosition(e,t,n)}setPressed(e){za.callUIFunction(this,"setPressed",[e])}setHotspot(e,t){za.callUIFunction(this,"setHotspot",[e,t])}}class Sc extends $c{constructor(e){super("comment"),this.text=e,this._meta={symbol:wi,skipAddToDom:!0}}}class xc extends $c{getValue(){return new Promise(e=>za.callUIFunction(this,"getValue",t=>e(t.text)))}setValue(e){za.callUIFunction(this,"setValue",[e])}focus(){za.callUIFunction(this,"focusTextInput",[])}blur(){za.callUIFunction(this,"blurTextInput",[])}isFocused(){return new Promise(e=>za.callUIFunction(this,"isFocused",t=>e(t.value)))}clear(){za.callUIFunction(this,"clear",[])}showInputMethod(){}hideInputMethod(){}}class kc extends $c{scrollToIndex(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&za.callUIFunction(this,"scrollToIndex",[e,t,n])}scrollToPosition(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&za.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}class Oc extends Ka{constructor(){super(),this.documentElement=new $c("document")}static createComment(e){return new Sc(e)}static createElement(e){switch(e){case"input":case"textarea":return new xc(e);case"ul":return new kc(e);default:return new $c(e)}}static createElementNS(e,t){return new $c(`${e}:${t}`)}static createTextNode(e){return new Ga(e)}static createEvent(e){return new qi(e)}}var Nc={create(e,t){Ec(t)},update(e,t){e.data.ref!==t.data.ref&&(Ec(e,!0),Ec(t))},destroy(e){Ec(e,!0)}};function Ec(e,t){const n=e.data.ref;if(!p(n))return;const o=e.context,r=e.componentInstance||e.elm,i=o.$refs;t?Array.isArray(i[n])?N(i[n],r):i[n]===r&&(i[n]=void 0):e.data.refInFor?Array.isArray(i[n])?i[n].indexOf(r)<0&&i[n].push(r):i[n]=[r]:i[n]=r}const Cc=new ve("",{},[]),Ic=["create","activate","update","remove","destroy"];function Ac(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&p(e.data)===p(t.data)&&function(e,t){if("input"!==e.tag)return!0;let n;const o=p(n=e.data)&&p(n=n.attrs)&&n.type,r=p(n=t.data)&&p(n=n.attrs)&&n.type;return o===r||Tn(o)&&Tn(r)}(e,t)||h(e.isAsyncPlaceholder)&&f(t.asyncFactory.error))}function Tc(e,t,n){let o,r;const i={};for(o=t;o<=n;++o)r=e[o].key,p(r)&&(i[r]=o);return i}var Pc={create:jc,update:jc,destroy:function(e){jc(e,Cc)}};function jc(e,t){(e.data.directives||t.data.directives)&&function(e,t){const n=e===Cc,o=t===Cc,r=Mc(e.data.directives,e.context),i=Mc(t.data.directives,t.context),s=[],a=[];let c,l,u;for(c in i)l=r[c],u=i[c],l?(u.oldValue=l.value,u.oldArg=l.arg,Fc(u,"update",t,e),u.def&&u.def.componentUpdated&&a.push(u)):(Fc(u,"bind",t,e),u.def&&u.def.inserted&&s.push(u));if(s.length){const o=()=>{for(let n=0;n{for(let n=0;n{const t=r[e],o=i[e];null!=t&&null==o&&(n[e]=void 0)}),Object.keys(i).forEach(e=>{const t=r[e],o=i[e];t!==o&&(n[e]=o)}),Object.keys(n).forEach(e=>{o.setAttribute(e,n[e])})}var Bc={create:Vc,update:Vc};function Hc(e,t){const{elm:n,data:o}=t,r=e.data;if(!(o.staticClass||o.class||r&&(r.staticClass||r.class)))return;let i=On(t);const s=n._transitionClasses;s&&(i=En(i,Cn(s))),i!==n._prevClass&&(n.setAttribute("class",i),n._prevClass=i)}var Uc={create:Hc,update:Hc};let Wc;function zc(e,t,n,o){(o||Wc).removeEventListener(e)}function Yc(e,t,n,o,r){n||Wc.addEventListener(e,t)}function Kc(e,t,n){const o=Wc;return function(){const n=t(...arguments);null!==n&&zc(e,0,0,o)}}function Gc(e,t){if(!e.data.on&&!t.data.on)return;const n=t.data.on||{},o=e.data.on||{};Wc=t.elm,it(n,o,Yc,zc,Kc,t.context)}var qc={create:Gc,update:Gc};const Xc=I(T);function Jc(e){const t={};for(let n=0;n{const r=e[o],i=t[o];!mi(r)&&mi(i)&&(n[Xc(o)]=void 0)}),Object.keys(t).forEach(o=>{const r=e[o],i=t[o];mi(i)||i===r||(n[Xc(o)]=i)}),n}function Qc(e,t){if(!t.elm||!function(e,t){return!(!e.data&&!t.data)&&!!(e.data.style||t.data.style||e.data.staticStyle||t.data.staticStyle)}(e,t))return;const n=Zc(e.data.staticStyle||{},t.data.staticStyle||{}),o=e.data.style||{};let r=t.data.style||{};const i=r.__ob__;Array.isArray(r)&&(r=Jc(r),t.data.style=r),i&&(r=F({},r),t.data.style=r);const s=Zc(o,r);t.elm.setStyles(l(l({},n),s))}var el=[Bc,Uc,qc,{create:Qc,update:Qc}];function tl(e,t){let n=!1;3===e.nodeId&&(n=!0),n&&(function(e,t,n={}){var o;if(!e||!e.data)return;let{elm:r}=e;if(t&&(r=t),!r)return;let i=(null===(o=e.data)||void 0===o?void 0:o.attrs)||{};i.__ob__&&(i=F({},i),e.data.attrs=i),Object.keys(i).forEach(e=>{r.setAttribute(e,i[e],{notToNative:!!n.notToNative})})}(t,e,{notToNative:!0}),function(e,t,n={}){if(!e||!e.data)return;let{elm:o}=e;if(t&&(o=t),!o)return;const{staticStyle:r}=e.data;r&&Object.keys(r).forEach(e=>{const t=r[e];t&&o.setStyle(Xc(e),t,!!n.notToNative)});let{style:i}=e.data;if(i){const t=i.__ob__;Array.isArray(i)&&(i=Jc(i),e.data.style=i),t&&(i=F({},i),e.data.style=i),Object.keys(i).forEach(e=>{o.setStyle(Xc(e),i[e],!!n.notToNative)})}}(t,e,{notToNative:!0}),function(e,t,n={}){if(!e||!e.data)return;const{data:o}=e;if(!o.staticClass&&!o.class)return;let{elm:r}=e;if(t&&(r=t),!r)return;let i=On(e);const s=r._transitionClasses;s&&(i=En(i,Cn(s))),i!==r._prevClass&&(r.setAttribute("class",i,{notToNative:!!n.notToNative}),r._prevClass=i)}(t,e,{notToNative:!0}))}const nl=function(e){let t,n;const o={},{modules:r,nodeOps:i}=e;for(t=0;tm?(u=f(n[b+1])?null:n[b+1].elm,v(e,u,n,h,b,o)):h>b&&_(t,d,m)}(l,y,g,n,c):p(g)?(p(e.text)&&i.setTextContent(l,""),v(l,null,g,0,g.length-1,n)):p(y)?_(y,0,y.length-1):p(e.text)&&i.setTextContent(l,""):e.text!==t.text&&i.setTextContent(l,t.text),p(m)&&p(u=m.hook)&&p(u=u.postpatch)&&u(e,t)}function k(e,t,n){if(h(n)&&p(e.parent))e.parent.data.pendingInsert=t;else for(let e=0;e=0?e.moveChild(t,n):e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t),Qi(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.setText(t)},setAttribute:function(e,t,n){e.setAttribute(t,n)},setStyleScope:function(e,t){e.setStyleScope(t)}}),modules:el.concat(Rc)});function ol(e,t){t!==e.attributes.defaultValue&&(e.attributes.defaultValue=t,e.setAttribute("text",t,{textUpdate:!0}))}let rl=function(e,t,n){t!==n&&e.setAttribute("defaultValue",t,{textUpdate:!0})};const il={inserted(e,t){"ios"===za.Platform&&rl!==ol&&(rl=ol),"TextInput"===e.meta.component.name&&(e._vModifiers=t.modifiers,e.attributes.defaultValue=t.value,t.modifiers.lazy||e.addEventListener("change",({value:t})=>{const n=new qi("input");n.value=t,e.dispatchEvent(n)}))},update(e,{value:t,oldValue:n}){e.value=t,rl(e,t,n)}};function sl(e,t,n,o){t?(n.data.show=!0,e.setStyle("display",o)):e.setStyle("display","none")}const al={bind(e,{value:t},n){void 0===e.style.display&&(e.style.display="block");const o="none"===e.style.display?"":e.style.display;e.__vOriginalDisplay=o,sl(e,t,n,o)},update(e,{value:t,oldValue:n},o){!t!=!n&&sl(e,t,o,e.__vOriginalDisplay)},unbind(e,t,n,o,r){r||(e.style.display=e.__vOriginalDisplay)}};var cl=Object.freeze({__proto__:null,model:il,show:al});const ll=['%c[Hippy-Vue "unspecified"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"],ul=new Oc;gn.$document=ul,gn.prototype.$document=ul,gn.$Document=Oc,gn.$Event=qi,gn.config.mustUseProp=function(e,t,n){const o=Gi(e);return!!o.mustUseProp&&o.mustUseProp(t,n)},gn.config.isReservedTag=Ui,gn.config.isUnknownElement=function(e){return t=e,!Wi.has(Yi(t));var t},gn.compile=ei,gn.registerElement=Ki,F(gn.options.directives,cl),gn.prototype.__patch__=nl,gn.prototype.$mount=function(e,t){const n=this.$options;if(!n.render){const{template:e}=n;if(e&&"string"!=typeof e)return fe("invalid template option: "+e,this),this;if(e){const{render:t,staticRenderFns:o}=ei(e,{delimiters:n.delimiters,comments:n.comments},this);n.render=t,n.staticRenderFns=o}}return function(e,t,n){let o;return e.$el=t,e.$options.render||(e.$options.render=be),Xt(e,"beforeMount"),o=()=>{e._update(e._render(),n)},new an(e,o,R,{before(){e._isMounted&&!e._isDestroyed&&Xt(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Xt(e,"mounted")),e}(this,e,t)},gn.prototype.$start=function(e,t){var n;si(this),pi(this.$options.beforeLoadStyle)&&(n=this.$options.beforeLoadStyle,ri=n),Wi.forEach(e=>{gn.component(e.meta.component.name,e.meta.component)}),Ba.regist(this.$options.appName,n=>{const{__instanceId__:o}=n;if(this.$options.$superProps=n,this.$options.rootViewId=o,ui(...ll,"Start",this.$options.appName,"with rootViewId",o,n),this.$el){this.$destroy();si(new(gn.extend(this.$options))(this.$options))}if(pi(t)&&t(this,n),this.$mount(),"ios"===za.Platform){const e=function(e={}){const{iPhone:t}=e;let n={};if((null==t?void 0:t.statusBar)&&(n=t.statusBar),n.disabled)return null;const o=new $c("div"),{statusBarHeight:r}=za.Dimensions.screen;za.screenIsVertical?o.setStyle("height",r):o.setStyle("height",0);let i=4282431619;if("number"==typeof n.backgroundColor&&({backgroundColor:i}=n),o.setStyle("backgroundColor",i),"string"==typeof n.backgroundImage){const t=new $c("img");t.setStyle("width",za.Dimensions.screen.width),t.setStyle("height",r),t.setAttribute("src",e.statusBarOpts.backgroundImage),o.appendChild(t)}return o.addEventListener("layout",()=>{za.screenIsVertical?o.setStyle("height",r):o.setStyle("height",0)}),o}(this.$options);e&&(this.$el.childNodes.length?this.$el.insertBefore(e,this.$el.childNodes[0]):this.$el.appendChild(e))}pi(e)&&e(this,n)})};let dl=1;gn.component=function(e,t){return t?(v(t)&&(t.name=t.name||e,t=this.options._base.extend(t)),this.options.components[e]=t,t):this.options.components[e]},gn.extend=function(e){e=e||{};const t=this,n=t.cid,o=e._Ctor||(e._Ctor={});if(o[n])return o[n];const r=e.name||t.options.name,i=function(e){this._init(e)};return(i.prototype=Object.create(t.prototype)).constructor=i,dl+=1,i.cid=dl,i.options=Re(t.options,e),i.super=t,i.options.props&&function(e){const{props:t}=e.options;Object.keys(t).forEach(t=>ln(e.prototype,"_props",t))}(i),i.options.computed&&function(e){const{computed:t}=e.options;Object.keys(t).forEach(n=>fn(e.prototype,n,t[n]))}(i),i.extend=t.extend,i.mixin=t.mixin,i.use=t.use,z.forEach(e=>{i[e]=t[e]}),r&&(i.options.components[r]=i),i.superOptions=t.options,i.extendOptions=e,i.sealedOptions=F({},i.options),o[n]=i,i},gn.Native=za,gn.getApp=ai,gn.use((function(){Object.keys(Hi).forEach(e=>{Ki(e,Hi[e])})})),K.devtools&&ce&&ce.emit("init",gn);gn.config._setBeforeRenderToNative=(e,t)=>{pi(e)&&(1===t?ii=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))};const fl=new Proxy(gn,{construct(e,t){const n=new e(...t);return n}});let pl;e.process=e.process||{},e.process.env=e.process.env||{},e.WebSocket=class{constructor(e,t,n){this.webSocketId=-1,pl=ai(),this.url=e,this.readyState=0,this.webSocketCallbacks={},this.onWebSocketEvent=this.onWebSocketEvent.bind(this);const o=l({},n);if(pl.$on("hippyWebsocketEvents",this.onWebSocketEvent),!e||"string"!=typeof e)throw new TypeError("Invalid WebSocket url");Array.isArray(t)&&t.length>0?o["Sec-WebSocket-Protocol"]=t.join(","):"string"==typeof t&&(o["Sec-WebSocket-Protocol"]=t);const r={headers:o,url:e};za.callNativeWithPromise("websocket","connect",r).then(e=>{e&&0===e.code&&"number"==typeof e.id&&(this.webSocketId=e.id)})}close(e,t){1===this.readyState&&(this.readyState=2,za.callNative("websocket","close",{id:this.webSocketId,code:e,reason:t}))}send(e){if(1===this.readyState){if("string"!=typeof e)throw new TypeError("Unsupported websocket data type: "+typeof e);za.callNative("websocket","send",{id:this.webSocketId,data:e})}}set onopen(e){this.webSocketCallbacks.onOpen=e}set onclose(e){this.webSocketCallbacks.onClose=e}set onerror(e){this.webSocketCallbacks.onError=e}set onmessage(e){this.webSocketCallbacks.onMessage=e}onWebSocketEvent(e){if("object"!=typeof e||e.id!==this.webSocketId)return;const t=e.type;if("string"!=typeof t)return;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,pl.$off("hippyWebsocketEvents",this.onWebSocketEvent));const n=this.webSocketCallbacks[t];pi(n)&&n(e.data)}},fl.config.silent=!1,fl.config.trimWhitespace=!0,function(e){oi=e}(fl)}.call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/timers-browserify/main.js").setImmediate,n("./node_modules/process/browser.js"))},"./node_modules/process/browser.js":function(e,t){var n,o,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(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{o="function"==typeof clearTimeout?clearTimeout:s}catch(e){o=s}}();var c,l=[],u=!1,d=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&p())}function p(){if(!u){var e=a(f);u=!0;for(var t=l.length;t;){for(c=l,l=[];++d1)for(var n=1;n=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n("./node_modules/setimmediate/setImmediate.js"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/webpack/buildin/global.js":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},"./scripts/vendor.js":function(e,t,n){n("../../packages/hippy-vue/dist/index.js"),n("../../packages/hippy-vue-native-components/dist/index.js")},0:function(e,t,n){e.exports=n}}); \ No newline at end of file diff --git a/framework/examples/android-demo/res/vue3/asyncComponentFromHttp.android.js b/framework/examples/android-demo/res/vue3/asyncComponentFromHttp.android.js index bf62b6edf18..b797fd5968a 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],{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 +((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 diff --git a/framework/examples/android-demo/res/vue3/asyncComponentFromLocal.android.js b/framework/examples/android-demo/res/vue3/asyncComponentFromLocal.android.js index ab4053b04f7..fe5ad672f63 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],{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 +((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 diff --git a/framework/examples/android-demo/res/vue3/index.android.js b/framework/examples/android-demo/res/vue3/index.android.js index c488e492d6f..85f95ba0f19 100644 --- a/framework/examples/android-demo/res/vue3/index.android.js +++ b/framework/examples/android-demo/res/vue3/index.android.js @@ -1,22 +1,22 @@ -!function(e){function t(t){for(var o,a,c=t[0],l=t[1],i=0,s=[];i0===i.indexOf(e))){var r=i.split("/"),s=r[r.length-1],u=s.split(".")[0];(d=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[u])&&(i=d+s)}else{var d;u=i.split(".")[0];(d=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[u])&&(i=d+i)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+i;var o=n[e];0!==o&&o&&o[1](t),n[e]=void 0}},global.dynamicLoad(i,onScriptComplete)}return Promise.all(t)},a.m=e,a.c=o,a.d=function(e,t,o){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(a.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(o,n,function(t){return e[t]}.bind(null,n));return o},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a.oe=function(e){throw console.error(e),e};var c=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],l=c.push.bind(c);c.push=t,c=c.slice();for(var i=0;i0===c.indexOf(e))){var i=c.split("/"),s=i[i.length-1],d=s.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(c=p+s)}else{var p;d=c.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(c=p+c)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+c;var o=a[e];0!==o&&o&&o[1](t),a[e]=void 0}},global.dynamicLoad(c,onScriptComplete)}return Promise.all(t)},n.m=e,n.c=o,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(o,a,function(t){return e[t]}.bind(null,a));return o},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.oe=function(e){throw console.error(e),e};var r=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],l=r.push.bind(r);r.push=t,r=r.slice();for(var c=0;c(r.push(e),()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)}),destroy(){r=[],t=[""],o=0},go(e,l=!0){const c=this.location,i=e<0?n.back:n.forward;o=Math.max(0,Math.min(o+e,t.length-1)),l&&function(e,t,{direction:o,delta:n}){const l={direction:o,delta:n,type:a.pop};for(const o of r)o(e,t,l)}(this.location,c,{direction:i,delta:e})},get position(){return o}};return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t[o]}),i}t.createHippyHistory=p,t.createHippyRouter=function(e){var t;const o=r.createRouter({history:null!==(t=e.history)&&void 0!==t?t:p(),routes:e.routes});return e.noInjectAndroidHardwareBackPress||function(e){if(l.Native.isAndroid()){function t(){const{position:t}=e.options.history;if(t>0)return e.back(),!0}e.isReady().then(()=>{l.BackAndroid.addListener(t)})}}(o),o},Object.keys(r).forEach((function(e){"default"===e||t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}))},"./node_modules/@vue/shared/dist/shared.esm-bundler.js":function(e,t,o){"use strict";(function(e){ /** -* @vue/runtime-dom v3.4.34 +* @vue/shared v3.4.32 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ -"undefined"!=typeof document&&document;const c=Symbol("_vtc"),l=(e,{slots:t})=>Object(n.h)(n.BaseTransition,u(e),t);l.displayName="Transition";const i={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},r=(l.props=Object(a.e)({},n.BaseTransitionPropsValidators,i),(e,t=[])=>{Object(a.i)(e)?e.forEach(e=>e(...t)):e&&e(...t)}),s=e=>!!e&&(Object(a.i)(e)?e.some(e=>e.length>1):e.length>1);function u(e){const t={};for(const o in e)o in i||(t[o]=e[o]);if(!1===e.css)return t;const{name:o="v",type:n,duration:c,enterFromClass:l=o+"-enter-from",enterActiveClass:u=o+"-enter-active",enterToClass:p=o+"-enter-to",appearFromClass:h=l,appearActiveClass:v=u,appearToClass:O=p,leaveFromClass:y=o+"-leave-from",leaveActiveClass:w=o+"-leave-active",leaveToClass:A=o+"-leave-to"}=e,C=function(e){if(null==e)return null;if(Object(a.n)(e))return[d(e.enter),d(e.leave)];{const t=d(e);return[t,t]}}(c),x=C&&C[0],S=C&&C[1],{onBeforeEnter:k,onEnter:T,onEnterCancelled:D,onLeave:P,onLeaveCancelled:E,onBeforeAppear:_=k,onAppear:I=T,onAppearCancelled:B=D}=t,R=(e,t,o)=>{g(e,t?O:p),g(e,t?v:u),o&&o()},L=(e,t)=>{e._isLeaving=!1,g(e,y),g(e,A),g(e,w),t&&t()},V=e=>(t,o)=>{const a=e?I:T,c=()=>R(t,e,o);r(a,[t,c]),f(()=>{g(t,e?h:l),b(t,e?O:p),s(a)||m(t,n,x,c)})};return Object(a.e)(t,{onBeforeEnter(e){r(k,[e]),b(e,l),b(e,u)},onBeforeAppear(e){r(_,[e]),b(e,h),b(e,v)},onEnter:V(!1),onAppear:V(!0),onLeave(e,t){e._isLeaving=!0;const o=()=>L(e,t);b(e,y),b(e,w),j(),f(()=>{e._isLeaving&&(g(e,y),b(e,A),s(P)||m(e,n,S,o))}),r(P,[e,o])},onEnterCancelled(e){R(e,!1),r(D,[e])},onAppearCancelled(e){R(e,!0),r(B,[e])},onLeaveCancelled(e){L(e),r(E,[e])}})}function d(e){return Object(a.x)(e)}function b(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[c]||(e[c]=new Set)).add(t)}function g(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));const o=e[c];o&&(o.delete(t),o.size||(e[c]=void 0))}function f(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let p=0;function m(e,t,o,n){const a=e._endId=++p,c=()=>{a===e._endId&&n()};if(o)return setTimeout(c,o);const{type:l,timeout:i,propCount:r}=h(e,t);if(!l)return n();const s=l+"end";let u=0;const d=()=>{e.removeEventListener(s,b),c()},b=t=>{t.target===e&&++u>=r&&d()};setTimeout(()=>{u(o[e]||"").split(", "),a=n("transitionDelay"),c=n("transitionDuration"),l=v(a,c),i=n("animationDelay"),r=n("animationDuration"),s=v(i,r);let u=null,d=0,b=0;"transition"===t?l>0&&(u="transition",d=l,b=c.length):"animation"===t?s>0&&(u="animation",d=s,b=r.length):(d=Math.max(l,s),u=d>0?l>s?"transition":"animation":null,b=u?"transition"===u?c.length:r.length:0);return{type:u,timeout:d,propCount:b,hasTransform:"transition"===u&&/\b(transform|all)(,|$)/.test(n("transitionProperty").toString())}}function v(e,t){for(;e.lengthO(t)+O(e[o])))}function O(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function j(){return document.body.offsetHeight}const y=Symbol("_vod"),w=Symbol("_vsh"),A={beforeMount(e,{value:t},{transition:o}){e[y]="none"===e.style.display?"":e.style.display,o&&t?o.beforeEnter(e):C(e,t)},mounted(e,{value:t},{transition:o}){o&&t&&o.enter(e)},updated(e,{value:t,oldValue:o},{transition:n}){!t!=!o&&(n?t?(n.beforeEnter(e),C(e,!0),n.enter(e)):n.leave(e,()=>{C(e,!1)}):C(e,t))},beforeUnmount(e,{value:t}){C(e,t)}};function C(e,t){e.style.display=t?e[y]:"none",e[w]=!t}Symbol("");Symbol("_vei"); /*! #__NO_SIDE_EFFECTS__ */ -"undefined"!=typeof HTMLElement&&HTMLElement;Symbol("_moveCb"),Symbol("_enterCb");Symbol("_assign");const x=["ctrl","shift","alt","meta"],S={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)=>x.some(o=>e[o+"Key"]&&!t.includes(o))},k=(e,t)=>{const o=e._withMods||(e._withMods={}),n=t.join(".");return o[n]||(o[n]=(o,...n)=>{for(let e=0;eo.has(e.toLowerCase()):e=>o.has(e)}o.d(t,"a",(function(){return n})),o.d(t,"b",(function(){return r})),o.d(t,"c",(function(){return j})),o.d(t,"d",(function(){return w})),o.d(t,"e",(function(){return i})),o.d(t,"f",(function(){return _})),o.d(t,"g",(function(){return L})),o.d(t,"h",(function(){return x})),o.d(t,"i",(function(){return s})),o.d(t,"j",(function(){return u})),o.d(t,"k",(function(){return C})),o.d(t,"l",(function(){return P})),o.d(t,"m",(function(){return c})),o.d(t,"n",(function(){return v})),o.d(t,"o",(function(){return l})),o.d(t,"p",(function(){return k})),o.d(t,"q",(function(){return d})),o.d(t,"r",(function(){return T})),o.d(t,"s",(function(){return b})),o.d(t,"t",(function(){return y})),o.d(t,"u",(function(){return I})),o.d(t,"v",(function(){return D})),o.d(t,"w",(function(){return S})),o.d(t,"x",(function(){return A}));const n={},r=()=>{},l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith("onUpdate:"),i=Object.assign,s=(Object.prototype.hasOwnProperty,Array.isArray),d=e=>"[object Set]"===m(e),p=e=>"[object Date]"===m(e),u=e=>"function"==typeof e,b=e=>"string"==typeof e,y=e=>"symbol"==typeof e,v=e=>null!==e&&"object"==typeof e,f=Object.prototype.toString,m=e=>f.call(e),g=e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))},h=/-(\w)/g,j=g(e=>e.replace(h,(e,t)=>t?t.toUpperCase():"")),O=/\B([A-Z])/g,_=g(e=>e.replace(O,"-$1").toLowerCase()),w=g(e=>e.charAt(0).toUpperCase()+e.slice(1)),x=(g(e=>e?"on"+w(e):""),(e,...t)=>{for(let o=0;o{const t=parseFloat(e);return isNaN(t)?e:t},A=e=>{const t=b(e)?Number(e):NaN;return isNaN(t)?e:t};const C=a("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),k=a("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),P=a("annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics"),E="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",T=a(E);function L(e){return!!e||""===e}function I(e,t){if(e===t)return!0;let o=p(e),a=p(t);if(o||a)return!(!o||!a)&&e.getTime()===t.getTime();if(o=y(e),a=y(t),o||a)return e===t;if(o=s(e),a=s(t),o||a)return!(!o||!a)&&function(e,t){if(e.length!==t.length)return!1;let o=!0;for(let a=0;o&&aI(e,t))}}).call(this,o("./node_modules/webpack/buildin/global.js"))},"./node_modules/vue-loader/dist/exportHelper.js":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t)=>{const o=e.__vccOpts||e;for(const[e,a]of t)o[e]=a;return o}},"./node_modules/vue-router/dist/vue-router.mjs":function(e,t,o){"use strict";o.r(t),o.d(t,"NavigationFailureType",(function(){return $})),o.d(t,"RouterLink",(function(){return Ie})),o.d(t,"RouterView",(function(){return Ye})),o.d(t,"START_LOCATION",(function(){return X})),o.d(t,"createMemoryHistory",(function(){return J})),o.d(t,"createRouter",(function(){return Be})),o.d(t,"createRouterMatcher",(function(){return de})),o.d(t,"createWebHashHistory",(function(){return q})),o.d(t,"createWebHistory",(function(){return G})),o.d(t,"isNavigationFailure",(function(){return te})),o.d(t,"loadRouteLocation",(function(){return Te})),o.d(t,"matchedRouteKey",(function(){return je})),o.d(t,"onBeforeRouteLeave",(function(){return Ce})),o.d(t,"onBeforeRouteUpdate",(function(){return ke})),o.d(t,"parseQuery",(function(){return me})),o.d(t,"routeLocationKey",(function(){return we})),o.d(t,"routerKey",(function(){return _e})),o.d(t,"routerViewLocationKey",(function(){return xe})),o.d(t,"stringifyQuery",(function(){return ge})),o.d(t,"useLink",(function(){return Le})),o.d(t,"useRoute",(function(){return Ne})),o.d(t,"useRouter",(function(){return Re})),o.d(t,"viewDepthKey",(function(){return Oe}));var a=o("./node_modules/vue/dist/vue.runtime.esm-bundler.js"); +/*! + * vue-router v4.3.0 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */ +const n="undefined"!=typeof document;function r(e){return e.__esModule||"Module"===e[Symbol.toStringTag]}const l=Object.assign;function c(e,t){const o={};for(const a in t){const n=t[a];o[a]=s(n)?n.map(e):e(n)}return o}const i=()=>{},s=Array.isArray;const d=/#/g,p=/&/g,u=/\//g,b=/=/g,y=/\?/g,v=/\+/g,f=/%5B/g,m=/%5D/g,g=/%5E/g,h=/%60/g,j=/%7B/g,O=/%7C/g,_=/%7D/g,w=/%20/g;function x(e){return encodeURI(""+e).replace(O,"|").replace(f,"[").replace(m,"]")}function S(e){return x(e).replace(v,"%2B").replace(w,"+").replace(d,"%23").replace(p,"%26").replace(h,"`").replace(j,"{").replace(_,"}").replace(g,"^")}function A(e){return null==e?"":function(e){return x(e).replace(d,"%23").replace(y,"%3F")}(e).replace(u,"%2F")}function C(e){try{return decodeURIComponent(""+e)}catch(e){}return""+e}const k=/\/$/;function P(e,t,o="/"){let a,n={},r="",l="";const c=t.indexOf("#");let i=t.indexOf("?");return c=0&&(i=-1),i>-1&&(a=t.slice(0,i),r=t.slice(i+1,c>-1?c:t.length),n=e(r)),c>-1&&(a=a||t.slice(0,c),l=t.slice(c,t.length)),a=function(e,t){if(e.startsWith("/"))return e;0;if(!e)return t;const o=t.split("/"),a=e.split("/"),n=a[a.length-1];".."!==n&&"."!==n||a.push("");let r,l,c=o.length-1;for(r=0;r1&&c--}return o.slice(0,c).join("/")+"/"+a.slice(r).join("/")}(null!=a?a:t,o),{fullPath:a+(r&&"?")+r+l,path:a,query:n,hash:C(l)}}function E(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function T(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function L(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(!I(e[o],t[o]))return!1;return!0}function I(e,t){return s(e)?D(e,t):s(t)?D(t,e):e===t}function D(e,t){return s(t)?e.length===t.length&&e.every((e,o)=>e===t[o]):1===e.length&&e[0]===t}var V,H;!function(e){e.pop="pop",e.push="push"}(V||(V={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(H||(H={}));function Y(e){if(!e)if(n){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(k,"")}const B=/^[^#]+#/;function R(e,t){return e.replace(B,"#")+t}const N=()=>({left:window.scrollX,top:window.scrollY});function U(e){let t;if("el"in e){const o=e.el,a="string"==typeof o&&o.startsWith("#");0;const n="string"==typeof o?a?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!n)return;t=function(e,t){const o=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:t.behavior,left:a.left-o.left-(t.left||0),top:a.top-o.top-(t.top||0)}}(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function M(e,t){return(history.state?history.state.position-t:-1)+e}const z=new Map;let F=()=>location.protocol+"//"+location.host;function W(e,t){const{pathname:o,search:a,hash:n}=t,r=e.indexOf("#");if(r>-1){let t=n.includes(e.slice(r))?e.slice(r).length:1,o=n.slice(t);return"/"!==o[0]&&(o="/"+o),E(o,"")}return E(o,e)+a+n}function K(e,t,o,a=!1,n=!1){return{back:e,current:t,forward:o,replaced:a,position:window.history.length,scroll:n?N():null}}function G(e){const t=function(e){const{history:t,location:o}=window,a={value:W(e,o)},n={value:t.state};function r(a,r,l){const c=e.indexOf("#"),i=c>-1?(o.host&&document.querySelector("base")?e:e.slice(c))+a:F()+e+a;try{t[l?"replaceState":"pushState"](r,"",i),n.value=r}catch(e){console.error(e),o[l?"replace":"assign"](i)}}return n.value||r(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:a,state:n,push:function(e,o){const c=l({},n.value,t.state,{forward:e,scroll:N()});r(c.current,c,!0),r(e,l({},K(a.value,e,null),{position:c.position+1},o),!1),a.value=e},replace:function(e,o){r(e,l({},t.state,K(n.value.back,e,n.value.forward,!0),o,{position:n.value.position}),!0),a.value=e}}}(e=Y(e)),o=function(e,t,o,a){let n=[],r=[],c=null;const i=({state:r})=>{const l=W(e,location),i=o.value,s=t.value;let d=0;if(r){if(o.value=l,t.value=r,c&&c===i)return void(c=null);d=s?r.position-s.position:0}else a(l);n.forEach(e=>{e(o.value,i,{delta:d,type:V.pop,direction:d?d>0?H.forward:H.back:H.unknown})})};function s(){const{history:e}=window;e.state&&e.replaceState(l({},e.state,{scroll:N()}),"")}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",s,{passive:!0}),{pauseListeners:function(){c=o.value},listen:function(e){n.push(e);const t=()=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)};return r.push(t),t},destroy:function(){for(const e of r)e();r=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",s)}}}(e,t.state,t.location,t.replace);const a=l({location:"",base:e,go:function(e,t=!0){t||o.pauseListeners(),history.go(e)},createHref:R.bind(null,e)},t,o);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function J(e=""){let t=[],o=[""],a=0;function n(e){a++,a!==o.length&&o.splice(a),o.push(e)}const r={location:"",state:{},base:e=Y(e),createHref:R.bind(null,e),replace(e){o.splice(a--,1),n(e)},push(e,t){n(e)},listen:e=>(t.push(e),()=>{const o=t.indexOf(e);o>-1&&t.splice(o,1)}),destroy(){t=[],o=[""],a=0},go(e,n=!0){const r=this.location,l=e<0?H.back:H.forward;a=Math.max(0,Math.min(a+e,o.length-1)),n&&function(e,o,{direction:a,delta:n}){const r={direction:a,delta:n,type:V.pop};for(const a of t)a(e,o,r)}(this.location,r,{direction:l,delta:e})}};return Object.defineProperty(r,"location",{enumerable:!0,get:()=>o[a]}),r}function q(e){return(e=location.host?e||location.pathname+location.search:"").includes("#")||(e+="#"),G(e)}function Q(e){return"string"==typeof e||"symbol"==typeof e}const X={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Z=Symbol("");var $;!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}($||($={}));function ee(e,t){return l(new Error,{type:e,[Z]:!0},t)}function te(e,t){return e instanceof Error&&Z in e&&(null==t||!!(e.type&t))}const oe={sensitive:!1,strict:!1,start:!0,end:!0},ae=/[.+*?^${}()[\]/\\]/g;function ne(e,t){let o=0;for(;ot.length?1===t.length&&80===t[0]?1:-1:0}function re(e,t){let o=0;const a=e.score,n=t.score;for(;o0&&t[t.length-1]<0}const ce={type:0,value:""},ie=/[a-zA-Z0-9_]/;function se(e,t,o){const a=function(e,t){const o=l({},oe,t),a=[];let n=o.start?"^":"";const r=[];for(const t of e){const e=t.length?[]:[90];o.strict&&!t.length&&(n+="/");for(let a=0;a1&&("*"===c||"+"===c)&&t(`A repeatable param (${s}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:s,regexp:d,repeatable:"*"===c||"+"===c,optional:"*"===c||"?"===c})):t("Invalid state to consume buffer"),s="")}function u(){s+=c}for(;i{r(y)}:i}function r(e){if(Q(e)){const t=a.get(e);t&&(a.delete(e),o.splice(o.indexOf(t),1),t.children.forEach(r),t.alias.forEach(r))}else{const t=o.indexOf(e);t>-1&&(o.splice(t,1),e.record.name&&a.delete(e.record.name),e.children.forEach(r),e.alias.forEach(r))}}function c(e){let t=0;for(;t=0&&(e.record.path!==o[t].record.path||!fe(e,o[t]));)t++;o.splice(t,0,e),e.record.name&&!be(e)&&a.set(e.record.name,e)}return t=ve({strict:!1,end:!0,sensitive:!1},t),e.forEach(e=>n(e)),{addRoute:n,resolve:function(e,t){let n,r,c,i={};if("name"in e&&e.name){if(n=a.get(e.name),!n)throw ee(1,{location:e});0,c=n.record.name,i=l(pe(t.params,n.keys.filter(e=>!e.optional).concat(n.parent?n.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&pe(e.params,n.keys.map(e=>e.name))),r=n.stringify(i)}else if(null!=e.path)r=e.path,n=o.find(e=>e.re.test(r)),n&&(i=n.parse(r),c=n.record.name);else{if(n=t.name?a.get(t.name):o.find(e=>e.re.test(t.path)),!n)throw ee(1,{location:e,currentLocation:t});c=n.record.name,i=l({},t.params,e.params),r=n.stringify(i)}const s=[];let d=n;for(;d;)s.unshift(d.record),d=d.parent;return{name:c,path:r,params:i,matched:s,meta:ye(s)}},removeRoute:r,getRoutes:function(){return o},getRecordMatcher:function(e){return a.get(e)}}}function pe(e,t){const o={};for(const a of t)a in e&&(o[a]=e[a]);return o}function ue(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const a in e.components)t[a]="object"==typeof o?o[a]:o;return t}function be(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ye(e){return e.reduce((e,t)=>l(e,t.meta),{})}function ve(e,t){const o={};for(const a in e)o[a]=a in t?t[a]:e[a];return o}function fe(e,t){return t.children.some(t=>t===e||fe(e,t))}function me(e){const t={};if(""===e||"?"===e)return t;const o=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;ee&&S(e)):[a&&S(a)]).forEach(e=>{void 0!==e&&(t+=(t.length?"&":"")+o,null!=e&&(t+="="+e))})}return t}function he(e){const t={};for(const o in e){const a=e[o];void 0!==a&&(t[o]=s(a)?a.map(e=>null==e?null:""+e):null==a?a:""+a)}return t}const je=Symbol(""),Oe=Symbol(""),_e=Symbol(""),we=Symbol(""),xe=Symbol("");function Se(){let e=[];return{add:function(t){return e.push(t),()=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function Ae(e,t,o){const n=()=>{e[t].delete(o)};Object(a.s)(n),Object(a.r)(n),Object(a.q)(()=>{e[t].add(o)}),e[t].add(o)}function Ce(e){const t=Object(a.m)(je,{}).value;t&&Ae(t,"leaveGuards",e)}function ke(e){const t=Object(a.m)(je,{}).value;t&&Ae(t,"updateGuards",e)}function Pe(e,t,o,a,n,r=(e=>e())){const l=a&&(a.enterCallbacks[n]=a.enterCallbacks[n]||[]);return()=>new Promise((c,i)=>{const s=e=>{var r;!1===e?i(ee(4,{from:o,to:t})):e instanceof Error?i(e):"string"==typeof(r=e)||r&&"object"==typeof r?i(ee(2,{from:t,to:e})):(l&&a.enterCallbacks[n]===l&&"function"==typeof e&&l.push(e),c())},d=r(()=>e.call(a&&a.instances[n],t,o,s));let p=Promise.resolve(d);e.length<3&&(p=p.then(s)),p.catch(e=>i(e))})}function Ee(e,t,o,a,n=(e=>e())){const l=[];for(const i of e){0;for(const e in i.components){let s=i.components[e];if("beforeRouteEnter"===t||i.instances[e])if("object"==typeof(c=s)||"displayName"in c||"props"in c||"__vccOpts"in c){const r=(s.__vccOpts||s)[t];r&&l.push(Pe(r,o,a,i,e,n))}else{let c=s();0,l.push(()=>c.then(l=>{if(!l)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${i.path}"`));const c=r(l)?l.default:l;i.components[e]=c;const s=(c.__vccOpts||c)[t];return s&&Pe(s,o,a,i,e,n)()}))}}}var c;return l}function Te(e){return e.matched.every(e=>e.redirect)?Promise.reject(new Error("Cannot load a route that redirects.")):Promise.all(e.matched.map(e=>e.components&&Promise.all(Object.keys(e.components).reduce((t,o)=>{const a=e.components[o];return"function"!=typeof a||"displayName"in a||t.push(a().then(t=>{if(!t)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${e.path}". Ensure you passed a function that returns a promise.`));const a=r(t)?t.default:t;e.components[o]=a})),t},[])))).then(()=>e)}function Le(e){const t=Object(a.m)(_e),o=Object(a.m)(we),n=Object(a.c)(()=>t.resolve(Object(a.E)(e.to))),r=Object(a.c)(()=>{const{matched:e}=n.value,{length:t}=e,a=e[t-1],r=o.matched;if(!a||!r.length)return-1;const l=r.findIndex(T.bind(null,a));if(l>-1)return l;const c=De(e[t-2]);return t>1&&De(a)===c&&r[r.length-1].path!==c?r.findIndex(T.bind(null,e[t-2])):l}),l=Object(a.c)(()=>r.value>-1&&function(e,t){for(const o in t){const a=t[o],n=e[o];if("string"==typeof a){if(a!==n)return!1}else if(!s(n)||n.length!==a.length||a.some((e,t)=>e!==n[t]))return!1}return!0}(o.params,n.value.params)),c=Object(a.c)(()=>r.value>-1&&r.value===o.matched.length-1&&L(o.params,n.value.params));return{route:n,href:Object(a.c)(()=>n.value.href),isActive:l,isExactActive:c,navigate:function(o={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(o)?t[Object(a.E)(e.replace)?"replace":"push"](Object(a.E)(e.to)).catch(i):Promise.resolve()}}}const Ie=Object(a.j)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Le,setup(e,{slots:t}){const o=Object(a.v)(Le(e)),{options:n}=Object(a.m)(_e),r=Object(a.c)(()=>({[Ve(e.activeClass,n.linkActiveClass,"router-link-active")]:o.isActive,[Ve(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const n=t.default&&t.default(o);return e.custom?n:Object(a.l)("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:r.value},n)}}});function De(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ve=(e,t,o)=>null!=e?e:null!=t?t:o;function He(e,t){if(!e)return null;const o=e(t);return 1===o.length?o[0]:o}const Ye=Object(a.j)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const n=Object(a.m)(xe),r=Object(a.c)(()=>e.route||n.value),c=Object(a.m)(Oe,0),i=Object(a.c)(()=>{let e=Object(a.E)(c);const{matched:t}=r.value;let o;for(;(o=t[e])&&!o.components;)e++;return e}),s=Object(a.c)(()=>r.value.matched[i.value]);Object(a.u)(Oe,Object(a.c)(()=>i.value+1)),Object(a.u)(je,s),Object(a.u)(xe,r);const d=Object(a.w)();return Object(a.G)(()=>[d.value,s.value,e.name],([e,t,o],[a,n,r])=>{t&&(t.instances[o]=e,n&&n!==t&&e&&e===a&&(t.leaveGuards.size||(t.leaveGuards=n.leaveGuards),t.updateGuards.size||(t.updateGuards=n.updateGuards))),!e||!t||n&&T(t,n)&&a||(t.enterCallbacks[o]||[]).forEach(t=>t(e))},{flush:"post"}),()=>{const n=r.value,c=e.name,i=s.value,p=i&&i.components[c];if(!p)return He(o.default,{Component:p,route:n});const u=i.props[c],b=u?!0===u?n.params:"function"==typeof u?u(n):u:null,y=Object(a.l)(p,l({},b,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(i.instances[c]=null)},ref:d}));return He(o.default,{Component:y,route:n})||y}}});function Be(e){const t=de(e.routes,e),o=e.parseQuery||me,r=e.stringifyQuery||ge,d=e.history;const p=Se(),u=Se(),b=Se(),y=Object(a.C)(X);let v=X;n&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=c.bind(null,e=>""+e),m=c.bind(null,A),h=c.bind(null,C);function O(e,a){if(a=l({},a||y.value),"string"==typeof e){const n=P(o,e,a.path),r=t.resolve({path:n.path},a),c=d.createHref(n.fullPath);return l(n,r,{params:h(r.params),hash:C(n.hash),redirectedFrom:void 0,href:c})}let n;if(null!=e.path)n=l({},e,{path:P(o,e.path,a.path).path});else{const t=l({},e.params);for(const e in t)null==t[e]&&delete t[e];n=l({},e,{params:m(t)}),a.params=m(a.params)}const c=t.resolve(n,a),i=e.hash||"";c.params=f(h(c.params));const s=function(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}(r,l({},e,{hash:(p=i,x(p).replace(j,"{").replace(_,"}").replace(g,"^")),path:c.path}));var p;const u=d.createHref(s);return l({fullPath:s,hash:i,query:r===ge?he(e.query):e.query||{}},c,{redirectedFrom:void 0,href:u})}function w(e){return"string"==typeof e?P(o,e,y.value.path):l({},e)}function S(e,t){if(v!==e)return ee(8,{from:t,to:e})}function k(e){return I(e)}function E(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:o}=t;let a="function"==typeof o?o(e):o;return"string"==typeof a&&(a=a.includes("?")||a.includes("#")?a=w(a):{path:a},a.params={}),l({query:e.query,hash:e.hash,params:null!=a.path?{}:e.params},a)}}function I(e,t){const o=v=O(e),a=y.value,n=e.state,c=e.force,i=!0===e.replace,s=E(o);if(s)return I(l(w(s),{state:"object"==typeof s?l({},n,s.state):n,force:c,replace:i}),t||o);const d=o;let p;return d.redirectedFrom=t,!c&&function(e,t,o){const a=t.matched.length-1,n=o.matched.length-1;return a>-1&&a===n&&T(t.matched[a],o.matched[n])&&L(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}(r,a,o)&&(p=ee(16,{to:d,from:a}),$(a,a,!0,!1)),(p?Promise.resolve(p):Y(d,a)).catch(e=>te(e)?te(e,2)?e:Z(e):q(e,d,a)).then(e=>{if(e){if(te(e,2))return I(l({replace:i},w(e.to),{state:"object"==typeof e.to?l({},n,e.to.state):n,force:c}),t||d)}else e=R(d,a,!0,i,n);return B(d,a,e),e})}function D(e,t){const o=S(e,t);return o?Promise.reject(o):Promise.resolve()}function H(e){const t=ne.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function Y(e,t){let o;const[a,n,r]=function(e,t){const o=[],a=[],n=[],r=Math.max(t.matched.length,e.matched.length);for(let l=0;lT(e,r))?a.push(r):o.push(r));const c=e.matched[l];c&&(t.matched.find(e=>T(e,c))||n.push(c))}return[o,a,n]}(e,t);o=Ee(a.reverse(),"beforeRouteLeave",e,t);for(const n of a)n.leaveGuards.forEach(a=>{o.push(Pe(a,e,t))});const l=D.bind(null,e,t);return o.push(l),le(o).then(()=>{o=[];for(const a of p.list())o.push(Pe(a,e,t));return o.push(l),le(o)}).then(()=>{o=Ee(n,"beforeRouteUpdate",e,t);for(const a of n)a.updateGuards.forEach(a=>{o.push(Pe(a,e,t))});return o.push(l),le(o)}).then(()=>{o=[];for(const a of r)if(a.beforeEnter)if(s(a.beforeEnter))for(const n of a.beforeEnter)o.push(Pe(n,e,t));else o.push(Pe(a.beforeEnter,e,t));return o.push(l),le(o)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),o=Ee(r,"beforeRouteEnter",e,t,H),o.push(l),le(o))).then(()=>{o=[];for(const a of u.list())o.push(Pe(a,e,t));return o.push(l),le(o)}).catch(e=>te(e,8)?e:Promise.reject(e))}function B(e,t,o){b.list().forEach(a=>H(()=>a(e,t,o)))}function R(e,t,o,a,r){const c=S(e,t);if(c)return c;const i=t===X,s=n?history.state:{};o&&(a||i?d.replace(e.fullPath,l({scroll:i&&s&&s.scroll},r)):d.push(e.fullPath,r)),y.value=e,$(e,t,o,i),Z()}let F;function W(){F||(F=d.listen((e,t,o)=>{if(!re.listening)return;const a=O(e),r=E(a);if(r)return void I(l(r,{replace:!0}),a).catch(i);v=a;const c=y.value;var s,p;n&&(s=M(c.fullPath,o.delta),p=N(),z.set(s,p)),Y(a,c).catch(e=>te(e,12)?e:te(e,2)?(I(e.to,a).then(e=>{te(e,20)&&!o.delta&&o.type===V.pop&&d.go(-1,!1)}).catch(i),Promise.reject()):(o.delta&&d.go(-o.delta,!1),q(e,a,c))).then(e=>{(e=e||R(a,c,!1))&&(o.delta&&!te(e,8)?d.go(-o.delta,!1):o.type===V.pop&&te(e,20)&&d.go(-1,!1)),B(a,c,e)}).catch(i)}))}let K,G=Se(),J=Se();function q(e,t,o){Z(e);const a=J.list();return a.length?a.forEach(a=>a(e,t,o)):console.error(e),Promise.reject(e)}function Z(e){return K||(K=!e,W(),G.list().forEach(([t,o])=>e?o(e):t()),G.reset()),e}function $(t,o,r,l){const{scrollBehavior:c}=e;if(!n||!c)return Promise.resolve();const i=!r&&function(e){const t=z.get(e);return z.delete(e),t}(M(t.fullPath,0))||(l||!r)&&history.state&&history.state.scroll||null;return Object(a.n)().then(()=>c(t,o,i)).then(e=>e&&U(e)).catch(e=>q(e,t,o))}const oe=e=>d.go(e);let ae;const ne=new Set,re={currentRoute:y,listening:!0,addRoute:function(e,o){let a,n;return Q(e)?(a=t.getRecordMatcher(e),n=o):n=e,t.addRoute(n,a)},removeRoute:function(e){const o=t.getRecordMatcher(e);o&&t.removeRoute(o)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map(e=>e.record)},resolve:O,options:e,push:k,replace:function(e){return k(l(w(e),{replace:!0}))},go:oe,back:()=>oe(-1),forward:()=>oe(1),beforeEach:p.add,beforeResolve:u.add,afterEach:b.add,onError:J.add,isReady:function(){return K&&y.value!==X?Promise.resolve():new Promise((e,t)=>{G.add([e,t])})},install(e){e.component("RouterLink",Ie),e.component("RouterView",Ye),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Object(a.E)(y)}),n&&!ae&&y.value===X&&(ae=!0,k(d.location).catch(e=>{0}));const t={};for(const e in X)Object.defineProperty(t,e,{get:()=>y.value[e],enumerable:!0});e.provide(_e,this),e.provide(we,Object(a.B)(t)),e.provide(xe,y);const o=e.unmount;ne.add(e),e.unmount=function(){ne.delete(e),ne.size<1&&(v=X,F&&F(),F=null,y.value=X,ae=!1,K=!1),o()}}};function le(e){return e.reduce((e,t)=>e.then(()=>H(t)),Promise.resolve())}return re}function Re(){return Object(a.m)(_e)}function Ne(){return Object(a.m)(we)}},"./node_modules/vue/dist/vue.runtime.esm-bundler.js":function(e,t,o){"use strict";o.d(t,"v",(function(){return a.reactive})),o.d(t,"w",(function(){return a.ref})),o.d(t,"B",(function(){return a.shallowReactive})),o.d(t,"C",(function(){return a.shallowRef})),o.d(t,"E",(function(){return a.unref})),o.d(t,"o",(function(){return a.normalizeClass})),o.d(t,"p",(function(){return a.normalizeStyle})),o.d(t,"D",(function(){return a.toDisplayString})),o.d(t,"a",(function(){return a.Fragment})),o.d(t,"b",(function(){return a.KeepAlive})),o.d(t,"c",(function(){return a.computed})),o.d(t,"d",(function(){return a.createBlock})),o.d(t,"e",(function(){return a.createCommentVNode})),o.d(t,"f",(function(){return a.createElementBlock})),o.d(t,"g",(function(){return a.createElementVNode})),o.d(t,"h",(function(){return a.createTextVNode})),o.d(t,"i",(function(){return a.createVNode})),o.d(t,"j",(function(){return a.defineComponent})),o.d(t,"k",(function(){return a.getCurrentInstance})),o.d(t,"l",(function(){return a.h})),o.d(t,"m",(function(){return a.inject})),o.d(t,"n",(function(){return a.nextTick})),o.d(t,"q",(function(){return a.onActivated})),o.d(t,"r",(function(){return a.onDeactivated})),o.d(t,"s",(function(){return a.onUnmounted})),o.d(t,"t",(function(){return a.openBlock})),o.d(t,"u",(function(){return a.provide})),o.d(t,"x",(function(){return a.renderList})),o.d(t,"y",(function(){return a.renderSlot})),o.d(t,"z",(function(){return a.resolveComponent})),o.d(t,"A",(function(){return a.resolveDynamicComponent})),o.d(t,"G",(function(){return a.watch})),o.d(t,"H",(function(){return a.withCtx})),o.d(t,"I",(function(){return a.withDirectives})),o.d(t,"F",(function(){return w})),o.d(t,"J",(function(){return C}));var a=o("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),n=o("./node_modules/@vue/shared/dist/shared.esm-bundler.js"); /** -* @vue/shared v3.4.34 +* @vue/runtime-dom v3.4.32 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ +"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},i=(l.props=Object(n.e)({},a.BaseTransitionPropsValidators,c),(e,t=[])=>{Object(n.i)(e)?e.forEach(e=>e(...t)):e&&e(...t)}),s=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()},H=(e,t)=>{e._isLeaving=!1,b(e,O),b(e,w),b(e,_),t&&t()},Y=e=>(t,o)=>{const n=e?I:k,r=()=>V(t,e,o);i(n,[t,r]),y(()=>{b(t,e?m:l),u(t,e?h:v),s(n)||f(t,a,S,r)})};return Object(n.e)(t,{onBeforeEnter(e){i(C,[e]),u(e,l),u(e,d)},onBeforeAppear(e){i(L,[e]),u(e,m),u(e,g)},onEnter:Y(!1),onAppear:Y(!0),onLeave(e,t){e._isLeaving=!0;const o=()=>H(e,t);u(e,O),u(e,_),j(),y(()=>{e._isLeaving&&(b(e,O),u(e,w),s(E)||f(e,a,A,o))}),i(E,[e,o])},onEnterCancelled(e){V(e,!1),i(P,[e])},onAppearCancelled(e){V(e,!0),i(D,[e])},onLeaveCancelled(e){H(e),i(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:i}=m(e,t);if(!l)return a();const s=l+"end";let d=0;const p=()=>{e.removeEventListener(s,u),r()},u=t=>{t.target===e&&++d>=i&&p()};setTimeout(()=>{d(o[e]||"").split(", "),n=a("transitionDelay"),r=a("transitionDuration"),l=g(n,r),c=a("animationDelay"),i=a("animationDuration"),s=g(c,i);let d=null,p=0,u=0;"transition"===t?l>0&&(d="transition",p=l,u=r.length):"animation"===t?s>0&&(d="animation",p=s,u=i.length):(p=Math.max(l,s),d=p>0?l>s?"transition":"animation":null,u=d?"transition"===d?r.length:i.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__ */ -function n(e,t){const o=new Set(e.split(","));return t?e=>o.has(e.toLowerCase()):e=>o.has(e)}o.d(t,"a",(function(){return a})),o.d(t,"b",(function(){return c})),o.d(t,"c",(function(){return j})),o.d(t,"d",(function(){return A})),o.d(t,"e",(function(){return r})),o.d(t,"f",(function(){return w})),o.d(t,"g",(function(){return _})),o.d(t,"h",(function(){return C})),o.d(t,"i",(function(){return s})),o.d(t,"j",(function(){return b})),o.d(t,"k",(function(){return k})),o.d(t,"l",(function(){return D})),o.d(t,"m",(function(){return i})),o.d(t,"n",(function(){return p})),o.d(t,"o",(function(){return l})),o.d(t,"p",(function(){return T})),o.d(t,"q",(function(){return u})),o.d(t,"r",(function(){return E})),o.d(t,"s",(function(){return g})),o.d(t,"t",(function(){return f})),o.d(t,"u",(function(){return I})),o.d(t,"v",(function(){return B})),o.d(t,"w",(function(){return x})),o.d(t,"x",(function(){return S}));const a={},c=()=>{},l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),i=e=>e.startsWith("onUpdate:"),r=Object.assign,s=(Object.prototype.hasOwnProperty,Array.isArray),u=e=>"[object Set]"===h(e),d=e=>"[object Date]"===h(e),b=e=>"function"==typeof e,g=e=>"string"==typeof e,f=e=>"symbol"==typeof e,p=e=>null!==e&&"object"==typeof e,m=Object.prototype.toString,h=e=>m.call(e),v=e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))},O=/-(\w)/g,j=v(e=>e.replace(O,(e,t)=>t?t.toUpperCase():"")),y=/\B([A-Z])/g,w=v(e=>e.replace(y,"-$1").toLowerCase()),A=v(e=>e.charAt(0).toUpperCase()+e.slice(1)),C=(v(e=>e?"on"+A(e):""),(e,...t)=>{for(let o=0;o{const t=parseFloat(e);return isNaN(t)?e:t},S=e=>{const t=g(e)?Number(e):NaN;return isNaN(t)?e:t};const k=n("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),T=n("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),D=n("annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics"),P="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",E=n(P);function _(e){return!!e||""===e}function I(e,t){if(e===t)return!0;let o=d(e),n=d(t);if(o||n)return!(!o||!n)&&e.getTime()===t.getTime();if(o=f(e),n=f(t),o||n)return e===t;if(o=s(e),n=s(t),o||n)return!(!o||!n)&&function(e,t){if(e.length!==t.length)return!1;let o=!0;for(let n=0;o&&nI(e,t))}}).call(this,o(5))},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t)=>{const o=e.__vccOpts||e;for(const[e,n]of t)o[e]=n;return o}},function(e,t,o){e.exports=o(11)(5)},function(e,t,o){e.exports=o(11)(2)},function(e,t,o){"use strict";(function(e){o.d(t,"a",(function(){return r})),o.d(t,"b",(function(){return c})),o.d(t,"d",(function(){return a})),o.d(t,"c",(function(){return l})),o.d(t,"e",(function(){return i})),o.d(t,"f",(function(){return n})),o.d(t,"g",(function(){return u})),o.d(t,"h",(function(){return s})),o.d(t,"i",(function(){return d}));const n=t=>e.getTurboModule("demoTurbo").getString(t),a=t=>e.getTurboModule("demoTurbo").getNum(t),c=t=>e.getTurboModule("demoTurbo").getBoolean(t),l=t=>e.getTurboModule("demoTurbo").getMap(t),i=t=>e.getTurboModule("demoTurbo").getObject(t),r=t=>e.getTurboModule("demoTurbo").getArray(t),s=async t=>e.turboPromise(e.getTurboModule("demoTurbo").nativeWithPromise)(t),u=()=>e.getTurboModule("demoTurbo").getTurboConfig(),d=t=>e.getTurboModule("demoTurbo").printTurboConfig(t)}).call(this,o(5))},function(e,t,o){e.exports=o.p+"assets/defaultSource.jpg"},function(e,t,o){"use strict";let n;function a(e){n=e}function c(){return n}o.d(t,"b",(function(){return a})),o.d(t,"a",(function(){return c}))},function(e,t,o){"use strict";o.r(t),o.d(t,"NavigationFailureType",(function(){return $})),o.d(t,"RouterLink",(function(){return Ie})),o.d(t,"RouterView",(function(){return Ve})),o.d(t,"START_LOCATION",(function(){return R})),o.d(t,"createMemoryHistory",(function(){return q})),o.d(t,"createRouter",(function(){return He})),o.d(t,"createRouterMatcher",(function(){return ue})),o.d(t,"createWebHashHistory",(function(){return Q})),o.d(t,"createWebHistory",(function(){return J})),o.d(t,"isNavigationFailure",(function(){return te})),o.d(t,"loadRouteLocation",(function(){return Ee})),o.d(t,"matchedRouteKey",(function(){return je})),o.d(t,"onBeforeRouteLeave",(function(){return ke})),o.d(t,"onBeforeRouteUpdate",(function(){return Te})),o.d(t,"parseQuery",(function(){return he})),o.d(t,"routeLocationKey",(function(){return Ae})),o.d(t,"routerKey",(function(){return we})),o.d(t,"routerViewLocationKey",(function(){return Ce})),o.d(t,"stringifyQuery",(function(){return ve})),o.d(t,"useLink",(function(){return _e})),o.d(t,"useRoute",(function(){return Me})),o.d(t,"useRouter",(function(){return Ne})),o.d(t,"viewDepthKey",(function(){return ye}));var n=o(0); -/*! - * vue-router v4.4.0 - * (c) 2024 Eduardo San Martin Morote - * @license MIT - */ -const a="undefined"!=typeof document;function c(e){return e.__esModule||"Module"===e[Symbol.toStringTag]}const l=Object.assign;function i(e,t){const o={};for(const n in t){const a=t[n];o[n]=s(a)?a.map(e):e(a)}return o}const r=()=>{},s=Array.isArray;const u=/#/g,d=/&/g,b=/\//g,g=/=/g,f=/\?/g,p=/\+/g,m=/%5B/g,h=/%5D/g,v=/%5E/g,O=/%60/g,j=/%7B/g,y=/%7C/g,w=/%7D/g,A=/%20/g;function C(e){return encodeURI(""+e).replace(y,"|").replace(m,"[").replace(h,"]")}function x(e){return C(e).replace(p,"%2B").replace(A,"+").replace(u,"%23").replace(d,"%26").replace(O,"`").replace(j,"{").replace(w,"}").replace(v,"^")}function S(e){return null==e?"":function(e){return C(e).replace(u,"%23").replace(f,"%3F")}(e).replace(b,"%2F")}function k(e){try{return decodeURIComponent(""+e)}catch(e){}return""+e}const T=/\/$/;function D(e,t,o="/"){let n,a={},c="",l="";const i=t.indexOf("#");let r=t.indexOf("?");return i=0&&(r=-1),r>-1&&(n=t.slice(0,r),c=t.slice(r+1,i>-1?i:t.length),a=e(c)),i>-1&&(n=n||t.slice(0,i),l=t.slice(i,t.length)),n=function(e,t){if(e.startsWith("/"))return e;0;if(!e)return t;const o=t.split("/"),n=e.split("/"),a=n[n.length-1];".."!==a&&"."!==a||n.push("");let c,l,i=o.length-1;for(c=0;c1&&i--}return o.slice(0,i).join("/")+"/"+n.slice(c).join("/")}(null!=n?n:t,o),{fullPath:n+(c&&"?")+c+l,path:n,query:a,hash:k(l)}}function P(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function E(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function _(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(!I(e[o],t[o]))return!1;return!0}function I(e,t){return s(e)?B(e,t):s(t)?B(t,e):e===t}function B(e,t){return s(t)?e.length===t.length&&e.every((e,o)=>e===t[o]):1===e.length&&e[0]===t}const R={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var L,V;!function(e){e.pop="pop",e.push="push"}(L||(L={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(V||(V={}));function H(e){if(!e)if(a){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(T,"")}const N=/^[^#]+#/;function M(e,t){return e.replace(N,"#")+t}const z=()=>({left:window.scrollX,top:window.scrollY});function F(e){let t;if("el"in e){const o=e.el,n="string"==typeof o&&o.startsWith("#");0;const a="string"==typeof o?n?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!a)return;t=function(e,t){const o=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-o.left-(t.left||0),top:n.top-o.top-(t.top||0)}}(a,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function Y(e,t){return(history.state?history.state.position-t:-1)+e}const U=new Map;let W=()=>location.protocol+"//"+location.host;function G(e,t){const{pathname:o,search:n,hash:a}=t,c=e.indexOf("#");if(c>-1){let t=a.includes(e.slice(c))?e.slice(c).length:1,o=a.slice(t);return"/"!==o[0]&&(o="/"+o),P(o,"")}return P(o,e)+n+a}function K(e,t,o,n=!1,a=!1){return{back:e,current:t,forward:o,replaced:n,position:window.history.length,scroll:a?z():null}}function J(e){const t=function(e){const{history:t,location:o}=window,n={value:G(e,o)},a={value:t.state};function c(n,c,l){const i=e.indexOf("#"),r=i>-1?(o.host&&document.querySelector("base")?e:e.slice(i))+n:W()+e+n;try{t[l?"replaceState":"pushState"](c,"",r),a.value=c}catch(e){console.error(e),o[l?"replace":"assign"](r)}}return a.value||c(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:n,state:a,push:function(e,o){const i=l({},a.value,t.state,{forward:e,scroll:z()});c(i.current,i,!0),c(e,l({},K(n.value,e,null),{position:i.position+1},o),!1),n.value=e},replace:function(e,o){c(e,l({},t.state,K(a.value.back,e,a.value.forward,!0),o,{position:a.value.position}),!0),n.value=e}}}(e=H(e)),o=function(e,t,o,n){let a=[],c=[],i=null;const r=({state:c})=>{const l=G(e,location),r=o.value,s=t.value;let u=0;if(c){if(o.value=l,t.value=c,i&&i===r)return void(i=null);u=s?c.position-s.position:0}else n(l);a.forEach(e=>{e(o.value,r,{delta:u,type:L.pop,direction:u?u>0?V.forward:V.back:V.unknown})})};function s(){const{history:e}=window;e.state&&e.replaceState(l({},e.state,{scroll:z()}),"")}return window.addEventListener("popstate",r),window.addEventListener("beforeunload",s,{passive:!0}),{pauseListeners:function(){i=o.value},listen:function(e){a.push(e);const t=()=>{const t=a.indexOf(e);t>-1&&a.splice(t,1)};return c.push(t),t},destroy:function(){for(const e of c)e();c=[],window.removeEventListener("popstate",r),window.removeEventListener("beforeunload",s)}}}(e,t.state,t.location,t.replace);const n=l({location:"",base:e,go:function(e,t=!0){t||o.pauseListeners(),history.go(e)},createHref:M.bind(null,e)},t,o);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>t.state.value}),n}function q(e=""){let t=[],o=[""],n=0;function a(e){n++,n!==o.length&&o.splice(n),o.push(e)}const c={location:"",state:{},base:e=H(e),createHref:M.bind(null,e),replace(e){o.splice(n--,1),a(e)},push(e,t){a(e)},listen:e=>(t.push(e),()=>{const o=t.indexOf(e);o>-1&&t.splice(o,1)}),destroy(){t=[],o=[""],n=0},go(e,a=!0){const c=this.location,l=e<0?V.back:V.forward;n=Math.max(0,Math.min(n+e,o.length-1)),a&&function(e,o,{direction:n,delta:a}){const c={direction:n,delta:a,type:L.pop};for(const n of t)n(e,o,c)}(this.location,c,{direction:l,delta:e})}};return Object.defineProperty(c,"location",{enumerable:!0,get:()=>o[n]}),c}function Q(e){return(e=location.host?e||location.pathname+location.search:"").includes("#")||(e+="#"),J(e)}function X(e){return"string"==typeof e||"symbol"==typeof e}const Z=Symbol("");var $;!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}($||($={}));function ee(e,t){return l(new Error,{type:e,[Z]:!0},t)}function te(e,t){return e instanceof Error&&Z in e&&(null==t||!!(e.type&t))}const oe={sensitive:!1,strict:!1,start:!0,end:!0},ne=/[.+*?^${}()[\]/\\]/g;function ae(e,t){let o=0;for(;ot.length?1===t.length&&80===t[0]?1:-1:0}function ce(e,t){let o=0;const n=e.score,a=t.score;for(;o0&&t[t.length-1]<0}const ie={type:0,value:""},re=/[a-zA-Z0-9_]/;function se(e,t,o){const n=function(e,t){const o=l({},oe,t),n=[];let a=o.start?"^":"";const c=[];for(const t of e){const e=t.length?[]:[90];o.strict&&!t.length&&(a+="/");for(let n=0;n1&&("*"===i||"+"===i)&&t(`A repeatable param (${s}) must be alone in its segment. eg: '/:ids+.`),c.push({type:1,value:s,regexp:u,repeatable:"*"===i||"+"===i,optional:"*"===i||"?"===i})):t("Invalid state to consume buffer"),s="")}function b(){s+=i}for(;r{c(f)}:r}function c(e){if(X(e)){const t=n.get(e);t&&(n.delete(e),o.splice(o.indexOf(t),1),t.children.forEach(c),t.alias.forEach(c))}else{const t=o.indexOf(e);t>-1&&(o.splice(t,1),e.record.name&&n.delete(e.record.name),e.children.forEach(c),e.alias.forEach(c))}}function i(e){const t=function(e,t){let o=0,n=t.length;for(;o!==n;){const a=o+n>>1;ce(e,t[a])<0?n=a:o=a+1}const a=function(e){let t=e;for(;t=t.parent;)if(me(t)&&0===ce(e,t))return t;return}(e);a&&(n=t.lastIndexOf(a,n-1));return n}(e,o);o.splice(t,0,e),e.record.name&&!ge(e)&&n.set(e.record.name,e)}return t=pe({strict:!1,end:!0,sensitive:!1},t),e.forEach(e=>a(e)),{addRoute:a,resolve:function(e,t){let a,c,i,r={};if("name"in e&&e.name){if(a=n.get(e.name),!a)throw ee(1,{location:e});0,i=a.record.name,r=l(de(t.params,a.keys.filter(e=>!e.optional).concat(a.parent?a.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&de(e.params,a.keys.map(e=>e.name))),c=a.stringify(r)}else if(null!=e.path)c=e.path,a=o.find(e=>e.re.test(c)),a&&(r=a.parse(c),i=a.record.name);else{if(a=t.name?n.get(t.name):o.find(e=>e.re.test(t.path)),!a)throw ee(1,{location:e,currentLocation:t});i=a.record.name,r=l({},t.params,e.params),c=a.stringify(r)}const s=[];let u=a;for(;u;)s.unshift(u.record),u=u.parent;return{name:i,path:c,params:r,matched:s,meta:fe(s)}},removeRoute:c,clearRoutes:function(){o.length=0,n.clear()},getRoutes:function(){return o},getRecordMatcher:function(e){return n.get(e)}}}function de(e,t){const o={};for(const n of t)n in e&&(o[n]=e[n]);return o}function be(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const n in e.components)t[n]="object"==typeof o?o[n]:o;return t}function ge(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function fe(e){return e.reduce((e,t)=>l(e,t.meta),{})}function pe(e,t){const o={};for(const n in e)o[n]=n in t?t[n]:e[n];return o}function me({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function he(e){const t={};if(""===e||"?"===e)return t;const o=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;ee&&x(e)):[n&&x(n)]).forEach(e=>{void 0!==e&&(t+=(t.length?"&":"")+o,null!=e&&(t+="="+e))})}return t}function Oe(e){const t={};for(const o in e){const n=e[o];void 0!==n&&(t[o]=s(n)?n.map(e=>null==e?null:""+e):null==n?n:""+n)}return t}const je=Symbol(""),ye=Symbol(""),we=Symbol(""),Ae=Symbol(""),Ce=Symbol("");function xe(){let e=[];return{add:function(t){return e.push(t),()=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function Se(e,t,o){const a=()=>{e[t].delete(o)};Object(n.s)(a),Object(n.r)(a),Object(n.q)(()=>{e[t].add(o)}),e[t].add(o)}function ke(e){const t=Object(n.m)(je,{}).value;t&&Se(t,"leaveGuards",e)}function Te(e){const t=Object(n.m)(je,{}).value;t&&Se(t,"updateGuards",e)}function De(e,t,o,n,a,c=(e=>e())){const l=n&&(n.enterCallbacks[a]=n.enterCallbacks[a]||[]);return()=>new Promise((i,r)=>{const s=e=>{var c;!1===e?r(ee(4,{from:o,to:t})):e instanceof Error?r(e):"string"==typeof(c=e)||c&&"object"==typeof c?r(ee(2,{from:t,to:e})):(l&&n.enterCallbacks[a]===l&&"function"==typeof e&&l.push(e),i())},u=c(()=>e.call(n&&n.instances[a],t,o,s));let d=Promise.resolve(u);e.length<3&&(d=d.then(s)),d.catch(e=>r(e))})}function Pe(e,t,o,n,a=(e=>e())){const l=[];for(const r of e){0;for(const e in r.components){let s=r.components[e];if("beforeRouteEnter"===t||r.instances[e])if("object"==typeof(i=s)||"displayName"in i||"props"in i||"__vccOpts"in i){const c=(s.__vccOpts||s)[t];c&&l.push(De(c,o,n,r,e,a))}else{let i=s();0,l.push(()=>i.then(l=>{if(!l)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${r.path}"`));const i=c(l)?l.default:l;r.components[e]=i;const s=(i.__vccOpts||i)[t];return s&&De(s,o,n,r,e,a)()}))}}}var i;return l}function Ee(e){return e.matched.every(e=>e.redirect)?Promise.reject(new Error("Cannot load a route that redirects.")):Promise.all(e.matched.map(e=>e.components&&Promise.all(Object.keys(e.components).reduce((t,o)=>{const n=e.components[o];return"function"!=typeof n||"displayName"in n||t.push(n().then(t=>{if(!t)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${e.path}". Ensure you passed a function that returns a promise.`));const n=c(t)?t.default:t;e.components[o]=n})),t},[])))).then(()=>e)}function _e(e){const t=Object(n.m)(we),o=Object(n.m)(Ae);const a=Object(n.c)(()=>{const o=Object(n.E)(e.to);return t.resolve(o)}),c=Object(n.c)(()=>{const{matched:e}=a.value,{length:t}=e,n=e[t-1],c=o.matched;if(!n||!c.length)return-1;const l=c.findIndex(E.bind(null,n));if(l>-1)return l;const i=Be(e[t-2]);return t>1&&Be(n)===i&&c[c.length-1].path!==i?c.findIndex(E.bind(null,e[t-2])):l}),l=Object(n.c)(()=>c.value>-1&&function(e,t){for(const o in t){const n=t[o],a=e[o];if("string"==typeof n){if(n!==a)return!1}else if(!s(a)||a.length!==n.length||n.some((e,t)=>e!==a[t]))return!1}return!0}(o.params,a.value.params)),i=Object(n.c)(()=>c.value>-1&&c.value===o.matched.length-1&&_(o.params,a.value.params));return{route:a,href:Object(n.c)(()=>a.value.href),isActive:l,isExactActive:i,navigate:function(o={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(o)?t[Object(n.E)(e.replace)?"replace":"push"](Object(n.E)(e.to)).catch(r):Promise.resolve()}}}const Ie=Object(n.j)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:_e,setup(e,{slots:t}){const o=Object(n.v)(_e(e)),{options:a}=Object(n.m)(we),c=Object(n.c)(()=>({[Re(e.activeClass,a.linkActiveClass,"router-link-active")]:o.isActive,[Re(e.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const a=t.default&&t.default(o);return e.custom?a:Object(n.l)("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:c.value},a)}}});function Be(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Re=(e,t,o)=>null!=e?e:null!=t?t:o;function Le(e,t){if(!e)return null;const o=e(t);return 1===o.length?o[0]:o}const Ve=Object(n.j)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const a=Object(n.m)(Ce),c=Object(n.c)(()=>e.route||a.value),i=Object(n.m)(ye,0),r=Object(n.c)(()=>{let e=Object(n.E)(i);const{matched:t}=c.value;let o;for(;(o=t[e])&&!o.components;)e++;return e}),s=Object(n.c)(()=>c.value.matched[r.value]);Object(n.u)(ye,Object(n.c)(()=>r.value+1)),Object(n.u)(je,s),Object(n.u)(Ce,c);const u=Object(n.w)();return Object(n.G)(()=>[u.value,s.value,e.name],([e,t,o],[n,a,c])=>{t&&(t.instances[o]=e,a&&a!==t&&e&&e===n&&(t.leaveGuards.size||(t.leaveGuards=a.leaveGuards),t.updateGuards.size||(t.updateGuards=a.updateGuards))),!e||!t||a&&E(t,a)&&n||(t.enterCallbacks[o]||[]).forEach(t=>t(e))},{flush:"post"}),()=>{const a=c.value,i=e.name,r=s.value,d=r&&r.components[i];if(!d)return Le(o.default,{Component:d,route:a});const b=r.props[i],g=b?!0===b?a.params:"function"==typeof b?b(a):b:null,f=Object(n.l)(d,l({},g,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(r.instances[i]=null)},ref:u}));return Le(o.default,{Component:f,route:a})||f}}});function He(e){const t=ue(e.routes,e),o=e.parseQuery||he,c=e.stringifyQuery||ve,u=e.history;const d=xe(),b=xe(),g=xe(),f=Object(n.C)(R);let p=R;a&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const m=i.bind(null,e=>""+e),h=i.bind(null,S),O=i.bind(null,k);function y(e,n){if(n=l({},n||f.value),"string"==typeof e){const a=D(o,e,n.path),c=t.resolve({path:a.path},n),i=u.createHref(a.fullPath);return l(a,c,{params:O(c.params),hash:k(a.hash),redirectedFrom:void 0,href:i})}let a;if(null!=e.path)a=l({},e,{path:D(o,e.path,n.path).path});else{const t=l({},e.params);for(const e in t)null==t[e]&&delete t[e];a=l({},e,{params:h(t)}),n.params=h(n.params)}const i=t.resolve(a,n),r=e.hash||"";i.params=m(O(i.params));const s=function(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}(c,l({},e,{hash:(d=r,C(d).replace(j,"{").replace(w,"}").replace(v,"^")),path:i.path}));var d;const b=u.createHref(s);return l({fullPath:s,hash:r,query:c===ve?Oe(e.query):e.query||{}},i,{redirectedFrom:void 0,href:b})}function A(e){return"string"==typeof e?D(o,e,f.value.path):l({},e)}function x(e,t){if(p!==e)return ee(8,{from:t,to:e})}function T(e){return I(e)}function P(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:o}=t;let n="function"==typeof o?o(e):o;return"string"==typeof n&&(n=n.includes("?")||n.includes("#")?n=A(n):{path:n},n.params={}),l({query:e.query,hash:e.hash,params:null!=n.path?{}:e.params},n)}}function I(e,t){const o=p=y(e),n=f.value,a=e.state,i=e.force,r=!0===e.replace,s=P(o);if(s)return I(l(A(s),{state:"object"==typeof s?l({},a,s.state):a,force:i,replace:r}),t||o);const u=o;let d;return u.redirectedFrom=t,!i&&function(e,t,o){const n=t.matched.length-1,a=o.matched.length-1;return n>-1&&n===a&&E(t.matched[n],o.matched[a])&&_(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}(c,n,o)&&(d=ee(16,{to:u,from:n}),$(n,n,!0,!1)),(d?Promise.resolve(d):H(u,n)).catch(e=>te(e)?te(e,2)?e:Z(e):Q(e,u,n)).then(e=>{if(e){if(te(e,2))return I(l({replace:r},A(e.to),{state:"object"==typeof e.to?l({},a,e.to.state):a,force:i}),t||u)}else e=M(u,n,!0,r,a);return N(u,n,e),e})}function B(e,t){const o=x(e,t);return o?Promise.reject(o):Promise.resolve()}function V(e){const t=ae.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function H(e,t){let o;const[n,a,c]=function(e,t){const o=[],n=[],a=[],c=Math.max(t.matched.length,e.matched.length);for(let l=0;lE(e,c))?n.push(c):o.push(c));const i=e.matched[l];i&&(t.matched.find(e=>E(e,i))||a.push(i))}return[o,n,a]}(e,t);o=Pe(n.reverse(),"beforeRouteLeave",e,t);for(const a of n)a.leaveGuards.forEach(n=>{o.push(De(n,e,t))});const l=B.bind(null,e,t);return o.push(l),le(o).then(()=>{o=[];for(const n of d.list())o.push(De(n,e,t));return o.push(l),le(o)}).then(()=>{o=Pe(a,"beforeRouteUpdate",e,t);for(const n of a)n.updateGuards.forEach(n=>{o.push(De(n,e,t))});return o.push(l),le(o)}).then(()=>{o=[];for(const n of c)if(n.beforeEnter)if(s(n.beforeEnter))for(const a of n.beforeEnter)o.push(De(a,e,t));else o.push(De(n.beforeEnter,e,t));return o.push(l),le(o)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),o=Pe(c,"beforeRouteEnter",e,t,V),o.push(l),le(o))).then(()=>{o=[];for(const n of b.list())o.push(De(n,e,t));return o.push(l),le(o)}).catch(e=>te(e,8)?e:Promise.reject(e))}function N(e,t,o){g.list().forEach(n=>V(()=>n(e,t,o)))}function M(e,t,o,n,c){const i=x(e,t);if(i)return i;const r=t===R,s=a?history.state:{};o&&(n||r?u.replace(e.fullPath,l({scroll:r&&s&&s.scroll},c)):u.push(e.fullPath,c)),f.value=e,$(e,t,o,r),Z()}let W;function G(){W||(W=u.listen((e,t,o)=>{if(!ce.listening)return;const n=y(e),c=P(n);if(c)return void I(l(c,{replace:!0}),n).catch(r);p=n;const i=f.value;var s,d;a&&(s=Y(i.fullPath,o.delta),d=z(),U.set(s,d)),H(n,i).catch(e=>te(e,12)?e:te(e,2)?(I(e.to,n).then(e=>{te(e,20)&&!o.delta&&o.type===L.pop&&u.go(-1,!1)}).catch(r),Promise.reject()):(o.delta&&u.go(-o.delta,!1),Q(e,n,i))).then(e=>{(e=e||M(n,i,!1))&&(o.delta&&!te(e,8)?u.go(-o.delta,!1):o.type===L.pop&&te(e,20)&&u.go(-1,!1)),N(n,i,e)}).catch(r)}))}let K,J=xe(),q=xe();function Q(e,t,o){Z(e);const n=q.list();return n.length?n.forEach(n=>n(e,t,o)):console.error(e),Promise.reject(e)}function Z(e){return K||(K=!e,G(),J.list().forEach(([t,o])=>e?o(e):t()),J.reset()),e}function $(t,o,c,l){const{scrollBehavior:i}=e;if(!a||!i)return Promise.resolve();const r=!c&&function(e){const t=U.get(e);return U.delete(e),t}(Y(t.fullPath,0))||(l||!c)&&history.state&&history.state.scroll||null;return Object(n.n)().then(()=>i(t,o,r)).then(e=>e&&F(e)).catch(e=>Q(e,t,o))}const oe=e=>u.go(e);let ne;const ae=new Set,ce={currentRoute:f,listening:!0,addRoute:function(e,o){let n,a;return X(e)?(n=t.getRecordMatcher(e),a=o):a=e,t.addRoute(a,n)},removeRoute:function(e){const o=t.getRecordMatcher(e);o&&t.removeRoute(o)},clearRoutes:t.clearRoutes,hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map(e=>e.record)},resolve:y,options:e,push:T,replace:function(e){return T(l(A(e),{replace:!0}))},go:oe,back:()=>oe(-1),forward:()=>oe(1),beforeEach:d.add,beforeResolve:b.add,afterEach:g.add,onError:q.add,isReady:function(){return K&&f.value!==R?Promise.resolve():new Promise((e,t)=>{J.add([e,t])})},install(e){e.component("RouterLink",Ie),e.component("RouterView",Ve),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Object(n.E)(f)}),a&&!ne&&f.value===R&&(ne=!0,T(u.location).catch(e=>{0}));const t={};for(const e in R)Object.defineProperty(t,e,{get:()=>f.value[e],enumerable:!0});e.provide(we,this),e.provide(Ae,Object(n.B)(t)),e.provide(Ce,f);const o=e.unmount;ae.add(e),e.unmount=function(){ae.delete(e),ae.size<1&&(p=R,W&&W(),W=null,f.value=R,ne=!1,K=!1),o()}}};function le(e){return e.reduce((e,t)=>e.then(()=>V(t)),Promise.resolve())}return ce}function Ne(){return Object(n.m)(we)}function Me(e){return Object(n.m)(Ae)}},function(e,t,o){var n=o(51);e.exports=function(e,t,o){return(t=n(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=hippyVueBase},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["5aa12b",["#root"],[["flex",1],["backgroundColor",4294967295],["display","flex"],["flexDirection","column"]]],["5aa12b",["#header"],[["height",60],["backgroundColor",4282431619],["display","flex"],["flexDirection","row"],["alignItems","center"],["justifyContent","space-between"],["paddingHorizontal",10]]],["5aa12b",["#root .left-title"],[["display","flex"],["flexDirection","row"],["alignItems","center"],["justifyContent","flex-start"]]],["5aa12b",["#root #back-btn"],[["height",20],["width",24],["marginTop",18],["marginBottom",18]]],["5aa12b",["#root .body-container"],[["flex",1]]],["5aa12b",[".row"],[["flexDirection","row"]]],["5aa12b",[".column"],[["flexDirection","column"]]],["5aa12b",[".center"],[["justifyContent","center"],["alignContent","center"]]],["5aa12b",[".fullscreen"],[["flex",1]]],["5aa12b",[".row"],[["flexDirection","row"]]],["5aa12b",[".column"],[["flexDirection","column"]]],["5aa12b",[".center"],[["justifyContent","center"],["alignContent","center"]]],["5aa12b",[".fullscreen"],[["flex",1]]],["5aa12b",[".toolbar"],[["display","flex"],["height",40],["flexDirection","row"]]],["5aa12b",[".toolbar .toolbar-btn"],[["display","flex"],["flexDirection","column"],["flexGrow",1],["justifyContent","center"],["margin",3],["borderStyle","solid"],["borderColor",4278190335],["borderWidth",1]]],["5aa12b",[".toolbar .toolbar-btn p",".toolbar .toolbar-btn span"],[["justifyContent","center"],["textAlign","center"]]],["5aa12b",[".toolbar .toolbar-text"],[["lineHeight",40]]],["5aa12b",[".title"],[["fontSize",20],["lineHeight",60],["marginLeft",5],["marginRight",10],["fontWeight","bold"],["backgroundColor",4282431619],["color",4294967295]]],["5aa12b",[".feature-content"],[["backgroundColor",4294967295]]],["5aa12b",[".bottom-tabs"],[["height",48],["display","flex"],["flexDirection","row"],["alignItems","center"],["justifyContent","center"],["backgroundColor",4294967295],["borderTopWidth",1],["borderStyle","solid"],["borderTopColor",4293848814]]],["5aa12b",[".bottom-tab"],[["height",48],["flex",1],["fontSize",16],["color",4280558628],["display","flex"],["flexDirection","row"],["alignItems","center"],["justifyContent","center"]]],["5aa12b",[".bottom-tab.activated .bottom-tab-text"],[["color",4283210490]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["05bd57",[".button-label[data-v-05797918]"],[["width",220],["height",50],["marginTop",20],["textAlign","center"],["lineHeight",50],["marginBottom",20]]],["05bd57",[".button-demo[data-v-05797918]"],[["display","flex"],["alignItems","center"],["flexDirection","column"]]],["05bd57",[".button-demo-1[data-v-05797918]"],[["height",64],["width",240],["borderStyle","solid"],["borderColor",4282431619],["borderWidth",2],["borderRadius",10],["alignItems","center"]]],["05bd57",[".button-demo-1 .button-text[data-v-05797918]"],[["lineHeight",56],["textAlign","center"]]],["05bd57",[".button-demo-1-image[data-v-05797918]"],[["width",216],["height",58],["backgroundColor",4282431619],["marginTop",20]]]])))}).call(this,o(5))},function(e,t){function o(t){return e.exports=o="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.exports.__esModule=!0,e.exports.default=e.exports,o(t)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["ec719a",["#div-demo[data-v-fe0428e4]"],[["flex",1],["overflowY","scroll"],["margin",7]]],["ec719a",[".display-flex[data-v-fe0428e4]"],[["display","flex"]]],["ec719a",[".flex-row[data-v-fe0428e4]"],[["flexDirection","row"]]],["ec719a",[".flex-column[data-v-fe0428e4]"],[["flexDirection","column"]]],["ec719a",[".text-block[data-v-fe0428e4]"],[["width",100],["height",100],["lineHeight",100],["borderStyle","solid"],["borderWidth",1],["borderColor",4282431619],["fontSize",80],["margin",20],["color",4282431619],["textAlign","center"]]],["ec719a",[".div-demo-1-1[data-v-fe0428e4]"],[["display","flex"],["height",40],["width",200],["linearGradient",{angle:"30",colorStopList:[{ratio:.1,color:4278190335},{ratio:.4,color:4294967040},{ratio:.5,color:4294901760}]}],["borderWidth",2],["borderStyle","solid"],["borderColor",4278190080],["borderRadius",2],["justifyContent","center"],["alignItems","center"],["marginTop",10],["marginBottom",10]]],["ec719a",[".div-demo-1-text[data-v-fe0428e4]"],[["color",4294967295]]],["ec719a",[".div-demo-2[data-v-fe0428e4]"],[["overflowX","scroll"],["margin",10],["flexDirection","row"]]],["ec719a",[".div-demo-3[data-v-fe0428e4]"],[["width",150],["overflowY","scroll"],["margin",10],["height",320]]],["ec719a",[".div-demo-transform[data-v-fe0428e4]"],[["backgroundColor",4282431619],["transform",[{rotate:"30deg"},{scale:.5}]],["width",120],["height",120]]],["ec719a",[".div-demo-transform-text[data-v-fe0428e4]"],[["lineHeight",120],["height",120],["width",120],["textAlign","center"]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["00af4b",[".async-component-outer-local[data-v-0fa9b63f]"],[["height",200],["width",300]]],["00af4b",["#demo-dynamicimport[data-v-0fa9b63f]"],[["flex",1],["display","flex"],["alignItems","center"],["flexDirection","column"],["backgroundColor",4294967295]]],["00af4b",[".import-btn[data-v-0fa9b63f]"],[["marginTop",20],["width",130],["height",40],["textAlign","center"],["backgroundColor",4282431619],["flexDirection","row"],["borderRadius",5],["justifyContent","center"]]],["00af4b",[".import-btn p[data-v-0fa9b63f]"],[["color",4278190080],["textAlign","center"],["height",40],["lineHeight",40]]],["00af4b",[".async-com-wrapper[data-v-0fa9b63f]"],[["marginTop",20]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["0db5bf",["#iframe-demo"],[["display","flex"],["flex",1],["flexDirection","column"],["margin",7]]],["0db5bf",["#iframe-demo #address"],[["height",48],["borderColor",4291611852],["borderWidth",1],["borderStyle","solid"]]],["0db5bf",["#iframe-demo #iframe"],[["flex",1],["flexGrow",1]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["d38885",["#demo-img[data-v-25c66a4a]"],[["overflowY","scroll"],["flex",1],["margin",7]]],["d38885",["#demo-img #demo-img-container[data-v-25c66a4a]"],[["display","flex"],["flexDirection","column"]]],["d38885",["#demo-img .image[data-v-25c66a4a]"],[["width",300],["height",180],["margin",30],["borderWidth",1],["borderStyle","solid"],["borderColor",4282431619]]],["d38885",["#demo-img .img-result[data-v-25c66a4a]"],[["width",300],["height",150],["marginTop",-30],["marginHorizontal",30],["borderWidth",1],["borderStyle","solid"],["borderColor",4282431619]]],["d38885",["#demo-img .contain[data-v-25c66a4a]"],[["resizeMode","contain"]]],["d38885",["#demo-img .cover[data-v-25c66a4a]"],[["resizeMode","cover"]]],["d38885",["#demo-img .center[data-v-25c66a4a]"],[["resizeMode","center"]]],["d38885",["#demo-img .tint-color[data-v-25c66a4a]"],[["tintColor",2571155587]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["939ddb",[".demo-input[data-v-ebfef7c0]"],[["display","flex"],["flex",1],["alignItems","center"],["flexDirection","column"],["margin",7]]],["939ddb",[".demo-input .input[data-v-ebfef7c0]"],[["width",300],["height",48],["color",4280558628],["borderWidth",1],["borderStyle","solid"],["borderColor",4291611852],["fontSize",16],["margin",20]]],["939ddb",[".demo-input .input-button[data-v-ebfef7c0]"],[["borderColor",4283210490],["borderWidth",1],["borderStyle","solid"],["paddingLeft",10],["paddingRight",10],["marginTop",5],["marginBottom",5]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["11992c",["#demo-list[data-v-75193fb0]"],[["collapsable",!1],["flex",1]]],["11992c",["#demo-list #loading[data-v-75193fb0]"],[["fontSize",11],["color",4289374890],["alignSelf","center"]]],["11992c",["#demo-list .container[data-v-75193fb0]"],[["backgroundColor",4294967295],["collapsable",!1]]],["11992c",["#demo-list .item-container[data-v-75193fb0]"],[["padding",12]]],["11992c",["#demo-list .separator-line[data-v-75193fb0]"],[["marginLeft",12],["marginRight",12],["height",1],["backgroundColor",4293256677]]],["11992c",["#demo-list .item-horizontal-style[data-v-75193fb0]"],[["height",50],["width",100]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["b88068",[".p-demo[data-v-34e2123c]"],[["margin",7],["overflowY","scroll"],["flex",1],["flexDirection","column"]]],["b88068",[".p-demo .p-demo-content[data-v-34e2123c]"],[["margin",20]]],["b88068",[".p-demo .p-demo-content-status[data-v-34e2123c]"],[["marginLeft",20],["marginRight",20],["marginBottom",10]]],["b88068",[".p-demo .p-demo-1[data-v-34e2123c]"],[["color",4294199351]]],["b88068",[".p-demo .p-demo-2[data-v-34e2123c]"],[["fontSize",30]]],["b88068",[".p-demo .p-demo-3[data-v-34e2123c]"],[["fontWeight","bold"]]],["b88068",[".p-demo .p-demo-4[data-v-34e2123c]"],[["textDecorationLine","underline"],["textDecorationStyle","dotted"]]],["b88068",[".p-demo .p-demo-5[data-v-34e2123c]"],[["textDecorationLine","line-through"],["textDecorationColor",4294901760]]],["b88068",[".p-demo .p-demo-6[data-v-34e2123c]"],[["color",4278211289],["fontFamily","TTTGB"],["fontSize",32]]],["b88068",[".p-demo .p-demo-8[data-v-34e2123c]"],[["letterSpacing",-1]]],["b88068",[".p-demo .p-demo-9[data-v-34e2123c]"],[["letterSpacing",5]]],["b88068",[".p-demo .button-bar[data-v-34e2123c]"],[["flexDirection","row"]]],["b88068",[".p-demo .button[data-v-34e2123c]"],[["width",100],["margin",2],["backgroundColor",4293848814],["borderStyle","solid"],["borderColor",4278190080],["borderWidth",1],["alignItems","center"],["flexShrink",1]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["a451bc",["#shadow-demo[data-v-19ab3f2d]"],[["flex",1]]],["a451bc",["#shadow-demo .no-offset-shadow-demo-cube-android[data-v-19ab3f2d]"],[["position","absolute"],["left",50],["top",50],["width",170],["height",170],["shadowOpacity",.6],["shadowRadius",5],["shadowColor",4278815273],["borderRadius",5]]],["a451bc",["#shadow-demo .no-offset-shadow-demo-content-android[data-v-19ab3f2d]"],[["position","absolute"],["left",5],["top",5],["width",160],["height",160],["backgroundColor",4286611584],["borderRadius",5],["display","flex"],["justifyContent","center"],["alignItems","center"]]],["a451bc",["#shadow-demo .no-offset-shadow-demo-content-android p[data-v-19ab3f2d]"],[["color",4294967295]]],["a451bc",["#shadow-demo .no-offset-shadow-demo-cube-ios[data-v-19ab3f2d]"],[["position","absolute"],["left",50],["top",50],["width",160],["height",160],["shadowOpacity",.6],["shadowRadius",5],["shadowSpread",1],["shadowColor",4278815273],["borderRadius",5]]],["a451bc",["#shadow-demo .no-offset-shadow-demo-content-ios[data-v-19ab3f2d]"],[["width",160],["height",160],["backgroundColor",4286611584],["borderRadius",5],["color",4294967295],["display","flex"],["justifyContent","center"],["alignItems","center"]]],["a451bc",["#shadow-demo .no-offset-shadow-demo-content-ios p[data-v-19ab3f2d]"],[["color",4294967295]]],["a451bc",["#shadow-demo .offset-shadow-demo-cube-android[data-v-19ab3f2d]"],[["position","absolute"],["left",50],["top",300],["width",175],["height",175],["shadowOpacity",.6],["shadowRadius",5],["shadowColor",4278815273],["shadowOffset",{x:15,y:15}]]],["a451bc",["#shadow-demo .offset-shadow-demo-content-android[data-v-19ab3f2d]"],[["width",160],["height",160],["backgroundColor",4286611584],["display","flex"],["justifyContent","center"],["alignItems","center"]]],["a451bc",["#shadow-demo .offset-shadow-demo-content-android p[data-v-19ab3f2d]"],[["color",4294967295]]],["a451bc",["#shadow-demo .offset-shadow-demo-cube-ios[data-v-19ab3f2d]"],[["position","absolute"],["left",50],["top",300],["width",160],["height",160],["shadowOpacity",.6],["shadowRadius",5],["shadowSpread",1],["shadowOffset",{x:10,y:10}],["shadowColor",4278815273]]],["a451bc",["#shadow-demo .offset-shadow-demo-content-ios[data-v-19ab3f2d]"],[["width",160],["height",160],["backgroundColor",4286611584],["justifyContent","center"],["alignItems","center"]]],["a451bc",["#shadow-demo .offset-shadow-demo-content-ios p[data-v-19ab3f2d]"],[["color",4294967295]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["42d8d9",["#demo-textarea[data-v-6d6167b3]"],[["display","flex"],["alignItems","center"],["flexDirection","column"],["margin",7]]],["42d8d9",["#demo-textarea label[data-v-6d6167b3]"],[["alignSelf","flex-start"],["fontWeight","bold"],["marginTop",5],["marginBottom",5]]],["42d8d9",["#demo-textarea .textarea[data-v-6d6167b3]"],[["width",300],["height",150],["color",4280558628],["textAlign","left"],["borderWidth",1],["borderStyle","solid"],["borderColor",4291611852],["underlineColorAndroid",4282431619],["placeholderTextColor",4284900966],["alignSelf","center"]]],["42d8d9",["#demo-textarea .output[data-v-6d6167b3]"],[["wordBreak","break-all"]]],["42d8d9",["#demo-textarea .button-bar[data-v-6d6167b3]"],[["flexDirection","row"]]],["42d8d9",["#demo-textarea .button[data-v-6d6167b3]"],[["width",100],["margin",2],["backgroundColor",4293848814],["borderStyle","solid"],["borderColor",4278190080],["borderWidth",1],["alignItems","center"],["flexShrink",1]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["dc3da6",[".demo-turbo"],[["flex",1],["display","flex"],["flexDirection","column"]]],["dc3da6",[".demo-turbo .cell .contentView"],[["flexDirection","row"],["justifyContent","space-between"],["backgroundColor",4291611852],["marginBottom",1]]],["dc3da6",[".demo-turbo .func-info"],[["justifyContent","center"],["paddingLeft",15],["paddingRight",15]]],["dc3da6",[".demo-turbo .action-button"],[["backgroundColor",4283210490],["color",4294967295],["height",44],["lineHeight",44],["textAlign","center"],["width",80],["borderRadius",6]]],["dc3da6",[".demo-turbo .result"],[["backgroundColor",4287609999],["minHeight",150],["padding",15]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["4f5975",["#websocket-demo .demo-title[data-v-99a0fc74]"],[["color",4291611852]]],["4f5975",["#websocket-demo .output[data-v-99a0fc74]"],[["overflowY","scroll"]]],["4f5975",["#websocket-demo button[data-v-99a0fc74]"],[["backgroundColor",4282431619],["borderColor",4284328955],["borderStyle","solid"],["borderWidth",1],["paddingHorizontal",20],["fontSize",16],["color",4294967295],["margin",10]]],["4f5975",["#websocket-demo button span[data-v-99a0fc74]"],[["height",56],["lineHeight",56]]],["4f5975",["#websocket-demo input[data-v-99a0fc74]"],[["color",4278190080],["flex",1],["height",36],["lineHeight",36],["fontSize",14],["borderBottomColor",4282431619],["borderBottomWidth",1],["borderStyle","solid"],["padding",0]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["7b11e6",[".set-native-props-demo[data-v-4521f010]"],[["display","flex"],["alignItems","center"],["position","relative"]]],["7b11e6",[".native-demo-1-drag[data-v-4521f010]"],[["height",80],["backgroundColor",4282431619],["position","relative"],["marginTop",10]]],["7b11e6",[".native-demo-1-point[data-v-4521f010]"],[["height",80],["width",80],["color",4282445460],["backgroundColor",4282445460],["position","absolute"],["left",0]]],["7b11e6",[".native-demo-2-drag[data-v-4521f010]"],[["height",80],["backgroundColor",4282431619],["position","relative"],["marginTop",10]]],["7b11e6",[".native-demo-2-point[data-v-4521f010]"],[["height",80],["width",80],["color",4282445460],["backgroundColor",4282445460],["position","absolute"],["left",0]]],["7b11e6",[".splitter[data-v-4521f010]"],[["marginTop",50]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["698a9e",[".color-green[data-v-35b77823]"],[["marginTop",10],["justifyContent","center"],["alignItems","center"],["backgroundColor",4282431619],["width",200],["height",80],["marginLeft",5]]],["698a9e",[".color-white[data-v-35b77823]"],[["justifyContent","center"],["alignItems","center"],["backgroundColor",4294967295],["width",100],["height",35]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["75284e",[".loop-green[data-v-0ffc52dc]"],[["marginTop",10],["justifyContent","center"],["alignItems","center"],["backgroundColor",4282431619],["width",200],["height",80]]],["75284e",[".loop-white[data-v-0ffc52dc]"],[["justifyContent","center"],["alignItems","center"],["backgroundColor",4294967295],["width",160],["height",50]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["64f5ce",[".loop-green[data-v-54047ca5]"],[["marginTop",10],["justifyContent","center"],["alignItems","center"],["backgroundColor",4282431619],["width",200],["height",80]]],["64f5ce",[".loop-white[data-v-54047ca5]"],[["justifyContent","center"],["alignItems","center"],["backgroundColor",4294967295],["width",160],["height",50]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["d1531b",[".vote-face[data-v-7020ef76]"],[["width",40],["height",40],["backgroundColor",4294957824],["borderColor",4293505366],["borderWidth",1],["borderStyle","solid"],["borderRadius",20]]],["d1531b",[".vote-down-face[data-v-7020ef76]"],[["position","absolute"],["top",15],["left",16],["width",18],["height",18],["resizeMode","stretch"]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["f611de",[".vote-face[data-v-0dd85e5f]"],[["width",40],["height",40],["backgroundColor",4294957824],["borderColor",4293505366],["borderWidth",1],["borderStyle","solid"],["borderRadius",20]]],["f611de",[".vote-up-eye[data-v-0dd85e5f]"],[["position","absolute"],["top",16],["left",16],["width",18],["height",4]]],["f611de",[".vote-up-mouth[data-v-0dd85e5f]"],[["position","absolute"],["bottom",9],["left",9],["width",32],["height",16]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["200f62",["#animation-demo[data-v-4fa3f0c0]"],[["overflow","scroll"],["margin",7]]],["200f62",["#animation-demo .vote-icon[data-v-4fa3f0c0]"],[["width",50],["height",50],["marginRight",10],["alignItems","center"],["justifyContent","center"]]],["200f62",["#animation-demo .vote-face-container[data-v-4fa3f0c0]"],[["height",60]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["de55d0",["#dialog-demo[data-v-58c0fb99]"],[["display","flex"],["alignItems","center"],["flexDirection","column"],["flex",1],["margin",7]]],["de55d0",[".dialog-demo-button-1[data-v-58c0fb99]"],[["height",64],["width",200],["borderStyle","solid"],["borderColor",4282431619],["borderWidth",2],["borderRadius",10],["alignItems","center"],["marginTop",10]]],["de55d0",[".dialog-demo-button-1 .button-text[data-v-58c0fb99]"],[["lineHeight",56],["textAlign","center"]]],["de55d0",[".dialog-demo-button-2[data-v-58c0fb99]"],[["height",64],["width",200],["borderStyle","solid"],["borderColor",4294967295],["borderWidth",2],["borderRadius",10],["alignItems","center"],["marginTop",10]]],["de55d0",[".dialog-demo-button-2 .button-text[data-v-58c0fb99]"],[["lineHeight",56],["textAlign","center"]]],["de55d0",[".dialog-demo-wrapper[data-v-58c0fb99]"],[["flex",1],["backgroundColor",2000730243]]],["de55d0",[".dialog-2-demo-wrapper[data-v-58c0fb99]"],[["flex",1],["backgroundColor",3997451332],["justifyContent","center"],["alignItems","center"]]],["de55d0",[".dialog-demo-close-btn[data-v-58c0fb99]"],[["width",210],["height",200],["marginTop",300],["backgroundColor",4282431619],["justifyContent","center"],["alignItems","center"]]],["de55d0",[".dialog-demo-close-btn-text[data-v-58c0fb99]"],[["width",200],["fontSize",22],["lineHeight",40],["flexDirection","column"],["textAlign","center"]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["3bc20c",["#demo-vue-native[data-v-2aae558d]"],[["flex",1],["padding",12],["overflowY","scroll"]]],["3bc20c",[".native-block[data-v-2aae558d]"],[["marginTop",15],["marginBottom",15]]],["3bc20c",[".native-block p[data-v-2aae558d]"],[["marginVertical",5]]],["3bc20c",[".vue-native-title[data-v-2aae558d]"],[["textDecorationLine","underline"],["color",4282431619]]],["3bc20c",[".event-btn[data-v-2aae558d]"],[["backgroundColor",4282431619],["flex",1],["flexDirection","column"],["width",120],["height",40],["justifyContent","center"],["alignItems","center"],["borderRadius",3],["marginBottom",5],["marginTop",5]]],["3bc20c",[".event-btn-result[data-v-2aae558d]"],[["flex",1],["flexDirection","column"]]],["3bc20c",[".event-btn .event-btn-text[data-v-2aae558d]"],[["color",4294967295]]],["3bc20c",[".item-wrapper[data-v-2aae558d]"],[["display","flex"],["justifyContent","flex-start"],["flexDirection","row"],["alignItems","center"]]],["3bc20c",[".item-button[data-v-2aae558d]"],[["width",80],["height",40],["backgroundColor",4282431619],["borderRadius",3],["marginBottom",5],["marginTop",5],["display","flex"],["justifyContent","center"],["alignItems","center"],["marginRight",10]]],["3bc20c",[".item-button span[data-v-2aae558d]"],[["color",4294967295],["textAlign","center"]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["bfeca0",["#demo-pull-header-footer[data-v-52ecb6dc]"],[["flex",1],["padding",12]]],["bfeca0",["#demo-pull-header-footer .ul-refresh[data-v-52ecb6dc]"],[["backgroundColor",4282431619]]],["bfeca0",["#demo-pull-header-footer .ul-refresh-text[data-v-52ecb6dc]"],[["color",4294967295],["height",50],["lineHeight",50],["textAlign","center"]]],["bfeca0",["#demo-pull-header-footer .pull-footer[data-v-52ecb6dc]"],[["backgroundColor",4282431619],["height",40]]],["bfeca0",["#demo-pull-header-footer .pull-footer-text[data-v-52ecb6dc]"],[["color",4294967295],["lineHeight",40],["textAlign","center"]]],["bfeca0",["#demo-pull-header-footer #list[data-v-52ecb6dc]"],[["flex",1],["backgroundColor",4294967295]]],["bfeca0",["#demo-pull-header-footer .item-style[data-v-52ecb6dc]"],[["backgroundColor",4294967295],["paddingTop",12],["paddingBottom",12],["borderBottomWidth",1],["borderBottomColor",4293256677],["borderStyle","solid"]]],["bfeca0",["[specital-attr='pull-header-footer'][data-v-52ecb6dc] .article-title"],[["fontSize",17],["lineHeight",24],["color",4280558628]]],["bfeca0",["[specital-attr='pull-header-footer'][data-v-52ecb6dc] .normal-text"],[["fontSize",11],["color",4289374890],["alignSelf","center"]]],["bfeca0",["[specital-attr='pull-header-footer'][data-v-52ecb6dc] .image"],[["flex",1],["height",160],["resizeMode","cover"]]],["bfeca0",["[specital-attr='pull-header-footer'][data-v-52ecb6dc] .style-one-image-container"],[["flexDirection","row"],["justifyContent","center"],["marginTop",8],["flex",1]]],["bfeca0",["[specital-attr='pull-header-footer'][data-v-52ecb6dc] .style-one-image"],[["height",120]]],["bfeca0",["[specital-attr='pull-header-footer'][data-v-52ecb6dc] .style-two"],[["flexDirection","row"],["justifyContent","space-between"]]],["bfeca0",["[specital-attr='pull-header-footer'][data-v-52ecb6dc] .style-two-left-container"],[["flex",1],["flexDirection","column"],["justifyContent","center"],["marginRight",8]]],["bfeca0",["[specital-attr='pull-header-footer'][data-v-52ecb6dc] .style-two-image-container"],[["flex",1]]],["bfeca0",["[specital-attr='pull-header-footer'][data-v-52ecb6dc] .style-two-image"],[["height",140]]],["bfeca0",["[specital-attr='pull-header-footer'][data-v-52ecb6dc] .style-five-image-container"],[["flexDirection","row"],["justifyContent","center"],["marginTop",8],["flex",1]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["59dea1",["#demo-swiper"],[["flex",1]]],["59dea1",["#demo-swiper #swiper"],[["flex",1],["height",400]]],["59dea1",["#demo-swiper #swiper-dots"],[["flexDirection","row"],["alignItems","center"],["justifyContent","center"],["height",40]]],["59dea1",["#demo-swiper .dot"],[["width",10],["height",10],["borderRadius",5],["backgroundColor",4289309097],["marginLeft",5],["marginRight",5]]],["59dea1",["#demo-swiper .dot.hightlight"],[["backgroundColor",4281519410]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["db9dc8",["#demo-waterfall[data-v-056a0bc2]"],[["flex",1]]],["db9dc8",["#demo-waterfall .ul-refresh[data-v-056a0bc2]"],[["backgroundColor",4282431619]]],["db9dc8",["#demo-waterfall .ul-refresh-text[data-v-056a0bc2]"],[["color",4294967295],["height",50],["lineHeight",50],["textAlign","center"]]],["db9dc8",["#demo-waterfall .pull-footer[data-v-056a0bc2]"],[["backgroundColor",4282431619],["height",40]]],["db9dc8",["#demo-waterfall .pull-footer-text[data-v-056a0bc2]"],[["color",4294967295],["lineHeight",40],["textAlign","center"]]],["db9dc8",["#demo-waterfall .refresh-text[data-v-056a0bc2]"],[["height",40],["lineHeight",40],["textAlign","center"],["color",4294967295]]],["db9dc8",["#demo-waterfall .banner-view[data-v-056a0bc2]"],[["backgroundColor",4286611584],["height",100],["display","flex"],["justifyContent","center"],["alignItems","center"]]],["db9dc8",["#demo-waterfall .pull-footer[data-v-056a0bc2]"],[["flex",1],["height",40],["backgroundColor",4282431619],["justifyContent","center"],["alignItems","center"]]],["db9dc8",["#demo-waterfall[data-v-056a0bc2] .list-view-item"],[["backgroundColor",4293848814]]],["db9dc8",["#demo-waterfall[data-v-056a0bc2] .article-title"],[["fontSize",12],["lineHeight",16],["color",4280558628]]],["db9dc8",["#demo-waterfall[data-v-056a0bc2] .normal-text"],[["fontSize",10],["color",4289374890],["alignSelf","center"]]],["db9dc8",["#demo-waterfall[data-v-056a0bc2] .image"],[["flex",1],["height",120],["resize","both"]]],["db9dc8",["#demo-waterfall[data-v-056a0bc2] .style-one-image-container"],[["flexDirection","row"],["justifyContent","center"],["marginTop",8],["flex",1]]],["db9dc8",["#demo-waterfall[data-v-056a0bc2] .style-one-image"],[["height",60]]],["db9dc8",["#demo-waterfall[data-v-056a0bc2] .style-two"],[["flexDirection","row"],["justifyContent","space-between"]]],["db9dc8",["#demo-waterfall[data-v-056a0bc2] .style-two-left-container"],[["flex",1],["flexDirection","column"],["justifyContent","center"],["marginRight",8]]],["db9dc8",["#demo-waterfall[data-v-056a0bc2] .style-two-image-container"],[["flex",1]]],["db9dc8",["#demo-waterfall[data-v-056a0bc2] .style-two-image"],[["height",80]]],["db9dc8",["#demo-waterfall[data-v-056a0bc2] .refresh"],[["backgroundColor",4282431619]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["969574",["#demo-wrap[data-v-72406cea]"],[["overflowY","scroll"],["flex",1]]],["969574",["#demo-content[data-v-72406cea]"],[["flexDirection","column"]]],["969574",["#banner[data-v-72406cea]"],[["backgroundImage","https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"],["backgroundSize","cover"],["height",150],["justifyContent","flex-end"]]],["969574",["#banner p[data-v-72406cea]"],[["color",4294934352],["textAlign","center"]]],["969574",["#tabs[data-v-72406cea]"],[["flexDirection","row"],["height",30]]],["969574",["#tabs p[data-v-72406cea]"],[["flex",1],["textAlign","center"],["backgroundColor",4293848814]]],["969574",["#tabs .selected[data-v-72406cea]"],[["backgroundColor",4294967295],["color",4282431619]]],["969574",[".item-even[data-v-72406cea]"],[["height",40]]],["969574",[".item-even p[data-v-72406cea]"],[["lineHeight",40],["fontSize",20],["textAlign","center"]]],["969574",[".item-odd[data-v-72406cea]"],[["height",40],["backgroundColor",4286611584]]],["969574",[".item-odd p[data-v-72406cea]"],[["lineHeight",40],["color",4294967295],["fontSize",20],["textAlign","center"]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["b3ab98",[".feature-list[data-v-63300fa4]"],[["overflow","scroll"]]],["b3ab98",[".feature-item[data-v-63300fa4]"],[["alignItems","center"],["justifyContent","center"],["display","flex"],["paddingTop",10],["paddingBottom",10]]],["b3ab98",[".feature-title[data-v-63300fa4]"],[["color",4283782485],["textAlign","center"]]],["b3ab98",[".feature-item .button[data-v-63300fa4]"],[["display","block"],["borderStyle","solid"],["borderColor",4282431619],["borderWidth",2],["borderRadius",10],["justifyContent","center"],["alignItems","center"],["width",200],["height",56],["lineHeight",56],["fontSize",16],["color",4282431619],["textAlign","center"]]],["b3ab98",["#version-info[data-v-63300fa4]"],[["paddingTop",10],["paddingBottom",10],["marginBottom",10],["borderBottomWidth",1],["borderStyle","solid"],["borderBottomColor",4292664540]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["593803",[".demo-remote-input[data-v-c92250fe]"],[["display","flex"],["flex",1],["justifyContent","center"],["alignItems","center"],["flexDirection","column"]]],["593803",[".input-label[data-v-c92250fe]"],[["margin",20],["marginBottom",0]]],["593803",[".demo-remote-input .remote-input[data-v-c92250fe]"],[["width",350],["height",80],["color",4280558628],["borderWidth",1],["borderStyle","solid"],["borderColor",4291611852],["fontSize",16],["margin",20],["placeholderTextColor",4289374890]]],["593803",[".demo-remote-input .input-button[data-v-c92250fe]"],[["borderColor",4283210490],["borderWidth",1],["paddingLeft",10],["paddingRight",10],["borderStyle","solid"],["marginTop",5],["marginBottom",5],["marginLeft",20],["marginRight",20]]],["593803",[".tips-wrap[data-v-c92250fe]"],[["marginTop",20],["padding",10]]]])))}).call(this,o(5))},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a,c=o(9),l=o(4);!function(e){e.pop="pop",e.push="push"}(n||(n={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(a||(a={}));const i=/\/$/,r=/^[^#]+#/;function s(e,t){return`${e.replace(r,"#")}${t}`}function u(e){let t=e;return t||(t="/"),"/"!==t[0]&&"#"!==t[0]&&(t="/"+t),t.replace(i,"")}function d(e=""){let t=[""],o=0,c=[];const l=u(e);function i(e){o+=1,o===t.length||t.splice(o),t.push(e)}const r={location:"",state:{},base:l,createHref:s.bind(null,l),replace(e){t.splice(o,1),o-=1,i(e)},push(e){i(e)},listen:e=>(c.push(e),()=>{const t=c.indexOf(e);t>-1&&c.splice(t,1)}),destroy(){c=[],t=[""],o=0},go(e,l=!0){const i=this.location,r=e<0?a.back:a.forward;o=Math.max(0,Math.min(o+e,t.length-1)),l&&function(e,t,{direction:o,delta:a}){const l={direction:o,delta:a,type:n.pop};for(const o of c)o(e,t,l)}(this.location,i,{direction:r,delta:e})},get position(){return o}};return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t[o]}),r}t.createHippyHistory=d,t.createHippyRouter=function(e){var t;const o=c.createRouter({history:null!==(t=e.history)&&void 0!==t?t:d(),routes:e.routes});return e.noInjectAndroidHardwareBackPress||function(e){if(l.Native.isAndroid()){function t(){const{position:t}=e.options.history;if(t>0)return e.back(),!0}e.isReady().then(()=>{l.BackAndroid.addListener(t)})}}(o),o},Object.keys(c).forEach((function(e){"default"===e||t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})}))},function(e,t,o){e.exports=o.p+"assets/hippyLogoWhite.png"},function(e,t,o){"use strict";o.d(t,"a",(function(){return Ot}));var n=o(41),a=o(0);var c=o(1),l=Object(c.defineComponent)({setup(){const e=Object(c.ref)(!1),t=Object(c.ref)(!1),o=Object(c.ref)(!1);Object(c.onActivated)(()=>{console.log(Date.now()+"-button-activated")}),Object(c.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}}}}),i=(o(50),o(3)),r=o.n(i);var s=r()(l,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{class:"button-demo"},[Object(a.g)("label",{class:"button-label"},"按钮和状态绑定"),Object(a.g)("button",{class:Object(a.o)([{"is-active":e.isClicked,"is-pressing":e.isPressing},"button-demo-1"]),onTouchstart:t[0]||(t[0]=Object(a.J)((...t)=>e.onTouchBtnStart&&e.onTouchBtnStart(...t),["stop"])),onTouchmove:t[1]||(t[1]=Object(a.J)((...t)=>e.onTouchBtnMove&&e.onTouchBtnMove(...t),["stop"])),onTouchend:t[2]||(t[2]=Object(a.J)((...t)=>e.onTouchBtnEnd&&e.onTouchBtnEnd(...t),["stop"])),onClick:t[3]||(t[3]=(...t)=>e.onClickView&&e.onClickView(...t))},[e.isClicked?(Object(a.t)(),Object(a.f)("span",{key:0,class:"button-text"},"视图已经被点击了,再点一下恢复")):(Object(a.t)(),Object(a.f)("span",{key:1,class:"button-text"},"视图尚未点击"))],34),Object(a.I)(Object(a.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),[[a.F,e.isClicked]])])}],["__scopeId","data-v-05797918"]]),u=o(10),d=o.n(u);function b(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 g(e){for(var t=1;tO},positionY:{type:Number,default:0}},setup(e){const{positionY:t}=Object(c.toRefs)(e),o=Object(c.ref)(null),n=Object(c.ref)(t.value);let a=0,l=0;Object(c.watch)(t,e=>{n.value=e});return{scrollOffsetY:e.positionY,demo1Style:O,ripple1:o,onLayout:()=>{o.value&&f.Native.measureInAppWindow(o.value).then(e=>{a=e.left,l=e.top})},onTouchStart:e=>{const t=e.touches[0];o.value&&(o.value.setHotspot(t.clientX-a,t.clientY+n.value-l),o.value.setPressed(!0))},onTouchEnd:()=>{o.value&&o.value.setPressed(!1)}}}});var y=r()(j,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{ref:"ripple1",style:Object(a.p)(e.wrapperStyle),nativeBackgroundAndroid:v({},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(a.y)(e.$slots,"default")],44,["nativeBackgroundAndroid"])}]]);const w=e=>{console.log("onScroll",e)},A=e=>{console.log("onMomentumScrollBegin",e)},C=e=>{console.log("onMomentumScrollEnd",e)},x=e=>{console.log("onScrollBeginDrag",e)},S=e=>{console.log("onScrollEndDrag",e)};var k=Object(c.defineComponent)({components:{DemoRippleDiv:y},setup(){const e=Object(c.ref)(0),t=Object(c.ref)(null);return Object(c.onActivated)(()=>{console.log(Date.now()+"-div-activated")}),Object(c.onDeactivated)(()=>{console.log(Date.now()+"-div-Deactivated")}),Object(c.onMounted)(()=>{t.value&&t.value.scrollTo(50,0,1e3)}),{demo2:t,demo1Style:{display:"flex",height:"40px",width:"200px",backgroundImage:""+m.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:""+m.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:f.Native,offsetY:e,onScroll:w,onMomentumScrollBegin:A,onMomentumScrollEnd:C,onScrollBeginDrag:x,onScrollEndDrag:S,onOuterScroll:t=>{e.value=t.offsetY}}}});o(53);var T=r()(k,[["render",function(e,t,o,n,c,l){const i=Object(a.z)("demo-ripple-div");return Object(a.t)(),Object(a.f)("div",{id:"div-demo",onScroll:t[5]||(t[5]=(...t)=>e.onOuterScroll&&e.onOuterScroll(...t))},[Object(a.g)("div",null,["ios"!==e.Native.Platform?(Object(a.t)(),Object(a.f)("div",{key:0},[Object(a.g)("label",null,"水波纹效果: "),Object(a.g)("div",{style:Object(a.p)(g(g({},e.imgRectangle),e.imgRectangleExtra))},[Object(a.i)(i,{"position-y":e.offsetY,"wrapper-style":e.imgRectangle,"native-background-android":{borderless:!0,color:"#666666"}},{default:Object(a.H)(()=>[Object(a.g)("p",{style:{color:"white",maxWidth:200}}," 外层背景图,内层无边框水波纹,受外层影响始终有边框 ")]),_:1},8,["position-y","wrapper-style"])],4),Object(a.i)(i,{"position-y":e.offsetY,"wrapper-style":e.circleRipple,"native-background-android":{borderless:!0,color:"#666666",rippleRadius:100}},{default:Object(a.H)(()=>[Object(a.g)("p",{style:{color:"black",textAlign:"center"}}," 无边框圆形水波纹 ")]),_:1},8,["position-y","wrapper-style"]),Object(a.i)(i,{"position-y":e.offsetY,"wrapper-style":e.squareRipple,"native-background-android":{borderless:!1,color:"#666666"}},{default:Object(a.H)(()=>[Object(a.g)("p",{style:{color:"#fff"}}," 带背景色水波纹 ")]),_:1},8,["position-y","wrapper-style"])])):Object(a.e)("v-if",!0),Object(a.g)("label",null,"背景图效果:"),Object(a.g)("div",{style:Object(a.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(a.g)("p",{class:"div-demo-1-text"}," Hippy 背景图展示 ")],4),Object(a.g)("label",null,"渐变色效果:"),Object(a.g)("div",{class:"div-demo-1-1"},[Object(a.g)("p",{class:"div-demo-1-text"}," Hippy 背景渐变色展示 ")]),Object(a.g)("label",null,"Transform"),Object(a.g)("div",{class:"div-demo-transform"},[Object(a.g)("p",{class:"div-demo-transform-text"}," Transform ")]),Object(a.g)("label",null,"水平滚动:"),Object(a.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(a.e)(" div 带着 overflow 属性的,只能有一个子节点,否则终端会崩溃 "),Object(a.g)("div",{class:"display-flex flex-row"},[Object(a.g)("p",{class:"text-block"}," A "),Object(a.g)("p",{class:"text-block"}," B "),Object(a.g)("p",{class:"text-block"}," C "),Object(a.g)("p",{class:"text-block"}," D "),Object(a.g)("p",{class:"text-block"}," E ")])],544),Object(a.g)("label",null,"垂直滚动:"),Object(a.g)("div",{class:"div-demo-3",showsVerticalScrollIndicator:!1},[Object(a.g)("div",{class:"display-flex flex-column"},[Object(a.g)("p",{class:"text-block"}," A "),Object(a.g)("p",{class:"text-block"}," B "),Object(a.g)("p",{class:"text-block"}," C "),Object(a.g)("p",{class:"text-block"}," D "),Object(a.g)("p",{class:"text-block"}," E ")])])])],32)}],["__scopeId","data-v-fe0428e4"]]);var D=Object(c.defineComponent)({components:{AsyncComponentFromLocal:Object(c.defineAsyncComponent)(async()=>o.e(1).then(o.bind(null,83))),AsyncComponentFromHttp:Object(c.defineAsyncComponent)(async()=>o.e(0).then(o.bind(null,84)))},setup(){const e=Object(c.ref)(!1);return{loaded:e,onClickLoadAsyncComponent:()=>{e.value=!0}}}});o(54);var P=r()(D,[["render",function(e,t,o,n,c,l){const i=Object(a.z)("AsyncComponentFromLocal"),r=Object(a.z)("AsyncComponentFromHttp");return Object(a.t)(),Object(a.f)("div",{id:"demo-dynamicimport",onClick:t[0]||(t[0]=Object(a.J)((...t)=>e.onClickLoadAsyncComponent&&e.onClickLoadAsyncComponent(...t),["stop"]))},[Object(a.g)("div",{class:"import-btn"},[Object(a.g)("p",null,"点我异步加载")]),e.loaded?(Object(a.t)(),Object(a.f)("div",{key:0,class:"async-com-wrapper"},[Object(a.i)(i,{class:"async-component-outer-local"}),Object(a.i)(r)])):Object(a.e)("v-if",!0)])}],["__scopeId","data-v-0fa9b63f"]]);var E=Object(c.defineComponent)({setup(){const e=Object(c.ref)("https://hippyjs.org"),t=Object(c.ref)("https://hippyjs.org"),o=Object(c.ref)(null),n=Object(c.ref)(null),a=t=>{t&&(e.value=t.value)};return{targetUrl:e,displayUrl:t,iframeStyle:{"min-height":f.Native?100:"100vh"},input:o,iframe:n,onLoad:o=>{let{url:a}=o;void 0===a&&n.value&&(a=n.value.src),a&&a!==e.value&&(t.value=a)},onKeyUp:e=>{13===e.keyCode&&(e.preventDefault(),o.value&&a(o.value))},goToUrl:a,onLoadStart:e=>{const{url:t}=e;console.log("onLoadStart",t)},onLoadEnd:e=>{const{url:t,success:o,error:n}=e;console.log("onLoadEnd",t,o,n)}}}});o(55);var _=r()(E,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{id:"iframe-demo",style:Object(a.p)(e.iframeStyle)},[Object(a.g)("label",null,"地址栏:"),Object(a.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(a.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(42),B=o.n(I),R=Object(c.defineComponent)({setup(){const e=Object(c.ref)({});return{defaultImage:m.a,hippyLogoImage:B.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:n,url:a}=t;e.value={width:o,height:n,url:a}}}}});o(56);var L=r()(R,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{id:"demo-img"},[Object(a.g)("div",{id:"demo-img-container"},[Object(a.g)("label",null,"Contain:"),Object(a.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(a.g)("label",null,"Cover:"),Object(a.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(a.g)("label",null,"Center:"),Object(a.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(a.g)("label",null,"CapInsets:"),Object(a.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(a.g)("label",null,"TintColor:"),Object(a.g)("img",{src:e.hippyLogoImage,class:"image center tint-color"},null,8,["src"]),Object(a.g)("label",null,"Gif:"),Object(a.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(a.g)("div",{class:"img-result"},[Object(a.g)("p",null,"Load Result: "+Object(a.D)(e.gifLoadResult),1)])])])}],["__scopeId","data-v-25c66a4a"]]);const V=e=>{e.stopPropagation()},H=e=>{console.log(e.value)},N=e=>{console.log("onKeyboardWillShow",e)},M=()=>{console.log("onKeyboardWillHide")};var z=Object(c.defineComponent)({setup(){const e=Object(c.ref)(null),t=Object(c.ref)(null),o=Object(c.ref)(""),n=Object(c.ref)(""),a=Object(c.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(c.onMounted)(()=>{Object(c.nextTick)(()=>{const e=l();e.length&&e[0].focus()})});return{input:t,inputDemo:e,text:o,event:n,isFocused:a,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:N,onKeyboardWillHide:M,stopPropagation:V,textChange:H,onChange:e=>{null!=e&&e.value&&(o.value=e.value)},onBlur:async()=>{t.value&&(a.value=await t.value.isFocused(),n.value="onBlur")},onFocus:async()=>{t.value&&(a.value=await t.value.isFocused(),n.value="onFocus")}}}});o(57);var F=r()(z,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{ref:"inputDemo",class:"demo-input",onClick:t[15]||(t[15]=Object(a.J)((...t)=>e.blurAllInput&&e.blurAllInput(...t),["stop"]))},[Object(a.g)("label",null,"文本:"),Object(a.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(a.g)("div",null,[Object(a.g)("span",null,"文本内容为:"),Object(a.g)("span",null,Object(a.D)(e.text),1)]),Object(a.g)("div",null,[Object(a.g)("span",null,Object(a.D)(`事件: ${e.event} | isFocused: ${e.isFocused}`),1)]),Object(a.g)("button",{class:"input-button",onClick:t[6]||(t[6]=Object(a.J)((...t)=>e.clearTextContent&&e.clearTextContent(...t),["stop"]))},[Object(a.g)("span",null,"清空文本内容")]),Object(a.g)("button",{class:"input-button",onClick:t[7]||(t[7]=Object(a.J)((...t)=>e.focus&&e.focus(...t),["stop"]))},[Object(a.g)("span",null,"Focus")]),Object(a.g)("button",{class:"input-button",onClick:t[8]||(t[8]=Object(a.J)((...t)=>e.blur&&e.blur(...t),["stop"]))},[Object(a.g)("span",null,"Blur")]),Object(a.g)("label",null,"数字:"),Object(a.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(a.g)("label",null,"密码:"),Object(a.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(a.g)("label",null,"文本(限制5个字符):"),Object(a.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 Y=[{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}],U=e=>{console.log("onAppear",e)},W=e=>{console.log("onDisappear",e)},G=e=>{console.log("onWillAppear",e)},K=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(c.defineComponent)({setup(){const e=Object(c.ref)(""),t=Object(c.ref)([]),o=Object(c.ref)(null),n=Object(c.ref)(!1);let a=!1;let l=!1;return Object(c.onMounted)(()=>{a=!1,t.value=[...Y]}),{loadingState:e,dataSource:t,delText:"Delete",list:o,STYLE_LOADING:100,horizontal:n,Platform:f.Native.Platform,onAppear:U,onDelete:e=>{void 0!==e.index&&t.value.splice(e.index,1)},onDisappear:W,onEndReached:async o=>{if(console.log("endReached",o),a)return;const n=t.value;a=!0,e.value="Loading now...",t.value=[...n,[{style:100}]];const c=await(async()=>new Promise(e=>{setTimeout(()=>e(Y),600)}))();t.value=[...n,...c],a=!1},onWillAppear:G,onWillDisappear:K,changeDirection:()=>{n.value=!n.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(58);var $=r()(Z,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{id:"demo-list"},[Object(a.g)("ul",{id:"list",ref:"list",style:Object(a.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(a.t)(!0),Object(a.f)(a.a,null,Object(a.x)(e.dataSource,(t,o)=>(Object(a.t)(),Object(a.f)("li",{key:o,class:Object(a.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(a.t)(),Object(a.f)("div",{key:0,class:"container"},[Object(a.g)("div",{class:"item-container"},[Object(a.g)("p",{numberOfLines:1},Object(a.D)(o+": Style 1 UI"),1)])])):2===t.style?(Object(a.t)(),Object(a.f)("div",{key:1,class:"container"},[Object(a.g)("div",{class:"item-container"},[Object(a.g)("p",{numberOfLines:1},Object(a.D)(o+": Style 2 UI"),1)])])):5===t.style?(Object(a.t)(),Object(a.f)("div",{key:2,class:"container"},[Object(a.g)("div",{class:"item-container"},[Object(a.g)("p",{numberOfLines:1},Object(a.D)(o+": Style 5 UI"),1)])])):(Object(a.t)(),Object(a.f)("div",{key:3,class:"container"},[Object(a.g)("div",{class:"item-container"},[Object(a.g)("p",{id:"loading"},Object(a.D)(e.loadingState),1)])])),o!==e.dataSource.length-1?(Object(a.t)(),Object(a.f)("div",{key:4,class:"separator-line"})):Object(a.e)("v-if",!0)],42,["type","sticky","onAppear","onDisappear","on:willAppear","on:willDisappear"]))),128))],44,["horizontal","delText"]),"android"===e.Platform?(Object(a.t)(),Object(a.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(a.g)("div",{style:{width:60,height:60,borderRadius:30,backgroundColor:"#40b883",display:"flex",justifyContent:"center",alignItems:"center"}},[Object(a.g)("p",{style:{color:"white"}}," 切换方向 ")])])):Object(a.e)("v-if",!0)])}],["__scopeId","data-v-75193fb0"]]);var ee=Object(c.defineComponent)({setup(){const e=Object(c.ref)(""),t=Object(c.ref)(0),o=Object(c.ref)({numberOfLines:2,ellipsizeMode:"tail"}),n=Object(c.ref)({textShadowOffset:{x:1,y:1},textShadowOffsetX:1,textShadowOffsetY:1,textShadowRadius:3,textShadowColor:"grey"}),a=Object(c.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:n,textShadowIndex:t,Platform:f.Native.Platform,breakStrategy:a,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:()=>{n.value.textShadowOffsetX=t.value%2==1?10:1,n.value.textShadowColor=t.value%2==1?"red":"grey",t.value+=1},changeBreakStrategy:e=>{a.value=e}}}});o(59);var te=r()(ee,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{class:"p-demo"},[Object(a.g)("div",null,[Object(a.g)("label",null,"不带样式:"),Object(a.g)("p",{class:"p-demo-content",onTouchstart:t[0]||(t[0]=Object(a.J)((...t)=>e.onTouchTextStart&&e.onTouchTextStart(...t),["stop"])),onTouchmove:t[1]||(t[1]=Object(a.J)((...t)=>e.onTouchTextMove&&e.onTouchTextMove(...t),["stop"])),onTouchend:t[2]||(t[2]=Object(a.J)((...t)=>e.onTouchTextEnd&&e.onTouchTextEnd(...t),["stop"]))}," 这是最普通的一行文字 ",32),Object(a.g)("p",{class:"p-demo-content-status"}," 当前touch状态: "+Object(a.D)(e.labelTouchStatus),1),Object(a.g)("label",null,"颜色:"),Object(a.g)("p",{class:"p-demo-1 p-demo-content"}," 这行文字改变了颜色 "),Object(a.g)("label",null,"尺寸:"),Object(a.g)("p",{class:"p-demo-2 p-demo-content"}," 这行改变了大小 "),Object(a.g)("label",null,"粗体:"),Object(a.g)("p",{class:"p-demo-3 p-demo-content"}," 这行加粗了 "),Object(a.g)("label",null,"下划线:"),Object(a.g)("p",{class:"p-demo-4 p-demo-content"}," 这里有条下划线 "),Object(a.g)("label",null,"删除线:"),Object(a.g)("p",{class:"p-demo-5 p-demo-content"}," 这里有条删除线 "),Object(a.g)("label",null,"自定义字体:"),Object(a.g)("p",{class:"p-demo-6 p-demo-content"}," 腾讯字体 Hippy "),Object(a.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-weight":"bold"}}," 腾讯字体 Hippy 粗体 "),Object(a.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-style":"italic"}}," 腾讯字体 Hippy 斜体 "),Object(a.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-weight":"bold","font-style":"italic"}}," 腾讯字体 Hippy 粗斜体 "),Object(a.g)("label",null,"文字阴影:"),Object(a.g)("p",{class:"p-demo-7 p-demo-content",style:Object(a.p)(e.textShadow),onClick:t[3]||(t[3]=(...t)=>e.changeTextShadow&&e.changeTextShadow(...t))}," 这里是文字灰色阴影,点击可改变颜色 ",4),Object(a.g)("label",null,"文本字符间距"),Object(a.g)("p",{class:"p-demo-8 p-demo-content",style:{"margin-bottom":"5px"}}," Text width letter-spacing -1 "),Object(a.g)("p",{class:"p-demo-9 p-demo-content",style:{"margin-top":"5px"}}," Text width letter-spacing 5 "),Object(a.g)("label",null,"字体 style:"),Object(a.g)("div",{class:"p-demo-content"},[Object(a.g)("p",{style:{"font-style":"normal"}}," font-style: normal "),Object(a.g)("p",{style:{"font-style":"italic"}}," font-style: italic "),Object(a.g)("p",null,"font-style: [not set]")]),Object(a.g)("label",null,"numberOfLines="+Object(a.D)(e.textMode.numberOfLines)+" | ellipsizeMode="+Object(a.D)(e.textMode.ellipsizeMode),1),Object(a.g)("div",{class:"p-demo-content"},[Object(a.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5}},[Object(a.g)("span",{style:{"font-size":"19px",color:"white"}},"先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。"),Object(a.g)("span",null,"然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")],8,["numberOfLines","ellipsizeMode"]),Object(a.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5}},Object(a.D)("line 1\n\nline 3\n\nline 5"),8,["numberOfLines","ellipsizeMode"]),Object(a.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5,fontSize:14}},[Object(a.g)("img",{style:{width:24,height:24},src:e.img1},null,8,["src"]),Object(a.g)("img",{style:{width:24,height:24},src:e.img2},null,8,["src"])],8,["numberOfLines","ellipsizeMode"]),Object(a.g)("div",{class:"button-bar"},[Object(a.g)("button",{class:"button",onClick:t[4]||(t[4]=(...t)=>e.incrementLine&&e.incrementLine(...t))},[Object(a.g)("span",null,"加一行")]),Object(a.g)("button",{class:"button",onClick:t[5]||(t[5]=(...t)=>e.decrementLine&&e.decrementLine(...t))},[Object(a.g)("span",null,"减一行")])]),Object(a.g)("div",{class:"button-bar"},[Object(a.g)("button",{class:"button",onClick:t[6]||(t[6]=()=>e.changeMode("clip"))},[Object(a.g)("span",null,"clip")]),Object(a.g)("button",{class:"button",onClick:t[7]||(t[7]=()=>e.changeMode("head"))},[Object(a.g)("span",null,"head")]),Object(a.g)("button",{class:"button",onClick:t[8]||(t[8]=()=>e.changeMode("middle"))},[Object(a.g)("span",null,"middle")]),Object(a.g)("button",{class:"button",onClick:t[9]||(t[9]=()=>e.changeMode("tail"))},[Object(a.g)("span",null,"tail")])])]),"android"===e.Platform?(Object(a.t)(),Object(a.f)("label",{key:0},"break-strategy="+Object(a.D)(e.breakStrategy),1)):Object(a.e)("v-if",!0),"android"===e.Platform?(Object(a.t)(),Object(a.f)("div",{key:1,class:"p-demo-content"},[Object(a.g)("p",{"break-strategy":e.breakStrategy,style:{borderWidth:1,borderColor:"gray"}},Object(a.D)(e.longText),9,["break-strategy"]),Object(a.g)("div",{class:"button-bar"},[Object(a.g)("button",{class:"button",onClick:t[10]||(t[10]=Object(a.J)(()=>e.changeBreakStrategy("simple"),["stop"]))},[Object(a.g)("span",null,"simple")]),Object(a.g)("button",{class:"button",onClick:t[11]||(t[11]=Object(a.J)(()=>e.changeBreakStrategy("high_quality"),["stop"]))},[Object(a.g)("span",null,"high_quality")]),Object(a.g)("button",{class:"button",onClick:t[12]||(t[12]=Object(a.J)(()=>e.changeBreakStrategy("balanced"),["stop"]))},[Object(a.g)("span",null,"balanced")])])])):Object(a.e)("v-if",!0),Object(a.g)("label",null,"vertical-align"),Object(a.g)("div",{class:"p-demo-content"},[Object(a.g)("p",{style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(a.g)("img",{style:{width:"24",height:"24","vertical-align":"top"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"18",height:"12","vertical-align":"middle"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"24",height:"12","vertical-align":"baseline"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"36",height:"24","vertical-align":"bottom"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"24",height:"24","vertical-align":"top"},src:e.img3},null,8,["src"]),Object(a.g)("img",{style:{width:"18",height:"12","vertical-align":"middle"},src:e.img3},null,8,["src"]),Object(a.g)("img",{style:{width:"24",height:"12","vertical-align":"baseline"},src:e.img3},null,8,["src"]),Object(a.g)("img",{style:{width:"36",height:"24","vertical-align":"bottom"},src:e.img3},null,8,["src"]),Object(a.g)("span",{style:{"font-size":"16","vertical-align":"top"}},"字"),Object(a.g)("span",{style:{"font-size":"16","vertical-align":"middle"}},"字"),Object(a.g)("span",{style:{"font-size":"16","vertical-align":"baseline"}},"字"),Object(a.g)("span",{style:{"font-size":"16","vertical-align":"bottom"}},"字")]),"android"===e.Platform?(Object(a.t)(),Object(a.f)("p",{key:0}," legacy mode: ")):Object(a.e)("v-if",!0),"android"===e.Platform?(Object(a.t)(),Object(a.f)("p",{key:1,style:{lineHeight:"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(a.g)("img",{style:{width:"24",height:"24","vertical-alignment":"0"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"18",height:"12","vertical-alignment":"1"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"24",height:"12","vertical-alignment":"2"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"36",height:"24","vertical-alignment":"3"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"24",height:"24",top:"-10"},src:e.img3},null,8,["src"]),Object(a.g)("img",{style:{width:"18",height:"12",top:"-5"},src:e.img3},null,8,["src"]),Object(a.g)("img",{style:{width:"24",height:"12"},src:e.img3},null,8,["src"]),Object(a.g)("img",{style:{width:"36",height:"24",top:"5"},src:e.img3},null,8,["src"]),Object(a.g)("span",{style:{"font-size":"16"}},"字"),Object(a.g)("span",{style:{"font-size":"16"}},"字"),Object(a.g)("span",{style:{"font-size":"16"}},"字"),Object(a.g)("span",{style:{"font-size":"16"}},"字")])):Object(a.e)("v-if",!0)]),Object(a.g)("label",null,"tint-color & background-color"),Object(a.g)("div",{class:"p-demo-content"},[Object(a.g)("p",{style:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(a.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(a.g)("span",{style:{"vertical-align":"middle","background-color":"#99f"}},"text")]),"android"===e.Platform?(Object(a.t)(),Object(a.f)("p",{key:0}," legacy mode: ")):Object(a.e)("v-if",!0),"android"===e.Platform?(Object(a.t)(),Object(a.f)("p",{key:1,style:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(a.g)("img",{style:{width:"24",height:"24","tint-color":"orange"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"24",height:"24","tint-color":"orange","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"24",height:"24","background-color":"#ccc"},src:e.img2},null,8,["src"])])):Object(a.e)("v-if",!0)]),Object(a.g)("label",null,"margin"),Object(a.g)("div",{class:"p-demo-content"},[Object(a.g)("p",{style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(a.g)("img",{style:{width:"24",height:"24","vertical-align":"top","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"24",height:"24","vertical-align":"baseline","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(a.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(a.t)(),Object(a.f)("p",{key:0}," legacy mode: ")):Object(a.e)("v-if",!0),"android"===e.Platform?(Object(a.t)(),Object(a.f)("p",{key:1,style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(a.g)("img",{style:{width:"24",height:"24","vertical-alignment":"0","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"24",height:"24","vertical-alignment":"1","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"24",height:"24","vertical-alignment":"2","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"24",height:"24","vertical-alignment":"3","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"])])):Object(a.e)("v-if",!0)])])])}],["__scopeId","data-v-34e2123c"]]);var oe=Object(c.defineComponent)({setup:()=>({Platform:f.Native.Platform})});o(60);var ne=r()(oe,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{id:"shadow-demo"},["android"===e.Platform?(Object(a.t)(),Object(a.f)("div",{key:0,class:"no-offset-shadow-demo-cube-android"},[Object(a.g)("div",{class:"no-offset-shadow-demo-content-android"},[Object(a.g)("p",null,"没有偏移阴影样式")])])):Object(a.e)("v-if",!0),"ios"===e.Platform?(Object(a.t)(),Object(a.f)("div",{key:1,class:"no-offset-shadow-demo-cube-ios"},[Object(a.g)("div",{class:"no-offset-shadow-demo-content-ios"},[Object(a.g)("p",null,"没有偏移阴影样式")])])):Object(a.e)("v-if",!0),"android"===e.Platform?(Object(a.t)(),Object(a.f)("div",{key:2,class:"offset-shadow-demo-cube-android"},[Object(a.g)("div",{class:"offset-shadow-demo-content-android"},[Object(a.g)("p",null,"偏移阴影样式")])])):Object(a.e)("v-if",!0),"ios"===e.Platform?(Object(a.t)(),Object(a.f)("div",{key:3,class:"offset-shadow-demo-cube-ios"},[Object(a.g)("div",{class:"offset-shadow-demo-content-ios"},[Object(a.g)("p",null,"偏移阴影样式")])])):Object(a.e)("v-if",!0)])}],["__scopeId","data-v-19ab3f2d"]]);var ae=Object(c.defineComponent)({setup(){const e=Object(c.ref)("The quick brown fox jumps over the lazy dog,快灰狐狸跳过了懒 🐕。"),t=Object(c.ref)("simple");return{content:e,breakStrategy:t,Platform:f.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(61);var ce=r()(ae,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{id:"demo-textarea"},[Object(a.g)("label",null,"多行文本:"),Object(a.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(a.g)("div",{class:"output-container"},[Object(a.g)("p",{class:"output"}," 输入的文本为:"+Object(a.D)(e.content),1)]),"android"===e.Platform?(Object(a.t)(),Object(a.f)("label",{key:0},"break-strategy="+Object(a.D)(e.breakStrategy),1)):Object(a.e)("v-if",!0),"android"===e.Platform?(Object(a.t)(),Object(a.f)("div",{key:1},[Object(a.g)("textarea",{class:"textarea",defaultValue:e.longText,"break-strategy":e.breakStrategy},null,8,["defaultValue","break-strategy"]),Object(a.g)("div",{class:"button-bar"},[Object(a.g)("button",{class:"button",onClick:t[2]||(t[2]=()=>e.changeBreakStrategy("simple"))},[Object(a.g)("span",null,"simple")]),Object(a.g)("button",{class:"button",onClick:t[3]||(t[3]=()=>e.changeBreakStrategy("high_quality"))},[Object(a.g)("span",null,"high_quality")]),Object(a.g)("button",{class:"button",onClick:t[4]||(t[4]=()=>e.changeBreakStrategy("balanced"))},[Object(a.g)("span",null,"balanced")])])])):Object(a.e)("v-if",!0)])}],["__scopeId","data-v-6d6167b3"]]);var le=o(6),ie=Object(c.defineComponent)({setup(){let e=null;const t=Object(c.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 n;t.value=Object(le.i)(null!==(n=e)&&void 0!==n?n:Object(le.g)())}else if("getInfo"===o){var a;t.value=(null!==(a=e)&&void 0!==a?a:Object(le.g)()).getInfo()}else if("setInfo"===o){var c;(null!==(c=e)&&void 0!==c?c: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(62);var re=r()(ie,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{class:"demo-turbo"},[Object(a.g)("span",{class:"result"},Object(a.D)(e.result),1),Object(a.g)("ul",{style:{flex:"1"}},[(Object(a.t)(!0),Object(a.f)(a.a,null,Object(a.x)(e.funList,t=>(Object(a.t)(),Object(a.f)("li",{key:t,class:"cell"},[Object(a.g)("div",{class:"contentView"},[Object(a.g)("div",{class:"func-info"},[Object(a.g)("span",{numberOfLines:0},"函数名:"+Object(a.D)(t),1)]),Object(a.g)("span",{class:"action-button",onClick:Object(a.J)(()=>e.onTurboFunc(t),["stop"])},"运行",8,["onClick"])])]))),128))])])}]]);let se=null;const ue=Object(c.ref)([]),de=e=>{ue.value.unshift(e)},be=()=>{se&&1===se.readyState&&se.close()};var ge=Object(c.defineComponent)({setup(){const e=Object(c.ref)(null),t=Object(c.ref)(null);return{output:ue,inputUrl:e,inputMessage:t,connect:()=>{const t=e.value;t&&t.getValue().then(e=>{(e=>{be(),se=new WebSocket(e),se.onopen=()=>{var e;return de("[Opened] "+(null===(e=se)||void 0===e?void 0:e.url))},se.onclose=()=>{var e;return de("[Closed] "+(null===(e=se)||void 0===e?void 0:e.url))},se.onerror=e=>{de("[Error] "+e.reason)},se.onmessage=e=>de("[Received] "+e.data)})(e)})},disconnect:()=>{be()},sendMessage:()=>{const e=t.value;e&&e.getValue().then(e=>{(e=>{de("[Sent] "+e),se&&se.send(e)})(e)})}}}});o(63);var fe={demoDiv:{name:"div 组件",component:T},demoShadow:{name:"box-shadow",component:ne},demoP:{name:"p 组件",component:te},demoButton:{name:"button 组件",component:s},demoImg:{name:"img 组件",component:L},demoInput:{name:"input 组件",component:F},demoTextarea:{name:"textarea 组件",component:ce},demoUl:{name:"ul/li 组件",component:$},demoIFrame:{name:"iframe 组件",component:_},demoWebSocket:{name:"WebSocket",component:r()(ge,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{id:"websocket-demo"},[Object(a.g)("div",null,[Object(a.g)("p",{class:"demo-title"}," Url: "),Object(a.g)("input",{ref:"inputUrl",value:"wss://echo.websocket.org"},null,512),Object(a.g)("div",{class:"row"},[Object(a.g)("button",{onClick:t[0]||(t[0]=Object(a.J)((...t)=>e.connect&&e.connect(...t),["stop"]))},[Object(a.g)("span",null,"Connect")]),Object(a.g)("button",{onClick:t[1]||(t[1]=Object(a.J)((...t)=>e.disconnect&&e.disconnect(...t),["stop"]))},[Object(a.g)("span",null,"Disconnect")])])]),Object(a.g)("div",null,[Object(a.g)("p",{class:"demo-title"}," Message: "),Object(a.g)("input",{ref:"inputMessage",value:"Rock it with Hippy WebSocket"},null,512),Object(a.g)("button",{onClick:t[2]||(t[2]=Object(a.J)((...t)=>e.sendMessage&&e.sendMessage(...t),["stop"]))},[Object(a.g)("span",null,"Send")])]),Object(a.g)("div",null,[Object(a.g)("p",{class:"demo-title"}," Log: "),Object(a.g)("div",{class:"output fullscreen"},[Object(a.g)("div",null,[(Object(a.t)(!0),Object(a.f)(a.a,null,Object(a.x)(e.output,(e,t)=>(Object(a.t)(),Object(a.f)("p",{key:t},Object(a.D)(e),1))),128))])])])])}],["__scopeId","data-v-99a0fc74"]])},demoDynamicImport:{name:"DynamicImport",component:P},demoTurbo:{name:"Turbo",component:re}};var pe=Object(c.defineComponent)({setup(){const e=Object(c.ref)(null),t=Object(c.ref)(0),o=Object(c.ref)(0);Object(c.onMounted)(()=>{o.value=f.Native.Dimensions.screen.width});return{demoOnePointRef:e,demon2Left:t,screenWidth:o,onTouchDown1:t=>{const n=t.touches[0].clientX-40;console.log("touchdown x",n,o.value),e.value&&e.value.setNativeProps({style:{left:n}})},onTouchDown2:e=>{t.value=e.touches[0].clientX-40,console.log("touchdown x",t.value,o.value)},onTouchMove1:t=>{const n=t.touches[0].clientX-40;console.log("touchmove x",n,o.value),e.value&&e.value.setNativeProps({style:{left:n}})},onTouchMove2:e=>{t.value=e.touches[0].clientX-40,console.log("touchmove x",t.value,o.value)}}}});o(64);var me=r()(pe,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{class:"set-native-props-demo"},[Object(a.g)("label",null,"setNativeProps实现拖动效果"),Object(a.g)("div",{class:"native-demo-1-drag",style:Object(a.p)({width:e.screenWidth}),onTouchstart:t[0]||(t[0]=Object(a.J)((...t)=>e.onTouchDown1&&e.onTouchDown1(...t),["stop"])),onTouchmove:t[1]||(t[1]=Object(a.J)((...t)=>e.onTouchMove1&&e.onTouchMove1(...t),["stop"]))},[Object(a.g)("div",{ref:"demoOnePointRef",class:"native-demo-1-point"},null,512)],36),Object(a.g)("div",{class:"splitter"}),Object(a.g)("label",null,"普通渲染实现拖动效果"),Object(a.g)("div",{class:"native-demo-2-drag",style:Object(a.p)({width:e.screenWidth}),onTouchstart:t[2]||(t[2]=Object(a.J)((...t)=>e.onTouchDown2&&e.onTouchDown2(...t),["stop"])),onTouchmove:t[3]||(t[3]=Object(a.J)((...t)=>e.onTouchMove2&&e.onTouchMove2(...t),["stop"]))},[Object(a.g)("div",{class:"native-demo-2-point",style:Object(a.p)({left:e.demon2Left+"px"})},null,4)],36)])}],["__scopeId","data-v-4521f010"]]);const he={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 ve=Object(c.defineComponent)({props:{playing:Boolean,onRef:{type:Function,default:()=>{}}},setup:()=>({colorActions:he})});o(65);var Oe=r()(ve,[["render",function(e,t,o,n,c,l){const i=Object(a.z)("animation");return Object(a.t)(),Object(a.f)("div",null,[Object(a.i)(i,{ref:"animationView",playing:e.playing,actions:e.colorActions,class:"color-green"},{default:Object(a.H)(()=>[Object(a.g)("div",{class:"color-white"},[Object(a.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 ye=Object(c.defineComponent)({props:{playing:Boolean,onRef:{type:Function,default:()=>{}}},setup(e){const t=Object(c.ref)(null);return Object(c.onMounted)(()=>{e.onRef&&e.onRef(t.value)}),{animationView:t,loopActions:je}}});o(66);var we=r()(ye,[["render",function(e,t,o,n,c,l){const i=Object(a.z)("animation");return Object(a.t)(),Object(a.f)("div",null,[Object(a.i)(i,{ref:"animationView",playing:e.playing,actions:e.loopActions,class:"loop-green"},{default:Object(a.H)(()=>[Object(a.g)("div",{class:"loop-white"},[Object(a.y)(e.$slots,"default",{},void 0,!0)])]),_:3},8,["playing","actions"])])}],["__scopeId","data-v-0ffc52dc"]]);const Ae={transform:{translateX:{startValue:0,toValue:200,duration:2e3,repeatCount:-1}}},Ce={transform:{translateY:{startValue:0,toValue:50,duration:2e3,repeatCount:-1}}};var xe=Object(c.defineComponent)({props:{playing:Boolean,direction:{type:String,default:""},onRef:{type:Function,default:()=>{}}},emits:["actionsDidUpdate"],setup(e){const{direction:t}=Object(c.toRefs)(e),o=Object(c.ref)(""),n=Object(c.ref)(null);return Object(c.watch)(t,e=>{switch(e){case"horizon":o.value=Ae;break;case"vertical":o.value=Ce;break;default:throw new Error("direction must be defined in props")}},{immediate:!0}),Object(c.onMounted)(()=>{e.onRef&&e.onRef(n.value)}),{loopActions:o,animationLoop:n}}});o(67);var Se=r()(xe,[["render",function(e,t,o,n,c,l){const i=Object(a.z)("animation");return Object(a.t)(),Object(a.f)("div",null,[Object(a.i)(i,{ref:"animationLoop",playing:e.playing,actions:e.loopActions,class:"loop-green",onActionsDidUpdate:t[0]||(t[0]=t=>e.$emit("actionsDidUpdate"))},{default:Object(a.H)(()=>[Object(a.g)("div",{class:"loop-white"},[Object(a.y)(e.$slots,"default",{},void 0,!0)])]),_:3},8,["playing","actions"])])}],["__scopeId","data-v-54047ca5"]]);const ke={transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},Te={transform:{translateX:[{startValue:10,toValue:1,duration:250,timingFunction:"linear"},{startValue:1,toValue:10,duration:250,delay:750,timingFunction:"linear",repeatCount:-1}]}};var De=Object(c.defineComponent)({props:{isChanged:{type:Boolean,default:!0}},setup(e){const t=Object(c.ref)(null),o=Object(c.ref)({face:ke,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:n}=Object(c.toRefs)(e);return Object(c.watch)(n,(e,n)=>{!n&&e?(console.log("changed to face2"),o.value.face=Te):n&&!e&&(console.log("changed to face1"),o.value.face=ke),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(68);var Pe=r()(De,[["render",function(e,t,o,n,c,l){const i=Object(a.z)("animation");return Object(a.t)(),Object(a.f)("div",null,[Object(a.i)(i,{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(a.i)(i,{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 Ee=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(69);var _e=r()(Ee,[["render",function(e,t,o,n,c,l){const i=Object(a.z)("animation");return Object(a.t)(),Object(a.f)("div",null,[Object(a.i)(i,{actions:e.animations.face,class:"vote-face",playing:""},null,8,["actions"]),Object(a.i)(i,{tag:"img",class:"vote-up-eye",playing:"",props:{src:e.imgs.upVoteEye},actions:e.animations.upVoteEye},null,8,["props","actions"]),Object(a.i)(i,{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(c.defineComponent)({components:{Loop:Se,colorComponent:Oe,CubicBezier:we},setup(){const 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),l=Object(c.ref)(null),i=Object(c.shallowRef)(_e);return{loopPlaying:e,colorPlaying:t,cubicPlaying:o,direction:n,voteComponent:i,colorComponent:Oe,isChanged:a,animationRef:l,voteUp:()=>{i.value=_e},voteDown:()=>{i.value=Pe,a.value=!a.value},onRef:e=>{l.value=e},toggleLoopPlaying:()=>{e.value=!e.value},toggleColorPlaying:()=>{t.value=!t.value},toggleCubicPlaying:()=>{o.value=!o.value},toggleDirection:()=>{n.value="horizon"===n.value?"vertical":"horizon"},actionsDidUpdate:()=>{Object(c.nextTick)().then(()=>{console.log("actions updated & startAnimation"),l.value&&l.value.start()})}}}});o(70);var Be=r()(Ie,[["render",function(e,t,o,n,c,l){const i=Object(a.z)("loop"),r=Object(a.z)("color-component"),s=Object(a.z)("cubic-bezier");return Object(a.t)(),Object(a.f)("ul",{id:"animation-demo"},[Object(a.g)("li",null,[Object(a.g)("label",null,"控制动画"),Object(a.g)("div",{class:"toolbar"},[Object(a.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=(...t)=>e.toggleLoopPlaying&&e.toggleLoopPlaying(...t))},[e.loopPlaying?(Object(a.t)(),Object(a.f)("span",{key:0},"暂停")):(Object(a.t)(),Object(a.f)("span",{key:1},"播放"))]),Object(a.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=(...t)=>e.toggleDirection&&e.toggleDirection(...t))},["horizon"===e.direction?(Object(a.t)(),Object(a.f)("span",{key:0},"切换为纵向")):(Object(a.t)(),Object(a.f)("span",{key:1},"切换为横向"))])]),Object(a.g)("div",{style:{height:"150px"}},[Object(a.i)(i,{playing:e.loopPlaying,direction:e.direction,"on-ref":e.onRef,onActionsDidUpdate:e.actionsDidUpdate},{default:Object(a.H)(()=>[Object(a.g)("p",null,"I'm a looping animation")]),_:1},8,["playing","direction","on-ref","onActionsDidUpdate"])])]),Object(a.g)("li",null,[Object(a.g)("div",{style:{"margin-top":"10px"}}),Object(a.g)("label",null,"点赞笑脸动画:"),Object(a.g)("div",{class:"toolbar"},[Object(a.g)("button",{class:"toolbar-btn",onClick:t[2]||(t[2]=(...t)=>e.voteUp&&e.voteUp(...t))},[Object(a.g)("span",null,"点赞 👍")]),Object(a.g)("button",{class:"toolbar-btn",onClick:t[3]||(t[3]=(...t)=>e.voteDown&&e.voteDown(...t))},[Object(a.g)("span",null,"踩 👎")])]),Object(a.g)("div",{class:"vote-face-container center"},[(Object(a.t)(),Object(a.d)(Object(a.A)(e.voteComponent),{class:"vote-icon","is-changed":e.isChanged},null,8,["is-changed"]))])]),Object(a.g)("li",null,[Object(a.g)("div",{style:{"margin-top":"10px"}}),Object(a.g)("label",null,"渐变色动画"),Object(a.g)("div",{class:"toolbar"},[Object(a.g)("button",{class:"toolbar-btn",onClick:t[4]||(t[4]=(...t)=>e.toggleColorPlaying&&e.toggleColorPlaying(...t))},[e.colorPlaying?(Object(a.t)(),Object(a.f)("span",{key:0},"暂停")):(Object(a.t)(),Object(a.f)("span",{key:1},"播放"))])]),Object(a.g)("div",null,[Object(a.i)(r,{playing:e.colorPlaying},{default:Object(a.H)(()=>[Object(a.g)("p",null,"背景色渐变")]),_:1},8,["playing"])])]),Object(a.g)("li",null,[Object(a.g)("div",{style:{"margin-top":"10px"}}),Object(a.g)("label",null,"贝塞尔曲线动画"),Object(a.g)("div",{class:"toolbar"},[Object(a.g)("button",{class:"toolbar-btn",onClick:t[5]||(t[5]=(...t)=>e.toggleCubicPlaying&&e.toggleCubicPlaying(...t))},[e.cubicPlaying?(Object(a.t)(),Object(a.f)("span",{key:0},"暂停")):(Object(a.t)(),Object(a.f)("span",{key:1},"播放"))])]),Object(a.g)("div",null,[Object(a.i)(s,{playing:e.cubicPlaying},{default:Object(a.H)(()=>[Object(a.g)("p",null,"cubic-bezier(.45,2.84,.38,.5)")]),_:1},8,["playing"])])])])}],["__scopeId","data-v-4fa3f0c0"]]);var Re=o(9);const Le=["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"];var Ve=Object(c.defineComponent)({setup(){const 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),l=Object(c.ref)(!1);return Object(Re.onBeforeRouteLeave)((t,o,n)=>{e.value||n()}),{supportedOrientations:Le,dialogIsVisible:e,dialog2IsVisible:t,dialogAnimationType:o,immersionStatusBar:n,autoHideStatusBar:a,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":a.value=!a.value;break;case"immerseStatusBar":n.value=!n.value;break;case"hideNavigationBar":l.value=!l.value}}}}});o(71);var He=r()(Ve,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{id:"dialog-demo"},[Object(a.g)("label",null,"显示或者隐藏对话框:"),Object(a.g)("button",{class:"dialog-demo-button-1",onClick:t[0]||(t[0]=Object(a.J)(()=>e.onClickView("slide"),["stop"]))},[Object(a.g)("span",{class:"button-text"},"显示对话框--slide")]),Object(a.g)("button",{class:"dialog-demo-button-1",onClick:t[1]||(t[1]=Object(a.J)(()=>e.onClickView("fade"),["stop"]))},[Object(a.g)("span",{class:"button-text"},"显示对话框--fade")]),Object(a.g)("button",{class:"dialog-demo-button-1",onClick:t[2]||(t[2]=Object(a.J)(()=>e.onClickView("slide_fade"),["stop"]))},[Object(a.g)("span",{class:"button-text"},"显示对话框--slide_fade")]),Object(a.g)("button",{style:Object(a.p)([{borderColor:e.autoHideStatusBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[3]||(t[3]=Object(a.J)(()=>e.onClickDialogConfig("hideStatusBar"),["stop"]))},[Object(a.g)("span",{class:"button-text"},"隐藏状态栏")],4),Object(a.g)("button",{style:Object(a.p)([{borderColor:e.immersionStatusBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[4]||(t[4]=Object(a.J)(()=>e.onClickDialogConfig("immerseStatusBar"),["stop"]))},[Object(a.g)("span",{class:"button-text"},"沉浸式状态栏")],4),Object(a.g)("button",{style:Object(a.p)([{borderColor:e.autoHideNavigationBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[5]||(t[5]=Object(a.J)(()=>e.onClickDialogConfig("hideNavigationBar"),["stop"]))},[Object(a.g)("span",{class:"button-text"},"隐藏导航栏")],4),Object(a.e)(" dialog can't support v-show, can only use v-if for explicit switching "),e.dialogIsVisible?(Object(a.t)(),Object(a.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(a.e)(" dialog on iOS platform can only have one child node "),Object(a.g)("div",{class:"dialog-demo-wrapper"},[Object(a.g)("div",{class:"fullscreen center row",onClick:t[11]||(t[11]=(...t)=>e.onClickView&&e.onClickView(...t))},[Object(a.g)("div",{class:"dialog-demo-close-btn center column",onClick:t[7]||(t[7]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},[Object(a.g)("p",{class:"dialog-demo-close-btn-text"}," 点击空白区域关闭 "),Object(a.g)("button",{class:"dialog-demo-button-2",onClick:t[6]||(t[6]=(...t)=>e.onClickOpenSecond&&e.onClickOpenSecond(...t))},[Object(a.g)("span",{class:"button-text"},"点击打开二级全屏弹窗")])]),e.dialog2IsVisible?(Object(a.t)(),Object(a.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(a.g)("div",{class:"dialog-2-demo-wrapper center column row",onClick:t[8]||(t[8]=(...t)=>e.onClickOpenSecond&&e.onClickOpenSecond(...t))},[Object(a.g)("p",{class:"dialog-demo-close-btn-text",style:{color:"white"}}," Hello 我是二级全屏弹窗,点击任意位置关闭。 ")])],40,["animationType"])):Object(a.e)("v-if",!0)])])],40,["animationType","supportedOrientations","immersionStatusBar","autoHideStatusBar","autoHideNavigationBar"])):Object(a.e)("v-if",!0)])}],["__scopeId","data-v-58c0fb99"]]);var Ne=o(8);let Me;var ze=Object(c.defineComponent)({setup(){const e=Object(c.ref)("ready to set"),t=Object(c.ref)(""),o=Object(c.ref)(""),n=Object(c.ref)("正在获取..."),a=Object(c.ref)(""),l=Object(c.ref)(""),i=Object(c.ref)(""),r=Object(c.ref)(null),s=Object(c.ref)("请求网址中..."),u=Object(c.ref)("ready to set"),d=Object(c.ref)(""),b=Object(c.ref)(0);return Object(c.onMounted)(()=>{i.value=JSON.stringify(Object(Ne.a)()),f.Native.NetInfo.fetch().then(e=>{n.value=e}),Me=f.Native.NetInfo.addEventListener("change",e=>{n.value="收到通知: "+e.network_info}),fetch("https://hippyjs.org",{mode:"no-cors"}).then(e=>{s.value="成功状态: "+e.status}).catch(e=>{s.value="收到错误: "+e}),f.EventBus.$on("testEvent",()=>{b.value+=1})}),{Native:f.Native,rect1:a,rect2:l,rectRef:r,storageValue:t,storageSetStatus:e,imageSize:o,netInfoText:n,superProps:i,fetchText:s,cookieString:u,cookiesValue:d,getSize:async()=>{const e=await f.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:()=>{f.Native.AsyncStorage.setItem("itemKey","hippy"),e.value='set "hippy" value succeed'},getItem:async()=>{const e=await f.Native.AsyncStorage.getItem("itemKey");t.value=e||"undefined"},removeItem:()=>{f.Native.AsyncStorage.removeItem("itemKey"),e.value='remove "hippy" value succeed'},setCookie:()=>{f.Native.Cookie.set("https://hippyjs.org","name=hippy;network=mobile"),u.value="'name=hippy;network=mobile' is set"},getCookie:()=>{f.Native.Cookie.getAll("https://hippyjs.org").then(e=>{d.value=e})},getBoundingClientRect:async(e=!1)=>{try{const t=await f.Native.getBoundingClientRect(r.value,{relToContainer:e});e?l.value=""+JSON.stringify(t):a.value=""+JSON.stringify(t)}catch(e){console.error("getBoundingClientRect error",e)}},triggerAppEvent:()=>{f.EventBus.$emit("testEvent")},eventTriggeredTimes:b}},beforeDestroy(){Me&&f.Native.NetInfo.removeEventListener("change",Me),f.EventBus.$off("testEvent")}});o(72);var Fe=r()(ze,[["render",function(e,t,o,n,c,l){var i,r;return Object(a.t)(),Object(a.f)("div",{id:"demo-vue-native",ref:"rectRef"},[Object(a.g)("div",null,[Object(a.e)(" platform "),e.Native.Platform?(Object(a.t)(),Object(a.f)("div",{key:0,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.Platform"),Object(a.g)("p",null,Object(a.D)(e.Native.Platform),1)])):Object(a.e)("v-if",!0),Object(a.e)(" device name "),Object(a.g)("div",{class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.Device"),Object(a.g)("p",null,Object(a.D)(e.Native.Device),1)]),Object(a.e)(" Is it an iPhone X "),e.Native.isIOS()?(Object(a.t)(),Object(a.f)("div",{key:1,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.isIPhoneX"),Object(a.g)("p",null,Object(a.D)(e.Native.isIPhoneX),1)])):Object(a.e)("v-if",!0),Object(a.e)(" OS version, currently only available for iOS, other platforms return null "),e.Native.isIOS()?(Object(a.t)(),Object(a.f)("div",{key:2,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.OSVersion"),Object(a.g)("p",null,Object(a.D)(e.Native.OSVersion||"null"),1)])):Object(a.e)("v-if",!0),Object(a.e)(" Internationalization related information "),Object(a.g)("div",{class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.Localization"),Object(a.g)("p",null,Object(a.D)("国际化相关信息")),Object(a.g)("p",null,Object(a.D)("国家 "+(null===(i=e.Native.Localization)||void 0===i?void 0:i.country)),1),Object(a.g)("p",null,Object(a.D)("语言 "+(null===(r=e.Native.Localization)||void 0===r?void 0:r.language)),1),Object(a.g)("p",null,Object(a.D)("方向 "+(1===e.Native.Localization.direction?"RTL":"LTR")),1)]),Object(a.e)(" API version, currently only available for Android, other platforms return null "),e.Native.isAndroid()?(Object(a.t)(),Object(a.f)("div",{key:3,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.APILevel"),Object(a.g)("p",null,Object(a.D)(e.Native.APILevel||"null"),1)])):Object(a.e)("v-if",!0),Object(a.e)(" Whether the screen is vertically displayed "),Object(a.g)("div",{class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.screenIsVertical"),Object(a.g)("p",null,Object(a.D)(e.Native.screenIsVertical),1)]),Object(a.e)(" width of window "),e.Native.Dimensions.window.width?(Object(a.t)(),Object(a.f)("div",{key:4,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.Dimensions.window.width"),Object(a.g)("p",null,Object(a.D)(e.Native.Dimensions.window.width),1)])):Object(a.e)("v-if",!0),Object(a.e)(" The height of the window, it should be noted that both platforms include the status bar. "),Object(a.e)(" Android will start drawing from the first pixel below the status bar. "),e.Native.Dimensions.window.height?(Object(a.t)(),Object(a.f)("div",{key:5,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.Dimensions.window.height"),Object(a.g)("p",null,Object(a.D)(e.Native.Dimensions.window.height),1)])):Object(a.e)("v-if",!0),Object(a.e)(" width of screen "),e.Native.Dimensions.screen.width?(Object(a.t)(),Object(a.f)("div",{key:6,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.width"),Object(a.g)("p",null,Object(a.D)(e.Native.Dimensions.screen.width),1)])):Object(a.e)("v-if",!0),Object(a.e)(" height of screen "),e.Native.Dimensions.screen.height?(Object(a.t)(),Object(a.f)("div",{key:7,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.height"),Object(a.g)("p",null,Object(a.D)(e.Native.Dimensions.screen.height),1)])):Object(a.e)("v-if",!0),Object(a.e)(" the pt value of a pixel "),Object(a.g)("div",{class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.OnePixel"),Object(a.g)("p",null,Object(a.D)(e.Native.OnePixel),1)]),Object(a.e)(" Android Navigation Bar Height "),e.Native.Dimensions.screen.navigatorBarHeight?(Object(a.t)(),Object(a.f)("div",{key:8,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.navigatorBarHeight"),Object(a.g)("p",null,Object(a.D)(e.Native.Dimensions.screen.navigatorBarHeight),1)])):Object(a.e)("v-if",!0),Object(a.e)(" height of status bar "),e.Native.Dimensions.screen.statusBarHeight?(Object(a.t)(),Object(a.f)("div",{key:9,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.statusBarHeight"),Object(a.g)("p",null,Object(a.D)(e.Native.Dimensions.screen.statusBarHeight),1)])):Object(a.e)("v-if",!0),Object(a.e)(" android virtual navigation bar height "),e.Native.isAndroid()&&void 0!==e.Native.Dimensions.screen.navigatorBarHeight?(Object(a.t)(),Object(a.f)("div",{key:10,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.navigatorBarHeight(Android only)"),Object(a.g)("p",null,Object(a.D)(e.Native.Dimensions.screen.navigatorBarHeight),1)])):Object(a.e)("v-if",!0),Object(a.e)(" The startup parameters passed from the native "),e.superProps?(Object(a.t)(),Object(a.f)("div",{key:11,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"afterCallback of $start method contain superProps"),Object(a.g)("p",null,Object(a.D)(e.superProps),1)])):Object(a.e)("v-if",!0),Object(a.e)(" A demo of Native Event,Just show how to use "),Object(a.g)("div",{class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"App event"),Object(a.g)("div",null,[Object(a.g)("button",{class:"event-btn",onClick:t[0]||(t[0]=(...t)=>e.triggerAppEvent&&e.triggerAppEvent(...t))},[Object(a.g)("span",{class:"event-btn-text"},"Trigger app event")]),Object(a.g)("div",{class:"event-btn-result"},[Object(a.g)("p",null,"Event triggered times: "+Object(a.D)(e.eventTriggeredTimes),1)])])]),Object(a.e)(" example of measuring the size of an element "),Object(a.g)("div",{ref:"measure-block",class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.getBoundingClientRect"),Object(a.g)("div",{class:"item-wrapper"},[Object(a.g)("button",{class:"item-button",onClick:t[1]||(t[1]=()=>e.getBoundingClientRect(!1))},[Object(a.g)("span",null,"relative to App")]),Object(a.g)("span",{style:{"max-width":"200px"}},Object(a.D)(e.rect1),1)]),Object(a.g)("div",{class:"item-wrapper"},[Object(a.g)("button",{class:"item-button",onClick:t[2]||(t[2]=()=>e.getBoundingClientRect(!0))},[Object(a.g)("span",null,"relative to Container")]),Object(a.g)("span",{style:{"max-width":"200px"}},Object(a.D)(e.rect2),1)])],512),Object(a.e)(" local storage "),e.Native.AsyncStorage?(Object(a.t)(),Object(a.f)("div",{key:12,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"AsyncStorage 使用"),Object(a.g)("div",{class:"item-wrapper"},[Object(a.g)("button",{class:"item-button",onClick:t[3]||(t[3]=(...t)=>e.setItem&&e.setItem(...t))},[Object(a.g)("span",null,"setItem")]),Object(a.g)("span",null,Object(a.D)(e.storageSetStatus),1)]),Object(a.g)("div",{class:"item-wrapper"},[Object(a.g)("button",{class:"item-button",onClick:t[4]||(t[4]=(...t)=>e.removeItem&&e.removeItem(...t))},[Object(a.g)("span",null,"removeItem")]),Object(a.g)("span",null,Object(a.D)(e.storageSetStatus),1)]),Object(a.g)("div",{class:"item-wrapper"},[Object(a.g)("button",{class:"item-button",onClick:t[5]||(t[5]=(...t)=>e.getItem&&e.getItem(...t))},[Object(a.g)("span",null,"getItem")]),Object(a.g)("span",null,Object(a.D)(e.storageValue),1)])])):Object(a.e)("v-if",!0),Object(a.e)(" ImageLoader "),e.Native.ImageLoader?(Object(a.t)(),Object(a.f)("div",{key:13,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"ImageLoader 使用"),Object(a.g)("div",{class:"item-wrapper"},[Object(a.g)("button",{class:"item-button",onClick:t[6]||(t[6]=(...t)=>e.getSize&&e.getSize(...t))},[Object(a.g)("span",null,"getSize")]),Object(a.g)("span",null,Object(a.D)(e.imageSize),1)])])):Object(a.e)("v-if",!0),Object(a.e)(" Fetch "),Object(a.g)("div",{class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Fetch 使用"),Object(a.g)("div",{class:"item-wrapper"},[Object(a.g)("span",null,Object(a.D)(e.fetchText),1)])]),Object(a.e)(" network info "),e.Native.NetInfo?(Object(a.t)(),Object(a.f)("div",{key:14,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"NetInfo 使用"),Object(a.g)("div",{class:"item-wrapper"},[Object(a.g)("span",null,Object(a.D)(e.netInfoText),1)])])):Object(a.e)("v-if",!0),Object(a.e)(" Cookie "),e.Native.Cookie?(Object(a.t)(),Object(a.f)("div",{key:15,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Cookie 使用"),Object(a.g)("div",{class:"item-wrapper"},[Object(a.g)("button",{class:"item-button",onClick:t[7]||(t[7]=(...t)=>e.setCookie&&e.setCookie(...t))},[Object(a.g)("span",null,"setCookie")]),Object(a.g)("span",null,Object(a.D)(e.cookieString),1)]),Object(a.g)("div",{class:"item-wrapper"},[Object(a.g)("button",{class:"item-button",onClick:t[8]||(t[8]=(...t)=>e.getCookie&&e.getCookie(...t))},[Object(a.g)("span",null,"getCookie")]),Object(a.g)("span",null,Object(a.D)(e.cookiesValue),1)])])):Object(a.e)("v-if",!0),Object(a.e)(" iOS platform "),e.Native.isIOS()?(Object(a.t)(),Object(a.f)("div",{key:16,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.isIOS"),Object(a.g)("p",null,Object(a.D)(e.Native.isIOS()),1)])):Object(a.e)("v-if",!0),Object(a.e)(" Android platform "),e.Native.isAndroid()?(Object(a.t)(),Object(a.f)("div",{key:17,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.isAndroid"),Object(a.g)("p",null,Object(a.D)(e.Native.isAndroid()),1)])):Object(a.e)("v-if",!0)])],512)}],["__scopeId","data-v-2aae558d"]]);const Ye="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",Ue={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[Ye,Ye,Ye],subInfo:["三图评论","11评"]}},We={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},Ge={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}};var Ke=[Ge,Ue,We,Ue,We,Ue,We,Ge,Ue];var Je=Object(c.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:()=>{}}}});var qe=r()(Je,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{class:"list-view-item style-one"},[Object(a.g)("p",{numberOfLines:2,enableScale:!0,class:"article-title"},Object(a.D)(e.itemBean.title),1),Object(a.g)("div",{class:"style-one-image-container"},[(Object(a.t)(!0),Object(a.f)(a.a,null,Object(a.x)(e.itemBean.picList,(e,t)=>(Object(a.t)(),Object(a.f)("img",{key:t,src:e,alt:"",class:"image style-one-image"},null,8,["src"]))),128))]),Object(a.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(a.g)("p",{class:"normal-text"},Object(a.D)(e.itemBean.subInfo.join("")),1)])])}]]);var Qe=Object(c.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:()=>{}}}});var Xe=r()(Qe,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{class:"list-view-item style-two"},[Object(a.g)("div",{class:"style-two-left-container"},[Object(a.g)("p",{class:"article-title",numberOfLines:2,enableScale:!0},Object(a.D)(e.itemBean.title),1),Object(a.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(a.g)("p",{class:"normal-text"},Object(a.D)(e.itemBean.subInfo.join("")),1)])]),Object(a.g)("div",{class:"style-two-image-container"},[Object(a.g)("img",{src:e.itemBean.picUrl,alt:"",class:"image style-two-image"},null,8,["src"])])])}]]);var Ze=Object(c.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:()=>{}}}});var $e=r()(Ze,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{class:"list-view-item style-five"},[Object(a.g)("p",{numberOfLines:2,enableScale:!0,class:"article-title"},Object(a.D)(e.itemBean.title),1),Object(a.g)("div",{class:"style-five-image-container"},[Object(a.g)("img",{src:e.itemBean.picUrl,alt:"",class:"image"},null,8,["src"])]),Object(a.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(a.g)("p",{class:"normal-text"},Object(a.D)(e.itemBean.subInfo.join(" ")),1)])])}]]);let et=0;const tt=Object(c.ref)({top:0,left:0}),ot=async()=>new Promise(e=>{setTimeout(()=>e(Ke),800)});var nt=Object(c.defineComponent)({components:{StyleOne:qe,StyleTwo:Xe,StyleFive:$e},setup(){const e=Object(c.ref)(null),t=Object(c.ref)(null),o=Object(c.ref)(null),n=Object(c.ref)([...Ke]);let a=!1,l=!1;const i=Object(c.ref)(""),r=Object(c.ref)("继续下拉触发刷新"),s=Object(c.ref)("正在加载...");return Object(c.onMounted)(()=>{a=!1,l=!1,n.value=[...Ke],et=null!==f.Native&&void 0!==f.Native&&f.Native.Dimensions?f.Native.Dimensions.window.height:window.innerHeight,t.value&&t.value.collapsePullHeader({time:2e3})}),{loadingState:i,dataSource:n,headerRefreshText:r,footerRefreshText:s,list:e,pullHeader:t,pullFooter:o,onEndReached:async e=>{if(console.log("endReached",e),a)return;a=!0,s.value="加载更多...";const t=await ot();0===t.length&&(s.value="没有更多数据"),n.value=[...n.value,...t],a=!1,o.value&&o.value.collapsePullFooter()},onHeaderReleased:async()=>{l||(l=!0,console.log("onHeaderReleased"),r.value="刷新数据中,请稍等",n.value=await ot(),n.value=n.value.reverse(),l=!1,r.value="2秒后收起",t.value&&t.value.collapsePullHeader({time:2e3}))},onHeaderIdle:()=>{},onHeaderPulling:e=>{l||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?r.value="松手,即可触发刷新":r.value="继续下拉,触发刷新")},onFooterIdle:()=>{},onFooterPulling:e=>{console.log("onFooterPulling",e)},onScroll:e=>{e.stopPropagation(),tt.value={top:e.offsetY,left:e.offsetX}},scrollToNextPage:()=>{if(f.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(f.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(73);var at=r()(nt,[["render",function(e,t,o,n,c,l){const i=Object(a.z)("pull-header"),r=Object(a.z)("style-one"),s=Object(a.z)("style-two"),u=Object(a.z)("style-five"),d=Object(a.z)("pull-footer");return Object(a.t)(),Object(a.f)("div",{id:"demo-pull-header-footer","specital-attr":"pull-header-footer"},[Object(a.g)("div",{class:"toolbar"},[Object(a.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=(...t)=>e.scrollToNextPage&&e.scrollToNextPage(...t))},[Object(a.g)("span",null,"翻到下一页")]),Object(a.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=(...t)=>e.scrollToBottom&&e.scrollToBottom(...t))},[Object(a.g)("span",null,"翻动到底部")]),Object(a.g)("p",{class:"toolbar-text"}," 列表元素数量:"+Object(a.D)(e.dataSource.length),1)]),Object(a.g)("ul",{id:"list",ref:"list",numberOfRows:e.dataSource.length,rowShouldSticky:!0,onScroll:t[2]||(t[2]=(...t)=>e.onScroll&&e.onScroll(...t))},[Object(a.h)(" /** * 下拉组件 * * 事件: * idle: 滑动距离在 pull-header 区域内触发一次,参数 contentOffset,滑动距离 * pulling: 滑动距离超出 pull-header 后触发一次,参数 contentOffset,滑动距离 * refresh: 滑动超出距离,松手后触发一次 */ "),Object(a.i)(i,{ref:"pullHeader",class:"ul-refresh",onIdle:e.onHeaderIdle,onPulling:e.onHeaderPulling,onReleased:e.onHeaderReleased},{default:Object(a.H)(()=>[Object(a.g)("p",{class:"ul-refresh-text"},Object(a.D)(e.headerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"]),(Object(a.t)(!0),Object(a.f)(a.a,null,Object(a.x)(e.dataSource,(e,t)=>(Object(a.t)(),Object(a.f)("li",{key:t,class:"item-style",type:"row-"+e.style,sticky:0===t},[1===e.style?(Object(a.t)(),Object(a.d)(r,{key:0,"item-bean":e.itemBean},null,8,["item-bean"])):Object(a.e)("v-if",!0),2===e.style?(Object(a.t)(),Object(a.d)(s,{key:1,"item-bean":e.itemBean},null,8,["item-bean"])):Object(a.e)("v-if",!0),5===e.style?(Object(a.t)(),Object(a.d)(u,{key:2,"item-bean":e.itemBean},null,8,["item-bean"])):Object(a.e)("v-if",!0)],8,["type","sticky"]))),128)),Object(a.h)(" /** * 上拉组件 * > 如果不需要显示加载情况,可以直接使用 ul 的 onEndReached 实现一直加载 * * 事件: * idle: 滑动距离在 pull-footer 区域内触发一次,参数 contentOffset,滑动距离 * pulling: 滑动距离超出 pull-footer 后触发一次,参数 contentOffset,滑动距离 * released: 滑动超出距离,松手后触发一次 */ "),Object(a.i)(d,{ref:"pullFooter",class:"pull-footer",onIdle:e.onFooterIdle,onPulling:e.onFooterPulling,onReleased:e.onEndReached},{default:Object(a.H)(()=>[Object(a.g)("p",{class:"pull-footer-text"},Object(a.D)(e.footerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"])],40,["numberOfRows"])])}],["__scopeId","data-v-52ecb6dc"]]);var ct=Object(c.defineComponent)({setup(){const e=Object(c.ref)("idle"),t=Object(c.ref)(2),o=Object(c.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(74);var lt=r()(ct,[["render",function(e,t,o,n,c,l){const i=Object(a.z)("swiper-slide"),r=Object(a.z)("swiper");return Object(a.t)(),Object(a.f)("div",{id:"demo-swiper"},[Object(a.g)("div",{class:"toolbar"},[Object(a.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=(...t)=>e.scrollToPrevPage&&e.scrollToPrevPage(...t))},[Object(a.g)("span",null,"翻到上一页")]),Object(a.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=(...t)=>e.scrollToNextPage&&e.scrollToNextPage(...t))},[Object(a.g)("span",null,"翻到下一页")]),Object(a.g)("p",{class:"toolbar-text"}," 当前第 "+Object(a.D)(e.currentSlideNum+1)+" 页 ",1)]),Object(a.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(a.i)(r,{id:"swiper",ref:"swiper","need-animation":"",current:e.currentSlide,onDragging:e.onDragging,onDropped:e.onDropped,onStateChanged:e.onStateChanged},{default:Object(a.H)(()=>[Object(a.e)(" slides "),(Object(a.t)(!0),Object(a.f)(a.a,null,Object(a.x)(e.dataSource,e=>(Object(a.t)(),Object(a.d)(i,{key:e,style:Object(a.p)({backgroundColor:4278222848+100*e})},{default:Object(a.H)(()=>[Object(a.g)("p",null,"I'm Slide "+Object(a.D)(e+1),1)]),_:2},1032,["style"]))),128))]),_:1},8,["current","onDragging","onDropped","onStateChanged"]),Object(a.e)(" A Demo of dots "),Object(a.g)("div",{id:"swiper-dots"},[(Object(a.t)(!0),Object(a.f)(a.a,null,Object(a.x)(e.dataSource,t=>(Object(a.t)(),Object(a.f)("div",{key:t,class:Object(a.o)(["dot",{hightlight:e.currentSlideNum===t}])},null,2))),128))])])}]]);let it=0;const rt={top:0,left:5,bottom:0,right:5},st="android"===f.Native.Platform,ut=async()=>new Promise(e=>{setTimeout(()=>(it+=1,e(it>=50?[]:[...Ke,...Ke])),600)});var dt=Object(c.defineComponent)({components:{StyleOne:qe,StyleTwo:Xe,StyleFive:$e},setup(){const e=Object(c.ref)([...Ke,...Ke,...Ke,...Ke]);let t=!1,o=!1;const n=Object(c.ref)(!1),a=Object(c.ref)("正在加载..."),l=Object(c.ref)(null),i=Object(c.ref)(null);let r="继续下拉触发刷新",s="正在加载...";const u=Object(c.computed)(()=>n.value?"正在刷新":"下拉刷新"),d=Object(c.ref)(null),b=Object(c.ref)(null),g=Object(c.computed)(()=>(f.Native.Dimensions.screen.width-rt.left-rt.right-6)/2);return{dataSource:e,isRefreshing:n,refreshText:u,STYLE_LOADING:100,loadingState:a,header:b,gridView:d,contentInset:rt,columnSpacing:6,interItemSpacing:6,numberOfColumns:2,itemWidth:g,onScroll:e=>{console.log("waterfall onScroll",e)},onRefresh:async()=>{n.value=!0;const t=await ut();n.value=!1,e.value=t.reverse(),b.value&&b.value.refreshCompleted()},onEndReached:async()=>{if(console.log("end Reached"),t)return;t=!0,s="加载更多...";const o=await ut();0===o.length&&(s="没有更多数据"),e.value=[...e.value,...o],t=!1,i.value&&i.value.collapsePullFooter()},onClickItem:e=>{d.value&&d.value.scrollToIndex({index:e,animation:!0})},isAndroid:st,onHeaderPulling:e=>{o||(console.log("onHeaderPulling",e.contentOffset),r=e.contentOffset>30?"松手,即可触发刷新":"继续下拉,触发刷新")},onFooterPulling:e=>{console.log("onFooterPulling",e)},onHeaderIdle:()=>{},onFooterIdle:()=>{},onHeaderReleased:async()=>{o||(o=!0,console.log("onHeaderReleased"),r="刷新数据中,请稍等",o=!1,r="2秒后收起",l.value&&l.value.collapsePullHeader({time:2e3}))},headerRefreshText:r,footerRefreshText:s,loadMoreDataFlag:t,pullHeader:l,pullFooter:i}}});o(75);var bt=r()(dt,[["render",function(e,t,o,n,c,l){const i=Object(a.z)("pull-header"),r=Object(a.z)("waterfall-item"),s=Object(a.z)("style-one"),u=Object(a.z)("style-two"),d=Object(a.z)("style-five"),b=Object(a.z)("pull-footer"),g=Object(a.z)("waterfall");return Object(a.t)(),Object(a.f)("div",{id:"demo-waterfall"},[Object(a.i)(g,{ref:"gridView","content-inset":e.contentInset,"column-spacing":e.columnSpacing,"contain-banner-view":!e.isAndroid,"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(a.H)(()=>[Object(a.i)(i,{ref:"pullHeader",class:"ul-refresh",onIdle:e.onHeaderIdle,onPulling:e.onHeaderPulling,onReleased:e.onHeaderReleased},{default:Object(a.H)(()=>[Object(a.g)("p",{class:"ul-refresh-text"},Object(a.D)(e.headerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"]),e.isAndroid?(Object(a.t)(),Object(a.d)(r,{key:1,"full-span":!0,class:"banner-view"},{default:Object(a.H)(()=>[Object(a.g)("span",null,"BannerView")]),_:1})):(Object(a.t)(),Object(a.f)("div",{key:0,class:"banner-view"},[Object(a.g)("span",null,"BannerView")])),(Object(a.t)(!0),Object(a.f)(a.a,null,Object(a.x)(e.dataSource,(t,o)=>(Object(a.t)(),Object(a.d)(r,{key:o,style:Object(a.p)({width:e.itemWidth}),type:t.style,onClick:Object(a.J)(()=>e.onClickItem(o),["stop"])},{default:Object(a.H)(()=>[1===t.style?(Object(a.t)(),Object(a.d)(s,{key:0,"item-bean":t.itemBean},null,8,["item-bean"])):Object(a.e)("v-if",!0),2===t.style?(Object(a.t)(),Object(a.d)(u,{key:1,"item-bean":t.itemBean},null,8,["item-bean"])):Object(a.e)("v-if",!0),5===t.style?(Object(a.t)(),Object(a.d)(d,{key:2,"item-bean":t.itemBean},null,8,["item-bean"])):Object(a.e)("v-if",!0)]),_:2},1032,["style","type","onClick"]))),128)),Object(a.i)(b,{ref:"pullFooter",class:"pull-footer",onIdle:e.onFooterIdle,onPulling:e.onFooterPulling,onReleased:e.onEndReached},{default:Object(a.H)(()=>[Object(a.g)("p",{class:"pull-footer-text"},Object(a.D)(e.footerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"])]),_:1},8,["content-inset","column-spacing","contain-banner-view","inter-item-spacing","number-of-columns","onEndReached","onScroll"])])}],["__scopeId","data-v-056a0bc2"]]);var gt=Object(c.defineComponent)({setup(){const e=Object(c.ref)(0),t=Object(c.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(76);var ft={demoNative:{name:"Native 能力",component:Fe},demoAnimation:{name:"animation 组件",component:Be},demoDialog:{name:"dialog 组件",component:He},demoSwiper:{name:"swiper 组件",component:lt},demoPullHeaderFooter:{name:"pull header/footer 组件",component:at},demoWaterfall:{name:"waterfall 组件",component:bt},demoNestedScroll:{name:"nested scroll 示例",component:r()(gt,[["render",function(e,t,o,n,c,l){const i=Object(a.z)("swiper-slide"),r=Object(a.z)("swiper");return Object(a.t)(),Object(a.f)("div",{id:"demo-wrap",onLayout:t[0]||(t[0]=(...t)=>e.onLayout&&e.onLayout(...t))},[Object(a.g)("div",{id:"demo-content"},[Object(a.g)("div",{id:"banner"}),Object(a.g)("div",{id:"tabs"},[(Object(a.t)(),Object(a.f)(a.a,null,Object(a.x)(2,t=>Object(a.g)("p",{key:"tab"+t,class:Object(a.o)(e.currentSlide===t-1?"selected":""),onClick:o=>e.onTabClick(t)}," tab "+Object(a.D)(t)+" "+Object(a.D)(1===t?"(parent first)":"(self first)"),11,["onClick"])),64))]),Object(a.i)(r,{id:"swiper",ref:"swiper","need-animation":"",current:e.currentSlide,style:Object(a.p)({height:e.layoutHeight-80}),onDropped:e.onDropped},{default:Object(a.H)(()=>[Object(a.i)(i,{key:"slide1"},{default:Object(a.H)(()=>[Object(a.g)("ul",{nestedScrollTopPriority:"parent"},[(Object(a.t)(),Object(a.f)(a.a,null,Object(a.x)(30,e=>Object(a.g)("li",{key:"item"+e,class:Object(a.o)(e%2?"item-even":"item-odd")},[Object(a.g)("p",null,"Item "+Object(a.D)(e),1)],2)),64))])]),_:1}),Object(a.i)(i,{key:"slide2"},{default:Object(a.H)(()=>[Object(a.g)("ul",{nestedScrollTopPriority:"self"},[(Object(a.t)(),Object(a.f)(a.a,null,Object(a.x)(30,e=>Object(a.g)("li",{key:"item"+e,class:Object(a.o)(e%2?"item-even":"item-odd")},[Object(a.g)("p",null,"Item "+Object(a.D)(e),1)],2)),64))])]),_:1})]),_:1},8,["current","style","onDropped"])])],32)}],["__scopeId","data-v-72406cea"]])},demoSetNativeProps:{name:"setNativeProps",component:me}};var pt=Object(c.defineComponent)({name:"App",setup(){const e=Object.keys(fe).map(e=>({id:e,name:fe[e].name})),t=Object.keys(ft).map(e=>({id:e,name:ft[e].name}));return Object(c.onMounted)(()=>{}),{featureList:e,nativeFeatureList:t,version:c.version,Native:f.Native}}});o(77);var mt=r()(pt,[["render",function(e,t,o,n,c,l){const i=Object(a.z)("router-link");return Object(a.t)(),Object(a.f)("ul",{class:"feature-list"},[Object(a.g)("li",null,[Object(a.g)("div",{id:"version-info"},[Object(a.g)("p",{class:"feature-title"}," Vue: "+Object(a.D)(e.version),1),e.Native?(Object(a.t)(),Object(a.f)("p",{key:0,class:"feature-title"}," Hippy-Vue-Next: "+Object(a.D)("unspecified"!==e.Native.version?e.Native.version:"master"),1)):Object(a.e)("v-if",!0)])]),Object(a.g)("li",null,[Object(a.g)("p",{class:"feature-title"}," 浏览器组件 Demos ")]),(Object(a.t)(!0),Object(a.f)(a.a,null,Object(a.x)(e.featureList,e=>(Object(a.t)(),Object(a.f)("li",{key:e.id,class:"feature-item"},[Object(a.i)(i,{to:{path:"/demo/"+e.id},class:"button"},{default:Object(a.H)(()=>[Object(a.h)(Object(a.D)(e.name),1)]),_:2},1032,["to"])]))),128)),e.nativeFeatureList.length?(Object(a.t)(),Object(a.f)("li",{key:0},[Object(a.g)("p",{class:"feature-title",paintType:"fcp"}," 终端组件 Demos ")])):Object(a.e)("v-if",!0),(Object(a.t)(!0),Object(a.f)(a.a,null,Object(a.x)(e.nativeFeatureList,e=>(Object(a.t)(),Object(a.f)("li",{key:e.id,class:"feature-item"},[Object(a.i)(i,{to:{path:"/demo/"+e.id},class:"button"},{default:Object(a.H)(()=>[Object(a.h)(Object(a.D)(e.name),1)]),_:2},1032,["to"])]))),128))])}],["__scopeId","data-v-63300fa4"]]);var ht=Object(c.defineComponent)({setup(){const 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:()=>{t.value&&t.value.blur()},openBundle:()=>{if(e.value){const{rootViewId:t}=Object(Ne.a)();f.Native.callNative("TestModule","remoteDebug",t,e.value)}}}}});o(78);const vt=[{path:"/",component:mt},{path:"/remote-debug",component:r()(ht,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{ref:"inputDemo",class:"demo-remote-input",onClick:t[2]||(t[2]=Object(a.J)((...t)=>e.blurInput&&e.blurInput(...t),["stop"]))},[Object(a.g)("div",{class:"tips-wrap"},[(Object(a.t)(!0),Object(a.f)(a.a,null,Object(a.x)(e.tips,(t,o)=>(Object(a.t)(),Object(a.f)("p",{key:o,class:"tips-item",style:Object(a.p)(e.styles.tipText)},Object(a.D)(o+1)+". "+Object(a.D)(t),5))),128))]),Object(a.g)("input",{ref:"inputRef",value:e.bundleUrl,"caret-color":"yellow",placeholder:"please input bundleUrl",multiple:!0,numberOfLines:"4",class:"remote-input",onClick:Object(a.J)(()=>{},["stop"]),onChange:t[0]||(t[0]=t=>e.bundleUrl=t.value)},null,40,["value"]),Object(a.g)("div",{class:"buttonContainer",style:Object(a.p)(e.styles.buttonContainer)},[Object(a.g)("button",{style:Object(a.p)(e.styles.button),class:"input-button",onClick:t[1]||(t[1]=Object(a.J)((...t)=>e.openBundle&&e.openBundle(...t),["stop"]))},[Object(a.g)("span",{style:Object(a.p)(e.styles.buttonText)},"开始",4)],4)],4)],512)}],["__scopeId","data-v-c92250fe"]]),name:"Debug"},...Object.keys(fe).map(e=>({path:"/demo/"+e,name:fe[e].name,component:fe[e].component})),...Object.keys(ft).map(e=>({path:"/demo/"+e,name:ft[e].name,component:ft[e].component}))];function Ot(){return Object(n.createHippyRouter)({routes:vt})}},function(e,t,o){"use strict";var n=o(0);var a=o(1),c=o(9),l=Object(a.defineComponent)({name:"App",setup(){const e=Object(c.useRouter)(),t=Object(c.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:()=>{e.back()},navigateTo:(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=""}}}),i=(o(49),o(3));const r=o.n(i)()(l,[["render",function(e,t,o,a,c,l){const i=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]=(...t)=>e.goBack&&e.goBack(...t))},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)(()=>{},["stop"])},[Object(n.e)(" if you don't need keep-alive, just use '' "),Object(n.i)(i,null,{default:Object(n.H)(({Component:e,route:t})=>[(Object(n.t)(),Object(n.d)(n.b,null,[(Object(n.t)(),Object(n.d)(Object(n.A)(e),{key:t.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,(t,o)=>(Object(n.t)(),Object(n.f)("div",{key:"tab-"+o,class:Object(n.o)(["bottom-tab",o===e.activatedTab?"activated":""]),onClick:Object(n.J)(n=>e.navigateTo(t,o),["stop"])},[Object(n.g)("span",{class:"bottom-tab-text"},Object(n.D)(t.text),1)],10,["onClick"]))),128))])])}]]);t.a=r},,,function(e,t,o){e.exports=o(48)},function(e,t,o){"use strict";o.r(t),function(e){var t=o(4),n=o(44),a=o(43),c=o(8);e.Hippy.on("uncaughtException",e=>{console.log("uncaughtException error",e.stack,e.message)}),e.Hippy.on("unhandledRejection",e=>{console.log("unhandledRejection reason",e)});const l=Object(t.createApp)(n.a,{appName:"Demo",iPhone:{statusBar:{backgroundColor:4283416717}},trimWhitespace:!0}),i=Object(a.a)();l.use(i),t.EventBus.$on("onSizeChanged",e=>{e.width&&e.height&&Object(t.setScreenSize)({width:e.width,height:e.height})});l.$start().then(({superProps:e,rootViewId:o})=>{Object(c.b)({superProps:e,rootViewId:o}),i.push("/"),t.BackAndroid.addListener(()=>(console.log("backAndroid"),!0)),l.mount("#root")})}.call(this,o(5))},function(e,t,o){"use strict";o(12)},function(e,t,o){"use strict";o(13)},function(e,t,o){var n=o(14).default,a=o(52);e.exports=function(e){var t=a(e,"string");return"symbol"==n(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,o){var n=o(14).default;e.exports=function(e,t){if("object"!=n(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var a=o.call(e,t||"default");if("object"!=n(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,o){"use strict";o(15)},function(e,t,o){"use strict";o(16)},function(e,t,o){"use strict";o(17)},function(e,t,o){"use strict";o(18)},function(e,t,o){"use strict";o(19)},function(e,t,o){"use strict";o(20)},function(e,t,o){"use strict";o(21)},function(e,t,o){"use strict";o(22)},function(e,t,o){"use strict";o(23)},function(e,t,o){"use strict";o(24)},function(e,t,o){"use strict";o(25)},function(e,t,o){"use strict";o(26)},function(e,t,o){"use strict";o(27)},function(e,t,o){"use strict";o(28)},function(e,t,o){"use strict";o(29)},function(e,t,o){"use strict";o(30)},function(e,t,o){"use strict";o(31)},function(e,t,o){"use strict";o(32)},function(e,t,o){"use strict";o(33)},function(e,t,o){"use strict";o(34)},function(e,t,o){"use strict";o(35)},function(e,t,o){"use strict";o(36)},function(e,t,o){"use strict";o(37)},function(e,t,o){"use strict";o(38)},function(e,t,o){"use strict";o(39)},function(e,t,o){"use strict";o(40)}]); \ 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 i=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=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=3d01fd90&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=3d01fd90&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 i})),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 s})),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),i=t=>e.getTurboModule("demoTurbo").getArray(t),s=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=7a4724b0&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=7a4724b0&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=e3752104&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=e3752104&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 i(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 s(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 s(s({},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 jt}));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")),i=o.n(c);var s=i()(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=i()(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=i()(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=i()(P,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("AsyncComponentFromLocal"),i=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)(i)])):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=i()(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 H=i()(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 Y=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:Y,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=i()(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,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=3d01fd90&scoped=true&lang=css");var $=i()(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"]),Object(n.g)("div",{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"}}," 切换方向 ")])])])}],["__scopeId","data-v-3d01fd90"]]);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=i()(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=i()(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=i()(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 ie=i()(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 se=null;const de=Object(r.ref)([]),pe=e=>{de.value.unshift(e)},ue=()=>{se&&1===se.readyState&&se.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(),se=new WebSocket(e),se.onopen=()=>{var e;return pe("[Opened] "+(null===(e=se)||void 0===e?void 0:e.url))},se.onclose=()=>{var e;return pe("[Closed] "+(null===(e=se)||void 0===e?void 0:e.url))},se.onerror=e=>{pe("[Error] "+e.reason)},se.onmessage=e=>pe("[Received] "+e.data)})(e)})},disconnect:()=>{ue()},sendMessage:()=>{const e=t.value;e&&e.getValue().then(e=>{(e=>{pe("[Sent] "+e),se&&se.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:s},demoImg:{name:"img 组件",component:H},demoInput:{name:"input 组件",component:M},demoTextarea:{name:"textarea 组件",component:re},demoUl:{name:"ul/li 组件",component:$},demoIFrame:{name:"iframe 组件",component:L},demoWebSocket:{name:"WebSocket",component:i()(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:ie}};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=i()(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=i()(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=i()(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=i()(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=i()(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=i()(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=i()(Ie,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("loop"),i=Object(n.z)("color-component"),s=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)(i,{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)(s,{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 He=["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"];var Ye=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:He,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=i()(Ye,[["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)(""),i=Object(r.ref)(null),s=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=>{s.value="成功状态: "+e.status}).catch(e=>{s.value="收到错误: "+e}),y.EventBus.$on("testEvent",()=>{u.value+=1})}),{Native:y.Native,rect1:n,rect2:l,rectRef:i,storageValue:t,storageSetStatus:e,imageSize:o,netInfoText:a,superProps:c,fetchText:s,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(i.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=i()(Ue,[["render",function(e,t,o,a,r,l){var c,i;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===(i=e.Native.Localization)||void 0===i?void 0:i.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=i()(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=i()(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=i()(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)(""),i=Object(r.ref)("继续下拉触发刷新"),s=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:i,footerRefreshText:s,list:e,pullHeader:t,pullFooter:o,onEndReached:async e=>{if(console.log("endReached",e),n)return;n=!0,s.value="加载更多...";const t=await ot();0===t.length&&(s.value="没有更多数据"),a.value=[...a.value,...t],n=!1,o.value&&o.value.collapsePullFooter()},onHeaderReleased:async()=>{l||(l=!0,console.log("onHeaderReleased"),i.value="刷新数据中,请稍等",a.value=await ot(),a.value=a.value.reverse(),l=!1,i.value="2秒后收起",t.value&&t.value.collapsePullHeader({time:2e3}))},onHeaderIdle:()=>{},onHeaderPulling:e=>{l||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?i.value="松手,即可触发刷新":i.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=i()(at,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("pull-header"),i=Object(n.z)("style-one"),s=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)(i,{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)(s,{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<6?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,t.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=7a4724b0&lang=css");var lt=i()(rt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("swiper-slide"),i=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)(i,{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 it={top:0,left:5,bottom:0,right:5},st="android"===y.Native.Platform,dt="ios"===y.Native.Platform,pt=async()=>new Promise(e=>{setTimeout(()=>(ct+=1,e(ct>=50?[]:[...Ge,...Ge])),600)});var ut=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 i="继续下拉触发刷新",s="正在加载...";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-it.left-it.right-6)/2);return{dataSource:e,isRefreshing:a,refreshText:d,STYLE_LOADING:100,loadingState:n,header:u,gridView:p,contentInset:it,columnSpacing:6,interItemSpacing:6,numberOfColumns:2,itemWidth:b,onScroll:e=>{console.log("waterfall onScroll",e)},onRefresh:async()=>{a.value=!0;const t=await pt();a.value=!1,e.value=t.reverse(),u.value&&u.value.refreshCompleted()},onEndReached:async()=>{if(console.log("end Reached"),t)return;t=!0,s="加载更多...";const o=await pt();0===o.length&&(s="没有更多数据"),e.value=[...e.value,...o],t=!1,c.value&&c.value.collapsePullFooter()},onClickItem:e=>{p.value&&p.value.scrollToIndex({index:e,animation:!0})},isAndroid:st,isiOS:dt,onHeaderPulling:e=>{o||(console.log("onHeaderPulling",e.contentOffset),i=e.contentOffset>30?"松手,即可触发刷新":"继续下拉,触发刷新")},onFooterPulling:e=>{console.log("onFooterPulling",e)},onHeaderIdle:()=>{},onFooterIdle:()=>{},onHeaderReleased:async()=>{o||(o=!0,console.log("onHeaderReleased"),i="刷新数据中,请稍等",o=!1,i="2秒后收起",l.value&&l.value.collapsePullHeader({time:2e3}))},headerRefreshText:i,footerRefreshText:s,loadMoreDataFlag:t,pullHeader:l,pullFooter:c}}});o("./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=e3752104&scoped=true&lang=css");var bt=i()(ut,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("pull-header"),i=Object(n.z)("waterfall-item"),s=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-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.isAndroid||e.isiOS?(Object(n.t)(),Object(n.d)(i,{key:1,"full-span":!0,isHeader:!0,class:"banner-view"},{default:Object(n.H)(()=>[Object(n.g)("span",null,"Banner View")]),_:1})):(Object(n.t)(),Object(n.f)("div",{key:0,class:"banner-view"},[Object(n.g)("span",null,"BannerView")])),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,(t,o)=>(Object(n.t)(),Object(n.d)(i,{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)(s,{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)(i,{isFooter:!0,class:"banner-view"},{default:Object(n.H)(()=>[Object(n.g)("span",null,"Footer View")]),_:1}),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-e3752104"]]);var yt=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 vt={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:bt},demoNestedScroll:{name:"nested scroll 示例",component:i()(yt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("swiper-slide"),i=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)(i,{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 ft=Object(r.defineComponent)({name:"App",setup(){const e=Object.keys(ye).map(e=>({id:e,name:ye[e].name})),t=Object.keys(vt).map(e=>({id:e,name:vt[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 mt=i()(ft,[["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 gt=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 ht=[{path:"/",component:mt},{path:"/remote-debug",component:i()(gt,[["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(vt).map(e=>({path:"/demo/"+e,name:vt[e].name,component:vt[e].component}))];function jt(){return Object(a.createHippyRouter)({routes:ht})}},"./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 diff --git a/framework/examples/android-demo/res/vue3/vendor-manifest.json b/framework/examples/android-demo/res/vue3/vendor-manifest.json index 783c9df4584..4a7252c7cef 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/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 +{"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 diff --git a/framework/examples/android-demo/res/vue3/vendor.android.js b/framework/examples/android-demo/res/vue3/vendor.android.js index 247af7b101e..322bbcf69ae 100644 --- a/framework/examples/android-demo/res/vue3/vendor.android.js +++ b/framework/examples/android-demo/res/vue3/vendor.android.js @@ -1,20 +1,8 @@ -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){ +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){ /*! * @hippy/vue-next vunspecified - * (Using Vue v3.4.34 and Hippy-Vue-Next vunspecified) - * Build at: Thu Aug 01 2024 19:06:20 GMT+0800 (中国标准时间) + * (Using Vue v3.4.32 and Hippy-Vue-Next vunspecified) + * Build at: Thu Nov 14 2024 11:26:34 GMT+0800 (中国标准时间) * * Tencent is pleased to support the open source community by making * Hippy available. @@ -34,12 +22,24 @@ function r(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()) * See the License for the specific language governing permissions and * limitations under the License. */ -const o=["mode","valueType","startValue","toValue"],i=["transform"],s=["transform"];function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var s=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,s)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},d.apply(this,arguments)}function f(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&&p(e,t)}function p(e,t){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}Object.defineProperty(t,"__esModule",{value:!0});var h=n(0),m=n(7);const v={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},g=(...e)=>`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`,y="[-+]?\\d*\\.?\\d+",b={rgb:new RegExp("rgb"+g(y,y,y)),rgba:new RegExp("rgba"+g(y,y,y,y)),hsl:new RegExp("hsl"+g(y,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+g(y,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",y)),hex3:/^#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])$/,hex4:/^#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/},O=e=>{const t=parseInt(e,10);return t<0?0:t>255?255:t},_=e=>{const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},E=(e,t,n)=>{let r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e},S=(e,t,n)=>{const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=E(o,r,e+1/3),s=E(o,r,e),c=E(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*c)<<8},w=e=>(parseFloat(e)%360+360)%360/360,N=e=>{const t=parseFloat(e);return t<0?0:t>100?1:t/100};function T(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=b.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(v,e)?v[e]:(t=b.rgb.exec(e),Array.isArray(t)?(O(t[1])<<24|O(t[2])<<16|O(t[3])<<8|255)>>>0:(t=b.rgba.exec(e),t?(O(t[1])<<24|O(t[2])<<16|O(t[3])<<8|_(t[4]))>>>0:(t=b.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=b.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=b.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=b.hsl.exec(e),t?(255|S(w(t[1]),N(t[2]),N(t[3])))>>>0:(t=b.hsla.exec(e),t?(S(w(t[1]),N(t[2]),N(t[3]))|_(t[4]))>>>0:null))))))))}(e);if(null===t)throw new Error("Bad color value: "+e);return t=(t<<24|t>>>8)>>>0,t}const x={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},j={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},A="turn",C="rad",I="deg",k=/\/\*[\s\S]{0,1000}?\*\//gm;const P=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function R(e){if(Number.isInteger(e))return e;if("string"==typeof e&&e.endsWith("px")){const t=parseFloat(e.slice(0,e.indexOf("px")));Number.isNaN(t)||(e=t)}return e}function M(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=d(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(!Array.isArray(n))return"";let r="180";const[o,i,s]=n;return i&&s?r=function(e,t=I){const n=parseFloat(e);let r=e||"";const[,o]=e.split(".");switch(o&&o.length>2&&(r=n.toFixed(2)),t){case A:r=""+(360*n).toFixed(2);break;case C:r=""+(180/Math.PI*n).toFixed(2)}return r}(i,s):o&&void 0!==j[o]&&(r=j[o]),r}function L(e=""){const t=e.replace(/\s+/g," ").trim(),[n,r]=t.split(/\s+(?![^(]*?\))/),o=/^([+-]?\d+\.?\d*)%$/g;return!n||o.exec(n)||r?n&&o.exec(r)?{ratio:parseFloat(r.split("%")[0])/100,color:T(n)}:null:{color:T(n)}}function F(e,t){let n=t,r=e;if(0===t.indexOf("linear-gradient")){r="linearGradient";const e=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),o=[];n={},e.forEach((e,t)=>{if(0===t){const t=M(e);if(t)n.angle=t;else{n.angle="180";const t=L(e);t&&o.push(t)}}else{const t=L(e);t&&o.push(t)}}),n.colorStopList=o}else{const e=/(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t);e&&e.length>1&&([,n]=e)}return[r,n]}class D{constructor(){this.changeMap=new Map}addAttribute(e,t){const n=this.properties(e);n.attributes||(n.attributes=new Set),n.attributes.add(t)}addPseudoClass(e,t){const n=this.properties(e);n.pseudoClasses||(n.pseudoClasses=new Set),n.pseudoClasses.add(t)}properties(e){let t=this.changeMap.get(e);return t||this.changeMap.set(e,t={}),t}}class V{constructor(e){this.id={},this.class={},this.type={},this.universal=[],this.position=0,this.ruleSets=e,e.forEach(e=>e.lookupSort(this))}static removeFromMap(e,t,n){const r=e[t],o=r.findIndex(e=>{var t;return e.sel.ruleSet.hash===(null===(t=n.ruleSet)||void 0===t?void 0:t.hash)});-1!==o&&r.splice(o,1)}append(e){this.ruleSets=this.ruleSets.concat(e),e.forEach(e=>e.lookupSort(this))}delete(e){const t=[];this.ruleSets=this.ruleSets.filter(n=>n.hash!==e||(t.push(n),!1)),t.forEach(e=>e.removeSort(this))}query(e,t){const{tagName:n,id:r,classList:o,props:i}=e;let s=r,c=o;if(null==i?void 0:i.attributes){const{attributes:e}=i;c=new Set(((null==e?void 0:e.class)||"").split(" ").filter(e=>e.trim())),s=e.id}const a=[this.universal,this.id[s],this.type[n]];(null==c?void 0:c.size)&&c.forEach(e=>a.push(this.class[e]));const l=a.filter(e=>!!e).reduce((e,t)=>e.concat(t),[]),u=new D;return u.selectors=l.filter(n=>n.sel.accumulateChanges(e,u,t)).sort((e,t)=>e.sel.specificity-t.sel.specificity||e.pos-t.pos).map(e=>e.sel),u}removeById(e,t){V.removeFromMap(this.id,e,t)}sortById(e,t){this.addToMap(this.id,e,t)}removeByClass(e,t){V.removeFromMap(this.class,e,t)}sortByClass(e,t){this.addToMap(this.class,e,t)}removeByType(e,t){V.removeFromMap(this.type,e,t)}sortByType(e,t){this.addToMap(this.type,e,t)}removeAsUniversal(e){const t=this.universal.findIndex(t=>{var n,r;return(null===(n=t.sel.ruleSet)||void 0===n?void 0:n.hash)===(null===(r=e.ruleSet)||void 0===r?void 0:r.hash)});-1!==t&&this.universal.splice(t)}sortAsUniversal(e){this.universal.push(this.makeDocSelector(e))}addToMap(e,t,n){this.position+=1;const r=e[t];r?r.push(this.makeDocSelector(n)):e[t]=[this.makeDocSelector(n)]}makeDocSelector(e){return this.position+=1,{sel:e,pos:this.position}}}function B(e){return e?" "+e:""}function $(e,t){return t?(null==e?void 0:e.pId)&&t[e.pId]?t[e.pId]:null:null==e?void 0:e.parentNode}class U{constructor(){this.specificity=0}lookupSort(e,t){e.sortAsUniversal(null!=t?t:this)}removeSort(e,t){e.removeAsUniversal(null!=t?t:this)}}class H extends U{constructor(){super(...arguments),this.rarity=0}accumulateChanges(e,t){return this.dynamic?!!this.mayMatch(e)&&(this.trackChanges(e,t),!0):this.match(e)}match(e){return!!e}mayMatch(e){return this.match(e)}trackChanges(e,t){}}class Y extends H{constructor(e){super(),this.specificity=e.reduce((e,t)=>t.specificity+e,0),this.head=e.reduce((e,t)=>!e||e instanceof H&&t.rarity>e.rarity?t:e,null),this.dynamic=e.some(e=>e.dynamic),this.selectors=e}toString(){return`${this.selectors.join("")}${B(this.combinator)}`}match(e){return!!e&&this.selectors.every(t=>t.match(e))}mayMatch(e){return!!e&&this.selectors.every(t=>t.mayMatch(e))}trackChanges(e,t){this.selectors.forEach(n=>n.trackChanges(e,t))}lookupSort(e,t){this.head&&this.head instanceof H&&this.head.lookupSort(e,null!=t?t:this)}removeSort(e,t){this.head&&this.head instanceof H&&this.head.removeSort(e,null!=t?t:this)}}class W extends H{constructor(){super(),this.specificity=0,this.rarity=0,this.dynamic=!1}toString(){return"*"+B(this.combinator)}match(){return!0}}class z extends H{constructor(e){super(),this.specificity=65536,this.rarity=3,this.dynamic=!1,this.id=e}toString(){return`#${this.id}${B(this.combinator)}`}match(e){var t,n;return!!e&&((null===(n=null===(t=e.props)||void 0===t?void 0:t.attributes)||void 0===n?void 0:n.id)===this.id||e.id===this.id)}lookupSort(e,t){e.sortById(this.id,null!=t?t:this)}removeSort(e,t){e.removeById(this.id,null!=t?t:this)}}class K extends H{constructor(e){super(),this.specificity=1,this.rarity=1,this.dynamic=!1,this.cssType=e}toString(){return`${this.cssType}${B(this.combinator)}`}match(e){return!!e&&e.tagName===this.cssType}lookupSort(e,t){e.sortByType(this.cssType,null!=t?t:this)}removeSort(e,t){e.removeByType(this.cssType,null!=t?t:this)}}class G extends H{constructor(e){super(),this.specificity=256,this.rarity=2,this.dynamic=!1,this.className=e}toString(){return`.${this.className}${B(this.combinator)}`}match(e){var t,n,r;if(!e)return!1;const o=null!==(t=e.classList)&&void 0!==t?t:new Set(((null===(r=null===(n=e.props)||void 0===n?void 0:n.attributes)||void 0===r?void 0:r.class)||"").split(" ").filter(e=>e.trim()));return!(!o.size||!o.has(this.className))}lookupSort(e,t){e.sortByClass(this.className,null!=t?t:this)}removeSort(e,t){e.removeByClass(this.className,null!=t?t:this)}}class q extends H{constructor(e){super(),this.specificity=256,this.rarity=0,this.dynamic=!0,this.cssPseudoClass=e}toString(){return`:${this.cssPseudoClass}${B(this.combinator)}`}match(){return!1}mayMatch(){return!0}trackChanges(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}const J=(e,t)=>{var n,r,o;const i=(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n[t])||(null===(r=null==e?void 0:e.attributes)||void 0===r?void 0:r[t]);return void 0!==i?i:Array.isArray(null==e?void 0:e.styleScopeId)&&(null===(o=null==e?void 0:e.styleScopeId)||void 0===o?void 0:o.includes(t))?t:void 0};class X extends H{constructor(e,t="",n=""){super(),this.attribute="",this.test="",this.value="",this.specificity=256,this.rarity=0,this.dynamic=!0,this.attribute=e,this.test=t,this.value=n,this.match=t?n?r=>{if(!r||!(null==r?void 0:r.attributes)&&!(null==r?void 0:r.props[e]))return!1;const o=""+J(r,e);if("="===t)return o===n;if("^="===t)return o.startsWith(n);if("$="===t)return o.endsWith(n);if("*="===t)return-1!==o.indexOf(n);if("~="===t){const e=o.split(" ");return-1!==(null==e?void 0:e.indexOf(n))}return"|="===t&&(o===n||o.startsWith(n+"-"))}:()=>!1:t=>!(!t||!(null==t?void 0:t.attributes)&&!(null==t?void 0:t.props))&&!function(e){return null==e}(J(t,e))}toString(){return`[${this.attribute}${B(this.test)}${this.test&&this.value||""}]${B(this.combinator)}`}match(e){return!!e&&!e}mayMatch(){return!0}trackChanges(e,t){t.addAttribute(e,this.attribute)}}class Z extends H{constructor(e){super(),this.specificity=0,this.rarity=4,this.dynamic=!1,this.combinator=void 0,this.error=e}toString(){return``}match(){return!1}lookupSort(){return null}removeSort(){return null}}class Q{constructor(e){this.selectors=e,this.dynamic=e.some(e=>e.dynamic)}match(e){if(!e)return!1;return this.selectors.every((t,n)=>(0!==n&&(e=e.parentNode),!!e&&t.match(e)))?e:null}mayMatch(e){if(!e)return!1;return this.selectors.every((t,n)=>(0!==n&&(e=e.parentNode),!!e&&t.mayMatch(e)))?e:null}trackChanges(e,t){this.selectors.forEach((n,r)=>{0!==r&&(e=e.parentNode),e&&n.trackChanges(e,t)})}}class ee{constructor(e){this.selectors=e,this.dynamic=e.some(e=>e.dynamic)}match(e){if(!e)return!1;return this.selectors.every((t,n)=>(0!==n&&(e=e.nextSibling),!!e&&t.match(e)))?e:null}mayMatch(e){if(!e)return!1;return this.selectors.every((t,n)=>(0!==n&&(e=e.nextSibling),!!e&&t.mayMatch(e)))?e:null}trackChanges(e,t){this.selectors.forEach((n,r)=>{0!==r&&(e=e.nextSibling),e&&n.trackChanges(e,t)})}}class te extends U{constructor(e){super();const t=[void 0," ",">","+","~"];let n=[],r=[];const o=[],i=[...e],s=i.length-1;this.specificity=0,this.dynamic=!1;for(let e=s;e>=0;e--){const s=i[e];if(-1===t.indexOf(s.combinator))throw console.error(`Unsupported combinator "${s.combinator}".`),new Error(`Unsupported combinator "${s.combinator}".`);void 0!==s.combinator&&" "!==s.combinator||o.push(r=[n=[]]),">"===s.combinator&&r.push(n=[]),this.specificity+=s.specificity,s.dynamic&&(this.dynamic=!0),n.push(s)}this.groups=o.map(e=>new Q(e.map(e=>new ee(e)))),this.last=i[s]}toString(){return this.selectors.join("")}match(e,t){return!!e&&this.groups.every((n,r)=>{if(0===r)return!!(e=n.match(e));let o=$(e,t);for(;o;){if(e=n.match(o))return!0;o=$(o,t)}return!1})}lookupSort(e){this.last.lookupSort(e,this)}removeSort(e){this.last.removeSort(e,this)}accumulateChanges(e,t,n){if(!this.dynamic)return this.match(e,n);const r=[],o=this.groups.every((t,o)=>{if(0===o){const n=t.mayMatch(e);return r.push({left:e,right:e}),!!(e=n)}let i=$(e,n);for(;i;){const o=t.mayMatch(i);if(o)return r.push({left:i,right:null}),e=o,!0;i=$(i,n)}return!1});if(!o)return!1;if(!t)return o;for(let e=0;e(e.ruleSet=this,null)),this.selectors=e,this.declarations=t,this.hash=n}toString(){return`${this.selectors.join(", ")} {${this.declarations.map((e,t)=>`${0===t?" ":""}${e.property}: ${e.value}`).join("; ")}}`}lookupSort(e){this.selectors.forEach(t=>t.lookupSort(e))}removeSort(e){this.selectors.forEach(t=>t.removeSort(e))}}const re=(()=>{try{return!!new RegExp("foo","y")}catch(e){return!1}})(),oe={whiteSpaceRegEx:"\\s*",universalSelectorRegEx:"\\*",simpleIdentifierSelectorRegEx:"(#|\\.|:|\\b)([_-\\w][_-\\w\\d]*)",attributeSelectorRegEx:"\\[\\s*([_-\\w][_-\\w\\d]*)\\s*(?:(=|\\^=|\\$=|\\*=|\\~=|\\|=)\\s*(?:([_-\\w][_-\\w\\d]*)|\"((?:[^\\\\\"]|\\\\(?:\"|n|r|f|\\\\|0-9a-f))*)\"|'((?:[^\\\\']|\\\\(?:'|n|r|f|\\\\|0-9a-f))*)')\\s*)?\\]",combinatorRegEx:"\\s*(\\+|~|>)?\\s*"},ie={};function se(e,t,n){let r="";re&&(r="gy"),ie[e]||(ie[e]=new RegExp(oe[e],r));const o=ie[e];let i;if(re)o.lastIndex=n,i=o.exec(t);else{if(t=t.slice(n,t.length),i=o.exec(t),!i)return{result:null,regexp:o};o.lastIndex=n+i[0].length}return{result:i,regexp:o}}function ce(e,t){var n,r;return null!==(r=null!==(n=function(e,t){const{result:n,regexp:r}=se("universalSelectorRegEx",e,t);return n?{value:{type:"*"},start:t,end:r.lastIndex}:null}(e,t))&&void 0!==n?n:function(e,t){const{result:n,regexp:r}=se("simpleIdentifierSelectorRegEx",e,t);if(!n)return null;const o=r.lastIndex;return{value:{type:n[1],identifier:n[2]},start:t,end:o}}(e,t))&&void 0!==r?r:function(e,t){const{result:n,regexp:r}=se("attributeSelectorRegEx",e,t);if(!n)return null;const o=r.lastIndex,i=n[1];if(n[2]){return{value:{type:"[]",property:i,test:n[2],value:n[3]||n[4]||n[5]},start:t,end:o}}return{value:{type:"[]",property:i},start:t,end:o}}(e,t)}function ae(e,t){let n=ce(e,t);if(!n)return null;let{end:r}=n;const o=[];for(;n;)o.push(n.value),({end:r}=n),n=ce(e,r);return{start:t,end:r,value:o}}function le(e,t){const{result:n,regexp:r}=se("combinatorRegEx",e,t);if(!n)return null;let o;o=re?r.lastIndex:t;return{start:t,end:o,value:n[1]||" "}}const ue=e=>e;function de(e){return"declaration"===e.type}function fe(e){return t=>e(t)}function pe(e){switch(e.type){case"*":return new W;case"#":return new z(e.identifier);case"":return new K(e.identifier.replace(/-/,"").toLowerCase());case".":return new G(e.identifier);case":":return new q(e.identifier);case"[]":return e.test?new X(e.property,e.test,e.value):new X(e.property);default:return new Z(new Error("Unknown selector."))}}function he(e){return 0===e.length?new Z(new Error("Empty simple selector sequence.")):1===e.length?pe(e[0]):new Y(e.map(pe))}function me(e){try{const t=function(e,t){let n=t;const{result:r,regexp:o}=se("whiteSpaceRegEx",e,t);r&&(n=o.lastIndex);const i=[];let s,c,a=!0,l=[void 0,void 0];return c=re?[e]:e.split(" "),c.forEach(e=>{if(!re){if(""===e)return;n=0}do{const t=ae(e,n);if(!t){if(a)return;break}({end:n}=t),s&&(l[1]=s.value),l=[t.value,void 0],i.push(l),s=le(e,n),s&&({end:n}=s),a=!(!s||" "===s.value)}while(s)}),{start:t,end:n,value:i}}(e,0);return t?function(e){if(0===e.length)return new Z(new Error("Empty selector."));if(1===e.length)return he(e[0][0]);const t=[];for(const n of e){const e=he(n[0]),r=n[1];r&&e&&(e.combinator=r),t.push(e)}return new te(t)}(t.value):new Z(new Error("Empty selector"))}catch(e){return new Z(e)}}let ve;function ge(e){var t;return!e||!(null===(t=null==e?void 0:e.ruleSets)||void 0===t?void 0:t.length)}function ye(t,n){if(t){if(!ge(ve))return ve;const e=function(e=[],t){return e.map(e=>{let n=e[0],r=e[1];return r=r.map(e=>{const[t,n]=e;return{type:"declaration",property:t,value:n}}).map(fe(null!=t?t:ue)),n=n.map(me),new ne(n,r,"")})}(t,n);return ve=new V(e),ve}const r=e[be];if(ge(ve)||r){const t=function(e=[],t){return e.map(e=>{if(!Array.isArray(e))return e;const[t,n,r]=e;return{hash:t,selectors:n,declarations:r.map(([e,t])=>({type:"declaration",property:e,value:t}))}}).map(e=>{const n=e.declarations.filter(de).map(fe(null!=t?t:ue)),r=e.selectors.map(me);return new ne(r,n,e.hash)})}(r);ve?ve.append(t):ve=new V(t),e[be]=void 0}return e[Oe]&&(e[Oe].forEach(e=>{ve.delete(e)}),e[Oe]=void 0),ve}const be="__HIPPY_VUE_STYLES__",Oe="__HIPPY_VUE_DISPOSE_STYLES__";let _e=Object.create(null);const Ee={$on:(e,t,n)=>(Array.isArray(e)?e.forEach(e=>{Ee.$on(e,t,n)}):(_e[e]||(_e[e]=[]),_e[e].push({fn:t,ctx:n})),Ee),$once(e,t,n){function r(...o){Ee.$off(e,r),t.apply(n,o)}return r._=t,Ee.$on(e,r),Ee},$emit(e,...t){const n=(_e[e]||[]).slice(),r=n.length;for(let e=0;e{Ee.$off(e,t)}),Ee;const n=_e[e];if(!n)return Ee;if(!t)return _e[e]=null,Ee;let r;const o=n.length;for(let e=0;ee;function Pe(){return ke}let Re=(e,t)=>{};function Me(e,t){const n=new Map;return Array.isArray(e)?e.forEach(([e,t])=>{n.set(e,t),n.set(t,e)}):(n.set(e,t),n.set(t,e)),n}function Le(e){let t=e;return/^assets/.test(t)&&(t="hpfile://./"+t),t}function Fe(e){return"on"+h.capitalize(e)}function De(e){const t={};return e.forEach(e=>{if(Array.isArray(e)){const n=Fe(e[0]),r=Fe(e[1]);Object.prototype.hasOwnProperty.call(this.$attrs,n)&&(this.$attrs[r]||(t[r]=this.$attrs[n]))}}),t}function Ve(e,t){return!(!t||!e)&&e.match(t)}function Be(e){return e.split(" ").filter(e=>e.trim())}var $e;const Ue=["%c[native]%c","color: red","color: auto"],He={},{bridge:{callNative:Ye,callNativeWithPromise:We,callNativeWithCallbackId:ze},device:{platform:{OS:Ke,Localization:Ge={}},screen:{scale:qe}},device:Je,document:Xe,register:Ze,asyncStorage:Qe}=null!==($e=e.Hippy)&&void 0!==$e?$e:{device:{platform:{Localization:{}},window:{},screen:{}},bridge:{},register:{},document:{},asyncStorage:{}},et=async(e,t)=>{const n={top:-1,left:-1,bottom:-1,right:-1,width:-1,height:-1};if(!e.isMounted||!e.nodeId)return Promise.resolve(n);const{nodeId:r}=e;return xe(...Ue,"callUIFunction",{nodeId:r,funcName:t,params:[]}),new Promise(e=>Xe.callUIFunction(r,t,[],t=>{if(!t||"object"!=typeof t||void 0===r)return e(n);const{x:o,y:i,height:s,width:c}=t;return e({top:i,left:o,width:c,height:s,bottom:i+s,right:o+c})}))},tt=new Map,nt={Localization:Ge,hippyNativeDocument:Xe,hippyNativeRegister:Ze,Platform:Ke,PixelRatio:qe,ConsoleModule:e.ConsoleModule||e.console,callNative:Ye,callNativeWithPromise:We,callNativeWithCallbackId:ze,AsyncStorage:Qe,callUIFunction(...e){const[t,n,...r]=e;if(!(null==t?void 0:t.nodeId))return;const{nodeId:o}=t;let[i=[],s]=r;"function"==typeof i&&(s=i,i=[]),xe(...Ue,"callUIFunction",{nodeId:o,funcName:n,params:i}),Xe.callUIFunction(o,n,i,s)},Clipboard:{getString(){return nt.callNativeWithPromise.call(this,"ClipboardModule","getString")},setString(e){nt.callNative.call(this,"ClipboardModule","setString",e)}},Cookie:{getAll(e){if(!e)throw new TypeError("Native.Cookie.getAll() must have url argument");return nt.callNativeWithPromise.call(this,"network","getCookie",e)},set(e,t,n){if(!e)throw new TypeError("Native.Cookie.set() must have url argument");let r="";n&&(r=n.toUTCString()),nt.callNative.call(this,"network","setCookie",e,t,r)}},ImageLoader:{getSize(e){return nt.callNativeWithPromise.call(this,"ImageLoaderModule","getSize",e)},prefetch(e){nt.callNative.call(this,"ImageLoaderModule","prefetch",e)}},get Dimensions(){const{screen:e}=Je,{statusBarHeight:t}=e;return{window:Je.window,screen:l(l({},e),{},{statusBarHeight:t})}},get Device(){var t;return void 0===He.Device&&(nt.isIOS()?(null===(t=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.Device)?He.Device=e.__HIPPYNATIVEGLOBAL__.Device:He.Device="iPhone":nt.isAndroid()?He.Device="Android device":He.Device="Unknown device"),He.Device},get screenIsVertical(){return nt.Dimensions.window.width"android"===nt.Platform,isIOS:()=>"ios"===nt.Platform,measureInWindow:e=>et(e,"measureInWindow"),measureInAppWindow:e=>nt.isAndroid()?et(e,"measureInWindow"):et(e,"measureInAppWindow"),getBoundingClientRect(e,t){const{nodeId:n}=e;return new Promise((r,o)=>{if(!e.isMounted||!n)return o(new Error(`getBoundingClientRect cannot get nodeId of ${e} or ${e} is not mounted`));xe(...Ue,"UIManagerModule",{nodeId:n,funcName:"getBoundingClientRect",params:t}),Xe.callUIFunction(n,"getBoundingClientRect",[t],e=>{if(!e||e.errMsg)return o(new Error((null==e?void 0:e.errMsg)||"getBoundingClientRect error with no response"));const{x:t,y:n,width:i,height:s}=e;let c=void 0,a=void 0;return"number"==typeof n&&"number"==typeof s&&(c=n+s),"number"==typeof t&&"number"==typeof i&&(a=t+i),r({x:t,y:n,width:i,height:s,bottom:c,right:a,left:t,top:n})})})},NetInfo:{fetch:()=>nt.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(({network_info:e})=>e),addEventListener(e,t){let n=e;return"change"===n&&(n="networkStatusDidChange"),0===tt.size&&nt.callNative("NetInfo","addListener",n),Ee.$on(n,t),tt.set(t,t),{eventName:e,listener:t,remove(){this.eventName&&this.listener&&(nt.NetInfo.removeEventListener(this.eventName,this.listener),this.listener=void 0)}}},removeEventListener(e,t){if(null==t?void 0:t.remove)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange"),tt.size<=1&&nt.callNative("NetInfo","removeListener",n);const r=tt.get(t);r&&(Ee.$off(n,r),tt.delete(t),tt.size<1&&nt.callNative("NetInfo","removeListener",n))}},get isIPhoneX(){if(void 0===He.isIPhoneX){let e=!1;nt.isIOS()&&(e=20!==nt.Dimensions.screen.statusBarHeight),He.isIPhoneX=e}return He.isIPhoneX},get OnePixel(){if(void 0===He.OnePixel){const e=nt.PixelRatio;let t=Math.round(.4*e)/e;t||(t=1/e),He.OnePixel=t}return He.OnePixel},get APILevel(){var t,n;return nt.isAndroid()&&(null===(n=null===(t=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.Platform)||void 0===n?void 0:n.APILevel)?e.__HIPPYNATIVEGLOBAL__.Platform.APILevel:(je(),null)},get OSVersion(){var t;return nt.isIOS()&&(null===(t=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.OSVersion)?e.__HIPPYNATIVEGLOBAL__.OSVersion:null},get SDKVersion(){var t,n;return nt.isIOS()&&(null===(t=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.OSVersion)?null===(n=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===n?void 0:n.SDKVersion:null},parseColor(e){var t;if(Number.isInteger(e))return e;const n=null!==(t=He.COLOR_PARSER)&&void 0!==t?t:He.COLOR_PARSER=Object.create(null);return n[e]||(n[e]=T(e)),n[e]},getElemCss(e){const t=Object.create(null);try{ye(void 0,Pe()).query(e).selectors.forEach(n=>{Ve(n,e)&&n.ruleSet.declarations.forEach(e=>{t[e.property]=e.value})})}catch(e){je()}return t},version:"unspecified"},rt=new Set;let ot=!1;const it={exitApp(){nt.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(ot||(ot=!0,it.initEventListener()),nt.callNative("DeviceEventModule","setListenBackPress",!0),rt.add(e),{remove(){it.removeListener(e)}}),removeListener(e){rt.delete(e),0===rt.size&&nt.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){Ee.$on("hardwareBackPress",()=>{let e=!0;Array.from(rt).reverse().forEach(t=>{"function"==typeof t&&t()&&(e=!1)}),e&&it.exitApp()})}},st={exitApp(){},addListener:()=>({remove(){}}),removeListener(){},initEventListener(){}},ct=nt.isAndroid()?it:st,at=new Map;function lt(e,t){if(!e)throw new Error("tagName can not be empty");const n=Ae(e);at.has(n)||at.set(n,t.component)}function ut(e){const t=Ae(e),n=h.camelize(e).toLowerCase();return at.get(t)||at.get(n)}const dt=new Map,ft={number:"numeric",text:"default",search:"web-search"},pt={role:"accessibilityRole","aria-label":"accessibilityLabel","aria-disabled":{jointKey:"accessibilityState",name:"disabled"},"aria-selected":{jointKey:"accessibilityState",name:"selected"},"aria-checked":{jointKey:"accessibilityState",name:"checked"},"aria-busy":{jointKey:"accessibilityState",name:"busy"},"aria-expanded":{jointKey:"accessibilityState",name:"expanded"},"aria-valuemin":{jointKey:"accessibilityValue",name:"min"},"aria-valuemax":{jointKey:"accessibilityValue",name:"max"},"aria-valuenow":{jointKey:"accessibilityValue",name:"now"},"aria-valuetext":{jointKey:"accessibilityValue",name:"text"}},ht={component:{name:we.View,eventNamesMap:Me([["touchStart","onTouchDown"],["touchstart","onTouchDown"],["touchmove","onTouchMove"],["touchend","onTouchEnd"],["touchcancel","onTouchCancel"]]),attributeMaps:l({},pt),processEventData(e,t){var n,r;const{handler:o,__evt:i}=e;switch(i){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":o.offsetX=null===(n=t.contentOffset)||void 0===n?void 0:n.x,o.offsetY=null===(r=t.contentOffset)||void 0===r?void 0:r.y,(null==t?void 0:t.contentSize)&&(o.scrollHeight=t.contentSize.height,o.scrollWidth=t.contentSize.width);break;case"onTouchDown":case"onTouchMove":case"onTouchEnd":case"onTouchCancel":o.touches={0:{clientX:t.page_x,clientY:t.page_y},length:1};break;case"onFocus":o.isFocused=t.focus}return o}}},mt={component:{name:we.View,attributeMaps:ht.component.attributeMaps,eventNamesMap:ht.component.eventNamesMap,processEventData:ht.component.processEventData}},vt={component:{name:we.View}},gt={component:{name:we.Image,eventNamesMap:ht.component.eventNamesMap,processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onTouchDown":case"onTouchMove":case"onTouchEnd":case"onTouchCancel":n.touches={0:{clientX:t.page_x,clientY:t.page_y},length:1};break;case"onFocus":n.isFocused=t.focus;break;case"onLoad":{const{width:e,height:r,url:o}=t;n.width=e,n.height=r,n.url=o;break}}return n},defaultNativeStyle:{backgroundColor:0},attributeMaps:l({placeholder:{name:"defaultSource",propsValue(e){const t=Le(e);return(null==t?void 0:t.indexOf(Se))<0&&["https://","http://"].some(e=>0===t.indexOf(e))&&je(),t}},src:e=>Le(e)},pt)}},yt={component:{name:we.ListView,defaultNativeStyle:{flex:1},attributeMaps:l({},pt),eventNamesMap:Me("listReady","initialListReady"),processEventData(e,t){var n,r;const{handler:o,__evt:i}=e;switch(i){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":o.offsetX=null===(n=t.contentOffset)||void 0===n?void 0:n.x,o.offsetY=null===(r=t.contentOffset)||void 0===r?void 0:r.y;break;case"onDelete":o.index=t.index}return o}}},bt={component:{name:we.ListViewItem,attributeMaps:l({},pt),eventNamesMap:Me([["disappear","onDisappear"]])}},Ot={component:{name:we.Text,attributeMaps:ht.component.attributeMaps,eventNamesMap:ht.component.eventNamesMap,processEventData:ht.component.processEventData,defaultNativeProps:{text:""},defaultNativeStyle:{color:4278190080}}},_t=Ot,Et=Ot,St={component:l(l({},Ot.component),{},{defaultNativeStyle:{color:4278190318},attributeMaps:{href:{name:"href",propsValue:e=>["//","http://","https://"].filter(t=>0===e.indexOf(t)).length?(je(),""):e}}})},wt={component:{name:we.TextInput,attributeMaps:l({type:{name:"keyboardType",propsValue(e){const t=ft[e];return t||e}},disabled:{name:"editable",propsValue:e=>!e},value:"defaultValue",maxlength:"maxLength"},pt),nativeProps:{numberOfLines:1,multiline:!1},defaultNativeProps:{underlineColorAndroid:0},defaultNativeStyle:{padding:0,color:4278190080},eventNamesMap:Me([["change","onChangeText"],["select","onSelectionChange"]]),processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onChangeText":case"onEndEditing":n.value=t.text;break;case"onSelectionChange":n.start=t.selection.start,n.end=t.selection.end;break;case"onKeyboardWillShow":n.keyboardHeight=t.keyboardHeight;break;case"onContentSizeChange":n.width=t.contentSize.width,n.height=t.contentSize.height}return n}}},Nt={component:{name:we.TextInput,defaultNativeProps:l(l({},wt.component.defaultNativeProps),{},{numberOfLines:5}),attributeMaps:l(l({},wt.component.attributeMaps),{},{rows:"numberOfLines"}),nativeProps:{multiline:!0},defaultNativeStyle:wt.component.defaultNativeStyle,eventNamesMap:wt.component.eventNamesMap,processEventData:wt.component.processEventData}},Tt={component:{name:we.WebView,defaultNativeProps:{method:"get",userAgent:""},attributeMaps:{src:{name:"source",propsValue:e=>({uri:e})}},processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onLoad":case"onLoadStart":n.url=t.url;break;case"onLoadEnd":n.url=t.url,n.success=t.success,n.error=t.error}return n}}};dt.set("div",ht),dt.set("button",mt),dt.set("form",vt),dt.set("img",gt),dt.set("ul",yt),dt.set("li",bt),dt.set("span",Ot),dt.set("label",_t),dt.set("p",Et),dt.set("a",St),dt.set("input",wt),dt.set("textarea",Nt),dt.set("iframe",Tt);var xt={install(){dt.forEach((e,t)=>{lt(t,e)})}};function jt(){const{Localization:e}=nt;return!!e&&1===e.direction}const At=0,Ct=1,It={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"},kt={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3};const Pt="addEventListener",Rt="removeEventListener";let Mt;function Lt(){return Mt}function Ft(e,t){Mt[e]=t}class Dt{constructor(e){this.target=null,this.currentTarget=null,this.originalTarget=null,this.bubbles=!0,this.cancelable=!0,this.eventPhase=0,this.isCanceled=!1,this.type=e,this.timeStamp=Date.now()}get canceled(){return this.isCanceled}stopPropagation(){this.bubbles=!1}preventDefault(){if(this.cancelable){if(this.isCanceled)return;this.isCanceled=!0}}}class Vt extends Dt{}function Bt(e){return"string"==typeof e.value}const $t=new Map;function Ut(e,t){$t.set(t,e)}function Ht(e){$t.delete(e)}function Yt(e){return $t.get(e)||null}function Wt(t){var n,r;n=e=>{(e.timeRemaining()>0||e.didTimeout)&&function e(t){var n;"number"==typeof t?Ht(t):t&&(Ht(t.nodeId),null===(n=t.childNodes)||void 0===n||n.forEach(t=>e(t)))}(t)},r={timeout:50},e.requestIdleCallback?e.requestIdleCallback(n,r):setTimeout(()=>{n({didTimeout:!1,timeRemaining:()=>1/0})},1)}function zt(e=[],t=0){let n=e[t];for(let r=t;r-1){let e;if("onLayout"===o){e=new Vt(i),Object.assign(e,{eventPhase:c,nativeParams:null!=s?s:{}});const{layout:{x:t,y:n,height:r,width:o}}=s;e.top=n,e.left=t,e.bottom=n+r,e.right=t+o,e.width=o,e.height=r}else{e=new Dt(i),Object.assign(e,{eventPhase:c,nativeParams:null!=s?s:{}});const{processEventData:t}=l.component;t&&t({__evt:o,handler:e},s)}a.dispatchEvent(function(e,t,n){return function(e){return["onTouchDown","onTouchMove","onTouchEnd","onTouchCancel"].indexOf(e)>=0}(e)&&Object.assign(t,{touches:{0:{clientX:n.page_x,clientY:n.page_y},length:1}}),t}(o,e,s),l,t)}}catch(e){console.error("receiveComponentEvent error",e)}else je(...Gt,"receiveComponentEvent","currentTargetNode or targetNode not exist")}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=qt);class Jt{constructor(){this.listeners={}}static indexOfListener(e,t,n){return e.findIndex(e=>n?e.callback===t&&h.looseEqual(e.options,n):e.callback===t)}addEventListener(e,t,n){const r=e.split(","),o=r.length;for(let e=0;e=0&&e.splice(r,1),e.length||(this.listeners[o]=void 0)}}}else this.listeners[o]=void 0}}emitEvent(e){var t,n;const{type:r}=e,o=this.listeners[r];if(o)for(let r=o.length-1;r>=0;r-=1){const i=o[r];(null===(t=i.options)||void 0===t?void 0:t.once)&&o.splice(r,1),(null===(n=i.options)||void 0===n?void 0:n.thisArg)?i.callback.apply(i.options.thisArg,[e]):i.callback(e)}}getEventListenerList(){return this.listeners}}var Xt;!function(e){e[e.CREATE=0]="CREATE",e[e.UPDATE=1]="UPDATE",e[e.DELETE=2]="DELETE",e[e.MOVE=3]="MOVE",e[e.UPDATE_EVENT=4]="UPDATE_EVENT"}(Xt||(Xt={}));let Zt=!1,Qt=[];function en(e=[],t){e.forEach(e=>{if(e){const{id:n,eventList:r}=e;r.forEach(e=>{const{name:r,type:o,listener:i}=e;let s;s=function(e){return!!It[e]}(r)?It[r]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(r),o===Ct&&t.removeEventListener(n,s,i),o===At&&(t.removeEventListener(n,s,i),t.addEventListener(n,s,i))})}})}function tn(e,t){0}function nn(){Zt||(Zt=!0,0!==Qt.length?m.nextTick().then(()=>{const t=function(e){const t=[];for(const n of e){const{type:e,nodes:r,eventNodes:o,printedNodes:i}=n,s=t[t.length-1];s&&s.type===e?(s.nodes=s.nodes.concat(r),s.eventNodes=s.eventNodes.concat(o),s.printedNodes=s.printedNodes.concat(i)):t.push({type:e,nodes:r,eventNodes:o,printedNodes:i})}return t}(Qt),{rootViewId:n}=Lt(),r=new e.Hippy.SceneBuilder(n);t.forEach(e=>{switch(e.type){case Xt.CREATE:tn(e.printedNodes),r.create(e.nodes,!0),en(e.eventNodes,r);break;case Xt.UPDATE:tn(e.printedNodes),r.update(e.nodes),en(e.eventNodes,r);break;case Xt.DELETE:tn(e.printedNodes),r.delete(e.nodes);break;case Xt.MOVE:tn(e.printedNodes),r.move(e.nodes);break;case Xt.UPDATE_EVENT:en(e.eventNodes,r)}}),r.build(),Zt=!1,Qt=[]}):Zt=!1)}var rn;function on(e){let t;const n=e.events;if(n){const r=[];Object.keys(n).forEach(e=>{const{name:t,type:o,isCapture:i,listener:s}=n[e];r.push({name:t,type:o,isCapture:i,listener:s})}),t={id:e.nodeId,eventList:r}}return t}!function(e){e[e.ElementNode=1]="ElementNode",e[e.TextNode=3]="TextNode",e[e.CommentNode=8]="CommentNode",e[e.DocumentNode=4]="DocumentNode"}(rn||(rn={}));class sn extends Jt{constructor(e,t){var n;super(),this.isMounted=!1,this.events={},this.childNodes=[],this.parentNode=null,this.prevSibling=null,this.nextSibling=null,this.tagComponent=null,this.nodeId=null!==(n=null==t?void 0:t.id)&&void 0!==n?n:sn.getUniqueNodeId(),this.nodeType=e,this.isNeedInsertToNative=function(e){return e===rn.ElementNode}(e),(null==t?void 0:t.id)&&(this.isMounted=!0)}static getUniqueNodeId(){return e.hippyUniqueId||(e.hippyUniqueId=0),e.hippyUniqueId+=1,e.hippyUniqueId%10==0&&(e.hippyUniqueId+=1),e.hippyUniqueId}get firstChild(){return this.childNodes.length?this.childNodes[0]:null}get lastChild(){const e=this.childNodes.length;return e?this.childNodes[e-1]:null}get component(){return this.tagComponent}get index(){let e=0;if(this.parentNode){e=this.parentNode.childNodes.filter(e=>e.isNeedInsertToNative).indexOf(this)}return e}isRootNode(){return 1===this.nodeId}hasChildNodes(){return!!this.childNodes.length}insertBefore(e,t){const n=e,r=t;if(!n)throw new Error("No child to insert");if(!r)return void this.appendChild(n);if(n.parentNode&&n.parentNode!==this)throw new Error("Can not insert child, because the child node is already has a different parent");let o=this;r.parentNode!==this&&(o=r.parentNode);const i=o.childNodes.indexOf(r);let s=r;r.isNeedInsertToNative||(s=zt(this.childNodes,i)),n.parentNode=o,n.nextSibling=r,n.prevSibling=o.childNodes[i-1],o.childNodes[i-1]&&(o.childNodes[i-1].nextSibling=n),r.prevSibling=n,o.childNodes.splice(i,0,n),s.isNeedInsertToNative?this.insertChildNativeNode(n,{refId:s.nodeId,relativeToRef:Kt}):this.insertChildNativeNode(n)}moveChild(e,t){const n=e,r=t;if(!n)throw new Error("No child to move");if(!r)return void this.appendChild(n);if(r.parentNode&&r.parentNode!==this)throw new Error("Can not move child, because the anchor node is already has a different parent");if(n.parentNode&&n.parentNode!==this)throw new Error("Can't move child, because it already has a different parent");const o=this.childNodes.indexOf(n),i=this.childNodes.indexOf(r);let s=r;if(r.isNeedInsertToNative||(s=zt(this.childNodes,i)),i===o)return;n.nextSibling=r,n.prevSibling=r.prevSibling,r.prevSibling=n,this.childNodes[i-1]&&(this.childNodes[i-1].nextSibling=n),this.childNodes[i+1]&&(this.childNodes[i+1].prevSibling=n),this.childNodes[o-1]&&(this.childNodes[o-1].nextSibling=this.childNodes[o+1]),this.childNodes[o+1]&&(this.childNodes[o+1].prevSibling=this.childNodes[o-1]),this.childNodes.splice(o,1);const c=this.childNodes.indexOf(r);this.childNodes.splice(c,0,n),s.isNeedInsertToNative?this.moveChildNativeNode(n,{refId:s.nodeId,relativeToRef:Kt}):this.insertChildNativeNode(n)}appendChild(e,t=!1){const n=e;if(!n)throw new Error("No child to append");this.lastChild!==n&&(n.parentNode&&n.parentNode!==this?n.parentNode.removeChild(n):(n.isMounted&&!t&&this.removeChild(n),n.parentNode=this,this.lastChild&&(n.prevSibling=this.lastChild,this.lastChild.nextSibling=n),this.childNodes.push(n),t?Ut(n,n.nodeId):this.insertChildNativeNode(n)))}removeChild(e){const t=e;if(!t)throw new Error("Can't remove child.");if(!t.parentNode)throw new Error("Can't remove child, because it has no parent.");if(t.parentNode!==this)return void t.parentNode.removeChild(t);if(!t.isNeedInsertToNative)return;t.prevSibling&&(t.prevSibling.nextSibling=t.nextSibling),t.nextSibling&&(t.nextSibling.prevSibling=t.prevSibling),t.prevSibling=null,t.nextSibling=null;const n=this.childNodes.indexOf(t);this.childNodes.splice(n,1),this.removeChildNativeNode(t)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(const t of this.childNodes){const n=this.findChild.call(t,e);if(n)return n}return null}eachNode(e){e&&e(this),this.childNodes.length&&this.childNodes.forEach(t=>{this.eachNode.call(t,e)})}insertChildNativeNode(e,t={}){if(!e||!e.isNeedInsertToNative)return;const n=this.isRootNode()&&!this.isMounted,r=this.isMounted&&!e.isMounted;if(n||r){const r=n?this:e;!function([e,t,n]){Qt.push({type:Xt.CREATE,nodes:e,eventNodes:t,printedNodes:n}),nn()}(r.convertToNativeNodes(!0,t)),r.eachNode(e=>{const t=e;!t.isMounted&&t.isNeedInsertToNative&&(t.isMounted=!0),Ut(t,t.nodeId)})}}moveChildNativeNode(e,t={}){if(!e||!e.isNeedInsertToNative)return;if(t&&t.refId===e.nodeId)return;!function([e,,t]){e&&(Qt.push({type:Xt.MOVE,nodes:e,eventNodes:[],printedNodes:t}),nn())}(e.convertToNativeNodes(!1,t))}removeChildNativeNode(e){if(!e||!e.isNeedInsertToNative)return;const t=e;t.isMounted&&(t.isMounted=!1,function([e,,t]){e&&(Qt.push({type:Xt.DELETE,nodes:e,eventNodes:[],printedNodes:t}),nn())}(t.convertToNativeNodes(!1,{})))}updateNativeNode(e=!1){if(!this.isMounted)return;!function([e,t,n]){e&&(Qt.push({type:Xt.UPDATE,nodes:e,eventNodes:t,printedNodes:n}),nn())}(this.convertToNativeNodes(e,{}))}updateNativeEvent(){if(!this.isMounted)return;!function(e){Qt.push({type:Xt.UPDATE_EVENT,nodes:[],eventNodes:[e],printedNodes:[]}),nn()}(on(this))}convertToNativeNodes(e,t={},n){var r,o;if(!this.isNeedInsertToNative)return[[],[],[]];if(e){const e=[],n=[],r=[];return this.eachNode(o=>{const[i,s,c]=o.convertToNativeNodes(!1,t);Array.isArray(i)&&i.length&&e.push(...i),Array.isArray(s)&&s.length&&n.push(...s),Array.isArray(c)&&c.length&&r.push(...c)}),[e,n,r]}if(!this.component)throw new Error("tagName is not supported yet");const{rootViewId:i}=Lt(),s=null!=n?n:{},c=l({id:this.nodeId,pId:null!==(o=null===(r=this.parentNode)||void 0===r?void 0:r.nodeId)&&void 0!==o?o:i},s),a=on(this);let u=void 0;return[[[c,t]],[a],[u]]}}class cn extends sn{constructor(e,t){super(rn.TextNode,t),this.text=e,this.data=e,this.isNeedInsertToNative=!1}setText(e){this.text=e,this.parentNode&&this.parentNode.nodeType===rn.ElementNode&&this.parentNode.setText(e)}}function an(e,t){if("string"!=typeof e)return;const n=e.split(",");for(let e=0,r=n.length;e{t[n]=function(e){let t=e;if("string"!=typeof t||!t.endsWith("rem"))return t;if(t=parseFloat(t),Number.isNaN(t))return e;const{ratioBaseWidth:n}=Lt(),{width:r}=nt.Dimensions.screen;return 100*t*(r/n)}(e[n])}):t=e,t}get component(){return this.tagComponent||(this.tagComponent=ut(this.tagName)),this.tagComponent}isRootNode(){const{rootContainer:e}=Lt();return super.isRootNode()||this.id===e}appendChild(e,t=!1){e instanceof cn&&this.setText(e.text,{notToNative:!0}),super.appendChild(e,t)}insertBefore(e,t){e instanceof cn&&this.setText(e.text,{notToNative:!0}),super.insertBefore(e,t)}moveChild(e,t){e instanceof cn&&this.setText(e.text,{notToNative:!0}),super.moveChild(e,t)}removeChild(e){e instanceof cn&&this.setText("",{notToNative:!0}),super.removeChild(e)}hasAttribute(e){return!!this.attributes[e]}getAttribute(e){return this.attributes[e]}removeAttribute(e){delete this.attributes[e]}setAttribute(e,t,n={}){let r=t,o=e;try{if("boolean"==typeof this.attributes[o]&&""===r&&(r=!0),void 0===o)return void(!n.notToNative&&this.updateNativeNode());switch(o){case"class":{const e=new Set(Be(r));if(function(e,t){if(e.size!==t.size)return!1;const n=e.values();let r=n.next().value;for(;r;){if(!t.has(r))return!1;r=n.next().value}return!0}(this.classList,e))return;return this.classList=e,void(!n.notToNative&&this.updateNativeNode(!0))}case"id":if(r===this.id)return;return this.id=r,void(!n.notToNative&&this.updateNativeNode(!0));case"text":case"value":case"defaultValue":case"placeholder":if("string"!=typeof r)try{r=r.toString()}catch(e){je(e.message)}n&&n.textUpdate||(r="string"!=typeof(i=r)?i:void 0===Te||Te?i.trim():i),r=r.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)));break;case"numberOfRows":if(!nt.isIOS())return;break;case"caretColor":case"caret-color":o="caret-color",r=nt.parseColor(r);break;case"break-strategy":o="breakStrategy";break;case"placeholderTextColor":case"placeholder-text-color":o="placeholderTextColor",r=nt.parseColor(r);break;case"underlineColorAndroid":case"underline-color-android":o="underlineColorAndroid",r=nt.parseColor(r);break;case"nativeBackgroundAndroid":{const e=r;void 0!==e.color&&(e.color=nt.parseColor(e.color)),o="nativeBackgroundAndroid",r=e;break}}if(this.attributes[o]===r)return;this.attributes[o]=r,"function"==typeof this.filterAttribute&&this.filterAttribute(this.attributes),!n.notToNative&&this.updateNativeNode()}catch(e){0}var i}setText(e,t={}){return this.setAttribute("text",e,{notToNative:!!t.notToNative})}removeStyle(e=!1){this.style={},e||this.updateNativeNode()}setStyles(e){e&&"object"==typeof e&&(Object.keys(e).forEach(t=>{const n=e[t];this.setStyle(t,n,!0)}),this.updateNativeNode())}setStyle(e,t,n=!1){if(void 0===t)return delete this.style[e],void(n||this.updateNativeNode());let{property:r,value:o}=this.beforeLoadStyle({property:e,value:t});switch(r){case"fontWeight":"string"!=typeof o&&(o=o.toString());break;case"backgroundImage":[r,o]=F(r,o);break;case"textShadowOffsetX":case"textShadowOffsetY":[r,o]=function(e,t=0,n){var r;const o=n;return o.textShadowOffset=null!==(r=o.textShadowOffset)&&void 0!==r?r:{},Object.assign(o.textShadowOffset,{[{textShadowOffsetX:"width",textShadowOffsetY:"height"}[e]]:t}),["textShadowOffset",o.textShadowOffset]}(r,o,this.style);break;case"textShadowOffset":{const{x:e=0,width:t=0,y:n=0,height:r=0}=null!=o?o:{};o={width:e||t,height:n||r};break}default:Object.prototype.hasOwnProperty.call(x,r)&&(r=x[r]),"string"==typeof o&&(o=o.trim(),o=r.toLowerCase().indexOf("color")>=0?nt.parseColor(o):o.endsWith("px")?parseFloat(o.slice(0,o.length-2)):function(e){if("number"==typeof e)return e;if(Ie.test(e))try{return parseFloat(e)}catch(e){}return e}(o))}null!=o&&this.style[r]!==o&&(this.style[r]=o,n||this.updateNativeNode())}scrollToPosition(e=0,t=0,n=1e3){if("number"!=typeof e||"number"!=typeof t)return;let r=n;!1===r&&(r=0),nt.callUIFunction(this,"scrollToWithOptions",[{x:e,y:t,duration:r}])}scrollTo(e,t,n){if("object"==typeof e&&e){const{left:t,top:n,behavior:r="auto",duration:o}=e;this.scrollToPosition(t,n,"none"===r?0:o)}else this.scrollToPosition(e,t,n)}setListenerHandledType(e,t){this.events[e]&&(this.events[e].handledType=t)}isListenerHandled(e,t){return!this.events[e]||t===this.events[e].handledType}getNativeEventName(e){let t="on"+Ce(e);if(this.component){const{eventNamesMap:n}=this.component;(null==n?void 0:n.get(e))&&(t=n.get(e))}return t}addEventListener(e,t,n){let r=e,o=t,i=n,s=!0;"scroll"!==r||this.getAttribute("scrollEventThrottle")>0||(this.attributes.scrollEventThrottle=200);const c=this.getNativeEventName(r);this.attributes[c]&&(s=!1),"function"==typeof this.polyfillNativeEvents&&({eventNames:r,callback:o,options:i}=this.polyfillNativeEvents(Pt,r,o,i)),super.addEventListener(r,o,i),an(r,e=>{const t=this.getNativeEventName(e);var n,r;this.events[t]?this.events[t]&&this.events[t].type!==At&&(this.events[t].type=At):this.events[t]={name:t,type:At,listener:(n=t,r=e,e=>{const{id:t,currentId:o,params:i,eventPhase:s}=e,c={id:t,nativeName:n,originalName:r,currentId:o,params:i,eventPhase:s};qt.receiveComponentEvent(c,e)}),isCapture:!1}}),s&&this.updateNativeEvent()}removeEventListener(e,t,n){let r=e,o=t,i=n;"function"==typeof this.polyfillNativeEvents&&({eventNames:r,callback:o,options:i}=this.polyfillNativeEvents(Rt,r,o,i)),super.removeEventListener(r,o,i),an(r,e=>{const t=this.getNativeEventName(e);this.events[t]&&(this.events[t].type=Ct)});const s=this.getNativeEventName(r);this.attributes[s]&&delete this.attributes[s],this.updateNativeEvent()}dispatchEvent(e,t,n){const r=e;r.currentTarget=this,r.target||(r.target=t||this,Bt(r)&&(r.target.value=r.value)),this.emitEvent(r),!r.bubbles&&n&&n.stopPropagation()}convertToNativeNodes(e,t={}){if(!this.isNeedInsertToNative)return[[],[],[]];if(e)return super.convertToNativeNodes(!0,t);let n=this.getNativeStyles();if(this.parentNode&&this.parentNode instanceof ln){const e=this.parentNode.processedStyle;["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"].forEach(t=>{!n[t]&&e[t]&&(n[t]=e[t])})}if(Re(this,n),this.component.defaultNativeStyle){const{defaultNativeStyle:e}=this.component,t={};Object.keys(e).forEach(n=>{this.getAttribute(n)||(t[n]=e[n])}),n=l(l({},t),n)}this.processedStyle=n;const r={name:this.component.name,props:l(l({},this.getNativeProps()),{},{style:n}),tagName:this.tagName};return function(e,t){const n=t;e.component.name===we.TextInput&&jt()&&(n.textAlign||(n.textAlign="right"))}(this,n),function(e,t,n){const r=t,o=n;e.component.name===we.View&&("scroll"===o.overflowX&&"scroll"===o.overflowY&&je(),"scroll"===o.overflowY?r.name="ScrollView":"scroll"===o.overflowX&&(r.name="ScrollView",r.props&&(r.props.horizontal=!0),o.flexDirection=jt()?"row-reverse":"row"),"ScrollView"===r.name&&(1!==e.childNodes.length&&je(),e.childNodes.length&&e.nodeType===rn.ElementNode&&e.childNodes[0].setStyle("collapsable",!1)),o.backgroundImage&&(o.backgroundImage=Le(o.backgroundImage)))}(this,r,n),super.convertToNativeNodes(!1,t,r)}repaintWithChildren(){this.updateNativeNode(!0)}setNativeProps(e){if(e){const{style:t}=e;this.setStyles(t)}}setPressed(e){nt.callUIFunction(this,"setPressed",[e])}setHotspot(e,t){nt.callUIFunction(this,"setHotspot",[e,t])}setStyleScope(e){const t="string"!=typeof e?e.toString():e;t&&!this.scopedIdList.includes(t)&&this.scopedIdList.push(t)}get styleScopeId(){return this.scopedIdList}getInlineStyle(){const e={};return Object.keys(this.style).forEach(t=>{const n=m.toRaw(this.style[t]);void 0!==n&&(e[t]=n)}),e}getNativeStyles(){let e={};return ye(void 0,Pe()).query(this).selectors.forEach(t=>{var n,r;Ve(t,this)&&(null===(r=null===(n=t.ruleSet)||void 0===n?void 0:n.declarations)||void 0===r?void 0:r.length)&&t.ruleSet.declarations.forEach(t=>{t.property&&(e[t.property]=t.value)})}),this.ssrInlineStyle&&(e=l(l({},e),this.ssrInlineStyle)),e=ln.parseRem(l(l({},e),this.getInlineStyle())),e}getNativeProps(){const e={},{defaultNativeProps:t}=this.component;t&&Object.keys(t).forEach(n=>{if(void 0===this.getAttribute(n)){const r=t[n];e[n]=h.isFunction(r)?r(this):m.toRaw(r)}}),Object.keys(this.attributes).forEach(t=>{var n;let r=m.toRaw(this.getAttribute(t));if(!this.component.attributeMaps||!this.component.attributeMaps[t])return void(e[t]=m.toRaw(r));const o=this.component.attributeMaps[t];if(h.isString(o))return void(e[o]=m.toRaw(r));if(h.isFunction(o))return void(e[t]=m.toRaw(o(r)));const{name:i,propsValue:s,jointKey:c}=o;h.isFunction(s)&&(r=s(r)),c?(e[c]=null!==(n=e[c])&&void 0!==n?n:{},Object.assign(e[c],{[i]:m.toRaw(r)})):e[i]=m.toRaw(r)});const{nativeProps:n}=this.component;return n&&Object.keys(n).forEach(t=>{e[t]=m.toRaw(n[t])}),e}getNodeAttributes(){var e;try{const t=function e(t,n=new WeakMap){if("object"!=typeof t||null===t)throw new TypeError("deepCopy data is object");if(n.has(t))return n.get(t);const r={};return Object.keys(t).forEach(o=>{const i=t[o];"object"!=typeof i||null===i?r[o]=i:Array.isArray(i)?r[o]=[...i]:i instanceof Set?r[o]=new Set([...i]):i instanceof Map?r[o]=new Map([...i]):(n.set(t,t),r[o]=e(i,n))}),r}(this.attributes),n=Array.from(null!==(e=this.classList)&&void 0!==e?e:[]).join(" "),r=l({id:this.id,hippyNodeId:""+this.nodeId,class:n},t);return delete r.text,delete r.value,Object.keys(r).forEach(e=>{"id"!==e&&"hippyNodeId"!==e&&"class"!==e&&delete r[e]}),r}catch(e){return{}}}getNativeEvents(){const e={},t=this.getEventListenerList(),n=Object.keys(t);if(n.length){const{eventNamesMap:r}=this.component;n.forEach(n=>{const o=null==r?void 0:r.get(n);if(o)e[o]=!!t[n];else{const r="on"+Ce(n);e[r]=!!t[n]}})}return e}hackSpecialIssue(){this.fixVShowDirectiveIssue()}fixVShowDirectiveIssue(){var e;let t=null!==(e=this.style.display)&&void 0!==e?e:void 0;Object.defineProperty(this.style,"display",{enumerable:!0,configurable:!0,get:()=>t,set:e=>{t=void 0===e?"flex":e,this.updateNativeNode()}})}}function un(t){const n={valueType:void 0,delay:0,startValue:0,toValue:0,duration:0,direction:"center",timingFunction:"linear",repeatCount:0,inputRange:[],outputRange:[]};function r(e,t){return"color"===e&&["number","string"].indexOf(typeof t)>=0?nt.parseColor(t):t}function a(e){return"loop"===e?-1:e}function u(t){const{mode:i="timing",valueType:s,startValue:u,toValue:d}=t,f=c(t,o),p=l(l({},n),f);void 0!==s&&(p.valueType=t.valueType),p.startValue=r(p.valueType,u),p.toValue=r(p.valueType,d),p.repeatCount=a(p.repeatCount),p.mode=i;const h=new e.Hippy.Animation(p),m=h.getId();return{animation:h,animationId:m}}function d(t,n={}){const r={};return Object.keys(t).forEach(o=>{if(Array.isArray(t[o])){const i=t[o],{repeatCount:s}=i[i.length-1],c=i.map(e=>{const{animationId:t,animation:r}=u(l(l({},e),{},{repeatCount:0}));return Object.assign(n,{[t]:r}),{animationId:t,follow:!0}}),{animationId:d,animation:f}=function(t,n=0){const r=new e.Hippy.AnimationSet({children:t,repeatCount:n}),o=r.getId();return{animation:r,animationId:o}}(c,a(s));r[o]={animationId:d},Object.assign(n,{[d]:f})}else{const e=t[o],{animationId:i,animation:s}=u(e);Object.assign(n,{[i]:s}),r[o]={animationId:i}}}),r}function f(e){const{transform:t}=e,n=c(e,i);let r=Object.keys(n).map(t=>e[t].animationId);if(Array.isArray(t)&&t.length>0){const e=[];t.forEach(t=>Object.keys(t).forEach(n=>{if(t[n]){const{animationId:r}=t[n];"number"==typeof r&&r%1==0&&e.push(r)}})),r=[...r,...e]}return r}t.component("Animation",{props:{tag:{type:String,default:"div"},playing:{type:Boolean,default:!1},actions:{type:Object,required:!0},props:Object},data:()=>({style:{},animationIds:[],animationIdsMap:{},animationEventMap:{}}),watch:{playing(e,t){!t&&e?this.start():t&&!e&&this.pause()},actions(){this.destroy(),this.create(),setTimeout(()=>{const e=this.$attrs[Fe("actionsDidUpdate")];"function"==typeof e&&e()})}},created(){this.animationEventMap={start:"animationstart",end:"animationend",repeat:"animationrepeat",cancel:"animationcancel"}},beforeMount(){this.create()},mounted(){const{playing:e}=this.$props;e&&setTimeout(()=>{this.start()},0)},beforeDestroy(){this.destroy()},deactivated(){this.pause()},activated(){this.resume()},methods:{create(){const e=this.$props,{actions:{transform:t}}=e,n=c(e.actions,s);this.animationIdsMap={};const r=d(n,this.animationIdsMap);if(t){const e=d(t,this.animationIdsMap);r.transform=Object.keys(e).map(t=>({[t]:e[t]}))}this.$alreadyStarted=!1,this.style=r},removeAnimationEvent(){this.animationIds.forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$attrs[Fe(e)])return;const n=this.animationEventMap[e];n&&"function"==typeof this[""+n]&&t.removeEventListener(n)})})},addAnimationEvent(){this.animationIds.forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$attrs[Fe(e)])return;const n=this.animationEventMap[e];n&&t.addEventListener(n,()=>{this.$emit(e)})})})},reset(){this.$alreadyStarted=!1},start(){this.$alreadyStarted?this.resume():(this.animationIds=f(this.style),this.$alreadyStarted=!0,this.removeAnimationEvent(),this.addAnimationEvent(),this.animationIds.forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);null==t||t.start()}))},resume(){f(this.style).forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);null==t||t.resume()})},pause(){if(!this.$alreadyStarted)return;f(this.style).forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);null==t||t.pause()})},destroy(){this.removeAnimationEvent(),this.$alreadyStarted=!1;f(this.style).forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);null==t||t.destroy()})}},render(){return m.h(this.tag,l({useAnimation:!0,style:this.style,tag:this.$props.tag},this.$props.props),this.$slots.default?this.$slots.default():null)}})}const dn=["dialog","hi-pull-header","hi-pull-footer","hi-swiper","hi-swiper-slider","hi-waterfall","hi-waterfall-item","hi-ul-refresh-wrapper","hi-refresh-wrapper-item"];var fn={install(e){un(e),lt("dialog",{component:{name:"Modal",defaultNativeProps:{transparent:!0,immersionStatusBar:!0,collapsable:!1,autoHideStatusBar:!1,autoHideNavigationBar:!1},defaultNativeStyle:{position:"absolute"}}}),function(e){const{callUIFunction:t}=nt;[["Header","header"],["Footer","footer"]].forEach(([n,r])=>{lt("hi-pull-"+r,{component:{name:`Pull${n}View`,processEventData(e,t){const{handler:r,__evt:o}=e;switch(o){case`on${n}Released`:case`on${n}Pulling`:Object.assign(r,t)}return r}}}),e.component("pull-"+r,{methods:{["expandPull"+n](){t(this.$refs.instance,"expandPull"+n)},["collapsePull"+n](e){"Header"===n&&void 0!==e?t(this.$refs.instance,`collapsePull${n}WithOptions`,[e]):t(this.$refs.instance,"collapsePull"+n)},onLayout(e){this.$contentHeight=e.height},[`on${n}Released`](e){this.$emit("released",e)},[`on${n}Pulling`](e){e.contentOffset>this.$contentHeight?"pulling"!==this.$lastEvent&&(this.$lastEvent="pulling",this.$emit("pulling",e)):"idle"!==this.$lastEvent&&(this.$lastEvent="idle",this.$emit("idle",e))}},render(){const{onReleased:e,onPulling:t,onIdle:o}=this.$attrs,i={onLayout:this.onLayout};return"function"==typeof e&&(i[`on${n}Released`]=this[`on${n}Released`]),"function"!=typeof t&&"function"!=typeof o||(i[`on${n}Pulling`]=this[`on${n}Pulling`]),m.h("hi-pull-"+r,l(l({},i),{},{ref:"instance"}),this.$slots.default?this.$slots.default():null)}})})}(e),function(e){lt("hi-ul-refresh-wrapper",{component:{name:"RefreshWrapper"}}),lt("hi-refresh-wrapper-item",{component:{name:"RefreshWrapperItemView"}}),e.component("UlRefreshWrapper",{props:{bounceTime:{type:Number,defaultValue:100}},methods:{startRefresh(){nt.callUIFunction(this.$refs.refreshWrapper,"startRefresh",null)},refreshCompleted(){nt.callUIFunction(this.$refs.refreshWrapper,"refreshComplected",null)}},render(){return m.h("hi-ul-refresh-wrapper",{ref:"refreshWrapper"},this.$slots.default?this.$slots.default():null)}}),e.component("UlRefresh",{render(){const e=m.h("div",null,this.$slots.default?this.$slots.default():null);return m.h("hi-refresh-wrapper-item",{style:{position:"absolute",left:0,right:0}},e)}})}(e),function(e){lt("hi-waterfall",{component:{name:"WaterfallView",processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onExposureReport":n.exposureInfo=t.exposureInfo;break;case"onScroll":{const{startEdgePos:e,endEdgePos:r,firstVisibleRowIndex:o,lastVisibleRowIndex:i,visibleRowFrames:s}=t;Object.assign(n,{startEdgePos:e,endEdgePos:r,firstVisibleRowIndex:o,lastVisibleRowIndex:i,visibleRowFrames:s});break}}return n}}}),lt("hi-waterfall-item",{component:{name:"WaterfallItem"}}),e.component("Waterfall",{props:{numberOfColumns:{type:Number,default:2},contentInset:{type:Object,default:()=>({top:0,left:0,bottom:0,right:0})},columnSpacing:{type:Number,default:0},interItemSpacing:{type:Number,default:0},preloadItemNumber:{type:Number,default:0},containBannerView:{type:Boolean,default:!1},containPullHeader:{type:Boolean,default:!1},containPullFooter:{type:Boolean,default:!1}},methods:{call(e,t){nt.callUIFunction(this.$refs.waterfall,e,t)},startRefresh(){this.call("startRefresh")},startRefreshWithType(e){this.call("startRefreshWithType",[e])},callExposureReport(){this.call("callExposureReport",[])},scrollToIndex({index:e=0,animated:t=!0}){this.call("scrollToIndex",[e,e,t])},scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){this.call("scrollToContentOffset",[e,t,n])},startLoadMore(){this.call("startLoadMore")}},render(){const e=De.call(this,["headerReleased","headerPulling","endReached","exposureReport","initialListReady","scroll"]);return m.h("hi-waterfall",l(l({},e),{},{ref:"waterfall",numberOfColumns:this.numberOfColumns,contentInset:this.contentInset,columnSpacing:this.columnSpacing,interItemSpacing:this.interItemSpacing,preloadItemNumber:this.preloadItemNumber,containBannerView:this.containBannerView,containPullHeader:this.containPullHeader,containPullFooter:this.containPullFooter}),this.$slots.default?this.$slots.default():null)}}),e.component("WaterfallItem",{props:{type:{type:[String,Number],default:""},fullSpan:{type:Boolean,default:!1}},render(){return m.h("hi-waterfall-item",{type:this.type,fullSpan:this.fullSpan},this.$slots.default?this.$slots.default():null)}})}(e),function(e){lt("hi-swiper",{component:{name:"ViewPager",processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onPageSelected":n.currentSlide=t.position;break;case"onPageScroll":n.nextSlide=t.position,n.offset=t.offset;break;case"onPageScrollStateChanged":n.state=t.pageScrollState}return n}}}),lt("hi-swiper-slide",{component:{name:"ViewPagerItem",defaultNativeStyle:{position:"absolute",top:0,right:0,bottom:0,left:0}}}),e.component("Swiper",{props:{current:{type:Number,defaultValue:0},needAnimation:{type:Boolean,defaultValue:!0}},data:()=>({$initialSlide:0}),watch:{current(e){this.$props.needAnimation?this.setSlide(e):this.setSlideWithoutAnimation(e)}},beforeMount(){this.$initialSlide=this.$props.current},methods:{setSlide(e){nt.callUIFunction(this.$refs.swiper,"setPage",[e])},setSlideWithoutAnimation(e){nt.callUIFunction(this.$refs.swiper,"setPageWithoutAnimation",[e])}},render(){const e=De.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]);return m.h("hi-swiper",l(l({},e),{},{ref:"swiper",initialPage:this.$data.$initialSlide}),this.$slots.default?this.$slots.default():null)}}),e.component("SwiperSlide",{render(){return m.h("hi-swiper-slide",{},this.$slots.default?this.$slots.default():null)}})}(e)}};class pn extends ln{constructor(e,t){super("comment",t),this.text=e,this.data=e,this.isNeedInsertToNative=!1}}class hn extends ln{setText(e,t={}){"textarea"===this.tagName?this.setAttribute("value",e,{notToNative:!!t.notToNative}):this.setAttribute("text",e,{notToNative:!!t.notToNative})}async getValue(){return new Promise(e=>nt.callUIFunction(this,"getValue",t=>e(t.text)))}setValue(e){nt.callUIFunction(this,"setValue",[e])}focus(){nt.callUIFunction(this,"focusTextInput",[])}blur(){nt.callUIFunction(this,"blurTextInput",[])}clear(){nt.callUIFunction(this,"clear",[])}async isFocused(){return new Promise(e=>nt.callUIFunction(this,"isFocused",t=>e(t.value)))}}class mn extends ln{scrollToIndex(e=0,t=0,n=!0){nt.callUIFunction(this,"scrollToIndex",[e,t,n])}scrollToPosition(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&nt.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}class vn extends sn{static createComment(e){return new pn(e)}static createElement(e){switch(e){case"input":case"textarea":return new hn(e);case"ul":return new mn(e);default:return new ln(e)}}static createTextNode(e){return new cn(e)}constructor(){super(rn.DocumentNode)}}const gn={insert:function(e,t,n=null){t.childNodes.indexOf(e)>=0?t.moveChild(e,n):t.insertBefore(e,n)},remove:function(e){const t=e.parentNode;t&&(t.removeChild(e),Wt(e))},setText:function(e,t){e.setText(t)},setElementText:function(e,t){e.setText(t)},createElement:function(e){return vn.createElement(e)},createComment:function(e){return vn.createComment(e)},createText:function(e){return vn.createTextNode(e)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},setScopeId:function(e,t){e.setStyleScope(t)}};const yn=/(?:Once|Passive|Capture)$/;function bn(e,t,n,r,o=null){var i;const s=e,c=null!==(i=s._vei)&&void 0!==i?i:s._vei={},a=c[t];if(r&&a)a.value=r;else{const[e,n]=function(e){let t=e;const n={};if(yn.test(t)){let e=t.match(yn);for(;e;)t=t.slice(0,t.length-e[0].length),n[e[0].toLowerCase()]=!0,e=t.match(yn)}return t=":"===t[2]?t.slice(3):t.slice(2),[(r=t,`${r.charAt(0).toLowerCase()}${r.slice(1)}`),n];var r}(t);if(r){c[t]=function(e,t){const n=e=>{m.callWithAsyncErrorHandling(n.value,t,m.ErrorCodes.NATIVE_EVENT_HANDLER,[e])};return n.value=e,n}(r,o);const i=c[t];s.addEventListener(e,i,n)}else s.removeEventListener(e,a,n),c[t]=void 0}}function On(e,t,n){const r=e,o={};if(!function(e,t,n){const r=!e,o=!t&&!n,i=JSON.stringify(t)===JSON.stringify(n);return r||o||i}(r,t,n))if(t&&!n)r.removeStyle();else{if(h.isString(n))throw new Error("Style is Not Object");n&&(Object.keys(n).forEach(e=>{const t=n[e];(function(e){return null==e})(t)||(o[m.camelize(e)]=t)}),r.removeStyle(!0),r.setStyles(o))}}function _n(e,t,n,r,o,i){switch(t){case"class":!function(e,t){let n=t;null===n&&(n=""),e.setAttribute("class",n)}(e,r);break;case"style":On(e,n,r);break;default:h.isOn(t)?bn(e,t,0,r,i):function(e,t,n,r){null===r?e.removeAttribute(t):n!==r&&e.setAttribute(t,r)}(e,t,n,r)}}let En=!1;function Sn(e,t){const n=function(e){var t;if("comment"===e.name)return new pn(e.props.text,e);if("Text"===e.name&&!e.tagName){const t=new cn(e.props.text,e);return t.nodeType=rn.TextNode,t.data=e.props.text,t}switch(e.tagName){case"input":case"textarea":return new hn(e.tagName,e);case"ul":return new mn(e.tagName,e);default:return new ln(null!==(t=e.tagName)&&void 0!==t?t:"",e)}}(e);let r=t.filter(t=>t.pId===e.id).sort((e,t)=>e.index-t.index);const o=r.filter(e=>"comment"===e.name);if(o.length){r=r.filter(e=>"comment"!==e.name);for(let e=o.length-1;e>=0;e--)r.splice(o[e].index,0,o[e])}return r.forEach(e=>{n.appendChild(Sn(e,t),!0)}),n}e.WebSocket=class{constructor(e,t,n){this.webSocketId=-1,this.protocol="",this.listeners={},this.url=e,this.readyState=0,this.webSocketCallbacks={},this.onWebSocketEvent=this.onWebSocketEvent.bind(this);const r=l({},n);if(En||(En=!0,Ee.$on("hippyWebsocketEvents",this.onWebSocketEvent)),!e)throw new TypeError("Invalid WebSocket url");Array.isArray(t)&&t.length>0?(this.protocol=t.join(","),r["Sec-WebSocket-Protocol"]=this.protocol):"string"==typeof t&&(this.protocol=t,r["Sec-WebSocket-Protocol"]=this.protocol);const o={headers:r,url:e};nt.callNativeWithPromise("websocket","connect",o).then(e=>{e&&0===e.code?this.webSocketId=e.id:je()})}close(e,t){1===this.readyState&&(this.readyState=2,nt.callNative("websocket","close",{id:this.webSocketId,code:e,reason:t}))}send(e){if(1===this.readyState){if("string"!=typeof e)throw new TypeError("Unsupported websocket data type: "+typeof e);nt.callNative("websocket","send",{id:this.webSocketId,data:e})}else je()}set onopen(e){this.addEventListener("open",e)}set onclose(e){this.addEventListener("close",e)}set onerror(e){this.addEventListener("error",e)}set onmessage(e){this.addEventListener("message",e)}onWebSocketEvent(e){if("object"!=typeof e||e.id!==this.webSocketId)return;const t=e.type;if("string"!=typeof t)return;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,Ee.$off("hippyWebsocketEvents",this.onWebSocketEvent));const n=this.webSocketCallbacks[t];(null==n?void 0:n.length)&&n.forEach(t=>{h.isFunction(t)&&t(e.data)})}addEventListener(e,t){if((e=>-1!==["open","close","message","error"].indexOf(e))(e)){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t);const n=Fe(e);this.webSocketCallbacks[n]=this.listeners[e]}}};const wn=['%c[Hippy-Vue-Next "unspecified"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"];function Nn(e,t){if(nt.isIOS()){const n=function(e){var t,n;const{iPhone:r}=e;let o;if((null==r?void 0:r.statusBar)&&(o=r.statusBar),null==o?void 0:o.disabled)return null;const i=new ln("div"),{statusBarHeight:s}=nt.Dimensions.screen;nt.screenIsVertical?i.setStyle("height",s):i.setStyle("height",0);let c=4282431619;if(Number.isInteger(c)&&({backgroundColor:c}=o),i.setStyle("backgroundColor",c),"string"==typeof o.backgroundImage){const r=new ln("img");r.setStyle("width",nt.Dimensions.screen.width),r.setStyle("height",s),r.setAttribute("src",null===(n=null===(t=e.iPhone)||void 0===t?void 0:t.statusBar)||void 0===n?void 0:n.backgroundImage),i.appendChild(r)}return i.addEventListener("layout",()=>{nt.screenIsVertical?i.setStyle("height",s):i.setStyle("height",0)}),i}(e);if(n){const e=t.$el.parentNode;e.childNodes.length?e.insertBefore(n,e.childNodes[0]):e.appendChild(n)}}}const Tn=(e,t)=>{var n,r;const o=e,i=Boolean(null===(n=null==t?void 0:t.ssrNodeList)||void 0===n?void 0:n.length);var s,c;o.use(xt),o.use(fn),"function"==typeof(null===(r=null==t?void 0:t.styleOptions)||void 0===r?void 0:r.beforeLoadStyle)&&(s=t.styleOptions.beforeLoadStyle,ke=s),t.silent&&(c=t.silent,Ne=c),function(e=!0){Te=e}(t.trimWhitespace);const{mount:a}=o;return o.mount=e=>{var n;Ft("rootContainer",e);const r=(null===(n=null==t?void 0:t.ssrNodeList)||void 0===n?void 0:n.length)?function(e){const[t]=e;return Sn(t,e)}(t.ssrNodeList):function(e){const t=vn.createElement("div");return t.id=e,t.style={display:"flex",flex:1},t}(e),o=a(r,i,!1);return Ft("instance",o),i||Nn(t,o),o},o.$start=async e=>new Promise(n=>{nt.hippyNativeRegister.regist(t.appName,r=>{var i,s;const{__instanceId__:c}=r;xe(...wn,"Start",t.appName,"with rootViewId",c,r);const a=Lt();var l;(null==a?void 0:a.app)&&a.app.unmount(),l={rootViewId:c,superProps:r,app:o,ratioBaseWidth:null!==(s=null===(i=null==t?void 0:t.styleOptions)||void 0===i?void 0:i.ratioBaseWidth)&&void 0!==s?s:750},Mt=l;const u={superProps:r,rootViewId:c};h.isFunction(e)?e(u):n(u)})}),o};t.BackAndroid=ct,t.ContentSizeEvent=class extends Dt{},t.EventBus=Ee,t.ExposureEvent=class extends Dt{},t.FocusEvent=class extends Dt{},t.HIPPY_DEBUG_ADDRESS=Se,t.HIPPY_GLOBAL_DISPOSE_STYLE_NAME="__HIPPY_VUE_DISPOSE_STYLES__",t.HIPPY_GLOBAL_STYLE_NAME="__HIPPY_VUE_STYLES__",t.HIPPY_STATIC_PROTOCOL="hpfile://",t.HIPPY_UNIQUE_ID_KEY="hippyUniqueId",t.HIPPY_VUE_VERSION="unspecified",t.HippyEvent=Dt,t.HippyKeyboardEvent=class extends Dt{},t.HippyLayoutEvent=Vt,t.HippyLoadResourceEvent=class extends Dt{},t.HippyTouchEvent=class extends Dt{},t.IS_PROD=!0,t.ListViewEvent=class extends Dt{},t.NATIVE_COMPONENT_MAP=we,t.Native=nt,t.ViewPagerEvent=class extends Dt{},t._setBeforeRenderToNative=(e,t)=>{h.isFunction(e)&&(1===t?Re=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))},t.createApp=(e,t)=>{const n=m.createRenderer(l({patchProp:_n},gn)).createApp(e);return Tn(n,t)},t.createHippyApp=Tn,t.createSSRApp=(e,t)=>{const n=m.createHydrationRenderer(l({patchProp:_n},gn)).createApp(e);return Tn(n,t)},t.eventIsKeyboardEvent=Bt,t.getCssMap=ye,t.getTagComponent=ut,t.isNativeTag=function(e){return dn.includes(e)},t.parseCSS=function(e,t={source:0}){let n=1,r=1;function o(e){const t=e.match(/\n/g);t&&(n+=t.length);const o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(t){const n=t.exec(e);if(!n)return null;const r=n[0];return o(r),e=e.slice(r.length),n}function s(){i(/^\s*/)}function c(){return o=>(o.position={start:{line:n,column:r},end:{line:n,column:r},source:t.source,content:e},s(),o)}const a=[];function u(o){const i=l(l({},new Error(`${t.source}:${n}:${r}: ${o}`)),{},{reason:o,filename:t.source,line:n,column:r,source:e});if(!t.silent)throw i;a.push(i)}function d(){const t=c();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return null;let n=2;for(;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)n+=1;if(n+=2,""===e.charAt(n-1))return u("End of comment missing");const i=e.slice(2,n-2);return r+=2,o(i),e=e.slice(n),r+=2,t({type:"comment",comment:i})}function f(e=[]){let t;const n=e||[];for(;t=d();)!1!==t&&n.push(t);return n}function p(){let t;const n=[];for(s(),f(n);e.length&&"}"!==e.charAt(0)&&(t=T()||O());)t&&(n.push(t),f(n));return n}function m(){return i(/^{\s*/)}function v(){return i(/^}/)}function g(){const e=i(/^([^{]+)/);return e?e[0].trim().replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,e=>e.replace(/,/g,"‌")).split(/\s*(?![^(]*\)),\s*/).map(e=>e.replace(/\u200C/g,",")):null}function y(){const e=c();let t=i(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+])?)\s*/);if(!t)return null;if(t=t[0].trim(),!i(/^:\s*/))return u("property missing ':'");const n=t.replace(k,""),r=h.camelize(n);let o=(()=>{const e=x[r];return e||r})();const s=i(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]{0,500}?\)|[^};])+)/);let a=s?s[0].trim().replace(k,""):"";switch(o){case"backgroundImage":[o,a]=F(o,a);break;case"transform":{const e=/((\w+)\s*\()/,t=/(?:\(['"]?)(.*?)(?:['"]?\))/,n=a;a=[],n.split(" ").forEach(n=>{if(e.test(n)){let r,o;const i=e.exec(n),s=t.exec(n);i&&([,,r]=i),s&&([,o]=s),0===o.indexOf(".")&&(o="0"+o),parseFloat(o).toString()===o&&(o=parseFloat(o));const c={};c[r]=o,a.push(c)}else u("missing '('")});break}case"fontWeight":break;case"shadowOffset":{const e=a.split(" ").filter(e=>e).map(e=>R(e)),[t]=e;let[,n]=e;n||(n=t),a={x:t,y:n};break}case"collapsable":a=Boolean(a);break;default:a=function(e){if("number"==typeof e)return e;if(P.test(e))try{return parseFloat(e)}catch(e){}return e}(a);["top","left","right","bottom","height","width","size","padding","margin","ratio","radius","offset","spread"].find(e=>o.toLowerCase().indexOf(e)>-1)&&(a=R(a))}const l=e({type:"declaration",value:a,property:o});return i(/^[;\s]*/),l}function b(){let e,t=[];if(!m())return u("missing '{'");for(f(t);e=y();)!1!==e&&(Array.isArray(e)?t=t.concat(e):t.push(e),f(t));return v()?t:u("missing '}'")}function O(){const e=c(),t=g();return t?(f(),e({type:"rule",selectors:t,declarations:b()})):u("selector missing")}function _(){let e;const t=[],n=c();for(;e=i(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),i(/^,\s*/);return t.length?n({type:"keyframe",values:t,declarations:b()}):null}function E(e){const t=new RegExp(`^@${e}\\s*([^;]+);`);return()=>{const n=c(),r=i(t);if(!r)return null;const o={type:e};return o[e]=r[1].trim(),n(o)}}const S=E("import"),w=E("charset"),N=E("namespace");function T(){return"@"!==e[0]?null:function(){const e=c();let t=i(/^@([-\w]+)?keyframes\s*/);if(!t)return null;const n=t[1];if(t=i(/^([-\w]+)\s*/),!t)return u("@keyframes missing name");const r=t[1];if(!m())return u("@keyframes missing '{'");let o,s=f();for(;o=_();)s.push(o),s=s.concat(f());return v()?e({type:"keyframes",name:r,vendor:n,keyframes:s}):u("@keyframes missing '}'")}()||function(){const e=c(),t=i(/^@media *([^{]+)/);if(!t)return null;const n=t[1].trim();if(!m())return u("@media missing '{'");const r=f().concat(p());return v()?e({type:"media",media:n,rules:r}):u("@media missing '}'")}()||function(){const e=c(),t=i(/^@custom-media\s+(--[^\s]+)\s*([^{;]{1,200}?);/);return t?e({type:"custom-media",name:t[1].trim(),media:t[2].trim()}):null}()||function(){const e=c(),t=i(/^@supports *([^{]+)/);if(!t)return null;const n=t[1].trim();if(!m())return u("@supports missing '{'");const r=f().concat(p());return v()?e({type:"supports",supports:n,rules:r}):u("@supports missing '}'")}()||S()||w()||N()||function(){const e=c(),t=i(/^@([-\w]+)?document *([^{]+)/);if(!t)return null;const n=t[1].trim(),r=t[2].trim();if(!m())return u("@document missing '{'");const o=f().concat(p());return v()?e({type:"document",document:r,vendor:n,rules:o}):u("@document missing '}'")}()||function(){const e=c();if(!i(/^@page */))return null;const t=g()||[];if(!m())return u("@page missing '{'");let n,r=f();for(;n=y();)r.push(n),r=r.concat(f());return v()?e({type:"page",selectors:t,declarations:r}):u("@page missing '}'")}()||function(){const e=c();if(!i(/^@host\s*/))return null;if(!m())return u("@host missing '{'");const t=f().concat(p());return v()?e({type:"host",rules:t}):u("@host missing '}'")}()||function(){const e=c();if(!i(/^@font-face\s*/))return null;if(!m())return u("@font-face missing '{'");let t,n=f();for(;t=y();)n.push(t),n=n.concat(f());return v()?e({type:"font-face",declarations:n}):u("@font-face missing '}'")}()}return function e(t,n){const r=t&&"string"==typeof t.type,o=r?t:n;return Object.keys(t).forEach(n=>{const r=t[n];Array.isArray(r)?r.forEach(t=>{e(t,o)}):r&&"object"==typeof r&&e(r,o)}),r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n}),t}(function(){const e=p();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:a}}}(),null)},t.registerElement=lt,t.setScreenSize=function(t){var n;if(t.width&&t.height){const{screen:r}=null===(n=null==e?void 0:e.Hippy)||void 0===n?void 0:n.device;r&&(r.width=t.width,r.height=t.height)}},t.translateColor=T}).call(this,n(2),n(6))},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 f(){u&&a&&(u=!1,a.length?l=a.concat(l):d=-1,l.length&&p())}function p(){if(!u){var e=c(f);u=!0;for(var t=l.length;t;){for(a=l,l=[];++d1)for(var n=1;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var s=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,s)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},d.apply(this,arguments)}function p(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&&f(e,t)}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}Object.defineProperty(t,"__esModule",{value:!0});var h=n("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js"),m=n("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js");const v={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},g=(...e)=>`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`,y="[-+]?\\d*\\.?\\d+",b={rgb:new RegExp("rgb"+g(y,y,y)),rgba:new RegExp("rgba"+g(y,y,y,y)),hsl:new RegExp("hsl"+g(y,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+g(y,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",y)),hex3:/^#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])$/,hex4:/^#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/},O=e=>{const t=parseInt(e,10);return t<0?0:t>255?255:t},_=e=>{const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},E=(e,t,n)=>{let r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e},S=(e,t,n)=>{const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=E(o,r,e+1/3),s=E(o,r,e),c=E(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*c)<<8},w=e=>(parseFloat(e)%360+360)%360/360,N=e=>{const t=parseFloat(e);return t<0?0:t>100?1:t/100};function x(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=b.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(v,e)?v[e]:(t=b.rgb.exec(e),Array.isArray(t)?(O(t[1])<<24|O(t[2])<<16|O(t[3])<<8|255)>>>0:(t=b.rgba.exec(e),t?(O(t[1])<<24|O(t[2])<<16|O(t[3])<<8|_(t[4]))>>>0:(t=b.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=b.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=b.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=b.hsl.exec(e),t?(255|S(w(t[1]),N(t[2]),N(t[3])))>>>0:(t=b.hsla.exec(e),t?(S(w(t[1]),N(t[2]),N(t[3]))|_(t[4]))>>>0:null))))))))}(e);if(null===t)throw new Error("Bad color value: "+e);return t=(t<<24|t>>>8)>>>0,t}const T={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},j={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},A="turn",C="rad",k="deg",I=/\/\*[\s\S]{0,1000}?\*\//gm;const P=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function R(e){if(Number.isInteger(e))return e;if("string"==typeof e&&e.endsWith("px")){const t=parseFloat(e.slice(0,e.indexOf("px")));Number.isNaN(t)||(e=t)}return e}function M(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=d(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(!Array.isArray(n))return"";let r="180";const[o,i,s]=n;return i&&s?r=function(e,t=k){const n=parseFloat(e);let r=e||"";const[,o]=e.split(".");switch(o&&o.length>2&&(r=n.toFixed(2)),t){case A:r=""+(360*n).toFixed(2);break;case C:r=""+(180/Math.PI*n).toFixed(2)}return r}(i,s):o&&void 0!==j[o]&&(r=j[o]),r}function L(e=""){const t=e.replace(/\s+/g," ").trim(),[n,r]=t.split(/\s+(?![^(]*?\))/),o=/^([+-]?\d+\.?\d*)%$/g;return!n||o.exec(n)||r?n&&o.exec(r)?{ratio:parseFloat(r.split("%")[0])/100,color:x(n)}:null:{color:x(n)}}function F(e,t){let n=t,r=e;if(0===t.indexOf("linear-gradient")){r="linearGradient";const e=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),o=[];n={},e.forEach((e,t)=>{if(0===t){const t=M(e);if(t)n.angle=t;else{n.angle="180";const t=L(e);t&&o.push(t)}}else{const t=L(e);t&&o.push(t)}}),n.colorStopList=o}else{const e=/(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t);e&&e.length>1&&([,n]=e)}return[r,n]}class D{constructor(){this.changeMap=new Map}addAttribute(e,t){const n=this.properties(e);n.attributes||(n.attributes=new Set),n.attributes.add(t)}addPseudoClass(e,t){const n=this.properties(e);n.pseudoClasses||(n.pseudoClasses=new Set),n.pseudoClasses.add(t)}properties(e){let t=this.changeMap.get(e);return t||this.changeMap.set(e,t={}),t}}class V{constructor(e){this.id={},this.class={},this.type={},this.universal=[],this.position=0,this.ruleSets=e,e.forEach(e=>e.lookupSort(this))}static removeFromMap(e,t,n){const r=e[t],o=r.findIndex(e=>{var t;return e.sel.ruleSet.hash===(null===(t=n.ruleSet)||void 0===t?void 0:t.hash)});-1!==o&&r.splice(o,1)}append(e){this.ruleSets=this.ruleSets.concat(e),e.forEach(e=>e.lookupSort(this))}delete(e){const t=[];this.ruleSets=this.ruleSets.filter(n=>n.hash!==e||(t.push(n),!1)),t.forEach(e=>e.removeSort(this))}query(e,t){const{tagName:n,id:r,classList:o,props:i}=e;let s=r,c=o;if(null==i?void 0:i.attributes){const{attributes:e}=i;c=new Set(((null==e?void 0:e.class)||"").split(" ").filter(e=>e.trim())),s=e.id}const a=[this.universal,this.id[s],this.type[n]];(null==c?void 0:c.size)&&c.forEach(e=>a.push(this.class[e]));const l=a.filter(e=>!!e).reduce((e,t)=>e.concat(t),[]),u=new D;return u.selectors=l.filter(n=>n.sel.accumulateChanges(e,u,t)).sort((e,t)=>e.sel.specificity-t.sel.specificity||e.pos-t.pos).map(e=>e.sel),u}removeById(e,t){V.removeFromMap(this.id,e,t)}sortById(e,t){this.addToMap(this.id,e,t)}removeByClass(e,t){V.removeFromMap(this.class,e,t)}sortByClass(e,t){this.addToMap(this.class,e,t)}removeByType(e,t){V.removeFromMap(this.type,e,t)}sortByType(e,t){this.addToMap(this.type,e,t)}removeAsUniversal(e){const t=this.universal.findIndex(t=>{var n,r;return(null===(n=t.sel.ruleSet)||void 0===n?void 0:n.hash)===(null===(r=e.ruleSet)||void 0===r?void 0:r.hash)});-1!==t&&this.universal.splice(t)}sortAsUniversal(e){this.universal.push(this.makeDocSelector(e))}addToMap(e,t,n){this.position+=1;const r=e[t];r?r.push(this.makeDocSelector(n)):e[t]=[this.makeDocSelector(n)]}makeDocSelector(e){return this.position+=1,{sel:e,pos:this.position}}}function B(e){return e?" "+e:""}function $(e,t){return t?(null==e?void 0:e.pId)&&t[e.pId]?t[e.pId]:null:null==e?void 0:e.parentNode}class U{constructor(){this.specificity=0}lookupSort(e,t){e.sortAsUniversal(null!=t?t:this)}removeSort(e,t){e.removeAsUniversal(null!=t?t:this)}}class H extends U{constructor(){super(...arguments),this.rarity=0}accumulateChanges(e,t){return this.dynamic?!!this.mayMatch(e)&&(this.trackChanges(e,t),!0):this.match(e)}match(e){return!!e}mayMatch(e){return this.match(e)}trackChanges(e,t){}}class Y extends H{constructor(e){super(),this.specificity=e.reduce((e,t)=>t.specificity+e,0),this.head=e.reduce((e,t)=>!e||e instanceof H&&t.rarity>e.rarity?t:e,null),this.dynamic=e.some(e=>e.dynamic),this.selectors=e}toString(){return`${this.selectors.join("")}${B(this.combinator)}`}match(e){return!!e&&this.selectors.every(t=>t.match(e))}mayMatch(e){return!!e&&this.selectors.every(t=>t.mayMatch(e))}trackChanges(e,t){this.selectors.forEach(n=>n.trackChanges(e,t))}lookupSort(e,t){this.head&&this.head instanceof H&&this.head.lookupSort(e,null!=t?t:this)}removeSort(e,t){this.head&&this.head instanceof H&&this.head.removeSort(e,null!=t?t:this)}}class W extends H{constructor(){super(),this.specificity=0,this.rarity=0,this.dynamic=!1}toString(){return"*"+B(this.combinator)}match(){return!0}}class z extends H{constructor(e){super(),this.specificity=65536,this.rarity=3,this.dynamic=!1,this.id=e}toString(){return`#${this.id}${B(this.combinator)}`}match(e){var t,n;return!!e&&((null===(n=null===(t=e.props)||void 0===t?void 0:t.attributes)||void 0===n?void 0:n.id)===this.id||e.id===this.id)}lookupSort(e,t){e.sortById(this.id,null!=t?t:this)}removeSort(e,t){e.removeById(this.id,null!=t?t:this)}}class K extends H{constructor(e){super(),this.specificity=1,this.rarity=1,this.dynamic=!1,this.cssType=e}toString(){return`${this.cssType}${B(this.combinator)}`}match(e){return!!e&&e.tagName===this.cssType}lookupSort(e,t){e.sortByType(this.cssType,null!=t?t:this)}removeSort(e,t){e.removeByType(this.cssType,null!=t?t:this)}}class G extends H{constructor(e){super(),this.specificity=256,this.rarity=2,this.dynamic=!1,this.className=e}toString(){return`.${this.className}${B(this.combinator)}`}match(e){var t,n,r;if(!e)return!1;const o=null!==(t=e.classList)&&void 0!==t?t:new Set(((null===(r=null===(n=e.props)||void 0===n?void 0:n.attributes)||void 0===r?void 0:r.class)||"").split(" ").filter(e=>e.trim()));return!(!o.size||!o.has(this.className))}lookupSort(e,t){e.sortByClass(this.className,null!=t?t:this)}removeSort(e,t){e.removeByClass(this.className,null!=t?t:this)}}class q extends H{constructor(e){super(),this.specificity=256,this.rarity=0,this.dynamic=!0,this.cssPseudoClass=e}toString(){return`:${this.cssPseudoClass}${B(this.combinator)}`}match(){return!1}mayMatch(){return!0}trackChanges(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}const J=(e,t)=>{var n,r,o;const i=(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n[t])||(null===(r=null==e?void 0:e.attributes)||void 0===r?void 0:r[t]);return void 0!==i?i:Array.isArray(null==e?void 0:e.styleScopeId)&&(null===(o=null==e?void 0:e.styleScopeId)||void 0===o?void 0:o.includes(t))?t:void 0};class X extends H{constructor(e,t="",n=""){super(),this.attribute="",this.test="",this.value="",this.specificity=256,this.rarity=0,this.dynamic=!0,this.attribute=e,this.test=t,this.value=n,this.match=t?n?r=>{if(!r||!(null==r?void 0:r.attributes)&&!(null==r?void 0:r.props[e]))return!1;const o=""+J(r,e);if("="===t)return o===n;if("^="===t)return o.startsWith(n);if("$="===t)return o.endsWith(n);if("*="===t)return-1!==o.indexOf(n);if("~="===t){const e=o.split(" ");return-1!==(null==e?void 0:e.indexOf(n))}return"|="===t&&(o===n||o.startsWith(n+"-"))}:()=>!1:t=>!(!t||!(null==t?void 0:t.attributes)&&!(null==t?void 0:t.props))&&!function(e){return null==e}(J(t,e))}toString(){return`[${this.attribute}${B(this.test)}${this.test&&this.value||""}]${B(this.combinator)}`}match(e){return!!e&&!e}mayMatch(){return!0}trackChanges(e,t){t.addAttribute(e,this.attribute)}}class Z extends H{constructor(e){super(),this.specificity=0,this.rarity=4,this.dynamic=!1,this.combinator=void 0,this.error=e}toString(){return``}match(){return!1}lookupSort(){return null}removeSort(){return null}}class Q{constructor(e){this.selectors=e,this.dynamic=e.some(e=>e.dynamic)}match(e){if(!e)return!1;return this.selectors.every((t,n)=>(0!==n&&(e=e.parentNode),!!e&&t.match(e)))?e:null}mayMatch(e){if(!e)return!1;return this.selectors.every((t,n)=>(0!==n&&(e=e.parentNode),!!e&&t.mayMatch(e)))?e:null}trackChanges(e,t){this.selectors.forEach((n,r)=>{0!==r&&(e=e.parentNode),e&&n.trackChanges(e,t)})}}class ee{constructor(e){this.selectors=e,this.dynamic=e.some(e=>e.dynamic)}match(e){if(!e)return!1;return this.selectors.every((t,n)=>(0!==n&&(e=e.nextSibling),!!e&&t.match(e)))?e:null}mayMatch(e){if(!e)return!1;return this.selectors.every((t,n)=>(0!==n&&(e=e.nextSibling),!!e&&t.mayMatch(e)))?e:null}trackChanges(e,t){this.selectors.forEach((n,r)=>{0!==r&&(e=e.nextSibling),e&&n.trackChanges(e,t)})}}class te extends U{constructor(e){super();const t=[void 0," ",">","+","~"];let n=[],r=[];const o=[],i=[...e],s=i.length-1;this.specificity=0,this.dynamic=!1;for(let e=s;e>=0;e--){const s=i[e];if(-1===t.indexOf(s.combinator))throw console.error(`Unsupported combinator "${s.combinator}".`),new Error(`Unsupported combinator "${s.combinator}".`);void 0!==s.combinator&&" "!==s.combinator||o.push(r=[n=[]]),">"===s.combinator&&r.push(n=[]),this.specificity+=s.specificity,s.dynamic&&(this.dynamic=!0),n.push(s)}this.groups=o.map(e=>new Q(e.map(e=>new ee(e)))),this.last=i[s]}toString(){return this.selectors.join("")}match(e,t){return!!e&&this.groups.every((n,r)=>{if(0===r)return!!(e=n.match(e));let o=$(e,t);for(;o;){if(e=n.match(o))return!0;o=$(o,t)}return!1})}lookupSort(e){this.last.lookupSort(e,this)}removeSort(e){this.last.removeSort(e,this)}accumulateChanges(e,t,n){if(!this.dynamic)return this.match(e,n);const r=[],o=this.groups.every((t,o)=>{if(0===o){const n=t.mayMatch(e);return r.push({left:e,right:e}),!!(e=n)}let i=$(e,n);for(;i;){const o=t.mayMatch(i);if(o)return r.push({left:i,right:null}),e=o,!0;i=$(i,n)}return!1});if(!o)return!1;if(!t)return o;for(let e=0;e(e.ruleSet=this,null)),this.selectors=e,this.declarations=t,this.hash=n}toString(){return`${this.selectors.join(", ")} {${this.declarations.map((e,t)=>`${0===t?" ":""}${e.property}: ${e.value}`).join("; ")}}`}lookupSort(e){this.selectors.forEach(t=>t.lookupSort(e))}removeSort(e){this.selectors.forEach(t=>t.removeSort(e))}}const re=(()=>{try{return!!new RegExp("foo","y")}catch(e){return!1}})(),oe={whiteSpaceRegEx:"\\s*",universalSelectorRegEx:"\\*",simpleIdentifierSelectorRegEx:"(#|\\.|:|\\b)([_-\\w][_-\\w\\d]*)",attributeSelectorRegEx:"\\[\\s*([_-\\w][_-\\w\\d]*)\\s*(?:(=|\\^=|\\$=|\\*=|\\~=|\\|=)\\s*(?:([_-\\w][_-\\w\\d]*)|\"((?:[^\\\\\"]|\\\\(?:\"|n|r|f|\\\\|0-9a-f))*)\"|'((?:[^\\\\']|\\\\(?:'|n|r|f|\\\\|0-9a-f))*)')\\s*)?\\]",combinatorRegEx:"\\s*(\\+|~|>)?\\s*"},ie={};function se(e,t,n){let r="";re&&(r="gy"),ie[e]||(ie[e]=new RegExp(oe[e],r));const o=ie[e];let i;if(re)o.lastIndex=n,i=o.exec(t);else{if(t=t.slice(n,t.length),i=o.exec(t),!i)return{result:null,regexp:o};o.lastIndex=n+i[0].length}return{result:i,regexp:o}}function ce(e,t){var n,r;return null!==(r=null!==(n=function(e,t){const{result:n,regexp:r}=se("universalSelectorRegEx",e,t);return n?{value:{type:"*"},start:t,end:r.lastIndex}:null}(e,t))&&void 0!==n?n:function(e,t){const{result:n,regexp:r}=se("simpleIdentifierSelectorRegEx",e,t);if(!n)return null;const o=r.lastIndex;return{value:{type:n[1],identifier:n[2]},start:t,end:o}}(e,t))&&void 0!==r?r:function(e,t){const{result:n,regexp:r}=se("attributeSelectorRegEx",e,t);if(!n)return null;const o=r.lastIndex,i=n[1];if(n[2]){return{value:{type:"[]",property:i,test:n[2],value:n[3]||n[4]||n[5]},start:t,end:o}}return{value:{type:"[]",property:i},start:t,end:o}}(e,t)}function ae(e,t){let n=ce(e,t);if(!n)return null;let{end:r}=n;const o=[];for(;n;)o.push(n.value),({end:r}=n),n=ce(e,r);return{start:t,end:r,value:o}}function le(e,t){const{result:n,regexp:r}=se("combinatorRegEx",e,t);if(!n)return null;let o;o=re?r.lastIndex:t;return{start:t,end:o,value:n[1]||" "}}const ue=e=>e;function de(e){return"declaration"===e.type}function pe(e){return t=>e(t)}function fe(e){switch(e.type){case"*":return new W;case"#":return new z(e.identifier);case"":return new K(e.identifier.replace(/-/,"").toLowerCase());case".":return new G(e.identifier);case":":return new q(e.identifier);case"[]":return e.test?new X(e.property,e.test,e.value):new X(e.property);default:return null}}function he(e){return 0===e.length?new Z(new Error("Empty simple selector sequence.")):1===e.length?fe(e[0]):new Y(e.map(fe))}function me(e){try{const t=function(e,t){let n=t;const{result:r,regexp:o}=se("whiteSpaceRegEx",e,t);r&&(n=o.lastIndex);const i=[];let s,c,a=!0,l=[void 0,void 0];return c=re?[e]:e.split(" "),c.forEach(e=>{if(!re){if(""===e)return;n=0}do{const t=ae(e,n);if(!t){if(a)return;break}({end:n}=t),s&&(l[1]=s.value),l=[t.value,void 0],i.push(l),s=le(e,n),s&&({end:n}=s),a=!(!s||" "===s.value)}while(s)}),{start:t,end:n,value:i}}(e,0);return t?function(e){if(0===e.length)return new Z(new Error("Empty selector."));if(1===e.length)return he(e[0][0]);const t=[];for(const n of e){const e=he(n[0]),r=n[1];r&&e&&(e.combinator=r),t.push(e)}return new te(t)}(t.value):new Z(new Error("Empty selector"))}catch(e){return new Z(e)}}let ve;function ge(e){var t;return!e||!(null===(t=null==e?void 0:e.ruleSets)||void 0===t?void 0:t.length)}function ye(t,n){if(t){if(!ge(ve))return ve;const e=function(e=[],t){return e.map(e=>{let n=e[0],r=e[1];return r=r.map(e=>{const[t,n]=e;return{type:"declaration",property:t,value:n}}).map(pe(null!=t?t:ue)),n=n.map(me),new ne(n,r,"")})}(t,n);return ve=new V(e),ve}const r=e[be];if(ge(ve)||r){const t=function(e=[],t){return e.map(e=>{const n=e.declarations.filter(de).map(pe(null!=t?t:ue)),r=e.selectors.map(me);return new ne(r,n,e.hash)})}(r,n);ve?ve.append(t):ve=new V(t),e[be]=void 0}return e[Oe]&&(e[Oe].forEach(e=>{ve.delete(e)}),e[Oe]=void 0),ve}const be="__HIPPY_VUE_STYLES__",Oe="__HIPPY_VUE_DISPOSE_STYLES__";let _e=Object.create(null);const Ee={$on:(e,t,n)=>(Array.isArray(e)?e.forEach(e=>{Ee.$on(e,t,n)}):(_e[e]||(_e[e]=[]),_e[e].push({fn:t,ctx:n})),Ee),$once(e,t,n){function r(...o){Ee.$off(e,r),t.apply(n,o)}return r._=t,Ee.$on(e,r),Ee},$emit(e,...t){const n=(_e[e]||[]).slice(),r=n.length;for(let e=0;e{Ee.$off(e,t)}),Ee;const n=_e[e];if(!n)return Ee;if(!t)return _e[e]=null,Ee;let r;const o=n.length;for(let e=0;ee;function Pe(){return Ie}let Re=(e,t)=>{};function Me(e,t){const n=new Map;return Array.isArray(e)?e.forEach(([e,t])=>{n.set(e,t),n.set(t,e)}):(n.set(e,t),n.set(t,e)),n}function Le(e){let t=e;return/^assets/.test(t)&&(t="hpfile://./"+t),t}function Fe(e){return"on"+h.capitalize(e)}function De(e){const t={};return e.forEach(e=>{if(Array.isArray(e)){const n=Fe(e[0]),r=Fe(e[1]);Object.prototype.hasOwnProperty.call(this.$attrs,n)&&(this.$attrs[r]||(t[r]=this.$attrs[n]))}}),t}function Ve(e,t){return!(!t||!e)&&e.match(t)}function Be(e){return e.split(" ").filter(e=>e.trim())}var $e;const Ue=["%c[native]%c","color: red","color: auto"],He={},{bridge:{callNative:Ye,callNativeWithPromise:We,callNativeWithCallbackId:ze},device:{platform:{OS:Ke,Localization:Ge={}},screen:{scale:qe}},device:Je,document:Xe,register:Ze,asyncStorage:Qe}=null!==($e=e.Hippy)&&void 0!==$e?$e:{device:{platform:{Localization:{}},window:{},screen:{}},bridge:{},register:{},document:{},asyncStorage:{}},et=async(e,t)=>{const n={top:-1,left:-1,bottom:-1,right:-1,width:-1,height:-1};if(!e.isMounted||!e.nodeId)return Promise.resolve(n);const{nodeId:r}=e;return Te(...Ue,"callUIFunction",{nodeId:r,funcName:t,params:[]}),new Promise(e=>Xe.callUIFunction(r,t,[],t=>{if(!t||"object"!=typeof t||void 0===r)return e(n);const{x:o,y:i,height:s,width:c}=t;return e({top:i,left:o,width:c,height:s,bottom:i+s,right:o+c})}))},tt=new Map,nt={Localization:Ge,hippyNativeDocument:Xe,hippyNativeRegister:Ze,Platform:Ke,PixelRatio:qe,ConsoleModule:e.ConsoleModule||e.console,callNative:Ye,callNativeWithPromise:We,callNativeWithCallbackId:ze,AsyncStorage:Qe,callUIFunction(...e){const[t,n,...r]=e;if(!(null==t?void 0:t.nodeId))return;const{nodeId:o}=t;let[i=[],s]=r;"function"==typeof i&&(s=i,i=[]),Te(...Ue,"callUIFunction",{nodeId:o,funcName:n,params:i}),Xe.callUIFunction(o,n,i,s)},Clipboard:{getString(){return nt.callNativeWithPromise.call(this,"ClipboardModule","getString")},setString(e){nt.callNative.call(this,"ClipboardModule","setString",e)}},Cookie:{getAll(e){if(!e)throw new TypeError("Native.Cookie.getAll() must have url argument");return nt.callNativeWithPromise.call(this,"network","getCookie",e)},set(e,t,n){if(!e)throw new TypeError("Native.Cookie.set() must have url argument");let r="";n&&(r=n.toUTCString()),nt.callNative.call(this,"network","setCookie",e,t,r)}},ImageLoader:{getSize(e){return nt.callNativeWithPromise.call(this,"ImageLoaderModule","getSize",e)},prefetch(e){nt.callNative.call(this,"ImageLoaderModule","prefetch",e)}},get Dimensions(){const{screen:e}=Je,{statusBarHeight:t}=e;return{window:Je.window,screen:l(l({},e),{},{statusBarHeight:t})}},get Device(){var t;return void 0===He.Device&&(nt.isIOS()?(null===(t=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.Device)?He.Device=e.__HIPPYNATIVEGLOBAL__.Device:He.Device="iPhone":nt.isAndroid()?He.Device="Android device":He.Device="Unknown device"),He.Device},get screenIsVertical(){return nt.Dimensions.window.width"android"===nt.Platform,isIOS:()=>"ios"===nt.Platform,measureInWindow:e=>et(e,"measureInWindow"),measureInAppWindow:e=>nt.isAndroid()?et(e,"measureInWindow"):et(e,"measureInAppWindow"),getBoundingClientRect(e,t){const{nodeId:n}=e;return new Promise((r,o)=>{if(!e.isMounted||!n)return o(new Error(`getBoundingClientRect cannot get nodeId of ${e} or ${e} is not mounted`));Te(...Ue,"UIManagerModule",{nodeId:n,funcName:"getBoundingClientRect",params:t}),Xe.callUIFunction(n,"getBoundingClientRect",[t],e=>{if(!e||e.errMsg)return o(new Error((null==e?void 0:e.errMsg)||"getBoundingClientRect error with no response"));const{x:t,y:n,width:i,height:s}=e;let c=void 0,a=void 0;return"number"==typeof n&&"number"==typeof s&&(c=n+s),"number"==typeof t&&"number"==typeof i&&(a=t+i),r({x:t,y:n,width:i,height:s,bottom:c,right:a,left:t,top:n})})})},NetInfo:{fetch:()=>nt.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(({network_info:e})=>e),addEventListener(e,t){let n=e;return"change"===n&&(n="networkStatusDidChange"),0===tt.size&&nt.callNative("NetInfo","addListener",n),Ee.$on(n,t),tt.set(t,t),{eventName:e,listener:t,remove(){this.eventName&&this.listener&&(nt.NetInfo.removeEventListener(this.eventName,this.listener),this.listener=void 0)}}},removeEventListener(e,t){if(null==t?void 0:t.remove)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange"),tt.size<=1&&nt.callNative("NetInfo","removeListener",n);const r=tt.get(t);r&&(Ee.$off(n,r),tt.delete(t),tt.size<1&&nt.callNative("NetInfo","removeListener",n))}},get isIPhoneX(){if(void 0===He.isIPhoneX){let e=!1;nt.isIOS()&&(e=20!==nt.Dimensions.screen.statusBarHeight),He.isIPhoneX=e}return He.isIPhoneX},get OnePixel(){if(void 0===He.OnePixel){const e=nt.PixelRatio;let t=Math.round(.4*e)/e;t||(t=1/e),He.OnePixel=t}return He.OnePixel},get APILevel(){var t,n;return nt.isAndroid()&&(null===(n=null===(t=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.Platform)||void 0===n?void 0:n.APILevel)?e.__HIPPYNATIVEGLOBAL__.Platform.APILevel:(je(),null)},get OSVersion(){var t;return nt.isIOS()&&(null===(t=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.OSVersion)?e.__HIPPYNATIVEGLOBAL__.OSVersion:null},get SDKVersion(){var t,n;return nt.isIOS()&&(null===(t=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.OSVersion)?null===(n=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===n?void 0:n.SDKVersion:null},parseColor(e){var t;if(Number.isInteger(e))return e;const n=null!==(t=He.COLOR_PARSER)&&void 0!==t?t:He.COLOR_PARSER=Object.create(null);return n[e]||(n[e]=x(e)),n[e]},getElemCss(e){const t=Object.create(null);try{ye(void 0,Pe()).query(e).selectors.forEach(n=>{Ve(n,e)&&n.ruleSet.declarations.forEach(e=>{t[e.property]=e.value})})}catch(e){je()}return t},version:"unspecified"},rt=new Set;let ot=!1;const it={exitApp(){nt.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(ot||(ot=!0,it.initEventListener()),nt.callNative("DeviceEventModule","setListenBackPress",!0),rt.add(e),{remove(){it.removeListener(e)}}),removeListener(e){rt.delete(e),0===rt.size&&nt.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){Ee.$on("hardwareBackPress",()=>{let e=!0;Array.from(rt).reverse().forEach(t=>{"function"==typeof t&&t()&&(e=!1)}),e&&it.exitApp()})}},st={exitApp(){},addListener:()=>({remove(){}}),removeListener(){},initEventListener(){}},ct=nt.isAndroid()?it:st,at=new Map;function lt(e,t){if(!e)throw new Error("tagName can not be empty");const n=Ae(e);at.has(n)||at.set(n,t.component)}function ut(e){const t=Ae(e),n=h.camelize(e).toLowerCase();return at.get(t)||at.get(n)}const dt=new Map,pt={number:"numeric",text:"default",search:"web-search"},ft={role:"accessibilityRole","aria-label":"accessibilityLabel","aria-disabled":{jointKey:"accessibilityState",name:"disabled"},"aria-selected":{jointKey:"accessibilityState",name:"selected"},"aria-checked":{jointKey:"accessibilityState",name:"checked"},"aria-busy":{jointKey:"accessibilityState",name:"busy"},"aria-expanded":{jointKey:"accessibilityState",name:"expanded"},"aria-valuemin":{jointKey:"accessibilityValue",name:"min"},"aria-valuemax":{jointKey:"accessibilityValue",name:"max"},"aria-valuenow":{jointKey:"accessibilityValue",name:"now"},"aria-valuetext":{jointKey:"accessibilityValue",name:"text"}},ht={component:{name:we.View,eventNamesMap:Me([["touchStart","onTouchDown"],["touchstart","onTouchDown"],["touchmove","onTouchMove"],["touchend","onTouchEnd"],["touchcancel","onTouchCancel"]]),attributeMaps:l({},ft),processEventData(e,t){var n,r;const{handler:o,__evt:i}=e;switch(i){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":o.offsetX=null===(n=t.contentOffset)||void 0===n?void 0:n.x,o.offsetY=null===(r=t.contentOffset)||void 0===r?void 0:r.y,(null==t?void 0:t.contentSize)&&(o.scrollHeight=t.contentSize.height,o.scrollWidth=t.contentSize.width);break;case"onTouchDown":case"onTouchMove":case"onTouchEnd":case"onTouchCancel":o.touches={0:{clientX:t.page_x,clientY:t.page_y},length:1};break;case"onFocus":o.isFocused=t.focus}return o}}},mt={component:{name:we.View,attributeMaps:ht.component.attributeMaps,eventNamesMap:ht.component.eventNamesMap,processEventData:ht.component.processEventData}},vt={component:{name:we.View}},gt={component:{name:we.Image,eventNamesMap:ht.component.eventNamesMap,processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onTouchDown":case"onTouchMove":case"onTouchEnd":case"onTouchCancel":n.touches={0:{clientX:t.page_x,clientY:t.page_y},length:1};break;case"onFocus":n.isFocused=t.focus;break;case"onLoad":{const{width:e,height:r,url:o}=t;n.width=e,n.height=r,n.url=o;break}}return n},defaultNativeStyle:{backgroundColor:0},attributeMaps:l({placeholder:{name:"defaultSource",propsValue(e){const t=Le(e);return(null==t?void 0:t.indexOf(Se))<0&&["https://","http://"].some(e=>0===t.indexOf(e))&&je(),t}},src:e=>Le(e)},ft)}},yt={component:{name:we.ListView,defaultNativeStyle:{flex:1},attributeMaps:l({},ft),eventNamesMap:Me("listReady","initialListReady"),processEventData(e,t){var n,r;const{handler:o,__evt:i}=e;switch(i){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":o.offsetX=null===(n=t.contentOffset)||void 0===n?void 0:n.x,o.offsetY=null===(r=t.contentOffset)||void 0===r?void 0:r.y;break;case"onDelete":o.index=t.index}return o}}},bt={component:{name:we.ListViewItem,attributeMaps:l({},ft),eventNamesMap:Me([["disappear","onDisappear"]])}},Ot={component:{name:we.Text,attributeMaps:ht.component.attributeMaps,eventNamesMap:ht.component.eventNamesMap,processEventData:ht.component.processEventData,defaultNativeProps:{text:""},defaultNativeStyle:{color:4278190080}}},_t=Ot,Et=Ot,St={component:l(l({},Ot.component),{},{defaultNativeStyle:{color:4278190318},attributeMaps:{href:{name:"href",propsValue:e=>["//","http://","https://"].filter(t=>0===e.indexOf(t)).length?(je(),""):e}}})},wt={component:{name:we.TextInput,attributeMaps:l({type:{name:"keyboardType",propsValue(e){const t=pt[e];return t||e}},disabled:{name:"editable",propsValue:e=>!e},value:"defaultValue",maxlength:"maxLength"},ft),nativeProps:{numberOfLines:1,multiline:!1},defaultNativeProps:{underlineColorAndroid:0},defaultNativeStyle:{padding:0,color:4278190080},eventNamesMap:Me([["change","onChangeText"],["select","onSelectionChange"]]),processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onChangeText":case"onEndEditing":n.value=t.text;break;case"onSelectionChange":n.start=t.selection.start,n.end=t.selection.end;break;case"onKeyboardWillShow":n.keyboardHeight=t.keyboardHeight;break;case"onContentSizeChange":n.width=t.contentSize.width,n.height=t.contentSize.height}return n}}},Nt={component:{name:we.TextInput,defaultNativeProps:l(l({},wt.component.defaultNativeProps),{},{numberOfLines:5}),attributeMaps:l(l({},wt.component.attributeMaps),{},{rows:"numberOfLines"}),nativeProps:{multiline:!0},defaultNativeStyle:wt.component.defaultNativeStyle,eventNamesMap:wt.component.eventNamesMap,processEventData:wt.component.processEventData}},xt={component:{name:we.WebView,defaultNativeProps:{method:"get",userAgent:""},attributeMaps:{src:{name:"source",propsValue:e=>({uri:e})}},processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onLoad":case"onLoadStart":n.url=t.url;break;case"onLoadEnd":n.url=t.url,n.success=t.success,n.error=t.error}return n}}};dt.set("div",ht),dt.set("button",mt),dt.set("form",vt),dt.set("img",gt),dt.set("ul",yt),dt.set("li",bt),dt.set("span",Ot),dt.set("label",_t),dt.set("p",Et),dt.set("a",St),dt.set("input",wt),dt.set("textarea",Nt),dt.set("iframe",xt);var Tt={install(){dt.forEach((e,t)=>{lt(t,e)})}};function jt(){const{Localization:e}=nt;return!!e&&1===e.direction}const At=0,Ct=1,kt={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"},It={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3};const Pt="addEventListener",Rt="removeEventListener";let Mt;function Lt(){return Mt}function Ft(e,t){Mt[e]=t}class Dt{constructor(e){this.target=null,this.currentTarget=null,this.originalTarget=null,this.bubbles=!0,this.cancelable=!0,this.eventPhase=0,this.isCanceled=!1,this.type=e,this.timeStamp=Date.now()}get canceled(){return this.isCanceled}stopPropagation(){this.bubbles=!1}preventDefault(){if(this.cancelable){if(this.isCanceled)return;this.isCanceled=!0}}}class Vt extends Dt{}function Bt(e){return"string"==typeof e.value}const $t=new Map;function Ut(e,t){$t.set(t,e)}function Ht(e){$t.delete(e)}function Yt(e){return $t.get(e)||null}function Wt(t){var n,r;n=e=>{(e.timeRemaining()>0||e.didTimeout)&&function e(t){var n;"number"==typeof t?Ht(t):t&&(Ht(t.nodeId),null===(n=t.childNodes)||void 0===n||n.forEach(t=>e(t)))}(t)},r={timeout:50},e.requestIdleCallback?e.requestIdleCallback(n,r):setTimeout(()=>{n({didTimeout:!1,timeRemaining:()=>1/0})},1)}function zt(e=[],t=0){let n=e[t];for(let r=t;r-1){let e;if("onLayout"===o){e=new Vt(i),Object.assign(e,{eventPhase:c,nativeParams:null!=s?s:{}});const{layout:{x:t,y:n,height:r,width:o}}=s;e.top=n,e.left=t,e.bottom=n+r,e.right=t+o,e.width=o,e.height=r}else{e=new Dt(i),Object.assign(e,{eventPhase:c,nativeParams:null!=s?s:{}});const{processEventData:t}=l.component;t&&t({__evt:o,handler:e},s)}a.dispatchEvent(function(e,t,n){return function(e){return["onTouchDown","onTouchMove","onTouchEnd","onTouchCancel"].indexOf(e)>=0}(e)&&Object.assign(t,{touches:{0:{clientX:n.page_x,clientY:n.page_y},length:1}}),t}(o,e,s),l,t)}}catch(e){console.error("receiveComponentEvent error",e)}else je(...Gt,"receiveComponentEvent","currentTargetNode or targetNode not exist")}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=qt);class Jt{constructor(){this.listeners={}}static indexOfListener(e,t,n){return e.findIndex(e=>n?e.callback===t&&h.looseEqual(e.options,n):e.callback===t)}addEventListener(e,t,n){const r=e.split(","),o=r.length;for(let e=0;e=0&&e.splice(r,1),e.length||(this.listeners[o]=void 0)}}}else this.listeners[o]=void 0}}emitEvent(e){var t,n;const{type:r}=e,o=this.listeners[r];if(o)for(let r=o.length-1;r>=0;r-=1){const i=o[r];(null===(t=i.options)||void 0===t?void 0:t.once)&&o.splice(r,1),(null===(n=i.options)||void 0===n?void 0:n.thisArg)?i.callback.apply(i.options.thisArg,[e]):i.callback(e)}}getEventListenerList(){return this.listeners}}var Xt;!function(e){e[e.CREATE=0]="CREATE",e[e.UPDATE=1]="UPDATE",e[e.DELETE=2]="DELETE",e[e.MOVE=3]="MOVE",e[e.UPDATE_EVENT=4]="UPDATE_EVENT"}(Xt||(Xt={}));let Zt=!1,Qt=[];function en(e=[],t){e.forEach(e=>{if(e){const{id:n,eventList:r}=e;r.forEach(e=>{const{name:r,type:o,listener:i}=e;let s;s=function(e){return!!kt[e]}(r)?kt[r]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(r),o===Ct&&t.removeEventListener(n,s,i),o===At&&(t.removeEventListener(n,s,i),t.addEventListener(n,s,i))})}})}function tn(e,t){0}function nn(){Zt||(Zt=!0,0!==Qt.length?m.nextTick().then(()=>{const t=function(e){const t=[];for(const n of e){const{type:e,nodes:r,eventNodes:o,printedNodes:i}=n,s=t[t.length-1];s&&s.type===e?(s.nodes=s.nodes.concat(r),s.eventNodes=s.eventNodes.concat(o),s.printedNodes=s.printedNodes.concat(i)):t.push({type:e,nodes:r,eventNodes:o,printedNodes:i})}return t}(Qt),{rootViewId:n}=Lt(),r=new e.Hippy.SceneBuilder(n);t.forEach(e=>{switch(e.type){case Xt.CREATE:tn(e.printedNodes),r.create(e.nodes,!0),en(e.eventNodes,r);break;case Xt.UPDATE:tn(e.printedNodes),r.update(e.nodes),en(e.eventNodes,r);break;case Xt.DELETE:tn(e.printedNodes),r.delete(e.nodes);break;case Xt.MOVE:tn(e.printedNodes),r.move(e.nodes);break;case Xt.UPDATE_EVENT:en(e.eventNodes,r)}}),r.build(),Zt=!1,Qt=[]}):Zt=!1)}var rn;function on(e){let t;const n=e.events;if(n){const r=[];Object.keys(n).forEach(e=>{const{name:t,type:o,isCapture:i,listener:s}=n[e];r.push({name:t,type:o,isCapture:i,listener:s})}),t={id:e.nodeId,eventList:r}}return t}!function(e){e[e.ElementNode=1]="ElementNode",e[e.TextNode=3]="TextNode",e[e.CommentNode=8]="CommentNode",e[e.DocumentNode=4]="DocumentNode"}(rn||(rn={}));class sn extends Jt{constructor(e,t){var n;super(),this.isMounted=!1,this.events={},this.childNodes=[],this.parentNode=null,this.prevSibling=null,this.nextSibling=null,this.tagComponent=null,this.nodeId=null!==(n=null==t?void 0:t.id)&&void 0!==n?n:sn.getUniqueNodeId(),this.nodeType=e,this.isNeedInsertToNative=function(e){return e===rn.ElementNode}(e),(null==t?void 0:t.id)&&(this.isMounted=!0)}static getUniqueNodeId(){return e.hippyUniqueId||(e.hippyUniqueId=0),e.hippyUniqueId+=1,e.hippyUniqueId%10==0&&(e.hippyUniqueId+=1),e.hippyUniqueId}get firstChild(){return this.childNodes.length?this.childNodes[0]:null}get lastChild(){const e=this.childNodes.length;return e?this.childNodes[e-1]:null}get component(){return this.tagComponent}get index(){let e=0;if(this.parentNode){e=this.parentNode.childNodes.filter(e=>e.isNeedInsertToNative).indexOf(this)}return e}isRootNode(){return 1===this.nodeId}hasChildNodes(){return!!this.childNodes.length}insertBefore(e,t){const n=e,r=t;if(!n)throw new Error("No child to insert");if(!r)return void this.appendChild(n);if(n.parentNode&&n.parentNode!==this)throw new Error("Can not insert child, because the child node is already has a different parent");let o=this;r.parentNode!==this&&(o=r.parentNode);const i=o.childNodes.indexOf(r);let s=r;r.isNeedInsertToNative||(s=zt(this.childNodes,i)),n.parentNode=o,n.nextSibling=r,n.prevSibling=o.childNodes[i-1],o.childNodes[i-1]&&(o.childNodes[i-1].nextSibling=n),r.prevSibling=n,o.childNodes.splice(i,0,n),s.isNeedInsertToNative?this.insertChildNativeNode(n,{refId:s.nodeId,relativeToRef:Kt}):this.insertChildNativeNode(n)}moveChild(e,t){const n=e,r=t;if(!n)throw new Error("No child to move");if(!r)return void this.appendChild(n);if(r.parentNode&&r.parentNode!==this)throw new Error("Can not move child, because the anchor node is already has a different parent");if(n.parentNode&&n.parentNode!==this)throw new Error("Can't move child, because it already has a different parent");const o=this.childNodes.indexOf(n),i=this.childNodes.indexOf(r);let s=r;if(r.isNeedInsertToNative||(s=zt(this.childNodes,i)),i===o)return;n.nextSibling=r,n.prevSibling=r.prevSibling,r.prevSibling=n,this.childNodes[i-1]&&(this.childNodes[i-1].nextSibling=n),this.childNodes[i+1]&&(this.childNodes[i+1].prevSibling=n),this.childNodes[o-1]&&(this.childNodes[o-1].nextSibling=this.childNodes[o+1]),this.childNodes[o+1]&&(this.childNodes[o+1].prevSibling=this.childNodes[o-1]),this.childNodes.splice(o,1);const c=this.childNodes.indexOf(r);this.childNodes.splice(c,0,n),s.isNeedInsertToNative?this.moveChildNativeNode(n,{refId:s.nodeId,relativeToRef:Kt}):this.insertChildNativeNode(n)}appendChild(e,t=!1){const n=e;if(!n)throw new Error("No child to append");this.lastChild!==n&&(n.parentNode&&n.parentNode!==this?n.parentNode.removeChild(n):(n.isMounted&&!t&&this.removeChild(n),n.parentNode=this,this.lastChild&&(n.prevSibling=this.lastChild,this.lastChild.nextSibling=n),this.childNodes.push(n),t?Ut(n,n.nodeId):this.insertChildNativeNode(n)))}removeChild(e){const t=e;if(!t)throw new Error("Can't remove child.");if(!t.parentNode)throw new Error("Can't remove child, because it has no parent.");if(t.parentNode!==this)return void t.parentNode.removeChild(t);if(!t.isNeedInsertToNative)return;t.prevSibling&&(t.prevSibling.nextSibling=t.nextSibling),t.nextSibling&&(t.nextSibling.prevSibling=t.prevSibling),t.prevSibling=null,t.nextSibling=null;const n=this.childNodes.indexOf(t);this.childNodes.splice(n,1),this.removeChildNativeNode(t)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(const t of this.childNodes){const n=this.findChild.call(t,e);if(n)return n}return null}eachNode(e){e&&e(this),this.childNodes.length&&this.childNodes.forEach(t=>{this.eachNode.call(t,e)})}insertChildNativeNode(e,t={}){if(!e||!e.isNeedInsertToNative)return;const n=this.isRootNode()&&!this.isMounted,r=this.isMounted&&!e.isMounted;if(n||r){const r=n?this:e;!function([e,t,n]){Qt.push({type:Xt.CREATE,nodes:e,eventNodes:t,printedNodes:n}),nn()}(r.convertToNativeNodes(!0,t)),r.eachNode(e=>{const t=e;!t.isMounted&&t.isNeedInsertToNative&&(t.isMounted=!0),Ut(t,t.nodeId)})}}moveChildNativeNode(e,t={}){if(!e||!e.isNeedInsertToNative)return;if(t&&t.refId===e.nodeId)return;!function([e,,t]){e&&(Qt.push({type:Xt.MOVE,nodes:e,eventNodes:[],printedNodes:t}),nn())}(e.convertToNativeNodes(!1,t))}removeChildNativeNode(e){if(!e||!e.isNeedInsertToNative)return;const t=e;t.isMounted&&(t.isMounted=!1,function([e,,t]){e&&(Qt.push({type:Xt.DELETE,nodes:e,eventNodes:[],printedNodes:t}),nn())}(t.convertToNativeNodes(!1,{})))}updateNativeNode(e=!1){if(!this.isMounted)return;!function([e,t,n]){e&&(Qt.push({type:Xt.UPDATE,nodes:e,eventNodes:t,printedNodes:n}),nn())}(this.convertToNativeNodes(e,{}))}updateNativeEvent(){if(!this.isMounted)return;!function(e){Qt.push({type:Xt.UPDATE_EVENT,nodes:[],eventNodes:[e],printedNodes:[]}),nn()}(on(this))}convertToNativeNodes(e,t={},n){var r,o;if(!this.isNeedInsertToNative)return[[],[],[]];if(e){const e=[],n=[],r=[];return this.eachNode(o=>{const[i,s,c]=o.convertToNativeNodes(!1,t);Array.isArray(i)&&i.length&&e.push(...i),Array.isArray(s)&&s.length&&n.push(...s),Array.isArray(c)&&c.length&&r.push(...c)}),[e,n,r]}if(!this.component)throw new Error("tagName is not supported yet");const{rootViewId:i}=Lt(),s=null!=n?n:{},c=l({id:this.nodeId,pId:null!==(o=null===(r=this.parentNode)||void 0===r?void 0:r.nodeId)&&void 0!==o?o:i},s),a=on(this);let u=void 0;return[[[c,t]],[a],[u]]}}class cn extends sn{constructor(e,t){super(rn.TextNode,t),this.text=e,this.data=e,this.isNeedInsertToNative=!1}setText(e){this.text=e,this.parentNode&&this.parentNode.nodeType===rn.ElementNode&&this.parentNode.setText(e)}}function an(e,t){if("string"!=typeof e)return;const n=e.split(",");for(let e=0,r=n.length;e{t[n]=function(e){let t=e;if("string"!=typeof t||!t.endsWith("rem"))return t;if(t=parseFloat(t),Number.isNaN(t))return e;const{ratioBaseWidth:n}=Lt(),{width:r}=nt.Dimensions.screen;return 100*t*(r/n)}(e[n])}):t=e,t}get component(){return this.tagComponent||(this.tagComponent=ut(this.tagName)),this.tagComponent}isRootNode(){const{rootContainer:e}=Lt();return super.isRootNode()||this.id===e}appendChild(e,t=!1){e instanceof cn&&this.setText(e.text,{notToNative:!0}),super.appendChild(e,t)}insertBefore(e,t){e instanceof cn&&this.setText(e.text,{notToNative:!0}),super.insertBefore(e,t)}moveChild(e,t){e instanceof cn&&this.setText(e.text,{notToNative:!0}),super.moveChild(e,t)}removeChild(e){e instanceof cn&&this.setText("",{notToNative:!0}),super.removeChild(e)}hasAttribute(e){return!!this.attributes[e]}getAttribute(e){return this.attributes[e]}removeAttribute(e){delete this.attributes[e]}setAttribute(e,t,n={}){let r=t,o=e;try{if("boolean"==typeof this.attributes[o]&&""===r&&(r=!0),void 0===o)return void(!n.notToNative&&this.updateNativeNode());switch(o){case"class":{const e=new Set(Be(r));if(function(e,t){if(e.size!==t.size)return!1;const n=e.values();let r=n.next().value;for(;r;){if(!t.has(r))return!1;r=n.next().value}return!0}(this.classList,e))return;return this.classList=e,void(!n.notToNative&&this.updateNativeNode(!0))}case"id":if(r===this.id)return;return this.id=r,void(!n.notToNative&&this.updateNativeNode(!0));case"text":case"value":case"defaultValue":case"placeholder":if("string"!=typeof r)try{r=r.toString()}catch(e){je(e.message)}n&&n.textUpdate||(r="string"!=typeof(i=r)?i:void 0===xe||xe?i.trim():i),r=r.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)));break;case"numberOfRows":if(!nt.isIOS())return;break;case"caretColor":case"caret-color":o="caret-color",r=nt.parseColor(r);break;case"break-strategy":o="breakStrategy";break;case"placeholderTextColor":case"placeholder-text-color":o="placeholderTextColor",r=nt.parseColor(r);break;case"underlineColorAndroid":case"underline-color-android":o="underlineColorAndroid",r=nt.parseColor(r);break;case"nativeBackgroundAndroid":{const e=r;void 0!==e.color&&(e.color=nt.parseColor(e.color)),o="nativeBackgroundAndroid",r=e;break}}if(this.attributes[o]===r)return;this.attributes[o]=r,"function"==typeof this.filterAttribute&&this.filterAttribute(this.attributes),!n.notToNative&&this.updateNativeNode()}catch(e){0}var i}setText(e,t={}){return this.setAttribute("text",e,{notToNative:!!t.notToNative})}removeStyle(e=!1){this.style={},e||this.updateNativeNode()}setStyles(e){e&&"object"==typeof e&&(Object.keys(e).forEach(t=>{const n=e[t];this.setStyle(t,n,!0)}),this.updateNativeNode())}setStyle(e,t,n=!1){if(void 0===t)return delete this.style[e],void(n||this.updateNativeNode());let{property:r,value:o}=this.beforeLoadStyle({property:e,value:t});switch(r){case"fontWeight":"string"!=typeof o&&(o=o.toString());break;case"backgroundImage":[r,o]=F(r,o);break;case"textShadowOffsetX":case"textShadowOffsetY":[r,o]=function(e,t=0,n){var r;const o=n;return o.textShadowOffset=null!==(r=o.textShadowOffset)&&void 0!==r?r:{},Object.assign(o.textShadowOffset,{[{textShadowOffsetX:"width",textShadowOffsetY:"height"}[e]]:t}),["textShadowOffset",o.textShadowOffset]}(r,o,this.style);break;case"textShadowOffset":{const{x:e=0,width:t=0,y:n=0,height:r=0}=null!=o?o:{};o={width:e||t,height:n||r};break}default:Object.prototype.hasOwnProperty.call(T,r)&&(r=T[r]),"string"==typeof o&&(o=o.trim(),o=r.toLowerCase().indexOf("color")>=0?nt.parseColor(o):o.endsWith("px")?parseFloat(o.slice(0,o.length-2)):function(e){if("number"==typeof e)return e;if(ke.test(e))try{return parseFloat(e)}catch(e){}return e}(o))}null!=o&&this.style[r]!==o&&(this.style[r]=o,n||this.updateNativeNode())}scrollToPosition(e=0,t=0,n=1e3){if("number"!=typeof e||"number"!=typeof t)return;let r=n;!1===r&&(r=0),nt.callUIFunction(this,"scrollToWithOptions",[{x:e,y:t,duration:r}])}scrollTo(e,t,n){if("object"==typeof e&&e){const{left:t,top:n,behavior:r="auto",duration:o}=e;this.scrollToPosition(t,n,"none"===r?0:o)}else this.scrollToPosition(e,t,n)}setListenerHandledType(e,t){this.events[e]&&(this.events[e].handledType=t)}isListenerHandled(e,t){return!this.events[e]||t===this.events[e].handledType}getNativeEventName(e){let t="on"+Ce(e);if(this.component){const{eventNamesMap:n}=this.component;(null==n?void 0:n.get(e))&&(t=n.get(e))}return t}addEventListener(e,t,n){let r=e,o=t,i=n,s=!0;"scroll"!==r||this.getAttribute("scrollEventThrottle")>0||(this.attributes.scrollEventThrottle=200);const c=this.getNativeEventName(r);this.attributes[c]&&(s=!1),"function"==typeof this.polyfillNativeEvents&&({eventNames:r,callback:o,options:i}=this.polyfillNativeEvents(Pt,r,o,i)),super.addEventListener(r,o,i),an(r,e=>{const t=this.getNativeEventName(e);var n,r;this.events[t]?this.events[t]&&this.events[t].type!==At&&(this.events[t].type=At):this.events[t]={name:t,type:At,listener:(n=t,r=e,e=>{const{id:t,currentId:o,params:i,eventPhase:s}=e,c={id:t,nativeName:n,originalName:r,currentId:o,params:i,eventPhase:s};qt.receiveComponentEvent(c,e)}),isCapture:!1}}),s&&this.updateNativeEvent()}removeEventListener(e,t,n){let r=e,o=t,i=n;"function"==typeof this.polyfillNativeEvents&&({eventNames:r,callback:o,options:i}=this.polyfillNativeEvents(Rt,r,o,i)),super.removeEventListener(r,o,i),an(r,e=>{const t=this.getNativeEventName(e);this.events[t]&&(this.events[t].type=Ct)});const s=this.getNativeEventName(r);this.attributes[s]&&delete this.attributes[s],this.updateNativeEvent()}dispatchEvent(e,t,n){const r=e;r.currentTarget=this,r.target||(r.target=t||this,Bt(r)&&(r.target.value=r.value)),this.emitEvent(r),!r.bubbles&&n&&n.stopPropagation()}convertToNativeNodes(e,t={}){if(!this.isNeedInsertToNative)return[[],[],[]];if(e)return super.convertToNativeNodes(!0,t);let n=this.getNativeStyles();if(this.parentNode&&this.parentNode instanceof ln){const e=this.parentNode.processedStyle;["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"].forEach(t=>{!n[t]&&e[t]&&(n[t]=e[t])})}if(Re(this,n),this.component.defaultNativeStyle){const{defaultNativeStyle:e}=this.component,t={};Object.keys(e).forEach(n=>{this.getAttribute(n)||(t[n]=e[n])}),n=l(l({},t),n)}this.processedStyle=n;const r={name:this.component.name,props:l(l({},this.getNativeProps()),{},{style:n}),tagName:this.tagName};return function(e,t){const n=t;e.component.name===we.TextInput&&jt()&&(n.textAlign||(n.textAlign="right"))}(this,n),function(e,t,n){const r=t,o=n;e.component.name===we.View&&("scroll"===o.overflowX&&"scroll"===o.overflowY&&je(),"scroll"===o.overflowY?r.name="ScrollView":"scroll"===o.overflowX&&(r.name="ScrollView",r.props&&(r.props.horizontal=!0),o.flexDirection=jt()?"row-reverse":"row"),"ScrollView"===r.name&&(1!==e.childNodes.length&&je(),e.childNodes.length&&e.nodeType===rn.ElementNode&&e.childNodes[0].setStyle("collapsable",!1)),o.backgroundImage&&(o.backgroundImage=Le(o.backgroundImage)))}(this,r,n),super.convertToNativeNodes(!1,t,r)}repaintWithChildren(){this.updateNativeNode(!0)}setNativeProps(e){if(e){const{style:t}=e;this.setStyles(t)}}setPressed(e){nt.callUIFunction(this,"setPressed",[e])}setHotspot(e,t){nt.callUIFunction(this,"setHotspot",[e,t])}setStyleScope(e){const t="string"!=typeof e?e.toString():e;t&&!this.scopedIdList.includes(t)&&this.scopedIdList.push(t)}get styleScopeId(){return this.scopedIdList}getInlineStyle(){const e={};return Object.keys(this.style).forEach(t=>{const n=m.toRaw(this.style[t]);void 0!==n&&(e[t]=n)}),e}getNativeStyles(){let e={};return ye(void 0,Pe()).query(this).selectors.forEach(t=>{var n,r;Ve(t,this)&&(null===(r=null===(n=t.ruleSet)||void 0===n?void 0:n.declarations)||void 0===r?void 0:r.length)&&t.ruleSet.declarations.forEach(t=>{t.property&&(e[t.property]=t.value)})}),this.ssrInlineStyle&&(e=l(l({},e),this.ssrInlineStyle)),e=ln.parseRem(l(l({},e),this.getInlineStyle())),e}getNativeProps(){const e={},{defaultNativeProps:t}=this.component;t&&Object.keys(t).forEach(n=>{if(void 0===this.getAttribute(n)){const r=t[n];e[n]=h.isFunction(r)?r(this):m.toRaw(r)}}),Object.keys(this.attributes).forEach(t=>{var n;let r=m.toRaw(this.getAttribute(t));if(!this.component.attributeMaps||!this.component.attributeMaps[t])return void(e[t]=m.toRaw(r));const o=this.component.attributeMaps[t];if(h.isString(o))return void(e[o]=m.toRaw(r));if(h.isFunction(o))return void(e[t]=m.toRaw(o(r)));const{name:i,propsValue:s,jointKey:c}=o;h.isFunction(s)&&(r=s(r)),c?(e[c]=null!==(n=e[c])&&void 0!==n?n:{},Object.assign(e[c],{[i]:m.toRaw(r)})):e[i]=m.toRaw(r)});const{nativeProps:n}=this.component;return n&&Object.keys(n).forEach(t=>{e[t]=m.toRaw(n[t])}),e}getNodeAttributes(){var e;try{const t=function e(t,n=new WeakMap){if("object"!=typeof t||null===t)throw new TypeError("deepCopy data is object");if(n.has(t))return n.get(t);const r={};return Object.keys(t).forEach(o=>{const i=t[o];"object"!=typeof i||null===i?r[o]=i:Array.isArray(i)?r[o]=[...i]:i instanceof Set?r[o]=new Set([...i]):i instanceof Map?r[o]=new Map([...i]):(n.set(t,t),r[o]=e(i,n))}),r}(this.attributes),n=Array.from(null!==(e=this.classList)&&void 0!==e?e:[]).join(" "),r=l({id:this.id,hippyNodeId:""+this.nodeId,class:n},t);return delete r.text,delete r.value,Object.keys(r).forEach(e=>{"id"!==e&&"hippyNodeId"!==e&&"class"!==e&&delete r[e]}),r}catch(e){return{}}}getNativeEvents(){const e={},t=this.getEventListenerList(),n=Object.keys(t);if(n.length){const{eventNamesMap:r}=this.component;n.forEach(n=>{const o=null==r?void 0:r.get(n);if(o)e[o]=!!t[n];else{const r="on"+Ce(n);e[r]=!!t[n]}})}return e}hackSpecialIssue(){this.fixVShowDirectiveIssue()}fixVShowDirectiveIssue(){var e;let t=null!==(e=this.style.display)&&void 0!==e?e:void 0;Object.defineProperty(this.style,"display",{enumerable:!0,configurable:!0,get:()=>t,set:e=>{t=void 0===e?"flex":e,this.updateNativeNode()}})}}function un(t){const n={valueType:void 0,delay:0,startValue:0,toValue:0,duration:0,direction:"center",timingFunction:"linear",repeatCount:0,inputRange:[],outputRange:[]};function r(e,t){return"color"===e&&["number","string"].indexOf(typeof t)>=0?nt.parseColor(t):t}function a(e){return"loop"===e?-1:e}function u(t){const{mode:i="timing",valueType:s,startValue:u,toValue:d}=t,p=c(t,o),f=l(l({},n),p);void 0!==s&&(f.valueType=t.valueType),f.startValue=r(f.valueType,u),f.toValue=r(f.valueType,d),f.repeatCount=a(f.repeatCount),f.mode=i;const h=new e.Hippy.Animation(f),m=h.getId();return{animation:h,animationId:m}}function d(t,n={}){const r={};return Object.keys(t).forEach(o=>{if(Array.isArray(t[o])){const i=t[o],{repeatCount:s}=i[i.length-1],c=i.map(e=>{const{animationId:t,animation:r}=u(l(l({},e),{},{repeatCount:0}));return Object.assign(n,{[t]:r}),{animationId:t,follow:!0}}),{animationId:d,animation:p}=function(t,n=0){const r=new e.Hippy.AnimationSet({children:t,repeatCount:n}),o=r.getId();return{animation:r,animationId:o}}(c,a(s));r[o]={animationId:d},Object.assign(n,{[d]:p})}else{const e=t[o],{animationId:i,animation:s}=u(e);Object.assign(n,{[i]:s}),r[o]={animationId:i}}}),r}function p(e){const{transform:t}=e,n=c(e,i);let r=Object.keys(n).map(t=>e[t].animationId);if(Array.isArray(t)&&t.length>0){const e=[];t.forEach(t=>Object.keys(t).forEach(n=>{if(t[n]){const{animationId:r}=t[n];"number"==typeof r&&r%1==0&&e.push(r)}})),r=[...r,...e]}return r}t.component("Animation",{props:{tag:{type:String,default:"div"},playing:{type:Boolean,default:!1},actions:{type:Object,required:!0},props:Object},data:()=>({style:{},animationIds:[],animationIdsMap:{},animationEventMap:{}}),watch:{playing(e,t){!t&&e?this.start():t&&!e&&this.pause()},actions(){this.destroy(),this.create(),setTimeout(()=>{const e=this.$attrs[Fe("actionsDidUpdate")];"function"==typeof e&&e()})}},created(){this.animationEventMap={start:"animationstart",end:"animationend",repeat:"animationrepeat",cancel:"animationcancel"}},beforeMount(){this.create()},mounted(){const{playing:e}=this.$props;e&&setTimeout(()=>{this.start()},0)},beforeDestroy(){this.destroy()},deactivated(){this.pause()},activated(){this.resume()},methods:{create(){const e=this.$props,{actions:{transform:t}}=e,n=c(e.actions,s);this.animationIdsMap={};const r=d(n,this.animationIdsMap);if(t){const e=d(t,this.animationIdsMap);r.transform=Object.keys(e).map(t=>({[t]:e[t]}))}this.$alreadyStarted=!1,this.style=r},removeAnimationEvent(){this.animationIds.forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$attrs[Fe(e)])return;const n=this.animationEventMap[e];n&&"function"==typeof this[""+n]&&t.removeEventListener(n)})})},addAnimationEvent(){this.animationIds.forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$attrs[Fe(e)])return;const n=this.animationEventMap[e];n&&t.addEventListener(n,()=>{this.$emit(e)})})})},reset(){this.$alreadyStarted=!1},start(){this.$alreadyStarted?this.resume():(this.animationIds=p(this.style),this.$alreadyStarted=!0,this.removeAnimationEvent(),this.addAnimationEvent(),this.animationIds.forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);null==t||t.start()}))},resume(){p(this.style).forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);null==t||t.resume()})},pause(){if(!this.$alreadyStarted)return;p(this.style).forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);null==t||t.pause()})},destroy(){this.removeAnimationEvent(),this.$alreadyStarted=!1;p(this.style).forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);null==t||t.destroy()})}},render(){return m.h(this.tag,l({useAnimation:!0,style:this.style,tag:this.$props.tag},this.$props.props),this.$slots.default?this.$slots.default():null)}})}const dn=["dialog","hi-pull-header","hi-pull-footer","hi-swiper","hi-swiper-slider","hi-waterfall","hi-waterfall-item","hi-ul-refresh-wrapper","hi-refresh-wrapper-item"];var pn={install(e){un(e),lt("dialog",{component:{name:"Modal",defaultNativeProps:{transparent:!0,immersionStatusBar:!0,collapsable:!1,autoHideStatusBar:!1,autoHideNavigationBar:!1},defaultNativeStyle:{position:"absolute"}}}),function(e){const{callUIFunction:t}=nt;[["Header","header"],["Footer","footer"]].forEach(([n,r])=>{lt("hi-pull-"+r,{component:{name:`Pull${n}View`,processEventData(e,t){const{handler:r,__evt:o}=e;switch(o){case`on${n}Released`:case`on${n}Pulling`:Object.assign(r,t)}return r}}}),e.component("pull-"+r,{methods:{["expandPull"+n](){t(this.$refs.instance,"expandPull"+n)},["collapsePull"+n](e){"Header"===n&&void 0!==e?t(this.$refs.instance,`collapsePull${n}WithOptions`,[e]):t(this.$refs.instance,"collapsePull"+n)},onLayout(e){this.$contentHeight=e.height},[`on${n}Released`](e){this.$emit("released",e)},[`on${n}Pulling`](e){e.contentOffset>this.$contentHeight?"pulling"!==this.$lastEvent&&(this.$lastEvent="pulling",this.$emit("pulling",e)):"idle"!==this.$lastEvent&&(this.$lastEvent="idle",this.$emit("idle",e))}},render(){const{onReleased:e,onPulling:t,onIdle:o}=this.$attrs,i={onLayout:this.onLayout};return"function"==typeof e&&(i[`on${n}Released`]=this[`on${n}Released`]),"function"!=typeof t&&"function"!=typeof o||(i[`on${n}Pulling`]=this[`on${n}Pulling`]),m.h("hi-pull-"+r,l(l({},i),{},{ref:"instance"}),this.$slots.default?this.$slots.default():null)}})})}(e),function(e){lt("hi-ul-refresh-wrapper",{component:{name:"RefreshWrapper"}}),lt("hi-refresh-wrapper-item",{component:{name:"RefreshWrapperItemView"}}),e.component("UlRefreshWrapper",{props:{bounceTime:{type:Number,defaultValue:100}},methods:{startRefresh(){nt.callUIFunction(this.$refs.refreshWrapper,"startRefresh",null)},refreshCompleted(){nt.callUIFunction(this.$refs.refreshWrapper,"refreshComplected",null)}},render(){return m.h("hi-ul-refresh-wrapper",{ref:"refreshWrapper"},this.$slots.default?this.$slots.default():null)}}),e.component("UlRefresh",{render(){const e=m.h("div",null,this.$slots.default?this.$slots.default():null);return m.h("hi-refresh-wrapper-item",{style:{position:"absolute",left:0,right:0}},e)}})}(e),function(e){lt("hi-waterfall",{component:{name:"WaterfallView",processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onExposureReport":n.exposureInfo=t.exposureInfo;break;case"onScroll":{const{startEdgePos:e,endEdgePos:r,firstVisibleRowIndex:o,lastVisibleRowIndex:i,visibleRowFrames:s}=t;Object.assign(n,{startEdgePos:e,endEdgePos:r,firstVisibleRowIndex:o,lastVisibleRowIndex:i,visibleRowFrames:s});break}}return n}}}),lt("hi-waterfall-item",{component:{name:"WaterfallItem"}}),e.component("Waterfall",{props:{numberOfColumns:{type:Number,default:2},contentInset:{type:Object,default:()=>({top:0,left:0,bottom:0,right:0})},columnSpacing:{type:Number,default:0},interItemSpacing:{type:Number,default:0},preloadItemNumber:{type:Number,default:0},containBannerView:{type:Boolean,default:!1},containPullHeader:{type:Boolean,default:!1},containPullFooter:{type:Boolean,default:!1}},methods:{call(e,t){nt.callUIFunction(this.$refs.waterfall,e,t)},startRefresh(){this.call("startRefresh")},startRefreshWithType(e){this.call("startRefreshWithType",[e])},callExposureReport(){this.call("callExposureReport",[])},scrollToIndex({index:e=0,animated:t=!0}){this.call("scrollToIndex",[e,e,t])},scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){this.call("scrollToContentOffset",[e,t,n])},startLoadMore(){this.call("startLoadMore")}},render(){const e=De.call(this,["headerReleased","headerPulling","endReached","exposureReport","initialListReady","scroll"]);return m.h("hi-waterfall",l(l({},e),{},{ref:"waterfall",numberOfColumns:this.numberOfColumns,contentInset:this.contentInset,columnSpacing:this.columnSpacing,interItemSpacing:this.interItemSpacing,preloadItemNumber:this.preloadItemNumber,containBannerView:this.containBannerView,containPullHeader:this.containPullHeader,containPullFooter:this.containPullFooter}),this.$slots.default?this.$slots.default():null)}}),e.component("WaterfallItem",{props:{type:{type:[String,Number],default:""},fullSpan:{type:Boolean,default:!1}},render(){return m.h("hi-waterfall-item",{type:this.type,fullSpan:this.fullSpan},this.$slots.default?this.$slots.default():null)}})}(e),function(e){lt("hi-swiper",{component:{name:"ViewPager",processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onPageSelected":n.currentSlide=t.position;break;case"onPageScroll":n.nextSlide=t.position,n.offset=t.offset;break;case"onPageScrollStateChanged":n.state=t.pageScrollState}return n}}}),lt("hi-swiper-slide",{component:{name:"ViewPagerItem",defaultNativeStyle:{position:"absolute",top:0,right:0,bottom:0,left:0}}}),e.component("Swiper",{props:{current:{type:Number,defaultValue:0},needAnimation:{type:Boolean,defaultValue:!0}},data:()=>({$initialSlide:0}),watch:{current(e){this.$props.needAnimation?this.setSlide(e):this.setSlideWithoutAnimation(e)}},beforeMount(){this.$initialSlide=this.$props.current},methods:{setSlide(e){nt.callUIFunction(this.$refs.swiper,"setPage",[e])},setSlideWithoutAnimation(e){nt.callUIFunction(this.$refs.swiper,"setPageWithoutAnimation",[e])}},render(){const e=De.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]);return m.h("hi-swiper",l(l({},e),{},{ref:"swiper",initialPage:this.$data.$initialSlide}),this.$slots.default?this.$slots.default():null)}}),e.component("SwiperSlide",{render(){return m.h("hi-swiper-slide",{},this.$slots.default?this.$slots.default():null)}})}(e)}};class fn extends ln{constructor(e,t){super("comment",t),this.text=e,this.data=e,this.isNeedInsertToNative=!1}}class hn extends ln{setText(e,t={}){"textarea"===this.tagName?this.setAttribute("value",e,{notToNative:!!t.notToNative}):this.setAttribute("text",e,{notToNative:!!t.notToNative})}async getValue(){return new Promise(e=>nt.callUIFunction(this,"getValue",t=>e(t.text)))}setValue(e){nt.callUIFunction(this,"setValue",[e])}focus(){nt.callUIFunction(this,"focusTextInput",[])}blur(){nt.callUIFunction(this,"blurTextInput",[])}clear(){nt.callUIFunction(this,"clear",[])}async isFocused(){return new Promise(e=>nt.callUIFunction(this,"isFocused",t=>e(t.value)))}}class mn extends ln{scrollToIndex(e=0,t=0,n=!0){nt.callUIFunction(this,"scrollToIndex",[e,t,n])}scrollToPosition(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&nt.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}class vn extends sn{static createComment(e){return new fn(e)}static createElement(e){switch(e){case"input":case"textarea":return new hn(e);case"ul":return new mn(e);default:return new ln(e)}}static createTextNode(e){return new cn(e)}constructor(){super(rn.DocumentNode)}}const gn={insert:function(e,t,n=null){t.childNodes.indexOf(e)>=0?t.moveChild(e,n):t.insertBefore(e,n)},remove:function(e){const t=e.parentNode;t&&(t.removeChild(e),Wt(e))},setText:function(e,t){e.setText(t)},setElementText:function(e,t){e.setText(t)},createElement:function(e){return vn.createElement(e)},createComment:function(e){return vn.createComment(e)},createText:function(e){return vn.createTextNode(e)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},setScopeId:function(e,t){e.setStyleScope(t)}};const yn=/(?:Once|Passive|Capture)$/;function bn(e,t,n,r,o=null){var i;const s=e,c=null!==(i=s._vei)&&void 0!==i?i:s._vei={},a=c[t];if(r&&a)a.value=r;else{const[e,n]=function(e){let t=e;const n={};if(yn.test(t)){let e=t.match(yn);for(;e;)t=t.slice(0,t.length-e[0].length),n[e[0].toLowerCase()]=!0,e=t.match(yn)}return t=":"===t[2]?t.slice(3):t.slice(2),[(r=t,`${r.charAt(0).toLowerCase()}${r.slice(1)}`),n];var r}(t);if(r){c[t]=function(e,t){const n=e=>{m.callWithAsyncErrorHandling(n.value,t,m.ErrorCodes.NATIVE_EVENT_HANDLER,[e])};return n.value=e,n}(r,o);const i=c[t];s.addEventListener(e,i,n)}else s.removeEventListener(e,a,n),c[t]=void 0}}function On(e,t,n){const r=e,o={};if(!function(e,t,n){const r=!e,o=!t&&!n,i=JSON.stringify(t)===JSON.stringify(n);return r||o||i}(r,t,n))if(t&&!n)r.removeStyle();else{if(h.isString(n))throw new Error("Style is Not Object");n&&(Object.keys(n).forEach(e=>{const t=n[e];(function(e){return null==e})(t)||(o[m.camelize(e)]=t)}),r.removeStyle(!0),r.setStyles(o))}}function _n(e,t,n,r,o,i){switch(t){case"class":!function(e,t){let n=t;null===n&&(n=""),e.setAttribute("class",n)}(e,r);break;case"style":On(e,n,r);break;default:h.isOn(t)&&!function(e){return["onInterceptTouchEvent","onInterceptPullUpEvent"].indexOf(e)>=0}(t)?bn(e,t,0,r,i):function(e,t,n,r){n!==r&&e.setAttribute(t,r)}(e,t,n,r)}}function En(e,t){const n=function(e){var t;if("comment"===e.name)return new fn(e.props.text,e);if("Text"===e.name&&!e.tagName){const t=new cn(e.props.text,e);return t.nodeType=rn.TextNode,t.data=e.props.text,t}switch(e.tagName){case"input":case"textarea":return new hn(e.tagName,e);case"ul":return new mn(e.tagName,e);default:return new ln(null!==(t=e.tagName)&&void 0!==t?t:"",e)}}(e);let r=t.filter(t=>t.pId===e.id).sort((e,t)=>e.index-t.index);const o=r.filter(e=>"comment"===e.name);if(o.length){r=r.filter(e=>"comment"!==e.name);for(let e=o.length-1;e>=0;e--)r.splice(o[e].index,0,o[e])}return r.forEach(e=>{n.appendChild(En(e,t),!0)}),n}e.WebSocket=class{constructor(e,t,n){this.webSocketId=-1,this.protocol="",this.listeners={},this.url=e,this.readyState=0,this.webSocketCallbacks={},this.onWebSocketEvent=this.onWebSocketEvent.bind(this);const r=l({},n);if(Ee.$on("hippyWebsocketEvents",this.onWebSocketEvent),!e)throw new TypeError("Invalid WebSocket url");Array.isArray(t)&&t.length>0?(this.protocol=t.join(","),r["Sec-WebSocket-Protocol"]=this.protocol):"string"==typeof t&&(this.protocol=t,r["Sec-WebSocket-Protocol"]=this.protocol);const o={headers:r,url:e};nt.callNativeWithPromise("websocket","connect",o).then(e=>{e&&0===e.code?this.webSocketId=e.id:je()})}close(e,t){1===this.readyState&&(this.readyState=2,nt.callNative("websocket","close",{id:this.webSocketId,code:e,reason:t}))}send(e){if(1===this.readyState){if("string"!=typeof e)throw new TypeError("Unsupported websocket data type: "+typeof e);nt.callNative("websocket","send",{id:this.webSocketId,data:e})}else je()}set onopen(e){this.addEventListener("open",e)}set onclose(e){this.addEventListener("close",e)}set onerror(e){this.addEventListener("error",e)}set onmessage(e){this.addEventListener("message",e)}onWebSocketEvent(e){if("object"!=typeof e||e.id!==this.webSocketId)return;const t=e.type;if("string"!=typeof t)return;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,Ee.$off("hippyWebsocketEvents",this.onWebSocketEvent));const n=this.webSocketCallbacks[t];(null==n?void 0:n.length)&&n.forEach(t=>{h.isFunction(t)&&t(e.data)})}addEventListener(e,t){if((e=>-1!==["open","close","message","error"].indexOf(e))(e)){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t);const n=Fe(e);this.webSocketCallbacks[n]=this.listeners[e]}}};const Sn=['%c[Hippy-Vue-Next "unspecified"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"];function wn(e,t){if(nt.isIOS()){const n=function(e){var t,n;const{iPhone:r}=e;let o;if((null==r?void 0:r.statusBar)&&(o=r.statusBar),null==o?void 0:o.disabled)return null;const i=new ln("div"),{statusBarHeight:s}=nt.Dimensions.screen;nt.screenIsVertical?i.setStyle("height",s):i.setStyle("height",0);let c=4282431619;if(Number.isInteger(c)&&({backgroundColor:c}=o),i.setStyle("backgroundColor",c),"string"==typeof o.backgroundImage){const r=new ln("img");r.setStyle("width",nt.Dimensions.screen.width),r.setStyle("height",s),r.setAttribute("src",null===(n=null===(t=e.iPhone)||void 0===t?void 0:t.statusBar)||void 0===n?void 0:n.backgroundImage),i.appendChild(r)}return i.addEventListener("layout",()=>{nt.screenIsVertical?i.setStyle("height",s):i.setStyle("height",0)}),i}(e);if(n){const e=t.$el.parentNode;e.childNodes.length?e.insertBefore(n,e.childNodes[0]):e.appendChild(n)}}}const Nn=(e,t)=>{var n,r;const o=e,i=Boolean(null===(n=null==t?void 0:t.ssrNodeList)||void 0===n?void 0:n.length);var s,c;o.use(Tt),o.use(pn),"function"==typeof(null===(r=null==t?void 0:t.styleOptions)||void 0===r?void 0:r.beforeLoadStyle)&&(s=t.styleOptions.beforeLoadStyle,Ie=s),t.silent&&(c=t.silent,Ne=c),function(e=!0){xe=e}(t.trimWhitespace);const{mount:a}=o;return o.mount=e=>{var n;Ft("rootContainer",e);const r=(null===(n=null==t?void 0:t.ssrNodeList)||void 0===n?void 0:n.length)?function(e){const[t]=e;return En(t,e)}(t.ssrNodeList):function(e){const t=vn.createElement("div");return t.id=e,t.style={display:"flex",flex:1},t}(e),o=a(r,i,!1);return Ft("instance",o),i||wn(t,o),o},o.$start=async e=>new Promise(n=>{nt.hippyNativeRegister.regist(t.appName,r=>{var i,s;const{__instanceId__:c}=r;Te(...Sn,"Start",t.appName,"with rootViewId",c,r);const a=Lt();var l;(null==a?void 0:a.app)&&a.app.unmount(),l={rootViewId:c,superProps:r,app:o,ratioBaseWidth:null!==(s=null===(i=null==t?void 0:t.styleOptions)||void 0===i?void 0:i.ratioBaseWidth)&&void 0!==s?s:750},Mt=l;const u={superProps:r,rootViewId:c};h.isFunction(e)?e(u):n(u)})}),o};t.BackAndroid=ct,t.ContentSizeEvent=class extends Dt{},t.EventBus=Ee,t.ExposureEvent=class extends Dt{},t.FocusEvent=class extends Dt{},t.HIPPY_DEBUG_ADDRESS=Se,t.HIPPY_GLOBAL_DISPOSE_STYLE_NAME="__HIPPY_VUE_DISPOSE_STYLES__",t.HIPPY_GLOBAL_STYLE_NAME="__HIPPY_VUE_STYLES__",t.HIPPY_STATIC_PROTOCOL="hpfile://",t.HIPPY_UNIQUE_ID_KEY="hippyUniqueId",t.HIPPY_VUE_VERSION="unspecified",t.HippyEvent=Dt,t.HippyKeyboardEvent=class extends Dt{},t.HippyLayoutEvent=Vt,t.HippyLoadResourceEvent=class extends Dt{},t.HippyTouchEvent=class extends Dt{},t.IS_PROD=!0,t.ListViewEvent=class extends Dt{},t.NATIVE_COMPONENT_MAP=we,t.Native=nt,t.ViewPagerEvent=class extends Dt{},t._setBeforeRenderToNative=(e,t)=>{h.isFunction(e)&&(1===t?Re=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))},t.createApp=(e,t)=>{const n=m.createRenderer(l({patchProp:_n},gn)).createApp(e);return Nn(n,t)},t.createHippyApp=Nn,t.createSSRApp=(e,t)=>{const n=m.createHydrationRenderer(l({patchProp:_n},gn)).createApp(e);return Nn(n,t)},t.eventIsKeyboardEvent=Bt,t.getCssMap=ye,t.getTagComponent=ut,t.isNativeTag=function(e){return dn.includes(e)},t.parseCSS=function(e,t={source:0}){let n=1,r=1;function o(e){const t=e.match(/\n/g);t&&(n+=t.length);const o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(t){const n=t.exec(e);if(!n)return null;const r=n[0];return o(r),e=e.slice(r.length),n}function s(){i(/^\s*/)}function c(){return o=>(o.position={start:{line:n,column:r},end:{line:n,column:r},source:t.source,content:e},s(),o)}const a=[];function u(o){const i=l(l({},new Error(`${t.source}:${n}:${r}: ${o}`)),{},{reason:o,filename:t.source,line:n,column:r,source:e});if(!t.silent)throw i;a.push(i)}function d(){const t=c();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return null;let n=2;for(;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)n+=1;if(n+=2,""===e.charAt(n-1))return u("End of comment missing");const i=e.slice(2,n-2);return r+=2,o(i),e=e.slice(n),r+=2,t({type:"comment",comment:i})}function p(e=[]){let t;const n=e||[];for(;t=d();)!1!==t&&n.push(t);return n}function f(){let t;const n=[];for(s(),p(n);e.length&&"}"!==e.charAt(0)&&(t=x()||O());)t&&(n.push(t),p(n));return n}function m(){return i(/^{\s*/)}function v(){return i(/^}/)}function g(){const e=i(/^([^{]+)/);return e?e[0].trim().replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,e=>e.replace(/,/g,"‌")).split(/\s*(?![^(]*\)),\s*/).map(e=>e.replace(/\u200C/g,",")):null}function y(){const e=c();let t=i(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+])?)\s*/);if(!t)return null;if(t=t[0].trim(),!i(/^:\s*/))return u("property missing ':'");const n=t.replace(I,""),r=h.camelize(n);let o=(()=>{const e=T[r];return e||r})();const s=i(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]{0,500}?\)|[^};])+)/);let a=s?s[0].trim().replace(I,""):"";switch(o){case"backgroundImage":[o,a]=F(o,a);break;case"transform":{const e=/((\w+)\s*\()/,t=/(?:\(['"]?)(.*?)(?:['"]?\))/,n=a;a=[],n.split(" ").forEach(n=>{if(e.test(n)){let r,o;const i=e.exec(n),s=t.exec(n);i&&([,,r]=i),s&&([,o]=s),0===o.indexOf(".")&&(o="0"+o),parseFloat(o).toString()===o&&(o=parseFloat(o));const c={};c[r]=o,a.push(c)}else u("missing '('")});break}case"fontWeight":break;case"shadowOffset":{const e=a.split(" ").filter(e=>e).map(e=>R(e)),[t]=e;let[,n]=e;n||(n=t),a={x:t,y:n};break}case"collapsable":a=Boolean(a);break;default:a=function(e){if("number"==typeof e)return e;if(P.test(e))try{return parseFloat(e)}catch(e){}return e}(a);["top","left","right","bottom","height","width","size","padding","margin","ratio","radius","offset","spread"].find(e=>o.toLowerCase().indexOf(e)>-1)&&(a=R(a))}const l=e({type:"declaration",value:a,property:o});return i(/^[;\s]*/),l}function b(){let e,t=[];if(!m())return u("missing '{'");for(p(t);e=y();)!1!==e&&(Array.isArray(e)?t=t.concat(e):t.push(e),p(t));return v()?t:u("missing '}'")}function O(){const e=c(),t=g();return t?(p(),e({type:"rule",selectors:t,declarations:b()})):u("selector missing")}function _(){let e;const t=[],n=c();for(;e=i(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),i(/^,\s*/);return t.length?n({type:"keyframe",values:t,declarations:b()}):null}function E(e){const t=new RegExp(`^@${e}\\s*([^;]+);`);return()=>{const n=c(),r=i(t);if(!r)return null;const o={type:e};return o[e]=r[1].trim(),n(o)}}const S=E("import"),w=E("charset"),N=E("namespace");function x(){return"@"!==e[0]?null:function(){const e=c();let t=i(/^@([-\w]+)?keyframes\s*/);if(!t)return null;const n=t[1];if(t=i(/^([-\w]+)\s*/),!t)return u("@keyframes missing name");const r=t[1];if(!m())return u("@keyframes missing '{'");let o,s=p();for(;o=_();)s.push(o),s=s.concat(p());return v()?e({type:"keyframes",name:r,vendor:n,keyframes:s}):u("@keyframes missing '}'")}()||function(){const e=c(),t=i(/^@media *([^{]+)/);if(!t)return null;const n=t[1].trim();if(!m())return u("@media missing '{'");const r=p().concat(f());return v()?e({type:"media",media:n,rules:r}):u("@media missing '}'")}()||function(){const e=c(),t=i(/^@custom-media\s+(--[^\s]+)\s*([^{;]{1,200}?);/);return t?e({type:"custom-media",name:t[1].trim(),media:t[2].trim()}):null}()||function(){const e=c(),t=i(/^@supports *([^{]+)/);if(!t)return null;const n=t[1].trim();if(!m())return u("@supports missing '{'");const r=p().concat(f());return v()?e({type:"supports",supports:n,rules:r}):u("@supports missing '}'")}()||S()||w()||N()||function(){const e=c(),t=i(/^@([-\w]+)?document *([^{]+)/);if(!t)return null;const n=t[1].trim(),r=t[2].trim();if(!m())return u("@document missing '{'");const o=p().concat(f());return v()?e({type:"document",document:r,vendor:n,rules:o}):u("@document missing '}'")}()||function(){const e=c();if(!i(/^@page */))return null;const t=g()||[];if(!m())return u("@page missing '{'");let n,r=p();for(;n=y();)r.push(n),r=r.concat(p());return v()?e({type:"page",selectors:t,declarations:r}):u("@page missing '}'")}()||function(){const e=c();if(!i(/^@host\s*/))return null;if(!m())return u("@host missing '{'");const t=p().concat(f());return v()?e({type:"host",rules:t}):u("@host missing '}'")}()||function(){const e=c();if(!i(/^@font-face\s*/))return null;if(!m())return u("@font-face missing '{'");let t,n=p();for(;t=y();)n.push(t),n=n.concat(p());return v()?e({type:"font-face",declarations:n}):u("@font-face missing '}'")}()}return function e(t,n){const r=t&&"string"==typeof t.type,o=r?t:n;return Object.keys(t).forEach(n=>{const r=t[n];Array.isArray(r)?r.forEach(t=>{e(t,o)}):r&&"object"==typeof r&&e(r,o)}),r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n}),t}(function(){const e=f();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:a}}}(),null)},t.registerElement=lt,t.setScreenSize=function(t){var n;if(t.width&&t.height){const{screen:r}=null===(n=null==e?void 0:e.Hippy)||void 0===n?void 0:n.device;r&&(r.width=t.width,r.height=t.height)}},t.translateColor=x}).call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/process/browser.js"))},"../../packages/hippy-vue-next/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js":function(e,t,n){"use strict";n.r(t),n.d(t,"EffectScope",(function(){return s})),n.d(t,"ITERATE_KEY",(function(){return k})),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 Te})),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 xe})),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("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js"); /** -* @vue/runtime-core v3.4.34 +* @vue/reactivity v3.4.32 +* (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++,f(this),this.fn()}finally{h(this),this._runnings--,i=t,y=e}}stop(){this.active&&(f(this),h(this),this.onStop&&this.onStop(),this.active=!1)}}function p(e){return e.value}function f(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&&T.length;)T.shift()()}function x(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 T=[];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,k=Symbol(""),I=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))),x(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(k)),Object(r.isMap)(e)&&a.push(c.get(I)));break;case"delete":Object(r.isArray)(e)||(a.push(c.get(k)),Object(r.isMap)(e)&&a.push(c.get(I)));break;case"set":Object(r.isMap)(e)&&a.push(c.get(k))}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(xe(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?ke: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,k),Reflect.get(e,"size",e)}function Z(e,t=!1){t||xe(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||xe(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?ke:Ce;return!e&&P(s,0,k),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?ke:Ce;return!t&&P(s,0,l?I:k),{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)},pe={get:ue(!1,!0)},fe={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,pe,ve)}function _e(e){return Se(e,!0,Y,fe,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 xe(e){return!(!e||!e.__v_isShallow)}function Te(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,ke=e=>Object(r.isObject)(e)?_e(e):e;class Ie{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 Ie(o,i,s||!i,n)}function Re(e){var t;y&&i&&(e=je(e),x(i,null!=(t=e.dep)?t:e.dep=A(()=>e.dep=void 0,e instanceof Ie?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||xe(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"}},"../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js":function(e,t,n){"use strict";n.r(t),n.d(t,"BaseTransition",(function(){return X})),n.d(t,"BaseTransitionPropsValidators",(function(){return q})),n.d(t,"Comment",(function(){return zn})),n.d(t,"DeprecationTypes",(function(){return so})),n.d(t,"ErrorCodes",(function(){return u})),n.d(t,"ErrorTypeStrings",(function(){return eo})),n.d(t,"Fragment",(function(){return Yn})),n.d(t,"KeepAlive",(function(){return le})),n.d(t,"Static",(function(){return Kn})),n.d(t,"Suspense",(function(){return Dn})),n.d(t,"Teleport",(function(){return Gt})),n.d(t,"Text",(function(){return Wn})),n.d(t,"assertNumber",(function(){return l})),n.d(t,"callWithAsyncErrorHandling",(function(){return f})),n.d(t,"callWithErrorHandling",(function(){return p})),n.d(t,"cloneVNode",(function(){return fr})),n.d(t,"compatUtils",(function(){return io})),n.d(t,"computed",(function(){return Kr})),n.d(t,"createBlock",(function(){return rr})),n.d(t,"createCommentVNode",(function(){return vr})),n.d(t,"createElementBlock",(function(){return nr})),n.d(t,"createElementVNode",(function(){return lr})),n.d(t,"createHydrationRenderer",(function(){return cn})),n.d(t,"createPropsRestProxy",(function(){return rt})),n.d(t,"createRenderer",(function(){return sn})),n.d(t,"createSlots",(function(){return Le})),n.d(t,"createStaticVNode",(function(){return mr})),n.d(t,"createTextVNode",(function(){return hr})),n.d(t,"createVNode",(function(){return ur})),n.d(t,"defineAsyncComponent",(function(){return se})),n.d(t,"defineComponent",(function(){return oe})),n.d(t,"defineEmits",(function(){return We})),n.d(t,"defineExpose",(function(){return ze})),n.d(t,"defineModel",(function(){return qe})),n.d(t,"defineOptions",(function(){return Ke})),n.d(t,"defineProps",(function(){return Ye})),n.d(t,"defineSlots",(function(){return Ge})),n.d(t,"devtools",(function(){return to})),n.d(t,"getCurrentInstance",(function(){return xr})),n.d(t,"getTransitionRawChildren",(function(){return re})),n.d(t,"guardReactiveProps",(function(){return pr})),n.d(t,"h",(function(){return Gr})),n.d(t,"handleError",(function(){return h})),n.d(t,"hasInjectionContext",(function(){return St})),n.d(t,"initCustomFormatter",(function(){return qr})),n.d(t,"inject",(function(){return Et})),n.d(t,"isMemoSame",(function(){return Xr})),n.d(t,"isRuntimeOnly",(function(){return Dr})),n.d(t,"isVNode",(function(){return or})),n.d(t,"mergeDefaults",(function(){return tt})),n.d(t,"mergeModels",(function(){return nt})),n.d(t,"mergeProps",(function(){return Or})),n.d(t,"nextTick",(function(){return w})),n.d(t,"onActivated",(function(){return de})),n.d(t,"onBeforeMount",(function(){return be})),n.d(t,"onBeforeUnmount",(function(){return Se})),n.d(t,"onBeforeUpdate",(function(){return _e})),n.d(t,"onDeactivated",(function(){return pe})),n.d(t,"onErrorCaptured",(function(){return je})),n.d(t,"onMounted",(function(){return Oe})),n.d(t,"onRenderTracked",(function(){return Te})),n.d(t,"onRenderTriggered",(function(){return xe})),n.d(t,"onServerPrefetch",(function(){return Ne})),n.d(t,"onUnmounted",(function(){return we})),n.d(t,"onUpdated",(function(){return Ee})),n.d(t,"openBlock",(function(){return Jn})),n.d(t,"popScopeId",(function(){return B})),n.d(t,"provide",(function(){return _t})),n.d(t,"pushScopeId",(function(){return V})),n.d(t,"queuePostFlushCb",(function(){return T})),n.d(t,"registerRuntimeCompiler",(function(){return Fr})),n.d(t,"renderList",(function(){return Me})),n.d(t,"renderSlot",(function(){return Fe})),n.d(t,"resolveComponent",(function(){return Ae})),n.d(t,"resolveDirective",(function(){return Ie})),n.d(t,"resolveDynamicComponent",(function(){return ke})),n.d(t,"resolveFilter",(function(){return oo})),n.d(t,"resolveTransitionHooks",(function(){return Q})),n.d(t,"setBlockTracking",(function(){return er})),n.d(t,"setDevtoolsHook",(function(){return no})),n.d(t,"setTransitionHooks",(function(){return ne})),n.d(t,"ssrContextKey",(function(){return hn})),n.d(t,"ssrUtils",(function(){return ro})),n.d(t,"toHandlers",(function(){return De})),n.d(t,"transformVNodeArgs",(function(){return sr})),n.d(t,"useAttrs",(function(){return Ze})),n.d(t,"useModel",(function(){return Nn})),n.d(t,"useSSRContext",(function(){return mn})),n.d(t,"useSlots",(function(){return Xe})),n.d(t,"useTransitionState",(function(){return K})),n.d(t,"version",(function(){return Zr})),n.d(t,"warn",(function(){return Qr})),n.d(t,"watch",(function(){return On})),n.d(t,"watchEffect",(function(){return vn})),n.d(t,"watchPostEffect",(function(){return gn})),n.d(t,"watchSyncEffect",(function(){return yn})),n.d(t,"withAsyncContext",(function(){return ot})),n.d(t,"withCtx",(function(){return U})),n.d(t,"withDefaults",(function(){return Je})),n.d(t,"withDirectives",(function(){return H})),n.d(t,"withMemo",(function(){return Jr})),n.d(t,"withScopeId",(function(){return $}));var r=n("../../packages/hippy-vue-next/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js");n.d(t,"EffectScope",(function(){return r.EffectScope})),n.d(t,"ReactiveEffect",(function(){return r.ReactiveEffect})),n.d(t,"TrackOpTypes",(function(){return r.TrackOpTypes})),n.d(t,"TriggerOpTypes",(function(){return r.TriggerOpTypes})),n.d(t,"customRef",(function(){return r.customRef})),n.d(t,"effect",(function(){return r.effect})),n.d(t,"effectScope",(function(){return r.effectScope})),n.d(t,"getCurrentScope",(function(){return r.getCurrentScope})),n.d(t,"isProxy",(function(){return r.isProxy})),n.d(t,"isReactive",(function(){return r.isReactive})),n.d(t,"isReadonly",(function(){return r.isReadonly})),n.d(t,"isRef",(function(){return r.isRef})),n.d(t,"isShallow",(function(){return r.isShallow})),n.d(t,"markRaw",(function(){return r.markRaw})),n.d(t,"onScopeDispose",(function(){return r.onScopeDispose})),n.d(t,"proxyRefs",(function(){return r.proxyRefs})),n.d(t,"reactive",(function(){return r.reactive})),n.d(t,"readonly",(function(){return r.readonly})),n.d(t,"ref",(function(){return r.ref})),n.d(t,"shallowReactive",(function(){return r.shallowReactive})),n.d(t,"shallowReadonly",(function(){return r.shallowReadonly})),n.d(t,"shallowRef",(function(){return r.shallowRef})),n.d(t,"stop",(function(){return r.stop})),n.d(t,"toRaw",(function(){return r.toRaw})),n.d(t,"toRef",(function(){return r.toRef})),n.d(t,"toRefs",(function(){return r.toRefs})),n.d(t,"toValue",(function(){return r.toValue})),n.d(t,"triggerRef",(function(){return r.triggerRef})),n.d(t,"unref",(function(){return r.unref}));var o=n("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js");n.d(t,"camelize",(function(){return o.camelize})),n.d(t,"capitalize",(function(){return o.capitalize})),n.d(t,"normalizeClass",(function(){return o.normalizeClass})),n.d(t,"normalizeProps",(function(){return o.normalizeProps})),n.d(t,"normalizeStyle",(function(){return o.normalizeStyle})),n.d(t,"toDisplayString",(function(){return o.toDisplayString})),n.d(t,"toHandlerKey",(function(){return o.toHandlerKey})); +/** +* @vue/runtime-core v3.4.32 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ -const i=[];let s=!1;function c(e,...t){if(s)return;s=!0,Object(r.pauseTracking)();const n=i.length?i[i.length-1].component:null,o=n&&n.appContext.config.warnHandler,c=function(){let e=i[i.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}();if(o)f(o,n,11,[e+t.map(e=>{var t,n;return null!=(n=null==(t=e.toString)?void 0:t.call(e))?n:JSON.stringify(e)}).join(""),n&&n.proxy,c.map(({vnode:e})=>`at <${Wr(n,e.type)}>`).join("\n"),c]);else{const n=["[Vue warn]: "+e,...t];c.length&&n.push("\n",...function(e){const t=[];return e.forEach((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=!!e.component&&null==e.component.parent,o=" at <"+Wr(e.component,e.type,r),i=">"+n;return e.props?[o,...a(e.props),i]:[o+i]}(e))}),t}(c)),console.warn(...n)}Object(r.resetTracking)(),s=!1}function a(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(n=>{t.push(...function e(t,n,i){return Object(o.isString)(n)?(n=JSON.stringify(n),i?n:[`${t}=${n}`]):"number"==typeof n||"boolean"==typeof n||null==n?i?n:[`${t}=${n}`]:Object(r.isRef)(n)?(n=e(t,Object(r.toRaw)(n.value),!0),i?n:[t+"=Ref<",n,">"]):Object(o.isFunction)(n)?[`${t}=fn${n.name?`<${n.name}>`:""}`]:(n=Object(r.toRaw)(n),i?n:[t+"=",n])}(n,e[n]))}),n.length>3&&t.push(" ..."),t}function l(e,t){}const u={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE"},d={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update"};function f(e,t,n,r){try{return r?e(...r):e()}catch(e){h(e,t,n)}}function p(e,t,n,r){if(Object(o.isFunction)(e)){const i=f(e,t,n,r);return i&&Object(o.isPromise)(i)&&i.catch(e=>{h(e,t,n)}),i}if(Object(o.isArray)(e)){const o=[];for(let i=0;i>>1,o=g[r],i=C(o);iC(e)-C(t));if(b.length=0,O)return void O.push(...e);for(O=e,_=0;_null==e.id?1/0:e.id,I=(e,t)=>{const n=C(e)-C(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function k(e){v=!1,m=!0,g.sort(I);o.NOOP;try{for(y=0;yU;function U(e,t=L,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&er(-1);const o=D(t);let i;try{i=e(...n)}finally{D(o),r._d&&er(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function H(e,t){if(null===L)return e;const n=Ur(L),r=e.dirs||(e.dirs=[]);for(let e=0;e{e.isMounted=!0}),Se(()=>{e.isUnmounting=!0}),e}const G=[Function,Array],q={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:G,onEnter:G,onAfterEnter:G,onEnterCancelled:G,onBeforeLeave:G,onLeave:G,onAfterLeave:G,onLeaveCancelled:G,onBeforeAppear:G,onAppear:G,onAfterAppear:G,onAppearCancelled:G},J=e=>{const t=e.subTree;return t.component?J(t.component):t},X={name:"BaseTransition",props:q,setup(e,{slots:t}){const n=Tr(),o=K();return()=>{const i=t.default&&re(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){let e=!1;for(const t of i)if(t.type!==zn){0,s=t,e=!0;break}}const c=Object(r.toRaw)(e),{mode:a}=c;if(o.isLeaving)return ee(s);const l=te(s);if(!l)return ee(s);let u=Q(l,c,o,n,e=>u=e);ne(l,u);const d=n.subTree,f=d&&te(d);if(f&&f.type!==zn&&!ir(l,f)&&J(n).type!==zn){const e=Q(f,c,o,n);if(ne(f,e),"out-in"===a&&l.type!==zn)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},ee(s);"in-out"===a&&l.type!==zn&&(e.delayLeave=(e,t,n)=>{Z(o,f)[String(f.key)]=f,e[W]=()=>{t(),e[W]=void 0,delete u.delayedLeave},u.delayedLeave=n})}return s}}};function Z(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Q(e,t,n,r,i){const{appear:s,mode:c,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:d,onEnterCancelled:f,onBeforeLeave:h,onLeave:m,onAfterLeave:v,onLeaveCancelled:g,onBeforeAppear:y,onAppear:b,onAfterAppear:O,onAppearCancelled:_}=t,E=String(e.key),S=Z(n,e),w=(e,t)=>{e&&p(e,r,9,t)},N=(e,t)=>{const n=t[1];w(e,t),Object(o.isArray)(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},T={mode:c,persisted:a,beforeEnter(t){let r=l;if(!n.isMounted){if(!s)return;r=y||l}t[W]&&t[W](!0);const o=S[E];o&&ir(e,o)&&o.el[W]&&o.el[W](),w(r,[t])},enter(e){let t=u,r=d,o=f;if(!n.isMounted){if(!s)return;t=b||u,r=O||d,o=_||f}let i=!1;const c=e[z]=t=>{i||(i=!0,w(t?o:r,[e]),T.delayedLeave&&T.delayedLeave(),e[z]=void 0)};t?N(t,[e,c]):c()},leave(t,r){const o=String(e.key);if(t[z]&&t[z](!0),n.isUnmounting)return r();w(h,[t]);let i=!1;const s=t[W]=n=>{i||(i=!0,r(),w(n?g:v,[t]),t[W]=void 0,S[o]===e&&delete S[o])};S[o]=e,m?N(m,[t,s]):s()},clone(e){const o=Q(e,t,n,r,i);return i&&i(o),o}};return T}function ee(e){if(ae(e))return(e=pr(e)).children=null,e}function te(e){if(!ae(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&Object(o.isFunction)(n.default))return n.default()}}function ne(e,t){6&e.shapeFlag&&e.component?ne(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function re(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let e=0;e{var t,n;return null!=(n=null==(t=e.toString)?void 0:t.call(e))?n:JSON.stringify(e)}).join(""),n&&n.proxy,c.map(({vnode:e})=>`at <${Wr(n,e.type)}>`).join("\n"),c]);else{const n=["[Vue warn]: "+e,...t];c.length&&n.push("\n",...function(e){const t=[];return e.forEach((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=!!e.component&&null==e.component.parent,o=" at <"+Wr(e.component,e.type,r),i=">"+n;return e.props?[o,...a(e.props),i]:[o+i]}(e))}),t}(c)),console.warn(...n)}Object(r.resetTracking)(),s=!1}function a(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(n=>{t.push(...function e(t,n,i){return Object(o.isString)(n)?(n=JSON.stringify(n),i?n:[`${t}=${n}`]):"number"==typeof n||"boolean"==typeof n||null==n?i?n:[`${t}=${n}`]:Object(r.isRef)(n)?(n=e(t,Object(r.toRaw)(n.value),!0),i?n:[t+"=Ref<",n,">"]):Object(o.isFunction)(n)?[`${t}=fn${n.name?`<${n.name}>`:""}`]:(n=Object(r.toRaw)(n),i?n:[t+"=",n])}(n,e[n]))}),n.length>3&&t.push(" ..."),t}function l(e,t){}const u={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE"},d={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update"};function p(e,t,n,r){try{return r?e(...r):e()}catch(e){h(e,t,n)}}function f(e,t,n,r){if(Object(o.isFunction)(e)){const i=p(e,t,n,r);return i&&Object(o.isPromise)(i)&&i.catch(e=>{h(e,t,n)}),i}if(Object(o.isArray)(e)){const o=[];for(let i=0;i>>1,o=g[r],i=C(o);iC(e)-C(t));if(b.length=0,O)return void O.push(...e);for(O=e,_=0;_null==e.id?1/0:e.id,k=(e,t)=>{const n=C(e)-C(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function I(e){v=!1,m=!0,g.sort(k);o.NOOP;try{for(y=0;yU;function U(e,t=L,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&er(-1);const o=D(t);let i;try{i=e(...n)}finally{D(o),r._d&&er(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function H(e,t){if(null===L)return e;const n=Ur(L),r=e.dirs||(e.dirs=[]);for(let e=0;e{e.isMounted=!0}),Se(()=>{e.isUnmounting=!0}),e}const G=[Function,Array],q={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:G,onEnter:G,onAfterEnter:G,onEnterCancelled:G,onBeforeLeave:G,onLeave:G,onAfterLeave:G,onLeaveCancelled:G,onBeforeAppear:G,onAppear:G,onAfterAppear:G,onAppearCancelled:G},J=e=>{const t=e.subTree;return t.component?J(t.component):t},X={name:"BaseTransition",props:q,setup(e,{slots:t}){const n=xr(),o=K();return()=>{const i=t.default&&re(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){let e=!1;for(const t of i)if(t.type!==zn){0,s=t,e=!0;break}}const c=Object(r.toRaw)(e),{mode:a}=c;if(o.isLeaving)return ee(s);const l=te(s);if(!l)return ee(s);let u=Q(l,c,o,n,e=>u=e);ne(l,u);const d=n.subTree,p=d&&te(d);if(p&&p.type!==zn&&!ir(l,p)&&J(n).type!==zn){const e=Q(p,c,o,n);if(ne(p,e),"out-in"===a&&l.type!==zn)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},ee(s);"in-out"===a&&l.type!==zn&&(e.delayLeave=(e,t,n)=>{Z(o,p)[String(p.key)]=p,e[W]=()=>{t(),e[W]=void 0,delete u.delayedLeave},u.delayedLeave=n})}return s}}};function Z(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Q(e,t,n,r,i){const{appear:s,mode:c,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:d,onEnterCancelled:p,onBeforeLeave:h,onLeave:m,onAfterLeave:v,onLeaveCancelled:g,onBeforeAppear:y,onAppear:b,onAfterAppear:O,onAppearCancelled:_}=t,E=String(e.key),S=Z(n,e),w=(e,t)=>{e&&f(e,r,9,t)},N=(e,t)=>{const n=t[1];w(e,t),Object(o.isArray)(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},x={mode:c,persisted:a,beforeEnter(t){let r=l;if(!n.isMounted){if(!s)return;r=y||l}t[W]&&t[W](!0);const o=S[E];o&&ir(e,o)&&o.el[W]&&o.el[W](),w(r,[t])},enter(e){let t=u,r=d,o=p;if(!n.isMounted){if(!s)return;t=b||u,r=O||d,o=_||p}let i=!1;const c=e[z]=t=>{i||(i=!0,w(t?o:r,[e]),x.delayedLeave&&x.delayedLeave(),e[z]=void 0)};t?N(t,[e,c]):c()},leave(t,r){const o=String(e.key);if(t[z]&&t[z](!0),n.isUnmounting)return r();w(h,[t]);let i=!1;const s=t[W]=n=>{i||(i=!0,r(),w(n?g:v,[t]),t[W]=void 0,S[o]===e&&delete S[o])};S[o]=e,m?N(m,[t,s]):s()},clone(e){const o=Q(e,t,n,r,i);return i&&i(o),o}};return x}function ee(e){if(ae(e))return(e=fr(e)).children=null,e}function te(e){if(!ae(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&Object(o.isFunction)(n.default))return n.default()}}function ne(e,t){6&e.shapeFlag&&e.component?ne(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function re(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let e=0;eObject(o.extend)({name:e.name},t,{setup:e}))():e}const ie=e=>!!e.type.__asyncLoader -/*! #__NO_SIDE_EFFECTS__ */;function se(e){Object(o.isFunction)(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:s=200,timeout:c,suspensible:a=!0,onError:l}=e;let u,d=null,f=0;const p=()=>{let e;return d||(e=d=t().catch(e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise((t,n)=>{l(e,()=>t((f++,d=null,p())),()=>n(e),f+1)});throw e}).then(t=>e!==d&&d?d:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),u=t,t)))};return oe({name:"AsyncComponentWrapper",__asyncLoader:p,get __asyncResolved(){return u},setup(){const e=Nr;if(u)return()=>ce(u,e);const t=t=>{d=null,h(t,e,13,!i)};if(a&&e.suspense||Rr)return p().then(t=>()=>ce(t,e)).catch(e=>(t(e),()=>i?ur(i,{error:e}):null));const o=Object(r.ref)(!1),l=Object(r.ref)(),f=Object(r.ref)(!!s);return s&&setTimeout(()=>{f.value=!1},s),null!=c&&setTimeout(()=>{if(!o.value&&!l.value){const e=new Error(`Async component timed out after ${c}ms.`);t(e),l.value=e}},c),p().then(()=>{o.value=!0,e.parent&&ae(e.parent.vnode)&&(e.parent.effect.dirty=!0,N(e.parent.update))}).catch(e=>{t(e),l.value=e}),()=>o.value&&u?ce(u,e):l.value&&i?ur(i,{error:l.value}):n&&!f.value?ur(n):void 0}})}function ce(e,t){const{ref:n,props:r,children:o,ce:i}=t.vnode,s=ur(e,r,o);return s.ref=n,s.ce=i,delete t.vnode.ce,s}const ae=e=>e.type.__isKeepAlive,le={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Tr(),r=n.ctx;if(!r.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const i=new Map,s=new Set;let c=null;const a=n.suspense,{renderer:{p:l,m:u,um:d,o:{createElement:f}}}=r,p=f("div");function h(e){me(e),d(e,n,a,!0)}function m(e){i.forEach((t,n)=>{const r=Yr(t.type);!r||e&&e(r)||v(n)})}function v(e){const t=i.get(e);c&&ir(t,c)?c&&me(c):h(t),i.delete(e),s.delete(e)}r.activate=(e,t,n,r,i)=>{const s=e.component;u(e,t,n,0,a),l(s.vnode,e,t,n,s,a,r,e.slotScopeIds,i),on(()=>{s.isDeactivated=!1,s.a&&Object(o.invokeArrayFns)(s.a);const t=e.props&&e.props.onVnodeMounted;t&&_r(t,s.parent,e)},a)},r.deactivate=e=>{const t=e.component;pn(t.m),pn(t.a),u(e,p,null,1,a),on(()=>{t.da&&Object(o.invokeArrayFns)(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&_r(n,t.parent,e),t.isDeactivated=!0},a)},On(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>ue(e,t)),t&&m(e=>!ue(t,e))},{flush:"post",deep:!0});let g=null;const y=()=>{null!=g&&(Ln(n.subTree.type)?on(()=>{i.set(g,ve(n.subTree))},n.subTree.suspense):i.set(g,ve(n.subTree)))};return Oe(y),Ee(y),Se(()=>{i.forEach(e=>{const{subTree:t,suspense:r}=n,o=ve(t);if(e.type!==o.type||e.key!==o.key)h(e);else{me(o);const e=o.component.da;e&&on(e,r)}})}),()=>{if(g=null,!t.default)return null;const n=t.default(),r=n[0];if(n.length>1)return c=null,n;if(!(or(r)&&(4&r.shapeFlag||128&r.shapeFlag)))return c=null,r;let o=ve(r);const a=o.type,l=Yr(ie(o)?o.type.__asyncResolved||{}:a),{include:u,exclude:d,max:f}=e;if(u&&(!l||!ue(u,l))||d&&l&&ue(d,l))return c=o,r;const p=null==o.key?a:o.key,h=i.get(p);return o.el&&(o=pr(o),128&r.shapeFlag&&(r.ssContent=o)),g=p,h?(o.el=h.el,o.component=h.component,o.transition&&ne(o,o.transition),o.shapeFlag|=512,s.delete(p),s.add(p)):(s.add(p),f&&s.size>parseInt(f,10)&&v(s.values().next().value)),o.shapeFlag|=256,c=o,Ln(r.type)?r:o}}};function ue(e,t){return Object(o.isArray)(e)?e.some(e=>ue(e,t)):Object(o.isString)(e)?e.split(",").includes(t):!!Object(o.isRegExp)(e)&&e.test(t)}function de(e,t){pe(e,"a",t)}function fe(e,t){pe(e,"da",t)}function pe(e,t,n=Nr){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(ge(t,r,n),n){let e=n.parent;for(;e&&e.parent;)ae(e.parent.vnode)&&he(r,t,n,e),e=e.parent}}function he(e,t,n,r){const i=ge(t,e,r,!0);we(()=>{Object(o.remove)(r[t],i)},n)}function me(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ve(e){return 128&e.shapeFlag?e.ssContent:e}function ge(e,t,n=Nr,o=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{Object(r.pauseTracking)();const i=Ar(n),s=p(t,n,e,o);return i(),Object(r.resetTracking)(),s});return o?i.unshift(s):i.push(s),s}}const ye=e=>(t,n=Nr)=>{Rr&&"sp"!==e||ge(e,(...e)=>t(...e),n)},be=ye("bm"),Oe=ye("m"),_e=ye("bu"),Ee=ye("u"),Se=ye("bum"),we=ye("um"),Ne=ye("sp"),Te=ye("rtg"),xe=ye("rtc");function je(e,t=Nr){ge("ec",e,t)}function Ae(e,t){return Pe("components",e,!0,t)||e}const Ce=Symbol.for("v-ndc");function Ie(e){return Object(o.isString)(e)?Pe("components",e,!1)||e:e||Ce}function ke(e){return Pe("directives",e)}function Pe(e,t,n=!0,r=!1){const i=L||Nr;if(i){const n=i.type;if("components"===e){const e=Yr(n,!1);if(e&&(e===t||e===Object(o.camelize)(t)||e===Object(o.capitalize)(Object(o.camelize)(t))))return n}const s=Re(i[e]||n[e],t)||Re(i.appContext[e],t);return!s&&r?n:s}}function Re(e,t){return e&&(e[t]||e[Object(o.camelize)(t)]||e[Object(o.capitalize)(Object(o.camelize)(t))])}function Me(e,t,n,r){let i;const s=n&&n[r];if(Object(o.isArray)(e)||Object(o.isString)(e)){i=new Array(e.length);for(let n=0,r=e.length;nt(e,n,void 0,s&&s[n]));else{const n=Object.keys(e);i=new Array(n.length);for(let r=0,o=n.length;r{const t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function Fe(e,t,n={},r,o){if(L.isCE||L.parent&&ie(L.parent)&&L.parent.isCE)return"default"!==t&&(n.name=t),ur("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),Jn();const s=i&&function e(t){return t.some(t=>!or(t)||t.type!==zn&&!(t.type===Yn&&!e(t.children)))?t:null}(i(n)),c=rr(Yn,{key:(n.key||s&&s.key||"_"+t)+(!s&&r?"_fb":"")},s||(r?r():[]),s&&1===e._?64:-2);return!o&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),i&&i._c&&(i._d=!0),c}function De(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?"on:"+r:Object(o.toHandlerKey)(r)]=e[r];return n}const Ve=e=>e?Ir(e)?Ur(e):Ve(e.parent):null,Be=Object(o.extend)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ve(e.parent),$root:e=>Ve(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?lt(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,N(e.update)}),$nextTick:e=>e.n||(e.n=w.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?En.bind(e):o.NOOP}),$e=(e,t)=>e!==o.EMPTY_OBJ&&!e.__isScriptSetup&&Object(o.hasOwn)(e,t),Ue={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:i,data:s,props:c,accessCache:a,type:l,appContext:u}=e;let d;if("$"!==t[0]){const r=a[t];if(void 0!==r)switch(r){case 1:return i[t];case 2:return s[t];case 4:return n[t];case 3:return c[t]}else{if($e(i,t))return a[t]=1,i[t];if(s!==o.EMPTY_OBJ&&Object(o.hasOwn)(s,t))return a[t]=2,s[t];if((d=e.propsOptions[0])&&Object(o.hasOwn)(d,t))return a[t]=3,c[t];if(n!==o.EMPTY_OBJ&&Object(o.hasOwn)(n,t))return a[t]=4,n[t];__VUE_OPTIONS_API__&&!it||(a[t]=0)}}const f=Be[t];let p,h;return f?("$attrs"===t&&Object(r.track)(e.attrs,"get",""),f(e)):(p=l.__cssModules)&&(p=p[t])?p:n!==o.EMPTY_OBJ&&Object(o.hasOwn)(n,t)?(a[t]=4,n[t]):(h=u.config.globalProperties,Object(o.hasOwn)(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return $e(i,t)?(i[t]=n,!0):r!==o.EMPTY_OBJ&&Object(o.hasOwn)(r,t)?(r[t]=n,!0):!Object(o.hasOwn)(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(s[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},c){let a;return!!n[c]||e!==o.EMPTY_OBJ&&Object(o.hasOwn)(e,c)||$e(t,c)||(a=s[0])&&Object(o.hasOwn)(a,c)||Object(o.hasOwn)(r,c)||Object(o.hasOwn)(Be,c)||Object(o.hasOwn)(i.config.globalProperties,c)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:Object(o.hasOwn)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};const He=Object(o.extend)({},Ue,{get(e,t){if(t!==Symbol.unscopables)return Ue.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!Object(o.isGloballyAllowed)(t)});function Ye(){return null}function We(){return null}function ze(e){0}function Ke(e){0}function Ge(){return null}function qe(){0}function Je(e,t){return null}function Xe(){return Qe().slots}function Ze(){return Qe().attrs}function Qe(){const e=Tr();return e.setupContext||(e.setupContext=$r(e))}function et(e){return Object(o.isArray)(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function tt(e,t){const n=et(e);for(const e in t){if(e.startsWith("__skip"))continue;let r=n[e];r?Object(o.isArray)(r)||Object(o.isFunction)(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:null===r&&(r=n[e]={default:t[e]}),r&&t["__skip_"+e]&&(r.skipFactory=!0)}return n}function nt(e,t){return e&&t?Object(o.isArray)(e)&&Object(o.isArray)(t)?e.concat(t):Object(o.extend)({},et(e),et(t)):e||t}function rt(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function ot(e){const t=Tr();let n=e();return Cr(),Object(o.isPromise)(n)&&(n=n.catch(e=>{throw Ar(t),e})),[n,()=>Ar(t)]}let it=!0;function st(e){const t=lt(e),n=e.proxy,i=e.ctx;it=!1,t.beforeCreate&&ct(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:a,watch:l,provide:u,inject:d,created:f,beforeMount:p,mounted:h,beforeUpdate:m,updated:v,activated:g,deactivated:y,beforeDestroy:b,beforeUnmount:O,destroyed:_,unmounted:E,render:S,renderTracked:w,renderTriggered:N,errorCaptured:T,serverPrefetch:x,expose:j,inheritAttrs:A,components:C,directives:I,filters:k}=t;if(d&&function(e,t,n=o.NOOP){Object(o.isArray)(e)&&(e=pt(e));for(const n in e){const i=e[n];let s;s=Object(o.isObject)(i)?"default"in i?Et(i.from||n,i.default,!0):Et(i.from||n):Et(i),Object(r.isRef)(s)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[n]=s}}(d,i,null),a)for(const e in a){const t=a[e];Object(o.isFunction)(t)&&(i[e]=t.bind(n))}if(s){0;const t=s.call(n,n);0,Object(o.isObject)(t)&&(e.data=Object(r.reactive)(t))}if(it=!0,c)for(const e in c){const t=c[e],r=Object(o.isFunction)(t)?t.bind(n,n):Object(o.isFunction)(t.get)?t.get.bind(n,n):o.NOOP;0;const s=!Object(o.isFunction)(t)&&Object(o.isFunction)(t.set)?t.set.bind(n):o.NOOP,a=Kr({get:r,set:s});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(l)for(const e in l)at(l[e],i,n,e);if(u){const e=Object(o.isFunction)(u)?u.call(n):u;Reflect.ownKeys(e).forEach(t=>{_t(t,e[t])})}function P(e,t){Object(o.isArray)(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(f&&ct(f,e,"c"),P(be,p),P(Oe,h),P(_e,m),P(Ee,v),P(de,g),P(fe,y),P(je,T),P(xe,w),P(Te,N),P(Se,O),P(we,E),P(Ne,x),Object(o.isArray)(j))if(j.length){const t=e.exposed||(e.exposed={});j.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})})}else e.exposed||(e.exposed={});S&&e.render===o.NOOP&&(e.render=S),null!=A&&(e.inheritAttrs=A),C&&(e.components=C),I&&(e.directives=I)}function ct(e,t,n){p(Object(o.isArray)(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function at(e,t,n,r){const i=r.includes(".")?Sn(n,r):()=>n[r];if(Object(o.isString)(e)){const n=t[e];Object(o.isFunction)(n)&&On(i,n)}else if(Object(o.isFunction)(e))On(i,e.bind(n));else if(Object(o.isObject)(e))if(Object(o.isArray)(e))e.forEach(e=>at(e,t,n,r));else{const r=Object(o.isFunction)(e.handler)?e.handler.bind(n):t[e.handler];Object(o.isFunction)(r)&&On(i,r,e)}else 0}function lt(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:c}}=e.appContext,a=s.get(t);let l;return a?l=a:i.length||n||r?(l={},i.length&&i.forEach(e=>ut(l,e,c,!0)),ut(l,t,c)):l=t,Object(o.isObject)(t)&&s.set(t,l),l}function ut(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&ut(e,i,n,!0),o&&o.forEach(t=>ut(e,t,n,!0));for(const o in t)if(r&&"expose"===o);else{const r=dt[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const dt={data:ft,props:vt,emits:vt,methods:mt,computed:mt,beforeCreate:ht,created:ht,beforeMount:ht,mounted:ht,beforeUpdate:ht,updated:ht,beforeDestroy:ht,beforeUnmount:ht,destroyed:ht,unmounted:ht,activated:ht,deactivated:ht,errorCaptured:ht,serverPrefetch:ht,components:mt,directives:mt,watch:function(e,t){if(!e)return t;if(!t)return e;const n=Object(o.extend)(Object.create(null),e);for(const r in t)n[r]=ht(e[r],t[r]);return n},provide:ft,inject:function(e,t){return mt(pt(e),pt(t))}};function ft(e,t){return t?e?function(){return Object(o.extend)(Object(o.isFunction)(e)?e.call(this,this):e,Object(o.isFunction)(t)?t.call(this,this):t)}:t:e}function pt(e){if(Object(o.isArray)(e)){const t={};for(let n=0;n(s.has(e)||(e&&Object(o.isFunction)(e.install)?(s.add(e),e.install(a,...t)):Object(o.isFunction)(e)&&(s.add(e),e(a,...t))),a),mixin:e=>(__VUE_OPTIONS_API__&&(i.mixins.includes(e)||i.mixins.push(e)),a),component:(e,t)=>t?(i.components[e]=t,a):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,a):i.directives[e],mount(o,s,l){if(!c){0;const u=ur(n,r);return u.appContext=i,!0===l?l="svg":!1===l&&(l=void 0),s&&t?t(u,o):e(u,o,l),c=!0,a._container=o,o.__vue_app__=a,Ur(u.component)}},unmount(){c&&(e(null,a._container),delete a._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,a),runWithContext(e){const t=Ot;Ot=a;try{return e()}finally{Ot=t}}};return a}}let Ot=null;function _t(e,t){if(Nr){let n=Nr.provides;const r=Nr.parent&&Nr.parent.provides;r===n&&(n=Nr.provides=Object.create(r)),n[e]=t}else 0}function Et(e,t,n=!1){const r=Nr||L;if(r||Ot){const i=r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Ot._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&Object(o.isFunction)(t)?t.call(r&&r.proxy):t}else 0}function St(){return!!(Nr||L||Ot)}const wt={},Nt=()=>Object.create(wt),Tt=e=>Object.getPrototypeOf(e)===wt;function xt(e,t,n,i){const[s,c]=e.propsOptions;let a,l=!1;if(t)for(let r in t){if(Object(o.isReservedProp)(r))continue;const u=t[r];let d;s&&Object(o.hasOwn)(s,d=Object(o.camelize)(r))?c&&c.includes(d)?(a||(a={}))[d]=u:n[d]=u:An(e.emitsOptions,r)||r in i&&u===i[r]||(i[r]=u,l=!0)}if(c){const t=Object(r.toRaw)(n),i=a||o.EMPTY_OBJ;for(let r=0;r{l=!0;const[n,r]=Ct(e,t,!0);Object(o.extend)(c,n),r&&a.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!s&&!l)return Object(o.isObject)(e)&&r.set(e,o.EMPTY_ARR),o.EMPTY_ARR;if(Object(o.isArray)(s))for(let e=0;e-1,r[1]=n<0||e-1||Object(o.hasOwn)(r,"default"))&&a.push(t)}}}}const u=[c,a];return Object(o.isObject)(e)&&r.set(e,u),u}function It(e){return"$"!==e[0]&&!Object(o.isReservedProp)(e)}function kt(e){if(null===e)return"null";if("function"==typeof e)return e.name||"";if("object"==typeof e){return e.constructor&&e.constructor.name||""}return""}function Pt(e,t){return kt(e)===kt(t)}function Rt(e,t){return Object(o.isArray)(t)?t.findIndex(t=>Pt(t,e)):Object(o.isFunction)(t)&&Pt(t,e)?0:-1}const Mt=e=>"_"===e[0]||"$stable"===e,Lt=e=>Object(o.isArray)(e)?e.map(gr):[gr(e)],Ft=(e,t,n)=>{if(t._n)return t;const r=U((...e)=>Lt(t(...e)),n);return r._c=!1,r},Dt=(e,t,n)=>{const r=e._ctx;for(const n in e){if(Mt(n))continue;const i=e[n];if(Object(o.isFunction)(i))t[n]=Ft(0,i,r);else if(null!=i){0;const e=Lt(i);t[n]=()=>e}}},Vt=(e,t)=>{const n=Lt(t);e.slots.default=()=>n},Bt=(e,t,n)=>{for(const r in t)(n||"_"!==r)&&(e[r]=t[r])};function $t(e,t,n,i,s=!1){if(Object(o.isArray)(e))return void e.forEach((e,r)=>$t(e,t&&(Object(o.isArray)(t)?t[r]:t),n,i,s));if(ie(i)&&!s)return;const c=4&i.shapeFlag?Ur(i.component):i.el,a=s?null:c,{i:l,r:u}=e;const d=t&&t.r,p=l.refs===o.EMPTY_OBJ?l.refs={}:l.refs,h=l.setupState;if(null!=d&&d!==u&&(Object(o.isString)(d)?(p[d]=null,Object(o.hasOwn)(h,d)&&(h[d]=null)):Object(r.isRef)(d)&&(d.value=null)),Object(o.isFunction)(u))f(u,l,12,[a,p]);else{const t=Object(o.isString)(u),i=Object(r.isRef)(u);if(t||i){const r=()=>{if(e.f){const n=t?Object(o.hasOwn)(h,u)?h[u]:p[u]:u.value;s?Object(o.isArray)(n)&&Object(o.remove)(n,c):Object(o.isArray)(n)?n.includes(c)||n.push(c):t?(p[u]=[c],Object(o.hasOwn)(h,u)&&(h[u]=p[u])):(u.value=[c],e.k&&(p[e.k]=u.value))}else t?(p[u]=a,Object(o.hasOwn)(h,u)&&(h[u]=a)):i&&(u.value=a,e.k&&(p[e.k]=a))};a?(r.id=-1,on(r,n)):r()}else 0}}const Ut=Symbol("_vte"),Ht=e=>e&&(e.disabled||""===e.disabled),Yt=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Wt=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,zt=(e,t)=>{const n=e&&e.to;if(Object(o.isString)(n)){if(t){return t(n)}return null}return n};function Kt(e,t,n,{o:{insert:r},m:o},i=2){0===i&&r(e.targetAnchor,t,n);const{el:s,anchor:c,shapeFlag:a,children:l,props:u}=e,d=2===i;if(d&&r(s,t,n),(!d||Ht(u))&&16&a)for(let e=0;e{16&y&&u(b,e,t,o,i,s,c,a)};g?O(n,l):d&&O(d,v)}else{t.el=e.el,t.targetStart=e.targetStart;const r=t.anchor=e.anchor,u=t.target=e.target,p=t.targetAnchor=e.targetAnchor,m=Ht(e.props),v=m?n:u,y=m?r:p;if("svg"===s||Yt(u)?s="svg":("mathml"===s||Wt(u))&&(s="mathml"),O?(f(e.dynamicChildren,O,v,o,i,s,c),fn(e,t,!0)):a||d(e,t,v,y,o,i,s,c,!1),g)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Kt(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=zt(t.props,h);e&&Kt(t,e,null,l,0)}else m&&Kt(t,u,p,l,1)}qt(t)},remove(e,t,n,{um:r,o:{remove:o}},i){const{shapeFlag:s,children:c,anchor:a,targetStart:l,targetAnchor:u,target:d,props:f}=e;if(d&&(o(l),o(u)),i&&o(a),16&s){const e=i||!Ht(f);for(let o=0;o{Jt||(console.error("Hydration completed but contains mismatches."),Jt=!0)},Zt=e=>(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0,Qt=e=>8===e.nodeType;function en(e){const{mt:t,p:n,o:{patchProp:i,createText:s,nextSibling:a,parentNode:l,remove:u,insert:d,createComment:f}}=e,p=(n,r,o,i,u,f=!1)=>{f=f||!!r.dynamicChildren;const _=Qt(n)&&"["===n.data,E=()=>g(n,r,o,i,u,_),{type:S,ref:w,shapeFlag:N,patchFlag:T}=r;let x=n.nodeType;r.el=n,-2===T&&(f=!1,r.dynamicChildren=null);let j=null;switch(S){case Wn:3!==x?""===r.children?(d(r.el=s(""),l(n),n),j=n):j=E():(n.data!==r.children&&(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&c("Hydration text mismatch in",n.parentNode,`\n - rendered on server: ${JSON.stringify(n.data)}\n - expected on client: ${JSON.stringify(r.children)}`),Xt(),n.data=r.children),j=a(n));break;case zn:O(n)?(j=a(n),b(r.el=n.content.firstChild,n,o)):j=8!==x||_?E():a(n);break;case Kn:if(_&&(x=(n=a(n)).nodeType),1===x||3===x){j=n;const e=!r.children.length;for(let t=0;t{l=l||!!t.dynamicChildren;const{type:d,props:f,patchFlag:p,shapeFlag:h,dirs:v,transition:g}=t,y="input"===d||"option"===d;if(y||-1!==p){v&&Y(t,null,n,"created");let d,_=!1;if(O(e)){_=dn(s,g)&&n&&n.vnode.props&&n.vnode.props.appear;const r=e.content.firstChild;_&&g.beforeEnter(r),b(r,e,n),t.el=e=r}if(16&h&&(!f||!f.innerHTML&&!f.textContent)){let r=m(e.firstChild,t,e,n,s,a,l),o=!1;for(;r;){__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!o&&(c("Hydration children mismatch on",e,"\nServer rendered element contains more child nodes than client vdom."),o=!0),Xt();const t=r;r=r.nextSibling,u(t)}}else 8&h&&e.textContent!==t.children&&(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&c("Hydration text content mismatch on",e,`\n - rendered on server: ${e.textContent}\n - expected on client: ${t.children}`),Xt(),e.textContent=t.children);if(f)if(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__||y||!l||48&p)for(const r in f)!__VUE_PROD_HYDRATION_MISMATCH_DETAILS__||v&&v.some(e=>e.dir.created)||!tn(e,r,f[r],t,n)||Xt(),(y&&(r.endsWith("value")||"indeterminate"===r)||Object(o.isOn)(r)&&!Object(o.isReservedProp)(r)||"."===r[0])&&i(e,r,null,f[r],void 0,n);else if(f.onClick)i(e,"onClick",null,f.onClick,void 0,n);else if(4&p&&Object(r.isReactive)(f.style))for(const e in f.style)f.style[e];(d=f&&f.onVnodeBeforeMount)&&_r(d,n,t),v&&Y(t,null,n,"beforeMount"),((d=f&&f.onVnodeMounted)||v||_)&&Un(()=>{d&&_r(d,n,t),_&&g.enter(e),v&&Y(t,null,n,"mounted")},s)}return e.nextSibling},m=(e,t,r,o,i,l,u)=>{u=u||!!t.dynamicChildren;const f=t.children,h=f.length;let m=!1;for(let t=0;t{const{slotScopeIds:s}=t;s&&(o=o?o.concat(s):s);const c=l(e),u=m(a(e),t,c,n,r,o,i);return u&&Qt(u)&&"]"===u.data?a(t.anchor=u):(Xt(),d(t.anchor=f("]"),c,u),u)},g=(e,t,r,o,i,s)=>{if(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&c("Hydration node mismatch:\n- rendered on server:",e,3===e.nodeType?"(text)":Qt(e)&&"["===e.data?"(start of fragment)":"","\n- expected on client:",t.type),Xt(),t.el=null,s){const t=y(e);for(;;){const n=a(e);if(!n||n===t)break;u(n)}}const d=a(e),f=l(e);return u(e),n(null,t,f,d,r,o,Zt(f),i),d},y=(e,t="[",n="]")=>{let r=0;for(;e;)if((e=a(e))&&Qt(e)&&(e.data===t&&r++,e.data===n)){if(0===r)return a(e);r--}return e},b=(e,t,n)=>{const r=t.parentNode;r&&r.replaceChild(e,t);let o=n;for(;o;)o.vnode.el===t&&(o.vnode.el=o.subTree.el=e),o=o.parent},O=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[(e,t)=>{if(!t.hasChildNodes())return __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&c("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),n(null,e,t),A(),void(t._vnode=e);p(t.firstChild,e,null,null,null),A(),t._vnode=e},p]}function tn(e,t,n,r,i){let s,a,l,u;if("class"===t)l=e.getAttribute("class"),u=Object(o.normalizeClass)(n),function(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}(nn(l||""),nn(u))||(s=a="class");else if("style"===t){l=e.getAttribute("style")||"",u=Object(o.isString)(n)?n:Object(o.stringifyStyle)(Object(o.normalizeStyle)(n));const t=rn(l),c=rn(u);if(r.dirs)for(const{dir:e,value:t}of r.dirs)"show"!==e.name||t||c.set("display","none");i&&function e(t,n,r){const o=t.subTree;if(t.getCssVars&&(n===o||o&&o.type===Yn&&o.children.includes(n))){const e=t.getCssVars();for(const t in e)r.set("--"+t,String(e[t]))}n===o&&t.parent&&e(t.parent,t.vnode,r)}(i,r,c),function(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e)if(r!==t.get(n))return!1;return!0}(t,c)||(s=a="style")}else(e instanceof SVGElement&&Object(o.isKnownSvgAttr)(t)||e instanceof HTMLElement&&(Object(o.isBooleanAttr)(t)||Object(o.isKnownHtmlAttr)(t)))&&(Object(o.isBooleanAttr)(t)?(l=e.hasAttribute(t),u=Object(o.includeBooleanAttr)(n)):null==n?(l=e.hasAttribute(t),u=!1):(l=e.hasAttribute(t)?e.getAttribute(t):"value"===t&&"TEXTAREA"===e.tagName&&e.value,u=!!Object(o.isRenderableAttrValue)(n)&&String(n)),l!==u&&(s="attribute",a=t));if(s){const t=e=>!1===e?"(not rendered)":`${a}="${e}"`;return c(`Hydration ${s} mismatch on`,e,`\n - rendered on server: ${t(l)}\n - expected on client: ${t(u)}\n Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.\n You should fix the source of the mismatch.`),!0}return!1}function nn(e){return new Set(e.trim().split(/\s+/))}function rn(e){const t=new Map;for(const n of e.split(";")){let[e,r]=n.split(":");e=e.trim(),r=r&&r.trim(),e&&r&&t.set(e,r)}return t}const on=Un;function sn(e){return an(e)}function cn(e){return an(e,en)}function an(e,t){"boolean"!=typeof __VUE_OPTIONS_API__&&(Object(o.getGlobalThis)().__VUE_OPTIONS_API__=!0),"boolean"!=typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&(Object(o.getGlobalThis)().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1);Object(o.getGlobalThis)().__VUE__=!0;const{insert:n,remove:i,patchProp:s,createElement:c,createText:a,createComment:l,setText:u,setElementText:d,parentNode:f,nextSibling:p,setScopeId:h=o.NOOP,insertStaticContent:m}=e,v=(e,t,n,r=null,o=null,i=null,s,c=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!ir(e,t)&&(r=q(e),H(e,o,i,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:l,ref:u,shapeFlag:d}=t;switch(l){case Wn:b(e,t,n,r);break;case zn:O(e,t,n,r);break;case Kn:null==e&&_(t,n,r,s);break;case Yn:P(e,t,n,r,o,i,s,c,a);break;default:1&d?S(e,t,n,r,o,i,s,c,a):6&d?R(e,t,n,r,o,i,s,c,a):(64&d||128&d)&&l.process(e,t,n,r,o,i,s,c,a,Z)}null!=u&&o&&$t(u,e&&e.ref,i,t||e,!t)},b=(e,t,r,o)=>{if(null==e)n(t.el=a(t.children),r,o);else{const n=t.el=e.el;t.children!==e.children&&u(n,t.children)}},O=(e,t,r,o)=>{null==e?n(t.el=l(t.children||""),r,o):t.el=e.el},_=(e,t,n,r)=>{[e.el,e.anchor]=m(e.children,t,n,r,e.el,e.anchor)},E=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=p(e),i(e),e=n;i(t)},S=(e,t,n,r,o,i,s,c,a)=>{"svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e?w(t,n,r,o,i,s,c,a):C(e,t,o,i,s,c,a)},w=(e,t,r,i,a,l,u,f)=>{let p,h;const{props:m,shapeFlag:v,transition:g,dirs:y}=e;if(p=e.el=c(e.type,l,m&&m.is,m),8&v?d(p,e.children):16&v&&x(e.children,p,null,i,a,ln(e,l),u,f),y&&Y(e,null,i,"created"),T(p,e,e.scopeId,u,i),m){for(const e in m)"value"===e||Object(o.isReservedProp)(e)||s(p,e,null,m[e],l,i);"value"in m&&s(p,"value",null,m.value,l),(h=m.onVnodeBeforeMount)&&_r(h,i,e)}y&&Y(e,null,i,"beforeMount");const b=dn(a,g);b&&g.beforeEnter(p),n(p,t,r),((h=m&&m.onVnodeMounted)||b||y)&&on(()=>{h&&_r(h,i,e),b&&g.enter(p),y&&Y(e,null,i,"mounted")},a)},T=(e,t,n,r,o)=>{if(n&&h(e,n),r)for(let t=0;t{for(let l=a;l{const l=t.el=e.el;let{patchFlag:u,dynamicChildren:f,dirs:p}=t;u|=16&e.patchFlag;const h=e.props||o.EMPTY_OBJ,m=t.props||o.EMPTY_OBJ;let v;if(n&&un(n,!1),(v=m.onVnodeBeforeUpdate)&&_r(v,n,t,e),p&&Y(t,e,n,"beforeUpdate"),n&&un(n,!0),(h.innerHTML&&null==m.innerHTML||h.textContent&&null==m.textContent)&&d(l,""),f?I(e.dynamicChildren,f,l,n,r,ln(t,i),c):a||V(e,t,l,null,n,r,ln(t,i),c,!1),u>0){if(16&u)k(l,h,m,n,i);else if(2&u&&h.class!==m.class&&s(l,"class",null,m.class,i),4&u&&s(l,"style",h.style,m.style,i),8&u){const e=t.dynamicProps;for(let t=0;t{v&&_r(v,n,t,e),p&&Y(t,e,n,"updated")},r)},I=(e,t,n,r,o,i,s)=>{for(let c=0;c{if(t!==n){if(t!==o.EMPTY_OBJ)for(const c in t)Object(o.isReservedProp)(c)||c in n||s(e,c,t[c],null,i,r);for(const c in n){if(Object(o.isReservedProp)(c))continue;const a=n[c],l=t[c];a!==l&&"value"!==c&&s(e,c,l,a,i,r)}"value"in n&&s(e,"value",t.value,n.value,i)}},P=(e,t,r,o,i,s,c,l,u)=>{const d=t.el=e?e.el:a(""),f=t.anchor=e?e.anchor:a("");let{patchFlag:p,dynamicChildren:h,slotScopeIds:m}=t;m&&(l=l?l.concat(m):m),null==e?(n(d,r,o),n(f,r,o),x(t.children||[],r,f,i,s,c,l,u)):p>0&&64&p&&h&&e.dynamicChildren?(I(e.dynamicChildren,h,r,i,s,c,l),(null!=t.key||i&&t===i.subTree)&&fn(e,t,!0)):V(e,t,r,f,i,s,c,l,u)},R=(e,t,n,r,o,i,s,c,a)=>{t.slotScopeIds=c,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,s,a):M(t,n,r,o,i,s,a):L(e,t,a)},M=(e,t,n,r,o,i,s)=>{const c=e.component=wr(e,r,o);if(ae(e)&&(c.ctx.renderer=Z),Mr(c,!1,s),c.asyncDep){if(o&&o.registerDep(c,F,s),!e.el){const e=c.subTree=ur(zn);O(null,e,t,n)}}else F(c,e,t,n,o,i,s)},L=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:o,component:i}=e,{props:s,children:c,patchFlag:a}=t,l=i.emitsOptions;0;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!o&&!c||c&&c.$stable)||r!==s&&(r?!s||Rn(r,s,l):!!s);if(1024&a)return!0;if(16&a)return r?Rn(r,s,l):!!s;if(8&a){const e=t.dynamicProps;for(let t=0;ty&&g.splice(t,1)}(r.update),r.effect.dirty=!0,r.update()}else t.el=e.el,r.vnode=t},F=(e,t,n,i,s,c,a)=>{const l=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:i,vnode:u}=e;{const n=function e(t){const n=t.subTree.component;if(n)return n.asyncDep&&!n.asyncResolved?n:e(n)}(e);if(n)return t&&(t.el=u.el,D(e,t,a)),void n.asyncDep.then(()=>{e.isUnmounted||l()})}let d,p=t;0,un(e,!1),t?(t.el=u.el,D(e,t,a)):t=u,n&&Object(o.invokeArrayFns)(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&_r(d,i,t,u),un(e,!0);const h=Cn(e);0;const m=e.subTree;e.subTree=h,v(m,h,f(m.el),q(m),e,s,c),t.el=h.el,null===p&&Mn(e,h.el),r&&on(r,s),(d=t.props&&t.props.onVnodeUpdated)&&on(()=>_r(d,i,t,u),s)}else{let r;const{el:a,props:l}=t,{bm:u,m:d,parent:f}=e,p=ie(t);if(un(e,!1),u&&Object(o.invokeArrayFns)(u),!p&&(r=l&&l.onVnodeBeforeMount)&&_r(r,f,t),un(e,!0),a&&ee){const n=()=>{e.subTree=Cn(e),ee(a,e.subTree,e,s,null)};p?t.type.__asyncLoader().then(()=>!e.isUnmounted&&n()):n()}else{0;const r=e.subTree=Cn(e);0,v(null,r,n,i,e,s,c),t.el=r.el}if(d&&on(d,s),!p&&(r=l&&l.onVnodeMounted)){const e=t;on(()=>_r(r,f,e),s)}(256&t.shapeFlag||f&&ie(f.vnode)&&256&f.vnode.shapeFlag)&&e.a&&on(e.a,s),e.isMounted=!0,t=n=i=null}},u=e.effect=new r.ReactiveEffect(l,o.NOOP,()=>N(d),e.scope),d=e.update=()=>{u.dirty&&u.run()};d.i=e,d.id=e.uid,un(e,!0),d()},D=(e,t,n)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,i){const{props:s,attrs:c,vnode:{patchFlag:a}}=e,l=Object(r.toRaw)(s),[u]=e.propsOptions;let d=!1;if(!(i||a>0)||16&a){let r;xt(e,t,s,c)&&(d=!0);for(const i in l)t&&(Object(o.hasOwn)(t,i)||(r=Object(o.hyphenate)(i))!==i&&Object(o.hasOwn)(t,r))||(u?!n||void 0===n[i]&&void 0===n[r]||(s[i]=jt(u,l,i,void 0,e,!0)):delete s[i]);if(c!==l)for(const e in c)t&&Object(o.hasOwn)(t,e)||(delete c[e],d=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let r=0;r{const{vnode:r,slots:i}=e;let s=!0,c=o.EMPTY_OBJ;if(32&r.shapeFlag){const e=t._;e?n&&1===e?s=!1:Bt(i,t,n):(s=!t.$stable,Dt(t,i)),c=t}else t&&(Vt(e,t),c={default:1});if(s)for(const e in i)Mt(e)||null!=c[e]||delete i[e]})(e,t.children,n),Object(r.pauseTracking)(),j(e),Object(r.resetTracking)()},V=(e,t,n,r,o,i,s,c,a=!1)=>{const l=e&&e.children,u=e?e.shapeFlag:0,f=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void $(l,f,n,r,o,i,s,c,a);if(256&p)return void B(l,f,n,r,o,i,s,c,a)}8&h?(16&u&&G(l,o,i),f!==l&&d(n,f)):16&u?16&h?$(l,f,n,r,o,i,s,c,a):G(l,o,i,!0):(8&u&&d(n,""),16&h&&x(f,n,r,o,i,s,c,a))},B=(e,t,n,r,i,s,c,a,l)=>{e=e||o.EMPTY_ARR,t=t||o.EMPTY_ARR;const u=e.length,d=t.length,f=Math.min(u,d);let p;for(p=0;pd?G(e,i,s,!0,!1,f):x(t,n,r,i,s,c,a,l,f)},$=(e,t,n,r,i,s,c,a,l)=>{let u=0;const d=t.length;let f=e.length-1,p=d-1;for(;u<=f&&u<=p;){const r=e[u],o=t[u]=l?yr(t[u]):gr(t[u]);if(!ir(r,o))break;v(r,o,n,null,i,s,c,a,l),u++}for(;u<=f&&u<=p;){const r=e[f],o=t[p]=l?yr(t[p]):gr(t[p]);if(!ir(r,o))break;v(r,o,n,null,i,s,c,a,l),f--,p--}if(u>f){if(u<=p){const e=p+1,o=ep)for(;u<=f;)H(e[u],i,s,!0),u++;else{const h=u,m=u,g=new Map;for(u=m;u<=p;u++){const e=t[u]=l?yr(t[u]):gr(t[u]);null!=e.key&&g.set(e.key,u)}let y,b=0;const O=p-m+1;let _=!1,E=0;const S=new Array(O);for(u=0;u=O){H(r,i,s,!0);continue}let o;if(null!=r.key)o=g.get(r.key);else for(y=m;y<=p;y++)if(0===S[y-m]&&ir(r,t[y])){o=y;break}void 0===o?H(r,i,s,!0):(S[o-m]=u+1,o>=E?E=o:_=!0,v(r,t[o],n,null,i,s,c,a,l),b++)}const w=_?function(e){const t=e.slice(),n=[0];let r,o,i,s,c;const a=e.length;for(r=0;r>1,e[n[c]]0&&(t[r]=n[i-1]),n[i]=r)}}i=n.length,s=n[i-1];for(;i-- >0;)n[i]=s,s=t[s];return n}(S):o.EMPTY_ARR;for(y=w.length-1,u=O-1;u>=0;u--){const e=m+u,o=t[e],f=e+1{const{el:s,type:c,transition:a,children:l,shapeFlag:u}=e;if(6&u)return void U(e.component.subTree,t,r,o);if(128&u)return void e.suspense.move(t,r,o);if(64&u)return void c.move(e,t,r,Z);if(c===Yn){n(s,t,r);for(let e=0;e{let i;for(;e&&e!==t;)i=p(e),n(e,r,o),e=i;n(t,r,o)})(e,t,r);if(2!==o&&1&u&&a)if(0===o)a.beforeEnter(s),n(s,t,r),on(()=>a.enter(s),i);else{const{leave:e,delayLeave:o,afterLeave:i}=a,c=()=>n(s,t,r),l=()=>{e(s,()=>{c(),i&&i()})};o?o(s,c,l):l()}else n(s,t,r)},H=(e,t,n,r=!1,o=!1)=>{const{type:i,props:s,ref:c,children:a,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p}=e;if(-2===d&&(o=!1),null!=c&&$t(c,null,n,e,!0),null!=p&&(t.renderCache[p]=void 0),256&u)return void t.ctx.deactivate(e);const h=1&u&&f,m=!ie(e);let v;if(m&&(v=s&&s.onVnodeBeforeUnmount)&&_r(v,t,e),6&u)K(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);h&&Y(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,Z,r):l&&!l.hasOnce&&(i!==Yn||d>0&&64&d)?G(l,t,n,!1,!0):(i===Yn&&384&d||!o&&16&u)&&G(a,t,n),r&&W(e)}(m&&(v=s&&s.onVnodeUnmounted)||h)&&on(()=>{v&&_r(v,t,e),h&&Y(e,null,t,"unmounted")},n)},W=e=>{const{type:t,el:n,anchor:r,transition:o}=e;if(t===Yn)return void z(n,r);if(t===Kn)return void E(e);const s=()=>{i(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,i=()=>t(n,s);r?r(e.el,s,i):i()}else s()},z=(e,t)=>{let n;for(;e!==t;)n=p(e),i(e),e=n;i(t)},K=(e,t,n)=>{const{bum:r,scope:i,update:s,subTree:c,um:a,m:l,a:u}=e;pn(l),pn(u),r&&Object(o.invokeArrayFns)(r),i.stop(),s&&(s.active=!1,H(c,e,t,n)),a&&on(a,t),on(()=>{e.isUnmounted=!0},t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},G=(e,t,n,r=!1,o=!1,i=0)=>{for(let s=i;s{if(6&e.shapeFlag)return q(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=p(e.anchor||e.el),n=t&&t[Ut];return n?p(n):t};let J=!1;const X=(e,t,n)=>{null==e?t._vnode&&H(t._vnode,null,null,!0):v(t._vnode||null,e,t,null,null,null,n),J||(J=!0,j(),A(),J=!1),t._vnode=e},Z={p:v,um:H,m:U,r:W,mt:M,mc:x,pc:V,pbc:I,n:q,o:e};let Q,ee;return t&&([Q,ee]=t(Z)),{render:X,hydrate:Q,createApp:bt(X,Q)}}function ln({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function un({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function dn(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function fn(e,t,n=!1){const r=e.children,i=t.children;if(Object(o.isArray)(r)&&Object(o.isArray)(i))for(let e=0;e{{const e=Et(hn);return e}};function vn(e,t){return _n(e,null,t)}function gn(e,t){return _n(e,null,{flush:"post"})}function yn(e,t){return _n(e,null,{flush:"sync"})}const bn={};function On(e,t,n){return _n(e,t,n)}function _n(e,t,{immediate:n,deep:i,flush:s,once:c,onTrack:a,onTrigger:l}=o.EMPTY_OBJ){if(t&&c){const e=t;t=(...t)=>{e(...t),T()}}const u=Nr,d=e=>!0===i?e:wn(e,!1===i?1:void 0);let h,m,v=!1,g=!1;if(Object(r.isRef)(e)?(h=()=>e.value,v=Object(r.isShallow)(e)):Object(r.isReactive)(e)?(h=()=>d(e),v=!0):Object(o.isArray)(e)?(g=!0,v=e.some(e=>Object(r.isReactive)(e)||Object(r.isShallow)(e)),h=()=>e.map(e=>Object(r.isRef)(e)?e.value:Object(r.isReactive)(e)?d(e):Object(o.isFunction)(e)?f(e,u,2):void 0)):h=Object(o.isFunction)(e)?t?()=>f(e,u,2):()=>(m&&m(),p(e,u,3,[b])):o.NOOP,t&&i){const e=h;h=()=>wn(e())}let y,b=e=>{m=S.onStop=()=>{f(e,u,4),m=S.onStop=void 0}};if(Rr){if(b=o.NOOP,t?n&&p(t,u,3,[h(),g?[]:void 0,b]):h(),"sync"!==s)return o.NOOP;{const e=mn();y=e.__watcherHandles||(e.__watcherHandles=[])}}let O=g?new Array(e.length).fill(bn):bn;const _=()=>{if(S.active&&S.dirty)if(t){const e=S.run();(i||v||(g?e.some((e,t)=>Object(o.hasChanged)(e,O[t])):Object(o.hasChanged)(e,O)))&&(m&&m(),p(t,u,3,[e,O===bn?void 0:g&&O[0]===bn?[]:O,b]),O=e)}else S.run()};let E;_.allowRecurse=!!t,"sync"===s?E=_:"post"===s?E=()=>on(_,u&&u.suspense):(_.pre=!0,u&&(_.id=u.uid),E=()=>N(_));const S=new r.ReactiveEffect(h,o.NOOP,E),w=Object(r.getCurrentScope)(),T=()=>{S.stop(),w&&Object(o.remove)(w.effects,S)};return t?n?_():O=S.run():"post"===s?on(S.run.bind(S),u&&u.suspense):S.run(),y&&y.push(T),T}function En(e,t,n){const r=this.proxy,i=Object(o.isString)(e)?e.includes(".")?Sn(r,e):()=>r[e]:e.bind(r,r);let s;Object(o.isFunction)(t)?s=t:(s=t.handler,n=t);const c=Ar(this),a=_n(i,s.bind(r),n);return c(),a}function Sn(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{wn(e,t,n)});else if(Object(o.isPlainObject)(e)){for(const r in e)wn(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&wn(e[r],t,n)}return e}function Nn(e,t,n=o.EMPTY_OBJ){const i=Tr();const s=Object(o.camelize)(t),c=Object(o.hyphenate)(t),a=Tn(e,t),l=Object(r.customRef)((r,a)=>{let l,u,d=o.EMPTY_OBJ;return yn(()=>{const n=e[t];Object(o.hasChanged)(l,n)&&(l=n,a())}),{get:()=>(r(),n.get?n.get(l):l),set(e){if(!(Object(o.hasChanged)(e,l)||d!==o.EMPTY_OBJ&&Object(o.hasChanged)(e,d)))return;const r=i.vnode.props;r&&(t in r||s in r||c in r)&&("onUpdate:"+t in r||"onUpdate:"+s in r||"onUpdate:"+c in r)||(l=e,a());const f=n.set?n.set(e):e;i.emit("update:"+t,f),Object(o.hasChanged)(e,f)&&Object(o.hasChanged)(e,d)&&!Object(o.hasChanged)(f,u)&&a(),d=e,u=f}}});return l[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?a||o.EMPTY_OBJ:l,done:!1}:{done:!0}}},l}const Tn=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[t+"Modifiers"]||e[Object(o.camelize)(t)+"Modifiers"]||e[Object(o.hyphenate)(t)+"Modifiers"];function xn(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||o.EMPTY_OBJ;let i=n;const s=t.startsWith("update:"),c=s&&Tn(r,t.slice(7));let a;c&&(c.trim&&(i=n.map(e=>Object(o.isString)(e)?e.trim():e)),c.number&&(i=n.map(o.looseToNumber)));let l=r[a=Object(o.toHandlerKey)(t)]||r[a=Object(o.toHandlerKey)(Object(o.camelize)(t))];!l&&s&&(l=r[a=Object(o.toHandlerKey)(Object(o.hyphenate)(t))]),l&&p(l,e,6,i);const u=r[a+"Once"];if(u){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,p(u,e,6,i)}}function jn(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(void 0!==i)return i;const s=e.emits;let c={},a=!1;if(__VUE_OPTIONS_API__&&!Object(o.isFunction)(e)){const r=e=>{const n=jn(e,t,!0);n&&(a=!0,Object(o.extend)(c,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return s||a?(Object(o.isArray)(s)?s.forEach(e=>c[e]=null):Object(o.extend)(c,s),Object(o.isObject)(e)&&r.set(e,c),c):(Object(o.isObject)(e)&&r.set(e,null),null)}function An(e,t){return!(!e||!Object(o.isOn)(t))&&(t=t.slice(2).replace(/Once$/,""),Object(o.hasOwn)(e,t[0].toLowerCase()+t.slice(1))||Object(o.hasOwn)(e,Object(o.hyphenate)(t))||Object(o.hasOwn)(e,t))}function Cn(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[s],slots:c,attrs:a,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:v,inheritAttrs:g}=e,y=D(e);let b,O;try{if(4&n.shapeFlag){const e=i||r,t=e;b=gr(u.call(t,e,d,f,m,p,v)),O=a}else{const e=t;0,b=gr(e.length>1?e(f,{attrs:a,slots:c,emit:l}):e(f,null)),O=t.props?a:kn(a)}}catch(t){Gn.length=0,h(t,e,1),b=ur(zn)}let _=b;if(O&&!1!==g){const e=Object.keys(O),{shapeFlag:t}=_;e.length&&7&t&&(s&&e.some(o.isModelListener)&&(O=Pn(O,s)),_=pr(_,O,!1,!0))}return n.dirs&&(_=pr(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),b=_,D(y),b}function In(e,t=!0){let n;for(let t=0;t{let t;for(const n in e)("class"===n||"style"===n||Object(o.isOn)(n))&&((t||(t={}))[n]=e[n]);return t},Pn=(e,t)=>{const n={};for(const r in e)Object(o.isModelListener)(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function Rn(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;oe.__isSuspense;let Fn=0;const Dn={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,i,s,c,a,l){if(null==e)!function(e,t,n,r,o,i,s,c,a){const{p:l,o:{createElement:u}}=a,d=u("div"),f=e.suspense=Bn(e,o,r,t,d,n,i,s,c,a);l(null,f.pendingBranch=e.ssContent,d,null,r,f,i,s),f.deps>0?(Vn(e,"onPending"),Vn(e,"onFallback"),l(null,e.ssFallback,t,n,r,null,i,s),Hn(f,e.ssFallback)):f.resolve(!1,!0)}(t,n,r,o,i,s,c,a,l);else{if(i&&i.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,r,o,i,s,c,{p:a,um:l,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const f=t.ssContent,p=t.ssFallback,{activeBranch:h,pendingBranch:m,isInFallback:v,isHydrating:g}=d;if(m)d.pendingBranch=f,ir(f,m)?(a(m,f,d.hiddenContainer,null,o,d,i,s,c),d.deps<=0?d.resolve():v&&(g||(a(h,p,n,r,o,null,i,s,c),Hn(d,p)))):(d.pendingId=Fn++,g?(d.isHydrating=!1,d.activeBranch=m):l(m,o,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),v?(a(null,f,d.hiddenContainer,null,o,d,i,s,c),d.deps<=0?d.resolve():(a(h,p,n,r,o,null,i,s,c),Hn(d,p))):h&&ir(f,h)?(a(h,f,n,r,o,d,i,s,c),d.resolve(!0)):(a(null,f,d.hiddenContainer,null,o,d,i,s,c),d.deps<=0&&d.resolve()));else if(h&&ir(f,h))a(h,f,n,r,o,d,i,s,c),Hn(d,f);else if(Vn(t,"onPending"),d.pendingBranch=f,512&f.shapeFlag?d.pendingId=f.component.suspenseId:d.pendingId=Fn++,a(null,f,d.hiddenContainer,null,o,d,i,s,c),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):0===e&&d.fallback(p)}}(e,t,n,r,o,s,c,a,l)}},hydrate:function(e,t,n,r,o,i,s,c,a){const l=t.suspense=Bn(t,r,n,e.parentNode,document.createElement("div"),null,o,i,s,c,!0),u=a(e,l.pendingBranch=t.ssContent,n,l,i,s);0===l.deps&&l.resolve(!1,!0);return u},normalize:function(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=$n(r?n.default:n),e.ssFallback=r?$n(n.fallback):ur(zn)}};function Vn(e,t){const n=e.props&&e.props[t];Object(o.isFunction)(n)&&n()}function Bn(e,t,n,r,i,s,c,a,l,u,d=!1){const{p:f,m:p,um:m,n:v,o:{parentNode:g,remove:y}}=u;let b;const O=function(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);O&&t&&t.pendingBranch&&(b=t.pendingId,t.deps++);const _=e.props?Object(o.toNumber)(e.props.timeout):void 0;const E=s,S={vnode:e,parent:t,parentComponent:n,namespace:c,container:r,hiddenContainer:i,deps:0,pendingId:Fn++,timeout:"number"==typeof _?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:r,activeBranch:o,pendingBranch:i,pendingId:c,effects:a,parentComponent:l,container:u}=S;let d=!1;S.isHydrating?S.isHydrating=!1:e||(d=o&&i.transition&&"out-in"===i.transition.mode,d&&(o.transition.afterLeave=()=>{c===S.pendingId&&(p(i,u,s===E?v(o):s,0),x(a))}),o&&(g(o.el)!==S.hiddenContainer&&(s=v(o)),m(o,l,S,!0)),d||p(i,u,s,0)),Hn(S,i),S.pendingBranch=null,S.isInFallback=!1;let f=S.parent,h=!1;for(;f;){if(f.pendingBranch){f.effects.push(...a),h=!0;break}f=f.parent}h||d||x(a),S.effects=[],O&&t&&t.pendingBranch&&b===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),Vn(r,"onResolve")},fallback(e){if(!S.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:o,namespace:i}=S;Vn(t,"onFallback");const s=v(n),c=()=>{S.isInFallback&&(f(null,e,o,s,r,null,i,a,l),Hn(S,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=c),S.isInFallback=!0,m(n,r,null,!0),u||c()},move(e,t,n){S.activeBranch&&p(S.activeBranch,e,t,n),S.container=e},next:()=>S.activeBranch&&v(S.activeBranch),registerDep(e,t,n){const r=!!S.pendingBranch;r&&S.deps++;const o=e.vnode.el;e.asyncDep.catch(t=>{h(t,e,0)}).then(i=>{if(e.isUnmounted||S.isUnmounted||S.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:s}=e;Lr(e,i,!1),o&&(s.el=o);const a=!o&&e.subTree.el;t(e,s,g(o||e.subTree.el),o?null:v(e.subTree),S,c,n),a&&y(a),Mn(e,s.el),r&&0==--S.deps&&S.resolve()})},unmount(e,t){S.isUnmounted=!0,S.activeBranch&&m(S.activeBranch,n,e,t),S.pendingBranch&&m(S.pendingBranch,n,e,t)}};return S}function $n(e){let t;if(Object(o.isFunction)(e)){const n=Qn&&e._c;n&&(e._d=!1,Jn()),e=e(),n&&(e._d=!0,t=qn,Xn())}if(Object(o.isArray)(e)){const t=In(e);0,e=t}return e=gr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function Un(e,t){t&&t.pendingBranch?Object(o.isArray)(e)?t.effects.push(...e):t.effects.push(e):x(e)}function Hn(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let o=t.el;for(;!o&&t.component;)o=(t=t.component.subTree).el;n.el=o,r&&r.subTree===n&&(r.vnode.el=o,Mn(r,o))}const Yn=Symbol.for("v-fgt"),Wn=Symbol.for("v-txt"),zn=Symbol.for("v-cmt"),Kn=Symbol.for("v-stc"),Gn=[];let qn=null;function Jn(e=!1){Gn.push(qn=e?null:[])}function Xn(){Gn.pop(),qn=Gn[Gn.length-1]||null}let Zn,Qn=1;function er(e){Qn+=e,e<0&&qn&&(qn.hasOnce=!0)}function tr(e){return e.dynamicChildren=Qn>0?qn||o.EMPTY_ARR:null,Xn(),Qn>0&&qn&&qn.push(e),e}function nr(e,t,n,r,o,i){return tr(lr(e,t,n,r,o,i,!0))}function rr(e,t,n,r,o){return tr(ur(e,t,n,r,o,!0))}function or(e){return!!e&&!0===e.__v_isVNode}function ir(e,t){return e.type===t.type&&e.key===t.key}function sr(e){Zn=e}const cr=({key:e})=>null!=e?e:null,ar=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?Object(o.isString)(e)||Object(r.isRef)(e)||Object(o.isFunction)(e)?{i:L,r:e,k:t,f:!!n}:e:null);function lr(e,t=null,n=null,r=0,i=null,s=(e===Yn?0:1),c=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&cr(t),ref:t&&ar(t),scopeId:F,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:L};return a?(br(l,n),128&s&&e.normalize(l)):n&&(l.shapeFlag|=Object(o.isString)(n)?8:16),Qn>0&&!c&&qn&&(l.patchFlag>0||6&s)&&32!==l.patchFlag&&qn.push(l),l}const ur=dr;function dr(e,t=null,n=null,i=0,s=null,c=!1){if(e&&e!==Ce||(e=zn),or(e)){const r=pr(e,t,!0);return n&&br(r,n),Qn>0&&!c&&qn&&(6&r.shapeFlag?qn[qn.indexOf(e)]=r:qn.push(r)),r.patchFlag=-2,r}if(zr(e)&&(e=e.__vccOpts),t){t=fr(t);let{class:e,style:n}=t;e&&!Object(o.isString)(e)&&(t.class=Object(o.normalizeClass)(e)),Object(o.isObject)(n)&&(Object(r.isProxy)(n)&&!Object(o.isArray)(n)&&(n=Object(o.extend)({},n)),t.style=Object(o.normalizeStyle)(n))}return lr(e,t,n,i,s,Object(o.isString)(e)?1:Ln(e)?128:(e=>e.__isTeleport)(e)?64:Object(o.isObject)(e)?4:Object(o.isFunction)(e)?2:0,c,!0)}function fr(e){return e?Object(r.isProxy)(e)||Tt(e)?Object(o.extend)({},e):e:null}function pr(e,t,n=!1,r=!1){const{props:i,ref:s,patchFlag:c,children:a,transition:l}=e,u=t?Or(i||{},t):i,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&cr(u),ref:t&&t.ref?n&&s?Object(o.isArray)(s)?s.concat(ar(t)):[s,ar(t)]:ar(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Yn?-1===c?16:16|c:c,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pr(e.ssContent),ssFallback:e.ssFallback&&pr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&ne(d,l.clone(d)),d}function hr(e=" ",t=0){return ur(Wn,null,e,t)}function mr(e,t){const n=ur(Kn,null,e);return n.staticCount=t,n}function vr(e="",t=!1){return t?(Jn(),rr(zn,null,e)):ur(zn,null,e)}function gr(e){return null==e||"boolean"==typeof e?ur(zn):Object(o.isArray)(e)?ur(Yn,null,e.slice()):"object"==typeof e?yr(e):ur(Wn,null,String(e))}function yr(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:pr(e)}function br(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(Object(o.isArray)(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),br(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Tt(t)?3===r&&L&&(1===L.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=L}}else Object(o.isFunction)(t)?(t={default:t,_ctx:L},n=32):(t=String(t),64&r?(n=16,t=[hr(t)]):n=8);e.children=t,e.shapeFlag|=n}function Or(...e){const t={};for(let n=0;nNr||L;let xr,jr;{const e=Object(o.getGlobalThis)(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};xr=t("__VUE_INSTANCE_SETTERS__",e=>Nr=e),jr=t("__VUE_SSR_SETTERS__",e=>Rr=e)}const Ar=e=>{const t=Nr;return xr(e),e.scope.on(),()=>{e.scope.off(),xr(t)}},Cr=()=>{Nr&&Nr.scope.off(),xr(null)};function Ir(e){return 4&e.vnode.shapeFlag}let kr,Pr,Rr=!1;function Mr(e,t=!1,n=!1){t&&jr(t);const{props:i,children:s}=e.vnode,c=Ir(e);!function(e,t,n,o=!1){const i={},s=Nt();e.propsDefaults=Object.create(null),xt(e,t,i,s);for(const t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=o?i:Object(r.shallowReactive)(i):e.type.props?e.props=i:e.props=s,e.attrs=s}(e,i,c,t),((e,t,n)=>{const r=e.slots=Nt();if(32&e.vnode.shapeFlag){const e=t._;e?(Bt(r,t,n),n&&Object(o.def)(r,"_",e,!0)):Dt(t,r)}else t&&Vt(e,t)})(e,s,n);const a=c?function(e,t){const n=e.type;0;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ue),!1;const{setup:i}=n;if(i){const n=e.setupContext=i.length>1?$r(e):null,s=Ar(e);Object(r.pauseTracking)();const c=f(i,e,0,[e.props,n]);if(Object(r.resetTracking)(),s(),Object(o.isPromise)(c)){if(c.then(Cr,Cr),t)return c.then(n=>{Lr(e,n,t)}).catch(t=>{h(t,e,0)});e.asyncDep=c}else Lr(e,c,t)}else Vr(e,t)}(e,t):void 0;return t&&jr(!1),a}function Lr(e,t,n){Object(o.isFunction)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Object(o.isObject)(t)&&(e.setupState=Object(r.proxyRefs)(t)),Vr(e,n)}function Fr(e){kr=e,Pr=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,He))}}const Dr=()=>!kr;function Vr(e,t,n){const i=e.type;if(!e.render){if(!t&&kr&&!i.render){const t=i.template||lt(e).template;if(t){0;const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:s,compilerOptions:c}=i,a=Object(o.extend)(Object(o.extend)({isCustomElement:n,delimiters:s},r),c);i.render=kr(t,a)}}e.render=i.render||o.NOOP,Pr&&Pr(e)}if(__VUE_OPTIONS_API__){const t=Ar(e);Object(r.pauseTracking)();try{st(e)}finally{Object(r.resetTracking)(),t()}}}const Br={get:(e,t)=>(Object(r.track)(e,"get",""),e[t])};function $r(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,Br),slots:e.slots,emit:e.emit,expose:t}}function Ur(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Object(r.proxyRefs)(Object(r.markRaw)(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Be?Be[n](e):void 0,has:(e,t)=>t in e||t in Be})):e.proxy}const Hr=/(?:^|[-_])(\w)/g;function Yr(e,t=!0){return Object(o.isFunction)(e)?e.displayName||e.name:e.name||t&&e.__name}function Wr(e,t,n=!1){let r=Yr(t);if(!r&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(r=e[1])}if(!r&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};r=n(e.components||e.parent.type.components)||n(e.appContext.components)}return r?r.replace(Hr,e=>e.toUpperCase()).replace(/[-_]/g,""):n?"App":"Anonymous"}function zr(e){return Object(o.isFunction)(e)&&"__vccOpts"in e}const Kr=(e,t)=>Object(r.computed)(e,t,Rr);function Gr(e,t,n){const r=arguments.length;return 2===r?Object(o.isObject)(t)&&!Object(o.isArray)(t)?or(t)?ur(e,null,[t]):ur(e,t):ur(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&or(n)&&(n=[n]),ur(e,t,n))}function qr(){return void 0}function Jr(e,t,n,r){const o=n[r];if(o&&Xr(o,e))return o;const i=t();return i.memo=e.slice(),i.cacheIndex=r,n[r]=i}function Xr(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&qn&&qn.push(e),!0}const Zr="3.4.34",Qr=o.NOOP,eo=d,to=P,no=function e(t,n){var r,o;if(P=t,P)P.enabled=!0,R.forEach(({event:e,args:t})=>P.emit(e,...t)),R=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null==(o=null==(r=window.navigator)?void 0:r.userAgent)?void 0:o.includes("jsdom"))){(n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(t=>{e(t,n)}),setTimeout(()=>{P||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,M=!0,R=[])},3e3)}else M=!0,R=[]},ro={createComponentInstance:wr,setupComponent:Mr,renderComponentRoot:Cn,setCurrentRenderingInstance:D,isVNode:or,normalizeVNode:gr,getComponentPublicInstance:Ur},oo=null,io=null,so=null}]); \ No newline at end of file +/*! #__NO_SIDE_EFFECTS__ */;function se(e){Object(o.isFunction)(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:s=200,timeout:c,suspensible:a=!0,onError:l}=e;let u,d=null,p=0;const f=()=>{let e;return d||(e=d=t().catch(e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise((t,n)=>{l(e,()=>t((p++,d=null,f())),()=>n(e),p+1)});throw e}).then(t=>e!==d&&d?d:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),u=t,t)))};return oe({name:"AsyncComponentWrapper",__asyncLoader:f,get __asyncResolved(){return u},setup(){const e=Nr;if(u)return()=>ce(u,e);const t=t=>{d=null,h(t,e,13,!i)};if(a&&e.suspense||Rr)return f().then(t=>()=>ce(t,e)).catch(e=>(t(e),()=>i?ur(i,{error:e}):null));const o=Object(r.ref)(!1),l=Object(r.ref)(),p=Object(r.ref)(!!s);return s&&setTimeout(()=>{p.value=!1},s),null!=c&&setTimeout(()=>{if(!o.value&&!l.value){const e=new Error(`Async component timed out after ${c}ms.`);t(e),l.value=e}},c),f().then(()=>{o.value=!0,e.parent&&ae(e.parent.vnode)&&(e.parent.effect.dirty=!0,N(e.parent.update))}).catch(e=>{t(e),l.value=e}),()=>o.value&&u?ce(u,e):l.value&&i?ur(i,{error:l.value}):n&&!p.value?ur(n):void 0}})}function ce(e,t){const{ref:n,props:r,children:o,ce:i}=t.vnode,s=ur(e,r,o);return s.ref=n,s.ce=i,delete t.vnode.ce,s}const ae=e=>e.type.__isKeepAlive,le={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=xr(),r=n.ctx;if(!r.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const i=new Map,s=new Set;let c=null;const a=n.suspense,{renderer:{p:l,m:u,um:d,o:{createElement:p}}}=r,f=p("div");function h(e){me(e),d(e,n,a,!0)}function m(e){i.forEach((t,n)=>{const r=Yr(t.type);!r||e&&e(r)||v(n)})}function v(e){const t=i.get(e);c&&ir(t,c)?c&&me(c):h(t),i.delete(e),s.delete(e)}r.activate=(e,t,n,r,i)=>{const s=e.component;u(e,t,n,0,a),l(s.vnode,e,t,n,s,a,r,e.slotScopeIds,i),on(()=>{s.isDeactivated=!1,s.a&&Object(o.invokeArrayFns)(s.a);const t=e.props&&e.props.onVnodeMounted;t&&_r(t,s.parent,e)},a)},r.deactivate=e=>{const t=e.component;fn(t.m),fn(t.a),u(e,f,null,1,a),on(()=>{t.da&&Object(o.invokeArrayFns)(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&_r(n,t.parent,e),t.isDeactivated=!0},a)},On(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>ue(e,t)),t&&m(e=>!ue(t,e))},{flush:"post",deep:!0});let g=null;const y=()=>{null!=g&&(Ln(n.subTree.type)?on(()=>{i.set(g,ve(n.subTree))},n.subTree.suspense):i.set(g,ve(n.subTree)))};return Oe(y),Ee(y),Se(()=>{i.forEach(e=>{const{subTree:t,suspense:r}=n,o=ve(t);if(e.type!==o.type||e.key!==o.key)h(e);else{me(o);const e=o.component.da;e&&on(e,r)}})}),()=>{if(g=null,!t.default)return null;const n=t.default(),r=n[0];if(n.length>1)return c=null,n;if(!(or(r)&&(4&r.shapeFlag||128&r.shapeFlag)))return c=null,r;let o=ve(r);const a=o.type,l=Yr(ie(o)?o.type.__asyncResolved||{}:a),{include:u,exclude:d,max:p}=e;if(u&&(!l||!ue(u,l))||d&&l&&ue(d,l))return c=o,r;const f=null==o.key?a:o.key,h=i.get(f);return o.el&&(o=fr(o),128&r.shapeFlag&&(r.ssContent=o)),g=f,h?(o.el=h.el,o.component=h.component,o.transition&&ne(o,o.transition),o.shapeFlag|=512,s.delete(f),s.add(f)):(s.add(f),p&&s.size>parseInt(p,10)&&v(s.values().next().value)),o.shapeFlag|=256,c=o,Ln(r.type)?r:o}}};function ue(e,t){return Object(o.isArray)(e)?e.some(e=>ue(e,t)):Object(o.isString)(e)?e.split(",").includes(t):!!Object(o.isRegExp)(e)&&e.test(t)}function de(e,t){fe(e,"a",t)}function pe(e,t){fe(e,"da",t)}function fe(e,t,n=Nr){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(ge(t,r,n),n){let e=n.parent;for(;e&&e.parent;)ae(e.parent.vnode)&&he(r,t,n,e),e=e.parent}}function he(e,t,n,r){const i=ge(t,e,r,!0);we(()=>{Object(o.remove)(r[t],i)},n)}function me(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ve(e){return 128&e.shapeFlag?e.ssContent:e}function ge(e,t,n=Nr,o=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{Object(r.pauseTracking)();const i=Ar(n),s=f(t,n,e,o);return i(),Object(r.resetTracking)(),s});return o?i.unshift(s):i.push(s),s}}const ye=e=>(t,n=Nr)=>{Rr&&"sp"!==e||ge(e,(...e)=>t(...e),n)},be=ye("bm"),Oe=ye("m"),_e=ye("bu"),Ee=ye("u"),Se=ye("bum"),we=ye("um"),Ne=ye("sp"),xe=ye("rtg"),Te=ye("rtc");function je(e,t=Nr){ge("ec",e,t)}function Ae(e,t){return Pe("components",e,!0,t)||e}const Ce=Symbol.for("v-ndc");function ke(e){return Object(o.isString)(e)?Pe("components",e,!1)||e:e||Ce}function Ie(e){return Pe("directives",e)}function Pe(e,t,n=!0,r=!1){const i=L||Nr;if(i){const n=i.type;if("components"===e){const e=Yr(n,!1);if(e&&(e===t||e===Object(o.camelize)(t)||e===Object(o.capitalize)(Object(o.camelize)(t))))return n}const s=Re(i[e]||n[e],t)||Re(i.appContext[e],t);return!s&&r?n:s}}function Re(e,t){return e&&(e[t]||e[Object(o.camelize)(t)]||e[Object(o.capitalize)(Object(o.camelize)(t))])}function Me(e,t,n,r){let i;const s=n&&n[r];if(Object(o.isArray)(e)||Object(o.isString)(e)){i=new Array(e.length);for(let n=0,r=e.length;nt(e,n,void 0,s&&s[n]));else{const n=Object.keys(e);i=new Array(n.length);for(let r=0,o=n.length;r{const t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function Fe(e,t,n={},r,o){if(L.isCE||L.parent&&ie(L.parent)&&L.parent.isCE)return"default"!==t&&(n.name=t),ur("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),Jn();const s=i&&function e(t){return t.some(t=>!or(t)||t.type!==zn&&!(t.type===Yn&&!e(t.children)))?t:null}(i(n)),c=rr(Yn,{key:(n.key||s&&s.key||"_"+t)+(!s&&r?"_fb":"")},s||(r?r():[]),s&&1===e._?64:-2);return!o&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),i&&i._c&&(i._d=!0),c}function De(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?"on:"+r:Object(o.toHandlerKey)(r)]=e[r];return n}const Ve=e=>e?kr(e)?Ur(e):Ve(e.parent):null,Be=Object(o.extend)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ve(e.parent),$root:e=>Ve(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?lt(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,N(e.update)}),$nextTick:e=>e.n||(e.n=w.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?En.bind(e):o.NOOP}),$e=(e,t)=>e!==o.EMPTY_OBJ&&!e.__isScriptSetup&&Object(o.hasOwn)(e,t),Ue={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:i,data:s,props:c,accessCache:a,type:l,appContext:u}=e;let d;if("$"!==t[0]){const r=a[t];if(void 0!==r)switch(r){case 1:return i[t];case 2:return s[t];case 4:return n[t];case 3:return c[t]}else{if($e(i,t))return a[t]=1,i[t];if(s!==o.EMPTY_OBJ&&Object(o.hasOwn)(s,t))return a[t]=2,s[t];if((d=e.propsOptions[0])&&Object(o.hasOwn)(d,t))return a[t]=3,c[t];if(n!==o.EMPTY_OBJ&&Object(o.hasOwn)(n,t))return a[t]=4,n[t];__VUE_OPTIONS_API__&&!it||(a[t]=0)}}const p=Be[t];let f,h;return p?("$attrs"===t&&Object(r.track)(e.attrs,"get",""),p(e)):(f=l.__cssModules)&&(f=f[t])?f:n!==o.EMPTY_OBJ&&Object(o.hasOwn)(n,t)?(a[t]=4,n[t]):(h=u.config.globalProperties,Object(o.hasOwn)(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return $e(i,t)?(i[t]=n,!0):r!==o.EMPTY_OBJ&&Object(o.hasOwn)(r,t)?(r[t]=n,!0):!Object(o.hasOwn)(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(s[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},c){let a;return!!n[c]||e!==o.EMPTY_OBJ&&Object(o.hasOwn)(e,c)||$e(t,c)||(a=s[0])&&Object(o.hasOwn)(a,c)||Object(o.hasOwn)(r,c)||Object(o.hasOwn)(Be,c)||Object(o.hasOwn)(i.config.globalProperties,c)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:Object(o.hasOwn)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};const He=Object(o.extend)({},Ue,{get(e,t){if(t!==Symbol.unscopables)return Ue.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!Object(o.isGloballyAllowed)(t)});function Ye(){return null}function We(){return null}function ze(e){0}function Ke(e){0}function Ge(){return null}function qe(){0}function Je(e,t){return null}function Xe(){return Qe().slots}function Ze(){return Qe().attrs}function Qe(){const e=xr();return e.setupContext||(e.setupContext=$r(e))}function et(e){return Object(o.isArray)(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function tt(e,t){const n=et(e);for(const e in t){if(e.startsWith("__skip"))continue;let r=n[e];r?Object(o.isArray)(r)||Object(o.isFunction)(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:null===r&&(r=n[e]={default:t[e]}),r&&t["__skip_"+e]&&(r.skipFactory=!0)}return n}function nt(e,t){return e&&t?Object(o.isArray)(e)&&Object(o.isArray)(t)?e.concat(t):Object(o.extend)({},et(e),et(t)):e||t}function rt(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function ot(e){const t=xr();let n=e();return Cr(),Object(o.isPromise)(n)&&(n=n.catch(e=>{throw Ar(t),e})),[n,()=>Ar(t)]}let it=!0;function st(e){const t=lt(e),n=e.proxy,i=e.ctx;it=!1,t.beforeCreate&&ct(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:a,watch:l,provide:u,inject:d,created:p,beforeMount:f,mounted:h,beforeUpdate:m,updated:v,activated:g,deactivated:y,beforeDestroy:b,beforeUnmount:O,destroyed:_,unmounted:E,render:S,renderTracked:w,renderTriggered:N,errorCaptured:x,serverPrefetch:T,expose:j,inheritAttrs:A,components:C,directives:k,filters:I}=t;if(d&&function(e,t,n=o.NOOP){Object(o.isArray)(e)&&(e=ft(e));for(const n in e){const i=e[n];let s;s=Object(o.isObject)(i)?"default"in i?Et(i.from||n,i.default,!0):Et(i.from||n):Et(i),Object(r.isRef)(s)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[n]=s}}(d,i,null),a)for(const e in a){const t=a[e];Object(o.isFunction)(t)&&(i[e]=t.bind(n))}if(s){0;const t=s.call(n,n);0,Object(o.isObject)(t)&&(e.data=Object(r.reactive)(t))}if(it=!0,c)for(const e in c){const t=c[e],r=Object(o.isFunction)(t)?t.bind(n,n):Object(o.isFunction)(t.get)?t.get.bind(n,n):o.NOOP;0;const s=!Object(o.isFunction)(t)&&Object(o.isFunction)(t.set)?t.set.bind(n):o.NOOP,a=Kr({get:r,set:s});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(l)for(const e in l)at(l[e],i,n,e);if(u){const e=Object(o.isFunction)(u)?u.call(n):u;Reflect.ownKeys(e).forEach(t=>{_t(t,e[t])})}function P(e,t){Object(o.isArray)(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(p&&ct(p,e,"c"),P(be,f),P(Oe,h),P(_e,m),P(Ee,v),P(de,g),P(pe,y),P(je,x),P(Te,w),P(xe,N),P(Se,O),P(we,E),P(Ne,T),Object(o.isArray)(j))if(j.length){const t=e.exposed||(e.exposed={});j.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})})}else e.exposed||(e.exposed={});S&&e.render===o.NOOP&&(e.render=S),null!=A&&(e.inheritAttrs=A),C&&(e.components=C),k&&(e.directives=k)}function ct(e,t,n){f(Object(o.isArray)(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function at(e,t,n,r){const i=r.includes(".")?Sn(n,r):()=>n[r];if(Object(o.isString)(e)){const n=t[e];Object(o.isFunction)(n)&&On(i,n)}else if(Object(o.isFunction)(e))On(i,e.bind(n));else if(Object(o.isObject)(e))if(Object(o.isArray)(e))e.forEach(e=>at(e,t,n,r));else{const r=Object(o.isFunction)(e.handler)?e.handler.bind(n):t[e.handler];Object(o.isFunction)(r)&&On(i,r,e)}else 0}function lt(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:c}}=e.appContext,a=s.get(t);let l;return a?l=a:i.length||n||r?(l={},i.length&&i.forEach(e=>ut(l,e,c,!0)),ut(l,t,c)):l=t,Object(o.isObject)(t)&&s.set(t,l),l}function ut(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&ut(e,i,n,!0),o&&o.forEach(t=>ut(e,t,n,!0));for(const o in t)if(r&&"expose"===o);else{const r=dt[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const dt={data:pt,props:vt,emits:vt,methods:mt,computed:mt,beforeCreate:ht,created:ht,beforeMount:ht,mounted:ht,beforeUpdate:ht,updated:ht,beforeDestroy:ht,beforeUnmount:ht,destroyed:ht,unmounted:ht,activated:ht,deactivated:ht,errorCaptured:ht,serverPrefetch:ht,components:mt,directives:mt,watch:function(e,t){if(!e)return t;if(!t)return e;const n=Object(o.extend)(Object.create(null),e);for(const r in t)n[r]=ht(e[r],t[r]);return n},provide:pt,inject:function(e,t){return mt(ft(e),ft(t))}};function pt(e,t){return t?e?function(){return Object(o.extend)(Object(o.isFunction)(e)?e.call(this,this):e,Object(o.isFunction)(t)?t.call(this,this):t)}:t:e}function ft(e){if(Object(o.isArray)(e)){const t={};for(let n=0;n(s.has(e)||(e&&Object(o.isFunction)(e.install)?(s.add(e),e.install(a,...t)):Object(o.isFunction)(e)&&(s.add(e),e(a,...t))),a),mixin:e=>(__VUE_OPTIONS_API__&&(i.mixins.includes(e)||i.mixins.push(e)),a),component:(e,t)=>t?(i.components[e]=t,a):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,a):i.directives[e],mount(o,s,l){if(!c){0;const u=ur(n,r);return u.appContext=i,!0===l?l="svg":!1===l&&(l=void 0),s&&t?t(u,o):e(u,o,l),c=!0,a._container=o,o.__vue_app__=a,Ur(u.component)}},unmount(){c&&(e(null,a._container),delete a._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,a),runWithContext(e){const t=Ot;Ot=a;try{return e()}finally{Ot=t}}};return a}}let Ot=null;function _t(e,t){if(Nr){let n=Nr.provides;const r=Nr.parent&&Nr.parent.provides;r===n&&(n=Nr.provides=Object.create(r)),n[e]=t}else 0}function Et(e,t,n=!1){const r=Nr||L;if(r||Ot){const i=r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Ot._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&Object(o.isFunction)(t)?t.call(r&&r.proxy):t}else 0}function St(){return!!(Nr||L||Ot)}const wt={},Nt=()=>Object.create(wt),xt=e=>Object.getPrototypeOf(e)===wt;function Tt(e,t,n,i){const[s,c]=e.propsOptions;let a,l=!1;if(t)for(let r in t){if(Object(o.isReservedProp)(r))continue;const u=t[r];let d;s&&Object(o.hasOwn)(s,d=Object(o.camelize)(r))?c&&c.includes(d)?(a||(a={}))[d]=u:n[d]=u:An(e.emitsOptions,r)||r in i&&u===i[r]||(i[r]=u,l=!0)}if(c){const t=Object(r.toRaw)(n),i=a||o.EMPTY_OBJ;for(let r=0;r{l=!0;const[n,r]=Ct(e,t,!0);Object(o.extend)(c,n),r&&a.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!s&&!l)return Object(o.isObject)(e)&&r.set(e,o.EMPTY_ARR),o.EMPTY_ARR;if(Object(o.isArray)(s))for(let e=0;e-1,r[1]=n<0||e-1||Object(o.hasOwn)(r,"default"))&&a.push(t)}}}}const u=[c,a];return Object(o.isObject)(e)&&r.set(e,u),u}function kt(e){return"$"!==e[0]&&!Object(o.isReservedProp)(e)}function It(e){if(null===e)return"null";if("function"==typeof e)return e.name||"";if("object"==typeof e){return e.constructor&&e.constructor.name||""}return""}function Pt(e,t){return It(e)===It(t)}function Rt(e,t){return Object(o.isArray)(t)?t.findIndex(t=>Pt(t,e)):Object(o.isFunction)(t)&&Pt(t,e)?0:-1}const Mt=e=>"_"===e[0]||"$stable"===e,Lt=e=>Object(o.isArray)(e)?e.map(gr):[gr(e)],Ft=(e,t,n)=>{if(t._n)return t;const r=U((...e)=>Lt(t(...e)),n);return r._c=!1,r},Dt=(e,t,n)=>{const r=e._ctx;for(const n in e){if(Mt(n))continue;const i=e[n];if(Object(o.isFunction)(i))t[n]=Ft(0,i,r);else if(null!=i){0;const e=Lt(i);t[n]=()=>e}}},Vt=(e,t)=>{const n=Lt(t);e.slots.default=()=>n},Bt=(e,t,n)=>{for(const r in t)(n||"_"!==r)&&(e[r]=t[r])};function $t(e,t,n,i,s=!1){if(Object(o.isArray)(e))return void e.forEach((e,r)=>$t(e,t&&(Object(o.isArray)(t)?t[r]:t),n,i,s));if(ie(i)&&!s)return;const c=4&i.shapeFlag?Ur(i.component):i.el,a=s?null:c,{i:l,r:u}=e;const d=t&&t.r,f=l.refs===o.EMPTY_OBJ?l.refs={}:l.refs,h=l.setupState;if(null!=d&&d!==u&&(Object(o.isString)(d)?(f[d]=null,Object(o.hasOwn)(h,d)&&(h[d]=null)):Object(r.isRef)(d)&&(d.value=null)),Object(o.isFunction)(u))p(u,l,12,[a,f]);else{const t=Object(o.isString)(u),i=Object(r.isRef)(u);if(t||i){const r=()=>{if(e.f){const n=t?Object(o.hasOwn)(h,u)?h[u]:f[u]:u.value;s?Object(o.isArray)(n)&&Object(o.remove)(n,c):Object(o.isArray)(n)?n.includes(c)||n.push(c):t?(f[u]=[c],Object(o.hasOwn)(h,u)&&(h[u]=f[u])):(u.value=[c],e.k&&(f[e.k]=u.value))}else t?(f[u]=a,Object(o.hasOwn)(h,u)&&(h[u]=a)):i&&(u.value=a,e.k&&(f[e.k]=a))};a?(r.id=-1,on(r,n)):r()}else 0}}const Ut=Symbol("_vte"),Ht=e=>e&&(e.disabled||""===e.disabled),Yt=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Wt=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,zt=(e,t)=>{const n=e&&e.to;if(Object(o.isString)(n)){if(t){return t(n)}return null}return n};function Kt(e,t,n,{o:{insert:r},m:o},i=2){0===i&&r(e.targetAnchor,t,n);const{el:s,anchor:c,shapeFlag:a,children:l,props:u}=e,d=2===i;if(d&&r(s,t,n),(!d||Ht(u))&&16&a)for(let e=0;e{16&y&&u(b,e,t,o,i,s,c,a)};g?O(n,l):d&&O(d,v)}else{t.el=e.el,t.targetStart=e.targetStart;const r=t.anchor=e.anchor,u=t.target=e.target,f=t.targetAnchor=e.targetAnchor,m=Ht(e.props),v=m?n:u,y=m?r:f;if("svg"===s||Yt(u)?s="svg":("mathml"===s||Wt(u))&&(s="mathml"),O?(p(e.dynamicChildren,O,v,o,i,s,c),pn(e,t,!0)):a||d(e,t,v,y,o,i,s,c,!1),g)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Kt(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=zt(t.props,h);e&&Kt(t,e,null,l,0)}else m&&Kt(t,u,f,l,1)}qt(t)},remove(e,t,n,{um:r,o:{remove:o}},i){const{shapeFlag:s,children:c,anchor:a,targetStart:l,targetAnchor:u,target:d,props:p}=e;if(d&&(o(l),o(u)),i&&o(a),16&s){const e=i||!Ht(p);for(let o=0;o{Jt||(console.error("Hydration completed but contains mismatches."),Jt=!0)},Zt=e=>(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0,Qt=e=>8===e.nodeType;function en(e){const{mt:t,p:n,o:{patchProp:i,createText:s,nextSibling:a,parentNode:l,remove:u,insert:d,createComment:p}}=e,f=(n,r,o,i,u,p=!1)=>{p=p||!!r.dynamicChildren;const _=Qt(n)&&"["===n.data,E=()=>g(n,r,o,i,u,_),{type:S,ref:w,shapeFlag:N,patchFlag:x}=r;let T=n.nodeType;r.el=n,-2===x&&(p=!1,r.dynamicChildren=null);let j=null;switch(S){case Wn:3!==T?""===r.children?(d(r.el=s(""),l(n),n),j=n):j=E():(n.data!==r.children&&(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&c("Hydration text mismatch in",n.parentNode,`\n - rendered on server: ${JSON.stringify(n.data)}\n - expected on client: ${JSON.stringify(r.children)}`),Xt(),n.data=r.children),j=a(n));break;case zn:O(n)?(j=a(n),b(r.el=n.content.firstChild,n,o)):j=8!==T||_?E():a(n);break;case Kn:if(_&&(T=(n=a(n)).nodeType),1===T||3===T){j=n;const e=!r.children.length;for(let t=0;t{l=l||!!t.dynamicChildren;const{type:d,props:p,patchFlag:f,shapeFlag:h,dirs:v,transition:g}=t,y="input"===d||"option"===d;if(y||-1!==f){v&&Y(t,null,n,"created");let d,_=!1;if(O(e)){_=dn(s,g)&&n&&n.vnode.props&&n.vnode.props.appear;const r=e.content.firstChild;_&&g.beforeEnter(r),b(r,e,n),t.el=e=r}if(16&h&&(!p||!p.innerHTML&&!p.textContent)){let r=m(e.firstChild,t,e,n,s,a,l),o=!1;for(;r;){__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!o&&(c("Hydration children mismatch on",e,"\nServer rendered element contains more child nodes than client vdom."),o=!0),Xt();const t=r;r=r.nextSibling,u(t)}}else 8&h&&e.textContent!==t.children&&(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&c("Hydration text content mismatch on",e,`\n - rendered on server: ${e.textContent}\n - expected on client: ${t.children}`),Xt(),e.textContent=t.children);if(p)if(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__||y||!l||48&f)for(const r in p)!__VUE_PROD_HYDRATION_MISMATCH_DETAILS__||v&&v.some(e=>e.dir.created)||!tn(e,r,p[r],t,n)||Xt(),(y&&(r.endsWith("value")||"indeterminate"===r)||Object(o.isOn)(r)&&!Object(o.isReservedProp)(r)||"."===r[0])&&i(e,r,null,p[r],void 0,n);else if(p.onClick)i(e,"onClick",null,p.onClick,void 0,n);else if(4&f&&Object(r.isReactive)(p.style))for(const e in p.style)p.style[e];(d=p&&p.onVnodeBeforeMount)&&_r(d,n,t),v&&Y(t,null,n,"beforeMount"),((d=p&&p.onVnodeMounted)||v||_)&&Un(()=>{d&&_r(d,n,t),_&&g.enter(e),v&&Y(t,null,n,"mounted")},s)}return e.nextSibling},m=(e,t,r,o,i,l,u)=>{u=u||!!t.dynamicChildren;const p=t.children,h=p.length;let m=!1;for(let t=0;t{const{slotScopeIds:s}=t;s&&(o=o?o.concat(s):s);const c=l(e),u=m(a(e),t,c,n,r,o,i);return u&&Qt(u)&&"]"===u.data?a(t.anchor=u):(Xt(),d(t.anchor=p("]"),c,u),u)},g=(e,t,r,o,i,s)=>{if(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&c("Hydration node mismatch:\n- rendered on server:",e,3===e.nodeType?"(text)":Qt(e)&&"["===e.data?"(start of fragment)":"","\n- expected on client:",t.type),Xt(),t.el=null,s){const t=y(e);for(;;){const n=a(e);if(!n||n===t)break;u(n)}}const d=a(e),p=l(e);return u(e),n(null,t,p,d,r,o,Zt(p),i),d},y=(e,t="[",n="]")=>{let r=0;for(;e;)if((e=a(e))&&Qt(e)&&(e.data===t&&r++,e.data===n)){if(0===r)return a(e);r--}return e},b=(e,t,n)=>{const r=t.parentNode;r&&r.replaceChild(e,t);let o=n;for(;o;)o.vnode.el===t&&(o.vnode.el=o.subTree.el=e),o=o.parent},O=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[(e,t)=>{if(!t.hasChildNodes())return __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&c("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),n(null,e,t),A(),void(t._vnode=e);f(t.firstChild,e,null,null,null),A(),t._vnode=e},f]}function tn(e,t,n,r,i){let s,a,l,u;if("class"===t)l=e.getAttribute("class"),u=Object(o.normalizeClass)(n),function(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}(nn(l||""),nn(u))||(s=a="class");else if("style"===t){l=e.getAttribute("style")||"",u=Object(o.isString)(n)?n:Object(o.stringifyStyle)(Object(o.normalizeStyle)(n));const t=rn(l),c=rn(u);if(r.dirs)for(const{dir:e,value:t}of r.dirs)"show"!==e.name||t||c.set("display","none");i&&function e(t,n,r){const o=t.subTree;if(t.getCssVars&&(n===o||o&&o.type===Yn&&o.children.includes(n))){const e=t.getCssVars();for(const t in e)r.set("--"+t,String(e[t]))}n===o&&t.parent&&e(t.parent,t.vnode,r)}(i,r,c),function(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e)if(r!==t.get(n))return!1;return!0}(t,c)||(s=a="style")}else(e instanceof SVGElement&&Object(o.isKnownSvgAttr)(t)||e instanceof HTMLElement&&(Object(o.isBooleanAttr)(t)||Object(o.isKnownHtmlAttr)(t)))&&(Object(o.isBooleanAttr)(t)?(l=e.hasAttribute(t),u=Object(o.includeBooleanAttr)(n)):null==n?(l=e.hasAttribute(t),u=!1):(l=e.hasAttribute(t)?e.getAttribute(t):"value"===t&&"TEXTAREA"===e.tagName&&e.value,u=!!Object(o.isRenderableAttrValue)(n)&&String(n)),l!==u&&(s="attribute",a=t));if(s){const t=e=>!1===e?"(not rendered)":`${a}="${e}"`;return c(`Hydration ${s} mismatch on`,e,`\n - rendered on server: ${t(l)}\n - expected on client: ${t(u)}\n Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.\n You should fix the source of the mismatch.`),!0}return!1}function nn(e){return new Set(e.trim().split(/\s+/))}function rn(e){const t=new Map;for(const n of e.split(";")){let[e,r]=n.split(":");e=e.trim(),r=r&&r.trim(),e&&r&&t.set(e,r)}return t}const on=Un;function sn(e){return an(e)}function cn(e){return an(e,en)}function an(e,t){"boolean"!=typeof __VUE_OPTIONS_API__&&(Object(o.getGlobalThis)().__VUE_OPTIONS_API__=!0),"boolean"!=typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&(Object(o.getGlobalThis)().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1);Object(o.getGlobalThis)().__VUE__=!0;const{insert:n,remove:i,patchProp:s,createElement:c,createText:a,createComment:l,setText:u,setElementText:d,parentNode:p,nextSibling:f,setScopeId:h=o.NOOP,insertStaticContent:m}=e,v=(e,t,n,r=null,o=null,i=null,s,c=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!ir(e,t)&&(r=q(e),H(e,o,i,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:l,ref:u,shapeFlag:d}=t;switch(l){case Wn:b(e,t,n,r);break;case zn:O(e,t,n,r);break;case Kn:null==e&&_(t,n,r,s);break;case Yn:P(e,t,n,r,o,i,s,c,a);break;default:1&d?S(e,t,n,r,o,i,s,c,a):6&d?R(e,t,n,r,o,i,s,c,a):(64&d||128&d)&&l.process(e,t,n,r,o,i,s,c,a,Z)}null!=u&&o&&$t(u,e&&e.ref,i,t||e,!t)},b=(e,t,r,o)=>{if(null==e)n(t.el=a(t.children),r,o);else{const n=t.el=e.el;t.children!==e.children&&u(n,t.children)}},O=(e,t,r,o)=>{null==e?n(t.el=l(t.children||""),r,o):t.el=e.el},_=(e,t,n,r)=>{[e.el,e.anchor]=m(e.children,t,n,r,e.el,e.anchor)},E=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=f(e),i(e),e=n;i(t)},S=(e,t,n,r,o,i,s,c,a)=>{"svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e?w(t,n,r,o,i,s,c,a):C(e,t,o,i,s,c,a)},w=(e,t,r,i,a,l,u,p)=>{let f,h;const{props:m,shapeFlag:v,transition:g,dirs:y}=e;if(f=e.el=c(e.type,l,m&&m.is,m),8&v?d(f,e.children):16&v&&T(e.children,f,null,i,a,ln(e,l),u,p),y&&Y(e,null,i,"created"),x(f,e,e.scopeId,u,i),m){for(const e in m)"value"===e||Object(o.isReservedProp)(e)||s(f,e,null,m[e],l,i);"value"in m&&s(f,"value",null,m.value,l),(h=m.onVnodeBeforeMount)&&_r(h,i,e)}y&&Y(e,null,i,"beforeMount");const b=dn(a,g);b&&g.beforeEnter(f),n(f,t,r),((h=m&&m.onVnodeMounted)||b||y)&&on(()=>{h&&_r(h,i,e),b&&g.enter(f),y&&Y(e,null,i,"mounted")},a)},x=(e,t,n,r,o)=>{if(n&&h(e,n),r)for(let t=0;t{for(let l=a;l{const l=t.el=e.el;let{patchFlag:u,dynamicChildren:p,dirs:f}=t;u|=16&e.patchFlag;const h=e.props||o.EMPTY_OBJ,m=t.props||o.EMPTY_OBJ;let v;if(n&&un(n,!1),(v=m.onVnodeBeforeUpdate)&&_r(v,n,t,e),f&&Y(t,e,n,"beforeUpdate"),n&&un(n,!0),(h.innerHTML&&null==m.innerHTML||h.textContent&&null==m.textContent)&&d(l,""),p?k(e.dynamicChildren,p,l,n,r,ln(t,i),c):a||V(e,t,l,null,n,r,ln(t,i),c,!1),u>0){if(16&u)I(l,h,m,n,i);else if(2&u&&h.class!==m.class&&s(l,"class",null,m.class,i),4&u&&s(l,"style",h.style,m.style,i),8&u){const e=t.dynamicProps;for(let t=0;t{v&&_r(v,n,t,e),f&&Y(t,e,n,"updated")},r)},k=(e,t,n,r,o,i,s)=>{for(let c=0;c{if(t!==n){if(t!==o.EMPTY_OBJ)for(const c in t)Object(o.isReservedProp)(c)||c in n||s(e,c,t[c],null,i,r);for(const c in n){if(Object(o.isReservedProp)(c))continue;const a=n[c],l=t[c];a!==l&&"value"!==c&&s(e,c,l,a,i,r)}"value"in n&&s(e,"value",t.value,n.value,i)}},P=(e,t,r,o,i,s,c,l,u)=>{const d=t.el=e?e.el:a(""),p=t.anchor=e?e.anchor:a("");let{patchFlag:f,dynamicChildren:h,slotScopeIds:m}=t;m&&(l=l?l.concat(m):m),null==e?(n(d,r,o),n(p,r,o),T(t.children||[],r,p,i,s,c,l,u)):f>0&&64&f&&h&&e.dynamicChildren?(k(e.dynamicChildren,h,r,i,s,c,l),(null!=t.key||i&&t===i.subTree)&&pn(e,t,!0)):V(e,t,r,p,i,s,c,l,u)},R=(e,t,n,r,o,i,s,c,a)=>{t.slotScopeIds=c,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,s,a):M(t,n,r,o,i,s,a):L(e,t,a)},M=(e,t,n,r,o,i,s)=>{const c=e.component=wr(e,r,o);if(ae(e)&&(c.ctx.renderer=Z),Mr(c,!1,s),c.asyncDep){if(o&&o.registerDep(c,F,s),!e.el){const e=c.subTree=ur(zn);O(null,e,t,n)}}else F(c,e,t,n,o,i,s)},L=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:o,component:i}=e,{props:s,children:c,patchFlag:a}=t,l=i.emitsOptions;0;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!o&&!c||c&&c.$stable)||r!==s&&(r?!s||Rn(r,s,l):!!s);if(1024&a)return!0;if(16&a)return r?Rn(r,s,l):!!s;if(8&a){const e=t.dynamicProps;for(let t=0;ty&&g.splice(t,1)}(r.update),r.effect.dirty=!0,r.update()}else t.el=e.el,r.vnode=t},F=(e,t,n,i,s,c,a)=>{const l=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:i,vnode:u}=e;{const n=function e(t){const n=t.subTree.component;if(n)return n.asyncDep&&!n.asyncResolved?n:e(n)}(e);if(n)return t&&(t.el=u.el,D(e,t,a)),void n.asyncDep.then(()=>{e.isUnmounted||l()})}let d,f=t;0,un(e,!1),t?(t.el=u.el,D(e,t,a)):t=u,n&&Object(o.invokeArrayFns)(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&_r(d,i,t,u),un(e,!0);const h=Cn(e);0;const m=e.subTree;e.subTree=h,v(m,h,p(m.el),q(m),e,s,c),t.el=h.el,null===f&&Mn(e,h.el),r&&on(r,s),(d=t.props&&t.props.onVnodeUpdated)&&on(()=>_r(d,i,t,u),s)}else{let r;const{el:a,props:l}=t,{bm:u,m:d,parent:p}=e,f=ie(t);if(un(e,!1),u&&Object(o.invokeArrayFns)(u),!f&&(r=l&&l.onVnodeBeforeMount)&&_r(r,p,t),un(e,!0),a&&ee){const n=()=>{e.subTree=Cn(e),ee(a,e.subTree,e,s,null)};f?t.type.__asyncLoader().then(()=>!e.isUnmounted&&n()):n()}else{0;const r=e.subTree=Cn(e);0,v(null,r,n,i,e,s,c),t.el=r.el}if(d&&on(d,s),!f&&(r=l&&l.onVnodeMounted)){const e=t;on(()=>_r(r,p,e),s)}(256&t.shapeFlag||p&&ie(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&on(e.a,s),e.isMounted=!0,t=n=i=null}},u=e.effect=new r.ReactiveEffect(l,o.NOOP,()=>N(d),e.scope),d=e.update=()=>{u.dirty&&u.run()};d.i=e,d.id=e.uid,un(e,!0),d()},D=(e,t,n)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,i){const{props:s,attrs:c,vnode:{patchFlag:a}}=e,l=Object(r.toRaw)(s),[u]=e.propsOptions;let d=!1;if(!(i||a>0)||16&a){let r;Tt(e,t,s,c)&&(d=!0);for(const i in l)t&&(Object(o.hasOwn)(t,i)||(r=Object(o.hyphenate)(i))!==i&&Object(o.hasOwn)(t,r))||(u?!n||void 0===n[i]&&void 0===n[r]||(s[i]=jt(u,l,i,void 0,e,!0)):delete s[i]);if(c!==l)for(const e in c)t&&Object(o.hasOwn)(t,e)||(delete c[e],d=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let r=0;r{const{vnode:r,slots:i}=e;let s=!0,c=o.EMPTY_OBJ;if(32&r.shapeFlag){const e=t._;e?n&&1===e?s=!1:Bt(i,t,n):(s=!t.$stable,Dt(t,i)),c=t}else t&&(Vt(e,t),c={default:1});if(s)for(const e in i)Mt(e)||null!=c[e]||delete i[e]})(e,t.children,n),Object(r.pauseTracking)(),j(e),Object(r.resetTracking)()},V=(e,t,n,r,o,i,s,c,a=!1)=>{const l=e&&e.children,u=e?e.shapeFlag:0,p=t.children,{patchFlag:f,shapeFlag:h}=t;if(f>0){if(128&f)return void $(l,p,n,r,o,i,s,c,a);if(256&f)return void B(l,p,n,r,o,i,s,c,a)}8&h?(16&u&&G(l,o,i),p!==l&&d(n,p)):16&u?16&h?$(l,p,n,r,o,i,s,c,a):G(l,o,i,!0):(8&u&&d(n,""),16&h&&T(p,n,r,o,i,s,c,a))},B=(e,t,n,r,i,s,c,a,l)=>{e=e||o.EMPTY_ARR,t=t||o.EMPTY_ARR;const u=e.length,d=t.length,p=Math.min(u,d);let f;for(f=0;fd?G(e,i,s,!0,!1,p):T(t,n,r,i,s,c,a,l,p)},$=(e,t,n,r,i,s,c,a,l)=>{let u=0;const d=t.length;let p=e.length-1,f=d-1;for(;u<=p&&u<=f;){const r=e[u],o=t[u]=l?yr(t[u]):gr(t[u]);if(!ir(r,o))break;v(r,o,n,null,i,s,c,a,l),u++}for(;u<=p&&u<=f;){const r=e[p],o=t[f]=l?yr(t[f]):gr(t[f]);if(!ir(r,o))break;v(r,o,n,null,i,s,c,a,l),p--,f--}if(u>p){if(u<=f){const e=f+1,o=ef)for(;u<=p;)H(e[u],i,s,!0),u++;else{const h=u,m=u,g=new Map;for(u=m;u<=f;u++){const e=t[u]=l?yr(t[u]):gr(t[u]);null!=e.key&&g.set(e.key,u)}let y,b=0;const O=f-m+1;let _=!1,E=0;const S=new Array(O);for(u=0;u=O){H(r,i,s,!0);continue}let o;if(null!=r.key)o=g.get(r.key);else for(y=m;y<=f;y++)if(0===S[y-m]&&ir(r,t[y])){o=y;break}void 0===o?H(r,i,s,!0):(S[o-m]=u+1,o>=E?E=o:_=!0,v(r,t[o],n,null,i,s,c,a,l),b++)}const w=_?function(e){const t=e.slice(),n=[0];let r,o,i,s,c;const a=e.length;for(r=0;r>1,e[n[c]]0&&(t[r]=n[i-1]),n[i]=r)}}i=n.length,s=n[i-1];for(;i-- >0;)n[i]=s,s=t[s];return n}(S):o.EMPTY_ARR;for(y=w.length-1,u=O-1;u>=0;u--){const e=m+u,o=t[e],p=e+1{const{el:s,type:c,transition:a,children:l,shapeFlag:u}=e;if(6&u)return void U(e.component.subTree,t,r,o);if(128&u)return void e.suspense.move(t,r,o);if(64&u)return void c.move(e,t,r,Z);if(c===Yn){n(s,t,r);for(let e=0;e{let i;for(;e&&e!==t;)i=f(e),n(e,r,o),e=i;n(t,r,o)})(e,t,r);if(2!==o&&1&u&&a)if(0===o)a.beforeEnter(s),n(s,t,r),on(()=>a.enter(s),i);else{const{leave:e,delayLeave:o,afterLeave:i}=a,c=()=>n(s,t,r),l=()=>{e(s,()=>{c(),i&&i()})};o?o(s,c,l):l()}else n(s,t,r)},H=(e,t,n,r=!1,o=!1)=>{const{type:i,props:s,ref:c,children:a,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:p,cacheIndex:f}=e;if(-2===d&&(o=!1),null!=c&&$t(c,null,n,e,!0),null!=f&&(t.renderCache[f]=void 0),256&u)return void t.ctx.deactivate(e);const h=1&u&&p,m=!ie(e);let v;if(m&&(v=s&&s.onVnodeBeforeUnmount)&&_r(v,t,e),6&u)K(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);h&&Y(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,Z,r):l&&!l.hasOnce&&(i!==Yn||d>0&&64&d)?G(l,t,n,!1,!0):(i===Yn&&384&d||!o&&16&u)&&G(a,t,n),r&&W(e)}(m&&(v=s&&s.onVnodeUnmounted)||h)&&on(()=>{v&&_r(v,t,e),h&&Y(e,null,t,"unmounted")},n)},W=e=>{const{type:t,el:n,anchor:r,transition:o}=e;if(t===Yn)return void z(n,r);if(t===Kn)return void E(e);const s=()=>{i(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,i=()=>t(n,s);r?r(e.el,s,i):i()}else s()},z=(e,t)=>{let n;for(;e!==t;)n=f(e),i(e),e=n;i(t)},K=(e,t,n)=>{const{bum:r,scope:i,update:s,subTree:c,um:a,m:l,a:u}=e;fn(l),fn(u),r&&Object(o.invokeArrayFns)(r),i.stop(),s&&(s.active=!1,H(c,e,t,n)),a&&on(a,t),on(()=>{e.isUnmounted=!0},t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},G=(e,t,n,r=!1,o=!1,i=0)=>{for(let s=i;s{if(6&e.shapeFlag)return q(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=f(e.anchor||e.el),n=t&&t[Ut];return n?f(n):t};let J=!1;const X=(e,t,n)=>{null==e?t._vnode&&H(t._vnode,null,null,!0):v(t._vnode||null,e,t,null,null,null,n),J||(J=!0,j(),A(),J=!1),t._vnode=e},Z={p:v,um:H,m:U,r:W,mt:M,mc:T,pc:V,pbc:k,n:q,o:e};let Q,ee;return t&&([Q,ee]=t(Z)),{render:X,hydrate:Q,createApp:bt(X,Q)}}function ln({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function un({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function dn(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function pn(e,t,n=!1){const r=e.children,i=t.children;if(Object(o.isArray)(r)&&Object(o.isArray)(i))for(let e=0;e{{const e=Et(hn);return e}};function vn(e,t){return _n(e,null,t)}function gn(e,t){return _n(e,null,{flush:"post"})}function yn(e,t){return _n(e,null,{flush:"sync"})}const bn={};function On(e,t,n){return _n(e,t,n)}function _n(e,t,{immediate:n,deep:i,flush:s,once:c,onTrack:a,onTrigger:l}=o.EMPTY_OBJ){if(t&&c){const e=t;t=(...t)=>{e(...t),x()}}const u=Nr,d=e=>!0===i?e:wn(e,!1===i?1:void 0);let h,m,v=!1,g=!1;if(Object(r.isRef)(e)?(h=()=>e.value,v=Object(r.isShallow)(e)):Object(r.isReactive)(e)?(h=()=>d(e),v=!0):Object(o.isArray)(e)?(g=!0,v=e.some(e=>Object(r.isReactive)(e)||Object(r.isShallow)(e)),h=()=>e.map(e=>Object(r.isRef)(e)?e.value:Object(r.isReactive)(e)?d(e):Object(o.isFunction)(e)?p(e,u,2):void 0)):h=Object(o.isFunction)(e)?t?()=>p(e,u,2):()=>(m&&m(),f(e,u,3,[b])):o.NOOP,t&&i){const e=h;h=()=>wn(e())}let y,b=e=>{m=S.onStop=()=>{p(e,u,4),m=S.onStop=void 0}};if(Rr){if(b=o.NOOP,t?n&&f(t,u,3,[h(),g?[]:void 0,b]):h(),"sync"!==s)return o.NOOP;{const e=mn();y=e.__watcherHandles||(e.__watcherHandles=[])}}let O=g?new Array(e.length).fill(bn):bn;const _=()=>{if(S.active&&S.dirty)if(t){const e=S.run();(i||v||(g?e.some((e,t)=>Object(o.hasChanged)(e,O[t])):Object(o.hasChanged)(e,O)))&&(m&&m(),f(t,u,3,[e,O===bn?void 0:g&&O[0]===bn?[]:O,b]),O=e)}else S.run()};let E;_.allowRecurse=!!t,"sync"===s?E=_:"post"===s?E=()=>on(_,u&&u.suspense):(_.pre=!0,u&&(_.id=u.uid),E=()=>N(_));const S=new r.ReactiveEffect(h,o.NOOP,E),w=Object(r.getCurrentScope)(),x=()=>{S.stop(),w&&Object(o.remove)(w.effects,S)};return t?n?_():O=S.run():"post"===s?on(S.run.bind(S),u&&u.suspense):S.run(),y&&y.push(x),x}function En(e,t,n){const r=this.proxy,i=Object(o.isString)(e)?e.includes(".")?Sn(r,e):()=>r[e]:e.bind(r,r);let s;Object(o.isFunction)(t)?s=t:(s=t.handler,n=t);const c=Ar(this),a=_n(i,s.bind(r),n);return c(),a}function Sn(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{wn(e,t,n)});else if(Object(o.isPlainObject)(e)){for(const r in e)wn(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&wn(e[r],t,n)}return e}function Nn(e,t,n=o.EMPTY_OBJ){const i=xr();const s=Object(o.camelize)(t),c=Object(o.hyphenate)(t),a=xn(e,t),l=Object(r.customRef)((r,a)=>{let l,u,d;return yn(()=>{const n=e[t];Object(o.hasChanged)(l,n)&&(l=n,a())}),{get:()=>(r(),n.get?n.get(l):l),set(e){if(!Object(o.hasChanged)(e,l))return;const r=i.vnode.props;r&&(t in r||s in r||c in r)&&("onUpdate:"+t in r||"onUpdate:"+s in r||"onUpdate:"+c in r)||(l=e,a());const p=n.set?n.set(e):e;i.emit("update:"+t,p),e!==p&&e!==u&&p===d&&a(),u=e,d=p}}});return l[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?a||o.EMPTY_OBJ:l,done:!1}:{done:!0}}},l}const xn=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[t+"Modifiers"]||e[Object(o.camelize)(t)+"Modifiers"]||e[Object(o.hyphenate)(t)+"Modifiers"];function Tn(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||o.EMPTY_OBJ;let i=n;const s=t.startsWith("update:"),c=s&&xn(r,t.slice(7));let a;c&&(c.trim&&(i=n.map(e=>Object(o.isString)(e)?e.trim():e)),c.number&&(i=n.map(o.looseToNumber)));let l=r[a=Object(o.toHandlerKey)(t)]||r[a=Object(o.toHandlerKey)(Object(o.camelize)(t))];!l&&s&&(l=r[a=Object(o.toHandlerKey)(Object(o.hyphenate)(t))]),l&&f(l,e,6,i);const u=r[a+"Once"];if(u){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,f(u,e,6,i)}}function jn(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(void 0!==i)return i;const s=e.emits;let c={},a=!1;if(__VUE_OPTIONS_API__&&!Object(o.isFunction)(e)){const r=e=>{const n=jn(e,t,!0);n&&(a=!0,Object(o.extend)(c,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return s||a?(Object(o.isArray)(s)?s.forEach(e=>c[e]=null):Object(o.extend)(c,s),Object(o.isObject)(e)&&r.set(e,c),c):(Object(o.isObject)(e)&&r.set(e,null),null)}function An(e,t){return!(!e||!Object(o.isOn)(t))&&(t=t.slice(2).replace(/Once$/,""),Object(o.hasOwn)(e,t[0].toLowerCase()+t.slice(1))||Object(o.hasOwn)(e,Object(o.hyphenate)(t))||Object(o.hasOwn)(e,t))}function Cn(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[s],slots:c,attrs:a,emit:l,render:u,renderCache:d,props:p,data:f,setupState:m,ctx:v,inheritAttrs:g}=e,y=D(e);let b,O;try{if(4&n.shapeFlag){const e=i||r,t=e;b=gr(u.call(t,e,d,p,m,f,v)),O=a}else{const e=t;0,b=gr(e.length>1?e(p,{attrs:a,slots:c,emit:l}):e(p,null)),O=t.props?a:In(a)}}catch(t){Gn.length=0,h(t,e,1),b=ur(zn)}let _=b;if(O&&!1!==g){const e=Object.keys(O),{shapeFlag:t}=_;e.length&&7&t&&(s&&e.some(o.isModelListener)&&(O=Pn(O,s)),_=fr(_,O,!1,!0))}return n.dirs&&(_=fr(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),b=_,D(y),b}function kn(e,t=!0){let n;for(let t=0;t{let t;for(const n in e)("class"===n||"style"===n||Object(o.isOn)(n))&&((t||(t={}))[n]=e[n]);return t},Pn=(e,t)=>{const n={};for(const r in e)Object(o.isModelListener)(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function Rn(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;oe.__isSuspense;let Fn=0;const Dn={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,i,s,c,a,l){if(null==e)!function(e,t,n,r,o,i,s,c,a){const{p:l,o:{createElement:u}}=a,d=u("div"),p=e.suspense=Bn(e,o,r,t,d,n,i,s,c,a);l(null,p.pendingBranch=e.ssContent,d,null,r,p,i,s),p.deps>0?(Vn(e,"onPending"),Vn(e,"onFallback"),l(null,e.ssFallback,t,n,r,null,i,s),Hn(p,e.ssFallback)):p.resolve(!1,!0)}(t,n,r,o,i,s,c,a,l);else{if(i&&i.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,r,o,i,s,c,{p:a,um:l,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,f=t.ssFallback,{activeBranch:h,pendingBranch:m,isInFallback:v,isHydrating:g}=d;if(m)d.pendingBranch=p,ir(p,m)?(a(m,p,d.hiddenContainer,null,o,d,i,s,c),d.deps<=0?d.resolve():v&&(g||(a(h,f,n,r,o,null,i,s,c),Hn(d,f)))):(d.pendingId=Fn++,g?(d.isHydrating=!1,d.activeBranch=m):l(m,o,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),v?(a(null,p,d.hiddenContainer,null,o,d,i,s,c),d.deps<=0?d.resolve():(a(h,f,n,r,o,null,i,s,c),Hn(d,f))):h&&ir(p,h)?(a(h,p,n,r,o,d,i,s,c),d.resolve(!0)):(a(null,p,d.hiddenContainer,null,o,d,i,s,c),d.deps<=0&&d.resolve()));else if(h&&ir(p,h))a(h,p,n,r,o,d,i,s,c),Hn(d,p);else if(Vn(t,"onPending"),d.pendingBranch=p,512&p.shapeFlag?d.pendingId=p.component.suspenseId:d.pendingId=Fn++,a(null,p,d.hiddenContainer,null,o,d,i,s,c),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(f)},e):0===e&&d.fallback(f)}}(e,t,n,r,o,s,c,a,l)}},hydrate:function(e,t,n,r,o,i,s,c,a){const l=t.suspense=Bn(t,r,n,e.parentNode,document.createElement("div"),null,o,i,s,c,!0),u=a(e,l.pendingBranch=t.ssContent,n,l,i,s);0===l.deps&&l.resolve(!1,!0);return u},normalize:function(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=$n(r?n.default:n),e.ssFallback=r?$n(n.fallback):ur(zn)}};function Vn(e,t){const n=e.props&&e.props[t];Object(o.isFunction)(n)&&n()}function Bn(e,t,n,r,i,s,c,a,l,u,d=!1){const{p:p,m:f,um:m,n:v,o:{parentNode:g,remove:y}}=u;let b;const O=function(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);O&&t&&t.pendingBranch&&(b=t.pendingId,t.deps++);const _=e.props?Object(o.toNumber)(e.props.timeout):void 0;const E=s,S={vnode:e,parent:t,parentComponent:n,namespace:c,container:r,hiddenContainer:i,deps:0,pendingId:Fn++,timeout:"number"==typeof _?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:r,activeBranch:o,pendingBranch:i,pendingId:c,effects:a,parentComponent:l,container:u}=S;let d=!1;S.isHydrating?S.isHydrating=!1:e||(d=o&&i.transition&&"out-in"===i.transition.mode,d&&(o.transition.afterLeave=()=>{c===S.pendingId&&(f(i,u,s===E?v(o):s,0),T(a))}),o&&(g(o.el)!==S.hiddenContainer&&(s=v(o)),m(o,l,S,!0)),d||f(i,u,s,0)),Hn(S,i),S.pendingBranch=null,S.isInFallback=!1;let p=S.parent,h=!1;for(;p;){if(p.pendingBranch){p.effects.push(...a),h=!0;break}p=p.parent}h||d||T(a),S.effects=[],O&&t&&t.pendingBranch&&b===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),Vn(r,"onResolve")},fallback(e){if(!S.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:o,namespace:i}=S;Vn(t,"onFallback");const s=v(n),c=()=>{S.isInFallback&&(p(null,e,o,s,r,null,i,a,l),Hn(S,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=c),S.isInFallback=!0,m(n,r,null,!0),u||c()},move(e,t,n){S.activeBranch&&f(S.activeBranch,e,t,n),S.container=e},next:()=>S.activeBranch&&v(S.activeBranch),registerDep(e,t,n){const r=!!S.pendingBranch;r&&S.deps++;const o=e.vnode.el;e.asyncDep.catch(t=>{h(t,e,0)}).then(i=>{if(e.isUnmounted||S.isUnmounted||S.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:s}=e;Lr(e,i,!1),o&&(s.el=o);const a=!o&&e.subTree.el;t(e,s,g(o||e.subTree.el),o?null:v(e.subTree),S,c,n),a&&y(a),Mn(e,s.el),r&&0==--S.deps&&S.resolve()})},unmount(e,t){S.isUnmounted=!0,S.activeBranch&&m(S.activeBranch,n,e,t),S.pendingBranch&&m(S.pendingBranch,n,e,t)}};return S}function $n(e){let t;if(Object(o.isFunction)(e)){const n=Qn&&e._c;n&&(e._d=!1,Jn()),e=e(),n&&(e._d=!0,t=qn,Xn())}if(Object(o.isArray)(e)){const t=kn(e);0,e=t}return e=gr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function Un(e,t){t&&t.pendingBranch?Object(o.isArray)(e)?t.effects.push(...e):t.effects.push(e):T(e)}function Hn(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let o=t.el;for(;!o&&t.component;)o=(t=t.component.subTree).el;n.el=o,r&&r.subTree===n&&(r.vnode.el=o,Mn(r,o))}const Yn=Symbol.for("v-fgt"),Wn=Symbol.for("v-txt"),zn=Symbol.for("v-cmt"),Kn=Symbol.for("v-stc"),Gn=[];let qn=null;function Jn(e=!1){Gn.push(qn=e?null:[])}function Xn(){Gn.pop(),qn=Gn[Gn.length-1]||null}let Zn,Qn=1;function er(e){Qn+=e,e<0&&qn&&(qn.hasOnce=!0)}function tr(e){return e.dynamicChildren=Qn>0?qn||o.EMPTY_ARR:null,Xn(),Qn>0&&qn&&qn.push(e),e}function nr(e,t,n,r,o,i){return tr(lr(e,t,n,r,o,i,!0))}function rr(e,t,n,r,o){return tr(ur(e,t,n,r,o,!0))}function or(e){return!!e&&!0===e.__v_isVNode}function ir(e,t){return e.type===t.type&&e.key===t.key}function sr(e){Zn=e}const cr=({key:e})=>null!=e?e:null,ar=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?Object(o.isString)(e)||Object(r.isRef)(e)||Object(o.isFunction)(e)?{i:L,r:e,k:t,f:!!n}:e:null);function lr(e,t=null,n=null,r=0,i=null,s=(e===Yn?0:1),c=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&cr(t),ref:t&&ar(t),scopeId:F,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:L};return a?(br(l,n),128&s&&e.normalize(l)):n&&(l.shapeFlag|=Object(o.isString)(n)?8:16),Qn>0&&!c&&qn&&(l.patchFlag>0||6&s)&&32!==l.patchFlag&&qn.push(l),l}const ur=dr;function dr(e,t=null,n=null,i=0,s=null,c=!1){if(e&&e!==Ce||(e=zn),or(e)){const r=fr(e,t,!0);return n&&br(r,n),Qn>0&&!c&&qn&&(6&r.shapeFlag?qn[qn.indexOf(e)]=r:qn.push(r)),r.patchFlag=-2,r}if(zr(e)&&(e=e.__vccOpts),t){t=pr(t);let{class:e,style:n}=t;e&&!Object(o.isString)(e)&&(t.class=Object(o.normalizeClass)(e)),Object(o.isObject)(n)&&(Object(r.isProxy)(n)&&!Object(o.isArray)(n)&&(n=Object(o.extend)({},n)),t.style=Object(o.normalizeStyle)(n))}return lr(e,t,n,i,s,Object(o.isString)(e)?1:Ln(e)?128:(e=>e.__isTeleport)(e)?64:Object(o.isObject)(e)?4:Object(o.isFunction)(e)?2:0,c,!0)}function pr(e){return e?Object(r.isProxy)(e)||xt(e)?Object(o.extend)({},e):e:null}function fr(e,t,n=!1,r=!1){const{props:i,ref:s,patchFlag:c,children:a,transition:l}=e,u=t?Or(i||{},t):i,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&cr(u),ref:t&&t.ref?n&&s?Object(o.isArray)(s)?s.concat(ar(t)):[s,ar(t)]:ar(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Yn?-1===c?16:16|c:c,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&fr(e.ssContent),ssFallback:e.ssFallback&&fr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&ne(d,l.clone(d)),d}function hr(e=" ",t=0){return ur(Wn,null,e,t)}function mr(e,t){const n=ur(Kn,null,e);return n.staticCount=t,n}function vr(e="",t=!1){return t?(Jn(),rr(zn,null,e)):ur(zn,null,e)}function gr(e){return null==e||"boolean"==typeof e?ur(zn):Object(o.isArray)(e)?ur(Yn,null,e.slice()):"object"==typeof e?yr(e):ur(Wn,null,String(e))}function yr(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:fr(e)}function br(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(Object(o.isArray)(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),br(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||xt(t)?3===r&&L&&(1===L.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=L}}else Object(o.isFunction)(t)?(t={default:t,_ctx:L},n=32):(t=String(t),64&r?(n=16,t=[hr(t)]):n=8);e.children=t,e.shapeFlag|=n}function Or(...e){const t={};for(let n=0;nNr||L;let Tr,jr;{const e=Object(o.getGlobalThis)(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Tr=t("__VUE_INSTANCE_SETTERS__",e=>Nr=e),jr=t("__VUE_SSR_SETTERS__",e=>Rr=e)}const Ar=e=>{const t=Nr;return Tr(e),e.scope.on(),()=>{e.scope.off(),Tr(t)}},Cr=()=>{Nr&&Nr.scope.off(),Tr(null)};function kr(e){return 4&e.vnode.shapeFlag}let Ir,Pr,Rr=!1;function Mr(e,t=!1,n=!1){t&&jr(t);const{props:i,children:s}=e.vnode,c=kr(e);!function(e,t,n,o=!1){const i={},s=Nt();e.propsDefaults=Object.create(null),Tt(e,t,i,s);for(const t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=o?i:Object(r.shallowReactive)(i):e.type.props?e.props=i:e.props=s,e.attrs=s}(e,i,c,t),((e,t,n)=>{const r=e.slots=Nt();if(32&e.vnode.shapeFlag){const e=t._;e?(Bt(r,t,n),n&&Object(o.def)(r,"_",e,!0)):Dt(t,r)}else t&&Vt(e,t)})(e,s,n);const a=c?function(e,t){const n=e.type;0;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ue),!1;const{setup:i}=n;if(i){const n=e.setupContext=i.length>1?$r(e):null,s=Ar(e);Object(r.pauseTracking)();const c=p(i,e,0,[e.props,n]);if(Object(r.resetTracking)(),s(),Object(o.isPromise)(c)){if(c.then(Cr,Cr),t)return c.then(n=>{Lr(e,n,t)}).catch(t=>{h(t,e,0)});e.asyncDep=c}else Lr(e,c,t)}else Vr(e,t)}(e,t):void 0;return t&&jr(!1),a}function Lr(e,t,n){Object(o.isFunction)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Object(o.isObject)(t)&&(e.setupState=Object(r.proxyRefs)(t)),Vr(e,n)}function Fr(e){Ir=e,Pr=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,He))}}const Dr=()=>!Ir;function Vr(e,t,n){const i=e.type;if(!e.render){if(!t&&Ir&&!i.render){const t=i.template||lt(e).template;if(t){0;const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:s,compilerOptions:c}=i,a=Object(o.extend)(Object(o.extend)({isCustomElement:n,delimiters:s},r),c);i.render=Ir(t,a)}}e.render=i.render||o.NOOP,Pr&&Pr(e)}if(__VUE_OPTIONS_API__){const t=Ar(e);Object(r.pauseTracking)();try{st(e)}finally{Object(r.resetTracking)(),t()}}}const Br={get:(e,t)=>(Object(r.track)(e,"get",""),e[t])};function $r(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,Br),slots:e.slots,emit:e.emit,expose:t}}function Ur(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Object(r.proxyRefs)(Object(r.markRaw)(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Be?Be[n](e):void 0,has:(e,t)=>t in e||t in Be})):e.proxy}const Hr=/(?:^|[-_])(\w)/g;function Yr(e,t=!0){return Object(o.isFunction)(e)?e.displayName||e.name:e.name||t&&e.__name}function Wr(e,t,n=!1){let r=Yr(t);if(!r&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(r=e[1])}if(!r&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};r=n(e.components||e.parent.type.components)||n(e.appContext.components)}return r?r.replace(Hr,e=>e.toUpperCase()).replace(/[-_]/g,""):n?"App":"Anonymous"}function zr(e){return Object(o.isFunction)(e)&&"__vccOpts"in e}const Kr=(e,t)=>Object(r.computed)(e,t,Rr);function Gr(e,t,n){const r=arguments.length;return 2===r?Object(o.isObject)(t)&&!Object(o.isArray)(t)?or(t)?ur(e,null,[t]):ur(e,t):ur(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&or(n)&&(n=[n]),ur(e,t,n))}function qr(){return void 0}function Jr(e,t,n,r){const o=n[r];if(o&&Xr(o,e))return o;const i=t();return i.memo=e.slice(),i.cacheIndex=r,n[r]=i}function Xr(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&qn&&qn.push(e),!0}const Zr="3.4.32",Qr=o.NOOP,eo=d,to=P,no=function e(t,n){var r,o;if(P=t,P)P.enabled=!0,R.forEach(({event:e,args:t})=>P.emit(e,...t)),R=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null==(o=null==(r=window.navigator)?void 0:r.userAgent)?void 0:o.includes("jsdom"))){(n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(t=>{e(t,n)}),setTimeout(()=>{P||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,M=!0,R=[])},3e3)}else M=!0,R=[]},ro={createComponentInstance:wr,setupComponent:Mr,renderComponentRoot:Cn,setCurrentRenderingInstance:D,isVNode:or,normalizeVNode:gr,getComponentPublicInstance:Ur},oo=null,io=null,so=null},"../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js":function(e,t,n){"use strict";n.r(t),function(e){ +/** +* @vue/shared v3.4.32 +* (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 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 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 pe})),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 ke})),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,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"),k=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},I=/-(\w)/g,P=k(e=>e.replace(I,(e,t)=>t?t.toUpperCase():"")),R=/\B([A-Z])/g,M=k(e=>e.replace(R,"-$1").toLowerCase()),L=k(e=>e.charAt(0).toUpperCase()+e.slice(1)),F=k(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),ke=e=>O(e)?e:null==e?"":h(e)||E(e)&&(e.toString===w||!b(e.toString))?Ce(e)?ke(e.value):JSON.stringify(e,Ie,2):String(e),Ie=(e,t)=>Ce(t)?Ie(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)||T(t)?t:String(t),Pe=(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;n0===l.indexOf(e))){var c=l.split("/"),s=c[c.length-1],u=s.split(".")[0];(f=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[u])&&(l=f+s)}else{var f;u=l.split(".")[0];(f=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[u])&&(l=f+l)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+l;var n=r[e];0!==n&&n&&n[1](t),r[e]=void 0}},global.dynamicLoad(l,onScriptComplete)}return Promise.all(t)},o.m=e,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o.oe=function(e){throw console.error(e),e};var a=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],i=a.push.bind(a);a.push=t,a=a.slice();for(var l=0;le.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;--o){var a=this.tryEntries[o],l=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),s=i.call(a,"finallyLoc");if(c&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},n}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/setPrototypeOf.js":function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/slicedToArray.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/arrayWithHoles.js"),o=n("./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"),a=n("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),i=n("./node_modules/@babel/runtime/helpers/nonIterableRest.js");e.exports=function(e,t){return r(e)||o(e,t)||a(e,t)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toConsumableArray.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"),o=n("./node_modules/@babel/runtime/helpers/iterableToArray.js"),a=n("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),i=n("./node_modules/@babel/runtime/helpers/nonIterableSpread.js");e.exports=function(e){return r(e)||o(e)||a(e)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toPrimitive.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/typeof.js").default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toPropertyKey.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/typeof.js").default,o=n("./node_modules/@babel/runtime/helpers/toPrimitive.js");e.exports=function(e){var t=o(e,"string");return"symbol"==r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(e,t){function n(t){return e.exports=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.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.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)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/regenerator/index.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/typeof.js"),o=n("./node_modules/@babel/runtime/helpers/regeneratorRuntime.js")();e.exports=o;try{regeneratorRuntime=o}catch(e){"object"===("undefined"==typeof globalThis?"undefined":r(globalThis))?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}},"./node_modules/@hippy/rejection-tracking-polyfill/index.js":function(e,t,n){(function(e){!function(){if("ios"===Hippy.device.platform.OS){var t=[ReferenceError,TypeError,RangeError],n=!1;!function(o){if(e.Promise){o=o||{},n&&(n=!1,e.Promise._onHandle=null,e.Promise._onReject=null),n=!0;var a=0,i=0,l={};e.Promise._onHandle=function(e){2===e._state&&l[e._rejectionId]&&(l[e._rejectionId].logged?function(e){l[e].logged&&(o.onHandled?o.onHandled(l[e].displayId,l[e].error):l[e].onUnhandled||(console.warn("Promise Rejection Handled (id: "+l[e].displayId+"):"),console.warn(' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+l[e].displayId+".")))}(e._rejectionId):clearTimeout(l[e._rejectionId].timeout),delete l[e._rejectionId])},e.Promise._onReject=function(e,n){0===e._deferredState&&(e._rejectionId=a++,l[e._rejectionId]={displayId:null,error:n,timeout:setTimeout(c.bind(null,e._rejectionId),r(n,t)?100:2e3),logged:!1})}}function c(e){(o.allRejections||r(l[e].error,o.whitelist||t))&&(l[e].displayId=i++,o.onUnhandled?(l[e].logged=!0,o.onUnhandled(l[e].displayId,l[e].error)):(l[e].logged=!0,function(e,t){console.warn("Possible Unhandled Promise Rejection (id: "+e+"):"),((t&&(t.stack||t))+"").split("\n").forEach((function(e){console.warn(" "+e)}))}(l[e].displayId,l[e].error)))}}({allRejections:!0,onUnhandled:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object.prototype.toString.call(n);if("[object Error]"===r){var o=Error.prototype.toString.call(n),a=n.stack,i="Possible Unhandled Promise Rejection (id: "+t+"):\n"+(o||"")+"\n"+(null==a?"":a);console.warn(i)}else{console.warn("Possible Unhandled Promise Rejection (id: "+t+"):");var l=(n&&(n.stack||n))+"";l.split("\n").forEach((function(e){console.warn(" "+e)}))}e.Hippy.emit("unhandledRejection",n,t)},onHandled:function(){}})}function r(e,t){return t.some((function(t){return e instanceof t}))}}()}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js":function(e,t,n){"use strict";var r=n("./node_modules/react-is/index.js"),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function c(e){return r.isMemo(e)?i:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var s=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=h(n);o&&o!==m&&e(t,o,r)}var i=u(n);f&&(i=i.concat(f(n)));for(var l=c(t),p=c(n),y=0;y0===l.indexOf(e))){var c=l.split("/"),s=c[c.length-1],u=s.split(".")[0];(d=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[u])&&(l=d+s)}else{var d;u=l.split(".")[0];(d=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[u])&&(l=d+l)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+l;var n=r[e];0!==n&&n&&n[1](t),r[e]=void 0}},global.dynamicLoad(l,onScriptComplete)}return Promise.all(t)},o.m=e,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o.oe=function(e){throw console.error(e),e};var a=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],i=a.push.bind(a);a.push=t,a=a.slice();for(var l=0;le.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;--o){var a=this.tryEntries[o],l=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),s=i.call(a,"finallyLoc");if(c&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},n}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/setPrototypeOf.js":function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/slicedToArray.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/arrayWithHoles.js"),o=n("./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"),a=n("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),i=n("./node_modules/@babel/runtime/helpers/nonIterableRest.js");e.exports=function(e,t){return r(e)||o(e,t)||a(e,t)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toConsumableArray.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"),o=n("./node_modules/@babel/runtime/helpers/iterableToArray.js"),a=n("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),i=n("./node_modules/@babel/runtime/helpers/nonIterableSpread.js");e.exports=function(e){return r(e)||o(e)||a(e)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toPrimitive.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/typeof.js").default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toPropertyKey.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/typeof.js").default,o=n("./node_modules/@babel/runtime/helpers/toPrimitive.js");e.exports=function(e){var t=o(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(e,t){function n(t){return e.exports=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.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.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)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/regenerator/index.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/typeof.js"),o=n("./node_modules/@babel/runtime/helpers/regeneratorRuntime.js")();e.exports=o;try{regeneratorRuntime=o}catch(e){"object"===("undefined"==typeof globalThis?"undefined":r(globalThis))?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}},"./node_modules/@hippy/rejection-tracking-polyfill/index.js":function(e,t,n){(function(e){!function(){if("ios"===Hippy.device.platform.OS){var t=[ReferenceError,TypeError,RangeError],n=!1;!function(o){if(e.Promise){o=o||{},n&&(n=!1,e.Promise._onHandle=null,e.Promise._onReject=null),n=!0;var a=0,i=0,l={};e.Promise._onHandle=function(e){2===e._state&&l[e._rejectionId]&&(l[e._rejectionId].logged?function(e){l[e].logged&&(o.onHandled?o.onHandled(l[e].displayId,l[e].error):l[e].onUnhandled||(console.warn("Promise Rejection Handled (id: "+l[e].displayId+"):"),console.warn(' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+l[e].displayId+".")))}(e._rejectionId):clearTimeout(l[e._rejectionId].timeout),delete l[e._rejectionId])},e.Promise._onReject=function(e,n){0===e._deferredState&&(e._rejectionId=a++,l[e._rejectionId]={displayId:null,error:n,timeout:setTimeout(c.bind(null,e._rejectionId),r(n,t)?100:2e3),logged:!1})}}function c(e){(o.allRejections||r(l[e].error,o.whitelist||t))&&(l[e].displayId=i++,o.onUnhandled?(l[e].logged=!0,o.onUnhandled(l[e].displayId,l[e].error)):(l[e].logged=!0,function(e,t){console.warn("Possible Unhandled Promise Rejection (id: "+e+"):"),((t&&(t.stack||t))+"").split("\n").forEach((function(e){console.warn(" "+e)}))}(l[e].displayId,l[e].error)))}}({allRejections:!0,onUnhandled:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object.prototype.toString.call(n);if("[object Error]"===r){var o=Error.prototype.toString.call(n),a=n.stack,i="Possible Unhandled Promise Rejection (id: "+t+"):\n"+(o||"")+"\n"+(null==a?"":a);console.warn(i)}else{console.warn("Possible Unhandled Promise Rejection (id: "+t+"):");var l=(n&&(n.stack||n))+"";l.split("\n").forEach((function(e){console.warn(" "+e)}))}e.Hippy.emit("unhandledRejection",n,t)},onHandled:function(){}})}function r(e,t){return t.some((function(t){return e instanceof t}))}}()}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js":function(e,t,n){"use strict";var r=n("./node_modules/react-is/index.js"),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function c(e){return r.isMemo(e)?i:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var s=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=h(n);o&&o!==m&&e(t,o,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var l=c(t),p=c(n),y=0;y=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;A(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=r}catch(e){"object"===("undefined"==typeof globalThis?"undefined":t(globalThis))?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/webpack/buildin/global.js":function(e,t,n){e.exports=n("dll-reference hippyReactBase")("./node_modules/webpack/buildin/global.js")},"./node_modules/webpack/buildin/module.js":function(e,t,n){e.exports=n("dll-reference hippyReactBase")("./node_modules/webpack/buildin/module.js")},"./src/app.jsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return or}));var r={};n.r(r),n.d(r,"Focusable",(function(){return te})),n.d(r,"Image",(function(){return le})),n.d(r,"ListView",(function(){return ve})),n.d(r,"Modal",(function(){return Ce})),n.d(r,"RefreshWrapper",(function(){return Xe})),n.d(r,"PullHeaderFooter",(function(){return $e})),n.d(r,"ScrollView",(function(){return tt})),n.d(r,"Text",(function(){return lt})),n.d(r,"TextInput",(function(){return ut})),n.d(r,"View",(function(){return ht})),n.d(r,"ViewPager",(function(){return Tt})),n.d(r,"WebView",(function(){return Ct})),n.d(r,"BoxShadow",(function(){return Vt})),n.d(r,"WaterfallView",(function(){return Pt})),n.d(r,"RippleViewAndroid",(function(){return Nt}));var o={};n.r(o),n.d(o,"Animation",(function(){return qt})),n.d(o,"AsyncStorage",(function(){return Xt})),n.d(o,"NetInfo",(function(){return en})),n.d(o,"WebSocket",(function(){return on})),n.d(o,"UIManagerModule",(function(){return un}));var a={};n.r(a),n.d(a,"Slider",(function(){return gn})),n.d(a,"TabHost",(function(){return vn})),n.d(a,"SetNativeProps",(function(){return Tn})),n.d(a,"DynamicImport",(function(){return kn})),n.d(a,"Localization",(function(){return In})),n.d(a,"Turbo",(function(){return _n})),n.d(a,"NestedScroll",(function(){return Mn}));var i=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),l=n.n(i),c=n("./node_modules/@babel/runtime/helpers/createClass.js"),s=n.n(c),u=n("./node_modules/@babel/runtime/helpers/inherits.js"),f=n.n(u),d=n("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),h=n.n(d),m=n("./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),p=n.n(m),y=n("./node_modules/react/index.js"),g=n.n(y),b=n("../../packages/hippy-react/dist/index.js"),w=n("./node_modules/@babel/runtime/helpers/toConsumableArray.js"),v=n.n(w),x=n("./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");n("./node_modules/@babel/runtime/helpers/typeof.js");function S(){return(S=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0;u--){var f=o[u];"."===f?T(o,u):".."===f?(T(o,u),s++):s&&(T(o,u),s--)}if(!l)for(;s--;s)o.unshift("..");!l||""===o[0]||o[0]&&E(o[0])||o.unshift("");var d=o.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};var C="Invariant failed";function k(e,t){if(!e)throw new Error(C)}function R(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function V(e,t,n,r){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=S({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=A(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function I(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof r?r(a,o):o(!0):o(!1!==a)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,r):n.push(r),u({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=V(e,t,f(),y.location);s.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(y.entries[y.index]=r,u({action:"REPLACE",location:r}))}))},go:p,goBack:function(){p(-1)},goForward:function(){p(1)},canGo:function(e){var t=y.index+e;return t>=0&&t=0||(o[n]=e[n]);return o}var B=n("./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"),M=n.n(B),z=function(e){var t=Object(P.a)();return t.displayName=e,t}("Router"),F=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(x.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return g.a.createElement(z.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(g.a.Component);var H=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;ot?t:e;return Math.floor(n)},uniqueArray:function(e){for(var t=[],n=0;n=812&&b.PixelRatio.get()>=2&&(e=!0),e}},_e=(De.getScreenWidth()-24-12)/3,Le=Math.floor(_e/1.35),Be=b.StyleSheet.create({imageContainer:{flexDirection:"row",justifyContent:"center",height:Le,marginTop:8},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},image:{width:_e,height:Le},title:{fontSize:"android"===b.Platform.OS?17:18,lineHeight:24,color:"#242424"},tagLine:{marginTop:8,height:20,flexDirection:"row",justifyContent:"flex-start"}});function Me(e){var t=e.itemBean,n=t.title,r=t.picList,o=e.itemBean.subInfo,a=null;if(o&&o.length){var i=(o=De.uniqueArray(o)).join(" ");a=g.a.createElement(b.Text,{style:Be.normalText,numberOfLines:1},i)}return g.a.createElement(b.View,Pe()({},e,{style:{collapsable:!1}}),g.a.createElement(b.Text,{style:[Be.title],numberOfLines:2,enableScale:!0},n),g.a.createElement(b.View,{style:Be.imageContainer},g.a.createElement(b.Image,{style:Be.image,source:{uri:r[0]},resizeMode:b.Image.resizeMode.cover}),g.a.createElement(b.Image,{style:[Be.image,{marginLeft:6,marginRight:6}],source:{uri:r[1]},resizeMode:b.Image.resizeMode.cover}),g.a.createElement(b.Image,{style:Be.image,source:{uri:r[2]},resizeMode:b.Image.resizeMode.cover})),a?g.a.createElement(b.View,{style:Be.tagLine},a):null)}var ze=De.getScreenWidth()-24,Fe=Math.floor(ze-12)/3,He=Math.floor(Fe/1.35),Ne=b.StyleSheet.create({container:{flexDirection:"row",justifyContent:"space-between",height:He},leftContainer:{flex:1,flexDirection:"column",justifyContent:"center",marginRight:8},imageContainer:{width:Fe,height:He},image:{width:Fe,height:He},title:{fontSize:"android"===b.Platform.OS?17:18,lineHeight:24},tagLine:{marginTop:8,height:20,flexDirection:"row",justifyContent:"flex-start"},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}});function We(e){if("undefined"===e)return null;var t=e.itemBean;if(!t)return null;var n=null,r=t.title,o=t.picUrl,a=t.subInfo;if(a&&a.length){var i=(a=De.uniqueArray(a)).join(" ");n=g.a.createElement(b.Text,{style:Ne.normalText,numberOfLines:1},i)}return g.a.createElement(b.View,Pe()({},e,{style:Ne.container}),g.a.createElement(b.View,{style:Ne.leftContainer},g.a.createElement(b.Text,{style:Ne.title,numberOfLines:2,enableScale:!0},r),n?g.a.createElement(b.View,{style:Ne.tagLine},n):null),g.a.createElement(b.View,{style:Ne.imageContainer},g.a.createElement(b.Image,{resizeMode:b.Image.resizeMode.cover,style:Ne.image,source:{uri:o}})))}var Ue=De.getScreenWidth()-24,Ke=Math.floor(188*Ue/336),Ge=b.StyleSheet.create({text:{fontSize:"android"===b.Platform.OS?17:18,lineHeight:24,color:"#242424"},playerView:{marginTop:8,alignItems:"center",width:Ue,height:Ke,alignSelf:"center"},image:{width:Ue,height:Ke},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},tagLine:{marginTop:8,flexDirection:"row",justifyContent:"space-between",alignItems:"center"}});function qe(e){if("undefined"===e)return null;var t=e.itemBean;if(!t)return null;var n=t.title,r=t.picUrl,o=t.subInfo,a=null;if(o&&o.length){var i=(o=De.uniqueArray(o)).join(" ");a=g.a.createElement(b.Text,{style:Ge.normalText,numberOfLines:1},i)}return g.a.createElement(b.View,e,g.a.createElement(b.Text,{style:Ge.text,numberOfLines:2,enableScale:!0},n),g.a.createElement(b.View,{style:Ge.playerView},g.a.createElement(b.Image,{style:Ge.image,source:{uri:r},resizeMode:b.Image.resizeMode.cover})),a?g.a.createElement(b.View,{style:Ge.tagLine},a):null)}function Qe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var o=p()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Ye=b.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},spliter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}}),Xe=function(e){f()(o,e);var t,n,r=Qe(o);function o(e){var t;return l()(this,o),(t=r.call(this,e)).state={dataSource:[],loadingState:"正在加载..."},t.fetchTimes=0,t.mockFetchData=t.mockFetchData.bind(fe()(t)),t.onRefresh=t.onRefresh.bind(fe()(t)),t.getRefresh=t.getRefresh.bind(fe()(t)),t.getRenderRow=t.getRenderRow.bind(fe()(t)),t.onEndReached=t.onEndReached.bind(fe()(t)),t.getRowType=t.getRowType.bind(fe()(t)),t.getRowKey=t.getRowKey.bind(fe()(t)),t}return s()(o,[{key:"componentDidMount",value:(n=se()(he.a.mark((function e(){var t;return he.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mockFetchData();case 2:t=e.sent,this.setState({dataSource:t});case 4:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"onEndReached",value:(t=se()(he.a.mark((function e(){var t,n,r,o,a;return he.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.state,n=t.dataSource,!t.fetchingDataFlag){e.next=3;break}return e.abrupt("return");case 3:return this.setState({fetchingDataFlag:!0,dataSource:n.concat([{style:100}])}),e.next=6,this.mockFetchData();case 6:r=e.sent,(o=n[n.length-1])&&100===o.style&&n.pop(),a=n.concat(r),this.setState({dataSource:a});case 11:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"onRefresh",value:function(){var e=this;setTimeout(se()(he.a.mark((function t(){var n;return he.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.mockFetchData();case 2:n=t.sent,e.setState({dataSource:n}),e.refresh.refreshComplected();case 5:case"end":return t.stop()}}),t)}))),1e3)}},{key:"onClickItem",value:function(e){console.log("item: ".concat(e," is clicked.."))}},{key:"getRenderRow",value:function(e){var t=this,n=this.state,r=n.dataSource,o=n.loadingState,a=null,i=r[e],l=r.length===e+1;switch(i.style){case 1:a=g.a.createElement(Me,{itemBean:i.itemBean,onClick:function(){return t.onClickItem(e)}});break;case 2:a=g.a.createElement(We,{itemBean:i.itemBean,onClick:function(){return t.onClickItem(e)}});break;case 5:a=g.a.createElement(qe,{itemBean:i.itemBean,onClick:function(){return t.onClickItem(e)}});break;case 100:a=g.a.createElement(b.Text,{style:Ye.loading},o)}return g.a.createElement(b.View,{style:Ye.container},g.a.createElement(b.View,{style:Ye.itemContainer},a),l?null:g.a.createElement(b.View,{style:Ye.spliter}))}},{key:"getRowType",value:function(e){return this.state.dataSource[e].style}},{key:"getRowKey",value:function(e){return"row-".concat(e)}},{key:"getRefresh",value:function(){return g.a.createElement(b.View,{style:{flex:1,height:30}},g.a.createElement(b.Text,{style:{flex:1,textAlign:"center"}},"下拉刷新中..."))}},{key:"mockFetchData",value:function(){var e=this;return new Promise((function(t){setTimeout((function(){return e.setState({fetchingDataFlag:!1}),e.fetchTimes+=1,e.fetchTimes>=50?t([]):t(Oe)}),600)}))}},{key:"render",value:function(){var e=this,t=this.state.dataSource;return g.a.createElement(b.RefreshWrapper,{ref:function(t){e.refresh=t},style:{flex:1},onRefresh:this.onRefresh,bounceTime:100,getRefresh:this.getRefresh},g.a.createElement(b.ListView,{style:{flex:1,backgroundColor:"#ffffff"},numberOfRows:t.length,renderRow:this.getRenderRow,onEndReached:this.onEndReached,getRowType:this.getRowType,getRowKey:this.getRowKey}))}}]),o}(g.a.Component);function Je(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var o=p()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Ze=b.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},splitter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},pullContainer:{flex:1,height:50,backgroundColor:"#4c9afa"},pullContent:{lineHeight:50,color:"white",height:50,textAlign:"center"},pullFooter:{height:40,flex:1,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}}),$e=function(e){f()(a,e);var t,n,r,o=Je(a);function a(e){var t;return l()(this,a),(t=o.call(this,e)).state={dataSource:[],headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",horizontal:void 0},t.loadMoreDataFlag=!1,t.fetchingDataFlag=!1,t.mockFetchData=t.mockFetchData.bind(fe()(t)),t.renderRow=t.renderRow.bind(fe()(t)),t.getRowType=t.getRowType.bind(fe()(t)),t.getRowKey=t.getRowKey.bind(fe()(t)),t.getHeaderStyle=t.getHeaderStyle.bind(fe()(t)),t.getFooterStyle=t.getFooterStyle.bind(fe()(t)),t.getRowStyle=t.getRowStyle.bind(fe()(t)),t.renderPullHeader=t.renderPullHeader.bind(fe()(t)),t.renderPullFooter=t.renderPullFooter.bind(fe()(t)),t.onEndReached=t.onEndReached.bind(fe()(t)),t.onHeaderReleased=t.onHeaderReleased.bind(fe()(t)),t.onHeaderPulling=t.onHeaderPulling.bind(fe()(t)),t.onFooterPulling=t.onFooterPulling.bind(fe()(t)),t}return s()(a,[{key:"componentDidMount",value:(r=se()(he.a.mark((function e(){var t;return he.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mockFetchData();case 2:t=e.sent,this.setState({dataSource:t}),this.listView.collapsePullHeader();case 5:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"mockFetchData",value:function(){return new Promise((function(e){setTimeout((function(){return e(Oe)}),800)}))}},{key:"onEndReached",value:(n=se()(he.a.mark((function e(){var t,n,r;return he.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.state.dataSource,!this.loadMoreDataFlag){e.next=3;break}return e.abrupt("return");case 3:return this.loadMoreDataFlag=!0,this.setState({footerRefreshText:"加载更多..."}),n=[],e.prev=6,e.next=9,this.mockFetchData();case 9:n=e.sent,e.next=14;break;case 12:e.prev=12,e.t0=e.catch(6);case 14:0===n.length&&this.setState({footerRefreshText:"没有更多数据"}),r=[].concat(v()(t),v()(n)),this.setState({dataSource:r}),this.loadMoreDataFlag=!1,this.listView.collapsePullFooter();case 19:case"end":return e.stop()}}),e,this,[[6,12]])}))),function(){return n.apply(this,arguments)})},{key:"onHeaderReleased",value:(t=se()(he.a.mark((function e(){var t,n=this;return he.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.fetchingDataFlag){e.next=2;break}return e.abrupt("return");case 2:return this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.setState({headerRefreshText:"刷新数据中,请稍等"}),t=[],e.prev=6,e.next=9,this.mockFetchData();case 9:t=(t=e.sent).reverse(),e.next=15;break;case 13:e.prev=13,e.t0=e.catch(6);case 15:this.fetchingDataFlag=!1,this.setState({dataSource:t,headerRefreshText:"2秒后收起"},(function(){n.listView.collapsePullHeader({time:2e3})}));case 17:case"end":return e.stop()}}),e,this,[[6,13]])}))),function(){return t.apply(this,arguments)})},{key:"onHeaderPulling",value:function(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>Ze.pullContent.height?this.setState({headerRefreshText:"松手,即可触发刷新"}):this.setState({headerRefreshText:"继续下拉,触发刷新"}))}},{key:"onFooterPulling",value:function(e){console.log("onFooterPulling",e)}},{key:"onClickItem",value:function(e,t){console.log("item: ".concat(e," is clicked.."),t.target.nodeId,t.currentTarget.nodeId)}},{key:"getRowType",value:function(e){return this.state.dataSource[e].style}},{key:"getRowKey",value:function(e){return"row-".concat(e)}},{key:"getHeaderStyle",value:function(){return this.state.horizontal?{width:50}:{}}},{key:"renderPullHeader",value:function(){var e=this.state,t=e.headerRefreshText;return e.horizontal?g.a.createElement(b.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},g.a.createElement(b.Text,{style:{lineHeight:25,color:"white",width:40,paddingHorizontal:15}},t)):g.a.createElement(b.View,{style:Ze.pullContainer},g.a.createElement(b.Text,{style:Ze.pullContent},t))}},{key:"getFooterStyle",value:function(){return this.state.horizontal?{width:40}:{}}},{key:"renderPullFooter",value:function(){return this.state.horizontal?g.a.createElement(b.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},g.a.createElement(b.Text,{style:{color:"white",lineHeight:25,width:40,paddingHorizontal:15}},this.state.footerRefreshText)):g.a.createElement(b.View,{style:Ze.pullFooter},g.a.createElement(b.Text,{style:{color:"white"}},this.state.footerRefreshText))}},{key:"renderRow",value:function(e){var t=this,n=this.state.dataSource,r=null,o=n[e],a=n.length===e+1;switch(o.style){case 1:r=g.a.createElement(Me,{itemBean:o.itemBean,onClick:function(n){return t.onClickItem(e,n)}});break;case 2:r=g.a.createElement(We,{itemBean:o.itemBean,onClick:function(n){return t.onClickItem(e,n)}});break;case 5:r=g.a.createElement(qe,{itemBean:o.itemBean,onClick:function(n){return t.onClickItem(e,n)}})}return g.a.createElement(b.View,{style:Ze.container},g.a.createElement(b.View,{style:Ze.itemContainer},r),a?null:g.a.createElement(b.View,{style:Ze.splitter}))}},{key:"getRowStyle",value:function(){return this.state.horizontal?{height:300,justifyContent:"center",alignItems:"center"}:{}}},{key:"changeDirection",value:function(){this.setState({horizontal:void 0===this.state.horizontal||void 0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.dataSource,r=t.horizontal;return g.a.createElement(b.View,{style:{flex:1,collapsable:!1}},g.a.createElement(b.ListView,{horizontal:r,onClick:function(e){return console.log("ListView",e.target.nodeId,e.currentTarget.nodeId)},ref:function(t){e.listView=t},style:[{backgroundColor:"#ffffff"},r?{height:300}:{flex:1}],numberOfRows:n.length,getRowType:this.getRowType,getRowKey:this.getRowKey,getHeaderStyle:this.getHeaderStyle,getFooterStyle:this.getFooterStyle,getRowStyle:this.getRowStyle,renderRow:this.renderRow,renderPullHeader:this.renderPullHeader,renderPullFooter:this.renderPullFooter,onHeaderReleased:this.onHeaderReleased,onHeaderPulling:this.onHeaderPulling,onFooterReleased:this.onEndReached,onFooterPulling:this.onFooterPulling,rowShouldSticky:function(e){return 0===e}}),"android"===b.Platform.OS?g.a.createElement(b.View,{onClick:function(){return e.changeDirection()},style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#4c9afa"}},g.a.createElement(b.View,{style:{width:60,height:60,borderRadius:30,backgroundColor:"#4c9afa",display:"flex",justifyContent:"center",alignItems:"center"}},g.a.createElement(b.Text,{style:{color:"white"}},"切换方向"))):null)}}]),a}(g.a.Component),et=b.StyleSheet.create({itemStyle:{width:100,height:100,lineHeight:100,borderWidth:1,borderStyle:"solid",borderColor:"#4c9afa",fontSize:80,margin:20,color:"#4c9afa",textAlign:"center"},verticalScrollView:{height:300,width:140,margin:20,borderColor:"#eee",borderWidth:1,borderStyle:"solid"},itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10}});function tt(){return g.a.createElement(b.ScrollView,null,g.a.createElement(b.View,{style:et.itemTitle},g.a.createElement(b.Text,null,"Horizontal ScrollView")),g.a.createElement(b.View,null,g.a.createElement(b.ScrollView,{horizontal:!0,bounces:!0,showsHorizontalScrollIndicator:!1,showScrollIndicator:!1,onScroll:function(e){return console.log("onScroll",e)},onMomentumScrollBegin:function(e){return console.log("onMomentumScrollBegin",e)},onMomentumScrollEnd:function(e){return console.log("onMomentumScrollEnd",e)},onScrollBeginDrag:function(e){return console.log("onScrollBeginDrag",e)},onScrollEndDrag:function(e){return console.log("onScrollEndDrag",e)}},g.a.createElement(b.Text,{style:et.itemStyle},"A"),g.a.createElement(b.Text,{style:et.itemStyle},"B"),g.a.createElement(b.Text,{style:et.itemStyle},"C"),g.a.createElement(b.Text,{style:et.itemStyle},"D"),g.a.createElement(b.Text,{style:et.itemStyle},"E"),g.a.createElement(b.Text,{style:et.itemStyle},"F"),g.a.createElement(b.Text,{style:et.itemStyle},"A"))),g.a.createElement(b.View,{style:et.itemTitle},g.a.createElement(b.Text,null,"Vertical ScrollView")),g.a.createElement(b.ScrollView,{bounces:!0,horizontal:!1,style:et.verticalScrollView,showScrollIndicator:!1,showsVerticalScrollIndicator:!1},g.a.createElement(b.Text,{style:et.itemStyle},"A"),g.a.createElement(b.Text,{style:et.itemStyle},"B"),g.a.createElement(b.Text,{style:et.itemStyle},"C"),g.a.createElement(b.Text,{style:et.itemStyle},"D"),g.a.createElement(b.Text,{style:et.itemStyle},"E"),g.a.createElement(b.Text,{style:et.itemStyle},"F"),g.a.createElement(b.Text,{style:et.itemStyle},"A")))}function nt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var o=p()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var rt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEXRSTlMA9QlZEMPc2Mmmj2VkLEJ4Rsx+pEgAAAChSURBVCjPjVLtEsMgCDOAdbbaNu//sttVPes+zvGD8wgQCLp/TORbUGMAQtQ3UBeSAMlF7/GV9Cmb5eTJ9R7H1t4bOqLE3rN2UCvvwpLfarhILfDjJL6WRKaXfzxc84nxAgLzCGSGiwKwsZUB8hPorZwUV1s1cnGKw+yAOrnI+7hatNIybl9Q3OkBfzopCw6SmDVJJiJ+yD451OS0/TNM7QnuAAbvCG0TSAAAAABJRU5ErkJggg==",ot="https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",at=b.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},itemContent:{alignItems:"flex-start",justifyContent:"center",borderWidth:1,borderStyle:"solid",borderRadius:2,borderColor:"#e0e0e0",backgroundColor:"#ffffff",padding:10},normalText:{fontSize:14,lineHeight:18,color:"black"},buttonBar:{flexDirection:"row",marginTop:10,flexGrow:1},button:{height:24,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",flexGrow:1,flexShrink:1},buttonText:{lineHeight:24,textAlign:"center",paddingHorizontal:20},customFont:{color:"#0052d9",fontSize:32,fontFamily:"TTTGB"}}),it=0,lt=function(e){f()(n,e);var t=nt(n);function n(e){var r;return l()(this,n),(r=t.call(this,e)).state={fontSize:16,textShadowColor:"grey",textShadowOffset:{x:1,y:1},numberOfLines:2,ellipsizeMode:void 0},r.incrementFontSize=r.incrementFontSize.bind(fe()(r)),r.decrementFontSize=r.decrementFontSize.bind(fe()(r)),r.incrementLine=r.incrementLine.bind(fe()(r)),r.decrementLine=r.decrementLine.bind(fe()(r)),r.changeMode=r.changeMode.bind(fe()(r)),r}return s()(n,[{key:"incrementFontSize",value:function(){var e=this.state.fontSize;24!==e&&this.setState({fontSize:e+1})}},{key:"decrementFontSize",value:function(){var e=this.state.fontSize;6!==e&&this.setState({fontSize:e-1})}},{key:"incrementLine",value:function(){var e=this.state.numberOfLines;e<6&&this.setState({numberOfLines:e+1})}},{key:"decrementLine",value:function(){var e=this.state.numberOfLines;e>1&&this.setState({numberOfLines:e-1})}},{key:"changeMode",value:function(e){this.setState({ellipsizeMode:e})}},{key:"changeBreakStrategy",value:function(e){this.setState({breakStrategy:e})}},{key:"render",value:function(){var e=this,t=this.state,n=t.fontSize,r=t.textShadowColor,o=t.textShadowOffset,a=t.numberOfLines,i=t.ellipsizeMode,l=t.breakStrategy,c=function(e){return g.a.createElement(b.View,{style:at.itemTitle},g.a.createElement(b.Text,{style:!0},e))};return g.a.createElement(b.ScrollView,{style:{paddingHorizontal:10}},c("shadow"),g.a.createElement(b.View,{style:[at.itemContent,{height:60}],onClick:function(){var t="red",n={x:10,y:1};it%2==1&&(t="grey",n={x:1,y:1}),it+=1,e.setState({textShadowColor:t,textShadowOffset:n})}},g.a.createElement(b.Text,{style:[at.normalText,{color:"#242424",textShadowOffset:o,textShadowRadius:3,textShadowColor:r}]},"Text shadow is grey with radius 3 and offset 1")),c("color"),g.a.createElement(b.View,{style:[at.itemContent,{height:80}]},g.a.createElement(b.Text,{style:[at.normalText,{color:"#242424"}]},"Text color is black"),g.a.createElement(b.Text,{style:[at.normalText,{color:"blue"}]},"Text color is blue"),g.a.createElement(b.Text,{style:[at.normalText,{color:"rgb(228,61,36)"}]},"This is red")),c("fontSize"),g.a.createElement(b.View,{style:[at.itemContent,{height:100}]},g.a.createElement(b.Text,{style:[at.normalText,{fontSize:n}]},"Text fontSize is ".concat(n)),g.a.createElement(b.View,{style:at.button,onClick:this.incrementFontSize},g.a.createElement(b.Text,{style:at.buttonText},"放大字体")),g.a.createElement(b.View,{style:at.button,onClick:this.decrementFontSize},g.a.createElement(b.Text,{style:at.buttonText},"缩小字体"))),c("fontStyle"),g.a.createElement(b.View,{style:[at.itemContent,{height:100}]},g.a.createElement(b.Text,{style:[at.normalText,{fontStyle:"normal"}]},"Text fontStyle is normal"),g.a.createElement(b.Text,{style:[at.normalText,{fontStyle:"italic"}]},"Text fontStyle is italic")),c("numberOfLines and ellipsizeMode"),g.a.createElement(b.View,{style:[at.itemContent]},g.a.createElement(b.Text,{style:[at.normalText,{marginBottom:10}]},"numberOfLines=".concat(a," | ellipsizeMode=").concat(i)),g.a.createElement(b.Text,{numberOfLines:a,ellipsizeMode:i,style:[at.normalText,{lineHeight:void 0,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},g.a.createElement(b.Text,{style:{fontSize:19,color:"white"}},"先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。"),g.a.createElement(b.Text,null,"然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")),g.a.createElement(b.Text,{numberOfLines:a,ellipsizeMode:i,style:[at.normalText,{backgroundColor:"#4c9afa",marginBottom:10,color:"white",paddingHorizontal:10,paddingVertical:5}]},"line 1\n\nline 3\n\nline 5"),g.a.createElement(b.Text,{numberOfLines:a,ellipsizeMode:i,style:[at.normalText,{lineHeight:void 0,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5,verticalAlign:"middle"}]},g.a.createElement(b.Image,{style:{width:24,height:24},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:24,height:24},source:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEnRSTlMA/QpX7WQU2m27pi3Ej9KEQXaD5HhjAAAAqklEQVQoz41SWxLDIAh0RcFXTHL/yzZSO01LMpP9WJEVUNA9gfdXTioCSKE/kQQTQmf/ArRYva+xAcuPP37seFII2L7FN4BmXdHzlEPIpDHiZ0A7eIViPcw2QwqipkvMSdNEFBUE1bmMNOyE7FyFaIkAP4jHhhG80lvgkzBODTKpwhRMcexuR7fXzcp08UDq6GRbootp4oRtO3NNpd4NKtnR9hB6oaefweIFQU0EfnGDRoQAAAAASUVORK5CYII="}}),g.a.createElement(b.Text,null,"Text + Attachment")),g.a.createElement(b.View,{style:at.buttonBar},g.a.createElement(b.View,{style:at.button,onClick:this.incrementLine},g.a.createElement(b.Text,{style:at.buttonText},"加一行")),g.a.createElement(b.View,{style:at.button,onClick:this.decrementLine},g.a.createElement(b.Text,{style:at.buttonText},"减一行"))),g.a.createElement(b.View,{style:at.buttonBar},g.a.createElement(b.View,{style:at.button,onClick:function(){return e.changeMode("clip")}},g.a.createElement(b.Text,{style:at.buttonText},"clip")),g.a.createElement(b.View,{style:at.button,onClick:function(){return e.changeMode("head")}},g.a.createElement(b.Text,{style:at.buttonText},"head")),g.a.createElement(b.View,{style:at.button,onClick:function(){return e.changeMode("middle")}},g.a.createElement(b.Text,{style:at.buttonText},"middle")),g.a.createElement(b.View,{style:at.button,onClick:function(){return e.changeMode("tail")}},g.a.createElement(b.Text,{style:at.buttonText},"tail")))),c("textDecoration"),g.a.createElement(b.View,{style:[at.itemContent,{height:100}]},g.a.createElement(b.Text,{numberOfLines:1,style:[at.normalText,{textDecorationLine:"underline",textDecorationStyle:"dotted"}]},"underline"),g.a.createElement(b.Text,{numberOfLines:1,style:[at.normalText,{textDecorationLine:"line-through",textDecorationColor:"red"}]},"line-through")),c("LetterSpacing"),g.a.createElement(b.View,{style:[at.itemContent,{height:100}]},g.a.createElement(b.Text,{numberOfLines:1,style:[at.normalText,{letterSpacing:-1}]},"Text width letter-spacing -1"),g.a.createElement(b.Text,{numberOfLines:1,style:[at.normalText,{letterSpacing:5}]},"Text width letter-spacing 5")),c("Nest Text"),g.a.createElement(b.View,{style:[at.itemContent,{height:100}]},g.a.createElement(b.Text,{numberOfLines:3},g.a.createElement(b.Text,{numberOfLines:3,style:[at.normalText,{color:"#4c9afa"}]},"#SpiderMan#"),g.a.createElement(b.Text,{numberOfLines:3,style:at.normalText},"Hello world, I am a spider man and I have five friends in other universe."))),c("Custom font"),g.a.createElement(b.View,{style:[at.itemContent,{height:100}]},g.a.createElement(b.Text,{numberOfLines:1,style:at.customFont},"Hippy 跨端框架")),g.a.createElement(b.View,{style:[at.itemContent,{height:100}]},g.a.createElement(b.Text,{numberOfLines:1,style:[at.customFont,{fontWeight:"bold"}]},"Hippy 跨端框架 粗体")),g.a.createElement(b.View,{style:[at.itemContent,{height:100}]},g.a.createElement(b.Text,{numberOfLines:1,style:[at.customFont,{fontStyle:"italic"}]},"Hippy 跨端框架 斜体")),g.a.createElement(b.View,{style:[at.itemContent,{height:100}]},g.a.createElement(b.Text,{numberOfLines:1,style:[at.customFont,{fontWeight:"bold",fontStyle:"italic"}]},"Hippy 跨端框架 粗斜体")),c("Text Nested"),g.a.createElement(b.View,{style:[at.itemContent,{height:150}]},g.a.createElement(b.Text,{style:{height:100,lineHeight:50}},g.a.createElement(b.Text,{numberOfLines:1,style:at.normalText},"后面有张图片"),g.a.createElement(b.Image,{style:{width:70,height:35},source:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAAtCAMAAABmgJ64AAAAOVBMVEX/Rx8AAAD/QiL/Tif/QyH/RR//QiH/QiP/RCD/QSL/Qxz/QyH/QiL/QiD/QyL/QiL/QiH/QyH/QiLwirLUAAAAEnRSTlMZAF4OTC7DrWzjI4iietrRk0EEv/0YAAAB0UlEQVRYw72Y0Y6sIAxAKwUFlFH7/x97izNXF2lN1pU5D800jD2hJAJCdwYZuAUyVbmToKh903IhQHgErAVH+ccV0KI+G2oBPMxJgPA4WAigAT8F0IRDgNAE3ARyfeMFDGSc3YHVFkTBAHKDAgkEyHjacae/GTjxFqAo8NbakXrL9DRy9B+BCQwRcXR9OBKmEuAmAFFgcy0agBnIc1xZsMPOI5loAoUsQFmQjDEL9YbpaeGYBMGRKKAuqFEFL/JXApCw/zFEZk9qgbLGBx0gXLISxT25IUBREEgh1II1fph/IViGnZnCcDDVAgfgVg6gCy6ZaClySbDQpAl04vCGaB4+xGcFRK8CLvW0IBb5bQGqAlNwU4C6oEIVTLTcmoEr0AWcpKsZ/H0NAtkLQffnFjkOqiC/TTWBL9AFCwXQBHgI7rXImMgjCZwFa50s6DRBXyALmIECuMASiWNPFgRTgSJwM+XW8PDCmbwndzdaNL8FMYXPNjASDVChnIvWlBI/MKadPV952HszbmXtRERhhQ0vGFA52SVSSVt7MjHvxfRK8cdTpqovn02dUcltMrwiKf+wQ1FxXKCk9en6e/eDNnP44h2thQEb35O/etNv/q3iHza+KuhqqhZAAAAAAElFTkSuQmCC"}}),g.a.createElement(b.Text,{numberOfLines:1,style:at.customFont},"前面有张图片")),g.a.createElement(b.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"center",paddingHorizontal:10,paddingVertical:5,backgroundColor:"#4c9afa"}},g.a.createElement(b.Image,{style:{width:24,height:24,alignSelf:"center"},source:{uri:rt}}),g.a.createElement(b.Text,{style:{fontSize:15,alignItems:"center",justifyContent:"center"}},"Image+Text"))),"android"===b.Platform.OS&&c("breakStrategy"),"android"===b.Platform.OS&&g.a.createElement(b.View,{style:at.itemContent},g.a.createElement(b.Text,{style:[at.normalText,{borderWidth:1,borderColor:"gray"}],breakStrategy:l},"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales."),g.a.createElement(b.Text,{style:at.normalText},"breakStrategy: ".concat(l)),g.a.createElement(b.View,{style:at.buttonBar},g.a.createElement(b.View,{style:at.button,onClick:function(){return e.changeBreakStrategy("simple")}},g.a.createElement(b.Text,{style:at.buttonText},"simple")),g.a.createElement(b.View,{style:at.button,onClick:function(){return e.changeBreakStrategy("high_quality")}},g.a.createElement(b.Text,{style:at.buttonText},"high_quality")),g.a.createElement(b.View,{style:at.button,onClick:function(){return e.changeBreakStrategy("balanced")}},g.a.createElement(b.Text,{style:at.buttonText},"balanced")))),c("verticalAlign"),g.a.createElement(b.View,{style:[at.itemContent,{height:"android"===b.Platform.OS?160:70}]},g.a.createElement(b.Text,{style:[at.normalText,{lineHeight:50,backgroundColor:"#4c9afa",paddingHorizontal:10,paddingVertical:5}]},g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"top"},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:18,height:12,verticalAlign:"middle"},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:24,height:12,verticalAlign:"baseline"},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:36,height:24,verticalAlign:"bottom"},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"top"},source:{uri:ot}}),g.a.createElement(b.Image,{style:{width:18,height:12,verticalAlign:"middle"},source:{uri:ot}}),g.a.createElement(b.Image,{style:{width:24,height:12,verticalAlign:"baseline"},source:{uri:ot}}),g.a.createElement(b.Image,{style:{width:36,height:24,verticalAlign:"bottom"},source:{uri:ot}}),g.a.createElement(b.Text,{style:{fontSize:16,verticalAlign:"top"}},"字"),g.a.createElement(b.Text,{style:{fontSize:16,verticalAlign:"middle"}},"字"),g.a.createElement(b.Text,{style:{fontSize:16,verticalAlign:"baseline"}},"字"),g.a.createElement(b.Text,{style:{fontSize:16,verticalAlign:"bottom"}},"字")),"android"===b.Platform.OS&&g.a.createElement(g.a.Fragment,null,g.a.createElement(b.Text,null,"legacy mode:"),g.a.createElement(b.Text,{style:[at.normalText,{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlignment:0},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:18,height:12,verticalAlignment:1},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:24,height:12,verticalAlignment:2},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:36,height:24,verticalAlignment:3},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:24,height:24,top:-10},source:{uri:ot}}),g.a.createElement(b.Image,{style:{width:18,height:12,top:-5},source:{uri:ot}}),g.a.createElement(b.Image,{style:{width:24,height:12},source:{uri:ot}}),g.a.createElement(b.Image,{style:{width:36,height:24,top:3},source:{uri:ot}}),g.a.createElement(b.Text,{style:{fontSize:16}},"字"),g.a.createElement(b.Text,{style:{fontSize:16}},"字"),g.a.createElement(b.Text,{style:{fontSize:16}},"字"),g.a.createElement(b.Text,{style:{fontSize:16}},"字")))),c("tintColor & backgroundColor"),g.a.createElement(b.View,{style:[at.itemContent]},g.a.createElement(b.Text,{style:[at.normalText,{lineHeight:30,backgroundColor:"#4c9afa",paddingHorizontal:10,paddingVertical:5}]},g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"middle",tintColor:"orange"},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"middle",tintColor:"orange",backgroundColor:"#ccc"},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"middle",backgroundColor:"#ccc"},source:{uri:rt}}),g.a.createElement(b.Text,{style:{verticalAlign:"middle",backgroundColor:"#090"}},"text")),"android"===b.Platform.OS&&g.a.createElement(g.a.Fragment,null,g.a.createElement(b.Text,null,"legacy mode:"),g.a.createElement(b.Text,{style:[at.normalText,{lineHeight:30,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},g.a.createElement(b.Image,{style:{width:24,height:24,tintColor:"orange"},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:24,height:24,tintColor:"orange",backgroundColor:"#ccc"},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:24,height:24,backgroundColor:"#ccc"},source:{uri:rt}})))),c("margin"),g.a.createElement(b.View,{style:[at.itemContent]},g.a.createElement(b.Text,{style:[{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:5}]},g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"top",backgroundColor:"#ccc",margin:5},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"middle",backgroundColor:"#ccc",margin:5},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"baseline",backgroundColor:"#ccc",margin:5},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"bottom",backgroundColor:"#ccc",margin:5},source:{uri:rt}})),"android"===b.Platform.OS&&g.a.createElement(g.a.Fragment,null,g.a.createElement(b.Text,null,"legacy mode:"),g.a.createElement(b.Text,{style:[at.normalText,{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlignment:0,backgroundColor:"#ccc",margin:5},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlignment:1,backgroundColor:"#ccc",margin:5},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlignment:2,backgroundColor:"#ccc",margin:5},source:{uri:rt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlignment:3,backgroundColor:"#ccc",margin:5},source:{uri:rt}})))))}}]),n}(g.a.Component);function ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var o=p()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var st=b.StyleSheet.create({container_style:{padding:10},input_style:{width:300,marginVertical:10,fontSize:16,color:"#242424",height:30,lineHeight:30},input_style_block:{height:100,lineHeight:20,fontSize:15,borderWidth:1,borderColor:"gray",underlineColorAndroid:"transparent"},itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},itemContent:{marginTop:10},buttonBar:{flexDirection:"row",marginTop:10,flexGrow:1},button:{width:200,height:24,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",marginTop:5,marginBottom:5,flexGrow:1,flexShrink:1}}),ut=function(e){f()(o,e);var t,n,r=ct(o);function o(e){var t;return l()(this,o),(t=r.call(this,e)).state={textContent:""},t.changeInputContent=t.changeInputContent.bind(fe()(t)),t.focus=t.focus.bind(fe()(t)),t.blur=t.blur.bind(fe()(t)),t}return s()(o,[{key:"changeInputContent",value:function(){this.setState({textContent:"当前时间毫秒:".concat(Date.now())})}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"onFocus",value:(n=se()(he.a.mark((function e(){var t;return he.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.input.isFocused();case 2:t=e.sent,this.setState({event:"onFocus",isFocused:t});case 4:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"onBlur",value:(t=se()(he.a.mark((function e(){var t;return he.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.input.isFocused();case 2:t=e.sent,this.setState({event:"onBlur",isFocused:t});case 4:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"changeBreakStrategy",value:function(e){this.setState({breakStrategy:e})}},{key:"render",value:function(){var e=this,t=this.state,n=t.textContent,r=t.event,o=t.isFocused,a=t.breakStrategy,i=function(e){return g.a.createElement(b.View,{style:st.itemTitle},g.a.createElement(b.Text,null,e))};return g.a.createElement(b.ScrollView,{style:st.container_style},i("text"),g.a.createElement(b.TextInput,{ref:function(t){e.input=t},style:st.input_style,caretColor:"yellow",underlineColorAndroid:"grey",placeholderTextColor:"#4c9afa",placeholder:"text",defaultValue:n,onBlur:function(){return e.onBlur()},onFocus:function(){return e.onFocus()}}),g.a.createElement(b.Text,{style:st.itemContent},"事件: ".concat(r," | isFocused: ").concat(o)),g.a.createElement(b.View,{style:st.button,onClick:this.changeInputContent},g.a.createElement(b.Text,null,"点击改变输入框内容")),g.a.createElement(b.View,{style:st.button,onClick:this.focus},g.a.createElement(b.Text,null,"Focus")),g.a.createElement(b.View,{style:st.button,onClick:this.blur},g.a.createElement(b.Text,null,"Blur")),i("numeric"),g.a.createElement(b.TextInput,{style:st.input_style,keyboardType:"numeric",placeholder:"numeric"}),i("phone-pad"),g.a.createElement(b.TextInput,{style:st.input_style,keyboardType:"phone-pad",placeholder:"phone-pad"}),i("password"),g.a.createElement(b.TextInput,{style:st.input_style,keyboardType:"password",placeholder:"Password",multiline:!1}),i("maxLength"),g.a.createElement(b.TextInput,{caretColor:"yellow",style:st.input_style,placeholder:"maxLength=5",maxLength:5}),"android"===b.Platform.OS&&i("breakStrategy"),"android"===b.Platform.OS&&g.a.createElement(g.a.Fragment,null,g.a.createElement(b.TextInput,{style:st.input_style_block,breakStrategy:a,defaultValue:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales."}),g.a.createElement(b.Text,{style:{}},"breakStrategy: ".concat(a)),g.a.createElement(b.View,{style:st.buttonBar},g.a.createElement(b.View,{style:st.button,onClick:function(){return e.changeBreakStrategy("simple")}},g.a.createElement(b.Text,{style:st.buttonText},"simple")),g.a.createElement(b.View,{style:st.button,onClick:function(){return e.changeBreakStrategy("high_quality")}},g.a.createElement(b.Text,{style:st.buttonText},"high_quality")),g.a.createElement(b.View,{style:st.button,onClick:function(){return e.changeBreakStrategy("balanced")}},g.a.createElement(b.Text,{style:st.buttonText},"balanced")))))}}]),o}(y.Component),ft=n.p+"assets/defaultSource.jpg",dt=b.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},rectangle:{width:160,height:80,marginVertical:10},bigRectangle:{width:200,height:100,borderColor:"#eee",borderWidth:1,borderStyle:"solid",padding:10,marginVertical:10},smallRectangle:{width:40,height:40,borderRadius:10}});function ht(){var e=function(e){return g.a.createElement(b.View,{style:dt.itemTitle},g.a.createElement(b.Text,null,e))};return g.a.createElement(b.ScrollView,{style:{paddingHorizontal:10}},e("backgroundColor"),g.a.createElement(b.View,{style:[dt.rectangle,{backgroundColor:"#4c9afa"}]}),e("backgroundImage"),g.a.createElement(b.View,{style:[dt.rectangle,{alignItems:"center",justifyContent:"center",marginTop:20,backgroundImage:ft}],accessible:!0,accessibilityLabel:"背景图",accessibilityRole:"image",accessibilityState:{disabled:!1,selected:!0,checked:!1,expanded:!1,busy:!0},accessibilityValue:{min:1,max:10,now:5,text:"middle"}},g.a.createElement(b.Text,{style:{color:"white"}},"背景图")),e("backgroundImage linear-gradient"),g.a.createElement(b.View,{style:[dt.rectangle,{alignItems:"center",justifyContent:"center",marginTop:20,borderWidth:2,borderStyle:"solid",borderColor:"black",borderRadius:2,backgroundImage:"linear-gradient(30deg, blue 10%, yellow 40%, red 50%);"}]},g.a.createElement(b.Text,{style:{color:"white"}},"渐变色")),e("border props"),g.a.createElement(b.View,{style:[dt.rectangle,{borderColor:"#242424",borderRadius:4,borderWidth:1,borderStyle:"solid"}]}),e("flex props"),g.a.createElement(b.View,{style:[dt.bigRectangle,{flexDirection:"row",alignItems:"center",justifyContent:"space-between"}]},g.a.createElement(b.View,{style:[dt.smallRectangle,{backgroundColor:"yellow"}]}),g.a.createElement(b.View,{style:[dt.smallRectangle,{backgroundColor:"blue"}]}),g.a.createElement(b.View,{style:[dt.smallRectangle,{backgroundColor:"green"}]})))}var mt=b.StyleSheet.create({pageContainer:{alignItems:"center",justifyContent:"center",flex:1,paddingTop:20},mainRec:{backgroundColor:"#4c9afaAA",width:256,height:48,marginBottom:10,marginTop:156},title:{verticalAlign:"middle",lineHeight:48,height:48,fontSize:16,color:"white",alignSelf:"center"},shapeBase:{width:128,height:128,backgroundColor:"#4c9afa"},square:{},circle:{borderRadius:64},triangle:{borderStyle:"solid",borderTopWidth:0,borderRightWidth:70,borderBottomWidth:128,borderLeftWidth:70,borderTopColor:"transparent",borderRightColor:"transparent",borderLeftColor:"transparent",borderBottomColor:"#4c9afa",backgroundColor:"transparent",width:140}}),pt="SquarePagerView",yt="TrianglePagerView",gt="CirclePagerView";function bt(e,t){var n=function(t){return g.a.createElement(b.View,{style:mt.pageContainer,key:t},g.a.createElement(b.View,{style:[mt.shapeBase,e],key:"shape"}),g.a.createElement(b.View,{style:mt.mainRec,key:"title"},t?g.a.createElement(b.Text,{style:mt.title},t):null))};return n.displayName=t,n}var wt=bt(mt.square,pt),vt=bt(mt.triangle,yt),xt=bt(mt.circle,gt);function St(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var o=p()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Et=b.StyleSheet.create({dotContainer:{position:"absolute",bottom:10,left:0,right:0,flexDirection:"row",alignItems:"center",justifyContent:"center"},dot:{width:6,height:6,borderRadius:3,margin:3,backgroundColor:"#BBBBBB"},selectDot:{backgroundColor:"#000000"},container:{height:500},buttonContainer:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12},button:{width:120,height:36,backgroundColor:"#4c9afa",borderRadius:18,alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,color:"#fff"}}),Tt=function(e){f()(n,e);var t=St(n);function n(e){var r;return l()(this,n),r=t.call(this,e),$()(fe()(r),"state",{selectedIndex:0}),r.onPageSelected=r.onPageSelected.bind(fe()(r)),r.onPageScrollStateChanged=r.onPageScrollStateChanged.bind(fe()(r)),r}return s()(n,[{key:"onPageSelected",value:function(e){console.log("onPageSelected",e.position),this.setState({selectedIndex:e.position})}},{key:"onPageScrollStateChanged",value:function(e){console.log("onPageScrollStateChanged",e)}},{key:"onPageScroll",value:function(e){var t=e.offset,n=e.position;console.log("onPageScroll",t,n)}},{key:"render",value:function(){var e=this,t=this.state.selectedIndex;return g.a.createElement(b.View,{style:{flex:1,backgroundColor:"#ffffff"}},g.a.createElement(b.View,{style:Et.buttonContainer},g.a.createElement(b.View,{style:Et.button,onClick:function(){e.viewpager.setPage(2)}},g.a.createElement(b.Text,{style:Et.buttonText},"动效滑到第3页")),g.a.createElement(b.View,{style:Et.button,onClick:function(){return e.viewpager.setPageWithoutAnimation(0)}},g.a.createElement(b.Text,{style:Et.buttonText},"直接滑到第1页"))),g.a.createElement(b.ViewPager,{ref:function(t){e.viewpager=t},style:Et.container,initialPage:0,keyboardDismissMode:"none",scrollEnabled:!0,onPageSelected:this.onPageSelected,onPageScrollStateChanged:this.onPageScrollStateChanged,onPageScroll:this.onPageScroll},[wt("squarePager"),vt("TrianglePager"),xt("CirclePager")]),g.a.createElement(b.View,{style:Et.dotContainer},new Array(3).fill(0).map((function(e,n){var r=n===t;return g.a.createElement(b.View,{style:[Et.dot,r?Et.selectDot:null],key:"dot_".concat(n)})}))))}}]),n}(g.a.Component),At=b.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},webViewStyle:{padding:10,flex:1,flexGrow:1,borderRadius:10}});function Ct(){return g.a.createElement(b.View,{style:{paddingHorizontal:10,flex:1}},g.a.createElement(b.View,{style:At.itemTitle},g.a.createElement(b.Text,null,"WebView 示例")),g.a.createElement(b.WebView,{source:{uri:"https://hippyjs.org"},method:"get",userAgent:"Mozilla/5.0 (Linux; U; Android 5.1.1; zh-cn; vivo X7 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko)Version/4.0 Chrome/37.0.0.0 MQQBrowser/8.2 Mobile Safari/537.36",style:At.webViewStyle,onLoad:function(e){var t=e.url;return console.log("webview onload",t)},onLoadStart:function(e){var t=e.url;return console.log("webview onLoadStart",t)},onLoadEnd:function(e){var t=e.url,n=e.success,r=e.error;return console.log("webview onLoadEnd",t,n,r)}}))}var kt=b.StyleSheet.create({shadowDemo:{flex:1,overflowY:"scroll"},shadowDemoCubeAndroid:{position:"absolute",left:50,top:50,width:170,height:170,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowColor:"#4c9afa",borderRadius:5},shadowDemoContentAndroid:{position:"absolute",left:5,top:5,width:160,height:160,backgroundColor:"grey",borderRadius:5,display:"flex",justifyContent:"center",alignItems:"center"},shadowDemoCubeIos:{position:"absolute",left:50,top:50,width:160,height:160,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowSpread:1,boxShadowColor:"#4c9afa",borderRadius:5},shadowDemoContentIos:{width:160,height:160,backgroundColor:"grey",borderRadius:5,display:"flex",justifyContent:"center",alignItems:"center"},text:{color:"white"}}),Rt=b.StyleSheet.create({shadowDemoCubeAndroid:{position:"absolute",left:50,top:300,width:175,height:175,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:15,boxShadowOffsetY:15,boxShadowColor:"#4c9afa"},shadowDemoContentAndroid:{width:160,height:160,backgroundColor:"grey",display:"flex",justifyContent:"center",alignItems:"center"},shadowDemoCubeIos:{position:"absolute",left:50,top:300,width:160,height:160,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:10,boxShadowOffsetY:10,boxShadowSpread:1,boxShadowColor:"#4c9afa"},shadowDemoContentIos:{width:160,height:160,backgroundColor:"grey",display:"flex",justifyContent:"center",alignItems:"center"},text:{color:"white"}});function Vt(){return g.a.createElement(b.View,{style:kt.shadowDemo},"android"===b.Platform.OS?g.a.createElement(b.View,{style:kt.shadowDemoCubeAndroid},g.a.createElement(b.View,{style:kt.shadowDemoContentAndroid},g.a.createElement(b.Text,{style:kt.text},"没有偏移阴影样式"))):g.a.createElement(b.View,{style:kt.shadowDemoCubeIos},g.a.createElement(b.View,{style:kt.shadowDemoContentIos},g.a.createElement(b.Text,{style:kt.text},"没有偏移阴影样式"))),"android"===b.Platform.OS?g.a.createElement(b.View,{style:Rt.shadowDemoCubeAndroid},g.a.createElement(b.View,{style:Rt.shadowDemoContentAndroid},g.a.createElement(b.Text,{style:Rt.text},"偏移阴影样式"))):g.a.createElement(b.View,{style:Rt.shadowDemoCubeIos},g.a.createElement(b.View,{style:Rt.shadowDemoContentIos},g.a.createElement(b.Text,{style:Rt.text},"偏移阴影样式"))))}function It(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var o=p()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Ot=Oe.filter((function(e){return 2!==e.style})),jt=b.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},splitter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},pullContainer:{height:50,backgroundColor:"#4c9afa"},pullContent:{lineHeight:50,color:"white",height:50,textAlign:"center"},pullFooter:{flex:1,height:40,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}}),Pt=function(e){f()(i,e);var t,n,r,o,a=It(i);function i(e){var t;return l()(this,i),(t=a.call(this,e)).state={dataSource:[],headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",horizontal:void 0},t.numberOfColumns=2,t.columnSpacing=6,t.interItemSpacing=6,t.mockFetchData=t.mockFetchData.bind(fe()(t)),t.renderItem=t.renderItem.bind(fe()(t)),t.getItemType=t.getItemType.bind(fe()(t)),t.getItemKey=t.getItemKey.bind(fe()(t)),t.onEndReached=t.onEndReached.bind(fe()(t)),t.onRefresh=t.onRefresh.bind(fe()(t)),t.getRefresh=t.getRefresh.bind(fe()(t)),t.renderPullFooter=t.renderPullFooter.bind(fe()(t)),t.renderPullHeader=t.renderPullHeader.bind(fe()(t)),t.onHeaderReleased=t.onHeaderReleased.bind(fe()(t)),t.onHeaderPulling=t.onHeaderPulling.bind(fe()(t)),t.onFooterPulling=t.onFooterPulling.bind(fe()(t)),t.renderBanner=t.renderBanner.bind(fe()(t)),t.getItemStyle=t.getItemStyle.bind(fe()(t)),t.getHeaderStyle=t.getHeaderStyle.bind(fe()(t)),t.onScroll=t.onScroll.bind(fe()(t)),t}return s()(i,[{key:"componentDidMount",value:(o=se()(he.a.mark((function e(){var t;return he.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mockFetchData();case 2:t=e.sent,this.setState({dataSource:t});case 4:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"onEndReached",value:(r=se()(he.a.mark((function e(){var t,n,r;return he.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.state.dataSource,!this.loadMoreDataFlag){e.next=3;break}return e.abrupt("return");case 3:return this.loadMoreDataFlag=!0,this.setState({footerRefreshText:"加载更多..."}),n=[],e.prev=6,e.next=9,this.mockFetchData();case 9:n=e.sent,e.next=14;break;case 12:e.prev=12,e.t0=e.catch(6);case 14:0===n.length&&this.setState({footerRefreshText:"没有更多数据"}),r=[].concat(v()(t),v()(n)),this.setState({dataSource:r}),this.loadMoreDataFlag=!1,this.listView.collapsePullFooter();case 19:case"end":return e.stop()}}),e,this,[[6,12]])}))),function(){return r.apply(this,arguments)})},{key:"onHeaderReleased",value:(n=se()(he.a.mark((function e(){var t,n=this;return he.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.fetchingDataFlag){e.next=2;break}return e.abrupt("return");case 2:return this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.setState({headerRefreshText:"刷新数据中,请稍等"}),t=[],e.prev=6,e.next=9,this.mockFetchData();case 9:t=e.sent,e.next=14;break;case 12:e.prev=12,e.t0=e.catch(6);case 14:this.fetchingDataFlag=!1,this.setState({dataSource:t,headerRefreshText:"2秒后收起"},(function(){n.listView.collapsePullHeader({time:2e3})}));case 16:case"end":return e.stop()}}),e,this,[[6,12]])}))),function(){return n.apply(this,arguments)})},{key:"onHeaderPulling",value:function(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>jt.pullContent.height?this.setState({headerRefreshText:"松手,即可触发刷新"}):this.setState({headerRefreshText:"继续下拉,触发刷新"}))}},{key:"onFooterPulling",value:function(e){console.log("onFooterPulling",e)}},{key:"renderPullFooter",value:function(){return this.state.horizontal?g.a.createElement(b.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},g.a.createElement(b.Text,{style:{color:"white",lineHeight:25,width:40,paddingHorizontal:15}},this.state.footerRefreshText)):g.a.createElement(b.View,{style:jt.pullFooter},g.a.createElement(b.Text,{style:{color:"white"}},this.state.footerRefreshText))}},{key:"onRefresh",value:(t=se()(he.a.mark((function e(){var t=this;return he.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:setTimeout(se()(he.a.mark((function e(){var n;return he.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.mockFetchData();case 2:n=e.sent,t.setState({dataSource:n}),t.refresh.refreshComplected();case 5:case"end":return e.stop()}}),e)}))),1e3);case 1:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})},{key:"getRefresh",value:function(){return g.a.createElement(b.View,{style:{flex:1,height:40,justifyContent:"center",alignItems:"center",backgroundColor:"#4c9afa"}},g.a.createElement(b.Text,{style:{height:40,lineHeight:40,textAlign:"center",color:"white"}},"下拉刷新中..."))}},{key:"onClickItem",value:function(e){console.log("item: ".concat(e," is clicked.."))}},{key:"getItemType",value:function(e){return this.state.dataSource[e].style}},{key:"getItemKey",value:function(e){return"row-".concat(e)}},{key:"onItemClick",value:function(e){console.log("onItemClick",e),this.listView.scrollToIndex({index:e,animation:!0})}},{key:"onScroll",value:function(e){}},{key:"renderBanner",value:function(){return 0===this.state.dataSource.length?null:g.a.createElement(b.View,{style:{backgroundColor:"grey",height:100,justifyContent:"center",alignItems:"center"}},g.a.createElement(b.Text,{style:{fontSize:20,color:"white",lineHeight:100,height:100}},"Banner View"))}},{key:"renderItem",value:function(e){var t=this,n=null,r=this.state.dataSource[e];switch(r.style){case 1:n=g.a.createElement(Me,{itemBean:r.itemBean});break;case 2:n=g.a.createElement(We,{itemBean:r.itemBean});break;case 5:n=g.a.createElement(qe,{itemBean:r.itemBean})}return g.a.createElement(b.View,{onClick:function(){return t.onItemClick(e)},style:jt.container},g.a.createElement(b.View,{style:jt.itemContainer},n),g.a.createElement(b.View,{style:jt.splitter}))}},{key:"mockFetchData",value:function(){return new Promise((function(e){setTimeout((function(){var t=[].concat(v()(Ot),v()(Ot));return e(t)}),600)}))}},{key:"getWaterfallContentInset",value:function(){return{top:0,left:0,bottom:0,right:0}}},{key:"getItemStyle",value:function(){var e=this.numberOfColumns,t=this.columnSpacing,n=b.Dimensions.get("screen").width-32,r=this.getWaterfallContentInset();return{width:(n-r.left-r.right-(e-1)*t)/e}}},{key:"getHeaderStyle",value:function(){return this.state.horizontal?{width:50}:{}}},{key:"renderPullHeader",value:function(){var e=this.state,t=e.headerRefreshText;return e.horizontal?g.a.createElement(b.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},g.a.createElement(b.Text,{style:{lineHeight:25,color:"white",width:40,paddingHorizontal:15}},t)):g.a.createElement(b.View,{style:jt.pullContainer},g.a.createElement(b.Text,{style:jt.pullContent},t))}},{key:"render",value:function(){var e=this,t=this.state.dataSource,n=this.numberOfColumns,r=this.columnSpacing,o=this.interItemSpacing,a=this.getWaterfallContentInset();return g.a.createElement(b.WaterfallView,{ref:function(t){e.listView=t},numberOfColumns:n,columnSpacing:r,interItemSpacing:o,numberOfItems:t.length,preloadItemNumber:4,style:{flex:1},onScroll:this.onScroll,renderBanner:this.renderBanner,renderPullHeader:this.renderPullHeader,onEndReached:this.onEndReached,onFooterReleased:this.onEndReached,onHeaderReleased:this.onHeaderReleased,onHeaderPulling:this.onHeaderPulling,renderItem:this.renderItem,getItemType:this.getItemType,getItemKey:this.getItemKey,getItemStyle:this.getItemStyle,getHeaderStyle:this.getHeaderStyle,contentInset:a})}}]),i}(g.a.Component),Dt=n.p+"assets/defaultSource.jpg",_t=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),Lt=n.n(_t);function Bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mt(e){for(var t=1;t0&&void 0!==o[0]&&o[0],e.prev=1,e.next=4,b.UIManagerModule.getBoundingClientRect(n.current,{relToContainer:t});case 4:r=e.sent,u(r),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.error("getBoxPosition error",e.t0);case 11:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(){return e.apply(this,arguments)}}(),d=ln(ln({},cn.box),a);return g.a.createElement(b.View,{style:cn.full},g.a.createElement(b.View,{style:cn.demoContent},g.a.createElement(b.View,{ref:n,style:d},g.a.createElement(b.Text,{style:cn.text,numberOfLines:2},"I am the box"))),g.a.createElement(b.View,{style:cn.buttonContainer},g.a.createElement(b.View,{onClick:function(){var n=sn(0,e-100),r=sn(0,t-450),o=sn(80,120);i({left:n,top:r,width:o,height:o})},style:cn.button},g.a.createElement(b.Text,{style:cn.buttonText},"Move position")),g.a.createElement(b.View,{onClick:function(){return f(!1)},style:cn.button},g.a.createElement(b.Text,{style:cn.buttonText},"Measure in App Window")),g.a.createElement(b.View,{onClick:function(){return f(!0)},style:cn.button},g.a.createElement(b.Text,{style:cn.buttonText},"Measure in Container(RootView)"))),g.a.createElement(b.View,{style:cn.row},g.a.createElement(b.View,null,g.a.createElement(b.Text,null,"Box style:"),g.a.createElement(b.Text,{style:cn.black},"Width: ".concat(d.width)),g.a.createElement(b.Text,{style:cn.black},"Height: ".concat(d.height)),g.a.createElement(b.Text,{style:cn.black},"Left: ".concat(d.left)),g.a.createElement(b.Text,{style:cn.black},"Top: ".concat(d.top))),g.a.createElement(b.View,null,g.a.createElement(b.Text,null,"getBoundingClientRect output:"),g.a.createElement(b.Text,{style:cn.black},"Width: ".concat(s.width)),g.a.createElement(b.Text,{style:cn.black},"Height: ".concat(s.height)),g.a.createElement(b.Text,{style:cn.black},"X: ".concat(s.x)),g.a.createElement(b.Text,{style:cn.black},"Y: ".concat(s.y)))))};function fn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var o=p()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var dn=b.StyleSheet.create({style_indicator_item:{width:4,height:4,marginLeft:2.5,marginRight:2.5,borderRadius:2},style_indicator:{position:"absolute",bottom:6,left:0,right:0,marginLeft:0,marginRight:0,alignItems:"center",justifyContent:"center",flexDirection:"row"}}),hn=function(e){f()(n,e);var t=fn(n);function n(e){var r;return l()(this,n),(r=t.call(this,e)).state={current:e.current||0},r}return s()(n,[{key:"update",value:function(e){this.state.current!==e&&this.setState({current:e})}},{key:"render",value:function(){for(var e=this.props.count,t=this.state.current,n=[],r=0;r=o||(this.indicator&&this.indicator.update(r),this.currentIndex=r)}}},{key:"onScrollBeginDrag",value:function(){this.touchStartOffset=this.scrollOffset,this.doClearTimer()}},{key:"onScrollEndDrag",value:function(){this.doCreateTimer()}},{key:"onLayout",value:function(e){this.width=e.layout.width}},{key:"doSwitchPage",value:function(e){this.scrollView.scrollTo({x:this.imgWidth*e,y:0,animated:!0})}},{key:"doCreateTimer",value:function(){var e=this;this.doClearTimer(),this.duration<=0||(this.interval=setInterval((function(){e.doSwitchPage((e.currentIndex+1)%e.itemCount)}),this.duration))}},{key:"doClearTimer",value:function(){this.interval&&clearInterval(this.interval),this.interval=null}},{key:"render",value:function(){for(var e=this,t=this.props.images,n=[],r=0;rr-a?60*r-o:60*n-60*a+30,this.navScrollView.scrollTo({x:e,y:0,animated:!0})}}},{key:"pressNavItem",value:function(e){this.setState({curIndex:e}),this.viewPager&&this.viewPager.setPage(e)}},{key:"renderNav",value:function(){var e=this,t=this.state,n=t.navList,r=t.curIndex;return g.a.createElement(b.View,{style:wn.container},g.a.createElement(b.ScrollView,{style:wn.scroll,horizontal:!0,showsHorizontalScrollIndicator:!1,ref:function(t){e.navScrollView=t}},n.map((function(t,n){return g.a.createElement(b.View,{style:wn.navItem,key:"nav_".concat(t),activeOpacity:.5,onClick:function(){return e.pressNavItem(n)}},g.a.createElement(b.Text,{style:[wn.navItemText,r===n?wn.navItemTextBlue:wn.navItemTextNormal],numberOfLines:1},t))}))))}},{key:"render",value:function(){var e=this,t=this.state.navList;return g.a.createElement(b.View,{style:{flex:1,backgroundColor:"#ffffff"}},this.renderNav(),g.a.createElement(b.ViewPager,{ref:function(t){e.viewPager=t},style:{flex:1},initialPage:0,onPageSelected:this.onViewPagerChange},t.map((function(e,t){return n.getPage(e,t)}))))}}],[{key:"getPage",value:function(e,t){switch(t%3){case 0:return wt(e);case 1:return xt(e);case 2:return vt(e);default:return null}}}]),n}(g.a.Component);function xn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var o=p()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Sn=b.Dimensions.get("window").width,En=b.StyleSheet.create({setNativePropsDemo:{display:"flex",alignItems:"center",position:"relative"},nativeDemo1Drag:{height:80,width:Sn,backgroundColor:"#4c9afa",position:"relative",marginTop:10},nativeDemo1Point:{height:80,width:80,color:"#4cccfa",backgroundColor:"#4cccfa",position:"absolute",left:0},nativeDemo2Drag:{height:80,width:Sn,backgroundColor:"#4c9afa",position:"relative",marginTop:10},nativeDemo2Point:{height:80,width:80,color:"#4cccfa",backgroundColor:"#4cccfa",position:"absolute",left:0},splitter:{marginTop:50}}),Tn=function(e){f()(n,e);var t=xn(n);function n(e){var r;return l()(this,n),(r=t.call(this,e)).demon1Point=g.a.createRef(),r.demo1PointDom=null,r.state={demo2Left:0},r.isDemon1Layouted=!1,r.idDemon2Layouted=!1,r.onTouchDown1=r.onTouchDown1.bind(fe()(r)),r.onDemon1Layout=r.onDemon1Layout.bind(fe()(r)),r.onTouchMove1=r.onTouchMove1.bind(fe()(r)),r.onTouchDown2=r.onTouchDown2.bind(fe()(r)),r.onTouchMove2=r.onTouchMove2.bind(fe()(r)),r}return s()(n,[{key:"componentDidMount",value:function(){}},{key:"onDemon1Layout",value:function(){this.isDemon1Layouted||(this.isDemon1Layouted=!0,this.demo1PointDom=b.UIManagerModule.getElementFromFiberRef(this.demon1Point.current))}},{key:"onTouchDown1",value:function(e){var t=e.page_x,n=t-40;console.log("touchdown x",t,n,Sn),this.demo1PointDom&&this.demo1PointDom.setNativeProps({style:{left:n}})}},{key:"onTouchMove1",value:function(e){var t=e.page_x,n=t-40;console.log("touchmove x",t,n,Sn),this.demo1PointDom&&this.demo1PointDom.setNativeProps({style:{left:n}})}},{key:"onTouchDown2",value:function(e){var t=e.page_x,n=t-40;console.log("touchdown x",t,n,Sn),this.setState({demo2Left:n})}},{key:"onTouchMove2",value:function(e){var t=e.page_x,n=t-40;console.log("touchmove x",t,n,Sn),this.setState({demo2Left:n})}},{key:"render",value:function(){var e=this.state.demo2Left;return g.a.createElement(b.View,{style:En.setNativePropsDemo},g.a.createElement(b.Text,null,"setNativeProps实现拖动效果"),g.a.createElement(b.View,{style:En.nativeDemo1Drag,onTouchDown:this.onTouchDown1,onTouchMove:this.onTouchMove1},g.a.createElement(b.View,{onLayout:this.onDemon1Layout,style:En.nativeDemo1Point,ref:this.demon1Point})),g.a.createElement(b.View,{style:En.splitter}),g.a.createElement(b.Text,null,"普通渲染实现拖动效果"),g.a.createElement(b.View,{style:En.nativeDemo2Drag,onTouchDown:this.onTouchDown2,onTouchMove:this.onTouchMove2},g.a.createElement(b.View,{style:[En.nativeDemo2Point,{left:e}]})))}}]),n}(g.a.Component);function An(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var o=p()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Cn=b.StyleSheet.create({dynamicImportDemo:{marginTop:20,display:"flex",flex:1,alignItems:"center",position:"relative",flexDirection:"column"}}),kn=function(e){f()(r,e);var t=An(r);function r(e){var n;return l()(this,r),(n=t.call(this,e)).state={AsyncComponentFromLocal:null,AsyncComponentFromHttp:null},n.onAsyncComponentLoad=n.onAsyncComponentLoad.bind(fe()(n)),n}return s()(r,[{key:"onAsyncComponentLoad",value:function(){var e=this;console.log("load async component"),n.e(1).then(n.bind(null,"./src/externals/DyanmicImport/AsyncComponentLocal.jsx")).then((function(t){e.setState({AsyncComponentFromLocal:t.default||t})})).catch((function(e){return console.error("import async local component error",e)})),n.e(0).then(n.bind(null,"./src/externals/DyanmicImport/AsyncComponentHttp.jsx")).then((function(t){e.setState({AsyncComponentFromHttp:t.default||t})})).catch((function(e){return console.error("import async remote component error",e)}))}},{key:"render",value:function(){var e=this.state,t=e.AsyncComponentFromLocal,n=e.AsyncComponentFromHttp;return g.a.createElement(b.View,{style:Cn.dynamicImportDemo},g.a.createElement(b.View,{style:{width:130,height:40,textAlign:"center",backgroundColor:"#4c9afa",borderRadius:5},onTouchDown:this.onAsyncComponentLoad},g.a.createElement(b.Text,{style:{height:40,lineHeight:40,textAlign:"center"}},"点我异步加载")),g.a.createElement(b.View,{style:{marginTop:20}},t?g.a.createElement(t,null):null,n?g.a.createElement(n,null):null))}}]),r}(g.a.Component);function Rn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var o=p()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Vn=b.StyleSheet.create({LocalizationDemo:{marginTop:20,display:"flex",flex:1,alignItems:"center",position:"relative",flexDirection:"column"}}),In=function(e){f()(n,e);var t=Rn(n);function n(){return l()(this,n),t.apply(this,arguments)}return s()(n,[{key:"render",value:function(){var e=b.Platform.Localization||{},t=e.country,n=e.language,r=e.direction;return g.a.createElement(b.View,{style:Vn.LocalizationDemo},g.a.createElement(b.View,{style:{height:40,textAlign:"center",backgroundColor:"#4c9afa",borderRadius:5},onTouchDown:this.onAsyncComponentLoad},g.a.createElement(b.Text,{style:{color:"white",marginHorizontal:30,height:40,lineHeight:40,textAlign:"center"}},"国际化相关信息:国家 ".concat(t," | 语言 ").concat(n," | 方向 ").concat(1===r?"RTL":"LTR"))))}}]),n}(g.a.Component),On=function(){var e=se()(he.a.mark((function e(t){return he.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",turboPromise(getTurboModule("demoTurbo").nativeWithPromise)(t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),jn=function(){return getTurboModule("demoTurbo").getTurboConfig()};function Pn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var o=p()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Dn=b.StyleSheet.create({container:{flex:1},cellContentView:{flexDirection:"row",justifyContent:"space-between",backgroundColor:"#ccc",marginBottom:1},funcInfo:{justifyContent:"center",paddingLeft:15,paddingRight:15},actionButton:{backgroundColor:"#4c9afa",color:"#fff",height:44,lineHeight:44,textAlign:"center",width:80,borderRadius:6},resultView:{backgroundColor:"darkseagreen",minHeight:150,padding:15}}),_n=function(e){f()(r,e);var t,n=Pn(r);function r(e){var t;return l()(this,r),(t=n.call(this,e)).state={config:null,result:"",funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"]},t.onTurboFunc=t.onTurboFunc.bind(fe()(t)),t.getRenderRow=t.getRenderRow.bind(fe()(t)),t.getRowKey=t.getRowKey.bind(fe()(t)),t}return s()(r,[{key:"onTurboFunc",value:(t=se()(he.a.mark((function e(t){var n;return he.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("nativeWithPromise"!==t){e.next=6;break}return e.next=3,On("aaa");case 3:n=e.sent,e.next=7;break;case 6:"getTurboConfig"===t?(this.config=jn(),n="获取到config对象"):"printTurboConfig"===t?(r=this.config||jn(),n=getTurboModule("demoTurbo").printTurboConfig(r)):"getInfo"===t?n=(this.config||jn()).getInfo():"setInfo"===t?((this.config||jn()).setInfo("Hello World"),n="设置config信息成功"):n={getString:function(){return e="123",getTurboModule("demoTurbo").getString(e);var e},getNum:function(){return e=1024,getTurboModule("demoTurbo").getNum(e);var e},getBoolean:function(){return e=!0,getTurboModule("demoTurbo").getBoolean(e);var e},getMap:function(){return e=new Map([["a","1"],["b",2]]),getTurboModule("demoTurbo").getMap(e);var e},getObject:function(){return e={c:"3",d:"4"},getTurboModule("demoTurbo").getObject(e);var e},getArray:function(){return e=["a","b","c"],getTurboModule("demoTurbo").getArray(e);var e}}[t]();case 7:this.setState({result:n});case 8:case"end":return e.stop()}var r}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"renderResultView",value:function(){return g.a.createElement(b.View,{style:Dn.resultView},g.a.createElement(b.Text,{style:{backgroundColor:"darkseagreen"}},"".concat(this.state.result)))}},{key:"getRenderRow",value:function(e){var t=this,n=this.state.funList;return g.a.createElement(b.View,{style:Dn.cellContentView},g.a.createElement(b.View,{style:Dn.funcInfo},g.a.createElement(b.Text,{numberofLines:0},"函数名:",n[e])),g.a.createElement(b.Text,{style:Dn.actionButton,onClick:function(){return t.onTurboFunc(n[e])}},"执行"))}},{key:"getRowKey",value:function(e){return this.state.funList[e]}},{key:"render",value:function(){var e=this.state.funList;return g.a.createElement(b.View,{style:Dn.container},this.renderResultView(),g.a.createElement(b.ListView,{numberOfRows:e.length,renderRow:this.getRenderRow,getRowKey:this.getRowKey,style:{flex:1}}))}}]),r}(g.a.Component);function Ln(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var o=p()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Bn=b.StyleSheet.create({demoWrap:{horizontal:!1,flex:1,flexDirection:"column"},banner:{backgroundImage:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",backgroundSize:"cover",height:150,justifyContent:"flex-end"},bannerText:{color:"coral",textAlign:"center"},tabs:{flexDirection:"row",height:30},tabText:{flex:1,textAlign:"center",backgroundColor:"#eee",color:"#999"},tabSelected:{flex:1,textAlign:"center",color:"#4c9afa"},itemEven:{height:40,backgroundColor:"gray"},itemEvenText:{lineHeight:40,color:"white",fontSize:20,textAlign:"center"},itemOdd:{height:40},itemOddText:{lineHeight:40,fontSize:20,textAlign:"center"}}),Mn=function(e){f()(n,e);var t=Ln(n);function n(e){var r;return l()(this,n),(r=t.call(this,e)).state={layoutHeight:0,currentSlide:0},r}return s()(n,[{key:"selectPage",value:function(e){var t;this.setState({currentSlide:e}),null===(t=this.viewPager)||void 0===t||t.setPage(e)}},{key:"render",value:function(){var e=this,t=this.state,n=t.layoutHeight,r=t.currentSlide;return g.a.createElement(b.ScrollView,{style:Bn.demoWrap,scrollEventThrottle:50,onLayout:function(t){return e.setState({layoutHeight:t.layout.height})}},g.a.createElement(b.View,{style:Bn.banner}),g.a.createElement(b.View,{style:Bn.tabs},g.a.createElement(b.Text,{key:"tab1",style:0===r?Bn.tabSelected:Bn.tabText,onClick:function(){return e.selectPage(0)}},"tab 1 (parent first)"),g.a.createElement(b.Text,{key:"tab2",style:1===r?Bn.tabSelected:Bn.tabText,onClick:function(){return e.selectPage(1)}},"tab 2 (self first)")),g.a.createElement(b.ViewPager,{ref:function(t){return e.viewPager=t},initialPage:r,style:{height:n-80},onPageSelected:function(t){return e.setState({currentSlide:t.position})}},g.a.createElement(b.ListView,{nestedScrollTopPriority:"parent",key:"slide1",numberOfRows:30,getRowKey:function(e){return"item".concat(e)},initialListSize:30,renderRow:function(e){return g.a.createElement(b.Text,{style:e%2?Bn.itemEvenText:Bn.itemOddText},"Item ",e)},getRowStyle:function(e){return e%2?Bn.itemEven:Bn.itemOdd}}),g.a.createElement(b.ListView,{nestedScrollTopPriority:"self",key:"slide2",numberOfRows:30,getRowKey:function(e){return"item".concat(e)},initialListSize:30,renderRow:function(e){return g.a.createElement(b.Text,{style:e%2?Bn.itemEvenText:Bn.itemOddText},"Item ",e)},getRowStyle:function(e){return e%2?Bn.itemEven:Bn.itemOdd}})))}}]),n}(g.a.Component);function zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fn(e){for(var t=1;t 组件",component:Hn.View,meta:{type:Nn.COMPONENT}},{path:"/Text",name:" 组件",component:Hn.Text,meta:{type:Nn.COMPONENT}},{path:"/Image",name:" 组件",component:Hn.Image,meta:{type:Nn.COMPONENT}},{path:"/ListView",name:" 组件",component:Hn.ListView,meta:{type:Nn.COMPONENT}},{path:"/WaterfallView",name:" 组件",component:Hn.WaterfallView,meta:{type:Nn.COMPONENT}},{path:"/PullHeader",name:" 组件",component:Hn.PullHeaderFooter,meta:{type:Nn.COMPONENT}},{path:"/RefreshWrapper",name:" 组件",component:Hn.RefreshWrapper,meta:{type:Nn.COMPONENT}},{path:"/ScrollView",name:" 组件",component:Hn.ScrollView,meta:{type:Nn.COMPONENT}},{path:"/ViewPager",name:" 组件",component:Hn.ViewPager,meta:{type:Nn.COMPONENT}},{path:"/TextInput",name:" 组件",component:Hn.TextInput,meta:{type:Nn.COMPONENT}},{path:"/Modal",name:" 组件",component:Hn.Modal,meta:{type:Nn.COMPONENT}},{path:"/Slider",name:" 组件",component:Hn.Slider,meta:{type:Nn.COMPONENT}},{path:"/TabHost",name:" 组件",component:Hn.TabHost,meta:{type:Nn.COMPONENT}},{path:"/WebView",name:" 组件",component:Hn.WebView,meta:{type:Nn.COMPONENT}},{path:"/RippleViewAndroid",name:" 组件",component:Hn.RippleViewAndroid,meta:{type:Nn.COMPONENT}},{path:"/Moduels",name:"Modules",meta:{type:Nn.TITLE,mapType:Nn.MODULE}},{path:"/Animation",name:"Animation 模块",component:Hn.Animation,meta:{type:Nn.MODULE}},{path:"/WebSocket",name:"WebSocket 模块",component:Hn.WebSocket,meta:{type:Nn.MODULE}},{path:"/NetInfo",name:"Network 模块",component:Hn.NetInfo,meta:{type:Nn.MODULE}},{path:"/UIManagerModule",name:"UIManagerModule 模块",component:Hn.UIManagerModule,meta:{type:Nn.MODULE}},{path:"/Others",name:"Others",meta:{type:Nn.TITLE,mapType:Nn.OTHER}},{path:"/NestedScroll",name:"NestedScroll 范例",component:Hn.NestedScroll,meta:{type:Nn.OTHER}},{path:"/BoxShadow",name:"BoxShadow 范例",component:Hn.BoxShadow,meta:{type:Nn.OTHER}},{path:"/SetNativeProps",name:"setNativeProps 范例",component:Hn.SetNativeProps,meta:{type:Nn.OTHER}},{path:"/DynamicImport",name:"DynamicImport 范例",component:Hn.DynamicImport,meta:{type:Nn.OTHER}},{path:"/Localization",name:"Localization 范例",component:Hn.Localization,meta:{type:Nn.OTHER}},{path:"/Turbo",name:"Turbo 范例",component:Hn.Turbo,meta:{type:Nn.OTHER}}],Un="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",Kn="#1E304A",Gn=b.StyleSheet.create({container:{marginTop:20,marginBottom:12,height:24,flexDirection:"row",alignItems:"center",justifyContent:"space-between"},backIcon:{tintColor:Kn,width:15,height:15},headerButton:{height:24,alignItems:"center",justifyContent:"center"},title:{fontSize:16,color:Kn,lineHeight:16}}),qn=J((function(e){var t=e.history,n=e.route;return 0===t.index?g.a.createElement(b.View,{style:[Gn.container]},g.a.createElement(b.View,null,g.a.createElement(b.Text,{numberOfLines:1,style:[Gn.title]},n.name)),g.a.createElement(b.View,{style:Gn.headerButton},g.a.createElement(b.Text,{numberOfLines:1,style:Gn.title},"unspecified"!==b.default.version?"".concat(b.default.version):"master"))):g.a.createElement(b.View,{style:[Gn.container]},g.a.createElement(b.View,{onClick:function(){return t.goBack()},style:[Gn.headerButton]},g.a.createElement(b.Image,{style:Gn.backIcon,source:{uri:Un}})),g.a.createElement(b.View,{style:Gn.headerButton},g.a.createElement(b.Text,{numberOfLines:1,style:Gn.title},n.name)))}));function Qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yn(e){for(var t=1;t=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=r}catch(e){"object"===("undefined"==typeof globalThis?"undefined":t(globalThis))?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/webpack/buildin/global.js":function(e,t,n){e.exports=n("dll-reference hippyReactBase")("./node_modules/webpack/buildin/global.js")},"./node_modules/webpack/buildin/module.js":function(e,t,n){e.exports=n("dll-reference hippyReactBase")("./node_modules/webpack/buildin/module.js")},"./src/app.jsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return nr}));var r={};n.r(r),n.d(r,"Focusable",(function(){return te})),n.d(r,"Image",(function(){return le})),n.d(r,"ListView",(function(){return be})),n.d(r,"Modal",(function(){return Te})),n.d(r,"RefreshWrapper",(function(){return Qe})),n.d(r,"PullHeaderFooter",(function(){return Je})),n.d(r,"ScrollView",(function(){return $e})),n.d(r,"Text",(function(){return at})),n.d(r,"TextInput",(function(){return ct})),n.d(r,"View",(function(){return dt})),n.d(r,"ViewPager",(function(){return St})),n.d(r,"WebView",(function(){return Tt})),n.d(r,"BoxShadow",(function(){return kt})),n.d(r,"WaterfallView",(function(){return Ot})),n.d(r,"RippleViewAndroid",(function(){return zt}));var o={};n.r(o),n.d(o,"Animation",(function(){return Gt})),n.d(o,"AsyncStorage",(function(){return Qt})),n.d(o,"NetInfo",(function(){return Zt})),n.d(o,"WebSocket",(function(){return nn})),n.d(o,"UIManagerModule",(function(){return cn}));var a={};n.r(a),n.d(a,"Slider",(function(){return pn})),n.d(a,"TabHost",(function(){return bn})),n.d(a,"SetNativeProps",(function(){return Sn})),n.d(a,"DynamicImport",(function(){return Cn})),n.d(a,"Localization",(function(){return Rn})),n.d(a,"Turbo",(function(){return Pn})),n.d(a,"NestedScroll",(function(){return Ln}));var i=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),l=n.n(i),c=n("./node_modules/@babel/runtime/helpers/createClass.js"),s=n.n(c),u=n("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),d=n.n(u),f=n("./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),h=n.n(f),m=n("./node_modules/@babel/runtime/helpers/inherits.js"),p=n.n(m),y=n("./node_modules/react/index.js"),g=n.n(y),b=n("../../packages/hippy-react/dist/index.js"),w=n("./node_modules/@babel/runtime/helpers/toConsumableArray.js"),x=n.n(w),v=n("./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");n("./node_modules/@babel/runtime/helpers/typeof.js");function S(){return(S=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0;u--){var d=o[u];"."===d?T(o,u):".."===d?(T(o,u),s++):s&&(T(o,u),s--)}if(!l)for(;s--;s)o.unshift("..");!l||""===o[0]||o[0]&&E(o[0])||o.unshift("");var f=o.join("/");return n&&"/"!==f.substr(-1)&&(f+="/"),f};var A="Invariant failed";function k(e,t){if(!e)throw new Error(A)}function R(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function V(e,t,n,r){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=S({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=C(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function I(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof r?r(a,o):o(!0):o(!1!==a)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,r):n.push(r),u({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=V(e,t,d(),y.location);s.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(y.entries[y.index]=r,u({action:"REPLACE",location:r}))}))},go:p,goBack:function(){p(-1)},goForward:function(){p(1)},canGo:function(e){var t=y.index+e;return t>=0&&t=0)continue;n[r]=e[r]}return n}var B=n("./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"),M=n.n(B),F=function(e){var t=Object(P.a)();return t.displayName=e,t}("Router"),z=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(v.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return g.a.createElement(F.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(g.a.Component);var H=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;ot?t:e;return Math.floor(n)},uniqueArray:function(e){for(var t=[],n=0;n=812&&b.PixelRatio.get()>=2&&(e=!0),e}},Pe=(je.getScreenWidth()-24-12)/3,De=Math.floor(Pe/1.35),_e=b.StyleSheet.create({imageContainer:{flexDirection:"row",justifyContent:"center",height:De,marginTop:8},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},image:{width:Pe,height:De},title:{fontSize:"android"===b.Platform.OS?17:18,lineHeight:24,color:"#242424"},tagLine:{marginTop:8,height:20,flexDirection:"row",justifyContent:"flex-start"}});function Le(e){var t=e.itemBean,n=t.title,r=t.picList,o=e.itemBean.subInfo,a=null;if(o&&o.length){var i=(o=je.uniqueArray(o)).join(" ");a=g.a.createElement(b.Text,{style:_e.normalText,numberOfLines:1},i)}return g.a.createElement(b.View,Oe()({},e,{style:{collapsable:!1}}),g.a.createElement(b.Text,{style:[_e.title],numberOfLines:2,enableScale:!0},n),g.a.createElement(b.View,{style:_e.imageContainer},g.a.createElement(b.Image,{style:_e.image,source:{uri:r[0]},resizeMode:b.Image.resizeMode.cover}),g.a.createElement(b.Image,{style:[_e.image,{marginLeft:6,marginRight:6}],source:{uri:r[1]},resizeMode:b.Image.resizeMode.cover}),g.a.createElement(b.Image,{style:_e.image,source:{uri:r[2]},resizeMode:b.Image.resizeMode.cover})),a?g.a.createElement(b.View,{style:_e.tagLine},a):null)}var Be=je.getScreenWidth()-24,Me=Math.floor(Be-12)/3,Fe=Math.floor(Me/1.35),ze=b.StyleSheet.create({container:{flexDirection:"row",justifyContent:"space-between",height:Fe},leftContainer:{flex:1,flexDirection:"column",justifyContent:"center",marginRight:8},imageContainer:{width:Me,height:Fe},image:{width:Me,height:Fe},title:{fontSize:"android"===b.Platform.OS?17:18,lineHeight:24},tagLine:{marginTop:8,height:20,flexDirection:"row",justifyContent:"flex-start"},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}});function He(e){if("undefined"===e)return null;var t=e.itemBean;if(!t)return null;var n=null,r=t.title,o=t.picUrl,a=t.subInfo;if(a&&a.length){var i=(a=je.uniqueArray(a)).join(" ");n=g.a.createElement(b.Text,{style:ze.normalText,numberOfLines:1},i)}return g.a.createElement(b.View,Oe()({},e,{style:ze.container}),g.a.createElement(b.View,{style:ze.leftContainer},g.a.createElement(b.Text,{style:ze.title,numberOfLines:2,enableScale:!0},r),n?g.a.createElement(b.View,{style:ze.tagLine},n):null),g.a.createElement(b.View,{style:ze.imageContainer},g.a.createElement(b.Image,{resizeMode:b.Image.resizeMode.cover,style:ze.image,source:{uri:o}})))}var We=je.getScreenWidth()-24,Ne=Math.floor(188*We/336),Ue=b.StyleSheet.create({text:{fontSize:"android"===b.Platform.OS?17:18,lineHeight:24,color:"#242424"},playerView:{marginTop:8,alignItems:"center",width:We,height:Ne,alignSelf:"center"},image:{width:We,height:Ne},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},tagLine:{marginTop:8,flexDirection:"row",justifyContent:"space-between",alignItems:"center"}});function Ge(e){if("undefined"===e)return null;var t=e.itemBean;if(!t)return null;var n=t.title,r=t.picUrl,o=t.subInfo,a=null;if(o&&o.length){var i=(o=je.uniqueArray(o)).join(" ");a=g.a.createElement(b.Text,{style:Ue.normalText,numberOfLines:1},i)}return g.a.createElement(b.View,e,g.a.createElement(b.Text,{style:Ue.text,numberOfLines:2,enableScale:!0},n),g.a.createElement(b.View,{style:Ue.playerView},g.a.createElement(b.Image,{style:Ue.image,source:{uri:r},resizeMode:b.Image.resizeMode.cover})),a?g.a.createElement(b.View,{style:Ue.tagLine},a):null)}function Ke(e,t,n){return t=h()(t),d()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],h()(e).constructor):t.apply(e,n))}var qe=b.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},spliter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}}),Qe=function(e){function t(e){var n;return l()(this,t),(n=Ke(this,t,[e])).state={dataSource:[],loadingState:"正在加载..."},n.fetchTimes=0,n.mockFetchData=n.mockFetchData.bind(n),n.onRefresh=n.onRefresh.bind(n),n.getRefresh=n.getRefresh.bind(n),n.getRenderRow=n.getRenderRow.bind(n),n.onEndReached=n.onEndReached.bind(n),n.getRowType=n.getRowType.bind(n),n.getRowKey=n.getRowKey.bind(n),n}return p()(t,e),s()(t,[{key:"componentDidMount",value:(r=se()(de.a.mark((function e(){var t;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mockFetchData();case 2:t=e.sent,this.setState({dataSource:t});case 4:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"onEndReached",value:(n=se()(de.a.mark((function e(){var t,n,r,o,a;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.state,n=t.dataSource,!t.fetchingDataFlag){e.next=3;break}return e.abrupt("return");case 3:return this.setState({fetchingDataFlag:!0,dataSource:n.concat([{style:100}])}),e.next=6,this.mockFetchData();case 6:r=e.sent,(o=n[n.length-1])&&100===o.style&&n.pop(),a=n.concat(r),this.setState({dataSource:a});case 11:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"onRefresh",value:function(){var e=this;setTimeout(se()(de.a.mark((function t(){var n;return de.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.mockFetchData();case 2:n=t.sent,e.setState({dataSource:n}),e.refresh.refreshComplected();case 5:case"end":return t.stop()}}),t)}))),1e3)}},{key:"onClickItem",value:function(e){console.log("item: ".concat(e," is clicked.."))}},{key:"getRenderRow",value:function(e){var t=this,n=this.state,r=n.dataSource,o=n.loadingState,a=null,i=r[e],l=r.length===e+1;switch(i.style){case 1:a=g.a.createElement(Le,{itemBean:i.itemBean,onClick:function(){return t.onClickItem(e)}});break;case 2:a=g.a.createElement(He,{itemBean:i.itemBean,onClick:function(){return t.onClickItem(e)}});break;case 5:a=g.a.createElement(Ge,{itemBean:i.itemBean,onClick:function(){return t.onClickItem(e)}});break;case 100:a=g.a.createElement(b.Text,{style:qe.loading},o)}return g.a.createElement(b.View,{style:qe.container},g.a.createElement(b.View,{style:qe.itemContainer},a),l?null:g.a.createElement(b.View,{style:qe.spliter}))}},{key:"getRowType",value:function(e){return this.state.dataSource[e].style}},{key:"getRowKey",value:function(e){return"row-".concat(e)}},{key:"getRefresh",value:function(){return g.a.createElement(b.View,{style:{flex:1,height:30}},g.a.createElement(b.Text,{style:{flex:1,textAlign:"center"}},"下拉刷新中..."))}},{key:"mockFetchData",value:function(){var e=this;return new Promise((function(t){setTimeout((function(){return e.setState({fetchingDataFlag:!1}),e.fetchTimes+=1,e.fetchTimes>=50?t([]):t(Ve)}),600)}))}},{key:"render",value:function(){var e=this,t=this.state.dataSource;return g.a.createElement(b.RefreshWrapper,{ref:function(t){e.refresh=t},style:{flex:1},onRefresh:this.onRefresh,bounceTime:100,getRefresh:this.getRefresh},g.a.createElement(b.ListView,{style:{flex:1,backgroundColor:"#ffffff"},numberOfRows:t.length,renderRow:this.getRenderRow,onEndReached:this.onEndReached,getRowType:this.getRowType,getRowKey:this.getRowKey}))}}]);var n,r}(g.a.Component);function Ye(e,t,n){return t=h()(t),d()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],h()(e).constructor):t.apply(e,n))}var Xe=b.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},splitter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},pullContainer:{flex:1,height:50,backgroundColor:"#4c9afa"},pullContent:{lineHeight:50,color:"white",height:50,textAlign:"center"},pullFooter:{height:40,flex:1,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}}),Je=function(e){function t(e){var n;return l()(this,t),(n=Ye(this,t,[e])).state={dataSource:[],headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",horizontal:void 0},n.loadMoreDataFlag=!1,n.fetchingDataFlag=!1,n.mockFetchData=n.mockFetchData.bind(n),n.renderRow=n.renderRow.bind(n),n.getRowType=n.getRowType.bind(n),n.getRowKey=n.getRowKey.bind(n),n.getHeaderStyle=n.getHeaderStyle.bind(n),n.getFooterStyle=n.getFooterStyle.bind(n),n.getRowStyle=n.getRowStyle.bind(n),n.renderPullHeader=n.renderPullHeader.bind(n),n.renderPullFooter=n.renderPullFooter.bind(n),n.onEndReached=n.onEndReached.bind(n),n.onHeaderReleased=n.onHeaderReleased.bind(n),n.onHeaderPulling=n.onHeaderPulling.bind(n),n.onFooterPulling=n.onFooterPulling.bind(n),n}return p()(t,e),s()(t,[{key:"componentDidMount",value:(o=se()(de.a.mark((function e(){var t;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mockFetchData();case 2:t=e.sent,this.setState({dataSource:t}),this.listView.collapsePullHeader();case 5:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"mockFetchData",value:function(){return new Promise((function(e){setTimeout((function(){return e(Ve)}),800)}))}},{key:"onEndReached",value:(r=se()(de.a.mark((function e(){var t,n,r;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.state.dataSource,!this.loadMoreDataFlag){e.next=3;break}return e.abrupt("return");case 3:return this.loadMoreDataFlag=!0,this.setState({footerRefreshText:"加载更多..."}),n=[],e.prev=6,e.next=9,this.mockFetchData();case 9:n=e.sent,e.next=14;break;case 12:e.prev=12,e.t0=e.catch(6);case 14:0===n.length&&this.setState({footerRefreshText:"没有更多数据"}),r=[].concat(x()(t),x()(n)),this.setState({dataSource:r}),this.loadMoreDataFlag=!1,this.listView.collapsePullFooter();case 19:case"end":return e.stop()}}),e,this,[[6,12]])}))),function(){return r.apply(this,arguments)})},{key:"onHeaderReleased",value:(n=se()(de.a.mark((function e(){var t,n=this;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.fetchingDataFlag){e.next=2;break}return e.abrupt("return");case 2:return this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.setState({headerRefreshText:"刷新数据中,请稍等"}),t=[],e.prev=6,e.next=9,this.mockFetchData();case 9:t=(t=e.sent).reverse(),e.next=15;break;case 13:e.prev=13,e.t0=e.catch(6);case 15:this.fetchingDataFlag=!1,this.setState({dataSource:t,headerRefreshText:"2秒后收起"},(function(){n.listView.collapsePullHeader({time:2e3})}));case 17:case"end":return e.stop()}}),e,this,[[6,13]])}))),function(){return n.apply(this,arguments)})},{key:"onHeaderPulling",value:function(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>Xe.pullContent.height?this.setState({headerRefreshText:"松手,即可触发刷新"}):this.setState({headerRefreshText:"继续下拉,触发刷新"}))}},{key:"onFooterPulling",value:function(e){console.log("onFooterPulling",e)}},{key:"onClickItem",value:function(e,t){console.log("item: ".concat(e," is clicked.."),t.target.nodeId,t.currentTarget.nodeId)}},{key:"getRowType",value:function(e){return this.state.dataSource[e].style}},{key:"getRowKey",value:function(e){return"row-".concat(e)}},{key:"getHeaderStyle",value:function(){return this.state.horizontal?{width:50}:{}}},{key:"renderPullHeader",value:function(){var e=this.state,t=e.headerRefreshText;return e.horizontal?g.a.createElement(b.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},g.a.createElement(b.Text,{style:{lineHeight:25,color:"white",width:40,paddingHorizontal:15}},t)):g.a.createElement(b.View,{style:Xe.pullContainer},g.a.createElement(b.Text,{style:Xe.pullContent},t))}},{key:"getFooterStyle",value:function(){return this.state.horizontal?{width:40}:{}}},{key:"renderPullFooter",value:function(){return this.state.horizontal?g.a.createElement(b.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},g.a.createElement(b.Text,{style:{color:"white",lineHeight:25,width:40,paddingHorizontal:15}},this.state.footerRefreshText)):g.a.createElement(b.View,{style:Xe.pullFooter},g.a.createElement(b.Text,{style:{color:"white"}},this.state.footerRefreshText))}},{key:"renderRow",value:function(e){var t=this,n=this.state.dataSource,r=null,o=n[e],a=n.length===e+1;switch(o.style){case 1:r=g.a.createElement(Le,{itemBean:o.itemBean,onClick:function(n){return t.onClickItem(e,n)}});break;case 2:r=g.a.createElement(He,{itemBean:o.itemBean,onClick:function(n){return t.onClickItem(e,n)}});break;case 5:r=g.a.createElement(Ge,{itemBean:o.itemBean,onClick:function(n){return t.onClickItem(e,n)}})}return g.a.createElement(b.View,{style:Xe.container},g.a.createElement(b.View,{style:Xe.itemContainer},r),a?null:g.a.createElement(b.View,{style:Xe.splitter}))}},{key:"getRowStyle",value:function(){return this.state.horizontal?{height:300,justifyContent:"center",alignItems:"center"}:{}}},{key:"changeDirection",value:function(){this.setState({horizontal:void 0===this.state.horizontal||void 0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.dataSource,r=t.horizontal;return g.a.createElement(b.View,{style:{flex:1,collapsable:!1}},g.a.createElement(b.ListView,{horizontal:r,onClick:function(e){return console.log("ListView",e.target.nodeId,e.currentTarget.nodeId)},ref:function(t){e.listView=t},style:[{backgroundColor:"#ffffff"},r?{height:300}:{flex:1}],numberOfRows:n.length,getRowType:this.getRowType,getRowKey:this.getRowKey,getHeaderStyle:this.getHeaderStyle,getFooterStyle:this.getFooterStyle,getRowStyle:this.getRowStyle,renderRow:this.renderRow,renderPullHeader:this.renderPullHeader,renderPullFooter:this.renderPullFooter,onHeaderReleased:this.onHeaderReleased,onHeaderPulling:this.onHeaderPulling,onFooterReleased:this.onEndReached,onFooterPulling:this.onFooterPulling,rowShouldSticky:function(e){return 0===e}}),"android"===b.Platform.OS?g.a.createElement(b.View,{onClick:function(){return e.changeDirection()},style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#4c9afa"}},g.a.createElement(b.View,{style:{width:60,height:60,borderRadius:30,backgroundColor:"#4c9afa",display:"flex",justifyContent:"center",alignItems:"center"}},g.a.createElement(b.Text,{style:{color:"white"}},"切换方向"))):null)}}]);var n,r,o}(g.a.Component),Ze=b.StyleSheet.create({itemStyle:{width:100,height:100,lineHeight:100,borderWidth:1,borderStyle:"solid",borderColor:"#4c9afa",fontSize:80,margin:20,color:"#4c9afa",textAlign:"center"},verticalScrollView:{height:300,width:140,margin:20,borderColor:"#eee",borderWidth:1,borderStyle:"solid"},itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10}});function $e(){return g.a.createElement(b.ScrollView,null,g.a.createElement(b.View,{style:Ze.itemTitle},g.a.createElement(b.Text,null,"Horizontal ScrollView")),g.a.createElement(b.View,null,g.a.createElement(b.ScrollView,{horizontal:!0,bounces:!0,showsHorizontalScrollIndicator:!1,showScrollIndicator:!1,onScroll:function(e){return console.log("onScroll",e)},onMomentumScrollBegin:function(e){return console.log("onMomentumScrollBegin",e)},onMomentumScrollEnd:function(e){return console.log("onMomentumScrollEnd",e)},onScrollBeginDrag:function(e){return console.log("onScrollBeginDrag",e)},onScrollEndDrag:function(e){return console.log("onScrollEndDrag",e)}},g.a.createElement(b.Text,{style:Ze.itemStyle},"A"),g.a.createElement(b.Text,{style:Ze.itemStyle},"B"),g.a.createElement(b.Text,{style:Ze.itemStyle},"C"),g.a.createElement(b.Text,{style:Ze.itemStyle},"D"),g.a.createElement(b.Text,{style:Ze.itemStyle},"E"),g.a.createElement(b.Text,{style:Ze.itemStyle},"F"),g.a.createElement(b.Text,{style:Ze.itemStyle},"A"))),g.a.createElement(b.View,{style:Ze.itemTitle},g.a.createElement(b.Text,null,"Vertical ScrollView")),g.a.createElement(b.ScrollView,{bounces:!0,horizontal:!1,style:Ze.verticalScrollView,showScrollIndicator:!1,showsVerticalScrollIndicator:!1},g.a.createElement(b.Text,{style:Ze.itemStyle},"A"),g.a.createElement(b.Text,{style:Ze.itemStyle},"B"),g.a.createElement(b.Text,{style:Ze.itemStyle},"C"),g.a.createElement(b.Text,{style:Ze.itemStyle},"D"),g.a.createElement(b.Text,{style:Ze.itemStyle},"E"),g.a.createElement(b.Text,{style:Ze.itemStyle},"F"),g.a.createElement(b.Text,{style:Ze.itemStyle},"A")))}function et(e,t,n){return t=h()(t),d()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],h()(e).constructor):t.apply(e,n))}var tt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEXRSTlMA9QlZEMPc2Mmmj2VkLEJ4Rsx+pEgAAAChSURBVCjPjVLtEsMgCDOAdbbaNu//sttVPes+zvGD8wgQCLp/TORbUGMAQtQ3UBeSAMlF7/GV9Cmb5eTJ9R7H1t4bOqLE3rN2UCvvwpLfarhILfDjJL6WRKaXfzxc84nxAgLzCGSGiwKwsZUB8hPorZwUV1s1cnGKw+yAOrnI+7hatNIybl9Q3OkBfzopCw6SmDVJJiJ+yD451OS0/TNM7QnuAAbvCG0TSAAAAABJRU5ErkJggg==",nt="https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",rt=b.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},itemContent:{alignItems:"flex-start",justifyContent:"center",borderWidth:1,borderStyle:"solid",borderRadius:2,borderColor:"#e0e0e0",backgroundColor:"#ffffff",padding:10},normalText:{fontSize:14,lineHeight:18,color:"black",fontWeight:"normal"},buttonBar:{flexDirection:"row",marginTop:10,flexGrow:1},button:{height:24,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",flexGrow:1,flexShrink:1,justifyContent:"center"},buttonText:{lineHeight:24,textAlign:"center",paddingHorizontal:20},customFont:{color:"#0052d9",fontSize:32,fontFamily:"TTTGB"}}),ot=0,at=function(e){function t(e){var n;return l()(this,t),(n=et(this,t,[e])).state={fontSize:16,fontWeight:"400",textShadowColor:"grey",textShadowOffset:{x:1,y:1},scrollColor:"gray",numberOfLines:2,ellipsizeMode:void 0},n.incrementFontSize=n.incrementFontSize.bind(n),n.decrementFontSize=n.decrementFontSize.bind(n),n.incrementFontWeight=n.incrementFontWeight.bind(n),n.decrementFontWeight=n.decrementFontWeight.bind(n),n.incrementLine=n.incrementLine.bind(n),n.decrementLine=n.decrementLine.bind(n),n.changeMode=n.changeMode.bind(n),n.changeColor=n.changeColor.bind(n),n}return p()(t,e),s()(t,[{key:"incrementFontWeight",value:function(){var e=this.state.fontWeight;if("1000"!=e){var t=parseInt(e,10);t+=100,this.setState({fontWeight:t.toString()})}}},{key:"decrementFontWeight",value:function(){var e=this.state.fontWeight;if("100"!==e){var t=parseInt(e,10);t-=100,this.setState({fontWeight:t.toString()})}}},{key:"incrementFontSize",value:function(){var e=this.state.fontSize;24!==e&&this.setState({fontSize:e+1})}},{key:"decrementFontSize",value:function(){var e=this.state.fontSize;6!==e&&this.setState({fontSize:e-1})}},{key:"incrementLine",value:function(){var e=this.state.numberOfLines;e<6&&this.setState({numberOfLines:e+1})}},{key:"decrementLine",value:function(){var e=this.state.numberOfLines;e>1&&this.setState({numberOfLines:e-1})}},{key:"changeMode",value:function(e){this.setState({ellipsizeMode:e})}},{key:"changeColor",value:function(){this.setState({scrollColor:"red"})}},{key:"changeBreakStrategy",value:function(e){this.setState({breakStrategy:e})}},{key:"render",value:function(){var e=this,t=this.state,n=t.fontSize,r=t.fontWeight,o=t.textShadowColor,a=t.textShadowOffset,i=t.numberOfLines,l=t.ellipsizeMode,c=t.breakStrategy,s=t.scrollColor,u=function(e){return g.a.createElement(b.View,{style:rt.itemTitle},g.a.createElement(b.Text,{style:!0},e))};return g.a.createElement(b.ScrollView,{style:{padding:10,color:s,fontFamily:"TTTGB"}},u("shadow"),g.a.createElement(b.View,{style:[rt.itemContent,{height:60}],onClick:function(){var t="red",n={x:10,y:1};ot%2==1&&(t="grey",n={x:1,y:1}),ot+=1,e.setState({textShadowColor:t,textShadowOffset:n})}},g.a.createElement(b.Text,{style:[rt.normalText,{color:"#242424",textShadowOffset:a,textShadowRadius:3,textShadowColor:o}]},"Text shadow is grey with radius 3 and offset 1")),u("color"),g.a.createElement(b.View,{style:[rt.itemContent,{height:80}]},g.a.createElement(b.Text,{style:[rt.normalText,{color:"#242424"}]},"Text color is black"),g.a.createElement(b.Text,{style:[rt.normalText,{color:"blue"}]},"Text color is blue"),g.a.createElement(b.Text,{style:[rt.normalText,{color:"rgb(228,61,36)"}]},"This is red")),u("fontSize"),g.a.createElement(b.View,{style:[rt.itemContent,{height:125,color:"blue",fontFamily:"not-support-fontstyle"}]},g.a.createElement(b.Text,{style:[rt.normalText,{fontSize:n}]},"Text fontSize is ".concat(n)),g.a.createElement(b.View,{style:rt.button,onClick:this.changeColor},g.a.createElement(b.Text,{style:rt.buttonText},"切换字体颜色")),g.a.createElement(b.View,{style:rt.button,onClick:this.incrementFontSize},g.a.createElement(b.Text,{style:rt.buttonText},"放大字体")),g.a.createElement(b.View,{style:rt.button,onClick:this.decrementFontSize},g.a.createElement(b.Text,{style:rt.buttonText},"缩小字体"))),u("fontWeight"),g.a.createElement(b.View,{style:[rt.itemContent,{height:125,color:"blue",fontFamily:"not-support-fontstyle"}]},g.a.createElement(b.Text,{style:[rt.normalText,{fontWeight:r}]},"Text fontWeight is ".concat(r)),g.a.createElement(b.View,{style:rt.button,onClick:this.incrementFontWeight},g.a.createElement(b.Text,{style:rt.buttonText},"加粗字体")),g.a.createElement(b.View,{style:rt.button,onClick:this.decrementFontWeight},g.a.createElement(b.Text,{style:rt.buttonText},"减细字体"))),u("fontStyle"),g.a.createElement(b.View,{style:[rt.itemContent,{height:100}]},g.a.createElement(b.Text,{style:[rt.normalText,{fontStyle:"normal"}]},"Text fontStyle is normal"),g.a.createElement(b.Text,{style:[rt.normalText,{fontStyle:"italic"}]},"Text fontStyle is italic")),u("numberOfLines and ellipsizeMode"),g.a.createElement(b.View,{style:[rt.itemContent]},g.a.createElement(b.Text,{style:[rt.normalText,{marginBottom:10}]},"numberOfLines=".concat(i," | ellipsizeMode=").concat(l)),g.a.createElement(b.Text,{numberOfLines:i,ellipsizeMode:l,style:[rt.normalText,{lineHeight:void 0,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},g.a.createElement(b.Text,{style:{fontSize:19,color:"white"}},"先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。"),g.a.createElement(b.Text,null,"然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")),g.a.createElement(b.Text,{numberOfLines:i,ellipsizeMode:l,style:[rt.normalText,{backgroundColor:"#4c9afa",marginBottom:10,color:"white",paddingHorizontal:10,paddingVertical:5}]},"line 1\n\nline 3\n\nline 5"),g.a.createElement(b.Text,{numberOfLines:i,ellipsizeMode:l,style:[rt.normalText,{lineHeight:void 0,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5,verticalAlign:"middle"}]},g.a.createElement(b.Image,{style:{width:24,height:24},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:24,height:24},source:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEnRSTlMA/QpX7WQU2m27pi3Ej9KEQXaD5HhjAAAAqklEQVQoz41SWxLDIAh0RcFXTHL/yzZSO01LMpP9WJEVUNA9gfdXTioCSKE/kQQTQmf/ArRYva+xAcuPP37seFII2L7FN4BmXdHzlEPIpDHiZ0A7eIViPcw2QwqipkvMSdNEFBUE1bmMNOyE7FyFaIkAP4jHhhG80lvgkzBODTKpwhRMcexuR7fXzcp08UDq6GRbootp4oRtO3NNpd4NKtnR9hB6oaefweIFQU0EfnGDRoQAAAAASUVORK5CYII="}}),g.a.createElement(b.Text,null,"Text + Attachment")),g.a.createElement(b.View,{style:rt.buttonBar},g.a.createElement(b.View,{style:rt.button,onClick:this.incrementLine},g.a.createElement(b.Text,{style:rt.buttonText},"加一行")),g.a.createElement(b.View,{style:rt.button,onClick:this.decrementLine},g.a.createElement(b.Text,{style:rt.buttonText},"减一行"))),g.a.createElement(b.View,{style:rt.buttonBar},g.a.createElement(b.View,{style:rt.button,onClick:function(){return e.changeMode("clip")}},g.a.createElement(b.Text,{style:rt.buttonText},"clip")),g.a.createElement(b.View,{style:rt.button,onClick:function(){return e.changeMode("head")}},g.a.createElement(b.Text,{style:rt.buttonText},"head")),g.a.createElement(b.View,{style:rt.button,onClick:function(){return e.changeMode("middle")}},g.a.createElement(b.Text,{style:rt.buttonText},"middle")),g.a.createElement(b.View,{style:rt.button,onClick:function(){return e.changeMode("tail")}},g.a.createElement(b.Text,{style:rt.buttonText},"tail")))),u("textDecoration"),g.a.createElement(b.View,{style:[rt.itemContent,{height:100}]},g.a.createElement(b.Text,{numberOfLines:1,style:[rt.normalText,{textDecorationLine:"underline",textDecorationStyle:"dotted"}]},"underline"),g.a.createElement(b.Text,{numberOfLines:1,style:[rt.normalText,{textDecorationLine:"line-through",textDecorationColor:"red"}]},"line-through")),u("LetterSpacing"),g.a.createElement(b.View,{style:[rt.itemContent,{height:100}]},g.a.createElement(b.Text,{numberOfLines:1,style:[rt.normalText,{letterSpacing:-1}]},"Text width letter-spacing -1"),g.a.createElement(b.Text,{numberOfLines:1,style:[rt.normalText,{letterSpacing:5}]},"Text width letter-spacing 5")),u("Nest Text"),g.a.createElement(b.View,{style:[rt.itemContent,{height:100}]},g.a.createElement(b.Text,{numberOfLines:3},g.a.createElement(b.Text,{numberOfLines:3,style:[rt.normalText,{color:"#4c9afa"}]},"#SpiderMan#"),g.a.createElement(b.Text,{numberOfLines:3,style:rt.normalText},"Hello world, I am a spider man and I have five friends in other universe."))),u("Custom font"),g.a.createElement(b.View,{style:[rt.itemContent,{height:100}]},g.a.createElement(b.Text,{numberOfLines:1,style:rt.customFont},"Hippy 跨端框架")),g.a.createElement(b.View,{style:[rt.itemContent,{height:100}]},g.a.createElement(b.Text,{numberOfLines:1,style:[rt.customFont,{fontWeight:"bold"}]},"Hippy 跨端框架 粗体")),g.a.createElement(b.View,{style:[rt.itemContent,{height:100}]},g.a.createElement(b.Text,{numberOfLines:1,style:[rt.customFont,{fontStyle:"italic"}]},"Hippy 跨端框架 斜体")),g.a.createElement(b.View,{style:[rt.itemContent,{height:100}]},g.a.createElement(b.Text,{numberOfLines:1,style:[rt.customFont,{fontWeight:"bold",fontStyle:"italic"}]},"Hippy 跨端框架 粗斜体")),u("Text Nested"),g.a.createElement(b.View,{style:[rt.itemContent,{height:150}]},g.a.createElement(b.Text,{style:{height:100,lineHeight:50}},g.a.createElement(b.Text,{numberOfLines:1,style:rt.normalText},"后面有张图片"),g.a.createElement(b.Image,{style:{width:70,height:35},source:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAAtCAMAAABmgJ64AAAAOVBMVEX/Rx8AAAD/QiL/Tif/QyH/RR//QiH/QiP/RCD/QSL/Qxz/QyH/QiL/QiD/QyL/QiL/QiH/QyH/QiLwirLUAAAAEnRSTlMZAF4OTC7DrWzjI4iietrRk0EEv/0YAAAB0UlEQVRYw72Y0Y6sIAxAKwUFlFH7/x97izNXF2lN1pU5D800jD2hJAJCdwYZuAUyVbmToKh903IhQHgErAVH+ccV0KI+G2oBPMxJgPA4WAigAT8F0IRDgNAE3ARyfeMFDGSc3YHVFkTBAHKDAgkEyHjacae/GTjxFqAo8NbakXrL9DRy9B+BCQwRcXR9OBKmEuAmAFFgcy0agBnIc1xZsMPOI5loAoUsQFmQjDEL9YbpaeGYBMGRKKAuqFEFL/JXApCw/zFEZk9qgbLGBx0gXLISxT25IUBREEgh1II1fph/IViGnZnCcDDVAgfgVg6gCy6ZaClySbDQpAl04vCGaB4+xGcFRK8CLvW0IBb5bQGqAlNwU4C6oEIVTLTcmoEr0AWcpKsZ/H0NAtkLQffnFjkOqiC/TTWBL9AFCwXQBHgI7rXImMgjCZwFa50s6DRBXyALmIECuMASiWNPFgRTgSJwM+XW8PDCmbwndzdaNL8FMYXPNjASDVChnIvWlBI/MKadPV952HszbmXtRERhhQ0vGFA52SVSSVt7MjHvxfRK8cdTpqovn02dUcltMrwiKf+wQ1FxXKCk9en6e/eDNnP44h2thQEb35O/etNv/q3iHza+KuhqqhZAAAAAAElFTkSuQmCC"}}),g.a.createElement(b.Text,{numberOfLines:1,style:rt.customFont},"前面有张图片")),g.a.createElement(b.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"center",paddingHorizontal:10,paddingVertical:5,backgroundColor:"#4c9afa"}},g.a.createElement(b.Image,{style:{width:24,height:24,alignSelf:"center"},source:{uri:tt}}),g.a.createElement(b.Text,{style:{fontSize:15,alignItems:"center",justifyContent:"center"}},"Image+Text"))),"android"===b.Platform.OS&&u("breakStrategy"),"android"===b.Platform.OS&&g.a.createElement(b.View,{style:rt.itemContent},g.a.createElement(b.Text,{style:[rt.normalText,{borderWidth:1,borderColor:"gray"}],breakStrategy:c},"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales."),g.a.createElement(b.Text,{style:rt.normalText},"breakStrategy: ".concat(c)),g.a.createElement(b.View,{style:rt.buttonBar},g.a.createElement(b.View,{style:rt.button,onClick:function(){return e.changeBreakStrategy("simple")}},g.a.createElement(b.Text,{style:rt.buttonText},"simple")),g.a.createElement(b.View,{style:rt.button,onClick:function(){return e.changeBreakStrategy("high_quality")}},g.a.createElement(b.Text,{style:rt.buttonText},"high_quality")),g.a.createElement(b.View,{style:rt.button,onClick:function(){return e.changeBreakStrategy("balanced")}},g.a.createElement(b.Text,{style:rt.buttonText},"balanced")))),u("verticalAlign"),g.a.createElement(b.View,{style:[rt.itemContent,{height:"android"===b.Platform.OS?160:70}]},g.a.createElement(b.Text,{style:[rt.normalText,{lineHeight:50,backgroundColor:"#4c9afa",paddingHorizontal:10,paddingVertical:5}]},g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"top"},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:18,height:12,verticalAlign:"middle"},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:24,height:12,verticalAlign:"baseline"},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:36,height:24,verticalAlign:"bottom"},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"top"},source:{uri:nt}}),g.a.createElement(b.Image,{style:{width:18,height:12,verticalAlign:"middle"},source:{uri:nt}}),g.a.createElement(b.Image,{style:{width:24,height:12,verticalAlign:"baseline"},source:{uri:nt}}),g.a.createElement(b.Image,{style:{width:36,height:24,verticalAlign:"bottom"},source:{uri:nt}}),g.a.createElement(b.Text,{style:{fontSize:16,verticalAlign:"top"}},"字"),g.a.createElement(b.Text,{style:{fontSize:16,verticalAlign:"middle"}},"字"),g.a.createElement(b.Text,{style:{fontSize:16,verticalAlign:"baseline"}},"字"),g.a.createElement(b.Text,{style:{fontSize:16,verticalAlign:"bottom"}},"字")),"android"===b.Platform.OS&&g.a.createElement(g.a.Fragment,null,g.a.createElement(b.Text,null,"legacy mode:"),g.a.createElement(b.Text,{style:[rt.normalText,{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlignment:0},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:18,height:12,verticalAlignment:1},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:24,height:12,verticalAlignment:2},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:36,height:24,verticalAlignment:3},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:24,height:24,top:-10},source:{uri:nt}}),g.a.createElement(b.Image,{style:{width:18,height:12,top:-5},source:{uri:nt}}),g.a.createElement(b.Image,{style:{width:24,height:12},source:{uri:nt}}),g.a.createElement(b.Image,{style:{width:36,height:24,top:3},source:{uri:nt}}),g.a.createElement(b.Text,{style:{fontSize:16}},"字"),g.a.createElement(b.Text,{style:{fontSize:16}},"字"),g.a.createElement(b.Text,{style:{fontSize:16}},"字"),g.a.createElement(b.Text,{style:{fontSize:16}},"字")))),u("tintColor & backgroundColor"),g.a.createElement(b.View,{style:[rt.itemContent]},g.a.createElement(b.Text,{style:[rt.normalText,{lineHeight:30,backgroundColor:"#4c9afa",paddingHorizontal:10,paddingVertical:5}]},g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"middle",tintColor:"orange"},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"middle",tintColor:"orange",backgroundColor:"#ccc"},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"middle",backgroundColor:"#ccc"},source:{uri:tt}}),g.a.createElement(b.Text,{style:{verticalAlign:"middle",backgroundColor:"#090"}},"text")),"android"===b.Platform.OS&&g.a.createElement(g.a.Fragment,null,g.a.createElement(b.Text,null,"legacy mode:"),g.a.createElement(b.Text,{style:[rt.normalText,{lineHeight:30,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},g.a.createElement(b.Image,{style:{width:24,height:24,tintColor:"orange"},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:24,height:24,tintColor:"orange",backgroundColor:"#ccc"},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:24,height:24,backgroundColor:"#ccc"},source:{uri:tt}})))),u("margin"),g.a.createElement(b.View,{style:[rt.itemContent]},g.a.createElement(b.Text,{style:[{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:5}]},g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"top",backgroundColor:"#ccc",margin:5},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"middle",backgroundColor:"#ccc",margin:5},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"baseline",backgroundColor:"#ccc",margin:5},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlign:"bottom",backgroundColor:"#ccc",margin:5},source:{uri:tt}})),"android"===b.Platform.OS&&g.a.createElement(g.a.Fragment,null,g.a.createElement(b.Text,null,"legacy mode:"),g.a.createElement(b.Text,{style:[rt.normalText,{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlignment:0,backgroundColor:"#ccc",margin:5},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlignment:1,backgroundColor:"#ccc",margin:5},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlignment:2,backgroundColor:"#ccc",margin:5},source:{uri:tt}}),g.a.createElement(b.Image,{style:{width:24,height:24,verticalAlignment:3,backgroundColor:"#ccc",margin:5},source:{uri:tt}})))))}}])}(g.a.Component);function it(e,t,n){return t=h()(t),d()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],h()(e).constructor):t.apply(e,n))}var lt=b.StyleSheet.create({container_style:{padding:10},input_style:{width:300,marginVertical:10,fontSize:16,color:"#242424",height:30,lineHeight:30},input_style_block:{height:100,lineHeight:20,fontSize:15,borderWidth:1,borderColor:"gray",underlineColorAndroid:"transparent"},itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},itemContent:{marginTop:10},buttonBar:{flexDirection:"row",marginTop:10,flexGrow:1},button:{width:200,height:24,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",marginTop:5,marginBottom:5,flexGrow:1,flexShrink:1}}),ct=function(e){function t(e){var n;return l()(this,t),(n=it(this,t,[e])).state={textContent:""},n.changeInputContent=n.changeInputContent.bind(n),n.focus=n.focus.bind(n),n.blur=n.blur.bind(n),n}return p()(t,e),s()(t,[{key:"changeInputContent",value:function(){this.setState({textContent:"当前时间毫秒:".concat(Date.now())})}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"onFocus",value:(r=se()(de.a.mark((function e(){var t;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.input.isFocused();case 2:t=e.sent,this.setState({event:"onFocus",isFocused:t});case 4:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"onBlur",value:(n=se()(de.a.mark((function e(){var t;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.input.isFocused();case 2:t=e.sent,this.setState({event:"onBlur",isFocused:t});case 4:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"changeBreakStrategy",value:function(e){this.setState({breakStrategy:e})}},{key:"render",value:function(){var e=this,t=this.state,n=t.textContent,r=t.event,o=t.isFocused,a=t.breakStrategy,i=function(e){return g.a.createElement(b.View,{style:lt.itemTitle},g.a.createElement(b.Text,null,e))};return g.a.createElement(b.ScrollView,{style:lt.container_style},i("text"),g.a.createElement(b.TextInput,{ref:function(t){e.input=t},style:lt.input_style,caretColor:"yellow",underlineColorAndroid:"grey",placeholderTextColor:"#4c9afa",placeholder:"text",defaultValue:n,onBlur:function(){return e.onBlur()},onFocus:function(){return e.onFocus()}}),g.a.createElement(b.Text,{style:lt.itemContent},"事件: ".concat(r," | isFocused: ").concat(o)),g.a.createElement(b.View,{style:lt.button,onClick:this.changeInputContent},g.a.createElement(b.Text,null,"点击改变输入框内容")),g.a.createElement(b.View,{style:lt.button,onClick:this.focus},g.a.createElement(b.Text,null,"Focus")),g.a.createElement(b.View,{style:lt.button,onClick:this.blur},g.a.createElement(b.Text,null,"Blur")),i("numeric"),g.a.createElement(b.TextInput,{style:lt.input_style,keyboardType:"numeric",placeholder:"numeric"}),i("phone-pad"),g.a.createElement(b.TextInput,{style:lt.input_style,keyboardType:"phone-pad",placeholder:"phone-pad"}),i("password"),g.a.createElement(b.TextInput,{style:lt.input_style,keyboardType:"password",placeholder:"Password",multiline:!1}),i("maxLength"),g.a.createElement(b.TextInput,{caretColor:"yellow",style:lt.input_style,placeholder:"maxLength=5",maxLength:5}),"android"===b.Platform.OS&&i("breakStrategy"),"android"===b.Platform.OS&&g.a.createElement(g.a.Fragment,null,g.a.createElement(b.TextInput,{style:lt.input_style_block,breakStrategy:a,defaultValue:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales."}),g.a.createElement(b.Text,{style:{}},"breakStrategy: ".concat(a)),g.a.createElement(b.View,{style:lt.buttonBar},g.a.createElement(b.View,{style:lt.button,onClick:function(){return e.changeBreakStrategy("simple")}},g.a.createElement(b.Text,{style:lt.buttonText},"simple")),g.a.createElement(b.View,{style:lt.button,onClick:function(){return e.changeBreakStrategy("high_quality")}},g.a.createElement(b.Text,{style:lt.buttonText},"high_quality")),g.a.createElement(b.View,{style:lt.button,onClick:function(){return e.changeBreakStrategy("balanced")}},g.a.createElement(b.Text,{style:lt.buttonText},"balanced")))))}}]);var n,r}(y.Component),st=n.p+"assets/defaultSource.jpg",ut=b.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},rectangle:{width:160,height:80,marginVertical:10},bigRectangle:{width:200,height:100,borderColor:"#eee",borderWidth:1,borderStyle:"solid",padding:10,marginVertical:10},smallRectangle:{width:40,height:40,borderRadius:10}});function dt(){var e=function(e){return g.a.createElement(b.View,{style:ut.itemTitle},g.a.createElement(b.Text,null,e))};return g.a.createElement(b.ScrollView,{style:{paddingHorizontal:10}},e("backgroundColor"),g.a.createElement(b.View,{style:[ut.rectangle,{backgroundColor:"#4c9afa"}]}),e("backgroundImage"),g.a.createElement(b.View,{style:[ut.rectangle,{alignItems:"center",justifyContent:"center",marginTop:20,backgroundImage:st}],accessible:!0,accessibilityLabel:"背景图",accessibilityRole:"image",accessibilityState:{disabled:!1,selected:!0,checked:!1,expanded:!1,busy:!0},accessibilityValue:{min:1,max:10,now:5,text:"middle"}},g.a.createElement(b.Text,{style:{color:"white"}},"背景图")),e("backgroundImage linear-gradient"),g.a.createElement(b.View,{style:[ut.rectangle,{alignItems:"center",justifyContent:"center",marginTop:20,borderWidth:2,borderStyle:"solid",borderColor:"black",borderRadius:2,backgroundImage:"linear-gradient(30deg, blue 10%, yellow 40%, red 50%);"}]},g.a.createElement(b.Text,{style:{color:"white"}},"渐变色")),e("border props"),g.a.createElement(b.View,{style:[ut.rectangle,{borderColor:"#242424",borderRadius:4,borderWidth:1,borderStyle:"solid"}]}),e("flex props"),g.a.createElement(b.View,{style:[ut.bigRectangle,{flexDirection:"row",alignItems:"center",justifyContent:"space-between"}]},g.a.createElement(b.View,{style:[ut.smallRectangle,{backgroundColor:"yellow"}]}),g.a.createElement(b.View,{style:[ut.smallRectangle,{backgroundColor:"blue"}]}),g.a.createElement(b.View,{style:[ut.smallRectangle,{backgroundColor:"green"}]})))}var ft=b.StyleSheet.create({pageContainer:{alignItems:"center",justifyContent:"center",flex:1,paddingTop:20},mainRec:{backgroundColor:"#4c9afaAA",width:256,height:48,marginBottom:10,marginTop:156},title:{verticalAlign:"middle",lineHeight:48,height:48,fontSize:16,color:"white",alignSelf:"center"},shapeBase:{width:128,height:128,backgroundColor:"#4c9afa"},square:{},circle:{borderRadius:64},triangle:{borderStyle:"solid",borderTopWidth:0,borderRightWidth:70,borderBottomWidth:128,borderLeftWidth:70,borderTopColor:"transparent",borderRightColor:"transparent",borderLeftColor:"transparent",borderBottomColor:"#4c9afa",backgroundColor:"transparent",width:140}}),ht="SquarePagerView",mt="TrianglePagerView",pt="CirclePagerView";function yt(e,t){var n=function(t){return g.a.createElement(b.View,{style:ft.pageContainer,key:t},g.a.createElement(b.View,{style:[ft.shapeBase,e],key:"shape"}),g.a.createElement(b.View,{style:ft.mainRec,key:"title"},t?g.a.createElement(b.Text,{style:ft.title},t):null))};return n.displayName=t,n}var gt=yt(ft.square,ht),bt=yt(ft.triangle,mt),wt=yt(ft.circle,pt);function xt(e,t,n){return t=h()(t),d()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],h()(e).constructor):t.apply(e,n))}var vt=b.StyleSheet.create({dotContainer:{position:"absolute",bottom:10,left:0,right:0,flexDirection:"row",alignItems:"center",justifyContent:"center"},dot:{width:6,height:6,borderRadius:3,margin:3,backgroundColor:"#BBBBBB"},selectDot:{backgroundColor:"#000000"},container:{height:500},buttonContainer:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12},button:{width:120,height:36,backgroundColor:"#4c9afa",borderRadius:18,alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,color:"#fff"}}),St=function(e){function t(e){var n;return l()(this,t),n=xt(this,t,[e]),$()(n,"state",{selectedIndex:0}),n.onPageSelected=n.onPageSelected.bind(n),n.onPageScrollStateChanged=n.onPageScrollStateChanged.bind(n),n}return p()(t,e),s()(t,[{key:"onPageSelected",value:function(e){console.log("onPageSelected",e.position),this.setState({selectedIndex:e.position})}},{key:"onPageScrollStateChanged",value:function(e){console.log("onPageScrollStateChanged",e)}},{key:"onPageScroll",value:function(e){var t=e.offset,n=e.position;console.log("onPageScroll",t,n)}},{key:"render",value:function(){var e=this,t=this.state.selectedIndex;return g.a.createElement(b.View,{style:{flex:1,backgroundColor:"#ffffff"}},g.a.createElement(b.View,{style:vt.buttonContainer},g.a.createElement(b.View,{style:vt.button,onClick:function(){e.viewpager.setPage(2)}},g.a.createElement(b.Text,{style:vt.buttonText},"动效滑到第3页")),g.a.createElement(b.View,{style:vt.button,onClick:function(){return e.viewpager.setPageWithoutAnimation(0)}},g.a.createElement(b.Text,{style:vt.buttonText},"直接滑到第1页"))),g.a.createElement(b.ViewPager,{ref:function(t){e.viewpager=t},style:vt.container,initialPage:0,keyboardDismissMode:"none",scrollEnabled:!0,onPageSelected:this.onPageSelected,onPageScrollStateChanged:this.onPageScrollStateChanged,onPageScroll:this.onPageScroll},[gt("squarePager"),bt("TrianglePager"),wt("CirclePager")]),g.a.createElement(b.View,{style:vt.dotContainer},new Array(3).fill(0).map((function(e,n){var r=n===t;return g.a.createElement(b.View,{style:[vt.dot,r?vt.selectDot:null],key:"dot_".concat(n)})}))))}}])}(g.a.Component),Et=b.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},webViewStyle:{padding:10,flex:1,flexGrow:1,borderRadius:10}});function Tt(){return g.a.createElement(b.View,{style:{paddingHorizontal:10,flex:1}},g.a.createElement(b.View,{style:Et.itemTitle},g.a.createElement(b.Text,null,"WebView 示例")),g.a.createElement(b.WebView,{source:{uri:"https://hippyjs.org"},method:"get",userAgent:"Mozilla/5.0 (Linux; U; Android 5.1.1; zh-cn; vivo X7 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko)Version/4.0 Chrome/37.0.0.0 MQQBrowser/8.2 Mobile Safari/537.36",style:Et.webViewStyle,onLoad:function(e){var t=e.url;return console.log("webview onload",t)},onLoadStart:function(e){var t=e.url;return console.log("webview onLoadStart",t)},onLoadEnd:function(e){var t=e.url,n=e.success,r=e.error;return console.log("webview onLoadEnd",t,n,r)}}))}var Ct=b.StyleSheet.create({shadowDemo:{flex:1,overflowY:"scroll"},shadowDemoCubeAndroid:{position:"absolute",left:50,top:50,width:170,height:170,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowColor:"#4c9afa",borderRadius:5},shadowDemoContentAndroid:{position:"absolute",left:5,top:5,width:160,height:160,backgroundColor:"grey",borderRadius:5,display:"flex",justifyContent:"center",alignItems:"center"},shadowDemoCubeIos:{position:"absolute",left:50,top:50,width:160,height:160,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowSpread:1,boxShadowColor:"#4c9afa",borderRadius:5},shadowDemoContentIos:{width:160,height:160,backgroundColor:"grey",borderRadius:5,display:"flex",justifyContent:"center",alignItems:"center"},text:{color:"white"}}),At=b.StyleSheet.create({shadowDemoCubeAndroid:{position:"absolute",left:50,top:300,width:175,height:175,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:15,boxShadowOffsetY:15,boxShadowColor:"#4c9afa"},shadowDemoContentAndroid:{width:160,height:160,backgroundColor:"grey",display:"flex",justifyContent:"center",alignItems:"center"},shadowDemoCubeIos:{position:"absolute",left:50,top:300,width:160,height:160,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:10,boxShadowOffsetY:10,boxShadowSpread:1,boxShadowColor:"#4c9afa"},shadowDemoContentIos:{width:160,height:160,backgroundColor:"grey",display:"flex",justifyContent:"center",alignItems:"center"},text:{color:"white"}});function kt(){return g.a.createElement(b.View,{style:Ct.shadowDemo},"android"===b.Platform.OS?g.a.createElement(b.View,{style:Ct.shadowDemoCubeAndroid},g.a.createElement(b.View,{style:Ct.shadowDemoContentAndroid},g.a.createElement(b.Text,{style:Ct.text},"没有偏移阴影样式"))):g.a.createElement(b.View,{style:Ct.shadowDemoCubeIos},g.a.createElement(b.View,{style:Ct.shadowDemoContentIos},g.a.createElement(b.Text,{style:Ct.text},"没有偏移阴影样式"))),"android"===b.Platform.OS?g.a.createElement(b.View,{style:At.shadowDemoCubeAndroid},g.a.createElement(b.View,{style:At.shadowDemoContentAndroid},g.a.createElement(b.Text,{style:At.text},"偏移阴影样式"))):g.a.createElement(b.View,{style:At.shadowDemoCubeIos},g.a.createElement(b.View,{style:At.shadowDemoContentIos},g.a.createElement(b.Text,{style:At.text},"偏移阴影样式"))))}function Rt(e,t,n){return t=h()(t),d()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],h()(e).constructor):t.apply(e,n))}var Vt=Ve.filter((function(e){return 2!==e.style})),It=b.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},splitter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},pullContainer:{height:50,backgroundColor:"#4c9afa"},pullContent:{lineHeight:50,color:"white",height:50,textAlign:"center"},pullFooter:{flex:1,height:40,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}}),Ot=function(e){function t(e){var n;return l()(this,t),(n=Rt(this,t,[e])).state={dataSource:[],headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",horizontal:void 0},n.numberOfColumns=2,n.columnSpacing=6,n.interItemSpacing=6,n.mockFetchData=n.mockFetchData.bind(n),n.renderItem=n.renderItem.bind(n),n.getItemType=n.getItemType.bind(n),n.getItemKey=n.getItemKey.bind(n),n.onEndReached=n.onEndReached.bind(n),n.onRefresh=n.onRefresh.bind(n),n.getRefresh=n.getRefresh.bind(n),n.renderPullFooter=n.renderPullFooter.bind(n),n.renderPullHeader=n.renderPullHeader.bind(n),n.onHeaderReleased=n.onHeaderReleased.bind(n),n.onHeaderPulling=n.onHeaderPulling.bind(n),n.onFooterPulling=n.onFooterPulling.bind(n),n.renderBanner=n.renderBanner.bind(n),n.renderFooter=n.renderFooter.bind(n),n.getItemStyle=n.getItemStyle.bind(n),n.getHeaderStyle=n.getHeaderStyle.bind(n),n.onScroll=n.onScroll.bind(n),n}return p()(t,e),s()(t,[{key:"componentDidMount",value:(a=se()(de.a.mark((function e(){var t;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mockFetchData();case 2:t=e.sent,this.setState({dataSource:t});case 4:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"onEndReached",value:(o=se()(de.a.mark((function e(){var t,n,r;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.state.dataSource,!this.loadMoreDataFlag){e.next=3;break}return e.abrupt("return");case 3:return this.loadMoreDataFlag=!0,this.setState({footerRefreshText:"加载更多..."}),n=[],e.prev=6,e.next=9,this.mockFetchData();case 9:n=e.sent,e.next=14;break;case 12:e.prev=12,e.t0=e.catch(6);case 14:0===n.length&&this.setState({footerRefreshText:"没有更多数据"}),r=[].concat(x()(t),x()(n)),this.setState({dataSource:r}),this.loadMoreDataFlag=!1,this.listView.collapsePullFooter();case 19:case"end":return e.stop()}}),e,this,[[6,12]])}))),function(){return o.apply(this,arguments)})},{key:"onHeaderReleased",value:(r=se()(de.a.mark((function e(){var t,n=this;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.fetchingDataFlag){e.next=2;break}return e.abrupt("return");case 2:return this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.setState({headerRefreshText:"刷新数据中,请稍等"}),t=[],e.prev=6,e.next=9,this.mockFetchData();case 9:t=e.sent,e.next=14;break;case 12:e.prev=12,e.t0=e.catch(6);case 14:this.fetchingDataFlag=!1,this.setState({dataSource:t,headerRefreshText:"2秒后收起"},(function(){n.listView.collapsePullHeader({time:2e3})}));case 16:case"end":return e.stop()}}),e,this,[[6,12]])}))),function(){return r.apply(this,arguments)})},{key:"onHeaderPulling",value:function(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>It.pullContent.height?this.setState({headerRefreshText:"松手,即可触发刷新"}):this.setState({headerRefreshText:"继续下拉,触发刷新"}))}},{key:"onFooterPulling",value:function(e){console.log("onFooterPulling",e)}},{key:"renderPullFooter",value:function(){return this.state.horizontal?g.a.createElement(b.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},g.a.createElement(b.Text,{style:{color:"white",lineHeight:25,width:40,paddingHorizontal:15}},this.state.footerRefreshText)):g.a.createElement(b.View,{style:It.pullFooter},g.a.createElement(b.Text,{style:{color:"white"}},this.state.footerRefreshText))}},{key:"onRefresh",value:(n=se()(de.a.mark((function e(){var t=this;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:setTimeout(se()(de.a.mark((function e(){var n;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.mockFetchData();case 2:n=e.sent,t.setState({dataSource:n}),t.refresh.refreshComplected();case 5:case"end":return e.stop()}}),e)}))),1e3);case 1:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"getRefresh",value:function(){return g.a.createElement(b.View,{style:{flex:1,height:40,justifyContent:"center",alignItems:"center",backgroundColor:"#4c9afa"}},g.a.createElement(b.Text,{style:{height:40,lineHeight:40,textAlign:"center",color:"white"}},"下拉刷新中..."))}},{key:"onClickItem",value:function(e){console.log("item: ".concat(e," is clicked.."))}},{key:"getItemType",value:function(e){return this.state.dataSource[e].style}},{key:"getItemKey",value:function(e){return"row-".concat(e)}},{key:"onItemClick",value:function(e){console.log("onItemClick",e),this.listView.scrollToIndex({index:e,animation:!0})}},{key:"onScroll",value:function(e){console.log("onScroll",e)}},{key:"renderBanner",value:function(){return 0===this.state.dataSource.length?null:g.a.createElement(b.View,{style:{backgroundColor:"grey",height:100,justifyContent:"center",alignItems:"center"}},g.a.createElement(b.Text,{style:{fontSize:20,color:"white",lineHeight:100,height:100}},"Banner View"))}},{key:"renderFooter",value:function(){return 0===this.state.dataSource.length?null:g.a.createElement(b.View,{style:{backgroundColor:"grey",height:100,justifyContent:"center",alignItems:"center"}},g.a.createElement(b.Text,{style:{fontSize:20,color:"white",lineHeight:100,height:100}},"Footer View"))}},{key:"renderItem",value:function(e){var t=this,n=null,r=this.state.dataSource[e];switch(r.style){case 1:n=g.a.createElement(Le,{itemBean:r.itemBean});break;case 2:n=g.a.createElement(He,{itemBean:r.itemBean});break;case 5:n=g.a.createElement(Ge,{itemBean:r.itemBean})}return g.a.createElement(b.View,{onClick:function(){return t.onItemClick(e)},style:It.container},g.a.createElement(b.View,{style:It.itemContainer},n),g.a.createElement(b.View,{style:It.splitter}))}},{key:"mockFetchData",value:function(){return new Promise((function(e){setTimeout((function(){var t=[].concat(x()(Vt),x()(Vt));return e(t)}),600)}))}},{key:"getWaterfallContentInset",value:function(){return{top:12,left:12,bottom:12,right:12}}},{key:"getItemStyle",value:function(){var e=this.numberOfColumns,t=this.columnSpacing,n=b.Dimensions.get("screen").width-32,r=this.getWaterfallContentInset();return{width:(n-r.left-r.right-(e-1)*t)/e}}},{key:"getHeaderStyle",value:function(){return this.state.horizontal?{width:50}:{}}},{key:"renderPullHeader",value:function(){var e=this.state,t=e.headerRefreshText;return e.horizontal?g.a.createElement(b.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},g.a.createElement(b.Text,{style:{lineHeight:25,color:"white",width:40,paddingHorizontal:15}},t)):g.a.createElement(b.View,{style:It.pullContainer},g.a.createElement(b.Text,{style:It.pullContent},t))}},{key:"render",value:function(){var e=this,t=this.state.dataSource,n=this.numberOfColumns,r=this.columnSpacing,o=this.interItemSpacing,a=this.getWaterfallContentInset();return g.a.createElement(b.WaterfallView,{ref:function(t){e.listView=t},numberOfColumns:n,columnSpacing:r,interItemSpacing:o,numberOfItems:t.length,contentInset:a,preloadItemNumber:12,style:{flex:1},onScroll:this.onScroll,renderBanner:this.renderBanner,renderFooter:this.renderFooter,renderPullHeader:this.renderPullHeader,renderPullFooter:this.renderPullFooter,onEndReached:this.onEndReached,onFooterReleased:this.onEndReached,onHeaderReleased:this.onHeaderReleased,onHeaderPulling:this.onHeaderPulling,renderItem:this.renderItem,getItemType:this.getItemType,getItemKey:this.getItemKey,getItemStyle:this.getItemStyle,getHeaderStyle:this.getHeaderStyle})}}]);var n,r,o,a}(g.a.Component),jt=n.p+"assets/defaultSource.jpg",Pt=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),Dt=n.n(Pt);function _t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lt(e){for(var t=1;t0&&void 0!==o[0]&&o[0],e.prev=1,e.next=4,b.UIManagerModule.getBoundingClientRect(n.current,{relToContainer:t});case 4:r=e.sent,u(r),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.error("getBoxPosition error",e.t0);case 11:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(){return e.apply(this,arguments)}}(),f=on(on({},an.box),a);return g.a.createElement(b.View,{style:an.full},g.a.createElement(b.View,{style:an.demoContent},g.a.createElement(b.View,{ref:n,style:f},g.a.createElement(b.Text,{style:an.text,numberOfLines:2},"I am the box"))),g.a.createElement(b.View,{style:an.buttonContainer},g.a.createElement(b.View,{onClick:function(){var n=ln(0,e-100),r=ln(0,t-450),o=ln(80,120);i({left:n,top:r,width:o,height:o})},style:an.button},g.a.createElement(b.Text,{style:an.buttonText},"Move position")),g.a.createElement(b.View,{onClick:function(){return d(!1)},style:an.button},g.a.createElement(b.Text,{style:an.buttonText},"Measure in App Window")),g.a.createElement(b.View,{onClick:function(){return d(!0)},style:an.button},g.a.createElement(b.Text,{style:an.buttonText},"Measure in Container(RootView)"))),g.a.createElement(b.View,{style:an.row},g.a.createElement(b.View,null,g.a.createElement(b.Text,null,"Box style:"),g.a.createElement(b.Text,{style:an.black},"Width: ".concat(f.width)),g.a.createElement(b.Text,{style:an.black},"Height: ".concat(f.height)),g.a.createElement(b.Text,{style:an.black},"Left: ".concat(f.left)),g.a.createElement(b.Text,{style:an.black},"Top: ".concat(f.top))),g.a.createElement(b.View,null,g.a.createElement(b.Text,null,"getBoundingClientRect output:"),g.a.createElement(b.Text,{style:an.black},"Width: ".concat(s.width)),g.a.createElement(b.Text,{style:an.black},"Height: ".concat(s.height)),g.a.createElement(b.Text,{style:an.black},"X: ".concat(s.x)),g.a.createElement(b.Text,{style:an.black},"Y: ".concat(s.y)))))};function sn(e,t,n){return t=h()(t),d()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],h()(e).constructor):t.apply(e,n))}var un=b.StyleSheet.create({style_indicator_item:{width:4,height:4,marginLeft:2.5,marginRight:2.5,borderRadius:2},style_indicator:{position:"absolute",bottom:6,left:0,right:0,marginLeft:0,marginRight:0,alignItems:"center",justifyContent:"center",flexDirection:"row",pointerEvents:"none"}}),dn=function(e){function t(e){var n;return l()(this,t),(n=sn(this,t,[e])).state={current:e.current||0},n}return p()(t,e),s()(t,[{key:"update",value:function(e){this.state.current!==e&&this.setState({current:e})}},{key:"render",value:function(){for(var e=this.props.count,t=this.state.current,n=[],r=0;r=o||(this.indicator&&this.indicator.update(r),this.currentIndex=r)}}},{key:"onScrollBeginDrag",value:function(){this.touchStartOffset=this.scrollOffset,this.doClearTimer()}},{key:"onScrollEndDrag",value:function(){this.doCreateTimer()}},{key:"onLayout",value:function(e){this.width=e.layout.width}},{key:"doSwitchPage",value:function(e){this.scrollView.scrollTo({x:this.imgWidth*e,y:0,animated:!0})}},{key:"doCreateTimer",value:function(){var e=this;this.doClearTimer(),this.duration<=0||(this.interval=setInterval((function(){e.doSwitchPage((e.currentIndex+1)%e.itemCount)}),this.duration))}},{key:"doClearTimer",value:function(){this.interval&&clearInterval(this.interval),this.interval=null}},{key:"render",value:function(){for(var e=this,t=this.props.images,n=[],r=0;rr-a?60*r-o:60*n-60*a+30,this.navScrollView.scrollTo({x:e,y:0,animated:!0})}}},{key:"pressNavItem",value:function(e){this.setState({curIndex:e}),this.viewPager&&this.viewPager.setPage(e)}},{key:"renderNav",value:function(){var e=this,t=this.state,n=t.navList,r=t.curIndex;return g.a.createElement(b.View,{style:gn.container},g.a.createElement(b.ScrollView,{style:gn.scroll,horizontal:!0,showsHorizontalScrollIndicator:!1,ref:function(t){e.navScrollView=t}},n.map((function(t,n){return g.a.createElement(b.View,{style:gn.navItem,key:"nav_".concat(t),activeOpacity:.5,onClick:function(){return e.pressNavItem(n)}},g.a.createElement(b.Text,{style:[gn.navItemText,r===n?gn.navItemTextBlue:gn.navItemTextNormal],numberOfLines:1},t))}))))}},{key:"render",value:function(){var e=this,n=this.state.navList;return g.a.createElement(b.View,{style:{flex:1,backgroundColor:"#ffffff"}},this.renderNav(),g.a.createElement(b.ViewPager,{ref:function(t){e.viewPager=t},style:{flex:1},initialPage:0,onPageSelected:this.onViewPagerChange},n.map((function(e,n){return t.getPage(e,n)}))))}}],[{key:"getPage",value:function(e,t){switch(t%3){case 0:return gt(e);case 1:return wt(e);case 2:return bt(e);default:return null}}}])}(g.a.Component);function wn(e,t,n){return t=h()(t),d()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],h()(e).constructor):t.apply(e,n))}var xn=b.Dimensions.get("window").width,vn=b.StyleSheet.create({setNativePropsDemo:{display:"flex",alignItems:"center",position:"relative"},nativeDemo1Drag:{height:80,width:xn,backgroundColor:"#4c9afa",position:"relative",marginTop:10},nativeDemo1Point:{height:80,width:80,color:"#4cccfa",backgroundColor:"#4cccfa",position:"absolute",left:0},nativeDemo2Drag:{height:80,width:xn,backgroundColor:"#4c9afa",position:"relative",marginTop:10},nativeDemo2Point:{height:80,width:80,color:"#4cccfa",backgroundColor:"#4cccfa",position:"absolute",left:0},splitter:{marginTop:50}}),Sn=function(e){function t(e){var n;return l()(this,t),(n=wn(this,t,[e])).demon1Point=g.a.createRef(),n.demo1PointDom=null,n.state={demo2Left:0},n.isDemon1Layouted=!1,n.idDemon2Layouted=!1,n.onTouchDown1=n.onTouchDown1.bind(n),n.onDemon1Layout=n.onDemon1Layout.bind(n),n.onTouchMove1=n.onTouchMove1.bind(n),n.onTouchDown2=n.onTouchDown2.bind(n),n.onTouchMove2=n.onTouchMove2.bind(n),n}return p()(t,e),s()(t,[{key:"componentDidMount",value:function(){}},{key:"onDemon1Layout",value:function(){this.isDemon1Layouted||(this.isDemon1Layouted=!0,this.demo1PointDom=b.UIManagerModule.getElementFromFiberRef(this.demon1Point.current))}},{key:"onTouchDown1",value:function(e){var t=e.page_x,n=t-40;console.log("touchdown x",t,n,xn),this.demo1PointDom&&this.demo1PointDom.setNativeProps({style:{left:n}})}},{key:"onTouchMove1",value:function(e){var t=e.page_x,n=t-40;console.log("touchmove x",t,n,xn),this.demo1PointDom&&this.demo1PointDom.setNativeProps({style:{left:n}})}},{key:"onTouchDown2",value:function(e){var t=e.page_x,n=t-40;console.log("touchdown x",t,n,xn),this.setState({demo2Left:n})}},{key:"onTouchMove2",value:function(e){var t=e.page_x,n=t-40;console.log("touchmove x",t,n,xn),this.setState({demo2Left:n})}},{key:"render",value:function(){var e=this.state.demo2Left;return g.a.createElement(b.View,{style:vn.setNativePropsDemo},g.a.createElement(b.Text,null,"setNativeProps实现拖动效果"),g.a.createElement(b.View,{style:vn.nativeDemo1Drag,onTouchDown:this.onTouchDown1,onTouchMove:this.onTouchMove1},g.a.createElement(b.View,{onLayout:this.onDemon1Layout,style:vn.nativeDemo1Point,ref:this.demon1Point})),g.a.createElement(b.View,{style:vn.splitter}),g.a.createElement(b.Text,null,"普通渲染实现拖动效果"),g.a.createElement(b.View,{style:vn.nativeDemo2Drag,onTouchDown:this.onTouchDown2,onTouchMove:this.onTouchMove2},g.a.createElement(b.View,{style:[vn.nativeDemo2Point,{left:e}]})))}}])}(g.a.Component);function En(e,t,n){return t=h()(t),d()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],h()(e).constructor):t.apply(e,n))}var Tn=b.StyleSheet.create({dynamicImportDemo:{marginTop:20,display:"flex",flex:1,alignItems:"center",position:"relative",flexDirection:"column"}}),Cn=function(e){function t(e){var n;return l()(this,t),(n=En(this,t,[e])).state={AsyncComponentFromLocal:null,AsyncComponentFromHttp:null},n.onAsyncComponentLoad=n.onAsyncComponentLoad.bind(n),n}return p()(t,e),s()(t,[{key:"onAsyncComponentLoad",value:function(){var e=this;console.log("load async component"),n.e(1).then(n.bind(null,"./src/externals/DyanmicImport/AsyncComponentLocal.jsx")).then((function(t){e.setState({AsyncComponentFromLocal:t.default||t})})).catch((function(e){return console.error("import async local component error",e)})),n.e(0).then(n.bind(null,"./src/externals/DyanmicImport/AsyncComponentHttp.jsx")).then((function(t){e.setState({AsyncComponentFromHttp:t.default||t})})).catch((function(e){return console.error("import async remote component error",e)}))}},{key:"render",value:function(){var e=this.state,t=e.AsyncComponentFromLocal,n=e.AsyncComponentFromHttp;return g.a.createElement(b.View,{style:Tn.dynamicImportDemo},g.a.createElement(b.View,{style:{width:130,height:40,textAlign:"center",backgroundColor:"#4c9afa",borderRadius:5},onTouchDown:this.onAsyncComponentLoad},g.a.createElement(b.Text,{style:{height:40,lineHeight:40,textAlign:"center"}},"点我异步加载")),g.a.createElement(b.View,{style:{marginTop:20}},t?g.a.createElement(t,null):null,n?g.a.createElement(n,null):null))}}])}(g.a.Component);function An(e,t,n){return t=h()(t),d()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],h()(e).constructor):t.apply(e,n))}var kn=b.StyleSheet.create({LocalizationDemo:{marginTop:20,display:"flex",flex:1,alignItems:"center",position:"relative",flexDirection:"column"}}),Rn=function(e){function t(){return l()(this,t),An(this,t,arguments)}return p()(t,e),s()(t,[{key:"render",value:function(){var e=b.Platform.Localization||{},t=e.country,n=e.language,r=e.direction;return g.a.createElement(b.View,{style:kn.LocalizationDemo},g.a.createElement(b.View,{style:{height:40,textAlign:"center",backgroundColor:"#4c9afa",borderRadius:5},onTouchDown:this.onAsyncComponentLoad},g.a.createElement(b.Text,{style:{color:"white",marginHorizontal:30,height:40,lineHeight:40,textAlign:"center"}},"国际化相关信息:国家 ".concat(t," | 语言 ").concat(n," | 方向 ").concat(1===r?"RTL":"LTR"))))}}])}(g.a.Component),Vn=function(){var e=se()(de.a.mark((function e(t){return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",turboPromise(getTurboModule("demoTurbo").nativeWithPromise)(t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),In=function(){return getTurboModule("demoTurbo").getTurboConfig()};function On(e,t,n){return t=h()(t),d()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],h()(e).constructor):t.apply(e,n))}var jn=b.StyleSheet.create({container:{flex:1},cellContentView:{flexDirection:"row",justifyContent:"space-between",backgroundColor:"#ccc",marginBottom:1},funcInfo:{justifyContent:"center",paddingLeft:15,paddingRight:15},actionButton:{backgroundColor:"#4c9afa",color:"#fff",height:44,lineHeight:44,textAlign:"center",width:80,borderRadius:6},resultView:{backgroundColor:"darkseagreen",minHeight:150,padding:15}}),Pn=function(e){function t(e){var n;return l()(this,t),(n=On(this,t,[e])).state={config:null,result:"",funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"]},n.onTurboFunc=n.onTurboFunc.bind(n),n.getRenderRow=n.getRenderRow.bind(n),n.getRowKey=n.getRowKey.bind(n),n}return p()(t,e),s()(t,[{key:"onTurboFunc",value:(n=se()(de.a.mark((function e(t){var n;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("nativeWithPromise"!==t){e.next=6;break}return e.next=3,Vn("aaa");case 3:n=e.sent,e.next=7;break;case 6:"getTurboConfig"===t?(this.config=In(),n="获取到config对象"):"printTurboConfig"===t?(r=this.config||In(),n=getTurboModule("demoTurbo").printTurboConfig(r)):"getInfo"===t?n=(this.config||In()).getInfo():"setInfo"===t?((this.config||In()).setInfo("Hello World"),n="设置config信息成功"):n={getString:function(){return e="123",getTurboModule("demoTurbo").getString(e);var e},getNum:function(){return e=1024,getTurboModule("demoTurbo").getNum(e);var e},getBoolean:function(){return e=!0,getTurboModule("demoTurbo").getBoolean(e);var e},getMap:function(){return e=new Map([["a","1"],["b",2]]),getTurboModule("demoTurbo").getMap(e);var e},getObject:function(){return e={c:"3",d:"4"},getTurboModule("demoTurbo").getObject(e);var e},getArray:function(){return e=["a","b","c"],getTurboModule("demoTurbo").getArray(e);var e}}[t]();case 7:this.setState({result:n});case 8:case"end":return e.stop()}var r}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"renderResultView",value:function(){return g.a.createElement(b.View,{style:jn.resultView},g.a.createElement(b.Text,{style:{backgroundColor:"darkseagreen"}},"".concat(this.state.result)))}},{key:"getRenderRow",value:function(e){var t=this,n=this.state.funList;return g.a.createElement(b.View,{style:jn.cellContentView},g.a.createElement(b.View,{style:jn.funcInfo},g.a.createElement(b.Text,{numberofLines:0},"函数名:",n[e])),g.a.createElement(b.Text,{style:jn.actionButton,onClick:function(){return t.onTurboFunc(n[e])}},"执行"))}},{key:"getRowKey",value:function(e){return this.state.funList[e]}},{key:"render",value:function(){var e=this.state.funList;return g.a.createElement(b.View,{style:jn.container},this.renderResultView(),g.a.createElement(b.ListView,{numberOfRows:e.length,renderRow:this.getRenderRow,getRowKey:this.getRowKey,style:{flex:1}}))}}]);var n}(g.a.Component);function Dn(e,t,n){return t=h()(t),d()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],h()(e).constructor):t.apply(e,n))}var _n=b.StyleSheet.create({demoWrap:{horizontal:!1,flex:1,flexDirection:"column"},banner:{backgroundImage:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",backgroundSize:"cover",height:150,justifyContent:"flex-end"},bannerText:{color:"coral",textAlign:"center"},tabs:{flexDirection:"row",height:30},tabText:{flex:1,textAlign:"center",backgroundColor:"#eee",color:"#999"},tabSelected:{flex:1,textAlign:"center",color:"#4c9afa",backgroundColor:"#fff"},itemEven:{height:40,backgroundColor:"gray"},itemEvenText:{lineHeight:40,color:"white",fontSize:20,textAlign:"center"},itemOdd:{height:40},itemOddText:{lineHeight:40,fontSize:20,textAlign:"center"}}),Ln=function(e){function t(e){var n;return l()(this,t),(n=Dn(this,t,[e])).state={layoutHeight:0,currentSlide:0},n}return p()(t,e),s()(t,[{key:"selectPage",value:function(e){var t;this.setState({currentSlide:e}),null===(t=this.viewPager)||void 0===t||t.setPage(e)}},{key:"render",value:function(){var e=this,t=this.state,n=t.layoutHeight,r=t.currentSlide;return g.a.createElement(b.ScrollView,{style:_n.demoWrap,scrollEventThrottle:50,onLayout:function(t){return e.setState({layoutHeight:t.layout.height})}},g.a.createElement(b.View,{style:_n.banner}),g.a.createElement(b.View,{style:_n.tabs},g.a.createElement(b.Text,{key:"tab1",style:0===r?_n.tabSelected:_n.tabText,onClick:function(){return e.selectPage(0)}},"tab 1 (parent first)"),g.a.createElement(b.Text,{key:"tab2",style:1===r?_n.tabSelected:_n.tabText,onClick:function(){return e.selectPage(1)}},"tab 2 (self first)")),g.a.createElement(b.ViewPager,{ref:function(t){return e.viewPager=t},initialPage:r,style:{height:n-80},onPageSelected:function(t){return e.setState({currentSlide:t.position})}},g.a.createElement(b.ListView,{nestedScrollTopPriority:"parent",key:"slide1",numberOfRows:30,getRowKey:function(e){return"item".concat(e)},initialListSize:30,renderRow:function(e){return g.a.createElement(b.Text,{style:e%2?_n.itemEvenText:_n.itemOddText},"Item ",e)},getRowStyle:function(e){return e%2?_n.itemEven:_n.itemOdd}}),g.a.createElement(b.ListView,{nestedScrollTopPriority:"self",key:"slide2",numberOfRows:30,getRowKey:function(e){return"item".concat(e)},initialListSize:30,renderRow:function(e){return g.a.createElement(b.Text,{style:e%2?_n.itemEvenText:_n.itemOddText},"Item ",e)},getRowStyle:function(e){return e%2?_n.itemEven:_n.itemOdd}})))}}])}(g.a.Component);function Bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mn(e){for(var t=1;t 组件",component:Fn.View,meta:{type:zn.COMPONENT}},{path:"/Text",name:" 组件",component:Fn.Text,meta:{type:zn.COMPONENT}},{path:"/Image",name:" 组件",component:Fn.Image,meta:{type:zn.COMPONENT}},{path:"/ListView",name:" 组件",component:Fn.ListView,meta:{type:zn.COMPONENT}},{path:"/WaterfallView",name:" 组件",component:Fn.WaterfallView,meta:{type:zn.COMPONENT}},{path:"/PullHeader",name:" 组件",component:Fn.PullHeaderFooter,meta:{type:zn.COMPONENT}},{path:"/RefreshWrapper",name:" 组件",component:Fn.RefreshWrapper,meta:{type:zn.COMPONENT}},{path:"/ScrollView",name:" 组件",component:Fn.ScrollView,meta:{type:zn.COMPONENT}},{path:"/ViewPager",name:" 组件",component:Fn.ViewPager,meta:{type:zn.COMPONENT}},{path:"/TextInput",name:" 组件",component:Fn.TextInput,meta:{type:zn.COMPONENT}},{path:"/Modal",name:" 组件",component:Fn.Modal,meta:{type:zn.COMPONENT}},{path:"/Slider",name:" 组件",component:Fn.Slider,meta:{type:zn.COMPONENT}},{path:"/TabHost",name:" 组件",component:Fn.TabHost,meta:{type:zn.COMPONENT}},{path:"/WebView",name:" 组件",component:Fn.WebView,meta:{type:zn.COMPONENT}},{path:"/RippleViewAndroid",name:" 组件",component:Fn.RippleViewAndroid,meta:{type:zn.COMPONENT}},{path:"/Moduels",name:"Modules",meta:{type:zn.TITLE,mapType:zn.MODULE}},{path:"/Animation",name:"Animation 模块",component:Fn.Animation,meta:{type:zn.MODULE}},{path:"/WebSocket",name:"WebSocket 模块",component:Fn.WebSocket,meta:{type:zn.MODULE}},{path:"/NetInfo",name:"Network 模块",component:Fn.NetInfo,meta:{type:zn.MODULE}},{path:"/UIManagerModule",name:"UIManagerModule 模块",component:Fn.UIManagerModule,meta:{type:zn.MODULE}},{path:"/Others",name:"Others",meta:{type:zn.TITLE,mapType:zn.OTHER}},{path:"/NestedScroll",name:"NestedScroll 范例",component:Fn.NestedScroll,meta:{type:zn.OTHER}},{path:"/BoxShadow",name:"BoxShadow 范例",component:Fn.BoxShadow,meta:{type:zn.OTHER}},{path:"/SetNativeProps",name:"setNativeProps 范例",component:Fn.SetNativeProps,meta:{type:zn.OTHER}},{path:"/DynamicImport",name:"DynamicImport 范例",component:Fn.DynamicImport,meta:{type:zn.OTHER}},{path:"/Localization",name:"Localization 范例",component:Fn.Localization,meta:{type:zn.OTHER}},{path:"/Turbo",name:"Turbo 范例",component:Fn.Turbo,meta:{type:zn.OTHER}}],Wn="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",Nn="#1E304A",Un=b.StyleSheet.create({container:{marginTop:20,marginBottom:12,height:24,flexDirection:"row",alignItems:"center",justifyContent:"space-between"},backIcon:{tintColor:Nn,width:15,height:15},headerButton:{height:24,alignItems:"center",justifyContent:"center"},title:{fontSize:16,color:Nn,lineHeight:16}}),Gn=J((function(e){var t=e.history,n=e.route;return 0===t.index?g.a.createElement(b.View,{style:[Un.container]},g.a.createElement(b.View,null,g.a.createElement(b.Text,{numberOfLines:1,style:[Un.title]},n.name)),g.a.createElement(b.View,{style:Un.headerButton},g.a.createElement(b.Text,{numberOfLines:1,style:Un.title},"unspecified"!==b.default.version?"".concat(b.default.version):"master"))):g.a.createElement(b.View,{style:[Un.container]},g.a.createElement(b.View,{onClick:function(){return t.goBack()},style:[Un.headerButton]},g.a.createElement(b.Image,{style:Un.backIcon,source:{uri:Wn}})),g.a.createElement(b.View,{style:Un.headerButton},g.a.createElement(b.Text,{numberOfLines:1,style:Un.title},n.name)))}));function Kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qn(e){for(var t=1;t]+)>/g,(function(e,t){var n=o[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof i){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=M(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,a)),i.apply(this,e)}))}return e[Symbol.replace].call(this,n,i)},C.apply(this,arguments)}function x(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&&N(e,t)}function N(e,t){return(N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function A(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,l=[],u=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(e,t)||F(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 T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n]+)>/g,(function(e,t){var n=o[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof i){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=F(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,a)),i.apply(this,e)}))}return e[Symbol.replace].call(this,n,i)},E.apply(this,arguments)}function S(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 x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _(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,l=[],u=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(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 L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0||e.didTimeout)&&function e(t){"number"==typeof t?re(t):t&&(re(t.nodeId),Array.isArray(t.childNodes)&&t.childNodes.forEach((function(t){return e(t)})))}(t)}),{timeout:50})}var le=0,ue=1,se=-1,ce=1,fe={onTouchStart:["onTouchStart","onTouchDown"],onPress:["onPress","onClick"]},de={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3},pe={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"};function he(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}var me=new RegExp(/^\d+$/),ve=!1;function ye(){var e;Ne()&&(e=console).log.apply(e,arguments)}function ge(){}function be(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,(function(e){return String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16))}))}var we=new RegExp("^on.+Capture$");function ke(e){return we.test(e)}var Ee=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function Se(e){if("number"==typeof e)return e;if("string"==typeof e&&Ee.test(e))try{return parseFloat(e)}catch(t){return e}return e}function Ce(e){return"[object Function]"===Object.prototype.toString.call(e)}function xe(e){e}function Ne(){return!1}function Pe(){return ve}function Ie(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){return"".concat("hpfile://","./").concat(e)}return e}var _e=function(){function e(t){T(this,e),this.handlerContainer={},this.nextIdForHandler=0,this.eventName=t}return z(e,[{key:"getEventListeners",value:function(){var e=this;return Object.keys(this.handlerContainer).filter((function(t){return e.handlerContainer[t]})).map((function(t){return e.handlerContainer[t]}))}},{key:"getHandlerSize",value:function(){return Object.keys(this.handlerContainer).length}},{key:"addEventHandler",value:function(e,t){if(!e)throw new TypeError("Invalid arguments for addEventHandler");var n=this.nextIdForHandler;this.nextIdForHandler+=1;var r={id:n,eventHandler:e,context:t},i="eventHandler_".concat(n);return this.handlerContainer[i]=r,n}},{key:"notifyEvent",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r-1){var c=new Le(e,u,l);Object.assign(c,{eventPhase:s},i),n.memoizedProps[e](c),!c.bubbles&&o&&o.stopPropagation()}if(Re(e,n)&&!ke(e)&&[de.AT_TARGET,de.BUBBLING_PHASE].indexOf(s)>-1){var f=new Le(e,u,l);Object.assign(f,{eventPhase:s},i),"boolean"!=typeof(a=n.memoizedProps[e](f))&&(a=!Pe()),f.bubbles||(a=!0),a&&o&&o.stopPropagation()}}catch(e){console.error(e)}}(o,0,u,s,l,t):function(e,t,n,r,i,o){var a=!1,l=ie(r),u=ie(n);try{var s=o.eventPhase;if(Re(e,n)&&!ke(e)&&[de.AT_TARGET,de.BUBBLING_PHASE].indexOf(s)>-1){var c=new Le(e,u,l);Object.assign(c,{eventPhase:s},i),n.memoizedProps[e](c),a=!Pe(),c.bubbles||(a=!0),a&&o&&o.stopPropagation()}}catch(e){console.error(e)}}(o,0,u,s,l,t);else ge.apply(void 0,Te.concat(["receiveComponentEvent","currentTargetNode or targetNode not exist"]))}else ge.apply(void 0,Te.concat(["receiveComponentEvent","nativeEvent or domEvent not exist"]))}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=Oe);var je=function(){function e(t,n){T(this,e),this.callback=t,this.bindListener=n}return z(e,[{key:"remove",value:function(){"number"==typeof this.callback&&this.bindListener&&(this.bindListener.removeCallback(this.callback),this.bindListener=void 0)}}]),e}(),Fe=function(){function e(t){T(this,e),this.eventName=t,this.listenerIdList=[]}return z(e,[{key:"unregister",value:function(){var e=Oe.getHippyEventHub(this.eventName);if(!e)throw new ReferenceError("No listeners for ".concat(this.eventName));for(var t=this.listenerIdList.length,n=0;n1?n-1:0),i=1;i255?255:t}function Ye(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Xe(e,t,n){var r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Je(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Xe(i,r,e+1/3),a=Xe(i,r,e),l=Xe(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function Ze(e){return(parseFloat(e)%360+360)%360/360}function et(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function tt(e){if(Number.isInteger(e))return e;var t=function(e){var t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Ge.hex6.exec(e),Array.isArray(t)?parseInt("".concat(t[1],"ff"),16)>>>0:Object.hasOwnProperty.call($e,e)?$e[e]:(t=Ge.rgb.exec(e),Array.isArray(t)?(Ke(t[1])<<24|Ke(t[2])<<16|Ke(t[3])<<8|255)>>>0:(t=Ge.rgba.exec(e))?(Ke(t[1])<<24|Ke(t[2])<<16|Ke(t[3])<<8|Ye(t[4]))>>>0:(t=Ge.hex3.exec(e))?parseInt("".concat(t[1]+t[1]+t[2]+t[2]+t[3]+t[3],"ff"),16)>>>0:(t=Ge.hex8.exec(e))?parseInt(t[1],16)>>>0:(t=Ge.hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Ge.hsl.exec(e))?(255|Je(Ze(t[1]),et(t[2]),et(t[3])))>>>0:(t=Ge.hsla.exec(e))?(Je(Ze(t[1]),et(t[2]),et(t[3]))|Ye(t[4]))>>>0:null))}(e);return null===t?0:t=(t<<24|t>>>8)>>>0}function nt(e){return Array.isArray(e)?e.map((function(e){return tt(e)})):[0]}function rt(e){return"loop"===e?-1:e}function it(e,t){return"color"===e&&["number","string"].indexOf(M(t))>=0?tt(t):t}var ot="animationstart",at="animationend",lt="animationcancel",ut="animationrepeat",st=function(){function t(n){var r,i;if(T(this,t),(null===(r=n.startValue)||void 0===r?void 0:r.constructor)&&"Animation"===n.startValue.constructor.name)i={animationId:n.startValue.animationId};else{var o=n.startValue;i=it(n.valueType,o)}var a=it(n.valueType,n.toValue);this.mode=n.mode||"timing",this.delay=n.delay||0,this.startValue=i||0,this.toValue=a||0,this.valueType=n.valueType||void 0,this.duration=n.duration||0,this.direction=n.direction||"center",this.timingFunction=n.timingFunction||"linear",this.repeatCount=rt(n.repeatCount||0),this.inputRange=n.inputRange||[],this.outputRange=n.outputRange||[],this.animation=new e.Hippy.Animation(Object.assign({mode:this.mode,delay:this.delay,startValue:this.startValue,toValue:this.toValue,duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{})),this.animationId=this.animation.getId(),this.destroy=this.destroy.bind(this),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}return z(t,[{key:"removeEventListener",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(ot),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(at),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(lt),"function"==typeof this.onAnimationRepeatCallback&&this.animation.removeEventListener(ut)}},{key:"start",value:function(){var e=this;if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(ot,(function(){"function"==typeof e.onAnimationStartCallback&&e.onAnimationStartCallback()})),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(at,(function(){"function"==typeof e.onAnimationEndCallback&&e.onAnimationEndCallback()})),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener(lt,(function(){"function"==typeof e.onAnimationCancelCallback&&e.onAnimationCancelCallback()})),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener(ut,(function(){"function"==typeof e.onAnimationRepeatCallback&&e.onAnimationRepeatCallback()})),this.animation.start()}},{key:"destroy",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}},{key:"pause",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}},{key:"resume",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}},{key:"updateAnimation",value:function(e){var n=this;if(!this.animation)throw new Error("animation has not been initialized yet");if("object"!==M(e))throw new TypeError("Invalid arguments");if("string"==typeof e.mode&&e.mode!==this.mode)throw new TypeError("Update animation mode not supported");Object.keys(e).forEach((function(r){var i=e[r];if("startValue"===r){var o;if(e.startValue instanceof t)o={animationId:e.startValue.animationId};else{var a=e.startValue;o=it(n.valueType,a)}n.startValue=o||0}else"repeatCount"===r?n.repeatCount=rt(e.repeatCount||0):Object.defineProperty(n,r,{value:i})})),this.animation.updateAnimation(Object.assign({mode:this.mode,delay:this.delay,startValue:this.startValue,toValue:it(this.valueType,this.toValue),duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{}))}},{key:"onAnimationStart",value:function(e){this.onAnimationStartCallback=e}},{key:"onAnimationEnd",value:function(e){this.onAnimationEndCallback=e}},{key:"onAnimationCancel",value:function(e){this.onAnimationCancelCallback=e}},{key:"onAnimationRepeat",value:function(e){this.onAnimationRepeatCallback=e}}]),t}(),ct="animationstart",ft="animationend",dt="animationcancel",pt="animationrepeat",ht=function(){function t(n){var r=this;T(this,t),this.animationList=[],null==n||n.children.forEach((function(e){r.animationList.push({animationId:e.animation.animationId,follow:e.follow||!1})})),this.animation=new e.Hippy.AnimationSet({repeatCount:rt(n.repeatCount||0),children:this.animationList}),this.animationId=this.animation.getId(),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}return z(t,[{key:"removeEventListener",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(ct),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(ft),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(dt),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(pt)}},{key:"start",value:function(){var e=this;if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(ct,(function(){"function"==typeof e.onAnimationStartCallback&&e.onAnimationStartCallback()})),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(ft,(function(){"function"==typeof e.onAnimationEndCallback&&e.onAnimationEndCallback()})),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener(dt,(function(){"function"==typeof e.onAnimationCancelCallback&&e.onAnimationCancelCallback()})),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener(dt,(function(){"function"==typeof e.onAnimationRepeatCallback&&e.onAnimationRepeatCallback()})),this.animation.start()}},{key:"destory",value:function(){this.destroy()}},{key:"destroy",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}},{key:"pause",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}},{key:"resume",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}},{key:"onAnimationStart",value:function(e){this.onAnimationStartCallback=e}},{key:"onAnimationEnd",value:function(e){this.onAnimationEndCallback=e}},{key:"onAnimationCancel",value:function(e){this.onAnimationCancelCallback=e}},{key:"onAnimationRepeat",value:function(e){this.onAnimationRepeatCallback=e}}]),t}(),mt={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode"),moveNode:Symbol("moveNode")},vt=!0,yt=[];function gt(e){return!!pe[e]}function bt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;e.forEach((function(e){if(e){var n=e.id;e.eventList.forEach((function(e){var r,i=e.name,o=e.type,a=e.listener,l=e.isCapture;r=gt(i)?pe[i]:he(i),o===ue&&t.removeEventListener(n,r,a),o===le&&t.addEventListener(n,r,a,l)}))}}))}function wt(e,t){0}function kt(t){var n=function(e){for(var t=[],n=0;n0&&void 0!==arguments[0]&&arguments[0];if(vt)if(vt=!1,0!==yt.length){var t=ee();e?(kt(t),yt=[],vt=!0):Promise.resolve().then((function(){kt(t),yt=[],vt=!0}))}else vt=!0}function St(e){var t=e.attributes;t.children;return L(t,u)}function Ct(e){var t=void 0,n=e.events;if(n){var r=[];Object.keys(n).forEach((function(t){var i=n[t],o=i.name,a=i.type,l=i.isCapture,u=i.listener;e.isListenerHandled(t,a)||(e.setListenerHandledType(t,a),r.push({name:o,type:a,isCapture:l,listener:u}))})),t={id:e.nodeId,eventList:r}}return t}function xt(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.nativeName)return[];if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: ".concat(t.tagName));var i={id:t.nodeId,pId:(null===(n=t.parentNode)||void 0===n?void 0:n.nodeId)||e,name:t.nativeName,props:I(I({},St(t)),{},{style:t.style}),tagName:t.tagName},o=Ct(t),a=void 0,l=[i,r];return[l,o,a]}function Nt(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=[],o=[],a=[];return t.traverseChildren((function(t,r){var l=A(xt(e,t,r),3),u=l[0],s=l[1],c=l[2];u&&i.push(u),s&&o.push(s),c&&a.push(c),"function"==typeof n&&n(t)}),r),[i,o,a]}function Pt(e){return!!B&&e instanceof B.containerInfo.constructor}function It(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e&&t&&!t.meta.skipAddToDom){var r=ee(),i=Pt(e)&&!e.isMounted,o=e.isMounted&&!t.isMounted;if(i||o){var a=Nt(r,t,(function(e){e.isMounted||(e.isMounted=!0)}),n),l=A(a,3),u=l[0],s=l[1],c=l[2];yt.push({type:mt.createNode,nodes:u,eventNodes:s,printedNodes:c})}}}function _t(e){if(e.isMounted){var t=A(xt(ee(),e),3),n=t[0],r=t[1];t[2];n&&yt.push({type:mt.updateNode,nodes:[n],eventNodes:[r],printedNodes:[]})}}var Lt=0;var At=function(){function e(){T(this,e),this.meta={component:{}},this.index=0,this.childNodes=[],this.parentNode=null,this.mounted=!1,this.nodeId=((Lt+=1)%10==0&&(Lt+=1),Lt)}return z(e,[{key:"toString",value:function(){return this.constructor.name}},{key:"isMounted",get:function(){return this.mounted},set:function(e){this.mounted=e}},{key:"insertBefore",value:function(e,t){if(!e)throw new Error("Can't insert child.");if(!e.meta.skipAddToDom){if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't insert child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't insert child, because it already has a different parent.");var n=this.childNodes.indexOf(t);return e.parentNode=this,this.childNodes.splice(n,0,e),It(this,e,{refId:t.nodeId,relativeToRef:se})}}},{key:"moveChild",value:function(e,t){if(!e)throw new Error("Can't move child.");if(!e.meta.skipAddToDom){if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't move child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't move child, because it already has a different parent.");var n=this.childNodes.indexOf(e);if(this.childNodes.indexOf(t)===n)return e;this.childNodes.splice(n,1);var r=this.childNodes.indexOf(t);return this.childNodes.splice(r,0,e),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e&&t&&!t.meta.skipAddToDom){var r=ee(),i={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},o=[[i,n]],a=[];yt.push({printedNodes:a,type:mt.moveNode,nodes:o,eventNodes:[]})}}(this,e,{refId:t.nodeId,relativeToRef:se})}}},{key:"appendChild",value:function(e){if(!e)throw new Error("Can't append child.");if(!e.meta.skipAddToDom){if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");e.parentNode=this;var t=this.childNodes.length-1,n=this.childNodes[t];this.childNodes.push(e),It(this,e,n&&{refId:n.nodeId,relativeToRef:ce})}}},{key:"removeChild",value:function(e){if(!e)throw new Error("Can't remove child.");if(!e.meta.skipAddToDom){if(!e.parentNode)throw new Error("Can't remove child, because it has no parent.");if(e.parentNode!==this)throw new Error("Can't remove child, because it has a different parent.");var t=this.childNodes.indexOf(e);this.childNodes.splice(t,1),function(e,t){if(t&&!t.meta.skipAddToDom){t.isMounted=!1;var n=ee(),r={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:n},i=[[r,{}]],o=[];yt.push({printedNodes:o,type:mt.deleteNode,nodes:i,eventNodes:[]})}}(0,e)}}},{key:"findChild",value:function(e){if(e(this))return this;if(this.childNodes.length)for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:jt,n=parseFloat(e),r=e||"",i=e.split("."),o=A(i,2),a=o[1];switch(a&&a.length>2&&(r=n.toFixed(2)),t){case zt:r="".concat((360*n).toFixed(2));break;case Ot:r="".concat((180/Math.PI*n).toFixed(2))}return r}(a,l):o&&void 0!==Rt[o]&&(r=Rt[o]),r}}function Ht(e){var t=A((e||"").replace(/\s+/g," ").trim().split(/\s+(?![^(]*?\))/),2),n=t[0],r=t[1],i=/^([+-]?\d+\.?\d*)%$/g;return!n||i.exec(n)||r?n&&i.exec(r)?{ratio:parseFloat(r.split("%")[0])/100,color:tt(n)}:void 0:{color:tt(n)}}var Mt=function(e){x(n,e);var t=w(n);function n(e){var r;return T(this,n),(r=t.call(this)).id="",r.style={},r.attributes={},r.events={},r.tagName=e,r}return z(n,[{key:"nativeName",get:function(){return this.meta.component.name}},{key:"toString",value:function(){return"".concat(this.tagName,":(").concat(this.nativeName,")")}},{key:"setListenerHandledType",value:function(e,t){this.events[e]&&(this.events[e].handledType=t)}},{key:"isListenerHandled",value:function(e,t){return!this.events[e]||t===this.events[e].handledType}},{key:"hasAttribute",value:function(e){return!!this.attributes[e]}},{key:"getAttribute",value:function(e){return this.attributes[e]}},{key:"setStyleAttribute",value:function(e){var t=this;this.style={};var n=e;if(!Array.isArray(n)&&Object.hasOwnProperty.call(n,0)){var r=[],i={};Object.keys(n).forEach((function(e){var t;t=e,me.test(t)?r.push(n[e]):i[e]=n[e]})),n=[].concat(r,[i])}Array.isArray(n)||(n=[n]);var o={};n.forEach((function(e){Array.isArray(e)?e.forEach((function(e){o=I(I({},o),e)})):"object"===M(e)&&e&&(o=I(I({},o),e))})),Object.keys(o).forEach((function(e){var n=o[e];if(Object.prototype.hasOwnProperty.call(Tt,e)&&(e=Tt[e]),"transform"===e){var r={};if(!Array.isArray(n))throw new TypeError("transform only support array args");n.forEach((function(e){Object.keys(e).forEach((function(t){var n=e[t];n instanceof st||n instanceof ht?r[t]={animationId:n.animationId}:null===n?r[t]&&delete r[t]:void 0!==n&&(r[t]=n)}))}));var i=Object.keys(r);i.length&&(Array.isArray(t.style.transform)||(t.style.transform=[]),i.forEach((function(e){return t.style.transform.push({[e]:r[e]})})))}else if(null===n&&void 0!==t.style[e])t.style[e]=void 0;else if(n instanceof st||n instanceof ht)t.style[e]={animationId:n.animationId};else if(e.toLowerCase().indexOf("colors")>-1)t.style[e]=nt(n);else if(e.toLowerCase().indexOf("color")>-1)t.style[e]=tt(n);else if("fontWeight"===e&&n)t.style[e]="string"!=typeof n?n.toString():n;else if("backgroundImage"===e&&n)t.style=function(e,t,n){if(0===t.indexOf("linear-gradient")){var r=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),i=[];n.linearGradient=n.linearGradient||{},r.forEach((function(e,t){if(0===t){var r=Ft(e);if(r)n.linearGradient.angle=r;else{n.linearGradient.angle="180";var o=Ht(e);o&&i.push(o)}}else{var a=Ht(e);a&&i.push(a)}})),n.linearGradient.colorStopList=i}else n[e]=Ie(t);return n}(e,n,t.style);else if("textShadowOffset"===e){var a=n||{},l=a.x,u=void 0===l?0:l,s=a.width,c=void 0===s?0:s,f=a.y,d=void 0===f?0:f,p=a.height,h=void 0===p?0:p;t.style[e]={width:u||c,height:d||h}}else["textShadowOffsetX","textShadowOffsetY"].indexOf(e)>=0?t.style=function(e,t,n){return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[{textShadowOffsetX:"width",textShadowOffsetY:"height"}[e]]:t||0}),n}(e,n,t.style):t.style[e]=n}))}},{key:"setAttributes",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Array.isArray(t)&&t.length>0&&(t.forEach((function(t){if(Array.isArray(t)){var n=A(t,2),r=n[0],i=n[1];e.setAttribute(r,i,{notToNative:!0})}})),_t(this))}},{key:"parseAnimationStyleProp",value:function(e){var t=!1;Object.keys(e).some((function(n){var r=e[n];if(r&&Array.isArray(r)&&"transform"===n)for(var i=0;i=0},action:function(){return t===n.id||(n.id=t,function(e){if(e.isMounted){var t=A(Nt(ee(),e)||{},3),n=t[0],r=t[1],i=t[2];n&&yt.push({type:mt.updateNode,nodes:n,eventNodes:r,printedNodes:i})}}(n)),!0}},{match:function(){return["value","defaultValue","placeholder"].indexOf(e)>=0},action:function(){return n.attributes[e]=be(t),!1}},{match:function(){return["text"].indexOf(e)>=0},action:function(){return n.attributes[e]=t,!1}},{match:function(){return["style"].indexOf(e)>=0},action:function(){return"object"!==M(t)||null==t||(n.setStyleAttribute(t),!1)}},{match:function(){return!0},action:function(){if("function"==typeof t){var r=function(e){return ke(e)&&(e=e.replace("Capture","")),fe[e]?fe[e][1]:e}(e);n.events[e]?n.events[e]&&n.events[e].type!==le&&(n.events[e].type=le):n.events[e]={name:r,type:le,isCapture:ke(e),listener:(i=r,o=e,function(e){var t=e.id,n=e.currentId,r=e.params,a=e.eventPhase,l={id:t,nativeName:i,originalName:o,params:r,currentId:n,eventPhase:a};Oe.receiveComponentEvent(l,e)})}}else{if(function(e,t){return void 0!==t&&"object"===M(t[e])&&!!t[e]}(e,n.events)&&"function"!=typeof t)return n.events[e].type=ue,!1;n.attributes[e]=t}var i,o;return!1}}].some((function(e){return!!e.match()&&(r=e.action(),!0)})),r}},{key:"setAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{if("boolean"==typeof this.attributes[e]&&""===t&&(t=!0),void 0===e)return void(!n.notToNative&&_t(this));var r=this.parseAttributeProp(e,t);if(r)return;this.parseAnimationStyleProp(this.style),!n.notToNative&&_t(this)}catch(e){}}},{key:"removeAttribute",value:function(e){delete this.attributes[e]}},{key:"setStyle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null!==t){var r=t,i=e;Object.prototype.hasOwnProperty.call(Tt,e)&&(i=Tt[e]),"string"==typeof r&&(r=t.trim(),r=i.toLowerCase().indexOf("colors")>-1?nt(r):i.toLowerCase().indexOf("color")>-1?tt(r):Se(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||_t(this))}else delete this.style[e]}},{key:"setNativeProps",value:function(e){var t=this;if(e){var n=e.style;if(n){var r=n;Object.keys(r).forEach((function(e){t.setStyle(e,r[e],!0)})),_t(this),Et(!0)}}}},{key:"setText",value:function(e){if("string"!=typeof e)try{e=e.toString()}catch(e){throw new Error("Only string type is acceptable for setText")}return(e=e.trim())||this.getAttribute("text")?(e=(e=be(e)).replace(/ /g," ").replace(/Â/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}]),n}(At),Bt=function(e){x(n,e);var t=w(n);function n(){var e;return T(this,n),(e=t.call(this)).documentElement=new Mt("document"),e}return z(n,[{key:"createElement",value:function(e){return new Mt(e)}},{key:"createElementNS",value:function(e,t){return new Mt("".concat(e,":").concat(t))}}]),n}(At);Bt.createElement=Bt.prototype.createElement,Bt.createElementNS=Bt.prototype.createElementNS;var Dt=Array.isArray,Ut=Object.keys,Wt=Object.prototype.hasOwnProperty;var Vt=setTimeout,$t=clearTimeout,Qt=Object.freeze({__proto__:null,commitMutationEffectsBegin:function(){},commitMutationEffectsComplete:function(){Et(!0)},getCurrentEventPriority:function(){return 16},scheduleTimeout:Vt,cancelTimeout:$t,noTimeout:-1,afterActiveInstanceBlur:function(){},appendChild:function(e,t){e.childNodes.indexOf(t)>=0&&e.removeChild(t),e.appendChild(t)},appendChildToContainer:function(e,t){e.appendChild(t)},appendInitialChild:function(e,t){e.appendChild(t)},beforeActiveInstanceBlur:function(){},commitMount:function(){},commitTextUpdate:function(){},commitUpdate:function(e,t,n,r,i,o){ne(o,e.nodeId);var a=Object.keys(t||{});if(0!==a.length){var l=a.map((function(e){return[e,t[e]]}));e.setAttributes(l)}},clearContainer:function(){},createContainerChildSet:function(){},createInstance:function(e,t,n,r,i){var o=n.createElement(e);return Object.keys(t).forEach((function(e){switch(e){case"children":break;case"nativeName":o.meta.component.name=t.nativeName;break;default:o.setAttribute(e,t[e])}})),[5,7].indexOf(i.tag)<0&&(o.meta.skipAddToDom=!0),ne(i,o.nodeId),o},createTextInstance:function(e,t,n,r){var i=t.createElement("p");return i.setAttribute("text",be(e)),i.meta={component:{name:"Text"}},ne(r,i.nodeId),i},detachDeletedInstance:function(){},finalizeContainerChildren:function(){},finalizeInitialChildren:function(){return!0},getChildHostContext:function(){return{}},getPublicInstance:function(e){return e},getInstanceFromNode:function(){throw new Error("Not yet implemented.")},getFundamentalComponentInstance:function(){throw new Error("Not yet implemented.")},getRootHostContext:function(){return{}},hideInstance:function(e){var t={style:{display:"none"}};Object.keys(t).forEach((function(n){return e.setAttribute(n,t[n])}))},hideTextInstance:function(){throw new Error("Not yet implemented.")},insertBefore:function(e,t,n){e.childNodes.indexOf(t)>=0?e.moveChild(t,n):e.insertBefore(t,n)},isOpaqueHydratingObject:function(){throw new Error("Not yet implemented")},makeClientId:function(){throw new Error("Not yet implemented")},makeClientIdInDEV:function(){throw new Error("Not yet implemented")},makeOpaqueHydratingObject:function(){throw new Error("Not yet implemented.")},mountFundamentalComponent:function(){throw new Error("Not yet implemented.")},prepareForCommit:function(){return null},preparePortalMount:function(){},prepareUpdate:function(e,t,n,r){var i={};return Object.keys(n).forEach((function(e){var t=n[e],o=r[e];null!=t&&null==o&&(i[e]=o)})),Object.keys(r).forEach((function(e){var t=n[e],o=r[e];switch(e){case"children":t===o||"number"!=typeof o&&"string"!=typeof o||(i[e]=o);break;default:null!=o&&null==t?i[e]=o:"function"==typeof o||function e(t,n){if(t===n)return!0;if(t&&n&&"object"==M(t)&&"object"==M(n)){var r,i,o,a=Dt(t),l=Dt(n);if(a&&l){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=l)return!1;var u=t instanceof Date,s=n instanceof Date;if(u!=s)return!1;if(u&&s)return t.getTime()==n.getTime();var c=t instanceof RegExp,f=n instanceof RegExp;if(c!=f)return!1;if(c&&f)return t.toString()==n.toString();var d=Ut(t);if((i=d.length)!==Ut(n).length)return!1;for(r=i;0!=r--;)if(!Wt.call(n,d[r]))return!1;for(r=i;0!=r--;)if(!e(t[o=d[r]],n[o]))return!1;return!0}return t!=t&&n!=n}(t,o)||(i[e]=o)}})),i},replaceContainerChildren:function(){},removeChild:function(e,t){e.removeChild(t),ae(t)},removeChildFromContainer:function(e,t){e.removeChild(t),ae(t)},resetAfterCommit:function(){},resetTextContent:function(){},unmountFundamentalComponent:function(){throw new Error("Not yet implemented.")},updateFundamentalComponent:function(){throw new Error("Not yet implemented.")},unhideTextInstance:function(){throw new Error("Not yet implemented.")},unhideInstance:function(e,t){var n=I(I({},t),{},{style:I(I({},t.style),{},{display:"flex"})});Object.keys(n).forEach((function(t){return e.setAttribute(t,n[t])}))},shouldDeprioritizeSubtree:function(){return!0},shouldUpdateFundamentalComponent:function(){throw new Error("Not yet implemented.")},shouldSetTextContent:function(e,t){if(t&&"Text"===t.nativeName||-1!==["p","span"].indexOf(e)){var n=t.children;return"string"==typeof n||"number"==typeof n}return!1}}),qt=l()(I(I({},Qt),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:function(){},cancelDeferredCallback:function(){}}));var Gt=Object.freeze({__proto__:null,getString:function(){return V.callNativeWithPromise("ClipboardModule","getString")},setString:function(e){V.callNative("ClipboardModule","setString",e)}});var Kt=Object.freeze({__proto__:null,getCookies:function(e){return V.callNativeWithPromise("network","getCookie",e)},setCookie:function(e,t,n){var r="";"string"==typeof n&&(r=n),n instanceof Date&&(r=n.toUTCString()),V.callNative("network","setCookie",e,t,r)}});function Yt(e){return V.callNativeWithPromise("ImageLoaderModule","getSize",e)}function Xt(e){V.callNative("ImageLoaderModule","prefetch",e)}var Jt=Object.freeze({__proto__:null,getSize:Yt,prefetch:Xt}),Zt=new Map,en=new Me,tn=function(){function e(t,n){T(this,e),this.eventName=t,this.listener=n}return z(e,[{key:"remove",value:function(){this.eventName&&this.listener&&(nn(this.eventName,this.listener),this.listener=void 0)}}]),e}();function nn(e,t){if(t instanceof tn)t.remove();else{var n=e;"change"===e&&(n="networkStatusDidChange");var r=Zt.get(t);if(r)r.remove(),Zt.delete(t),en.listenerSize(n)<1&&V.callNative("NetInfo","removeListener",n)}}var rn=Object.freeze({__proto__:null,addEventListener:function(e,t){var n=e;n&&"change"===n&&(n="networkStatusDidChange"),en.listenerSize(n)<1&&V.callNative("NetInfo","addListener",n);var r=en.addListener(n,(function(e){t(e)}));return Zt.set(t,r),new tn(n,t)},removeEventListener:nn,fetch:function(){return V.callNativeWithPromise("NetInfo","getCurrentConnectivity").then((function(e){return e.network_info}))}}),on=Q.createNode,an=Q.updateNode,ln=Q.deleteNode,un=Q.flushBatch,sn=Q.endBatch,cn=Q.sendRenderError,fn=["%c[native]%c","color: red","color: auto"],dn=function(e){return te((function(t){return t.stateNode&&t.stateNode.nodeId===e}))};function pn(e){if(e instanceof Mt)return e;if(!e)return null;var t=e._reactInternalFiber||e._reactInternals;if(null==t?void 0:t.child){for(var n=t.child;n&&!(n.stateNode instanceof Mt);)n=n.child;return n&&n.stateNode?n.stateNode:null}return null}function hn(e){var t=e;if("string"==typeof e){"getNodeIdByRef('".concat(e,"') use string ref will affect to performance, recommend use reference to the ref instead");var n=te((function(t){return!!(t.return&&t.return.ref&&t.return.ref._stringRef)&&t.return.ref._stringRef===e}));if(!n||!n.stateNode)return 0;t=n.stateNode}if(!t.nodeId){var r=pn(t);return r?r.nodeId:0}return t.nodeId}function mn(e,t){var n=e.nativeName,r=e.nodeId;if(!r||!n){var i=pn(e);i&&(r=i.nodeId,n=i.nativeName)}if(!n)throw new Error("callUIFunction is calling a unnamed component");if(!r)throw new Error("callUIFunction is calling a component have no nodeId");for(var o=arguments.length,a=new Array(o>2?o-2:0),l=2;l0&&void 0!==arguments[0]&&arguments[0];ve=e}(u),Z(f,this.rootContainer);var d=o.a.createElement(r,e);return Rn(d,this.rootContainer,null,c),zn(this.rootContainer)}}],[{key:"Native",get:function(){return An}}]),e}();jn.version="unspecified";var Fn={registerComponent:function(e,t){new jn({appName:e,entryPage:t}).start()}},Hn=function(e){x(n,e);var t=w(n);function n(){var e;return T(this,n),(e=t.apply(this,arguments)).instance=null,e}return z(n,[{key:"setPressed",value:function(e){mn(this.instance,"setPressed",[e])}},{key:"setHotspot",value:function(e,t){mn(this.instance,"setHotspot",[e,t])}},{key:"render",value:function(){var e=this,t=this.props,n=t.collapsable,r=t.style,i=void 0===r?{}:r,a=L(t,s),l=i,u=a.nativeBackgroundAndroid;return"boolean"==typeof n&&(l.collapsable=n),void 0!==(null==u?void 0:u.color)&&(u.color=tt(u.color)),o.a.createElement("div",I({ref:function(t){e.instance=t},nativeName:"View",style:l},a))}}]),n}(o.a.Component);function Mn(e,t){var n=e.style,r=L(e,c),i=n;if(n&&(Array.isArray(n)?-1===n.filter((function(e){return"object"===M(e)&&e})).findIndex((function(e){return e.color||e.colors}))&&(i[0].color="#000"):"object"===M(n)&&void 0===n.color&&void 0===n.colors&&(i.color="#000")),r.text="","string"==typeof r.children)r.text=be(r.children);else if("number"==typeof r.children)r.text=be(r.children.toString());else if(Array.isArray(r.children)){var a=r.children.filter((function(e){return"string"==typeof e||"number"==typeof e})).join("");a&&(r.text=be(a),r.children=r.text)}return o.a.createElement("p",I({ref:t,nativeName:"Text",style:i},r))}Mn.displayName="Text";var Bn=o.a.forwardRef(Mn);Bn.displayName="Text";var Dn=Object.freeze({__proto__:null,default:Bn}),Un=function(e){x(n,e);var t=w(n);function n(){return T(this,n),t.apply(this,arguments)}return z(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.style,r=e.imageStyle,i=e.imageRef,a=e.source,l=e.sources,u=e.src,s=e.srcs,c=e.tintColor,d=e.tintColors,p=L(e,f),h=this.getImageUrls({src:u,srcs:s,source:a,sources:l});if(1===h.length){var m=A(h,1);p.src=m[0]}else h.length>1&&(p.srcs=h);"string"==typeof p.defaultSource&&(p.defaultSource.indexOf("data:image/"),p.defaultSource=Ie(p.defaultSource));var v=I({},n);return this.handleTintColor(v,c,d),p.style=v,t?o.a.createElement(Hn,{style:n},o.a.createElement("img",I(I({},p),{},{nativeName:"Image",alt:"",ref:i,style:[{position:"absolute",left:0,right:0,top:0,bottom:0,width:n.width,height:n.height},r]})),t):o.a.createElement("img",I(I({},p),{},{nativeName:"Image",alt:"",ref:i}))}},{key:"getImageUrls",value:function(e){var t=e.src,n=e.srcs,r=e.source,i=e.sources,o=[];if("string"==typeof t&&o.push(t),Array.isArray(n)&&(o=[].concat(j(o),j(n))),r)if("string"==typeof r)o.push(r);else if("object"===M(r)&&null!==r){var a=r.uri;a&&o.push(a)}return i&&Array.isArray(i)&&i.forEach((function(e){"string"==typeof e?o.push(e):"object"===M(e)&&null!==e&&e.uri&&o.push(e.uri)})),o.length&&(o=o.map((function(e){return Ie(e)}))),o}},{key:"handleTintColor",value:function(e,t,n){t&&Object.assign(e,{tintColor:t}),Array.isArray(n)&&Object.assign(e,{tintColors:n})}}],[{key:"resizeMode",get:function(){return{contain:"contain",cover:"cover",stretch:"stretch",center:"center",repeat:"repeat"}}},{key:"getSize",value:function(e,t,n){if("string"!=typeof e)throw new TypeError("Image.getSize first argument must be a string url");var r=Yt(e);return"function"==typeof t&&r.then((function(e){return t(e.width,e.height)})),"function"==typeof n?r.catch(n):r.catch((function(t){"Failed to get size for image: ".concat(e)})),r}}]),n}(o.a.Component);Un.prefetch=Xt;var Wn=function(){function e(){T(this,e),this.Value=e.Value}return z(e,null,[{key:"Value",value:function(e){return e}},{key:"timing",value:function(e,t){return new st({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}]),e}();Wn.View=Hn,Wn.Text=Dn,Wn.Image=Un;var Vn={step0:function(e){return e>0?1:0},step1:function(e){return e>=1?1:0},linear:function(){return"linear"},ease:function(){return"ease"},quad:function(e){return Math.pow(e,2)},cubic:function(e){return Math.pow(e,3)},poly:function(e){return function(t){return Math.pow(t,e)}},sin:function(e){return 1-Math.cos(e*Math.PI/2)},circle:function(e){return 1-Math.sqrt(1-e*e)},exp:function(e){return Math.pow(2,10*(e-1))},elastic:function(){return"elastic"},back:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1.70158;return function(t){return t*t*((e+1)*t-e)}},bounce:function(e){var t=e;return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bezier:function(){return"bezier"},in:function(){return"ease-in"},out:function(){return"ease-out"},inOut:function(){return"ease-in-out"}};function $n(e){return o.a.createElement("li",I({nativeName:"ListViewItem"},e))}var Qn=function(e){x(n,e);var t=w(n);function n(){var e;return T(this,n),(e=t.apply(this,arguments)).instance=null,e}return z(n,[{key:"expandPullHeader",value:function(){mn(this.instance,"expandPullHeader",[])}},{key:"collapsePullHeader",value:function(e){void 0!==e?mn(this.instance,"collapsePullHeaderWithOptions",[e]):mn(this.instance,"collapsePullHeader",[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=L(t,d);return o.a.createElement("div",I({nativeName:"PullHeaderView",ref:function(t){e.instance=t}},r),n)}}]),n}(o.a.Component),qn=function(e){x(n,e);var t=w(n);function n(){var e;return T(this,n),(e=t.apply(this,arguments)).instance=null,e}return z(n,[{key:"expandPullFooter",value:function(){mn(this.instance,"expandPullFooter",[])}},{key:"collapsePullFooter",value:function(){mn(this.instance,"collapsePullFooter",[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=L(t,p);return o.a.createElement("div",I({nativeName:"PullFooterView",ref:function(t){e.instance=t}},r),n)}}]),n}(o.a.Component),Gn=function(e){x(n,e);var t=w(n);function n(e){var r;return T(this,n),(r=t.call(this,e)).instance=null,r.pullHeader=null,r.pullFooter=null,r.handleInitialListReady=r.handleInitialListReady.bind(E(r)),r.state={initialListReady:!1},r}return z(n,[{key:"componentDidMount",value:function(){this.props.getRowKey}},{key:"scrollToIndex",value:function(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&mn(this.instance,"scrollToIndex",[e,t,n])}},{key:"scrollToContentOffset",value:function(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&mn(this.instance,"scrollToContentOffset",[e,t,n])}},{key:"expandPullHeader",value:function(){this.pullHeader&&this.pullHeader.expandPullHeader()}},{key:"collapsePullHeader",value:function(e){this.pullHeader&&this.pullHeader.collapsePullHeader(e)}},{key:"expandPullFooter",value:function(){this.pullFooter&&this.pullFooter.expandPullFooter()}},{key:"collapsePullFooter",value:function(){this.pullFooter&&this.pullFooter.collapsePullFooter()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.style,i=t.renderRow,a=t.renderPullHeader,l=t.renderPullFooter,u=t.getRowType,s=t.getRowStyle,c=t.getHeaderStyle,f=t.getFooterStyle,d=t.getRowKey,p=t.dataSource,m=t.initialListSize,v=t.rowShouldSticky,y=t.onRowLayout,g=t.onHeaderPulling,b=t.onHeaderReleased,w=t.onFooterPulling,k=t.onFooterReleased,E=t.onAppear,S=t.onDisappear,C=t.onWillAppear,x=t.onWillDisappear,N=L(t,h),P=[];if("function"==typeof i){var _=this.state.initialListReady,A=this.props.numberOfRows,T=this.getPullHeader(a,g,b,c),R=this.getPullFooter(l,w,k,f);!A&&p&&(A=p.length),_||(A=Math.min(A,m||15));for(var z=function(t){var n,r={};n=p?i(p[t],null,t):i(t),e.handleRowProps(r,t,{getRowKey:d,getRowStyle:s,getRowType:u,onRowLayout:y,rowShouldSticky:v}),[{func:E,name:"onAppear"},{func:S,name:"onDisappear"},{func:C,name:"onWillAppear"},{func:x,name:"onWillDisappear"}].forEach((function(e){var n=e.func,i=e.name;"function"==typeof n&&(r[i]=function(){n(t)})})),n&&P.push(o.a.createElement($n,I({},r),n))},O=0;O0&&(this.size-=1),e.data}},{key:"clear",value:function(){this.top=null,this.size=0}},{key:"displayAll",value:function(){var e=[];if(null===this.top)return e;for(var t=this.top,n=0,r=this.size;n1&&this.pop({animated:!0})}},{key:"push",value:function(e){if(null==e?void 0:e.component){if(!this.routeList[e.routeName])new jn({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0;delete e.component}var t=[e];this.stack.push(e),mn(this.instance,"push",t)}},{key:"pop",value:function(e){if(this.stack.size>1){var t=[e];this.stack.pop(),mn(this.instance,"pop",t)}}},{key:"clear",value:function(){this.stack.clear()}},{key:"render",value:function(){var e=this,t=this.props,n=t.initialRoute,r=(n.component,L(n,v)),i=L(t,y);return i.initialRoute=r,o.a.createElement("div",I({nativeName:"Navigator",ref:function(t){e.instance=t}},i))}}]),n}(o.a.Component);function Jn(e){return o.a.createElement("div",I(I({nativeName:"ViewPagerItem"},e),{},{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}var Zn=function(e){x(n,e);var t=w(n);function n(e){var r;return T(this,n),(r=t.call(this,e)).instance=null,r.setPage=r.setPage.bind(E(r)),r.setPageWithoutAnimation=r.setPageWithoutAnimation.bind(E(r)),r.onPageScrollStateChanged=r.onPageScrollStateChanged.bind(E(r)),r}return z(n,[{key:"onPageScrollStateChanged",value:function(e){var t=this.props.onPageScrollStateChanged;t&&t(e.pageScrollState)}},{key:"setPage",value:function(e){"number"==typeof e&&mn(this.instance,"setPage",[e])}},{key:"setPageWithoutAnimation",value:function(e){"number"==typeof e&&mn(this.instance,"setPageWithoutAnimation",[e])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.onPageScrollStateChanged,i=L(t,g),a=[];return Array.isArray(n)?a=n.map((function(e){var t={};return"string"==typeof e.key&&(t.key="viewPager_".concat(e.key)),o.a.createElement(Jn,I({},t),e)})):a.push(o.a.createElement(Jn,null,n)),"function"==typeof r&&(i.onPageScrollStateChanged=this.onPageScrollStateChanged),o.a.createElement("div",I({nativeName:"ViewPager",ref:function(t){e.instance=t}},i),a)}}]),n}(o.a.Component);function er(){var e=$.platform.Localization;return!!e&&1===e.direction}var tr={caretColor:"caret-color"},nr=function(e){x(n,e);var t=w(n);function n(e){var r;return T(this,n),(r=t.call(this,e)).instance=null,r._lastNativeText="",r.onChangeText=r.onChangeText.bind(E(r)),r.onKeyboardWillShow=r.onKeyboardWillShow.bind(E(r)),r}return z(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.value,n=e.autoFocus;this._lastNativeText=t,n&&this.focus()}},{key:"componentWillUnmount",value:function(){this.blur()}},{key:"getValue",value:function(){var e=this;return new Promise((function(t){mn(e.instance,"getValue",(function(e){return t(e.text)}))}))}},{key:"setValue",value:function(e){return mn(this.instance,"setValue",[e]),e}},{key:"focus",value:function(){mn(this.instance,"focusTextInput",[])}},{key:"blur",value:function(){mn(this.instance,"blurTextInput",[])}},{key:"isFocused",value:function(){var e=this;return new Promise((function(t){mn(e.instance,"isFocused",(function(e){return t(e.value)}))}))}},{key:"showInputMethod",value:function(){}},{key:"hideInputMethod",value:function(){}},{key:"clear",value:function(){mn(this.instance,"clear",[])}},{key:"render",value:function(){var e=this,t=I({},this.props);return["underlineColorAndroid","placeholderTextColor","placeholderTextColors","caretColor","caret-color"].forEach((function(n){var r=n,i=e.props[n];"string"==typeof e.props[n]&&(tr[n]&&(r=tr[n]),Array.isArray(t.style)?t.style.push({[r]:i}):t.style&&"object"===M(t.style)?t.style[r]=i:t.style={[r]:i},delete t[n])})),er()&&(t.style?"object"!==M(t.style)||Array.isArray(t.style)||t.style.textAlign||(t.style.textAlign="right"):t.style={textAlign:"right"}),o.a.createElement("div",I(I({nativeName:"TextInput"},t),{},{ref:function(t){e.instance=t},onChangeText:this.onChangeText,onKeyboardWillShow:this.onKeyboardWillShow}))}},{key:"onChangeText",value:function(e){var t=this.props.onChangeText;"function"==typeof t&&t(e.text),this.instance&&(this._lastNativeText=e.text)}},{key:"onKeyboardWillShow",value:function(e){var t=this.props.onKeyboardWillShow;"function"==typeof t&&t(e)}}]),n}(o.a.Component),rr=_n.window.scale,ir=Math.round(.4*rr)/rr;function or(e){return e}0===ir&&(ir=1/rr);var ar=Object.freeze({__proto__:null,get hairlineWidth(){return ir},create:or}),lr={baseVertical:{flexGrow:1,flexShrink:1,flexDirection:"column",overflow:"scroll"},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:"row",overflow:"scroll"},contentContainerVertical:{collapsable:!1,flexDirection:"column"},contentContainerHorizontal:{collapsable:!1,flexDirection:"row"}},ur=function(e){x(n,e);var t=w(n);function n(){var e;return T(this,n),(e=t.apply(this,arguments)).instance=null,e}return z(n,[{key:"scrollTo",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e,i=t,o=n;"object"===M(e)&&e&&(r=e.x,i=e.y,o=e.animated),r=r||0,i=i||0,o=!!o,mn(this.instance,"scrollTo",[r,i,o])}},{key:"scrollToWithDuration",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;mn(this.instance,"scrollToWithOptions",[{x:e,y:t,duration:n}])}},{key:"render",value:function(){var e=this,t=this.props,n=t.horizontal,r=t.contentContainerStyle,i=t.children,a=t.style,l=[n?lr.contentContainerHorizontal:lr.contentContainerVertical,r],u=n?Object.assign({},lr.baseHorizontal,a):Object.assign({},lr.baseVertical,a);return n&&(u.flexDirection=er()?"row-reverse":"row"),o.a.createElement("div",I(I({nativeName:"ScrollView",ref:function(t){e.instance=t}},this.props),{},{style:u}),o.a.createElement(Hn,{style:l},i))}}]),n}(o.a.Component),sr={modal:{position:"absolute",collapsable:!1}},cr=function(e){x(n,e);var t=w(n);function n(e){var r;return T(this,n),(r=t.call(this,e)).eventSubscription=null,r}return z(n,[{key:"componentDidMount",value:function(){var e=this;"ios"===_n.platform.OS&&(this.eventSubscription=new Fe("modalDismissed"),this.eventSubscription.addCallback((function(t){var n=e.props,r=n.primaryKey,i=n.onDismiss;t.primaryKey===r&&"function"==typeof i&&i()})))}},{key:"componentWillUnmount",value:function(){"ios"===_n.platform.OS&&this.eventSubscription&&this.eventSubscription.unregister()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.visible,r=e.transparent,i=e.animated,a=this.props.animationType;if(!1===n)return null;var l={backgroundColor:r?"transparent":"white"};return a||(a="none",i&&(a="slide")),o.a.createElement("div",I({nativeName:"Modal",animationType:a,transparent:r,style:[sr.modal,l]},this.props),t)}}]),n}(o.a.Component);cr.defaultProps={visible:!0};var fr=function(e){x(n,e);var t=w(n);function n(e){var r;T(this,n);var i=(r=t.call(this,e)).props.requestFocus;return r.state={isFocus:!!i},r.handleFocus=r.handleFocus.bind(E(r)),r}return z(n,[{key:"render",value:function(){var e,t,n,r,i=this.props,a=i.requestFocus,l=i.children,u=i.nextFocusDownId,s=i.nextFocusUpId,c=i.nextFocusLeftId,f=i.nextFocusRightId,d=i.style,p=i.noFocusStyle,h=i.focusStyle,m=i.onClick,v=this.state.isFocus,y=o.a.Children.only(l);(null===(t=null===(e=null==y?void 0:y.child)||void 0===e?void 0:e.memoizedProps)||void 0===t?void 0:t.nativeName)?r=y.child.memoizedProps.nativeName:(null===(n=null==y?void 0:y.type)||void 0===n?void 0:n.displayName)&&(r=y.type.displayName);var g=u&&hn(u),b=s&&hn(s),w=c&&hn(c),k=f&&hn(f),E=d;if("Text"!==r){var S=y.memoizedProps.style;E=I(I({},E),S)}if(Object.assign(E,v?h:p),"Text"===r)return o.a.createElement(Hn,{focusable:!0,nextFocusDownId:g,nextFocusUpId:b,nextFocusLeftId:w,nextFocusRightId:k,requestFocus:a,style:E,onClick:m,onFocus:this.handleFocus},y);var C=y.memoizedProps.children;return o.a.cloneElement(y,{nextFocusDownId:u,nextFocusUpId:s,nextFocusLeftId:c,nextFocusRightId:f,requestFocus:a,onClick:m,focusable:!0,children:C,style:E,onFocus:this.handleFocus})}},{key:"handleFocus",value:function(e){var t=this.props.onFocus;"function"==typeof t&&t(e),this.state.isFocus!==e.focus&&this.setState({isFocus:e.focus})}}]),n}(o.a.Component);function dr(e){return o.a.createElement("iframe",I({title:"hippy",nativeName:"WebView"},e))}var pr,hr=function(){function e(t,n,r){var i=this;if(T(this,e),this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),pr||(pr=new Fe("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!t||"string"!=typeof t)throw new TypeError("Invalid WebSocket url");var o=I({},r);if(void 0!==n)if(Array.isArray(n)&&n.length>0)o["Sec-WebSocket-Protocol"]=n.join(",");else{if("string"!=typeof n)throw new TypeError("Invalid WebSocket protocols");o["Sec-WebSocket-Protocol"]=n}var a={headers:o,url:t};this.url=t,this.webSocketCallbackId=pr.addCallback(this.onWebSocketEvent),V.callNativeWithPromise("websocket","connect",a).then((function(e){e&&0===e.code&&"number"==typeof e.id&&(i.webSocketId=e.id)}))}return z(e,[{key:"close",value:function(e,t){1===this.readyState&&(this.readyState=2,V.callNative("websocket","close",{id:this.webSocketId,code:e,reason:t}))}},{key:"send",value:function(e){if(1===this.readyState){if("string"!=typeof e)throw new TypeError("Unsupported websocket data type: ".concat(M(e)));V.callNative("websocket","send",{id:this.webSocketId,data:e})}}},{key:"onopen",set:function(e){this.webSocketCallbacks.onOpen=e}},{key:"onclose",set:function(e){this.webSocketCallbacks.onClose=e}},{key:"onerror",set:function(e){this.webSocketCallbacks.onError=e}},{key:"onmessage",set:function(e){this.webSocketCallbacks.onMessage=e}},{key:"onWebSocketEvent",value:function(e){if("object"===M(e)&&e.id===this.webSocketId){var t=e.type;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,pr.removeCallback(this.webSocketCallbackId));var n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}}]),e}();function mr(e){return o.a.createElement("li",I({nativeName:"WaterfallItem"},e))}var vr=function(e){x(n,e);var t=w(n);function n(e){var r;return T(this,n),(r=t.call(this,e)).instance=null,r.pullHeader=null,r.pullFooter=null,r.handleInitialListReady=r.handleInitialListReady.bind(E(r)),r}return z(n,[{key:"scrollToIndex",value:function(e){var t=e.index,n=void 0===t?0:t,r=e.animated,i=void 0===r||r;mn(this.instance,"scrollToIndex",[n,n,i])}},{key:"scrollToContentOffset",value:function(e){var t=e.xOffset,n=void 0===t?0:t,r=e.yOffset,i=void 0===r?0:r,o=e.animated,a=void 0===o||o;mn(this.instance,"scrollToContentOffset",[n,i,a])}},{key:"expandPullHeader",value:function(){this.pullHeader&&this.pullHeader.expandPullHeader()}},{key:"collapsePullHeader",value:function(e){this.pullHeader&&this.pullHeader.collapsePullHeader(e)}},{key:"expandPullFooter",value:function(){this.pullFooter&&this.pullFooter.expandPullFooter()}},{key:"collapsePullFooter",value:function(){this.pullFooter&&this.pullFooter.collapsePullFooter()}},{key:"render",value:function(){var e=this,t=this.props,n=t.style,r=void 0===n?{}:n,i=t.renderBanner,a=t.numberOfColumns,l=void 0===a?2:a,u=t.columnSpacing,s=void 0===u?0:u,c=t.interItemSpacing,f=void 0===c?0:c,d=t.numberOfItems,p=void 0===d?0:d,h=t.preloadItemNumber,m=void 0===h?0:h,v=t.renderItem,y=t.renderPullHeader,g=t.renderPullFooter,w=t.getItemType,k=t.getItemKey,E=t.getItemStyle,S=t.contentInset,C=void 0===S?{top:0,left:0,bottom:0,right:0}:S,x=t.onItemLayout,N=t.onHeaderPulling,P=t.onHeaderReleased,_=t.onFooterPulling,A=t.onFooterReleased,T=t.containPullHeader,R=void 0!==T&&T,z=t.containPullFooter,O=void 0!==z&&z,j=t.containBannerView,F=void 0!==j&&j,H=I(I({},L(t,b)),{},{style:r,numberOfColumns:l,columnSpacing:s,interItemSpacing:f,preloadItemNumber:m,contentInset:C,containPullHeader:R,containPullFooter:O,containBannerView:F}),M=[];if("function"==typeof i){var B=i();if(B)if("ios"===_n.platform.OS)M.push(o.a.createElement(Hn,{key:"bannerView"},o.a.cloneElement(B))),H.containBannerView=!0;else if("android"===_n.platform.OS){M.push(o.a.createElement(mr,I({},{key:"bannerView",fullSpan:!0,style:{}}),o.a.cloneElement(B)))}}if("function"==typeof v){for(var D=this.getPullHeader(y,N,P),U=this.getPullFooter(g,_,A),W=0;W0||e.didTimeout)&&function e(t){"number"==typeof t?te(t):t&&(te(t.nodeId),Array.isArray(t.childNodes)&&t.childNodes.forEach((function(t){return e(t)})))}(t)}),{timeout:50})}var oe=0,ae=1,le=-1,ue=1,se={onTouchStart:["onTouchStart","onTouchDown"],onPress:["onPress","onClick"]},ce={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3},fe={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"};function de(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}function pe(e){return e&&"Text"===e.nativeName||-1!==["p","span"].indexOf(e.tagName)}var he=new RegExp(/^\d+$/),me=!1;function ve(){var e;xe()&&(e=console).log.apply(e,arguments)}function ye(){}function ge(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,(function(e){return String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16))}))}var be=new RegExp("^on.+Capture$");function we(e){return be.test(e)}var ke=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function Ee(e){if("number"==typeof e)return e;if("string"==typeof e&&ke.test(e))try{return parseFloat(e)}catch(t){return e}return e}function Se(e){return"[object Function]"===Object.prototype.toString.call(e)}function Ce(e){e}function xe(){return!1}function Ne(){return me}function Pe(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){return"".concat("hpfile://","./").concat(e)}return e}function Ie(e){return"string"==typeof e?""!==e.trim():null!=e}var _e=function(){return T((function e(t){L(this,e),this.handlerContainer={},this.nextIdForHandler=0,this.eventName=t}),[{key:"getEventListeners",value:function(){var e=this;return Object.keys(this.handlerContainer).filter((function(t){return e.handlerContainer[t]})).map((function(t){return e.handlerContainer[t]}))}},{key:"getHandlerSize",value:function(){return Object.keys(this.handlerContainer).length}},{key:"addEventHandler",value:function(e,t){if(!e)throw new TypeError("Invalid arguments for addEventHandler");var n=this.nextIdForHandler;this.nextIdForHandler+=1;var r={id:n,eventHandler:e,context:t},i="eventHandler_".concat(n);return this.handlerContainer[i]=r,n}},{key:"notifyEvent",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r-1){var c=new Le(e,u,l);Object.assign(c,{eventPhase:s},i),n.memoizedProps[e](c),!c.bubbles&&o&&o.stopPropagation()}if(Re(e,n)&&!we(e)&&[ce.AT_TARGET,ce.BUBBLING_PHASE].indexOf(s)>-1){var f=new Le(e,u,l);Object.assign(f,{eventPhase:s},i),"boolean"!=typeof(a=n.memoizedProps[e](f))&&(a=!Ne()),f.bubbles||(a=!0),a&&o&&o.stopPropagation()}}catch(e){console.error(e)}}(o,0,u,s,l,t):function(e,t,n,r,i,o){var a=!1,l=ne(r),u=ne(n);try{var s=o.eventPhase;if(Re(e,n)&&!we(e)&&[ce.AT_TARGET,ce.BUBBLING_PHASE].indexOf(s)>-1){var c=new Le(e,u,l);Object.assign(c,{eventPhase:s},i),n.memoizedProps[e](c),a=!Ne(),c.bubbles||(a=!0),a&&o&&o.stopPropagation()}}catch(e){console.error(e)}}(o,0,u,s,l,t);else ye.apply(void 0,Te.concat(["receiveComponentEvent","currentTargetNode or targetNode not exist"]))}else ye.apply(void 0,Te.concat(["receiveComponentEvent","nativeEvent or domEvent not exist"]))}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=Oe);var je=function(){return T((function e(t,n){L(this,e),this.callback=t,this.bindListener=n}),[{key:"remove",value:function(){"number"==typeof this.callback&&this.bindListener&&(this.bindListener.removeCallback(this.callback),this.bindListener=void 0)}}])}(),Fe=function(){return T((function e(t){L(this,e),this.eventName=t,this.listenerIdList=[]}),[{key:"unregister",value:function(){var e=Oe.getHippyEventHub(this.eventName);if(!e)throw new ReferenceError("No listeners for ".concat(this.eventName));for(var t=this.listenerIdList.length,n=0;n1?n-1:0),i=1;i255?255:t}function Ye(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Xe(e,t,n){var r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Je(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Xe(i,r,e+1/3),a=Xe(i,r,e),l=Xe(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function Ze(e){return(parseFloat(e)%360+360)%360/360}function et(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function tt(e){if(Number.isInteger(e))return e;var t=function(e){var t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Ge.hex6.exec(e),Array.isArray(t)?parseInt("".concat(t[1],"ff"),16)>>>0:Object.hasOwnProperty.call($e,e)?$e[e]:(t=Ge.rgb.exec(e),Array.isArray(t)?(Ke(t[1])<<24|Ke(t[2])<<16|Ke(t[3])<<8|255)>>>0:(t=Ge.rgba.exec(e))?(Ke(t[1])<<24|Ke(t[2])<<16|Ke(t[3])<<8|Ye(t[4]))>>>0:(t=Ge.hex3.exec(e))?parseInt("".concat(t[1]+t[1]+t[2]+t[2]+t[3]+t[3],"ff"),16)>>>0:(t=Ge.hex8.exec(e))?parseInt(t[1],16)>>>0:(t=Ge.hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Ge.hsl.exec(e))?(255|Je(Ze(t[1]),et(t[2]),et(t[3])))>>>0:(t=Ge.hsla.exec(e))?(Je(Ze(t[1]),et(t[2]),et(t[3]))|Ye(t[4]))>>>0:null))}(e);return null===t?0:t=(t<<24|t>>>8)>>>0}function nt(e){return Array.isArray(e)?e.map((function(e){return tt(e)})):[0]}function rt(e){return"loop"===e?-1:e}function it(e,t){return"color"===e&&["number","string"].indexOf(F(t))>=0?tt(t):t}var ot="animationstart",at="animationend",lt="animationcancel",ut="animationrepeat",st=function(){function t(n){var r,i;if(L(this,t),(null===(r=n.startValue)||void 0===r?void 0:r.constructor)&&"Animation"===n.startValue.constructor.name)i={animationId:n.startValue.animationId};else{var o=n.startValue;i=it(n.valueType,o)}var a=it(n.valueType,n.toValue);this.mode=n.mode||"timing",this.delay=n.delay||0,this.startValue=i||0,this.toValue=a||0,this.valueType=n.valueType||void 0,this.duration=n.duration||0,this.direction=n.direction||"center",this.timingFunction=n.timingFunction||"linear",this.repeatCount=rt(n.repeatCount||0),this.inputRange=n.inputRange||[],this.outputRange=n.outputRange||[],this.animation=new e.Hippy.Animation(Object.assign({mode:this.mode,delay:this.delay,startValue:this.startValue,toValue:this.toValue,duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{})),this.animationId=this.animation.getId(),this.destroy=this.destroy.bind(this),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}return T(t,[{key:"removeEventListener",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(ot),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(at),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(lt),"function"==typeof this.onAnimationRepeatCallback&&this.animation.removeEventListener(ut)}},{key:"start",value:function(){var e=this;if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(ot,(function(){"function"==typeof e.onAnimationStartCallback&&e.onAnimationStartCallback()})),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(at,(function(){"function"==typeof e.onAnimationEndCallback&&e.onAnimationEndCallback()})),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener(lt,(function(){"function"==typeof e.onAnimationCancelCallback&&e.onAnimationCancelCallback()})),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener(ut,(function(){"function"==typeof e.onAnimationRepeatCallback&&e.onAnimationRepeatCallback()})),this.animation.start()}},{key:"destroy",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}},{key:"pause",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}},{key:"resume",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}},{key:"updateAnimation",value:function(e){var n=this;if(!this.animation)throw new Error("animation has not been initialized yet");if("object"!==F(e))throw new TypeError("Invalid arguments");if("string"==typeof e.mode&&e.mode!==this.mode)throw new TypeError("Update animation mode not supported");Object.keys(e).forEach((function(r){var i=e[r];if("startValue"===r){var o;if(e.startValue instanceof t)o={animationId:e.startValue.animationId};else{var a=e.startValue;o=it(n.valueType,a)}n.startValue=o||0}else"repeatCount"===r?n.repeatCount=rt(e.repeatCount||0):Object.defineProperty(n,r,{value:i})})),this.animation.updateAnimation(Object.assign({mode:this.mode,delay:this.delay,startValue:this.startValue,toValue:it(this.valueType,this.toValue),duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{}))}},{key:"onAnimationStart",value:function(e){this.onAnimationStartCallback=e}},{key:"onAnimationEnd",value:function(e){this.onAnimationEndCallback=e}},{key:"onAnimationCancel",value:function(e){this.onAnimationCancelCallback=e}},{key:"onAnimationRepeat",value:function(e){this.onAnimationRepeatCallback=e}}])}(),ct="animationstart",ft="animationend",dt="animationcancel",pt="animationrepeat",ht=function(){return T((function t(n){var r=this;L(this,t),this.animationList=[],null==n||n.children.forEach((function(e){r.animationList.push({animationId:e.animation.animationId,follow:e.follow||!1})})),this.animation=new e.Hippy.AnimationSet({repeatCount:rt(n.repeatCount||0),children:this.animationList}),this.animationId=this.animation.getId(),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}),[{key:"removeEventListener",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(ct),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(ft),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(dt),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(pt)}},{key:"start",value:function(){var e=this;if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(ct,(function(){"function"==typeof e.onAnimationStartCallback&&e.onAnimationStartCallback()})),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(ft,(function(){"function"==typeof e.onAnimationEndCallback&&e.onAnimationEndCallback()})),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener(dt,(function(){"function"==typeof e.onAnimationCancelCallback&&e.onAnimationCancelCallback()})),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener(dt,(function(){"function"==typeof e.onAnimationRepeatCallback&&e.onAnimationRepeatCallback()})),this.animation.start()}},{key:"destory",value:function(){this.destroy()}},{key:"destroy",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}},{key:"pause",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}},{key:"resume",value:function(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}},{key:"onAnimationStart",value:function(e){this.onAnimationStartCallback=e}},{key:"onAnimationEnd",value:function(e){this.onAnimationEndCallback=e}},{key:"onAnimationCancel",value:function(e){this.onAnimationCancelCallback=e}},{key:"onAnimationRepeat",value:function(e){this.onAnimationRepeatCallback=e}}])}(),mt={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode"),moveNode:Symbol("moveNode")},vt=!0,yt=[];function gt(e){return!!fe[e]}function bt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;e.forEach((function(e){if(e){var n=e.id;e.eventList.forEach((function(e){var r,i=e.name,o=e.type,a=e.listener,l=e.isCapture;r=gt(i)?fe[i]:de(i),o===ae&&t.removeEventListener(n,r,a),o===oe&&t.addEventListener(n,r,a,l)}))}}))}function wt(e,t){0}function kt(t){var n=function(e){for(var t=[],n=0;n0&&void 0!==arguments[0]&&arguments[0];if(vt)if(vt=!1,0!==yt.length){var t=J();e?(kt(t),yt=[],vt=!0):Promise.resolve().then((function(){kt(t),yt=[],vt=!0}))}else vt=!0}function St(e){var t=e.attributes;t.children;return I(t,u)}function Ct(e){var t=void 0,n=e.events;if(n){var r=[];Object.keys(n).forEach((function(t){var i=n[t],o=i.name,a=i.type,l=i.isCapture,u=i.listener;e.isListenerHandled(t,a)||(e.setListenerHandledType(t,a),r.push({name:o,type:a,isCapture:l,listener:u}))})),t={id:e.nodeId,eventList:r}}return t}function xt(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.nativeName)return[];if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: ".concat(t.tagName));var i=t.style;if(t.parentNode instanceof Bt){var o=Object.assign({},t.parentNode.inheritStyle,t.parentNode.style),a=t.style,l=t.inheritStyle,u=["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"];u.forEach((function(e){!Ie(a[e])&&Ie(o[e])&&(l[e]=o[e])})),pe(t)&&(i=Object.assign({},l,a))}var s={id:t.nodeId,pId:(null===(n=t.parentNode)||void 0===n?void 0:n.nodeId)||e,name:t.nativeName,props:N(N({},St(t)),{},{style:i}),tagName:t.tagName},c=Ct(t),f=void 0,d=[s,r];return[d,c,f]}function Nt(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=[],o=[],a=[];return t.traverseChildren((function(t,r){var l=_(xt(e,t,r),3),u=l[0],s=l[1],c=l[2];u&&i.push(u),s&&o.push(s),c&&a.push(c),"function"==typeof n&&n(t)}),r),[i,o,a]}function Pt(e){return!!H&&e instanceof H.containerInfo.constructor}function It(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e&&t&&!t.meta.skipAddToDom){var r=J(),i=Pt(e)&&!e.isMounted,o=e.isMounted&&!t.isMounted;if(i||o){var a=Nt(r,t,(function(e){e.isMounted||(e.isMounted=!0)}),n),l=_(a,3),u=l[0],s=l[1],c=l[2];yt.push({type:mt.createNode,nodes:u,eventNodes:s,printedNodes:c})}}}function _t(e){if(e.isMounted){var t=_(xt(J(),e),3),n=t[0],r=t[1];t[2];n&&yt.push({type:mt.updateNode,nodes:[n],eventNodes:[r],printedNodes:[]})}}function Lt(e){if(e.isMounted){var t=_(Nt(J(),e)||{},3),n=t[0],r=t[1],i=t[2];n&&yt.push({type:mt.updateNode,nodes:n,eventNodes:r,printedNodes:i})}}var At=0;var Tt=function(){return T((function e(){L(this,e),this.meta={component:{}},this.index=0,this.childNodes=[],this.parentNode=null,this.mounted=!1,this.nodeId=((At+=1)%10==0&&(At+=1),At)}),[{key:"toString",value:function(){return this.constructor.name}},{key:"isMounted",get:function(){return this.mounted},set:function(e){this.mounted=e}},{key:"insertBefore",value:function(e,t){if(!e)throw new Error("Can't insert child.");if(!e.meta.skipAddToDom){if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't insert child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't insert child, because it already has a different parent.");var n=this.childNodes.indexOf(t);return e.parentNode=this,this.childNodes.splice(n,0,e),It(this,e,{refId:t.nodeId,relativeToRef:le})}}},{key:"moveChild",value:function(e,t){if(!e)throw new Error("Can't move child.");if(!e.meta.skipAddToDom){if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't move child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't move child, because it already has a different parent.");var n=this.childNodes.indexOf(e);if(this.childNodes.indexOf(t)===n)return e;this.childNodes.splice(n,1);var r=this.childNodes.indexOf(t);return this.childNodes.splice(r,0,e),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e&&t&&!t.meta.skipAddToDom){var r=J(),i={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},o=[[i,n]],a=[];yt.push({printedNodes:a,type:mt.moveNode,nodes:o,eventNodes:[]})}}(this,e,{refId:t.nodeId,relativeToRef:le})}}},{key:"appendChild",value:function(e){if(!e)throw new Error("Can't append child.");if(!e.meta.skipAddToDom){if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");e.parentNode=this;var t=this.childNodes.length-1,n=this.childNodes[t];this.childNodes.push(e),It(this,e,n&&{refId:n.nodeId,relativeToRef:ue})}}},{key:"removeChild",value:function(e){if(!e)throw new Error("Can't remove child.");if(!e.meta.skipAddToDom){if(!e.parentNode)throw new Error("Can't remove child, because it has no parent.");if(e.parentNode!==this)throw new Error("Can't remove child, because it has a different parent.");var t=this.childNodes.indexOf(e);this.childNodes.splice(t,1),function(e,t){if(t&&!t.meta.skipAddToDom){t.isMounted=!1;var n=J(),r={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:n},i=[[r,{}]],o=[];yt.push({printedNodes:o,type:mt.deleteNode,nodes:i,eventNodes:[]})}}(0,e)}}},{key:"findChild",value:function(e){if(e(this))return this;if(this.childNodes.length)for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:Ft,n=parseFloat(e),r=e||"",i=e.split("."),o=_(i,2),a=o[1];switch(a&&a.length>2&&(r=n.toFixed(2)),t){case Ot:r="".concat((360*n).toFixed(2));break;case jt:r="".concat((180/Math.PI*n).toFixed(2))}return r}(a,l):o&&void 0!==zt[o]&&(r=zt[o]),r}}function Mt(e){var t=_((e||"").replace(/\s+/g," ").trim().split(/\s+(?![^(]*?\))/),2),n=t[0],r=t[1],i=/^([+-]?\d+\.?\d*)%$/g;return!n||i.exec(n)||r?n&&i.exec(r)?{ratio:parseFloat(r.split("%")[0])/100,color:tt(n)}:void 0:{color:tt(n)}}var Bt=function(e){function t(e){var n;return L(this,t),(n=w(this,t)).id="",n.style={},n.inheritStyle={},n.attributes={},n.events={},n.tagName=e,n}return S(t,e),T(t,[{key:"nativeName",get:function(){return this.meta.component.name}},{key:"toString",value:function(){return"".concat(this.tagName,":(").concat(this.nativeName,")")}},{key:"setListenerHandledType",value:function(e,t){this.events[e]&&(this.events[e].handledType=t)}},{key:"isListenerHandled",value:function(e,t){return!this.events[e]||t===this.events[e].handledType}},{key:"hasAttribute",value:function(e){return!!this.attributes[e]}},{key:"getAttribute",value:function(e){return this.attributes[e]}},{key:"setStyleAttribute",value:function(e){var t=this;this.style={};var n=e;if(!Array.isArray(n)&&Object.hasOwnProperty.call(n,0)){var r=[],i={};Object.keys(n).forEach((function(e){var t;t=e,he.test(t)?r.push(n[e]):i[e]=n[e]})),n=[].concat(r,[i])}Array.isArray(n)||(n=[n]);var o={};n.forEach((function(e){Array.isArray(e)?e.forEach((function(e){o=N(N({},o),e)})):"object"===F(e)&&e&&(o=N(N({},o),e))})),Object.keys(o).forEach((function(e){var n=o[e];if(Object.prototype.hasOwnProperty.call(Rt,e)&&(e=Rt[e]),"transform"===e){var r={};if(!Array.isArray(n))throw new TypeError("transform only support array args");n.forEach((function(e){Object.keys(e).forEach((function(t){var n=e[t];n instanceof st||n instanceof ht?r[t]={animationId:n.animationId}:null===n?r[t]&&delete r[t]:void 0!==n&&(r[t]=n)}))}));var i=Object.keys(r);i.length&&(Array.isArray(t.style.transform)||(t.style.transform=[]),i.forEach((function(e){return t.style.transform.push({[e]:r[e]})})))}else if(null===n&&void 0!==t.style[e])t.style[e]=void 0;else if(n instanceof st||n instanceof ht)t.style[e]={animationId:n.animationId};else if(e.toLowerCase().indexOf("colors")>-1)t.style[e]=nt(n);else if(e.toLowerCase().indexOf("color")>-1)t.style[e]=tt(n);else if("fontWeight"===e&&n)t.style[e]="string"!=typeof n?n.toString():n;else if("backgroundImage"===e&&n)t.style=function(e,t,n){if(0===t.indexOf("linear-gradient")){var r=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),i=[];n.linearGradient=n.linearGradient||{},r.forEach((function(e,t){if(0===t){var r=Ht(e);if(r)n.linearGradient.angle=r;else{n.linearGradient.angle="180";var o=Mt(e);o&&i.push(o)}}else{var a=Mt(e);a&&i.push(a)}})),n.linearGradient.colorStopList=i}else n[e]=Pe(t);return n}(e,n,t.style);else if("textShadowOffset"===e){var a=n||{},l=a.x,u=void 0===l?0:l,s=a.width,c=void 0===s?0:s,f=a.y,d=void 0===f?0:f,p=a.height,h=void 0===p?0:p;t.style[e]={width:u||c,height:d||h}}else["textShadowOffsetX","textShadowOffsetY"].indexOf(e)>=0?t.style=function(e,t,n){return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[{textShadowOffsetX:"width",textShadowOffsetY:"height"}[e]]:t||0}),n}(e,n,t.style):t.style[e]=n}))}},{key:"setAttributes",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Array.isArray(t)&&t.length>0&&(t.forEach((function(t){if(Array.isArray(t)){var n=_(t,2),r=n[0],i=n[1];e.setAttribute(r,i,{notToNative:!0})}})),_t(this))}},{key:"parseAnimationStyleProp",value:function(e){var t=!1;Object.keys(e).some((function(n){var r=e[n];if(r&&Array.isArray(r)&&"transform"===n)for(var i=0;i=0},action:function(){return t===n.id||(n.id=t,Lt(n)),!0}},{match:function(){return["value","defaultValue","placeholder"].indexOf(e)>=0},action:function(){return n.attributes[e]=ge(t),!1}},{match:function(){return["text"].indexOf(e)>=0},action:function(){return n.attributes[e]=t,!1}},{match:function(){return["style"].indexOf(e)>=0},action:function(){if("object"!==F(t)||null==t)return!0;n.setStyleAttribute(t);return["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"].some((function(e){return Object.prototype.hasOwnProperty.call(t,e)}))&&Lt(n),!1}},{match:function(){return!0},action:function(){if("function"==typeof t){var r=function(e){return we(e)&&(e=e.replace("Capture","")),se[e]?se[e][1]:e}(e);n.events[e]?n.events[e]&&n.events[e].type!==oe&&(n.events[e].type=oe):n.events[e]={name:r,type:oe,isCapture:we(e),listener:(i=r,o=e,function(e){var t=e.id,n=e.currentId,r=e.params,a=e.eventPhase,l={id:t,nativeName:i,originalName:o,params:r,currentId:n,eventPhase:a};Oe.receiveComponentEvent(l,e)})}}else{if(function(e,t){return void 0!==t&&"object"===F(t[e])&&!!t[e]}(e,n.events)&&"function"!=typeof t)return n.events[e].type=ae,!1;n.attributes[e]=t}var i,o;return!1}}].some((function(e){return!!e.match()&&(r=e.action(),!0)})),r}},{key:"setAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{if("boolean"==typeof this.attributes[e]&&""===t&&(t=!0),void 0===e)return void(!n.notToNative&&_t(this));var r=this.parseAttributeProp(e,t);if(r)return;this.parseAnimationStyleProp(this.style),!n.notToNative&&_t(this)}catch(e){}}},{key:"removeAttribute",value:function(e){delete this.attributes[e]}},{key:"setStyle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null!==t){var r=t,i=e;Object.prototype.hasOwnProperty.call(Rt,e)&&(i=Rt[e]),"string"==typeof r&&(r=t.trim(),r=i.toLowerCase().indexOf("colors")>-1?nt(r):i.toLowerCase().indexOf("color")>-1?tt(r):Ee(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||_t(this))}else delete this.style[e]}},{key:"setNativeProps",value:function(e){var t=this;if(e){var n=e.style;if(n){var r=n;Object.keys(r).forEach((function(e){t.setStyle(e,r[e],!0)})),_t(this),Et(!0)}}}},{key:"setText",value:function(e){if("string"!=typeof e)try{e=e.toString()}catch(e){throw new Error("Only string type is acceptable for setText")}return(e=e.trim())||this.getAttribute("text")?(e=(e=ge(e)).replace(/ /g," ").replace(/Â/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}])}(Tt),Dt=function(e){function t(){var e;return L(this,t),(e=w(this,t)).documentElement=new Bt("document"),e}return S(t,e),T(t,[{key:"createElement",value:function(e){return new Bt(e)}},{key:"createElementNS",value:function(e,t){return new Bt("".concat(e,":").concat(t))}}])}(Tt);Dt.createElement=Dt.prototype.createElement,Dt.createElementNS=Dt.prototype.createElementNS;var Ut=Array.isArray,Wt=Object.keys,Vt=Object.prototype.hasOwnProperty;var $t=setTimeout,Qt=clearTimeout,qt=Object.freeze({__proto__:null,commitMutationEffectsBegin:function(){},commitMutationEffectsComplete:function(){Et(!0)},getCurrentEventPriority:function(){return 16},scheduleTimeout:$t,cancelTimeout:Qt,noTimeout:-1,afterActiveInstanceBlur:function(){},appendChild:function(e,t){e.childNodes.indexOf(t)>=0&&e.removeChild(t),e.appendChild(t)},appendChildToContainer:function(e,t){e.appendChild(t)},appendInitialChild:function(e,t){e.appendChild(t)},beforeActiveInstanceBlur:function(){},commitMount:function(){},commitTextUpdate:function(){},commitUpdate:function(e,t,n,r,i,o){ee(o,e.nodeId);var a=Object.keys(t||{});if(0!==a.length){var l=a.map((function(e){return[e,t[e]]}));e.setAttributes(l)}},clearContainer:function(){},createContainerChildSet:function(){},createInstance:function(e,t,n,r,i){var o=n.createElement(e);return Object.keys(t).forEach((function(e){switch(e){case"children":break;case"nativeName":o.meta.component.name=t.nativeName;break;default:o.setAttribute(e,t[e])}})),[5,7].indexOf(i.tag)<0&&(o.meta.skipAddToDom=!0),ee(i,o.nodeId),o},createTextInstance:function(e,t,n,r){var i=t.createElement("p");return i.setAttribute("text",ge(e)),i.meta={component:{name:"Text"}},ee(r,i.nodeId),i},detachDeletedInstance:function(){},finalizeContainerChildren:function(){},finalizeInitialChildren:function(){return!0},getChildHostContext:function(){return{}},getPublicInstance:function(e){return e},getInstanceFromNode:function(){throw new Error("Not yet implemented.")},getFundamentalComponentInstance:function(){throw new Error("Not yet implemented.")},getRootHostContext:function(){return{}},hideInstance:function(e){var t={style:{display:"none"}};Object.keys(t).forEach((function(n){return e.setAttribute(n,t[n])}))},hideTextInstance:function(){throw new Error("Not yet implemented.")},insertBefore:function(e,t,n){e.childNodes.indexOf(t)>=0?e.moveChild(t,n):e.insertBefore(t,n)},isOpaqueHydratingObject:function(){throw new Error("Not yet implemented")},makeClientId:function(){throw new Error("Not yet implemented")},makeClientIdInDEV:function(){throw new Error("Not yet implemented")},makeOpaqueHydratingObject:function(){throw new Error("Not yet implemented.")},mountFundamentalComponent:function(){throw new Error("Not yet implemented.")},prepareForCommit:function(){return null},preparePortalMount:function(){},prepareUpdate:function(e,t,n,r){var i={};return Object.keys(n).forEach((function(e){var t=n[e],o=r[e];null!=t&&null==o&&(i[e]=o)})),Object.keys(r).forEach((function(e){var t=n[e],o=r[e];switch(e){case"children":t===o||"number"!=typeof o&&"string"!=typeof o||(i[e]=o);break;default:null!=o&&null==t?i[e]=o:"function"==typeof o||function e(t,n){if(t===n)return!0;if(t&&n&&"object"==F(t)&&"object"==F(n)){var r,i,o,a=Ut(t),l=Ut(n);if(a&&l){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=l)return!1;var u=t instanceof Date,s=n instanceof Date;if(u!=s)return!1;if(u&&s)return t.getTime()==n.getTime();var c=t instanceof RegExp,f=n instanceof RegExp;if(c!=f)return!1;if(c&&f)return t.toString()==n.toString();var d=Wt(t);if((i=d.length)!==Wt(n).length)return!1;for(r=i;0!=r--;)if(!Vt.call(n,d[r]))return!1;for(r=i;0!=r--;)if(!e(t[o=d[r]],n[o]))return!1;return!0}return t!=t&&n!=n}(t,o)||(i[e]=o)}})),i},replaceContainerChildren:function(){},removeChild:function(e,t){e.removeChild(t),ie(t)},removeChildFromContainer:function(e,t){e.removeChild(t),ie(t)},resetAfterCommit:function(){},resetTextContent:function(){},unmountFundamentalComponent:function(){throw new Error("Not yet implemented.")},updateFundamentalComponent:function(){throw new Error("Not yet implemented.")},unhideTextInstance:function(){throw new Error("Not yet implemented.")},unhideInstance:function(e,t){var n=N(N({},t),{},{style:N(N({},t.style),{},{display:"flex"})});Object.keys(n).forEach((function(t){return e.setAttribute(t,n[t])}))},shouldDeprioritizeSubtree:function(){return!0},shouldUpdateFundamentalComponent:function(){throw new Error("Not yet implemented.")},shouldSetTextContent:function(e,t){if(t&&"Text"===t.nativeName||-1!==["p","span"].indexOf(e)){var n=t.children;return"string"==typeof n||"number"==typeof n}return!1}}),Gt=l()(N(N({},qt),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:function(){},cancelDeferredCallback:function(){}}));var Kt=Object.freeze({__proto__:null,getString:function(){return U.callNativeWithPromise("ClipboardModule","getString")},setString:function(e){U.callNative("ClipboardModule","setString",e)}});var Yt=Object.freeze({__proto__:null,getCookies:function(e){return U.callNativeWithPromise("network","getCookie",e)},setCookie:function(e,t,n){var r="";"string"==typeof n&&(r=n),n instanceof Date&&(r=n.toUTCString()),U.callNative("network","setCookie",e,t,r)}});function Xt(e){return U.callNativeWithPromise("ImageLoaderModule","getSize",e)}function Jt(e){U.callNative("ImageLoaderModule","prefetch",e)}var Zt=Object.freeze({__proto__:null,getSize:Xt,prefetch:Jt}),en=new Map,tn=new Me,nn=function(){return T((function e(t,n){L(this,e),this.eventName=t,this.listener=n}),[{key:"remove",value:function(){this.eventName&&this.listener&&(rn(this.eventName,this.listener),this.listener=void 0)}}])}();function rn(e,t){if(t instanceof nn)t.remove();else{var n=e;"change"===e&&(n="networkStatusDidChange");var r=en.get(t);if(r)r.remove(),en.delete(t),tn.listenerSize(n)<1&&U.callNative("NetInfo","removeListener",n)}}var on=Object.freeze({__proto__:null,addEventListener:function(e,t){var n=e;n&&"change"===n&&(n="networkStatusDidChange"),tn.listenerSize(n)<1&&U.callNative("NetInfo","addListener",n);var r=tn.addListener(n,(function(e){t(e)}));return en.set(t,r),new nn(n,t)},removeEventListener:rn,fetch:function(){return U.callNativeWithPromise("NetInfo","getCurrentConnectivity").then((function(e){return e.network_info}))}}),an=V.createNode,ln=V.updateNode,un=V.deleteNode,sn=V.flushBatch,cn=V.endBatch,fn=V.sendRenderError,dn=["%c[native]%c","color: red","color: auto"],pn=function(e){return Z((function(t){return t.stateNode&&t.stateNode.nodeId===e}))};function hn(e){if(e instanceof Bt)return e;if(!e)return null;var t=e._reactInternalFiber||e._reactInternals;if(null==t?void 0:t.child){for(var n=t.child;n&&!(n.stateNode instanceof Bt);)n=n.child;return n&&n.stateNode?n.stateNode:null}return null}function mn(e){var t=e;if("string"==typeof e){"getNodeIdByRef('".concat(e,"') use string ref will affect to performance, recommend use reference to the ref instead");var n=Z((function(t){return!!(t.return&&t.return.ref&&t.return.ref._stringRef)&&t.return.ref._stringRef===e}));if(!n||!n.stateNode)return 0;t=n.stateNode}if(!t.nodeId){var r=hn(t);return r?r.nodeId:0}return t.nodeId}function vn(e,t){var n=e.nativeName,r=e.nodeId;if(!r||!n){var i=hn(e);i&&(r=i.nodeId,n=i.nativeName)}if(!n)throw new Error("callUIFunction is calling a unnamed component");if(!r)throw new Error("callUIFunction is calling a component have no nodeId");for(var o=arguments.length,a=new Array(o>2?o-2:0),l=2;l0&&void 0!==arguments[0]&&arguments[0];me=e}(u),X(f,this.rootContainer);var d=o.a.createElement(r,e);return zn(d,this.rootContainer,null,c),On(this.rootContainer)}}],[{key:"Native",get:function(){return Tn}}])}();Fn.version="unspecified";var Hn={registerComponent:function(e,t){new Fn({appName:e,entryPage:t}).start()}},Mn=function(e){function t(){var e;return L(this,t),(e=w(this,t,arguments)).instance=null,e}return S(t,e),T(t,[{key:"setPressed",value:function(e){vn(this.instance,"setPressed",[e])}},{key:"setHotspot",value:function(e,t){vn(this.instance,"setHotspot",[e,t])}},{key:"render",value:function(){var e=this,t=this.props,n=t.collapsable,r=t.style,i=void 0===r?{}:r,a=I(t,s),l=i,u=a.nativeBackgroundAndroid;return"boolean"==typeof n&&(l.collapsable=n),void 0!==(null==u?void 0:u.color)&&(u.color=tt(u.color)),o.a.createElement("div",N({ref:function(t){e.instance=t},nativeName:"View",style:l},a))}}])}(o.a.Component);function Bn(e,t){var n=e.style,r=I(e,c),i=n;if(n&&(Array.isArray(n)?-1===n.filter((function(e){return"object"===F(e)&&e})).findIndex((function(e){return e.color||e.colors}))&&(i[0].color="#000"):"object"===F(n)&&void 0===n.color&&void 0===n.colors&&(i.color="#000")),r.text="","string"==typeof r.children)r.text=ge(r.children);else if("number"==typeof r.children)r.text=ge(r.children.toString());else if(Array.isArray(r.children)){var a=r.children.filter((function(e){return"string"==typeof e||"number"==typeof e})).join("");a&&(r.text=ge(a),r.children=r.text)}return o.a.createElement("p",N({ref:t,nativeName:"Text",style:i},r))}Bn.displayName="Text";var Dn=o.a.forwardRef(Bn);Dn.displayName="Text";var Un=Object.freeze({__proto__:null,default:Dn}),Wn=function(e){function t(){return L(this,t),w(this,t,arguments)}return S(t,e),T(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.style,r=e.imageStyle,i=e.imageRef,a=e.source,l=e.sources,u=e.src,s=e.srcs,c=e.tintColor,d=e.tintColors,p=I(e,f),h=this.getImageUrls({src:u,srcs:s,source:a,sources:l});if(1===h.length){var m=_(h,1);p.src=m[0]}else h.length>1&&(p.srcs=h);"string"==typeof p.defaultSource&&(p.defaultSource.indexOf("data:image/"),p.defaultSource=Pe(p.defaultSource));var v=N({},n);return this.handleTintColor(v,c,d),p.style=v,t?o.a.createElement(Mn,{style:n},o.a.createElement("img",N(N({},p),{},{nativeName:"Image",alt:"",ref:i,style:[{position:"absolute",left:0,right:0,top:0,bottom:0,width:n.width,height:n.height},r]})),t):o.a.createElement("img",N(N({},p),{},{nativeName:"Image",alt:"",ref:i}))}},{key:"getImageUrls",value:function(e){var t=e.src,n=e.srcs,r=e.source,i=e.sources,o=[];if("string"==typeof t&&o.push(t),Array.isArray(n)&&(o=[].concat(z(o),z(n))),r)if("string"==typeof r)o.push(r);else if("object"===F(r)&&null!==r){var a=r.uri;a&&o.push(a)}return i&&Array.isArray(i)&&i.forEach((function(e){"string"==typeof e?o.push(e):"object"===F(e)&&null!==e&&e.uri&&o.push(e.uri)})),o.length&&(o=o.map((function(e){return Pe(e)}))),o}},{key:"handleTintColor",value:function(e,t,n){t&&Object.assign(e,{tintColor:t}),Array.isArray(n)&&Object.assign(e,{tintColors:n})}}],[{key:"resizeMode",get:function(){return{contain:"contain",cover:"cover",stretch:"stretch",center:"center",repeat:"repeat"}}},{key:"getSize",value:function(e,t,n){if("string"!=typeof e)throw new TypeError("Image.getSize first argument must be a string url");var r=Xt(e);return"function"==typeof t&&r.then((function(e){return t(e.width,e.height)})),"function"==typeof n?r.catch(n):r.catch((function(t){"Failed to get size for image: ".concat(e)})),r}}])}(o.a.Component);Wn.prefetch=Jt;var Vn=function(){return T((function e(){L(this,e),this.Value=e.Value}),null,[{key:"Value",value:function(e){return e}},{key:"timing",value:function(e,t){return new st({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}])}();Vn.View=Mn,Vn.Text=Un,Vn.Image=Wn;var $n={step0:function(e){return e>0?1:0},step1:function(e){return e>=1?1:0},linear:function(){return"linear"},ease:function(){return"ease"},quad:function(e){return Math.pow(e,2)},cubic:function(e){return Math.pow(e,3)},poly:function(e){return function(t){return Math.pow(t,e)}},sin:function(e){return 1-Math.cos(e*Math.PI/2)},circle:function(e){return 1-Math.sqrt(1-e*e)},exp:function(e){return Math.pow(2,10*(e-1))},elastic:function(){return"elastic"},back:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1.70158;return function(t){return t*t*((e+1)*t-e)}},bounce:function(e){var t=e;return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bezier:function(){return"bezier"},in:function(){return"ease-in"},out:function(){return"ease-out"},inOut:function(){return"ease-in-out"}};function Qn(e){return o.a.createElement("li",N({nativeName:"ListViewItem"},e))}var qn=function(e){function t(){var e;return L(this,t),(e=w(this,t,arguments)).instance=null,e}return S(t,e),T(t,[{key:"expandPullHeader",value:function(){vn(this.instance,"expandPullHeader",[])}},{key:"collapsePullHeader",value:function(e){void 0!==e?vn(this.instance,"collapsePullHeaderWithOptions",[e]):vn(this.instance,"collapsePullHeader",[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=I(t,d);return o.a.createElement("div",N({nativeName:"PullHeaderView",ref:function(t){e.instance=t}},r),n)}}])}(o.a.Component),Gn=function(e){function t(){var e;return L(this,t),(e=w(this,t,arguments)).instance=null,e}return S(t,e),T(t,[{key:"expandPullFooter",value:function(){vn(this.instance,"expandPullFooter",[])}},{key:"collapsePullFooter",value:function(){vn(this.instance,"collapsePullFooter",[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=I(t,p);return o.a.createElement("div",N({nativeName:"PullFooterView",ref:function(t){e.instance=t}},r),n)}}])}(o.a.Component),Kn=function(e){function t(e){var n;return L(this,t),(n=w(this,t,[e])).instance=null,n.pullHeader=null,n.pullFooter=null,n.handleInitialListReady=n.handleInitialListReady.bind(n),n.state={initialListReady:!1},n}return S(t,e),T(t,[{key:"componentDidMount",value:function(){this.props.getRowKey}},{key:"scrollToIndex",value:function(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&vn(this.instance,"scrollToIndex",[e,t,n])}},{key:"scrollToContentOffset",value:function(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&vn(this.instance,"scrollToContentOffset",[e,t,n])}},{key:"expandPullHeader",value:function(){this.pullHeader&&this.pullHeader.expandPullHeader()}},{key:"collapsePullHeader",value:function(e){this.pullHeader&&this.pullHeader.collapsePullHeader(e)}},{key:"expandPullFooter",value:function(){this.pullFooter&&this.pullFooter.expandPullFooter()}},{key:"collapsePullFooter",value:function(){this.pullFooter&&this.pullFooter.collapsePullFooter()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.style,i=t.renderRow,a=t.renderPullHeader,l=t.renderPullFooter,u=t.getRowType,s=t.getRowStyle,c=t.getHeaderStyle,f=t.getFooterStyle,d=t.getRowKey,p=t.dataSource,m=t.initialListSize,v=t.rowShouldSticky,y=t.onRowLayout,g=t.onHeaderPulling,b=t.onHeaderReleased,w=t.onFooterPulling,k=t.onFooterReleased,E=t.onAppear,S=t.onDisappear,C=t.onWillAppear,x=t.onWillDisappear,P=I(t,h),_=[];if("function"==typeof i){var L=this.state.initialListReady,A=this.props.numberOfRows,T=this.getPullHeader(a,g,b,c),R=this.getPullFooter(l,w,k,f);!A&&p&&(A=p.length),L||(A=Math.min(A,m||15));for(var z=function(t){var n,r={};n=p?i(p[t],null,t):i(t),e.handleRowProps(r,t,{getRowKey:d,getRowStyle:s,getRowType:u,onRowLayout:y,rowShouldSticky:v}),[{func:E,name:"onAppear"},{func:S,name:"onDisappear"},{func:C,name:"onWillAppear"},{func:x,name:"onWillDisappear"}].forEach((function(e){var n=e.func,i=e.name;"function"==typeof n&&(r[i]=function(){n(t)})})),n&&_.push(o.a.createElement(Qn,N({},r),n))},O=0;O0&&(this.size-=1),e.data}},{key:"clear",value:function(){this.top=null,this.size=0}},{key:"displayAll",value:function(){var e=[];if(null===this.top)return e;for(var t=this.top,n=0,r=this.size;n1&&this.pop({animated:!0})}},{key:"push",value:function(e){if(null==e?void 0:e.component){if(!this.routeList[e.routeName])new Fn({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0;delete e.component}var t=[e];this.stack.push(e),vn(this.instance,"push",t)}},{key:"pop",value:function(e){if(this.stack.size>1){var t=[e];this.stack.pop(),vn(this.instance,"pop",t)}}},{key:"clear",value:function(){this.stack.clear()}},{key:"render",value:function(){var e=this,t=this.props,n=t.initialRoute,r=(n.component,I(n,v)),i=I(t,y);return i.initialRoute=r,o.a.createElement("div",N({nativeName:"Navigator",ref:function(t){e.instance=t}},i))}}])}(o.a.Component);function Zn(e){return o.a.createElement("div",N(N({nativeName:"ViewPagerItem"},e),{},{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}var er=function(e){function t(e){var n;return L(this,t),(n=w(this,t,[e])).instance=null,n.setPage=n.setPage.bind(n),n.setPageWithoutAnimation=n.setPageWithoutAnimation.bind(n),n.onPageScrollStateChanged=n.onPageScrollStateChanged.bind(n),n}return S(t,e),T(t,[{key:"onPageScrollStateChanged",value:function(e){var t=this.props.onPageScrollStateChanged;t&&t(e.pageScrollState)}},{key:"setPage",value:function(e){"number"==typeof e&&vn(this.instance,"setPage",[e])}},{key:"setPageWithoutAnimation",value:function(e){"number"==typeof e&&vn(this.instance,"setPageWithoutAnimation",[e])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.onPageScrollStateChanged,i=I(t,g),a=[];return Array.isArray(n)?a=n.map((function(e){var t={};return"string"==typeof e.key&&(t.key="viewPager_".concat(e.key)),o.a.createElement(Zn,N({},t),e)})):a.push(o.a.createElement(Zn,null,n)),"function"==typeof r&&(i.onPageScrollStateChanged=this.onPageScrollStateChanged),o.a.createElement("div",N({nativeName:"ViewPager",ref:function(t){e.instance=t}},i),a)}}])}(o.a.Component);function tr(){var e=W.platform.Localization;return!!e&&1===e.direction}var nr={caretColor:"caret-color"},rr=function(e){function t(e){var n;return L(this,t),(n=w(this,t,[e])).instance=null,n._lastNativeText="",n.onChangeText=n.onChangeText.bind(n),n.onKeyboardWillShow=n.onKeyboardWillShow.bind(n),n}return S(t,e),T(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.value,n=e.autoFocus;this._lastNativeText=t,n&&this.focus()}},{key:"componentWillUnmount",value:function(){this.blur()}},{key:"getValue",value:function(){var e=this;return new Promise((function(t){vn(e.instance,"getValue",(function(e){return t(e.text)}))}))}},{key:"setValue",value:function(e){return vn(this.instance,"setValue",[e]),e}},{key:"focus",value:function(){vn(this.instance,"focusTextInput",[])}},{key:"blur",value:function(){vn(this.instance,"blurTextInput",[])}},{key:"isFocused",value:function(){var e=this;return new Promise((function(t){vn(e.instance,"isFocused",(function(e){return t(e.value)}))}))}},{key:"showInputMethod",value:function(){}},{key:"hideInputMethod",value:function(){}},{key:"clear",value:function(){vn(this.instance,"clear",[])}},{key:"render",value:function(){var e=this,t=N({},this.props);return["underlineColorAndroid","placeholderTextColor","placeholderTextColors","caretColor","caret-color"].forEach((function(n){var r=n,i=e.props[n];"string"==typeof e.props[n]&&(nr[n]&&(r=nr[n]),Array.isArray(t.style)?t.style.push({[r]:i}):t.style&&"object"===F(t.style)?t.style[r]=i:t.style={[r]:i},delete t[n])})),tr()&&(t.style?"object"!==F(t.style)||Array.isArray(t.style)||t.style.textAlign||(t.style.textAlign="right"):t.style={textAlign:"right"}),o.a.createElement("div",N(N({nativeName:"TextInput"},t),{},{ref:function(t){e.instance=t},onChangeText:this.onChangeText,onKeyboardWillShow:this.onKeyboardWillShow}))}},{key:"onChangeText",value:function(e){var t=this.props.onChangeText;"function"==typeof t&&t(e.text),this.instance&&(this._lastNativeText=e.text)}},{key:"onKeyboardWillShow",value:function(e){var t=this.props.onKeyboardWillShow;"function"==typeof t&&t(e)}}])}(o.a.Component),ir=Ln.window.scale,or=Math.round(.4*ir)/ir;function ar(e){return e}0===or&&(or=1/ir);var lr=Object.freeze({__proto__:null,get hairlineWidth(){return or},create:ar}),ur={baseVertical:{flexGrow:1,flexShrink:1,flexDirection:"column",overflow:"scroll"},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:"row",overflow:"scroll"},contentContainerVertical:{collapsable:!1,flexDirection:"column"},contentContainerHorizontal:{collapsable:!1,flexDirection:"row"}},sr=function(e){function t(){var e;return L(this,t),(e=w(this,t,arguments)).instance=null,e}return S(t,e),T(t,[{key:"scrollTo",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e,i=t,o=n;"object"===F(e)&&e&&(r=e.x,i=e.y,o=e.animated),r=r||0,i=i||0,o=!!o,vn(this.instance,"scrollTo",[r,i,o])}},{key:"scrollToWithDuration",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;vn(this.instance,"scrollToWithOptions",[{x:e,y:t,duration:n}])}},{key:"render",value:function(){var e=this,t=this.props,n=t.horizontal,r=t.contentContainerStyle,i=t.children,a=t.style,l=[n?ur.contentContainerHorizontal:ur.contentContainerVertical,r],u=n?Object.assign({},ur.baseHorizontal,a):Object.assign({},ur.baseVertical,a);return n&&(u.flexDirection=tr()?"row-reverse":"row"),o.a.createElement("div",N(N({nativeName:"ScrollView",ref:function(t){e.instance=t}},this.props),{},{style:u}),o.a.createElement(Mn,{style:l},i))}}])}(o.a.Component),cr={modal:{position:"absolute",collapsable:!1}},fr=function(e){function t(e){var n;return L(this,t),(n=w(this,t,[e])).eventSubscription=null,n}return S(t,e),T(t,[{key:"componentDidMount",value:function(){var e=this;"ios"===Ln.platform.OS&&(this.eventSubscription=new Fe("modalDismissed"),this.eventSubscription.addCallback((function(t){var n=e.props,r=n.primaryKey,i=n.onDismiss;t.primaryKey===r&&"function"==typeof i&&i()})))}},{key:"componentWillUnmount",value:function(){"ios"===Ln.platform.OS&&this.eventSubscription&&this.eventSubscription.unregister()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.visible,r=e.transparent,i=e.animated,a=this.props.animationType;if(!1===n)return null;var l={backgroundColor:r?"transparent":"white"};return a||(a="none",i&&(a="slide")),o.a.createElement("div",N({nativeName:"Modal",animationType:a,transparent:r,style:[cr.modal,l]},this.props),t)}}])}(o.a.Component);fr.defaultProps={visible:!0};var dr=function(e){function t(e){var n;L(this,t);var r=(n=w(this,t,[e])).props.requestFocus;return n.state={isFocus:!!r},n.handleFocus=n.handleFocus.bind(n),n}return S(t,e),T(t,[{key:"render",value:function(){var e,t,n,r,i=this.props,a=i.requestFocus,l=i.children,u=i.nextFocusDownId,s=i.nextFocusUpId,c=i.nextFocusLeftId,f=i.nextFocusRightId,d=i.style,p=i.noFocusStyle,h=i.focusStyle,m=i.onClick,v=this.state.isFocus,y=o.a.Children.only(l);(null===(t=null===(e=null==y?void 0:y.child)||void 0===e?void 0:e.memoizedProps)||void 0===t?void 0:t.nativeName)?r=y.child.memoizedProps.nativeName:(null===(n=null==y?void 0:y.type)||void 0===n?void 0:n.displayName)&&(r=y.type.displayName);var g=u&&mn(u),b=s&&mn(s),w=c&&mn(c),k=f&&mn(f),E=d;if("Text"!==r){var S=y.memoizedProps.style;E=N(N({},E),S)}if(Object.assign(E,v?h:p),"Text"===r)return o.a.createElement(Mn,{focusable:!0,nextFocusDownId:g,nextFocusUpId:b,nextFocusLeftId:w,nextFocusRightId:k,requestFocus:a,style:E,onClick:m,onFocus:this.handleFocus},y);var C=y.memoizedProps.children;return o.a.cloneElement(y,{nextFocusDownId:u,nextFocusUpId:s,nextFocusLeftId:c,nextFocusRightId:f,requestFocus:a,onClick:m,focusable:!0,children:C,style:E,onFocus:this.handleFocus})}},{key:"handleFocus",value:function(e){var t=this.props.onFocus;"function"==typeof t&&t(e),this.state.isFocus!==e.focus&&this.setState({isFocus:e.focus})}}])}(o.a.Component);function pr(e){return o.a.createElement("iframe",N({title:"hippy",nativeName:"WebView"},e))}var hr,mr=function(){return T((function e(t,n,r){var i=this;if(L(this,e),this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),hr||(hr=new Fe("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!t||"string"!=typeof t)throw new TypeError("Invalid WebSocket url");var o=N({},r);if(void 0!==n)if(Array.isArray(n)&&n.length>0)o["Sec-WebSocket-Protocol"]=n.join(",");else{if("string"!=typeof n)throw new TypeError("Invalid WebSocket protocols");o["Sec-WebSocket-Protocol"]=n}var a={headers:o,url:t};this.url=t,this.webSocketCallbackId=hr.addCallback(this.onWebSocketEvent),U.callNativeWithPromise("websocket","connect",a).then((function(e){e&&0===e.code&&"number"==typeof e.id&&(i.webSocketId=e.id)}))}),[{key:"close",value:function(e,t){1===this.readyState&&(this.readyState=2,U.callNative("websocket","close",{id:this.webSocketId,code:e,reason:t}))}},{key:"send",value:function(e){if(1===this.readyState){if("string"!=typeof e)throw new TypeError("Unsupported websocket data type: ".concat(F(e)));U.callNative("websocket","send",{id:this.webSocketId,data:e})}}},{key:"onopen",set:function(e){this.webSocketCallbacks.onOpen=e}},{key:"onclose",set:function(e){this.webSocketCallbacks.onClose=e}},{key:"onerror",set:function(e){this.webSocketCallbacks.onError=e}},{key:"onmessage",set:function(e){this.webSocketCallbacks.onMessage=e}},{key:"onWebSocketEvent",value:function(e){if("object"===F(e)&&e.id===this.webSocketId){var t=e.type;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,hr.removeCallback(this.webSocketCallbackId));var n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}}])}();function vr(e){return o.a.createElement("li",N({nativeName:"WaterfallItem"},e))}var yr=function(e){function t(e){var n;return L(this,t),(n=w(this,t,[e])).instance=null,n.pullHeader=null,n.pullFooter=null,n.handleInitialListReady=n.handleInitialListReady.bind(n),n}return S(t,e),T(t,[{key:"scrollToIndex",value:function(e){var t=e.index,n=void 0===t?0:t,r=e.animated,i=void 0===r||r;vn(this.instance,"scrollToIndex",[n,n,i])}},{key:"scrollToContentOffset",value:function(e){var t=e.xOffset,n=void 0===t?0:t,r=e.yOffset,i=void 0===r?0:r,o=e.animated,a=void 0===o||o;vn(this.instance,"scrollToContentOffset",[n,i,a])}},{key:"expandPullHeader",value:function(){this.pullHeader&&this.pullHeader.expandPullHeader()}},{key:"collapsePullHeader",value:function(e){this.pullHeader&&this.pullHeader.collapsePullHeader(e)}},{key:"expandPullFooter",value:function(){this.pullFooter&&this.pullFooter.expandPullFooter()}},{key:"collapsePullFooter",value:function(){this.pullFooter&&this.pullFooter.collapsePullFooter()}},{key:"render",value:function(){var e=this,t=this.props,n=t.style,r=void 0===n?{}:n,i=t.renderBanner,a=t.renderFooter,l=t.numberOfColumns,u=void 0===l?2:l,s=t.columnSpacing,c=void 0===s?0:s,f=t.interItemSpacing,d=void 0===f?0:f,p=t.numberOfItems,h=void 0===p?0:p,m=t.preloadItemNumber,v=void 0===m?0:m,y=t.renderItem,g=t.renderPullHeader,w=t.renderPullFooter,k=t.getItemType,E=t.getItemKey,S=t.getItemStyle,C=t.contentInset,x=void 0===C?{top:0,left:0,bottom:0,right:0}:C,P=t.onItemLayout,_=t.onHeaderPulling,L=t.onHeaderReleased,A=t.onFooterPulling,T=t.onFooterReleased,R=t.containPullHeader,z=void 0!==R&&R,O=t.containPullFooter,j=void 0!==O&&O,F=t.containBannerView,H=void 0!==F&&F,M=N(N({},I(t,b)),{},{style:r,numberOfColumns:u,columnSpacing:c,interItemSpacing:d,preloadItemNumber:v,contentInset:x,containPullHeader:z,containPullFooter:j,containBannerView:H}),B=[];if("function"==typeof i){var D=i();if(D)if("ohos"===Ln.platform.OS)B.push(o.a.createElement(Mn,{key:"bannerView"},o.a.cloneElement(D))),M.containBannerView=!0;else{B.push(o.a.createElement(vr,N({},{key:"bannerView",isHeader:!0,fullSpan:!0,style:{}}),o.a.cloneElement(D)))}}if("function"==typeof y){for(var U=this.getPullHeader(g,_,L),W=this.getPullFooter(w,A,T),V=0;V0===s.indexOf(e))){var l=s.split("/"),c=l[l.length-1],d=c.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(s=p+c)}else{var p;d=s.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(s=p+s)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+s;var a=o[e];0!==a&&a&&a[1](t),o[e]=void 0}},global.dynamicLoad(s,onScriptComplete)}return Promise.all(t)},r.m=e,r.c=a,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(a,o,function(t){return e[t]}.bind(null,o));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var n=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],i=n.push.bind(n);n.push=t,n=n.slice();for(var s=0;s0===s.indexOf(e))){var l=s.split("/"),c=l[l.length-1],d=c.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(s=p+c)}else{var p;d=s.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(s=p+s)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+s;var a=o[e];0!==a&&a&&a[1](t),o[e]=void 0}},global.dynamicLoad(s,onScriptComplete)}return Promise.all(t)},r.m=e,r.c=a,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(a,o,function(t){return e[t]}.bind(null,o));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var n=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],i=n.push.bind(n);n.push=t,n=n.slice();for(var s=0;s-1}function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}var w={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var a=t.props,o=t.children,r=t.parent,n=t.data;n.routerView=!0;for(var i=r.$createElement,s=a.name,l=r.$route,c=r._routerViewCache||(r._routerViewCache={}),p=0,u=!1;r&&r._routerRoot!==r;)r.$vnode&&r.$vnode.data.routerView&&(p+=1),r._inactive&&(u=!0),r=r.$parent;if(n.routerViewDepth=p,u)return i(c[s],n,o);var v=l.matched[p];if(!v)return c[s]=null,i();var y=v.components[s];c[s]=y,n.registerRouteInstance=function(e,t){var a=v.instances[s];(t&&a!==e||!t&&a===e)&&(v.instances[s]=t)},n.hook||(n.hook={}),n.hook.prepatch=function(e,t){v.instances[s]=t.componentInstance};var f=function(e,t){switch(d()(t)){case"undefined":return null;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:return null}}(l,v.props&&v.props[s]);if(n.props=f,f){f=function(e){for(var t=1;t0})).join("&"):null;return t?"?".concat(t):""}var V=/\/?$/;function L(e){if(Array.isArray(e))return e.map(L);if(e&&"object"===d()(e)){var t={};return Object.keys(e).forEach((function(a){t[a]=L(e[a])})),t}return e}function I(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function Y(e,t){var a=e.path,o=e.query,r=void 0===o?{}:o,n=e.hash,i=void 0===n?"":n;return(a||"/")+(t||T)(r)+i}function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!t)return e===t;var a=Object.keys(e),o=Object.keys(t);return a.length===o.length&&a.every((function(a){var o=e[a],r=t[a];return"object"===d()(o)&&"object"===d()(r)?O(o,r):String(o)===String(r)}))}function H(e,t,a,o){var r;o&&(r=o.options.stringifyQuery);var n=t.query||{};try{n=L(n)}catch(e){}var i={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:n,params:t.params||{},fullPath:Y(t,r),matched:e?I(e):[]};return a&&(i.redirectedFrom=Y(a,r)),Object.freeze(i)}var R=H(null,{path:"/"});function D(e,t){return t===R?e===t:!!t&&(e.path&&t.path?e.path.replace(V,"")===t.path.replace(V,"")&&e.hash===t.hash&&O(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&O(e.query,t.query)&&O(e.params,t.params)))}function B(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}function U(e){for(var t=1;t=0&&(t=e.slice(o),e=e.slice(0,o));var r=e.indexOf("?");return r>=0&&(a=e.slice(r+1),e=e.slice(0,r)),{path:e,query:a,hash:t}}(r.path||""),l=t&&t.path||"/",c=s.path?re(s.path,l,a||r.append):l,d=function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,r=o||E;try{t=r(e||"")}catch(e){0,t={}}return Object.keys(a).forEach((function(e){t[e]=a[e]})),t}(s.query,r.query,o&&o.options.parseQuery),p=r.hash||s.hash;return p&&"#"!==p.charAt(0)&&(p="#".concat(p)),{_normalized:!0,path:c,query:d,hash:p}}function ce(e,t){return te(e,[],t)}function de(e,t,a,o,r,n){var i=o.path,s=o.name;var l=o.pathToRegexpOptions||{},c=function(e,t,a){return a||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:ne("".concat(t.path,"/").concat(e))}(i,r,l.strict);"boolean"==typeof o.caseSensitive&&(l.sensitive=o.caseSensitive);var d={path:c,regex:ce(c,l),components:o.components||{default:o.component},instances:{},name:s,parent:r,matchAs:n,redirect:o.redirect,beforeEnter:o.beforeEnter,meta:o.meta||{},props:null==o.props?{}:o.components?o.props:{default:o.props}};(o.children&&o.children.forEach((function(o){var r=n?ne("".concat(n,"/").concat(o.path)):void 0;de(e,t,a,o,d,r)})),void 0!==o.alias)&&(Array.isArray(o.alias)?o.alias:[o.alias]).forEach((function(n){var i={path:n,children:o.children};de(e,t,a,i,r,d.path||"/")}));t[d.path]||(e.push(d.path),t[d.path]=d),s&&(a[s]||(a[s]=d))}function pe(e,t,a,o){var r=t||[],n=a||Object.create(null),i=o||Object.create(null);e.forEach((function(e){de(r,n,i,e)}));for(var s=0,l=r.length;s-1&&(s.params[e]=a.params[e])})),p)return s.path=oe(p.path,s.params,'named route "'.concat(c,'"')),l(p,s,i)}else if(s.path){s.params={};for(var v=0;v=e.length?a():e[r]?t(e[r],(function(){o(r+1)})):o(r+1)}(0)}var fe="function"==typeof Symbol&&"symbol"===d()(Symbol.toStringTag);function he(e){return Array.prototype.concat.apply([],e)}function be(e,t){return he(e.map((function(e){return Object.keys(e.components).map((function(a){return t(e.components[a],e.instances[a],e,a)}))})))}function me(e){return function(t,a,o){var r=!1,n=0,i=null;be(e,(function(e,t,a,s){if("function"==typeof e&&void 0===e.cid){r=!0,n+=1;var l,c=u((function(t){var r,i=v();((r=t).__esModule||fe&&"Module"===r[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:i.extend(t),a.components[s]=t,(n-=1)<=0&&o()})),d=u((function(e){var t="Failed to resolve async component ".concat(s,": ").concat(e);i||(i=x(e)?e:new Error(t),o(i))}));try{l=e(c,d)}catch(e){d(e)}if(l)if("function"==typeof l.then)l.then(c,d);else{var p=l.component;p&&"function"==typeof p.then&&p.then(c,d)}}})),r||o()}}function ge(e){return"/"!==e.charAt(0)&&(e="/".concat(e)),e.replace(/\/$/,"")}function _e(e,t,a,o){var r=be(e,(function(e,o,r,n){var i=function(e,t){return"function"!=typeof e&&(e=v().extend(e)),e.options[t]}(e,t);return i?Array.isArray(i)?i.map((function(e){return a(e,o,r,n)})):a(i,o,r,n):null}));return he(o?r.reverse():r)}function xe(e,t){return t?function(){for(var a=arguments.length,o=new Array(a),r=0;r1&&void 0!==arguments[1]?arguments[1]:"/";i()(this,e),this.router=t,this.base=ge(a),this.current=R,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[];var o=this.router.match("/",this.current);if(!o)throw new Error("Root router path with / is required");this.stack=[o],this.index=0}return l()(e,[{key:"push",value:function(e,t,a){var o=this;this.transitionTo(e,(function(e){o.stack=o.stack.slice(0,o.index+1).concat(e),o.index+=1,y(t)&&t(e)}),a)}},{key:"replace",value:function(e,t,a){var o=this;this.transitionTo(e,(function(e){o.stack=o.stack.slice(0,o.index).concat(e),y(t)&&t(e)}),a)}},{key:"go",value:function(e){var t=this,a=this.index+e;if(!(a<0||a>=this.stack.length)){var o=this.stack[a];this.confirmTransition(o,(function(){t.index=a,t.updateRoute(o),t.stack=t.stack.slice(0,a+1)}))}}},{key:"getCurrentLocation",value:function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"}},{key:"ensureURL",value:function(){}},{key:"listen",value:function(e){this.cb=e}},{key:"onReady",value:function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))}},{key:"onError",value:function(e){this.errorCbs.push(e)}},{key:"transitionTo",value:function(e,t,a){var o=this,r=this.router.match(e,this.current);this.confirmTransition(r,(function(){o.updateRoute(r),y(t)&&t(r),o.ensureURL(),o.ready||(o.ready=!0,o.readyCbs.forEach((function(e){e(r)})))}),(function(e){a&&a(e),e&&!o.ready&&(o.ready=!0,o.readyErrorCbs.forEach((function(t){t(e)})))}))}},{key:"confirmTransition",value:function(e,t,a){var o=this,r=this.current,n=function(e){x(e)&&o.errorCbs.length&&o.errorCbs.forEach((function(t){t(e)})),y(a)&&a(e)};if(D(e,r)&&e.matched.length===r.matched.length)return this.ensureURL(),n();var i=function(e,t){var a,o=Math.max(e.length,t.length);for(a=0;a1)return this.go(-1);var e=this.stack[0].matched;if(e.length){var t=e[0],a=t.components,o=t.instances;if(a&&a.default&&y(a.default.beforeAppExit))return a.default.beforeAppExit.call(o.default,this.exitApp)}return this.exitApp()}},{key:"exitApp",value:function(){v().Native.callNative("DeviceEventModule","invokeDefaultBackPressHandler")}}]),e}();function Se(e,t){return e.push(t),function(){var a=e.indexOf(t);a>-1&&e.splice(a,1)}}var ke=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(i()(this,e),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=ue(t.routes||[],this),!o.__GLOBAL__||!o.__GLOBAL__.appRegister)throw new Error("Hippy-Vue-Router can\t work without Native environment");this.history=new we(this,t.base)}return l()(e,[{key:"match",value:function(e,t,a){return this.matcher.match(e,t,a)}},{key:"currentRoute",get:function(){return this.history&&this.history.current}},{key:"init",value:function(e,t){var a=this;if(this.apps.push(e),!this.app){this.app=e;var o=this.history;o instanceof we&&o.transitionTo(o.getCurrentLocation()),o.listen((function(e){a.apps.forEach((function(t){t._route=e}))})),"android"===t.Native.Platform&&y(o.hardwareBackPress)&&!this.options.disableAutoBack&&(setTimeout((function(){return t.Native.callNative("DeviceEventModule","setListenBackPress",!0)}),300),e.$on("hardwareBackPress",(function(){return o.hardwareBackPress()})))}}},{key:"beforeEach",value:function(e){return Se(this.beforeHooks,e)}},{key:"beforeResolve",value:function(e){return Se(this.resolveHooks,e)}},{key:"afterEach",value:function(e){return Se(this.afterHooks,e)}},{key:"onReady",value:function(e,t){this.history.onReady(e,t)}},{key:"onError",value:function(e){this.history.onError(e)}},{key:"push",value:function(e,t,a){this.history.push(e,t,a)}},{key:"replace",value:function(e,t,a){this.history.replace(e,t,a)}},{key:"go",value:function(e){this.history.go(e)}},{key:"back",value:function(){this.go(-1)}},{key:"forward",value:function(){this.go(1)}},{key:"getMatchedComponents",value:function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))})):[]}},{key:"resolve",value:function(e,t,a){var o=le(e,t||this.history.current,a,this),r=this.match(o,t),n=r.redirectedFrom||r.fullPath;return{location:o,route:r,href:function(e,t){return e?ne("".concat(e,"/").concat(t)):t}(this.history.base,n),normalizedTo:o,resolved:r}}},{key:"addRoutes",value:function(e){this.matcher.addRoutes(e),this.history.current!==R&&this.history.transitionTo(this.history.getCurrentLocation())}}]),e}();ke.install=function e(t){if(!e.installed||v()!==t){e.installed=!0,function(e){r=e}(t);var a=function(e){return void 0!==e},o=function(e,t){var o=e.$options._parentVnode;a(o)&&a(o=o.data)&&a(o=o.registerRouteInstance)&&o(e,t)};t.mixin({beforeCreate:function(){a(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this,t),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,o(this,this)},destroyed:function(){o(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",w),t.component("RouterLink",M);var n=t.config.optionMergeStrategies;n.beforeRouteEnter=n.beforeRouteLeave=n.beforeRouteUpdate=n.created}},ke.version="2.6.14"}).call(this,a("./node_modules/process/browser.js"),a("./node_modules/webpack/buildin/global.js"))},"../../packages/hippy-vue/dist/index.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("../../packages/hippy-vue/dist/index.js")},"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js":function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,o=new Array(t);a=0;--r){var n=this.tryEntries[r],s=n.completion;if("root"===n.tryLoc)return o("end");if(n.tryLoc<=this.prev){var l=i.call(n,"catchLoc"),c=i.call(n,"finallyLoc");if(l&&c){if(this.prev=0;--a){var o=this.tryEntries[a];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),V(a),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var o=a.completion;if("throw"===o.type){var r=o.arg;V(a)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,a,o){return this.delegate={iterator:I(e),resultName:a,nextLoc:o},"next"===this.method&&(this.arg=t),m}},a}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toConsumableArray.js":function(e,t,a){var o=a("./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"),r=a("./node_modules/@babel/runtime/helpers/iterableToArray.js"),n=a("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),i=a("./node_modules/@babel/runtime/helpers/nonIterableSpread.js");e.exports=function(e){return o(e)||r(e)||n(e)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toPrimitive.js":function(e,t,a){var o=a("./node_modules/@babel/runtime/helpers/typeof.js").default;e.exports=function(e,t){if("object"!=o(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var r=a.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toPropertyKey.js":function(e,t,a){var o=a("./node_modules/@babel/runtime/helpers/typeof.js").default,r=a("./node_modules/@babel/runtime/helpers/toPrimitive.js");e.exports=function(e){var t=r(e,"string");return"symbol"==o(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(e,t){function a(t){return e.exports=a="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.exports.__esModule=!0,e.exports.default=e.exports,a(t)}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":function(e,t,a){var o=a("./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");e.exports=function(e,t){if(e){if("string"==typeof e)return o(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?o(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/regenerator/index.js":function(e,t,a){var o=a("./node_modules/@babel/runtime/helpers/typeof.js"),r=a("./node_modules/@babel/runtime/helpers/regeneratorRuntime.js")();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"===("undefined"==typeof globalThis?"undefined":o(globalThis))?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},"./node_modules/@hippy/rejection-tracking-polyfill/index.js":function(e,t,a){(function(e){!function(){if("ios"===Hippy.device.platform.OS){var t=[ReferenceError,TypeError,RangeError],a=!1;!function(r){if(e.Promise){r=r||{},a&&(a=!1,e.Promise._onHandle=null,e.Promise._onReject=null),a=!0;var n=0,i=0,s={};e.Promise._onHandle=function(e){2===e._state&&s[e._rejectionId]&&(s[e._rejectionId].logged?function(e){s[e].logged&&(r.onHandled?r.onHandled(s[e].displayId,s[e].error):s[e].onUnhandled||(console.warn("Promise Rejection Handled (id: "+s[e].displayId+"):"),console.warn(' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+s[e].displayId+".")))}(e._rejectionId):clearTimeout(s[e._rejectionId].timeout),delete s[e._rejectionId])},e.Promise._onReject=function(e,a){0===e._deferredState&&(e._rejectionId=n++,s[e._rejectionId]={displayId:null,error:a,timeout:setTimeout(l.bind(null,e._rejectionId),o(a,t)?100:2e3),logged:!1})}}function l(e){(r.allRejections||o(s[e].error,r.whitelist||t))&&(s[e].displayId=i++,r.onUnhandled?(s[e].logged=!0,r.onUnhandled(s[e].displayId,s[e].error)):(s[e].logged=!0,function(e,t){console.warn("Possible Unhandled Promise Rejection (id: "+e+"):"),((t&&(t.stack||t))+"").split("\n").forEach((function(e){console.warn(" "+e)}))}(s[e].displayId,s[e].error)))}}({allRejections:!0,onUnhandled:function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=Object.prototype.toString.call(a);if("[object Error]"===o){var r=Error.prototype.toString.call(a),n=a.stack,i="Possible Unhandled Promise Rejection (id: "+t+"):\n"+(r||"")+"\n"+(null==n?"":n);console.warn(i)}else{console.warn("Possible Unhandled Promise Rejection (id: "+t+"):");var s=(a&&(a.stack||a))+"";s.split("\n").forEach((function(e){console.warn(" "+e)}))}e.Hippy.emit("unhandledRejection",a,t)},onHandled:function(){}})}function o(e,t){return t.some((function(t){return e instanceof t}))}}()}).call(this,a("./node_modules/webpack/buildin/global.js"))},"./node_modules/process/browser.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("./node_modules/process/browser.js")},"./node_modules/webpack/buildin/global.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("./node_modules/webpack/buildin/global.js")},"./src/app.vue":function(e,t,a){"use strict";var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"root"}},[a("div",{attrs:{id:"header"}},[a("div",{staticClass:"left-title"},[a("img",{directives:[{name:"show",rawName:"v-show",value:!["/","/debug","/remote-debug"].includes(e.$router.history.current.path),expression:"!['/', '/debug', '/remote-debug'].includes($router.history.current.path)"}],attrs:{id:"back-btn",src:e.imgs.backButtonImg},on:{click:e.goToHome}}),e._v(" "),["/","/debug","/remote-debug"].includes(e.$router.history.current.path)?a("label",{staticClass:"title"},[e._v("Hippy Vue")]):e._e()]),e._v(" "),a("label",{staticClass:"title"},[e._v(e._s(e.subtitle))])]),e._v(" "),a("div",{staticClass:"body-container",on:{click:function(e){return e.stopPropagation()}}},[a("keep-alive",[a("router-view",{staticClass:"feature-content"})],1)],1),e._v(" "),a("div",{staticClass:"bottom-tabs"},e._l(e.tabs,(function(t,o){return a("div",{key:"tab-"+o,class:["bottom-tab",o===e.activatedTab?"activated":""],on:{click:function(a){return e.navigateTo(a,t,o)}}},[a("span",{staticClass:"bottom-tab-text"},[e._v("\n "+e._s(t.text)+"\n ")])])})),0)])};o._withStripped=!0;var r={name:"App",data:function(){return{imgs:{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"},subtitle:"",activatedTab:0,tabs:[{text:"API",path:"/"},{text:"调试",path:"/remote-debug"}]}},watch:{$route:function(e){void 0!==e.name?this.subtitle=e.name:this.subtitle=""}},methods:{navigateTo:function(e,t,a){a!==this.activatedTab&&(e.stopPropagation(),console.log(t),this.activatedTab=a,this.$router.replace({path:t.path}))},goToHome:function(){this.$router.back()}}},n=(a("./src/app.vue?vue&type=style&index=0&lang=css&"),a("../../packages/hippy-vue-loader/lib/runtime/componentNormalizer.js")),i=Object(n.a)(r,o,[],!1,null,null,null);i.options.__file="src/app.vue";t.a=i.exports},"./src/app.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/app.vue?vue&type=style&index=0&lang=css&")},"./src/assets/defaultSource.jpg":function(e,t,a){e.exports=a.p+"assets/defaultSource.jpg"},"./src/assets/hippyLogoWhite.png":function(e,t,a){e.exports=a.p+"assets/hippyLogoWhite.png"},"./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&")},"./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&")},"./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&")},"./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&")},"./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&")},"./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&")},"./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&")},"./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&")},"./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&")},"./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&")},"./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&")},"./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&")},"./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&")},"./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&")},"./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&")},"./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&")},"./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&")},"./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&")},"./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&")},"./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&")},"./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&")},"./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&")},"./src/components/native-demos/demo-swiper.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-swiper.vue?vue&type=style&index=0&lang=css&")},"./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&")},"./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&")},"./src/main-native.js":function(e,t,a){"use strict";a.r(t),function(e){var t=a("../../packages/hippy-vue/dist/index.js"),o=a("../../packages/hippy-vue-router/dist/index.js"),r=a("../../packages/hippy-vue-native-components/dist/index.js"),n=a("./src/app.vue"),i=a("./src/routes.js"),s=a("./src/util.js");t.default.config.productionTip=!1,t.default.config.trimWhitespace=!0,t.default.use(r.default),t.default.use(o.a);var l=new o.a(i.a);e.Hippy.on("uncaughtException",(function(e){console.error("uncaughtException error",e.stack,e.message)})),e.Hippy.on("unhandledRejection",(function(e){console.error("unhandledRejection reason",e)}));var c=new t.default({appName:"Demo",rootView:"#root",render:function(e){return e(n.a)},iPhone:{statusBar:{backgroundColor:4283416717}},router:l});c.$start((function(e,a){console.log("instance",e,"initialProps",a),t.default.Native.BackAndroid.addListener((function(){return console.log("backAndroid"),!0}))})),Object(s.b)(c)}.call(this,a("./node_modules/webpack/buildin/global.js"))},"./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&")},"./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&")},"./src/routes.js":function(e,t,a){"use strict";var o=a("./node_modules/@babel/runtime/helpers/toConsumableArray.js"),r=a.n(o),n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{staticClass:"v4fb46863 feature-list"},[a("li",[a("div",{staticClass:"v4fb46863",attrs:{id:"version-info"}},[a("p",{staticClass:"v4fb46863 feature-title"},[e._v("\n Vue: "+e._s(e.Vue.version)+"\n ")]),e._v(" "),e.Vue.Native?a("p",{staticClass:"v4fb46863 feature-title"},[e._v("\n Hippy-Vue: "+e._s("unspecified"!==e.Vue.Native.version?e.Vue.Native.version:"master")+"\n ")]):e._e()])]),e._v(" "),e._m(0),e._v(" "),e._l(e.featureList,(function(t){return a("li",{key:t.id,staticClass:"v4fb46863 feature-item"},[a("router-link",{staticClass:"v4fb46863 button",attrs:{to:{path:"/demo/"+t.id}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)})),e._v(" "),e.nativeFeatureList.length?a("li",[a("p",{staticClass:"v4fb46863 feature-title",attrs:{paintType:"fcp"}},[e._v("\n 终端组件 Demos\n ")])]):e._e(),e._v(" "),e._l(e.nativeFeatureList,(function(t){return a("li",{key:t.id,staticClass:"v4fb46863 feature-item"},[a("router-link",{staticClass:"v4fb46863 button",attrs:{to:{path:"/demo/"+t.id}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)}))],2)};n._withStripped=!0;var i=a("../../packages/hippy-vue/dist/index.js"),s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v26278b5d button-demo"},[a("label",{staticClass:"v26278b5d button-label"},[e._v("按钮和状态绑定")]),e._v(" "),a("button",{staticClass:"v26278b5d button-demo-1",class:{"is-active":e.isClicked,"is-pressing":e.isPressing},on:{touchstart:e.onTouchBtnStart,touchmove:e.onTouchBtnMove,touchend:e.onTouchBtnEnd,click:e.clickView}},[e.isClicked?a("span",{staticClass:"v26278b5d button-text"},[e._v("视图已经被点击了,再点一下恢复")]):a("span",{staticClass:"v26278b5d button-text"},[e._v("视图尚未点击")])]),e._v(" "),a("img",{directives:[{name:"show",rawName:"v-show",value:e.isClicked,expression:"isClicked"}],staticClass:"v26278b5d button-demo-1-image",attrs:{alt:"demo1-image",src:"https://user-images.githubusercontent.com/12878546/148737148-d0b227cb-69c8-4b21-bf92-739fb0c3f3aa.png"}})])};s._withStripped=!0;var l={data:function(){return{isClicked:!1,isPressing:!1}},methods:{clickView:function(){this.isClicked=!this.isClicked},onTouchBtnStart:function(e){console.log("onBtnTouchDown",e),e.stopPropagation()},onTouchBtnMove:function(e){console.log("onBtnTouchMove",e),e.stopPropagation(),console.log(e)},onTouchBtnEnd:function(e){console.log("onBtnTouchEnd",e),e.stopPropagation(),console.log(e)}}},c=(a("./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&"),a("../../packages/hippy-vue-loader/lib/runtime/componentNormalizer.js")),d=Object(c.a)(l,s,[],!1,null,"26278b5d",null);d.options.__file="src/components/demos/demo-button.vue";var p=d.exports,u=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614",attrs:{id:"div-demo"},on:{scroll:e.onOuterScroll}},[a("div",["ios"!==e.Vue.Native.Platform?a("div",[a("label",[e._v("水波纹效果: ")]),e._v(" "),a("div",{staticClass:"ve3dda614",style:Object.assign({},e.imgRectangle,e.imgRectangleExtra)},[a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.imgRectangle,"native-background-android":{borderless:!0,color:"#666666"}}},[a("p",{staticClass:"ve3dda614",style:{color:"white",maxWidth:200}},[e._v("\n 外层背景图,内层无边框水波纹,受外层影响始终有边框\n ")])])],1),e._v(" "),a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.circleRipple,"native-background-android":{borderless:!0,color:"#666666",rippleRadius:100}}},[a("p",{staticClass:"ve3dda614",style:{color:"black",textAlign:"center"}},[e._v("\n 无边框圆形水波纹\n ")])]),e._v(" "),a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.squareRipple,"native-background-android":{borderless:!1,color:"#666666"}}},[a("p",{staticClass:"ve3dda614",style:{color:"#fff"}},[e._v("\n 带背景色水波纹\n ")])])],1):e._e(),e._v(" "),a("label",[e._v("背景图效果:")]),e._v(" "),a("div",{staticClass:"ve3dda614",style:e.demo1Style,attrs:{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"}},[a("p",{staticClass:"ve3dda614 div-demo-1-text"},[e._v("\n Hippy 背景图展示\n ")])]),e._v(" "),a("label",[e._v("渐变色效果:")]),e._v(" "),e._m(0),e._v(" "),a("label",[e._v("Transform")]),e._v(" "),e._m(1),e._v(" "),a("label",[e._v("水平滚动:")]),e._v(" "),a("div",{ref:"demo-2",staticClass:"ve3dda614 div-demo-2",attrs:{bounces:!0,scrollEnabled:!0,pagingEnabled:!1,showsHorizontalScrollIndicator:!1},on:{scroll:e.onScroll,momentumScrollBegin:e.onMomentumScrollBegin,momentumScrollEnd:e.onMomentumScrollEnd,scrollBeginDrag:e.onScrollBeginDrag,scrollEndDrag:e.onScrollEndDrag}},[e._m(2)]),e._v(" "),a("label",[e._v("垂直滚动:")]),e._v(" "),a("div",{staticClass:"ve3dda614 div-demo-3",attrs:{showsVerticalScrollIndicator:!1}},[e._m(3)])])])};u._withStripped=!0;var v=a("./src/assets/defaultSource.jpg"),y=a.n(v),f=function(){var e=this.$createElement;return(this._self._c||e)("div",{ref:"ripple1",style:this.wrapperStyle,attrs:{nativeBackgroundAndroid:Object.assign({},this.nativeBackgroundAndroid)},on:{layout:this.onLayout,touchstart:this.onTouchStart,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[this._t("default")],2)};f._withStripped=!0;var h=a("./node_modules/@babel/runtime/helpers/asyncToGenerator.js"),b=a.n(h),m=a("./node_modules/@babel/runtime/regenerator/index.js"),g=a.n(m),_={display:"flex",height:"40px",width:"200px",backgroundImage:"".concat(y.a),backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"},x={name:"DemoRippleDiv",props:{nativeBackgroundAndroid:{default:{borderless:!1}},wrapperStyle:{type:Object,default:function(){return _}},positionY:{default:0}},data:function(){return{scrollOffsetY:this.positionY,viewX:0,viewY:0,demo1Style:_}},watch:{positionY:function(e){this.scrollOffsetY=e}},mounted:function(){this.rippleRef=this.$refs.ripple1},methods:{onLayout:function(){var e=this;return b()(g.a.mark((function t(){var a;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.default.Native.measureInAppWindow(e.rippleRef);case 2:a=t.sent,e.viewX=a.left,e.viewY=a.top;case 5:case"end":return t.stop()}}),t)})))()},onTouchStart:function(e){var t=e.touches[0];this.rippleRef.setHotspot(t.clientX-this.viewX,t.clientY+this.scrollOffsetY-this.viewY),this.rippleRef.setPressed(!0)},onTouchEnd:function(){this.rippleRef.setPressed(!1)}}},C=Object(c.a)(x,f,[],!1,null,null,null);C.options.__file="src/components/demos/demo-ripple-div.vue";var w={components:{"demo-ripple-div":C.exports},data:function(){return{Vue:i.default,offsetY:0,demo1Style:{display:"flex",height:"40px",width:"200px",backgroundImage:"".concat(y.a),backgroundSize:"cover",backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"},imgRectangle:{width:"260px",height:"56px",alignItems:"center",justifyContent:"center"},imgRectangleExtra:{marginTop:"20px",backgroundImage:"".concat(y.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"}}},mounted:function(){var e=this;this.demon2=this.$refs["demo-2"],setTimeout((function(){e.demon2.scrollTo(50,0,1e3)}),1e3)},methods:{onOuterScroll:function(e){this.offsetY=e.offsetY},onScroll:function(e){console.log("onScroll",e)},onMomentumScrollBegin:function(e){console.log("onMomentumScrollBegin",e)},onMomentumScrollEnd:function(e){console.log("onMomentumScrollEnd",e)},onScrollBeginDrag:function(e){console.log("onScrollBeginDrag",e)},onScrollEndDrag:function(e){console.log("onScrollEndDrag",e)}}},S=(a("./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&"),Object(c.a)(w,u,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ve3dda614 div-demo-1-1"},[t("p",{staticClass:"ve3dda614 div-demo-1-text"},[this._v("\n Hippy 背景渐变色展示\n ")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ve3dda614 div-demo-transform"},[t("p",{staticClass:"ve3dda614 div-demo-transform-text"},[this._v("\n Transform\n ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614 display-flex flex-row"},[a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n A\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n B\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n C\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n D\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n E\n ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614 display-flex flex-column"},[a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n A\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n B\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n C\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n D\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n E\n ")])])}],!1,null,"e3dda614",null));S.options.__file="src/components/demos/demo-div.vue";var k=S.exports,A=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vc6df51b0",attrs:{id:"demo-img"}},[a("div",{staticClass:"vc6df51b0",attrs:{id:"demo-img-container"}},[a("label",[e._v("Contain:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image contain",attrs:{src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",placeholder:e.defaultImage},on:{touchstart:e.onTouchStart,touchmove:e.onTouchMove,touchend:e.onTouchEnd}}),e._v(" "),a("label",[e._v("Cover:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}}),e._v(" "),a("label",[e._v("Center:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image center",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}}),e._v(" "),a("label",[e._v("CapInsets:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",capInsets:{top:50,left:50,bottom:50,right:50}}}),e._v(" "),a("label",[e._v("TintColor:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image center tint-color",attrs:{src:e.hippyLogoImage}}),e._v(" "),a("label",[e._v("Gif:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif"},on:{load:e.onLoad}}),e._v(" "),a("div",{staticClass:"vc6df51b0 img-result"},[a("p",[e._v("Load Result: "+e._s(e.gifLoadResult))])])])])};A._withStripped=!0;var P=a("./src/assets/hippyLogoWhite.png"),j=a.n(P),E={data:function(){return{defaultImage:y.a,hippyLogoImage:j.a,gifLoadResult:{}}},methods:{onTouchStart:function(e){console.log("onTouchDown",e),e.stopPropagation()},onTouchMove:function(e){console.log("onTouchMove",e),e.stopPropagation(),console.log(e)},onTouchEnd:function(e){console.log("onTouchEnd",e),e.stopPropagation(),console.log(e)},onLoad:function(e){console.log("onLoad",e);var t=e.width,a=e.height,o=e.url;this.gifLoadResult={width:t,height:a,url:o}}}},T=(a("./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&"),Object(c.a)(E,A,[],!1,null,"c6df51b0",null));T.options.__file="src/components/demos/demo-img.vue";var V=T.exports,L=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"inputDemo",staticClass:"v76bc5c6f demo-input",on:{click:e.blurAllInput}},[a("label",[e._v("文本:")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.text,expression:"text"}],ref:"input",staticClass:"v76bc5c6f input",attrs:{placeholder:"Text","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",editable:!0},domProps:{value:e.text},on:{click:e.stopPropagation,keyboardWillShow:e.onKeyboardWillShow,keyboardWillHide:e.onKeyboardWillHide,blur:e.onBlur,focus:e.onFocus,input:function(t){t.target.composing||(e.text=t.target.value)}}}),e._v(" "),a("div",[a("span",[e._v("文本内容为:")]),e._v(" "),a("span",[e._v(e._s(e.text))])]),e._v(" "),a("div",[a("span",[e._v(e._s("事件: "+e.event+" | isFocused: "+e.isFocused))])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.clearTextContent}},[a("span",[e._v("清空文本内容")])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.focus}},[a("span",[e._v("Focus")])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.blur}},[a("span",[e._v("Blur")])]),e._v(" "),a("label",[e._v("数字:")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{type:"number","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Number"},on:{change:e.textChange,click:e.stopPropagation}}),e._v(" "),a("label",[e._v("密码:")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{type:"password","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Password"},on:{change:e.textChange,click:e.stopPropagation}}),e._v(" "),a("label",[e._v("文本(限制5个字符):")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{maxlength:5,"caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"5 个字符"},on:{change:e.textChange,click:e.stopPropagation}})])};L._withStripped=!0;var I={data:function(){return{text:"",event:void 0,isFocused:void 0}},mounted:function(){this.getChildNodes(this.$refs.inputDemo.childNodes).find((function(e){return"input"===e.tagName})).focus()},methods:{textChange:function(e){console.log(e.value)},blurAllInput:function(){this.getChildNodes(this.$refs.inputDemo.childNodes).filter((function(e){return"input"===e.tagName})).forEach((function(e){return e.blur()}))},stopPropagation:function(e){e.stopPropagation()},clearTextContent:function(){this.text=""},onKeyboardWillHide:function(){console.log("onKeyboardWillHide")},onKeyboardWillShow:function(e){console.log("onKeyboardWillShow",e)},getChildNodes:function(e){return i.default.Native?e:Array.from(e)},focus:function(e){e.stopPropagation(),this.$refs.input.focus()},blur:function(e){e.stopPropagation(),this.$refs.input.blur()},onFocus:function(){var e=this;return b()(g.a.mark((function t(){return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.input.isFocused();case 2:e.isFocused=t.sent,e.event="onFocus";case 4:case"end":return t.stop()}}),t)})))()},onBlur:function(){var e=this;return b()(g.a.mark((function t(){return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.input.isFocused();case 2:e.isFocused=t.sent,e.event="onBlur";case 4:case"end":return t.stop()}}),t)})))()}}},Y=(a("./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&"),Object(c.a)(I,L,[],!1,null,"76bc5c6f",null));Y.options.__file="src/components/demos/demo-input.vue";var O=Y.exports,H=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v36005ed6 p-demo"},[a("div",[a("label",[e._v("不带样式:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-content",on:{touchstart:e.onTouchTextStart,touchmove:e.onTouchTextMove,touchend:e.onTouchTextEnd}},[e._v("\n 这是最普通的一行可点击文字\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-content-status"},[e._v("\n 当前touch状态: "+e._s(e.labelTouchStatus)+"\n ")]),e._v(" "),a("label",[e._v("颜色:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-1 p-demo-content"},[e._v("\n 这行文字改变了颜色\n ")]),e._v(" "),a("label",[e._v("尺寸:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-2 p-demo-content"},[e._v("\n 这行改变了大小\n ")]),e._v(" "),a("label",[e._v("粗体:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-3 p-demo-content"},[e._v("\n 这行加粗了\n ")]),e._v(" "),a("label",[e._v("下划线:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-4 p-demo-content"},[e._v("\n 这里有条下划线\n ")]),e._v(" "),a("label",[e._v("删除线:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-5 p-demo-content"},[e._v("\n 这里有条删除线\n ")]),e._v(" "),a("label",[e._v("自定义字体:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content"},[e._v("\n 腾讯字体 Hippy\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-weight":"bold"}},[e._v("\n 腾讯字体 Hippy 粗体\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-style":"italic"}},[e._v("\n 腾讯字体 Hippy 斜体\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-weight":"bold","font-style":"italic"}},[e._v("\n 腾讯字体 Hippy 粗斜体\n ")]),e._v(" "),a("label",[e._v("文字阴影:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-7 p-demo-content",style:e.textShadow,on:{click:e.changeTextShadow}},[e._v("\n 这里是文字灰色阴影,点击可改变颜色\n ")]),e._v(" "),a("label",[e._v("文本字符间距")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-8 p-demo-content",staticStyle:{"margin-bottom":"5px"}},[e._v("\n Text width letter-spacing -1\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-9 p-demo-content",staticStyle:{"margin-top":"5px"}},[e._v("\n Text width letter-spacing 5\n ")]),e._v(" "),a("label",[e._v("字体 style:")]),e._v(" "),e._m(0),e._v(" "),a("label",[e._v("numberOfLines="+e._s(e.textMode.numberOfLines)+" | ellipsizeMode="+e._s(e.textMode.ellipsizeMode))]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"19px",color:"white"}},[e._v("先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。")]),e._v(" "),a("span",[e._v("然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")])]),e._v(" "),a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[e._v("\n "+e._s("line 1\n\nline 3\n\nline 5")+"\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5,fontSize:14},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[a("img",{staticClass:"v36005ed6",style:{width:24,height:24},attrs:{src:e.img1}}),e._v(" "),a("img",{staticClass:"v36005ed6",style:{width:24,height:24},attrs:{src:e.img2}})]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:e.incrementLine}},[a("span",[e._v("加一行")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:e.decrementLine}},[a("span",[e._v("减一行")])])]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("clip")}}},[a("span",[e._v("clip")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("head")}}},[a("span",[e._v("head")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("middle")}}},[a("span",[e._v("middle")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("tail")}}},[a("span",[e._v("tail")])])])]),e._v(" "),"android"===e.Platform?a("label",[e._v("break-strategy="+e._s(e.breakStrategy))]):e._e(),e._v(" "),"android"===e.Platform?a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"border-width":"1","border-color":"gray"},attrs:{"break-strategy":e.breakStrategy}},[e._v("\n "+e._s(e.longText)+"\n ")]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("simple")}}},[a("span",[e._v("simple")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("high_quality")}}},[a("span",[e._v("high_quality")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("balanced")}}},[a("span",[e._v("balanced")])])])]):e._e(),e._v(" "),a("label",[e._v("vertical-align")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-align":"middle"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-align":"baseline"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-align":"bottom"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-align":"middle"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-align":"baseline"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-align":"bottom"},attrs:{src:e.img3}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"top"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"middle"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"baseline"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"bottom"}},[e._v("字")])]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{lineHeight:"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"0"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-alignment":"1"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-alignment":"2"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-alignment":"3"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24",top:"-10"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12",top:"-5"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24",top:"5"},attrs:{src:e.img3}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")])]):e._e()]),e._v(" "),a("label",[e._v("tint-color & background-color")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"vertical-align":"middle","background-color":"#99f"}},[e._v("text")])]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","tint-color":"orange"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","tint-color":"orange","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","background-color":"#ccc"},attrs:{src:e.img2}})]):e._e()]),e._v(" "),a("label",[e._v("margin")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"baseline","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"bottom","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}})]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"0","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"1","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"2","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"3","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}})]):e._e()])])])};H._withStripped=!0;var R={data:function(){return{Platform:i.default.Native.Platform,textShadowIndex:0,isClicked:!1,isPressing:!1,labelTouchStatus:"",textShadow:{textShadowOffset:{x:1,y:1},textShadowRadius:3,textShadowColor:"grey"},textMode:{numberOfLines:2,ellipsizeMode:"tail"},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.",breakStrategy:"simple"}},methods:{changeTextShadow:function(){this.textShadow={textShadowOffsetX:this.textShadowIndex%2==1?10:1,textShadowOffsetY:1,textShadowRadius:3,textShadowColor:this.textShadowIndex%2==1?"red":"grey"},this.textShadowIndex+=1},onTouchTextStart:function(e){this.labelTouchStatus="touch start",console.log("onTextTouchDown",e),e.stopPropagation()},onTouchTextMove:function(e){this.labelTouchStatus="touch move",console.log("onTextTouchMove",e),e.stopPropagation(),console.log(e)},onTouchTextEnd:function(e){this.labelTouchStatus="touch end",console.log("onTextTouchEnd",e),e.stopPropagation(),console.log(e)},incrementLine:function(){this.textMode.numberOfLines<6&&(this.textMode.numberOfLines+=1)},decrementLine:function(){this.textMode.numberOfLines>1&&(this.textMode.numberOfLines-=1)},changeMode:function(e){this.textMode.ellipsizeMode=e},changeBreakStrategy:function(e){this.breakStrategy=e}}},D=(a("./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&"),Object(c.a)(R,H,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v36005ed6 p-demo-content"},[t("p",{staticClass:"v36005ed6",staticStyle:{"font-style":"normal"}},[this._v("\n font-style: normal\n ")]),this._v(" "),t("p",{staticClass:"v36005ed6",staticStyle:{"font-style":"italic"}},[this._v("\n font-style: italic\n ")]),this._v(" "),t("p",[this._v("font-style: [not set]")])])}],!1,null,"36005ed6",null));D.options.__file="src/components/demos/demo-p.vue";var B=D.exports,U=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v5819936a",attrs:{id:"shadow-demo"}},["android"===e.Platform?a("div",{staticClass:"v5819936a no-offset-shadow-demo-cube-android"},[e._m(0)]):e._e(),e._v(" "),"ios"===e.Platform?a("div",{staticClass:"v5819936a no-offset-shadow-demo-cube-ios"},[e._m(1)]):e._e(),e._v(" "),"android"===e.Platform?a("div",{staticClass:"v5819936a offset-shadow-demo-cube-android"},[e._m(2)]):e._e(),e._v(" "),"ios"===e.Platform?a("div",{staticClass:"v5819936a offset-shadow-demo-cube-ios"},[e._m(3)]):e._e()])};U._withStripped=!0;var N={data:function(){return{Platform:i.default.Native.Platform}},mounted:function(){this.Platform=i.default.Native.Platform}},M=(a("./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&"),Object(c.a)(N,U,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a no-offset-shadow-demo-content-android"},[t("p",[this._v("没有偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a no-offset-shadow-demo-content-ios"},[t("p",[this._v("没有偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a offset-shadow-demo-content-android"},[t("p",[this._v("偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a offset-shadow-demo-content-ios"},[t("p",[this._v("偏移阴影样式")])])}],!1,null,"5819936a",null));M.options.__file="src/components/demos/demo-shadow.vue";var F=M.exports,z=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v6cb502b6",attrs:{id:"demo-textarea"}},[a("label",[e._v("多行文本:")]),e._v(" "),a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],staticClass:"v6cb502b6 textarea",attrs:{rows:10,placeholder:"多行文本编辑器"},domProps:{value:e.content},on:{contentSizeChange:e.contentSizeChange,input:function(t){t.target.composing||(e.content=t.target.value)}}}),e._v(" "),a("div",{staticClass:"v6cb502b6 output-container"},[a("p",{staticClass:"v6cb502b6 output"},[e._v("\n 输入的文本为:"+e._s(e.content)+"\n ")])]),e._v(" "),"android"===e.Platform?a("label",[e._v("break-strategy="+e._s(e.breakStrategy))]):e._e(),e._v(" "),"android"===e.Platform?a("div",[a("textarea",{staticClass:"v6cb502b6 textarea",attrs:{defaultValue:e.longText,"break-strategy":e.breakStrategy}}),e._v(" "),a("div",{staticClass:"v6cb502b6 button-bar"},[a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("simple")}}},[a("span",[e._v("simple")])]),e._v(" "),a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("high_quality")}}},[a("span",[e._v("high_quality")])]),e._v(" "),a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("balanced")}}},[a("span",[e._v("balanced")])])])]):e._e()])};z._withStripped=!0;var W={data:function(){return{Platform:i.default.Native.Platform,content:"The quick brown fox jumps over the lazy dog,快灰狐狸跳过了懒 🐕。",longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",breakStrategy:"simple"}},methods:{contentSizeChange:function(e){console.log(e)},changeBreakStrategy:function(e){this.breakStrategy=e}}},$=(a("./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&"),Object(c.a)(W,z,[],!1,null,"6cb502b6",null));$.options.__file="src/components/demos/demo-textarea.vue";var G=$.exports,K=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v71b90789",attrs:{id:"demo-list"}},[a("ul",{ref:"list",staticClass:"v71b90789",style:e.horizontal&&{height:50,flex:0},attrs:{id:"list",horizontal:e.horizontal,exposureEventEnabled:!0,delText:e.delText,editable:!0,bounces:!0,rowShouldSticky:!0,overScrollEnabled:!0,scrollEventThrottle:1e3},on:{endReached:e.onEndReached,delete:e.onDelete,scroll:e.onScroll,momentumScrollBegin:e.onMomentumScrollBegin,momentumScrollEnd:e.onMomentumScrollEnd,scrollBeginDrag:e.onScrollBeginDrag,scrollEndDrag:e.onScrollEndDrag}},e._l(e.dataSource,(function(t,o){return a("li",{key:o+"_"+t.style,staticClass:"v71b90789",class:e.horizontal&&"item-horizontal-style",attrs:{type:t.style,sticky:1===o},on:{appear:function(t){return e.onAppear(o)},disappear:function(t){return e.onDisappear(o)},willAppear:function(t){return e.onWillAppear(o)},willDisappear:function(t){return e.onWillDisappear(o)}}},[1===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 1 UI")+"\n ")])])]):2===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 2 UI")+"\n ")])])]):5===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 5 UI")+"\n ")])])]):a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{id:"loading"}},[e._v("\n "+e._s(e.loadingState)+"\n ")])])]),e._v(" "),o!==e.dataSource.length-1?a("div",{staticClass:"v71b90789 separator-line"}):e._e()])})),0),e._v(" "),"android"===e.Vue.Native.Platform?a("div",{staticClass:"v71b90789",style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#40b883"},on:{click:e.changeDirection}},[a("div",{staticClass:"v71b90789",style:{width:60,height:60,borderRadius:30,backgroundColor:"#40b883",display:"flex",justifyContent:"center",alignItems:"center"}},[a("p",{staticClass:"v71b90789",style:{color:"white"}},[e._v("\n 切换方向\n ")])])]):e._e()])};K._withStripped=!0;var q=[{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}],Q={data:function(){return{Vue:i.default,loadingState:"Loading now...",dataSource:[],delText:"Delete",horizontal:void 0}},mounted:function(){this.isLoading=!1,this.dataSource=q},methods:{changeDirection:function(){this.horizontal=void 0===this.horizontal||void 0},onAppear:function(e){console.log("onAppear",e)},onDisappear:function(e){console.log("onDisappear",e)},onWillAppear:function(e){console.log("onWillAppear",e)},onWillDisappear:function(e){console.log("onWillDisappear",e)},mockFetchData:function(){return new Promise((function(e){setTimeout((function(){return e(q)}),600)}))},onDelete:function(e){this.dataSource.splice(e.index,1)},onEndReached:function(){var e=this;return b()(g.a.mark((function t(){var a,o;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.dataSource,!e.isLoading){t.next=3;break}return t.abrupt("return");case 3:return e.isLoading=!0,e.dataSource=a.concat([{style:100}]),t.next=7,e.mockFetchData();case 7:o=t.sent,e.dataSource=a.concat(o),e.isLoading=!1;case 10:case"end":return t.stop()}}),t)})))()},onScroll:function(e){console.log("onScroll",e.offsetY),e.offsetY<=0?this.topReached||(this.topReached=!0,console.log("onTopReached")):this.topReached=!1},onMomentumScrollBegin:function(e){console.log("momentumScrollBegin",e)},onMomentumScrollEnd:function(e){console.log("momentumScrollEnd",e)},onScrollBeginDrag:function(e){console.log("onScrollBeginDrag",e)},onScrollEndDrag:function(e){console.log("onScrollEndDrag",e)}}},X=(a("./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&"),Object(c.a)(Q,K,[],!1,null,"71b90789",null));X.options.__file="src/components/demos/demo-list.vue";var J=X.exports,Z=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{style:e.iframeStyle,attrs:{id:"iframe-demo"}},[a("label",[e._v("地址栏:")]),e._v(" "),a("input",{ref:"input",attrs:{id:"address",name:"url",returnKeyType:"go"},domProps:{value:e.displayUrl},on:{endEditing:e.goToUrl,keyup:e.onKeyUp}}),e._v(" "),a("iframe",{ref:"iframe",attrs:{id:"iframe",src:e.url,method:"get"},on:{load:e.onLoad,loadStart:e.onLoadStart,loadEnd:e.onLoadEnd}})])};Z._withStripped=!0;var ee={data:function(){return{url:"https://hippyjs.org",displayUrl:"https://hippyjs.org",iframeStyle:{"min-height":i.default.Native?100:"100vh"}}},methods:{onLoad:function(e){var t=e.url;void 0===t&&(t=this.$refs.iframe.src),t!==this.url&&(this.displayUrl=t)},onLoadStart:function(e){var t=e.url;console.log("onLoadStart",t)},onLoadEnd:function(e){var t=e.url,a=e.success,o=e.error;console.log("onLoadEnd",t,a,o)},onKeyUp:function(e){13===e.keyCode&&(e.preventDefault(),this.goToUrl({value:this.$refs.input.value}))},goToUrl:function(e){this.url=e.value}}},te=(a("./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&"),Object(c.a)(ee,Z,[],!1,null,null,null));te.options.__file="src/components/demos/demo-iframe.vue";var ae=te.exports,oe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v77bce928",attrs:{id:"websocket-demo"}},[a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Url:\n ")]),e._v(" "),a("input",{ref:"inputUrl",staticClass:"v77bce928",attrs:{value:"wss://echo.websocket.org"}}),e._v(" "),a("div",{staticClass:"v77bce928 row"},[a("button",{staticClass:"v77bce928",on:{click:e.connect}},[a("span",[e._v("Connect")])]),e._v(" "),a("button",{staticClass:"v77bce928",on:{click:e.disconnect}},[a("span",[e._v("Disconnect")])])])]),e._v(" "),a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Message:\n ")]),e._v(" "),a("input",{ref:"inputMessage",staticClass:"v77bce928",attrs:{value:"Rock it with Hippy WebSocket"}}),e._v(" "),a("button",{staticClass:"v77bce928",on:{click:e.sendMessage}},[a("span",[e._v("Send")])])]),e._v(" "),a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Log:\n ")]),e._v(" "),a("div",{staticClass:"v77bce928 output fullscreen"},[a("div",e._l(e.output,(function(t,o){return a("p",{key:o,staticClass:"v77bce928"},[e._v("\n "+e._s(t)+"\n ")])})),0)])])])};oe._withStripped=!0;var re={data:function(){return{output:[]}},methods:{connect:function(){var e=this;this.$refs.inputUrl.getValue().then((function(t){e.disconnect();var a=new WebSocket(t);a.onopen=function(){return e.appendOutput("[Opened] ".concat(a.url))},a.onclose=function(){return e.appendOutput("[Closed] ".concat(a.url))},a.onerror=function(t){return e.appendOutput("[Error] ".concat(t.reason))},a.onmessage=function(t){return e.appendOutput("[Received] ".concat(t.data))},e.ws=a}))},disconnect:function(){this.ws&&1===this.ws.readyState&&this.ws.close()},appendOutput:function(e){this.output.unshift(e)},sendMessage:function(){var e=this;this.$refs.inputMessage.getValue().then((function(t){e.appendOutput("[Sent] ".concat(t)),e.ws.send(t)}))}}},ne=(a("./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&"),Object(c.a)(re,oe,[],!1,null,"77bce928",null));ne.options.__file="src/components/demos/demo-websocket.vue";var ie=ne.exports,se=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v2ea31349",attrs:{id:"demo-dynamicimport"},on:{click:this.onAsyncComponentLoad}},[this._m(0),this._v(" "),this.loaded?t("div",{staticClass:"v2ea31349 async-com-wrapper"},[t("AsyncComponentFromLocal",{staticClass:"v2ea31349 async-component-outer-local"}),this._v(" "),t("AsyncComponentFromHttp")],1):this._e()])};se._withStripped=!0;var le={components:{AsyncComponentFromLocal:function(){return a.e(1).then(a.bind(null,"./src/components/demos/dynamicImport/async-component-local.vue")).then((function(e){return e})).catch((function(e){return console.error("import async local component error",e)}))},AsyncComponentFromHttp:function(){return a.e(0).then(a.bind(null,"./src/components/demos/dynamicImport/async-component-http.vue")).then((function(e){return e})).catch((function(e){return console.error("import async remote component error",e)}))}},data:function(){return{loaded:!1}},methods:{onAsyncComponentLoad:function(){this.loaded=!0}}},ce=(a("./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&"),Object(c.a)(le,se,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v2ea31349 import-btn"},[t("p",[this._v("点我异步加载")])])}],!1,null,"2ea31349",null));ce.options.__file="src/components/demos/demo-dynamicimport.vue";var de=ce.exports,pe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v14216e7a demo-turbo"},[a("span",{staticClass:"v14216e7a result"},[e._v(" "+e._s(e.result)+" ")]),e._v(" "),a("ul",{staticClass:"v14216e7a",staticStyle:{flex:"1"}},e._l(e.funList,(function(t){return a("li",{key:t,staticClass:"v14216e7a cell"},[a("div",{staticClass:"v14216e7a contentView"},[a("div",{staticClass:"v14216e7a func-info"},[a("span",{staticClass:"v14216e7a",attrs:{numberOfLines:0}},[e._v("函数名:"+e._s(t))])]),e._v(" "),a("span",{staticClass:"v14216e7a action-button",on:{click:function(a){return a.stopPropagation(),function(){return e.onTurboFunc(t)}.apply(null,arguments)}}},[e._v("运行")])])])})),0)])};pe._withStripped=!0;var ue=function(){var e=b()(g.a.mark((function e(t){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",turboPromise(getTurboModule("demoTurbo").nativeWithPromise)(t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ve=function(){return getTurboModule("demoTurbo").getTurboConfig()},ye={data:function(){return{config:null,result:"",funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"]}},methods:{onTurboFunc:function(e){var t=this;return b()(g.a.mark((function a(){var o;return g.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if("nativeWithPromise"!==e){a.next=6;break}return a.next=3,ue("aaa");case 3:t.result=a.sent,a.next=7;break;case 6:"getTurboConfig"===e?(t.config=ve(),t.result="获取到config对象"):"printTurboConfig"===e?t.result=(r=t.config||ve(),getTurboModule("demoTurbo").printTurboConfig(r)):"getInfo"===e?t.result=(t.config||ve()).getInfo():"setInfo"===e?((t.config||ve()).setInfo("Hello World"),t.result="设置config信息成功"):(o={getString:function(){return e="123",getTurboModule("demoTurbo").getString(e);var e},getNum:function(){return e=1024,getTurboModule("demoTurbo").getNum(e);var e},getBoolean:function(){return e=!0,getTurboModule("demoTurbo").getBoolean(e);var e},getMap:function(){return e=new Map([["a","1"],["b",2]]),getTurboModule("demoTurbo").getMap(e);var e},getObject:function(){return e={c:"3",d:"4"},getTurboModule("demoTurbo").getObject(e);var e},getArray:function(){return e=["a","b","c"],getTurboModule("demoTurbo").getArray(e);var e}},t.result=o[e]());case 7:case"end":return a.stop()}var r}),a)})))()}}},fe=(a("./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&"),Object(c.a)(ye,pe,[],!1,null,"14216e7a",null));fe.options.__file="src/components/demos/demo-turbo.vue";var he={demoDiv:{name:"div 组件",component:k},demoShadow:{name:"box-shadow",component:F},demoP:{name:"p 组件",component:B},demoButton:{name:"button 组件",component:p},demoImg:{name:"img 组件",component:V},demoInput:{name:"input 组件",component:O},demoTextarea:{name:"textarea 组件",component:G},demoUl:{name:"ul/li 组件",component:J},demoIFrame:{name:"iframe 组件",component:ae},demoWebSocket:{name:"WebSocket",component:ie},demoDynamicImport:{name:"DynamicImport",component:de},demoTurbo:{name:"Turbo",component:fe.exports}},be=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v4ffd9eb0 set-native-props-demo"},[a("label",[e._v("setNativeProps实现拖动效果")]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 native-demo-1-drag",style:{width:e.screenWidth},on:{touchstart:e.onTouchDown1,touchmove:e.onTouchMove1}},[a("div",{ref:"demo-1-point",staticClass:"v4ffd9eb0 native-demo-1-point"})]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 splitter"}),e._v(" "),a("label",[e._v("普通渲染实现拖动效果")]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 native-demo-2-drag",style:{width:e.screenWidth},on:{touchstart:e.onTouchDown2,touchmove:e.onTouchMove2}},[a("div",{ref:"demo-2-point",staticClass:"v4ffd9eb0 native-demo-2-point",style:{left:e.demon2Left+"px"}})])])};be._withStripped=!0;var me={data:function(){return{demon2Left:0,screenWidth:0}},mounted:function(){this.screenWidth=i.default.Native.Dimensions.screen.width,this.demon1Point=this.$refs["demo-1-point"]},methods:{onTouchDown1:function(e){e.stopPropagation();var t=e.touches[0].clientX-40;console.log("touchdown x",t,this.screenWidth),this.demon1Point.setNativeProps({style:{left:t}})},onTouchMove1:function(e){e.stopPropagation();var t=e.touches[0].clientX-40;console.log("touchmove x",t,this.screenWidth),this.demon1Point.setNativeProps({style:{left:t}})},onTouchDown2:function(e){e.stopPropagation(),this.demon2Left=e.touches[0].clientX-40,console.log("touchdown x",this.demon2Left,this.screenWidth)},onTouchMove2:function(e){e.stopPropagation(),this.demon2Left=e.touches[0].clientX-40,console.log("touchmove x",this.demon2Left,this.screenWidth)}}},ge=(a("./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&"),Object(c.a)(me,be,[],!1,null,"4ffd9eb0",null));ge.options.__file="src/components/demos/demo-set-native-props.vue";var _e=ge.exports,xe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"rect",staticClass:"v864846ba",attrs:{id:"demo-vue-native"}},[a("div",[e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Platform")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Platform))])]):e._e(),e._v(" "),e.Vue.Native.Device?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Device")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Device))])]):e._e(),e._v(" "),"ios"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.isIPhoneX")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.isIPhoneX))])]):e._e(),e._v(" "),"ios"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.OSVersion")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.OSVersion||"null"))])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Localization")]),e._v(" "),a("p",[e._v(e._s("国际化相关信息"))]),e._v(" "),a("p",[e._v(e._s("国家 "+e.Vue.Native.Localization.country))]),e._v(" "),a("p",[e._v(e._s("语言 "+e.Vue.Native.Localization.language))]),e._v(" "),a("p",[e._v(e._s("方向 "+(1===e.Vue.Native.Localization.direction?"RTL":"LTR")))])]),e._v(" "),"android"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.APILevel")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.APILevel||"null"))])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block",on:{layout:e.refreshScreenStatus}},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.screenIsVertical")]),e._v(" "),a("p",[e._v(e._s(e.screenIsVertical))])]),e._v(" "),e.Vue.Native.Dimensions.window.width?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.window.width")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.window.width))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.window.height?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.window.height")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.window.height))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.width?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.width")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.width))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.height?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.height")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.height))])]):e._e(),e._v(" "),e.Vue.Native.OnePixel?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.OnePixel")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.OnePixel))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.navigatorBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.navigatorBarHeight")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.navigatorBarHeight))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.statusBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.statusBarHeight")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.statusBarHeight))])]):e._e(),e._v(" "),"android"===e.Vue.Native.Platform&&void 0!==e.Vue.Native.Dimensions.screen.navigatorBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.navigatorBarHeight(Android only)")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.navigatorBarHeight))])]):e._e(),e._v(" "),e.app?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("App.$options.$superProps")]),e._v(" "),a("p",[e._v(e._s(JSON.stringify(e.app.$options.$superProps)))])]):e._e(),e._v(" "),e.app?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("App event")]),e._v(" "),a("div",[a("button",{staticClass:"v864846ba event-btn",on:{click:e.triggerAppEvent}},[a("span",{staticClass:"v864846ba event-btn-text"},[e._v("Trigger app event")])]),e._v(" "),a("div",{staticClass:"v864846ba event-btn-result"},[a("p",[e._v("Event triggered times: "+e._s(e.eventTriggeredTimes))])])])]):e._e(),e._v(" "),e.Vue.Native.getBoundingClientRect?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.getBoundingClientRect")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:function(){return e.getBoundingClientRect(!1)}}},[a("span",[e._v("relative to App")])]),e._v(" "),a("span",{staticClass:"v864846ba",staticStyle:{"max-width":"200px"}},[e._v(e._s(e.rect1))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:function(){return e.getBoundingClientRect(!0)}}},[a("span",[e._v("relative to container")])]),e._v(" "),a("span",{staticClass:"v864846ba",staticStyle:{"max-width":"200px"}},[e._v(e._s(e.rect2))])])]):e._e(),e._v(" "),e.Vue.Native.AsyncStorage?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("AsyncStorage 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setItem}},[a("span",[e._v("setItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageSetStatus))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.removeItem}},[a("span",[e._v("removeItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageSetStatus))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getItem}},[a("span",[e._v("getItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageValue))])])]):e._e(),e._v(" "),e.Vue.Native.ImageLoader?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("ImageLoader 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getSize}},[a("span",[e._v("getSize")])]),e._v(" "),a("span",[e._v(e._s(e.imageSize))])])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Fetch 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("span",[e._v(e._s(e.fetchText))])])]),e._v(" "),e.Vue.Native.NetInfo?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("NetInfo 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("span",[e._v(e._s(e.netInfoText))])])]):e._e(),e._v(" "),e.Vue.Native.Cookie?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Cookie 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setCookie}},[a("span",[e._v("setCookie")])]),e._v(" "),a("span",[e._v(e._s(e.cookieString))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getCookie}},[a("span",[e._v("getCookie")])]),e._v(" "),a("span",[e._v(e._s(e.cookiesValue))])])]):e._e(),e._v(" "),e.Vue.Native.Clipboard?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Clipboard 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setString}},[a("span",[e._v("setString")])]),e._v(" "),a("span",[e._v(e._s(e.clipboardString))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getString}},[a("span",[e._v("getString")])]),e._v(" "),a("span",[e._v(e._s(e.clipboardValue))])])]):e._e()])])};xe._withStripped=!0;var Ce=a("./src/util.js"),we={data:function(){var e=i.default.Native.screenIsVertical;return{app:this.app,eventTriggeredTimes:0,rect1:null,rect2:null,Vue:i.default,screenIsVertical:e,storageValue:"",storageSetStatus:"ready to set",clipboardString:"ready to set",clipboardValue:"",imageSize:"",netInfoText:"正在获取...",fetchText:"请求网址中...",cookieString:"ready to set",cookiesValue:"",hasLayout:!1}},created:function(){var e=this;return b()(g.a.mark((function t(){return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.storageValue="",e.imageSize="",e.netInfoText="",t.next=5,i.default.Native.NetInfo.fetch();case 5:e.netInfoText=t.sent,e.netInfoListener=i.default.Native.NetInfo.addEventListener("change",(function(t){e.netInfoText="收到通知: ".concat(t.network_info)})),fetch("https://hippyjs.org",{mode:"no-cors"}).then((function(t){e.fetchText="成功状态: ".concat(t.status)})).catch((function(t){e.fetchText="收到错误: ".concat(t)}));case 8:case"end":return t.stop()}}),t)})))()},mounted:function(){var e=this;return b()(g.a.mark((function t(){return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.app=Object(Ce.a)(),e.app.$on("testEvent",(function(){e.eventTriggeredTimes+=1}));case 2:case"end":return t.stop()}}),t)})))()},beforeDestroy:function(){this.netInfoListener&&i.default.Native.NetInfo.remove("change",this.netInfoListener),this.app.$off("testEvent"),delete this.app},methods:{getBoundingClientRect:function(){var e=arguments,t=this;return b()(g.a.mark((function a(){var o,r;return g.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return o=e.length>0&&void 0!==e[0]&&e[0],a.prev=1,a.next=4,i.default.Native.getBoundingClientRect(t.$refs.rect,{relToContainer:o});case 4:r=a.sent,o?t.rect2="".concat(JSON.stringify(r)):t.rect1="".concat(JSON.stringify(r)),a.next=11;break;case 8:a.prev=8,a.t0=a.catch(1),console.error("getBoundingClientRect error",a.t0);case 11:case"end":return a.stop()}}),a,null,[[1,8]])})))()},triggerAppEvent:function(){this.app.$emit("testEvent")},refreshScreenStatus:function(){this.screenIsVertical=i.default.Native.screenIsVertical},setItem:function(){i.default.Native.AsyncStorage.setItem("itemKey","hippy"),this.storageSetStatus='set "hippy" value succeed'},removeItem:function(){i.default.Native.AsyncStorage.removeItem("itemKey"),this.storageSetStatus='remove "hippy" value succeed'},getItem:function(){var e=this;return b()(g.a.mark((function t(){var a;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.default.Native.AsyncStorage.getItem("itemKey");case 2:a=t.sent,e.storageValue=a||"undefined";case 4:case"end":return t.stop()}}),t)})))()},getSize:function(){var e=this;return b()(g.a.mark((function t(){var a;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.default.Native.ImageLoader.getSize("https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png");case 2:a=t.sent,console.log("ImageLoader getSize",a),e.imageSize="".concat(a.width,"x").concat(a.height);case 5:case"end":return t.stop()}}),t)})))()},setCookie:function(){i.default.Native.Cookie.set("https://hippyjs.org","name=hippy;network=mobile"),this.cookieString="'name=hippy;network=mobile' is set"},getCookie:function(){var e=this;i.default.Native.Cookie.getAll("https://hippyjs.org").then((function(t){e.cookiesValue=t}))},setString:function(){i.default.Native.Clipboard.setString("hippy"),this.clipboardString='copy "hippy" value succeed'},getString:function(){var e=this;return b()(g.a.mark((function t(){var a;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.default.Native.Clipboard.getString();case 2:a=t.sent,e.clipboardValue=a||"undefined";case 4:case"end":return t.stop()}}),t)})))()}}},Se=(a("./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&"),Object(c.a)(we,xe,[],!1,null,"864846ba",null));Se.options.__file="src/components/native-demos/demo-vue-native.vue";var ke=Se.exports,Ae=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{staticClass:"v1b9933af",attrs:{id:"animation-demo"}},[a("li",[a("label",[e._v("控制动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleLoopPlaying}},[e.loopPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])]),e._v(" "),a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleDirection}},["horizon"===e.direction?a("span",[e._v("切换为纵向")]):a("span",[e._v("切换为横向")])])]),e._v(" "),a("div",{staticClass:"v1b9933af",staticStyle:{height:"150px"}},[a("loop",{staticClass:"v1b9933af",attrs:{playing:e.loopPlaying,direction:e.direction,"on-ref":e.onRef},on:{actionsDidUpdate:e.actionsDidUpdate}},[a("p",[e._v("I'm a looping animation")])])],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("点赞笑脸动画:")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.voteUp}},[a("span",[e._v("点赞 👍")])]),e._v(" "),a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.voteDown}},[a("span",[e._v("踩 👎")])])]),e._v(" "),a("div",{staticClass:"v1b9933af vote-face-container center"},[a(e.voteComponent,{tag:"component",staticClass:"v1b9933af vote-icon",attrs:{"is-changed":e.isChanged}})],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("渐变色动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleColorPlaying}},[e.colorPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])])]),e._v(" "),a("div",[a("color-component",{staticClass:"v1b9933af",attrs:{playing:e.colorPlaying}},[a("p",[e._v("背景色渐变")])])],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("贝塞尔曲线动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleCubicPlaying}},[e.cubicPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])])]),e._v(" "),a("div",[a("cubic-bezier",{staticClass:"v1b9933af",attrs:{playing:e.cubicPlaying}},[a("p",[e._v("cubic-bezier(.45,2.84,.38,.5)")])])],1)])])};Ae._withStripped=!0;var Pe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("animation",{ref:"animationLoop",staticClass:"v63fc9d7f loop-green",style:{backgroundColor:"grey"},attrs:{playing:e.playing,actions:e.loopActions},on:{actionsDidUpdate:function(t){return e.$emit("actionsDidUpdate")}}},[a("div",{staticClass:"v63fc9d7f loop-white"},[e._t("default")],2)])],1)};Pe._withStripped=!0;var je={transform:{translateX:{startValue:0,toValue:200,duration:2e3,repeatCount:-1}}},Ee={transform:{translateY:{startValue:0,toValue:50,duration:2e3,repeatCount:-1}}},Te={props:{playing:Boolean,direction:{validator:function(e){return["horizon","vertical"].indexOf(e)>-1}},onRef:Function},data:function(){var e;switch(this.$props.direction){case"horizon":e=je;break;case"vertical":e=Ee;break;default:throw new Error("direction must be defined in props")}return{loopActions:e}},watch:{direction:function(e){switch(e){case"horizon":this.loopActions=je;break;case"vertical":this.loopActions=Ee}}},mounted:function(){this.$props.onRef&&this.$props.onRef(this.$refs.animationLoop)}},Ve=(a("./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&"),Object(c.a)(Te,Pe,[],!1,null,"63fc9d7f",null));Ve.options.__file="src/components/native-demos/animations/loop.vue";var Le=Ve.exports,Ie=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{ref:"animationView",staticClass:"v44bf239d loop-green",attrs:{playing:this.playing,actions:this.loopActions}},[t("div",{staticClass:"v44bf239d loop-white"},[this._t("default")],2)])],1)};Ie._withStripped=!0;var Ye={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)"}]}},Oe={props:{playing:Boolean,onRef:Function},data:function(){return{loopActions:Ye}},mounted:function(){this.$props.onRef&&this.$props.onRef(this.$refs.animationView)}},He=(a("./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&"),Object(c.a)(Oe,Ie,[],!1,null,"44bf239d",null));He.options.__file="src/components/native-demos/animations/cubic-bezier.vue";var Re=He.exports,De=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{staticClass:"vca89125a vote-face",attrs:{actions:this.animations.face,playing:""}}),this._v(" "),t("animation",{staticClass:"vca89125a vote-up-eye",attrs:{tag:"img",playing:"",props:{src:this.imgs.upVoteEye},actions:this.animations.upVoteEye}}),this._v(" "),t("animation",{staticClass:"vca89125a vote-up-mouth",attrs:{tag:"img",playing:"",props:{src:this.imgs.upVoteMouth},actions:this.animations.upVoteMouth}})],1)};De._withStripped=!0;var Be={data:function(){return{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}]}}}}}},Ue=(a("./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&"),Object(c.a)(Be,De,[],!1,null,"ca89125a",null));Ue.options.__file="src/components/native-demos/animations/vote-up.vue";var Ne=Ue.exports,Me=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("animation",{ref:"animationRef",staticClass:"v3adfe95a vote-face",attrs:{actions:e.animations.face,playing:""},on:{start:e.animationStart,end:e.animationEnd,repeat:e.animationRepeat,cancel:e.animationCancel}}),e._v(" "),a("animation",{staticClass:"v3adfe95a vote-down-face",attrs:{tag:"img",playing:"",props:{src:e.imgs.downVoteFace},actions:e.animations.downVoteFace}})],1)};Me._withStripped=!0;var Fe={transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},ze={transform:{translateX:[{startValue:10,toValue:1,duration:250,timingFunction:"linear"},{startValue:1,toValue:10,duration:250,delay:750,timingFunction:"linear",repeatCount:-1}]}},We={props:["isChanged"],data:function(){return{imgs:{downVoteFace:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAAAXVBMVEUAAACmaCCoaSKlZyCmaCCoaiG0byOlZyCmaCGnaSKmaCCmZyClZyCmaCCmaSCybyymZyClaCGlaCGnaCCnaSGnaiOlZyKocCXMmTOmaCKnaCKmaSClZyGoZyClZyDPYmTmAAAAHnRSTlMA6S/QtjYO+FdJ4tyZbWYH7cewgTw5JRQFkHFfXk8vbZ09AAAAiUlEQVQY07WQRxLDMAhFPyq21dxLKvc/ZoSiySTZ+y3g8YcFA5wFcOkHYEi5QDkknparH5EZKS6GExQLs0RzUQUY6VYiK2ayNIapQ6EjNk2xd616Bi5qIh2fn8BqroS1XtPmgYKXxo+y07LuDrH95pm3LBM5FMpHWg2osOOLjRR6hR/WOw780bwASN0IT3NosMcAAAAASUVORK5CYII="},animations:{face:Fe,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"}]}}}}},watch:{isChanged:function(e,t){var a=this;!t&&e?(console.log("changed to face2"),this.animations.face=ze):t&&!e&&(console.log("changed to face1"),this.animations.face=Fe),setTimeout((function(){a.animationRef.start()}),10)}},mounted:function(){this.animationRef=this.$refs.animationRef},methods:{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")}}},$e=(a("./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&"),Object(c.a)(We,Me,[],!1,null,"3adfe95a",null));$e.options.__file="src/components/native-demos/animations/vote-down.vue";var Ge=$e.exports,Ke=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{ref:"animationView",staticClass:"vc3eb3b96 color-green",attrs:{playing:this.playing,actions:this.colorActions}},[t("div",{staticClass:"vc3eb3b96 color-white"},[this._t("default")],2)])],1)};Ke._withStripped=!0;var qe={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}]},Qe={props:{playing:Boolean,onRef:Function},data:function(){return{colorActions:qe}}},Xe=(a("./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&"),Object(c.a)(Qe,Ke,[],!1,null,"c3eb3b96",null));Xe.options.__file="src/components/native-demos/animations/color-change.vue";var Je=Xe.exports,Ze={components:{Loop:Le,colorComponent:Je,CubicBezier:Re},data:function(){return{loopPlaying:!0,colorPlaying:!0,cubicPlaying:!0,direction:"horizon",voteComponent:Ne,colorComponent:Je,isChanged:!0}},methods:{onRef:function(e){this.animationRef=e},voteUp:function(){this.voteComponent=Ne},voteDown:function(){this.voteComponent=Ge,this.isChanged=!this.isChanged},toggleLoopPlaying:function(){this.loopPlaying=!this.loopPlaying},toggleColorPlaying:function(){this.colorPlaying=!this.colorPlaying},toggleCubicPlaying:function(){this.cubicPlaying=!this.cubicPlaying},toggleDirection:function(){this.direction="horizon"===this.direction?"vertical":"horizon"},actionsDidUpdate:function(){console.log("actions updated & startAnimation"),this.animationRef.start()}}},et=(a("./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&"),Object(c.a)(Ze,Ae,[],!1,null,"1b9933af",null));et.options.__file="src/components/native-demos/demo-animation.vue";var tt=et.exports,at=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vbdcf35a6",attrs:{id:"dialog-demo"}},[a("label",[e._v("显示或者隐藏对话框:")]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("slide")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--slide")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("fade")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--fade")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("slide_fade")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--slide_fade")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.autoHideStatusBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("hideStatusBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("隐藏状态栏")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.immersionStatusBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("immerseStatusBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("沉浸式状态栏")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.autoHideNavigationBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("hideNavigationBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("隐藏导航栏")])]),e._v(" "),e.dialogIsVisible?a("dialog",{staticClass:"vbdcf35a6",attrs:{animationType:e.dialogAnimationType,transparent:!0,supportedOrientations:e.supportedOrientations,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar},on:{show:e.onShow,requestClose:e.onClose}},[a("div",{staticClass:"vbdcf35a6 dialog-demo-wrapper"},[a("div",{staticClass:"vbdcf35a6 fullscreen center row",on:{click:e.clickView}},[a("div",{staticClass:"vbdcf35a6 dialog-demo-close-btn center column",on:{click:e.stopPropagation}},[a("p",{staticClass:"vbdcf35a6 dialog-demo-close-btn-text"},[e._v("\n 点击空白区域关闭\n ")]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-2",on:{click:e.clickOpenSecond}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("点击打开二级全屏弹窗")])])]),e._v(" "),e.dialog2IsVisible?a("dialog",{staticClass:"vbdcf35a6",attrs:{animationType:e.dialogAnimationType,transparent:!0,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar},on:{requestClose:e.onClose}},[a("div",{staticClass:"vbdcf35a6 dialog-2-demo-wrapper center column row",on:{click:e.clickOpenSecond}},[a("p",{staticClass:"vbdcf35a6 dialog-demo-close-btn-text",staticStyle:{color:"white"}},[e._v("\n Hello 我是二级全屏弹窗,点击任意位置关闭。\n ")])])]):e._e()])])]):e._e()])};at._withStripped=!0;var ot={beforeRouteLeave:function(e,t,a){this.dialogIsVisible||a()},data:function(){return{supportedOrientations:["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"],dialogIsVisible:!1,dialog2IsVisible:!1,dialogAnimationType:"",immersionStatusBar:!1,autoHideStatusBar:!1,autoHideNavigationBar:!1}},methods:{clickView:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogIsVisible=!this.dialogIsVisible,this.dialogIsVisible&&(this.dialogAnimationType=e)},clickOpenSecond:function(e){e.stopPropagation(),this.dialog2IsVisible=!this.dialog2IsVisible},clickDialogConfig:function(e){switch(e){case"hideStatusBar":this.autoHideStatusBar=!this.autoHideStatusBar;break;case"immerseStatusBar":this.immersionStatusBar=!this.immersionStatusBar;break;case"hideNavigationBar":this.autoHideNavigationBar=!this.autoHideNavigationBar}},onShow:function(){console.log("Dialog is opening")},onClose:function(e){e.stopPropagation(),this.dialog2IsVisible?this.dialog2IsVisible=!1:this.dialogIsVisible=!1,console.log("Dialog is closing")},stopPropagation:function(e){e.stopPropagation()}}},rt=(a("./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&"),Object(c.a)(ot,at,[],!1,null,"bdcf35a6",null));rt.options.__file="src/components/native-demos/demo-dialog.vue";var nt=rt.exports,it=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"demo-swiper"}},[a("div",{staticClass:"toolbar"},[a("button",{staticClass:"toolbar-btn",on:{click:e.scrollToPrevPage}},[a("span",[e._v("翻到上一页")])]),e._v(" "),a("button",{staticClass:"toolbar-btn",on:{click:e.scrollToNextPage}},[a("span",[e._v("翻到下一页")])]),e._v(" "),a("p",{staticClass:"toolbar-text"},[e._v("\n 当前第 "+e._s(e.currentSlideNum+1)+" 页\n ")])]),e._v(" "),a("swiper",{ref:"swiper",attrs:{id:"swiper","need-animation":"",current:e.currentSlide},on:{dragging:e.onDragging,dropped:e.onDropped,stateChanged:e.onStateChanged}},e._l(e.dataSource,(function(t){return a("swiper-slide",{key:t,style:{backgroundColor:4278222848+100*t}},[a("p",[e._v("I'm Slide "+e._s(t+1))])])})),1),e._v(" "),a("div",{attrs:{id:"swiper-dots"}},e._l(e.dataSource,(function(t){return a("div",{key:t,staticClass:"dot",class:{hightlight:e.currentSlideNum===t}})})),0)],1)};it._withStripped=!0;var st={data:function(){return{dataSource:new Array(7).fill(0).map((function(e,t){return t})),currentSlide:2,currentSlideNum:2,state:"idle"}},mounted:function(){this.$maxSlideIndex=this.$refs.swiper.$el.childNodes.length-1},methods:{scrollToNextPage:function(){this.currentSlide 如果不需要显示加载情况,可以直接使用 ul 的 onEndReached 实现一直加载\n *\n * 事件:\n * idle: 滑动距离在 pull-footer 区域内触发一次,参数 contentOffset,滑动距离\n * pulling: 滑动距离超出 pull-footer 后触发一次,参数 contentOffset,滑动距离\n * released: 滑动超出距离,松手后触发一次\n */\n "),a("pull-footer",{ref:"pullFooter",staticClass:"v44ac5390 pull-footer",on:{idle:e.onFooterIdle,pulling:e.onFooterPulling,released:e.onEndReached}},[a("p",{staticClass:"v44ac5390 pull-footer-text"},[e._v("\n "+e._s(e.footerRefreshText)+"\n ")])])],2)])};dt._withStripped=!0;var pt="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",ut={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[pt,pt,pt],subInfo:["三图评论","11评"]}},vt={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},yt={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}},ft=[yt,ut,vt,ut,vt,ut,vt,yt,ut],ht=(i.default.component("StyleOne",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n

\n {{ itemBean.title }}\n

\n
\n \n
\n
\n

\n {{ itemBean.subInfo.join(\'\') }}\n

\n
\n
\n '}),i.default.component("StyleTwo",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n
\n

\n {{ itemBean.title }}\n

\n
\n

\n {{ itemBean.subInfo.join(\'\') }}\n

\n
\n
\n
\n \n
\n
\n '}),i.default.component("StyleFive",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n

\n {{ itemBean.title }}\n

\n
\n \n
\n
\n

\n {{ itemBean.subInfo.join(\' \') }}\n

\n
\n
\n '}),{data:function(){return{headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",dataSource:[],scrollPos:{top:0,left:0},Vue:i.default}},mounted:function(){this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.dataSource=r()(ft),i.default.Native?(this.$windowHeight=i.default.Native.Dimensions.window.height,console.log("Vue.Native.Dimensions.window",i.default.Native.Dimensions)):this.$windowHeight=window.innerHeight,this.$refs.pullHeader.collapsePullHeader({time:2e3})},methods:{mockFetchData:function(){return new Promise((function(e){setTimeout((function(){return e(ft)}),800)}))},onHeaderPulling:function(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?this.headerRefreshText="松手,即可触发刷新":this.headerRefreshText="继续下拉,触发刷新")},onFooterPulling:function(e){console.log("onFooterPulling",e)},onHeaderIdle:function(){},onFooterIdle:function(){},onScroll:function(e){e.stopPropagation(),this.scrollPos={top:e.offsetY,left:e.offsetX}},onHeaderReleased:function(){var e=this;return b()(g.a.mark((function t(){var a;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.fetchingDataFlag){t.next=2;break}return t.abrupt("return");case 2:return e.fetchingDataFlag=!0,console.log("onHeaderReleased"),e.headerRefreshText="刷新数据中,请稍等",t.next=7,e.mockFetchData();case 7:a=t.sent,e.dataSource=a.reverse(),e.fetchingDataFlag=!1,e.headerRefreshText="2秒后收起",e.$refs.pullHeader.collapsePullHeader({time:2e3});case 12:case"end":return t.stop()}}),t)})))()},onEndReached:function(){var e=this;return b()(g.a.mark((function t(){var a,o;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.dataSource,!e.loadMoreDataFlag){t.next=3;break}return t.abrupt("return");case 3:return e.loadMoreDataFlag=!0,e.footerRefreshText="加载更多...",t.next=7,e.mockFetchData();case 7:0===(o=t.sent).length&&(e.footerRefreshText="没有更多数据"),e.dataSource=[].concat(r()(a),r()(o)),e.loadMoreDataFlag=!1,e.$refs.pullFooter.collapsePullFooter();case 12:case"end":return t.stop()}}),t)})))()},scrollToNextPage:function(){if(i.default.Native){var e=this.$refs.list,t=this.scrollPos,a=t.top+this.$windowHeight-200;e.scrollTo({left:t.left,top:a})}else alert("This method is only supported in Native environment.")},scrollToBottom:function(){if(i.default.Native){var e=this.$refs.list;e.scrollToIndex(0,e.childNodes.length-1)}else alert("This method is only supported in Native environment.")}}}),bt=(a("./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&"),Object(c.a)(ht,dt,[],!1,null,"44ac5390",null));bt.options.__file="src/components/native-demos/demo-pull-header-footer.vue";var mt=bt.exports,gt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v782cda3d",attrs:{id:"demo-waterfall"}},[a("waterfall",{ref:"gridView",staticClass:"v782cda3d",style:{flex:1},attrs:{"content-inset":e.contentInset,"column-spacing":e.columnSpacing,"contain-banner-view":e.isIos,"contain-pull-footer":!0,"inter-item-spacing":e.interItemSpacing,"number-of-columns":e.numberOfColumns,"preload-item-number":4},on:{endReached:e.onEndReached,scroll:e.onScroll}},[a("pull-header",{ref:"pullHeader",staticClass:"v782cda3d ul-refresh",on:{idle:e.onHeaderIdle,pulling:e.onHeaderPulling,released:e.onHeaderReleased}},[a("p",{staticClass:"v782cda3d ul-refresh-text"},[e._v("\n "+e._s(e.headerRefreshText)+"\n ")])]),e._v(" "),e.isIos?a("div",{staticClass:"v782cda3d banner-view"},[a("span",[e._v("BannerView")])]):e._e(),e._v(" "),a("waterfall-item",{staticClass:"v782cda3d banner-view",attrs:{fullSpan:!0,",":""}},[a("span",[e._v("BannerView")])]),e._v(" "),e._l(e.dataSource,(function(t,o){return a("waterfall-item",{key:o,staticClass:"v782cda3d",style:{width:e.itemWidth},attrs:{type:t.style},on:{click:function(t){return t.stopPropagation(),function(){return e.onItemClick(o)}.apply(null,arguments)}}},[1===t.style?a("style-one",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e(),e._v(" "),2===t.style?a("style-two",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e(),e._v(" "),5===t.style?a("style-five",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e()],1)})),e._v(" "),a("pull-footer",{ref:"pullFooter",staticClass:"v782cda3d pull-footer",on:{idle:e.onFooterIdle,pulling:e.onFooterPulling,released:e.onEndReached}},[a("p",{staticClass:"v782cda3d pull-footer-text"},[e._v("\n "+e._s(e.footerRefreshText)+"\n ")])])],2)],1)};gt._withStripped=!0;var _t={data:function(){return{dataSource:[].concat(r()(ft),r()(ft),r()(ft),r()(ft)),isRefreshing:!1,Vue:i.default,STYLE_LOADING:100,headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",isLoading:!1,isIos:"ios"===i.default.Native.Platform}},mounted:function(){this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.dataSource=r()(ft),i.default.Native?(this.$windowHeight=i.default.Native.Dimensions.window.height,console.log("Vue.Native.Dimensions.window",i.default.Native.Dimensions)):this.$windowHeight=window.innerHeight,this.$refs.pullHeader.collapsePullHeader({time:2e3})},computed:{refreshText:function(){return this.isRefreshing?"正在刷新":"下拉刷新"},itemWidth:function(){return(i.default.Native.Dimensions.screen.width-this.contentInset.left-this.contentInset.right-(this.numberOfColumns-1)*this.columnSpacing)/this.numberOfColumns},listMargin:function(){return 5},columnSpacing:function(){return 6},interItemSpacing:function(){return 6},numberOfColumns:function(){return 2},contentInset:function(){return{top:0,left:5,bottom:0,right:5}}},methods:{mockFetchData:function(){var e=this;return new Promise((function(t){setTimeout((function(){return e.fetchTimes+=1,e.fetchTimes>=50?t([]):t([].concat(r()(ft),r()(ft)))}),600)}))},onHeaderPulling:function(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?this.headerRefreshText="松手,即可触发刷新":this.headerRefreshText="继续下拉,触发刷新")},onFooterPulling:function(e){console.log("onFooterPulling",e)},onHeaderIdle:function(){},onFooterIdle:function(){},onHeaderReleased:function(){var e=this;return b()(g.a.mark((function t(){return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.fetchingDataFlag){t.next=2;break}return t.abrupt("return");case 2:return e.fetchingDataFlag=!0,console.log("onHeaderReleased"),e.headerRefreshText="刷新数据中,请稍等",t.next=7,e.mockFetchData();case 7:t.sent,e.fetchingDataFlag=!1,e.headerRefreshText="2秒后收起",e.$refs.pullHeader.collapsePullHeader({time:2e3});case 11:case"end":return t.stop()}}),t)})))()},onRefresh:function(){var e=this;return b()(g.a.mark((function t(){var a;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isRefreshing=!0,t.next=3,e.mockFetchData();case 3:a=t.sent,e.isRefreshing=!1,e.dataSource=a.reverse(),e.$refs.header.refreshCompleted();case 7:case"end":return t.stop()}}),t)})))()},onScroll:function(e){console.log("waterfall onScroll",e)},onEndReached:function(){var e=this;return b()(g.a.mark((function t(){var a,o;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.dataSource,!e.loadMoreDataFlag){t.next=3;break}return t.abrupt("return");case 3:return e.loadMoreDataFlag=!0,e.footerRefreshText="加载更多...",t.next=7,e.mockFetchData();case 7:0===(o=t.sent).length&&(e.footerRefreshText="没有更多数据"),e.dataSource=[].concat(r()(a),r()(o)),e.loadMoreDataFlag=!1,e.$refs.pullFooter.collapsePullFooter();case 12:case"end":return t.stop()}}),t)})))()},onItemClick:function(e){this.$refs.gridView.scrollToIndex({index:e,animation:!0})}}},xt=(a("./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&"),Object(c.a)(_t,gt,[],!1,null,"782cda3d",null));xt.options.__file="src/components/native-demos/demo-waterfall.vue";var Ct=xt.exports,wt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v3bbacb8e",attrs:{id:"demo-wrap"},on:{layout:e.onLayout}},[a("div",{staticClass:"v3bbacb8e",attrs:{id:"demo-content"}},[a("div",{staticClass:"v3bbacb8e",attrs:{id:"banner"}}),e._v(" "),a("div",{staticClass:"v3bbacb8e",attrs:{id:"tabs"}},e._l(2,(function(t){return a("p",{key:"tab"+t,staticClass:"v3bbacb8e",class:e.currentSlide===t-1?"selected":"",on:{click:function(a){return e.onTabClick(t)}}},[e._v("\n tab "+e._s(t)+" "+e._s(1===t?"(parent first)":"(self first)")+"\n ")])})),0),e._v(" "),a("swiper",{ref:"swiper",staticClass:"v3bbacb8e",style:{height:e.layoutHeight-80},attrs:{id:"swiper","need-animation":"",current:e.currentSlide},on:{dropped:e.onDropped}},[a("swiper-slide",{key:"slide1",staticClass:"v3bbacb8e"},[a("ul",{staticClass:"v3bbacb8e",attrs:{nestedScrollTopPriority:"parent"}},e._l(30,(function(t){return a("li",{key:"item"+t,staticClass:"v3bbacb8e",class:t%2?"item-even":"item-odd"},[a("p",[e._v("Item "+e._s(t))])])})),0)]),e._v(" "),a("swiper-slide",{key:"slide2",staticClass:"v3bbacb8e"},[a("ul",{staticClass:"v3bbacb8e",attrs:{nestedScrollTopPriority:"self"}},e._l(30,(function(t){return a("li",{key:"item"+t,staticClass:"v3bbacb8e",class:t%2?"item-even":"item-odd"},[a("p",[e._v("Item "+e._s(t))])])})),0)])],1)],1)])};wt._withStripped=!0;var St={data:function(){return{layoutHeight:0,currentSlide:0}},methods:{onLayout:function(e){this.layoutHeight=e.height},onTabClick:function(e){console.log("onclick",e),this.currentSlide=e-1},onDropped:function(e){this.currentSlide=e.currentSlide}}},kt=(a("./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&"),Object(c.a)(St,wt,[],!1,null,"3bbacb8e",null));kt.options.__file="src/components/native-demos/demo-nested-scroll.vue";var At=kt.exports,Pt={};i.default.Native&&Object.assign(Pt,{demoVueNative:{name:"Vue.Native 能力",component:ke},demoAnimation:{name:"animation 组件",component:tt},demoModal:{name:"dialog 组件",component:nt},demoSwiper:{name:"swiper 组件",component:ct},demoPullHeaderFooter:{name:"pull-header/footer 组件",component:mt},demoWaterfall:{name:"waterfall 组件",component:Ct},demoNestedScroll:{name:"nested scroll 示例",component:At},demoSetNativeProps:{name:"setNativeProps",component:_e}});var jt=Pt,Et={name:"App",data:function(){return{featureList:Object.keys(he).map((function(e){return{id:e,name:he[e].name}})),nativeFeatureList:Object.keys(jt).map((function(e){return{id:e,name:jt[e].name}})),Vue:i.default}},beforeAppExit:function(){}},Tt=(a("./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&"),Object(c.a)(Et,n,[function(){var e=this.$createElement,t=this._self._c||e;return t("li",[t("p",{staticClass:"v4fb46863 feature-title"},[this._v("\n 浏览器组件 Demos\n ")])])}],!1,null,"4fb46863",null));Tt.options.__file="src/pages/menu.vue";var Vt=Tt.exports,Lt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"inputDemo",staticClass:"v66065e90 demo-remote-input",on:{click:e.blurInput}},[a("div",{staticClass:"v66065e90 tips-wrap"},e._l(e.tips,(function(t,o){return a("p",{key:o,staticClass:"v66065e90 tips-item",style:e.styles.tipText},[e._v("\n "+e._s(o+1)+". "+e._s(t)+"\n ")])})),0),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.bundleUrl,expression:"bundleUrl"}],ref:"input",staticClass:"v66065e90 remote-input",attrs:{"caret-color":"yellow",placeholder:"please input bundleUrl",multiple:!0,numberOfLines:"4"},domProps:{value:e.bundleUrl},on:{click:e.stopPropagation,input:function(t){t.target.composing||(e.bundleUrl=t.target.value)}}}),e._v(" "),a("div",{staticClass:"v66065e90 buttonContainer",style:e.styles.buttonContainer},[a("button",{staticClass:"v66065e90 input-button",style:e.styles.button,on:{click:e.openBundle}},[a("span",{staticClass:"v66065e90",style:e.styles.buttonText},[e._v("开始")])])])])};Lt._withStripped=!0;var It={data:function(){return{bundleUrl:"http://127.0.0.1:38989/index.bundle?debugUrl=ws%3A%2F%2F127.0.0.1%3A38989%2Fdebugger-proxy",tips:["安装远程调试依赖: npm i -D @hippy/debug-server-next@latest","修改 webpack 配置,添加远程调试地址","运行 npm run hippy:dev 开始编译,编译结束后打印出 bundleUrl 及调试首页地址","粘贴 bundleUrl 并点击开始按钮","访问调试首页开始远程调试,远程调试支持热更新(HMR)"],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"}}}},methods:{blurInput:function(e){e.stopPropagation(),this.$refs.input.blur()},openBundle:function(){this.bundleUrl&&i.default.Native.callNative("TestModule","remoteDebug",this.$root.$options.rootViewId,this.bundleUrl)},stopPropagation:function(e){e.stopPropagation()},clearTextContent:function(){this.bundleUrl=""},getChildNodes:function(e){return i.default.Native?e:Array.from(e)}}},Yt=(a("./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&"),Object(c.a)(It,Lt,[],!1,null,"66065e90",null));Yt.options.__file="src/pages/remote-debug.vue";var Ot=Yt.exports;t.a={disableAutoBack:!1,routes:[{path:"/",component:Vt},{path:"/remote-debug",component:Ot,name:"调试"}].concat(r()(Object.keys(he).map((function(e){return{path:"/demo/".concat(e),name:he[e].name,component:he[e].component}}))),r()(Object.keys(jt).map((function(e){return{path:"/demo/".concat(e),name:jt[e].name,component:jt[e].component}}))))}},"./src/util.js":function(e,t,a){"use strict";var o;function r(e){o=e}function n(){return o}a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return n}))},0:function(e,t,a){a("./node_modules/@hippy/rejection-tracking-polyfill/index.js"),e.exports=a("./src/main-native.js")},"dll-reference hippyVueBase":function(e,t){e.exports=hippyVueBase}}); \ No newline at end of file +Object.freeze({}),p("slot,component",!0),p("key,ref,slot,slot-scope,is"),"http://127.0.0.1:".concat(e.env.PORT,"/");var f={exports:{}},b={exports:{}},m={exports:{}};!function(e){function t(a){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(a)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(m);var g={exports:{}};!function(e){var t=m.exports.default;e.exports=function(e,a){if("object"!=t(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,a||"default");if("object"!=t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(g),function(e){var t=m.exports.default,a=g.exports;e.exports=function(e){var o=a(e,"string");return"symbol"==t(o)?o:o+""},e.exports.__esModule=!0,e.exports.default=e.exports}(b),function(e){var t=b.exports;e.exports=function(e,a,o){return(a=t(a))in e?Object.defineProperty(e,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[a]=o,e},e.exports.__esModule=!0,e.exports.default=e.exports}(f);var _=h(f.exports);function x(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}var w={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var a=t.props,o=t.children,r=t.parent,n=t.data;n.routerView=!0;for(var i=r.$createElement,s=a.name,l=r.$route,c=r._routerViewCache||(r._routerViewCache={}),p=0,u=!1;r&&r._routerRoot!==r;)r.$vnode&&r.$vnode.data.routerView&&(p+=1),r._inactive&&(u=!0),r=r.$parent;if(n.routerViewDepth=p,u)return i(c[s],n,o);var v=l.matched[p];if(!v)return c[s]=null,i();var y=v.components[s];c[s]=y,n.registerRouteInstance=function(e,t){var a=v.instances[s];(t&&a!==e||!t&&a===e)&&(v.instances[s]=t)},n.hook||(n.hook={}),n.hook.prepatch=function(e,t){v.instances[s]=t.componentInstance};var h=function(e,t){switch(d()(t)){case"undefined":return null;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:return null}}(l,v.props&&v.props[s]);if(n.props=h,h){h=function(e){for(var t=1;t0})).join("&"):null;return t?"?".concat(t):""}var L=/\/?$/;function V(e){if(Array.isArray(e))return e.map(V);if(e&&"object"===d()(e)){var t={};return Object.keys(e).forEach((function(a){t[a]=V(e[a])})),t}return e}function I(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function O(e,t){var a=e.path,o=e.query,r=void 0===o?{}:o,n=e.hash,i=void 0===n?"":n;return(a||"/")+(t||T)(r)+i}function Y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!t)return e===t;var a=Object.keys(e),o=Object.keys(t);return a.length===o.length&&a.every((function(a){var o=e[a],r=t[a];return"object"===d()(o)&&"object"===d()(r)?Y(o,r):String(o)===String(r)}))}function H(e,t,a,o){var r;o&&(r=o.options.stringifyQuery);var n=t.query||{};try{n=V(n)}catch(e){}var i={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:n,params:t.params||{},fullPath:O(t,r),matched:e?I(e):[]};return a&&(i.redirectedFrom=O(a,r)),Object.freeze(i)}var R=H(null,{path:"/"});function D(e,t){return t===R?e===t:!!t&&(e.path&&t.path?e.path.replace(L,"")===t.path.replace(L,"")&&e.hash===t.hash&&Y(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&Y(e.query,t.query)&&Y(e.params,t.params)))}function B(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}function U(e){for(var t=1;t=0&&(t=e.slice(o),e=e.slice(0,o));var r=e.indexOf("?");return r>=0&&(a=e.slice(r+1),e=e.slice(0,r)),{path:e,query:a,hash:t}}(r.path||""),l=t&&t.path||"/",c=s.path?re(s.path,l,a||r.append):l,d=function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,r=o||E;try{t=r(e||"")}catch(e){0,t={}}return Object.keys(a).forEach((function(e){t[e]=a[e]})),t}(s.query,r.query,o&&o.options.parseQuery),p=r.hash||s.hash;return p&&"#"!==p.charAt(0)&&(p="#".concat(p)),{_normalized:!0,path:c,query:d,hash:p}}function ce(e,t){return te(e,[],t)}function de(e,t,a,o,r,n){var i=o.path,s=o.name;var l=o.pathToRegexpOptions||{},c=function(e,t,a){return a||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:ne("".concat(t.path,"/").concat(e))}(i,r,l.strict);"boolean"==typeof o.caseSensitive&&(l.sensitive=o.caseSensitive);var d={path:c,regex:ce(c,l),components:o.components||{default:o.component},instances:{},name:s,parent:r,matchAs:n,redirect:o.redirect,beforeEnter:o.beforeEnter,meta:o.meta||{},props:null==o.props?{}:o.components?o.props:{default:o.props}};(o.children&&o.children.forEach((function(o){var r=n?ne("".concat(n,"/").concat(o.path)):void 0;de(e,t,a,o,d,r)})),void 0!==o.alias)&&(Array.isArray(o.alias)?o.alias:[o.alias]).forEach((function(n){var i={path:n,children:o.children};de(e,t,a,i,r,d.path||"/")}));t[d.path]||(e.push(d.path),t[d.path]=d),s&&(a[s]||(a[s]=d))}function pe(e,t,a,o){var r=t||[],n=a||Object.create(null),i=o||Object.create(null);e.forEach((function(e){de(r,n,i,e)}));for(var s=0,l=r.length;s-1&&(s.params[e]=a.params[e])})),p)return s.path=oe(p.path,s.params,'named route "'.concat(c,'"')),l(p,s,i)}else if(s.path){s.params={};for(var v=0;v=e.length?a():e[r]?t(e[r],(function(){o(r+1)})):o(r+1)};o(0)}var he="function"==typeof Symbol&&"symbol"===d()(Symbol.toStringTag);function fe(e){return Array.prototype.concat.apply([],e)}function be(e,t){return fe(e.map((function(e){return Object.keys(e.components).map((function(a){return t(e.components[a],e.instances[a],e,a)}))})))}function me(e){return function(t,a,o){var r=!1,n=0,i=null;be(e,(function(e,t,a,s){if("function"==typeof e&&void 0===e.cid){r=!0,n+=1;var l,c=u((function(t){var r,i=v();((r=t).__esModule||he&&"Module"===r[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:i.extend(t),a.components[s]=t,(n-=1)<=0&&o()})),d=u((function(e){var t="Failed to resolve async component ".concat(s,": ").concat(e);i||(i=x(e)?e:new Error(t),o(i))}));try{l=e(c,d)}catch(e){d(e)}if(l)if("function"==typeof l.then)l.then(c,d);else{var p=l.component;p&&"function"==typeof p.then&&p.then(c,d)}}})),r||o()}}function ge(e){return"/"!==e.charAt(0)&&(e="/".concat(e)),e.replace(/\/$/,"")}function _e(e,t,a,o){var r=be(e,(function(e,o,r,n){var i=function(e,t){return"function"!=typeof e&&(e=v().extend(e)),e.options[t]}(e,t);return i?Array.isArray(i)?i.map((function(e){return a(e,o,r,n)})):a(i,o,r,n):null}));return fe(o?r.reverse():r)}function xe(e,t){return t?function(){for(var a=arguments.length,o=new Array(a),r=0;r1&&void 0!==arguments[1]?arguments[1]:"/";i()(this,e),this.router=t,this.base=ge(a),this.current=R,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[];var o=this.router.match("/",this.current);if(!o)throw new Error("Root router path with / is required");this.stack=[o],this.index=0}),[{key:"push",value:function(e,t,a){var o=this;this.transitionTo(e,(function(e){o.stack=o.stack.slice(0,o.index+1).concat(e),o.index+=1,y(t)&&t(e)}),a)}},{key:"replace",value:function(e,t,a){var o=this;this.transitionTo(e,(function(e){o.stack=o.stack.slice(0,o.index).concat(e),y(t)&&t(e)}),a)}},{key:"go",value:function(e){var t=this,a=this.index+e;if(!(a<0||a>=this.stack.length)){var o=this.stack[a];this.confirmTransition(o,(function(){t.index=a,t.updateRoute(o),t.stack=t.stack.slice(0,a+1)}))}}},{key:"getCurrentLocation",value:function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"}},{key:"ensureURL",value:function(){}},{key:"listen",value:function(e){this.cb=e}},{key:"onReady",value:function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))}},{key:"onError",value:function(e){this.errorCbs.push(e)}},{key:"transitionTo",value:function(e,t,a){var o=this,r=this.router.match(e,this.current);this.confirmTransition(r,(function(){o.updateRoute(r),y(t)&&t(r),o.ensureURL(),o.ready||(o.ready=!0,o.readyCbs.forEach((function(e){e(r)})))}),(function(e){a&&a(e),e&&!o.ready&&(o.ready=!0,o.readyErrorCbs.forEach((function(t){t(e)})))}))}},{key:"confirmTransition",value:function(e,t,a){var o=this,r=this.current,n=function(e){x(e)&&o.errorCbs.length&&o.errorCbs.forEach((function(t){t(e)})),y(a)&&a(e)};if(D(e,r)&&e.matched.length===r.matched.length)return this.ensureURL(),n();var i=function(e,t){var a,o=Math.max(e.length,t.length);for(a=0;a1)return this.go(-1);var e=this.stack[0].matched;if(e.length){var t=e[0],a=t.components,o=t.instances;if(a&&a.default&&y(a.default.beforeAppExit))return a.default.beforeAppExit.call(o.default,this.exitApp)}return this.exitApp()}},{key:"exitApp",value:function(){v().Native.callNative("DeviceEventModule","invokeDefaultBackPressHandler")}}])}();function Se(e,t){return e.push(t),function(){var a=e.indexOf(t);a>-1&&e.splice(a,1)}}var ke=function(){return l()((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(i()(this,e),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=ue(t.routes||[],this),!o.__GLOBAL__||!o.__GLOBAL__.appRegister)throw new Error("Hippy-Vue-Router can\t work without Native environment");this.history=new we(this,t.base)}),[{key:"match",value:function(e,t,a){return this.matcher.match(e,t,a)}},{key:"currentRoute",get:function(){return this.history&&this.history.current}},{key:"init",value:function(e,t){var a=this;if(this.apps.push(e),!this.app){this.app=e;var o=this.history;o instanceof we&&o.transitionTo(o.getCurrentLocation()),o.listen((function(e){a.apps.forEach((function(t){t._route=e}))})),"android"===t.Native.Platform&&y(o.hardwareBackPress)&&!this.options.disableAutoBack&&(setTimeout((function(){return t.Native.callNative("DeviceEventModule","setListenBackPress",!0)}),300),e.$on("hardwareBackPress",(function(){return o.hardwareBackPress()})))}}},{key:"beforeEach",value:function(e){return Se(this.beforeHooks,e)}},{key:"beforeResolve",value:function(e){return Se(this.resolveHooks,e)}},{key:"afterEach",value:function(e){return Se(this.afterHooks,e)}},{key:"onReady",value:function(e,t){this.history.onReady(e,t)}},{key:"onError",value:function(e){this.history.onError(e)}},{key:"push",value:function(e,t,a){this.history.push(e,t,a)}},{key:"replace",value:function(e,t,a){this.history.replace(e,t,a)}},{key:"go",value:function(e){this.history.go(e)}},{key:"back",value:function(){this.go(-1)}},{key:"forward",value:function(){this.go(1)}},{key:"getMatchedComponents",value:function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))})):[]}},{key:"resolve",value:function(e,t,a){var o=le(e,t||this.history.current,a,this),r=this.match(o,t),n=r.redirectedFrom||r.fullPath;return{location:o,route:r,href:function(e,t){return e?ne("".concat(e,"/").concat(t)):t}(this.history.base,n),normalizedTo:o,resolved:r}}},{key:"addRoutes",value:function(e){this.matcher.addRoutes(e),this.history.current!==R&&this.history.transitionTo(this.history.getCurrentLocation())}}])}();ke.install=function e(t){if(!e.installed||v()!==t){e.installed=!0,function(e){r=e}(t);var a=function(e){return void 0!==e},o=function(e,t){var o=e.$options._parentVnode;a(o)&&a(o=o.data)&&a(o=o.registerRouteInstance)&&o(e,t)};t.mixin({beforeCreate:function(){a(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this,t),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,o(this,this)},destroyed:function(){o(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",w),t.component("RouterLink",M);var n=t.config.optionMergeStrategies;n.beforeRouteEnter=n.beforeRouteLeave=n.beforeRouteUpdate=n.created}},ke.version="2.6.14"}).call(this,a("./node_modules/process/browser.js"),a("./node_modules/webpack/buildin/global.js"))},"../../packages/hippy-vue/dist/index.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("../../packages/hippy-vue/dist/index.js")},"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js":function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,o=Array(t);a=0;--r){var n=this.tryEntries[r],s=n.completion;if("root"===n.tryLoc)return o("end");if(n.tryLoc<=this.prev){var l=i.call(n,"catchLoc"),c=i.call(n,"finallyLoc");if(l&&c){if(this.prev=0;--a){var o=this.tryEntries[a];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),L(a),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var o=a.completion;if("throw"===o.type){var r=o.arg;L(a)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,a,o){return this.delegate={iterator:I(e),resultName:a,nextLoc:o},"next"===this.method&&(this.arg=t),m}},a}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toConsumableArray.js":function(e,t,a){var o=a("./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"),r=a("./node_modules/@babel/runtime/helpers/iterableToArray.js"),n=a("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),i=a("./node_modules/@babel/runtime/helpers/nonIterableSpread.js");e.exports=function(e){return o(e)||r(e)||n(e)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toPrimitive.js":function(e,t,a){var o=a("./node_modules/@babel/runtime/helpers/typeof.js").default;e.exports=function(e,t){if("object"!=o(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var r=a.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toPropertyKey.js":function(e,t,a){var o=a("./node_modules/@babel/runtime/helpers/typeof.js").default,r=a("./node_modules/@babel/runtime/helpers/toPrimitive.js");e.exports=function(e){var t=r(e,"string");return"symbol"==o(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(e,t){function a(t){return e.exports=a="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.exports.__esModule=!0,e.exports.default=e.exports,a(t)}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":function(e,t,a){var o=a("./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");e.exports=function(e,t){if(e){if("string"==typeof e)return o(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?o(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/regenerator/index.js":function(e,t,a){var o=a("./node_modules/@babel/runtime/helpers/typeof.js"),r=a("./node_modules/@babel/runtime/helpers/regeneratorRuntime.js")();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"===("undefined"==typeof globalThis?"undefined":o(globalThis))?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},"./node_modules/@hippy/rejection-tracking-polyfill/index.js":function(e,t,a){(function(e){!function(){if("ios"===Hippy.device.platform.OS){var t=[ReferenceError,TypeError,RangeError],a=!1;!function(r){if(e.Promise){r=r||{},a&&(a=!1,e.Promise._onHandle=null,e.Promise._onReject=null),a=!0;var n=0,i=0,s={};e.Promise._onHandle=function(e){2===e._state&&s[e._rejectionId]&&(s[e._rejectionId].logged?function(e){s[e].logged&&(r.onHandled?r.onHandled(s[e].displayId,s[e].error):s[e].onUnhandled||(console.warn("Promise Rejection Handled (id: "+s[e].displayId+"):"),console.warn(' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+s[e].displayId+".")))}(e._rejectionId):clearTimeout(s[e._rejectionId].timeout),delete s[e._rejectionId])},e.Promise._onReject=function(e,a){0===e._deferredState&&(e._rejectionId=n++,s[e._rejectionId]={displayId:null,error:a,timeout:setTimeout(l.bind(null,e._rejectionId),o(a,t)?100:2e3),logged:!1})}}function l(e){(r.allRejections||o(s[e].error,r.whitelist||t))&&(s[e].displayId=i++,r.onUnhandled?(s[e].logged=!0,r.onUnhandled(s[e].displayId,s[e].error)):(s[e].logged=!0,function(e,t){console.warn("Possible Unhandled Promise Rejection (id: "+e+"):"),((t&&(t.stack||t))+"").split("\n").forEach((function(e){console.warn(" "+e)}))}(s[e].displayId,s[e].error)))}}({allRejections:!0,onUnhandled:function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=Object.prototype.toString.call(a);if("[object Error]"===o){var r=Error.prototype.toString.call(a),n=a.stack,i="Possible Unhandled Promise Rejection (id: "+t+"):\n"+(r||"")+"\n"+(null==n?"":n);console.warn(i)}else{console.warn("Possible Unhandled Promise Rejection (id: "+t+"):");var s=(a&&(a.stack||a))+"";s.split("\n").forEach((function(e){console.warn(" "+e)}))}e.Hippy.emit("unhandledRejection",a,t)},onHandled:function(){}})}function o(e,t){return t.some((function(t){return e instanceof t}))}}()}).call(this,a("./node_modules/webpack/buildin/global.js"))},"./node_modules/process/browser.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("./node_modules/process/browser.js")},"./node_modules/webpack/buildin/global.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("./node_modules/webpack/buildin/global.js")},"./src/app.vue":function(e,t,a){"use strict";var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"root"}},[a("div",{attrs:{id:"header"}},[a("div",{staticClass:"left-title"},[a("img",{directives:[{name:"show",rawName:"v-show",value:!["/","/debug","/remote-debug"].includes(e.$router.history.current.path),expression:"!['/', '/debug', '/remote-debug'].includes($router.history.current.path)"}],attrs:{id:"back-btn",src:e.imgs.backButtonImg},on:{click:e.goToHome}}),e._v(" "),["/","/debug","/remote-debug"].includes(e.$router.history.current.path)?a("label",{staticClass:"title"},[e._v("Hippy Vue")]):e._e()]),e._v(" "),a("label",{staticClass:"title"},[e._v(e._s(e.subtitle))])]),e._v(" "),a("div",{staticClass:"body-container",on:{click:function(e){return e.stopPropagation()}}},[a("keep-alive",[a("router-view",{staticClass:"feature-content"})],1)],1),e._v(" "),a("div",{staticClass:"bottom-tabs"},e._l(e.tabs,(function(t,o){return a("div",{key:"tab-"+o,class:["bottom-tab",o===e.activatedTab?"activated":""],on:{click:function(a){return e.navigateTo(a,t,o)}}},[a("span",{staticClass:"bottom-tab-text"},[e._v("\n "+e._s(t.text)+"\n ")])])})),0)])};o._withStripped=!0;var r={name:"App",data:function(){return{imgs:{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"},subtitle:"",activatedTab:0,tabs:[{text:"API",path:"/"},{text:"调试",path:"/remote-debug"}]}},watch:{$route:function(e){void 0!==e.name?this.subtitle=e.name:this.subtitle=""}},methods:{navigateTo:function(e,t,a){a!==this.activatedTab&&(e.stopPropagation(),console.log(t),this.activatedTab=a,this.$router.replace({path:t.path}))},goToHome:function(){this.$router.back()}}},n=(a("./src/app.vue?vue&type=style&index=0&lang=css&"),a("../../packages/hippy-vue-loader/lib/runtime/componentNormalizer.js")),i=Object(n.a)(r,o,[],!1,null,null,null);i.options.__file="src/app.vue";t.a=i.exports},"./src/app.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/app.vue?vue&type=style&index=0&lang=css&")},"./src/assets/defaultSource.jpg":function(e,t,a){e.exports=a.p+"assets/defaultSource.jpg"},"./src/assets/hippyLogoWhite.png":function(e,t,a){e.exports=a.p+"assets/hippyLogoWhite.png"},"./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&")},"./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&")},"./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&")},"./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&")},"./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&")},"./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&")},"./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&")},"./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&")},"./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&")},"./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&")},"./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&")},"./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&")},"./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&")},"./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&")},"./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&")},"./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&")},"./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&")},"./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&")},"./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&")},"./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&")},"./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&")},"./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&")},"./src/components/native-demos/demo-swiper.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-swiper.vue?vue&type=style&index=0&lang=css&")},"./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&")},"./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&")},"./src/main-native.js":function(e,t,a){"use strict";a.r(t),function(e){var t=a("../../packages/hippy-vue/dist/index.js"),o=a("../../packages/hippy-vue-router/dist/index.js"),r=a("../../packages/hippy-vue-native-components/dist/index.js"),n=a("./src/app.vue"),i=a("./src/routes.js"),s=a("./src/util.js");t.default.config.productionTip=!1,t.default.config.trimWhitespace=!0,t.default.use(r.default),t.default.use(o.a);var l=new o.a(i.a);e.Hippy.on("uncaughtException",(function(e){console.error("uncaughtException error",e.stack,e.message)})),e.Hippy.on("unhandledRejection",(function(e){console.error("unhandledRejection reason",e)}));var c=new t.default({appName:"Demo",rootView:"#root",render:function(e){return e(n.a)},iPhone:{statusBar:{backgroundColor:4283416717}},router:l});c.$start((function(e,a){console.log("instance",e,"initialProps",a),t.default.Native.BackAndroid.addListener((function(){return console.log("backAndroid"),!0}))})),Object(s.b)(c)}.call(this,a("./node_modules/webpack/buildin/global.js"))},"./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&")},"./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&")},"./src/routes.js":function(e,t,a){"use strict";var o=a("./node_modules/@babel/runtime/helpers/toConsumableArray.js"),r=a.n(o),n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{staticClass:"v4fb46863 feature-list"},[a("li",[a("div",{staticClass:"v4fb46863",attrs:{id:"version-info"}},[a("p",{staticClass:"v4fb46863 feature-title"},[e._v("\n Vue: "+e._s(e.Vue.version)+"\n ")]),e._v(" "),e.Vue.Native?a("p",{staticClass:"v4fb46863 feature-title"},[e._v("\n Hippy-Vue: "+e._s("unspecified"!==e.Vue.Native.version?e.Vue.Native.version:"master")+"\n ")]):e._e()])]),e._v(" "),e._m(0),e._v(" "),e._l(e.featureList,(function(t){return a("li",{key:t.id,staticClass:"v4fb46863 feature-item"},[a("router-link",{staticClass:"v4fb46863 button",attrs:{to:{path:"/demo/"+t.id}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)})),e._v(" "),e.nativeFeatureList.length?a("li",[a("p",{staticClass:"v4fb46863 feature-title",attrs:{paintType:"fcp"}},[e._v("\n 终端组件 Demos\n ")])]):e._e(),e._v(" "),e._l(e.nativeFeatureList,(function(t){return a("li",{key:t.id,staticClass:"v4fb46863 feature-item"},[a("router-link",{staticClass:"v4fb46863 button",attrs:{to:{path:"/demo/"+t.id}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)}))],2)};n._withStripped=!0;var i=a("../../packages/hippy-vue/dist/index.js"),s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v26278b5d button-demo"},[a("label",{staticClass:"v26278b5d button-label"},[e._v("按钮和状态绑定")]),e._v(" "),a("button",{staticClass:"v26278b5d button-demo-1",class:{"is-active":e.isClicked,"is-pressing":e.isPressing},on:{touchstart:e.onTouchBtnStart,touchmove:e.onTouchBtnMove,touchend:e.onTouchBtnEnd,click:e.clickView}},[e.isClicked?a("span",{staticClass:"v26278b5d button-text"},[e._v("视图已经被点击了,再点一下恢复")]):a("span",{staticClass:"v26278b5d button-text"},[e._v("视图尚未点击")])]),e._v(" "),a("img",{directives:[{name:"show",rawName:"v-show",value:e.isClicked,expression:"isClicked"}],staticClass:"v26278b5d button-demo-1-image",attrs:{alt:"demo1-image",src:"https://user-images.githubusercontent.com/12878546/148737148-d0b227cb-69c8-4b21-bf92-739fb0c3f3aa.png"}})])};s._withStripped=!0;var l={data:function(){return{isClicked:!1,isPressing:!1}},methods:{clickView:function(){this.isClicked=!this.isClicked},onTouchBtnStart:function(e){console.log("onBtnTouchDown",e),e.stopPropagation()},onTouchBtnMove:function(e){console.log("onBtnTouchMove",e),e.stopPropagation(),console.log(e)},onTouchBtnEnd:function(e){console.log("onBtnTouchEnd",e),e.stopPropagation(),console.log(e)}}},c=(a("./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&"),a("../../packages/hippy-vue-loader/lib/runtime/componentNormalizer.js")),d=Object(c.a)(l,s,[],!1,null,"26278b5d",null);d.options.__file="src/components/demos/demo-button.vue";var p=d.exports,u=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614",attrs:{id:"div-demo"},on:{scroll:e.onOuterScroll}},[a("div",["ios"!==e.Vue.Native.Platform?a("div",[a("label",[e._v("水波纹效果: ")]),e._v(" "),a("div",{staticClass:"ve3dda614",style:Object.assign({},e.imgRectangle,e.imgRectangleExtra)},[a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.imgRectangle,"native-background-android":{borderless:!0,color:"#666666"}}},[a("p",{staticClass:"ve3dda614",style:{color:"white",maxWidth:200}},[e._v("\n 外层背景图,内层无边框水波纹,受外层影响始终有边框\n ")])])],1),e._v(" "),a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.circleRipple,"native-background-android":{borderless:!0,color:"#666666",rippleRadius:100}}},[a("p",{staticClass:"ve3dda614",style:{color:"black",textAlign:"center"}},[e._v("\n 无边框圆形水波纹\n ")])]),e._v(" "),a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.squareRipple,"native-background-android":{borderless:!1,color:"#666666"}}},[a("p",{staticClass:"ve3dda614",style:{color:"#fff"}},[e._v("\n 带背景色水波纹\n ")])])],1):e._e(),e._v(" "),a("label",[e._v("背景图效果:")]),e._v(" "),a("div",{staticClass:"ve3dda614",style:e.demo1Style,attrs:{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"}},[a("p",{staticClass:"ve3dda614 div-demo-1-text"},[e._v("\n Hippy 背景图展示\n ")])]),e._v(" "),a("label",[e._v("渐变色效果:")]),e._v(" "),e._m(0),e._v(" "),a("label",[e._v("Transform")]),e._v(" "),e._m(1),e._v(" "),a("label",[e._v("水平滚动:")]),e._v(" "),a("div",{ref:"demo-2",staticClass:"ve3dda614 div-demo-2",attrs:{bounces:!0,scrollEnabled:!0,pagingEnabled:!1,showsHorizontalScrollIndicator:!1},on:{scroll:e.onScroll,momentumScrollBegin:e.onMomentumScrollBegin,momentumScrollEnd:e.onMomentumScrollEnd,scrollBeginDrag:e.onScrollBeginDrag,scrollEndDrag:e.onScrollEndDrag}},[e._m(2)]),e._v(" "),a("label",[e._v("垂直滚动:")]),e._v(" "),a("div",{staticClass:"ve3dda614 div-demo-3",attrs:{showsVerticalScrollIndicator:!1}},[e._m(3)])])])};u._withStripped=!0;var v=a("./src/assets/defaultSource.jpg"),y=a.n(v),h=function(){var e=this.$createElement;return(this._self._c||e)("div",{ref:"ripple1",style:this.wrapperStyle,attrs:{nativeBackgroundAndroid:Object.assign({},this.nativeBackgroundAndroid)},on:{layout:this.onLayout,touchstart:this.onTouchStart,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[this._t("default")],2)};h._withStripped=!0;var f=a("./node_modules/@babel/runtime/helpers/asyncToGenerator.js"),b=a.n(f),m=a("./node_modules/@babel/runtime/regenerator/index.js"),g=a.n(m),_={display:"flex",height:"40px",width:"200px",backgroundImage:"".concat(y.a),backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"},x={name:"DemoRippleDiv",props:{nativeBackgroundAndroid:{default:{borderless:!1}},wrapperStyle:{type:Object,default:function(){return _}},positionY:{default:0}},data:function(){return{scrollOffsetY:this.positionY,viewX:0,viewY:0,demo1Style:_}},watch:{positionY:function(e){this.scrollOffsetY=e}},mounted:function(){this.rippleRef=this.$refs.ripple1},methods:{onLayout:function(){var e=this;return b()(g.a.mark((function t(){var a;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.default.Native.measureInAppWindow(e.rippleRef);case 2:a=t.sent,e.viewX=a.left,e.viewY=a.top;case 5:case"end":return t.stop()}}),t)})))()},onTouchStart:function(e){var t=e.touches[0];this.rippleRef.setHotspot(t.clientX-this.viewX,t.clientY+this.scrollOffsetY-this.viewY),this.rippleRef.setPressed(!0)},onTouchEnd:function(){this.rippleRef.setPressed(!1)}}},C=Object(c.a)(x,h,[],!1,null,null,null);C.options.__file="src/components/demos/demo-ripple-div.vue";var w={components:{"demo-ripple-div":C.exports},data:function(){return{Vue:i.default,offsetY:0,demo1Style:{display:"flex",height:"40px",width:"200px",backgroundImage:"".concat(y.a),backgroundSize:"cover",backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"},imgRectangle:{width:"260px",height:"56px",alignItems:"center",justifyContent:"center"},imgRectangleExtra:{marginTop:"20px",backgroundImage:"".concat(y.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"}}},mounted:function(){var e=this;this.demon2=this.$refs["demo-2"],setTimeout((function(){e.demon2.scrollTo(50,0,1e3)}),1e3)},methods:{onOuterScroll:function(e){this.offsetY=e.offsetY},onScroll:function(e){console.log("onScroll",e)},onMomentumScrollBegin:function(e){console.log("onMomentumScrollBegin",e)},onMomentumScrollEnd:function(e){console.log("onMomentumScrollEnd",e)},onScrollBeginDrag:function(e){console.log("onScrollBeginDrag",e)},onScrollEndDrag:function(e){console.log("onScrollEndDrag",e)}}},S=(a("./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&"),Object(c.a)(w,u,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ve3dda614 div-demo-1-1"},[t("p",{staticClass:"ve3dda614 div-demo-1-text"},[this._v("\n Hippy 背景渐变色展示\n ")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ve3dda614 div-demo-transform"},[t("p",{staticClass:"ve3dda614 div-demo-transform-text"},[this._v("\n Transform\n ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614 display-flex flex-row"},[a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n A\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n B\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n C\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n D\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n E\n ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614 display-flex flex-column"},[a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n A\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n B\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n C\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n D\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n E\n ")])])}],!1,null,"e3dda614",null));S.options.__file="src/components/demos/demo-div.vue";var k=S.exports,A=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vc6df51b0",attrs:{id:"demo-img"}},[a("div",{staticClass:"vc6df51b0",attrs:{id:"demo-img-container"}},[a("label",[e._v("Contain:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image contain",attrs:{src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",placeholder:e.defaultImage},on:{touchstart:e.onTouchStart,touchmove:e.onTouchMove,touchend:e.onTouchEnd}}),e._v(" "),a("label",[e._v("Cover:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}}),e._v(" "),a("label",[e._v("Center:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image center",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}}),e._v(" "),a("label",[e._v("CapInsets:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",capInsets:{top:50,left:50,bottom:50,right:50}}}),e._v(" "),a("label",[e._v("TintColor:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image center tint-color",attrs:{src:e.hippyLogoImage}}),e._v(" "),a("label",[e._v("Gif:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif"},on:{load:e.onLoad}}),e._v(" "),a("div",{staticClass:"vc6df51b0 img-result"},[a("p",[e._v("Load Result: "+e._s(e.gifLoadResult))])])])])};A._withStripped=!0;var P=a("./src/assets/hippyLogoWhite.png"),j=a.n(P),E={data:function(){return{defaultImage:y.a,hippyLogoImage:j.a,gifLoadResult:{}}},methods:{onTouchStart:function(e){console.log("onTouchDown",e),e.stopPropagation()},onTouchMove:function(e){console.log("onTouchMove",e),e.stopPropagation(),console.log(e)},onTouchEnd:function(e){console.log("onTouchEnd",e),e.stopPropagation(),console.log(e)},onLoad:function(e){console.log("onLoad",e);var t=e.width,a=e.height,o=e.url;this.gifLoadResult={width:t,height:a,url:o}}}},T=(a("./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&"),Object(c.a)(E,A,[],!1,null,"c6df51b0",null));T.options.__file="src/components/demos/demo-img.vue";var L=T.exports,V=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"inputDemo",staticClass:"v76bc5c6f demo-input",on:{click:e.blurAllInput}},[a("label",[e._v("文本:")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.text,expression:"text"}],ref:"input",staticClass:"v76bc5c6f input",attrs:{placeholder:"Text","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",editable:!0},domProps:{value:e.text},on:{click:e.stopPropagation,keyboardWillShow:e.onKeyboardWillShow,keyboardWillHide:e.onKeyboardWillHide,blur:e.onBlur,focus:e.onFocus,input:function(t){t.target.composing||(e.text=t.target.value)}}}),e._v(" "),a("div",[a("span",[e._v("文本内容为:")]),e._v(" "),a("span",[e._v(e._s(e.text))])]),e._v(" "),a("div",[a("span",[e._v(e._s("事件: "+e.event+" | isFocused: "+e.isFocused))])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.clearTextContent}},[a("span",[e._v("清空文本内容")])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.focus}},[a("span",[e._v("Focus")])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.blur}},[a("span",[e._v("Blur")])]),e._v(" "),a("label",[e._v("数字:")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{type:"number","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Number"},on:{change:e.textChange,click:e.stopPropagation}}),e._v(" "),a("label",[e._v("密码:")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{type:"password","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Password"},on:{change:e.textChange,click:e.stopPropagation}}),e._v(" "),a("label",[e._v("文本(限制5个字符):")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{maxlength:5,"caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"5 个字符"},on:{change:e.textChange,click:e.stopPropagation}})])};V._withStripped=!0;var I={data:function(){return{text:"",event:void 0,isFocused:void 0}},mounted:function(){this.getChildNodes(this.$refs.inputDemo.childNodes).find((function(e){return"input"===e.tagName})).focus()},methods:{textChange:function(e){console.log(e.value)},blurAllInput:function(){this.getChildNodes(this.$refs.inputDemo.childNodes).filter((function(e){return"input"===e.tagName})).forEach((function(e){return e.blur()}))},stopPropagation:function(e){e.stopPropagation()},clearTextContent:function(){this.text=""},onKeyboardWillHide:function(){console.log("onKeyboardWillHide")},onKeyboardWillShow:function(e){console.log("onKeyboardWillShow",e)},getChildNodes:function(e){return i.default.Native?e:Array.from(e)},focus:function(e){e.stopPropagation(),this.$refs.input.focus()},blur:function(e){e.stopPropagation(),this.$refs.input.blur()},onFocus:function(){var e=this;return b()(g.a.mark((function t(){return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.input.isFocused();case 2:e.isFocused=t.sent,e.event="onFocus";case 4:case"end":return t.stop()}}),t)})))()},onBlur:function(){var e=this;return b()(g.a.mark((function t(){return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.input.isFocused();case 2:e.isFocused=t.sent,e.event="onBlur";case 4:case"end":return t.stop()}}),t)})))()}}},O=(a("./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&"),Object(c.a)(I,V,[],!1,null,"76bc5c6f",null));O.options.__file="src/components/demos/demo-input.vue";var Y=O.exports,H=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v36005ed6 p-demo",style:{color:e.topColor}},[a("div",[a("label",[e._v("不带样式:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-content",on:{touchstart:e.onTouchTextStart,touchmove:e.onTouchTextMove,touchend:e.onTouchTextEnd}},[e._v("\n 这是最普通的一行可点击文字\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-content-status"},[e._v("\n 当前touch状态: "+e._s(e.labelTouchStatus)+"\n ")]),e._v(" "),a("label",[e._v("颜色:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-1 p-demo-content"},[e._v("\n 这行文字改变了颜色\n ")]),e._v(" "),a("label",[e._v("尺寸:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-2 p-demo-content"},[e._v("\n 这行改变了大小\n ")]),e._v(" "),a("label",[e._v("粗体:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-3 p-demo-content"},[e._v("\n 这行加粗了\n ")]),e._v(" "),a("label",[e._v("下划线:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-4 p-demo-content"},[e._v("\n 这里有条下划线\n ")]),e._v(" "),a("label",[e._v("删除线:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-5 p-demo-content"},[e._v("\n 这里有条删除线\n ")]),e._v(" "),a("label",[e._v("自定义字体:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content"},[e._v("\n 腾讯字体 Hippy\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-weight":"bold"}},[e._v("\n 腾讯字体 Hippy 粗体\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-style":"italic"}},[e._v("\n 腾讯字体 Hippy 斜体\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-weight":"bold","font-style":"italic"}},[e._v("\n 腾讯字体 Hippy 粗斜体\n ")]),e._v(" "),a("label",[e._v("文字阴影:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-7 p-demo-content",style:e.textShadow,on:{click:e.changeTextShadow}},[e._v("\n 这里是文字灰色阴影,点击可改变颜色\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-7 p-demo-content",style:e.textShadow,on:{click:e.changeTextColor}},[e._v("\n 验证属性继承更改效果,点击可改变整体颜色\n ")]),e._v(" "),a("label",[e._v("文本字符间距")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-8 p-demo-content",staticStyle:{"margin-bottom":"5px"}},[e._v("\n Text width letter-spacing -1\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-9 p-demo-content",staticStyle:{"margin-top":"5px"}},[e._v("\n Text width letter-spacing 5\n ")]),e._v(" "),a("label",[e._v("字体 style:")]),e._v(" "),e._m(0),e._v(" "),a("label",[e._v("numberOfLines="+e._s(e.textMode.numberOfLines)+" | ellipsizeMode="+e._s(e.textMode.ellipsizeMode))]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"19px",color:"white"}},[e._v("先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。")]),e._v(" "),a("span",[e._v("然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")])]),e._v(" "),a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[e._v("\n "+e._s("line 1\n\nline 3\n\nline 5")+"\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5,fontSize:14},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[a("img",{staticClass:"v36005ed6",style:{width:24,height:24},attrs:{src:e.img1}}),e._v(" "),a("img",{staticClass:"v36005ed6",style:{width:24,height:24},attrs:{src:e.img2}})]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:e.incrementLine}},[a("span",[e._v("加一行")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:e.decrementLine}},[a("span",[e._v("减一行")])])]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("clip")}}},[a("span",[e._v("clip")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("head")}}},[a("span",[e._v("head")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("middle")}}},[a("span",[e._v("middle")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("tail")}}},[a("span",[e._v("tail")])])])]),e._v(" "),"android"===e.Platform?a("label",[e._v("break-strategy="+e._s(e.breakStrategy))]):e._e(),e._v(" "),"android"===e.Platform?a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"border-width":"1","border-color":"gray"},attrs:{"break-strategy":e.breakStrategy}},[e._v("\n "+e._s(e.longText)+"\n ")]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("simple")}}},[a("span",[e._v("simple")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("high_quality")}}},[a("span",[e._v("high_quality")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("balanced")}}},[a("span",[e._v("balanced")])])])]):e._e(),e._v(" "),a("label",[e._v("vertical-align")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-align":"middle"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-align":"baseline"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-align":"bottom"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-align":"middle"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-align":"baseline"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-align":"bottom"},attrs:{src:e.img3}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"top"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"middle"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"baseline"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"bottom"}},[e._v("字")])]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{lineHeight:"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"0"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-alignment":"1"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-alignment":"2"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-alignment":"3"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24",top:"-10"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12",top:"-5"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24",top:"5"},attrs:{src:e.img3}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")])]):e._e()]),e._v(" "),a("label",[e._v("tint-color & background-color")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"vertical-align":"middle","background-color":"#99f"}},[e._v("text")])]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","tint-color":"orange"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","tint-color":"orange","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","background-color":"#ccc"},attrs:{src:e.img2}})]):e._e()]),e._v(" "),a("label",[e._v("margin")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"baseline","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"bottom","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}})]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"0","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"1","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"2","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"3","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}})]):e._e()])])])};H._withStripped=!0;var R={data:function(){return{topColor:"grey",Platform:i.default.Native.Platform,textShadowIndex:0,isClicked:!1,isPressing:!1,labelTouchStatus:"",textShadow:{textShadowOffset:{x:1,y:1},textShadowRadius:3,textShadowColor:"grey"},textMode:{numberOfLines:2,ellipsizeMode:"tail"},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.",breakStrategy:"simple"}},methods:{changeTextShadow:function(){this.textShadow={textShadowOffsetX:this.textShadowIndex%2==1?10:1,textShadowOffsetY:1,textShadowRadius:3,textShadowColor:this.textShadowIndex%2==1?"red":"grey"},this.textShadowIndex+=1},changeTextColor:function(){this.topColor=this.textShadowIndex%2==1?"red":"grey",this.textShadowIndex+=1},onTouchTextStart:function(e){this.labelTouchStatus="touch start",console.log("onTextTouchDown",e),e.stopPropagation()},onTouchTextMove:function(e){this.labelTouchStatus="touch move",console.log("onTextTouchMove",e),e.stopPropagation(),console.log(e)},onTouchTextEnd:function(e){this.labelTouchStatus="touch end",console.log("onTextTouchEnd",e),e.stopPropagation(),console.log(e)},incrementLine:function(){this.textMode.numberOfLines<6&&(this.textMode.numberOfLines+=1)},decrementLine:function(){this.textMode.numberOfLines>1&&(this.textMode.numberOfLines-=1)},changeMode:function(e){this.textMode.ellipsizeMode=e},changeBreakStrategy:function(e){this.breakStrategy=e}}},D=(a("./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&"),Object(c.a)(R,H,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v36005ed6 p-demo-content"},[t("p",{staticClass:"v36005ed6",staticStyle:{"font-style":"normal"}},[this._v("\n font-style: normal\n ")]),this._v(" "),t("p",{staticClass:"v36005ed6",staticStyle:{"font-style":"italic"}},[this._v("\n font-style: italic\n ")]),this._v(" "),t("p",[this._v("font-style: [not set]")])])}],!1,null,"36005ed6",null));D.options.__file="src/components/demos/demo-p.vue";var B=D.exports,U=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v5819936a",attrs:{id:"shadow-demo"}},["android"===e.Platform?a("div",{staticClass:"v5819936a no-offset-shadow-demo-cube-android"},[e._m(0)]):e._e(),e._v(" "),"ios"===e.Platform?a("div",{staticClass:"v5819936a no-offset-shadow-demo-cube-ios"},[e._m(1)]):e._e(),e._v(" "),"android"===e.Platform?a("div",{staticClass:"v5819936a offset-shadow-demo-cube-android"},[e._m(2)]):e._e(),e._v(" "),"ios"===e.Platform?a("div",{staticClass:"v5819936a offset-shadow-demo-cube-ios"},[e._m(3)]):e._e()])};U._withStripped=!0;var N={data:function(){return{Platform:i.default.Native.Platform}},mounted:function(){this.Platform=i.default.Native.Platform}},M=(a("./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&"),Object(c.a)(N,U,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a no-offset-shadow-demo-content-android"},[t("p",[this._v("没有偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a no-offset-shadow-demo-content-ios"},[t("p",[this._v("没有偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a offset-shadow-demo-content-android"},[t("p",[this._v("偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a offset-shadow-demo-content-ios"},[t("p",[this._v("偏移阴影样式")])])}],!1,null,"5819936a",null));M.options.__file="src/components/demos/demo-shadow.vue";var F=M.exports,z=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v6cb502b6",attrs:{id:"demo-textarea"}},[a("label",[e._v("多行文本:")]),e._v(" "),a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],staticClass:"v6cb502b6 textarea",attrs:{rows:10,placeholder:"多行文本编辑器"},domProps:{value:e.content},on:{contentSizeChange:e.contentSizeChange,input:function(t){t.target.composing||(e.content=t.target.value)}}}),e._v(" "),a("div",{staticClass:"v6cb502b6 output-container"},[a("p",{staticClass:"v6cb502b6 output"},[e._v("\n 输入的文本为:"+e._s(e.content)+"\n ")])]),e._v(" "),"android"===e.Platform?a("label",[e._v("break-strategy="+e._s(e.breakStrategy))]):e._e(),e._v(" "),"android"===e.Platform?a("div",[a("textarea",{staticClass:"v6cb502b6 textarea",attrs:{defaultValue:e.longText,"break-strategy":e.breakStrategy}}),e._v(" "),a("div",{staticClass:"v6cb502b6 button-bar"},[a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("simple")}}},[a("span",[e._v("simple")])]),e._v(" "),a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("high_quality")}}},[a("span",[e._v("high_quality")])]),e._v(" "),a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("balanced")}}},[a("span",[e._v("balanced")])])])]):e._e()])};z._withStripped=!0;var W={data:function(){return{Platform:i.default.Native.Platform,content:"The quick brown fox jumps over the lazy dog,快灰狐狸跳过了懒 🐕。",longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",breakStrategy:"simple"}},methods:{contentSizeChange:function(e){console.log(e)},changeBreakStrategy:function(e){this.breakStrategy=e}}},$=(a("./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&"),Object(c.a)(W,z,[],!1,null,"6cb502b6",null));$.options.__file="src/components/demos/demo-textarea.vue";var G=$.exports,K=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v71b90789",attrs:{id:"demo-list"}},[a("ul",{ref:"list",staticClass:"v71b90789",style:e.horizontal&&{height:50,flex:0},attrs:{id:"list",horizontal:e.horizontal,exposureEventEnabled:!0,delText:e.delText,editable:!0,bounces:!0,rowShouldSticky:!0,overScrollEnabled:!0,scrollEventThrottle:1e3},on:{endReached:e.onEndReached,delete:e.onDelete,scroll:e.onScroll,momentumScrollBegin:e.onMomentumScrollBegin,momentumScrollEnd:e.onMomentumScrollEnd,scrollBeginDrag:e.onScrollBeginDrag,scrollEndDrag:e.onScrollEndDrag}},e._l(e.dataSource,(function(t,o){return a("li",{key:o+"_"+t.style,staticClass:"v71b90789",class:e.horizontal&&"item-horizontal-style",attrs:{type:t.style,sticky:1===o},on:{appear:function(t){return e.onAppear(o)},disappear:function(t){return e.onDisappear(o)},willAppear:function(t){return e.onWillAppear(o)},willDisappear:function(t){return e.onWillDisappear(o)}}},[1===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 1 UI")+"\n ")])])]):2===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 2 UI")+"\n ")])])]):5===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 5 UI")+"\n ")])])]):a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{id:"loading"}},[e._v("\n "+e._s(e.loadingState)+"\n ")])])]),e._v(" "),o!==e.dataSource.length-1?a("div",{staticClass:"v71b90789 separator-line"}):e._e()])})),0),e._v(" "),a("div",{staticClass:"v71b90789",style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#40b883"},on:{click:e.changeDirection}},[a("div",{staticClass:"v71b90789",style:{width:60,height:60,borderRadius:30,backgroundColor:"#40b883",display:"flex",justifyContent:"center",alignItems:"center"}},[a("p",{staticClass:"v71b90789",style:{color:"white"}},[e._v("\n 切换方向\n ")])])])])};K._withStripped=!0;var q=[{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}],Q={data:function(){return{Vue:i.default,loadingState:"Loading now...",dataSource:[],delText:"Delete",horizontal:void 0}},mounted:function(){this.isLoading=!1,this.dataSource=q},methods:{changeDirection:function(){this.horizontal=void 0===this.horizontal||void 0},onAppear:function(e){console.log("onAppear",e)},onDisappear:function(e){console.log("onDisappear",e)},onWillAppear:function(e){console.log("onWillAppear",e)},onWillDisappear:function(e){console.log("onWillDisappear",e)},mockFetchData:function(){return new Promise((function(e){setTimeout((function(){return e(q)}),600)}))},onDelete:function(e){this.dataSource.splice(e.index,1)},onEndReached:function(){var e=this;return b()(g.a.mark((function t(){var a,o;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.dataSource,!e.isLoading){t.next=3;break}return t.abrupt("return");case 3:return e.isLoading=!0,e.dataSource=a.concat([{style:100}]),t.next=7,e.mockFetchData();case 7:o=t.sent,e.dataSource=a.concat(o),e.isLoading=!1;case 10:case"end":return t.stop()}}),t)})))()},onScroll:function(e){console.log("onScroll",e.offsetY),e.offsetY<=0?this.topReached||(this.topReached=!0,console.log("onTopReached")):this.topReached=!1},onMomentumScrollBegin:function(e){console.log("momentumScrollBegin",e)},onMomentumScrollEnd:function(e){console.log("momentumScrollEnd",e)},onScrollBeginDrag:function(e){console.log("onScrollBeginDrag",e)},onScrollEndDrag:function(e){console.log("onScrollEndDrag",e)}}},X=(a("./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&"),Object(c.a)(Q,K,[],!1,null,"71b90789",null));X.options.__file="src/components/demos/demo-list.vue";var J=X.exports,Z=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{style:e.iframeStyle,attrs:{id:"iframe-demo"}},[a("label",[e._v("地址栏:")]),e._v(" "),a("input",{ref:"input",attrs:{id:"address",name:"url",returnKeyType:"go"},domProps:{value:e.displayUrl},on:{endEditing:e.goToUrl,keyup:e.onKeyUp}}),e._v(" "),a("iframe",{ref:"iframe",attrs:{id:"iframe",src:e.url,method:"get"},on:{load:e.onLoad,loadStart:e.onLoadStart,loadEnd:e.onLoadEnd}})])};Z._withStripped=!0;var ee={data:function(){return{url:"https://hippyjs.org",displayUrl:"https://hippyjs.org",iframeStyle:{"min-height":i.default.Native?100:"100vh"}}},methods:{onLoad:function(e){var t=e.url;void 0===t&&(t=this.$refs.iframe.src),t!==this.url&&(this.displayUrl=t)},onLoadStart:function(e){var t=e.url;console.log("onLoadStart",t)},onLoadEnd:function(e){var t=e.url,a=e.success,o=e.error;console.log("onLoadEnd",t,a,o)},onKeyUp:function(e){13===e.keyCode&&(e.preventDefault(),this.goToUrl({value:this.$refs.input.value}))},goToUrl:function(e){this.url=e.value}}},te=(a("./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&"),Object(c.a)(ee,Z,[],!1,null,null,null));te.options.__file="src/components/demos/demo-iframe.vue";var ae=te.exports,oe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v77bce928",attrs:{id:"websocket-demo"}},[a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Url:\n ")]),e._v(" "),a("input",{ref:"inputUrl",staticClass:"v77bce928",attrs:{value:"wss://echo.websocket.org"}}),e._v(" "),a("div",{staticClass:"v77bce928 row"},[a("button",{staticClass:"v77bce928",on:{click:e.connect}},[a("span",[e._v("Connect")])]),e._v(" "),a("button",{staticClass:"v77bce928",on:{click:e.disconnect}},[a("span",[e._v("Disconnect")])])])]),e._v(" "),a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Message:\n ")]),e._v(" "),a("input",{ref:"inputMessage",staticClass:"v77bce928",attrs:{value:"Rock it with Hippy WebSocket"}}),e._v(" "),a("button",{staticClass:"v77bce928",on:{click:e.sendMessage}},[a("span",[e._v("Send")])])]),e._v(" "),a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Log:\n ")]),e._v(" "),a("div",{staticClass:"v77bce928 output fullscreen"},[a("div",e._l(e.output,(function(t,o){return a("p",{key:o,staticClass:"v77bce928"},[e._v("\n "+e._s(t)+"\n ")])})),0)])])])};oe._withStripped=!0;var re={data:function(){return{output:[]}},methods:{connect:function(){var e=this;this.$refs.inputUrl.getValue().then((function(t){e.disconnect();var a=new WebSocket(t);a.onopen=function(){return e.appendOutput("[Opened] ".concat(a.url))},a.onclose=function(){return e.appendOutput("[Closed] ".concat(a.url))},a.onerror=function(t){return e.appendOutput("[Error] ".concat(t.reason))},a.onmessage=function(t){return e.appendOutput("[Received] ".concat(t.data))},e.ws=a}))},disconnect:function(){this.ws&&1===this.ws.readyState&&this.ws.close()},appendOutput:function(e){this.output.unshift(e)},sendMessage:function(){var e=this;this.$refs.inputMessage.getValue().then((function(t){e.appendOutput("[Sent] ".concat(t)),e.ws.send(t)}))}}},ne=(a("./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&"),Object(c.a)(re,oe,[],!1,null,"77bce928",null));ne.options.__file="src/components/demos/demo-websocket.vue";var ie=ne.exports,se=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v2ea31349",attrs:{id:"demo-dynamicimport"},on:{click:this.onAsyncComponentLoad}},[this._m(0),this._v(" "),this.loaded?t("div",{staticClass:"v2ea31349 async-com-wrapper"},[t("AsyncComponentFromLocal",{staticClass:"v2ea31349 async-component-outer-local"}),this._v(" "),t("AsyncComponentFromHttp")],1):this._e()])};se._withStripped=!0;var le={components:{AsyncComponentFromLocal:function(){return a.e(1).then(a.bind(null,"./src/components/demos/dynamicImport/async-component-local.vue")).then((function(e){return e})).catch((function(e){return console.error("import async local component error",e)}))},AsyncComponentFromHttp:function(){return a.e(0).then(a.bind(null,"./src/components/demos/dynamicImport/async-component-http.vue")).then((function(e){return e})).catch((function(e){return console.error("import async remote component error",e)}))}},data:function(){return{loaded:!1}},methods:{onAsyncComponentLoad:function(){this.loaded=!0}}},ce=(a("./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&"),Object(c.a)(le,se,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v2ea31349 import-btn"},[t("p",[this._v("点我异步加载")])])}],!1,null,"2ea31349",null));ce.options.__file="src/components/demos/demo-dynamicimport.vue";var de=ce.exports,pe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v14216e7a demo-turbo"},[a("span",{staticClass:"v14216e7a result"},[e._v(" "+e._s(e.result)+" ")]),e._v(" "),a("ul",{staticClass:"v14216e7a",staticStyle:{flex:"1"}},e._l(e.funList,(function(t){return a("li",{key:t,staticClass:"v14216e7a cell"},[a("div",{staticClass:"v14216e7a contentView"},[a("div",{staticClass:"v14216e7a func-info"},[a("span",{staticClass:"v14216e7a",attrs:{numberOfLines:0}},[e._v("函数名:"+e._s(t))])]),e._v(" "),a("span",{staticClass:"v14216e7a action-button",on:{click:function(a){return a.stopPropagation(),function(){return e.onTurboFunc(t)}.apply(null,arguments)}}},[e._v("运行")])])])})),0)])};pe._withStripped=!0;var ue=function(){var e=b()(g.a.mark((function e(t){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",turboPromise(getTurboModule("demoTurbo").nativeWithPromise)(t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ve=function(){return getTurboModule("demoTurbo").getTurboConfig()},ye={data:function(){return{config:null,result:"",funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"]}},methods:{onTurboFunc:function(e){var t=this;return b()(g.a.mark((function a(){var o;return g.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if("nativeWithPromise"!==e){a.next=6;break}return a.next=3,ue("aaa");case 3:t.result=a.sent,a.next=7;break;case 6:"getTurboConfig"===e?(t.config=ve(),t.result="获取到config对象"):"printTurboConfig"===e?t.result=(r=t.config||ve(),getTurboModule("demoTurbo").printTurboConfig(r)):"getInfo"===e?t.result=(t.config||ve()).getInfo():"setInfo"===e?((t.config||ve()).setInfo("Hello World"),t.result="设置config信息成功"):(o={getString:function(){return e="123",getTurboModule("demoTurbo").getString(e);var e},getNum:function(){return e=1024,getTurboModule("demoTurbo").getNum(e);var e},getBoolean:function(){return e=!0,getTurboModule("demoTurbo").getBoolean(e);var e},getMap:function(){return e=new Map([["a","1"],["b",2]]),getTurboModule("demoTurbo").getMap(e);var e},getObject:function(){return e={c:"3",d:"4"},getTurboModule("demoTurbo").getObject(e);var e},getArray:function(){return e=["a","b","c"],getTurboModule("demoTurbo").getArray(e);var e}},t.result=o[e]());case 7:case"end":return a.stop()}var r}),a)})))()}}},he=(a("./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&"),Object(c.a)(ye,pe,[],!1,null,"14216e7a",null));he.options.__file="src/components/demos/demo-turbo.vue";var fe={demoDiv:{name:"div 组件",component:k},demoShadow:{name:"box-shadow",component:F},demoP:{name:"p 组件",component:B},demoButton:{name:"button 组件",component:p},demoImg:{name:"img 组件",component:L},demoInput:{name:"input 组件",component:Y},demoTextarea:{name:"textarea 组件",component:G},demoUl:{name:"ul/li 组件",component:J},demoIFrame:{name:"iframe 组件",component:ae},demoWebSocket:{name:"WebSocket",component:ie},demoDynamicImport:{name:"DynamicImport",component:de},demoTurbo:{name:"Turbo",component:he.exports}},be=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v4ffd9eb0 set-native-props-demo"},[a("label",[e._v("setNativeProps实现拖动效果")]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 native-demo-1-drag",style:{width:e.screenWidth},on:{touchstart:e.onTouchDown1,touchmove:e.onTouchMove1}},[a("div",{ref:"demo-1-point",staticClass:"v4ffd9eb0 native-demo-1-point"})]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 splitter"}),e._v(" "),a("label",[e._v("普通渲染实现拖动效果")]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 native-demo-2-drag",style:{width:e.screenWidth},on:{touchstart:e.onTouchDown2,touchmove:e.onTouchMove2}},[a("div",{ref:"demo-2-point",staticClass:"v4ffd9eb0 native-demo-2-point",style:{left:e.demon2Left+"px"}})])])};be._withStripped=!0;var me={data:function(){return{demon2Left:0,screenWidth:0}},mounted:function(){this.screenWidth=i.default.Native.Dimensions.screen.width,this.demon1Point=this.$refs["demo-1-point"]},methods:{onTouchDown1:function(e){e.stopPropagation();var t=e.touches[0].clientX-40;console.log("touchdown x",t,this.screenWidth),this.demon1Point.setNativeProps({style:{left:t}})},onTouchMove1:function(e){e.stopPropagation();var t=e.touches[0].clientX-40;console.log("touchmove x",t,this.screenWidth),this.demon1Point.setNativeProps({style:{left:t}})},onTouchDown2:function(e){e.stopPropagation(),this.demon2Left=e.touches[0].clientX-40,console.log("touchdown x",this.demon2Left,this.screenWidth)},onTouchMove2:function(e){e.stopPropagation(),this.demon2Left=e.touches[0].clientX-40,console.log("touchmove x",this.demon2Left,this.screenWidth)}}},ge=(a("./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&"),Object(c.a)(me,be,[],!1,null,"4ffd9eb0",null));ge.options.__file="src/components/demos/demo-set-native-props.vue";var _e=ge.exports,xe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"rect",staticClass:"v864846ba",attrs:{id:"demo-vue-native"}},[a("div",[e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Platform")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Platform))])]):e._e(),e._v(" "),e.Vue.Native.Device?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Device")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Device))])]):e._e(),e._v(" "),"ios"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.isIPhoneX")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.isIPhoneX))])]):e._e(),e._v(" "),"ios"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.OSVersion")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.OSVersion||"null"))])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Localization")]),e._v(" "),a("p",[e._v(e._s("国际化相关信息"))]),e._v(" "),a("p",[e._v(e._s("国家 "+e.Vue.Native.Localization.country))]),e._v(" "),a("p",[e._v(e._s("语言 "+e.Vue.Native.Localization.language))]),e._v(" "),a("p",[e._v(e._s("方向 "+(1===e.Vue.Native.Localization.direction?"RTL":"LTR")))])]),e._v(" "),"android"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.APILevel")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.APILevel||"null"))])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block",on:{layout:e.refreshScreenStatus}},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.screenIsVertical")]),e._v(" "),a("p",[e._v(e._s(e.screenIsVertical))])]),e._v(" "),e.Vue.Native.Dimensions.window.width?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.window.width")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.window.width))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.window.height?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.window.height")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.window.height))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.width?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.width")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.width))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.height?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.height")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.height))])]):e._e(),e._v(" "),e.Vue.Native.OnePixel?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.OnePixel")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.OnePixel))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.navigatorBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.navigatorBarHeight")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.navigatorBarHeight))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.statusBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.statusBarHeight")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.statusBarHeight))])]):e._e(),e._v(" "),"android"===e.Vue.Native.Platform&&void 0!==e.Vue.Native.Dimensions.screen.navigatorBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.navigatorBarHeight(Android only)")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.navigatorBarHeight))])]):e._e(),e._v(" "),e.app?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("App.$options.$superProps")]),e._v(" "),a("p",[e._v(e._s(JSON.stringify(e.app.$options.$superProps)))])]):e._e(),e._v(" "),e.app?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("App event")]),e._v(" "),a("div",[a("button",{staticClass:"v864846ba event-btn",on:{click:e.triggerAppEvent}},[a("span",{staticClass:"v864846ba event-btn-text"},[e._v("Trigger app event")])]),e._v(" "),a("div",{staticClass:"v864846ba event-btn-result"},[a("p",[e._v("Event triggered times: "+e._s(e.eventTriggeredTimes))])])])]):e._e(),e._v(" "),e.Vue.Native.getBoundingClientRect?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.getBoundingClientRect")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:function(){return e.getBoundingClientRect(!1)}}},[a("span",[e._v("relative to App")])]),e._v(" "),a("span",{staticClass:"v864846ba",staticStyle:{"max-width":"200px"}},[e._v(e._s(e.rect1))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:function(){return e.getBoundingClientRect(!0)}}},[a("span",[e._v("relative to container")])]),e._v(" "),a("span",{staticClass:"v864846ba",staticStyle:{"max-width":"200px"}},[e._v(e._s(e.rect2))])])]):e._e(),e._v(" "),e.Vue.Native.AsyncStorage?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("AsyncStorage 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setItem}},[a("span",[e._v("setItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageSetStatus))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.removeItem}},[a("span",[e._v("removeItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageSetStatus))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getItem}},[a("span",[e._v("getItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageValue))])])]):e._e(),e._v(" "),e.Vue.Native.ImageLoader?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("ImageLoader 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getSize}},[a("span",[e._v("getSize")])]),e._v(" "),a("span",[e._v(e._s(e.imageSize))])])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Fetch 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("span",[e._v(e._s(e.fetchText))])])]),e._v(" "),e.Vue.Native.NetInfo?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("NetInfo 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("span",[e._v(e._s(e.netInfoText))])])]):e._e(),e._v(" "),e.Vue.Native.Cookie?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Cookie 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setCookie}},[a("span",[e._v("setCookie")])]),e._v(" "),a("span",[e._v(e._s(e.cookieString))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getCookie}},[a("span",[e._v("getCookie")])]),e._v(" "),a("span",[e._v(e._s(e.cookiesValue))])])]):e._e()])])};xe._withStripped=!0;var Ce=a("./src/util.js"),we={data:function(){var e=i.default.Native.screenIsVertical;return{app:this.app,eventTriggeredTimes:0,rect1:null,rect2:null,Vue:i.default,screenIsVertical:e,storageValue:"",storageSetStatus:"ready to set",imageSize:"",netInfoText:"正在获取...",fetchText:"请求网址中...",cookieString:"ready to set",cookiesValue:"",hasLayout:!1}},created:function(){var e=this;return b()(g.a.mark((function t(){return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.storageValue="",e.imageSize="",e.netInfoText="",t.next=5,i.default.Native.NetInfo.fetch();case 5:e.netInfoText=t.sent,e.netInfoListener=i.default.Native.NetInfo.addEventListener("change",(function(t){e.netInfoText="收到通知: ".concat(t.network_info)})),fetch("https://hippyjs.org",{mode:"no-cors"}).then((function(t){e.fetchText="成功状态: ".concat(t.status)})).catch((function(t){e.fetchText="收到错误: ".concat(t)}));case 8:case"end":return t.stop()}}),t)})))()},mounted:function(){var e=this;return b()(g.a.mark((function t(){return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.app=Object(Ce.a)(),e.app.$on("testEvent",(function(){e.eventTriggeredTimes+=1}));case 2:case"end":return t.stop()}}),t)})))()},beforeDestroy:function(){this.netInfoListener&&i.default.Native.NetInfo.remove("change",this.netInfoListener),this.app.$off("testEvent"),delete this.app},methods:{getBoundingClientRect:function(){var e=arguments,t=this;return b()(g.a.mark((function a(){var o,r;return g.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return o=e.length>0&&void 0!==e[0]&&e[0],a.prev=1,a.next=4,i.default.Native.getBoundingClientRect(t.$refs.rect,{relToContainer:o});case 4:r=a.sent,o?t.rect2="".concat(JSON.stringify(r)):t.rect1="".concat(JSON.stringify(r)),a.next=11;break;case 8:a.prev=8,a.t0=a.catch(1),console.error("getBoundingClientRect error",a.t0);case 11:case"end":return a.stop()}}),a,null,[[1,8]])})))()},triggerAppEvent:function(){this.app.$emit("testEvent")},refreshScreenStatus:function(){this.screenIsVertical=i.default.Native.screenIsVertical},setItem:function(){i.default.Native.AsyncStorage.setItem("itemKey","hippy"),this.storageSetStatus='set "hippy" value succeed'},removeItem:function(){i.default.Native.AsyncStorage.removeItem("itemKey"),this.storageSetStatus='remove "hippy" value succeed'},getItem:function(){var e=this;return b()(g.a.mark((function t(){var a;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.default.Native.AsyncStorage.getItem("itemKey");case 2:a=t.sent,e.storageValue=a||"undefined";case 4:case"end":return t.stop()}}),t)})))()},getSize:function(){var e=this;return b()(g.a.mark((function t(){var a;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.default.Native.ImageLoader.getSize("https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png");case 2:a=t.sent,console.log("ImageLoader getSize",a),e.imageSize="".concat(a.width,"x").concat(a.height);case 5:case"end":return t.stop()}}),t)})))()},setCookie:function(){i.default.Native.Cookie.set("https://hippyjs.org","name=hippy;network=mobile"),this.cookieString="'name=hippy;network=mobile' is set"},getCookie:function(){var e=this;i.default.Native.Cookie.getAll("https://hippyjs.org").then((function(t){e.cookiesValue=t}))}}},Se=(a("./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&"),Object(c.a)(we,xe,[],!1,null,"864846ba",null));Se.options.__file="src/components/native-demos/demo-vue-native.vue";var ke=Se.exports,Ae=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{staticClass:"v1b9933af",attrs:{id:"animation-demo"}},[a("li",[a("label",[e._v("控制动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleLoopPlaying}},[e.loopPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])]),e._v(" "),a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleDirection}},["horizon"===e.direction?a("span",[e._v("切换为纵向")]):a("span",[e._v("切换为横向")])])]),e._v(" "),a("div",{staticClass:"v1b9933af",staticStyle:{height:"150px"}},[a("loop",{staticClass:"v1b9933af",attrs:{playing:e.loopPlaying,direction:e.direction,"on-ref":e.onRef},on:{actionsDidUpdate:e.actionsDidUpdate}},[a("p",[e._v("I'm a looping animation")])])],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("点赞笑脸动画:")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.voteUp}},[a("span",[e._v("点赞 👍")])]),e._v(" "),a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.voteDown}},[a("span",[e._v("踩 👎")])])]),e._v(" "),a("div",{staticClass:"v1b9933af vote-face-container center"},[a(e.voteComponent,{tag:"component",staticClass:"v1b9933af vote-icon",attrs:{"is-changed":e.isChanged}})],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("渐变色动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleColorPlaying}},[e.colorPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])])]),e._v(" "),a("div",[a("color-component",{staticClass:"v1b9933af",attrs:{playing:e.colorPlaying}},[a("p",[e._v("背景色渐变")])])],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("贝塞尔曲线动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleCubicPlaying}},[e.cubicPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])])]),e._v(" "),a("div",[a("cubic-bezier",{staticClass:"v1b9933af",attrs:{playing:e.cubicPlaying}},[a("p",[e._v("cubic-bezier(.45,2.84,.38,.5)")])])],1)])])};Ae._withStripped=!0;var Pe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("animation",{ref:"animationLoop",staticClass:"v63fc9d7f loop-green",style:{backgroundColor:"grey"},attrs:{playing:e.playing,actions:e.loopActions},on:{actionsDidUpdate:function(t){return e.$emit("actionsDidUpdate")}}},[a("div",{staticClass:"v63fc9d7f loop-white"},[e._t("default")],2)])],1)};Pe._withStripped=!0;var je={transform:{translateX:{startValue:0,toValue:200,duration:2e3,repeatCount:-1}}},Ee={transform:{translateY:{startValue:0,toValue:50,duration:2e3,repeatCount:-1}}},Te={props:{playing:Boolean,direction:{validator:function(e){return["horizon","vertical"].indexOf(e)>-1}},onRef:Function},data:function(){var e;switch(this.$props.direction){case"horizon":e=je;break;case"vertical":e=Ee;break;default:throw new Error("direction must be defined in props")}return{loopActions:e}},watch:{direction:function(e){switch(e){case"horizon":this.loopActions=je;break;case"vertical":this.loopActions=Ee}}},mounted:function(){this.$props.onRef&&this.$props.onRef(this.$refs.animationLoop)}},Le=(a("./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&"),Object(c.a)(Te,Pe,[],!1,null,"63fc9d7f",null));Le.options.__file="src/components/native-demos/animations/loop.vue";var Ve=Le.exports,Ie=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{ref:"animationView",staticClass:"v44bf239d loop-green",attrs:{playing:this.playing,actions:this.loopActions}},[t("div",{staticClass:"v44bf239d loop-white"},[this._t("default")],2)])],1)};Ie._withStripped=!0;var Oe={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)"}]}},Ye={props:{playing:Boolean,onRef:Function},data:function(){return{loopActions:Oe}},mounted:function(){this.$props.onRef&&this.$props.onRef(this.$refs.animationView)}},He=(a("./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&"),Object(c.a)(Ye,Ie,[],!1,null,"44bf239d",null));He.options.__file="src/components/native-demos/animations/cubic-bezier.vue";var Re=He.exports,De=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{staticClass:"vca89125a vote-face",attrs:{actions:this.animations.face,playing:""}}),this._v(" "),t("animation",{staticClass:"vca89125a vote-up-eye",attrs:{tag:"img",playing:"",props:{src:this.imgs.upVoteEye},actions:this.animations.upVoteEye}}),this._v(" "),t("animation",{staticClass:"vca89125a vote-up-mouth",attrs:{tag:"img",playing:"",props:{src:this.imgs.upVoteMouth},actions:this.animations.upVoteMouth}})],1)};De._withStripped=!0;var Be={data:function(){return{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}]}}}}}},Ue=(a("./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&"),Object(c.a)(Be,De,[],!1,null,"ca89125a",null));Ue.options.__file="src/components/native-demos/animations/vote-up.vue";var Ne=Ue.exports,Me=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("animation",{ref:"animationRef",staticClass:"v3adfe95a vote-face",attrs:{actions:e.animations.face,playing:""},on:{start:e.animationStart,end:e.animationEnd,repeat:e.animationRepeat,cancel:e.animationCancel}}),e._v(" "),a("animation",{staticClass:"v3adfe95a vote-down-face",attrs:{tag:"img",playing:"",props:{src:e.imgs.downVoteFace},actions:e.animations.downVoteFace}})],1)};Me._withStripped=!0;var Fe={transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},ze={transform:{translateX:[{startValue:10,toValue:1,duration:250,timingFunction:"linear"},{startValue:1,toValue:10,duration:250,delay:750,timingFunction:"linear",repeatCount:-1}]}},We={props:["isChanged"],data:function(){return{imgs:{downVoteFace:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAAAXVBMVEUAAACmaCCoaSKlZyCmaCCoaiG0byOlZyCmaCGnaSKmaCCmZyClZyCmaCCmaSCybyymZyClaCGlaCGnaCCnaSGnaiOlZyKocCXMmTOmaCKnaCKmaSClZyGoZyClZyDPYmTmAAAAHnRSTlMA6S/QtjYO+FdJ4tyZbWYH7cewgTw5JRQFkHFfXk8vbZ09AAAAiUlEQVQY07WQRxLDMAhFPyq21dxLKvc/ZoSiySTZ+y3g8YcFA5wFcOkHYEi5QDkknparH5EZKS6GExQLs0RzUQUY6VYiK2ayNIapQ6EjNk2xd616Bi5qIh2fn8BqroS1XtPmgYKXxo+y07LuDrH95pm3LBM5FMpHWg2osOOLjRR6hR/WOw780bwASN0IT3NosMcAAAAASUVORK5CYII="},animations:{face:Fe,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"}]}}}}},watch:{isChanged:function(e,t){var a=this;!t&&e?(console.log("changed to face2"),this.animations.face=ze):t&&!e&&(console.log("changed to face1"),this.animations.face=Fe),setTimeout((function(){a.animationRef.start()}),10)}},mounted:function(){this.animationRef=this.$refs.animationRef},methods:{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")}}},$e=(a("./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&"),Object(c.a)(We,Me,[],!1,null,"3adfe95a",null));$e.options.__file="src/components/native-demos/animations/vote-down.vue";var Ge=$e.exports,Ke=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{ref:"animationView",staticClass:"vc3eb3b96 color-green",attrs:{playing:this.playing,actions:this.colorActions}},[t("div",{staticClass:"vc3eb3b96 color-white"},[this._t("default")],2)])],1)};Ke._withStripped=!0;var qe={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}]},Qe={props:{playing:Boolean,onRef:Function},data:function(){return{colorActions:qe}}},Xe=(a("./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&"),Object(c.a)(Qe,Ke,[],!1,null,"c3eb3b96",null));Xe.options.__file="src/components/native-demos/animations/color-change.vue";var Je=Xe.exports,Ze={components:{Loop:Ve,colorComponent:Je,CubicBezier:Re},data:function(){return{loopPlaying:!0,colorPlaying:!0,cubicPlaying:!0,direction:"horizon",voteComponent:Ne,colorComponent:Je,isChanged:!0}},methods:{onRef:function(e){this.animationRef=e},voteUp:function(){this.voteComponent=Ne},voteDown:function(){this.voteComponent=Ge,this.isChanged=!this.isChanged},toggleLoopPlaying:function(){this.loopPlaying=!this.loopPlaying},toggleColorPlaying:function(){this.colorPlaying=!this.colorPlaying},toggleCubicPlaying:function(){this.cubicPlaying=!this.cubicPlaying},toggleDirection:function(){this.direction="horizon"===this.direction?"vertical":"horizon"},actionsDidUpdate:function(){console.log("actions updated & startAnimation"),this.animationRef.start()}}},et=(a("./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&"),Object(c.a)(Ze,Ae,[],!1,null,"1b9933af",null));et.options.__file="src/components/native-demos/demo-animation.vue";var tt=et.exports,at=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vbdcf35a6",attrs:{id:"dialog-demo"}},[a("label",[e._v("显示或者隐藏对话框:")]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("slide")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--slide")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("fade")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--fade")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("slide_fade")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--slide_fade")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.autoHideStatusBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("hideStatusBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("隐藏状态栏")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.immersionStatusBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("immerseStatusBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("沉浸式状态栏")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.autoHideNavigationBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("hideNavigationBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("隐藏导航栏")])]),e._v(" "),e.dialogIsVisible?a("dialog",{staticClass:"vbdcf35a6",attrs:{animationType:e.dialogAnimationType,transparent:!0,supportedOrientations:e.supportedOrientations,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar},on:{show:e.onShow,requestClose:e.onClose,orientationChange:e.onOrientationChange}},[a("div",{staticClass:"vbdcf35a6 dialog-demo-wrapper"},[a("div",{staticClass:"vbdcf35a6 fullscreen center row",on:{click:e.clickView}},[a("div",{staticClass:"vbdcf35a6 dialog-demo-close-btn center column",on:{click:e.stopPropagation}},[a("p",{staticClass:"vbdcf35a6 dialog-demo-close-btn-text"},[e._v("\n 点击空白区域关闭\n ")]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-2",on:{click:e.clickOpenSecond}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("点击打开二级全屏弹窗")])])]),e._v(" "),e.dialog2IsVisible?a("dialog",{staticClass:"vbdcf35a6",attrs:{animationType:e.dialogAnimationType,transparent:!0,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar},on:{requestClose:e.onClose,orientationChange:e.onOrientationChange}},[a("div",{staticClass:"vbdcf35a6 dialog-2-demo-wrapper center column row",on:{click:e.clickOpenSecond}},[a("p",{staticClass:"vbdcf35a6 dialog-demo-close-btn-text",staticStyle:{color:"white"}},[e._v("\n Hello 我是二级全屏弹窗,点击任意位置关闭。\n ")])])]):e._e()])])]):e._e()])};at._withStripped=!0;var ot={beforeRouteLeave:function(e,t,a){this.dialogIsVisible||a()},data:function(){return{supportedOrientations:["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"],dialogIsVisible:!1,dialog2IsVisible:!1,dialogAnimationType:"",immersionStatusBar:!1,autoHideStatusBar:!1,autoHideNavigationBar:!1}},methods:{clickView:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogIsVisible=!this.dialogIsVisible,this.dialogIsVisible&&(this.dialogAnimationType=e)},clickOpenSecond:function(e){e.stopPropagation(),this.dialog2IsVisible=!this.dialog2IsVisible},clickDialogConfig:function(e){switch(e){case"hideStatusBar":this.autoHideStatusBar=!this.autoHideStatusBar;break;case"immerseStatusBar":this.immersionStatusBar=!this.immersionStatusBar;break;case"hideNavigationBar":this.autoHideNavigationBar=!this.autoHideNavigationBar}},onShow:function(){console.log("Dialog is opening")},onOrientationChange:function(e){console.log("orientation changed",e.nativeParams)},onClose:function(e){e.stopPropagation(),this.dialog2IsVisible?this.dialog2IsVisible=!1:this.dialogIsVisible=!1,console.log("Dialog is closing")},stopPropagation:function(e){e.stopPropagation()}}},rt=(a("./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&"),Object(c.a)(ot,at,[],!1,null,"bdcf35a6",null));rt.options.__file="src/components/native-demos/demo-dialog.vue";var nt=rt.exports,it=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"demo-swiper"}},[a("div",{staticClass:"toolbar"},[a("button",{staticClass:"toolbar-btn",on:{click:e.scrollToPrevPage}},[a("span",[e._v("翻到上一页")])]),e._v(" "),a("button",{staticClass:"toolbar-btn",on:{click:e.scrollToNextPage}},[a("span",[e._v("翻到下一页")])]),e._v(" "),a("p",{staticClass:"toolbar-text"},[e._v("\n 当前第 "+e._s(e.currentSlideNum+1)+" 页\n ")])]),e._v(" "),a("swiper",{ref:"swiper",attrs:{id:"swiper","need-animation":"",current:e.currentSlide},on:{dragging:e.onDragging,dropped:e.onDropped,stateChanged:e.onStateChanged}},e._l(e.dataSource,(function(t){return a("swiper-slide",{key:t,style:{backgroundColor:4278222848+100*t}},[a("p",[e._v("I'm Slide "+e._s(t+1))])])})),1),e._v(" "),a("div",{attrs:{id:"swiper-dots"}},e._l(e.dataSource,(function(t){return a("div",{key:t,staticClass:"dot",class:{hightlight:e.currentSlideNum===t}})})),0)],1)};it._withStripped=!0;var st={data:function(){return{dataSource:new Array(7).fill(0).map((function(e,t){return t})),currentSlide:2,currentSlideNum:2,state:"idle"}},mounted:function(){this.$maxSlideIndex=this.$refs.swiper.$el.childNodes.length-1},methods:{scrollToNextPage:function(){this.currentSlide 如果不需要显示加载情况,可以直接使用 ul 的 onEndReached 实现一直加载\n *\n * 事件:\n * idle: 滑动距离在 pull-footer 区域内触发一次,参数 contentOffset,滑动距离\n * pulling: 滑动距离超出 pull-footer 后触发一次,参数 contentOffset,滑动距离\n * released: 滑动超出距离,松手后触发一次\n */\n "),a("pull-footer",{ref:"pullFooter",staticClass:"v44ac5390 pull-footer",on:{idle:e.onFooterIdle,pulling:e.onFooterPulling,released:e.onEndReached}},[a("p",{staticClass:"v44ac5390 pull-footer-text"},[e._v("\n "+e._s(e.footerRefreshText)+"\n ")])])],2)])};dt._withStripped=!0;var pt="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",ut={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[pt,pt,pt],subInfo:["三图评论","11评"]}},vt={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},yt={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}},ht=[yt,ut,vt,ut,vt,ut,vt,yt,ut],ft=(i.default.component("StyleOne",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n

\n {{ itemBean.title }}\n

\n
\n \n
\n
\n

\n {{ itemBean.subInfo.join(\'\') }}\n

\n
\n
\n '}),i.default.component("StyleTwo",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n
\n

\n {{ itemBean.title }}\n

\n
\n

\n {{ itemBean.subInfo.join(\'\') }}\n

\n
\n
\n
\n \n
\n
\n '}),i.default.component("StyleFive",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n

\n {{ itemBean.title }}\n

\n
\n \n
\n
\n

\n {{ itemBean.subInfo.join(\' \') }}\n

\n
\n
\n '}),{data:function(){return{headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",dataSource:[],scrollPos:{top:0,left:0},Vue:i.default}},mounted:function(){this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.dataSource=r()(ht),i.default.Native?(this.$windowHeight=i.default.Native.Dimensions.window.height,console.log("Vue.Native.Dimensions.window",i.default.Native.Dimensions)):this.$windowHeight=window.innerHeight,this.$refs.pullHeader.collapsePullHeader({time:2e3})},methods:{mockFetchData:function(){return new Promise((function(e){setTimeout((function(){return e(ht)}),800)}))},onHeaderPulling:function(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?this.headerRefreshText="松手,即可触发刷新":this.headerRefreshText="继续下拉,触发刷新")},onFooterPulling:function(e){console.log("onFooterPulling",e)},onHeaderIdle:function(){},onFooterIdle:function(){},onScroll:function(e){e.stopPropagation(),this.scrollPos={top:e.offsetY,left:e.offsetX}},onHeaderReleased:function(){var e=this;return b()(g.a.mark((function t(){var a;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.fetchingDataFlag){t.next=2;break}return t.abrupt("return");case 2:return e.fetchingDataFlag=!0,console.log("onHeaderReleased"),e.headerRefreshText="刷新数据中,请稍等",t.next=7,e.mockFetchData();case 7:a=t.sent,e.dataSource=a.reverse(),e.fetchingDataFlag=!1,e.headerRefreshText="2秒后收起",e.$refs.pullHeader.collapsePullHeader({time:2e3});case 12:case"end":return t.stop()}}),t)})))()},onEndReached:function(){var e=this;return b()(g.a.mark((function t(){var a,o;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.dataSource,!e.loadMoreDataFlag){t.next=3;break}return t.abrupt("return");case 3:return e.loadMoreDataFlag=!0,e.footerRefreshText="加载更多...",t.next=7,e.mockFetchData();case 7:0===(o=t.sent).length&&(e.footerRefreshText="没有更多数据"),e.dataSource=[].concat(r()(a),r()(o)),e.loadMoreDataFlag=!1,e.$refs.pullFooter.collapsePullFooter();case 12:case"end":return t.stop()}}),t)})))()},scrollToNextPage:function(){if(i.default.Native){var e=this.$refs.list,t=this.scrollPos,a=t.top+this.$windowHeight-200;e.scrollTo({left:t.left,top:a})}else alert("This method is only supported in Native environment.")},scrollToBottom:function(){if(i.default.Native){var e=this.$refs.list;e.scrollToIndex(0,e.childNodes.length-1)}else alert("This method is only supported in Native environment.")}}}),bt=(a("./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&"),Object(c.a)(ft,dt,[],!1,null,"44ac5390",null));bt.options.__file="src/components/native-demos/demo-pull-header-footer.vue";var mt=bt.exports,gt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v782cda3d",attrs:{id:"demo-waterfall"}},[a("waterfall",{ref:"gridView",staticClass:"v782cda3d",style:{flex:1},attrs:{"content-inset":e.contentInset,"column-spacing":e.columnSpacing,"contain-banner-view":!e.isAndroid,"contain-pull-footer":!0,"inter-item-spacing":e.interItemSpacing,"number-of-columns":e.numberOfColumns,"preload-item-number":4},on:{endReached:e.onEndReached,scroll:e.onScroll}},[a("pull-header",{ref:"pullHeader",staticClass:"v782cda3d ul-refresh",on:{idle:e.onHeaderIdle,pulling:e.onHeaderPulling,released:e.onHeaderReleased}},[a("p",{staticClass:"v782cda3d ul-refresh-text"},[e._v("\n "+e._s(e.headerRefreshText)+"\n ")])]),e._v(" "),e.isAndroid||e.isiOS?a("waterfall-item",{staticClass:"v782cda3d banner-view",attrs:{fullSpan:!0,",":"",isHeader:!0,",":""}},[a("span",[e._v("Banner View")])]):a("div",{staticClass:"v782cda3d banner-view"},[a("span",[e._v("BannerView")])]),e._v(" "),e._l(e.dataSource,(function(t,o){return a("waterfall-item",{key:o,staticClass:"v782cda3d",style:{width:e.itemWidth},attrs:{type:t.style},on:{click:function(t){return t.stopPropagation(),function(){return e.onItemClick(o)}.apply(null,arguments)}}},[1===t.style?a("style-one",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e(),e._v(" "),2===t.style?a("style-two",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e(),e._v(" "),5===t.style?a("style-five",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e()],1)})),e._v(" "),a("waterfall-item",{staticClass:"v782cda3d banner-view",attrs:{fullSpan:!0,",":"",isFooter:!0,",":""}},[a("span",[e._v("Footer View")])]),e._v(" "),a("pull-footer",{ref:"pullFooter",staticClass:"v782cda3d pull-footer",on:{idle:e.onFooterIdle,pulling:e.onFooterPulling,released:e.onEndReached}},[a("p",{staticClass:"v782cda3d pull-footer-text"},[e._v("\n "+e._s(e.footerRefreshText)+"\n ")])])],2)],1)};gt._withStripped=!0;var _t={data:function(){return{dataSource:[].concat(r()(ht),r()(ht),r()(ht),r()(ht)),isRefreshing:!1,Vue:i.default,STYLE_LOADING:100,headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",isLoading:!1,isAndroid:"android"===i.default.Native.Platform,isiOS:"android"===i.default.Native.Platform}},mounted:function(){this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.dataSource=r()(ht),i.default.Native?(this.$windowHeight=i.default.Native.Dimensions.window.height,console.log("Vue.Native.Dimensions.window",i.default.Native.Dimensions)):this.$windowHeight=window.innerHeight,this.$refs.pullHeader.collapsePullHeader({time:2e3})},computed:{refreshText:function(){return this.isRefreshing?"正在刷新":"下拉刷新"},itemWidth:function(){return(i.default.Native.Dimensions.screen.width-this.contentInset.left-this.contentInset.right-(this.numberOfColumns-1)*this.columnSpacing)/this.numberOfColumns},listMargin:function(){return 5},columnSpacing:function(){return 6},interItemSpacing:function(){return 6},numberOfColumns:function(){return 2},contentInset:function(){return{top:0,left:5,bottom:0,right:5}}},methods:{mockFetchData:function(){var e=this;return new Promise((function(t){setTimeout((function(){return e.fetchTimes+=1,e.fetchTimes>=50?t([]):t([].concat(r()(ht),r()(ht)))}),600)}))},onHeaderPulling:function(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?this.headerRefreshText="松手,即可触发刷新":this.headerRefreshText="继续下拉,触发刷新")},onFooterPulling:function(e){console.log("onFooterPulling",e)},onHeaderIdle:function(){},onFooterIdle:function(){},onHeaderReleased:function(){var e=this;return b()(g.a.mark((function t(){return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.fetchingDataFlag){t.next=2;break}return t.abrupt("return");case 2:return e.fetchingDataFlag=!0,console.log("onHeaderReleased"),e.headerRefreshText="刷新数据中,请稍等",t.next=7,e.mockFetchData();case 7:t.sent,e.fetchingDataFlag=!1,e.headerRefreshText="2秒后收起",e.$refs.pullHeader.collapsePullHeader({time:2e3});case 11:case"end":return t.stop()}}),t)})))()},onRefresh:function(){var e=this;return b()(g.a.mark((function t(){var a;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isRefreshing=!0,t.next=3,e.mockFetchData();case 3:a=t.sent,e.isRefreshing=!1,e.dataSource=a.reverse(),e.$refs.header.refreshCompleted();case 7:case"end":return t.stop()}}),t)})))()},onScroll:function(e){console.log("waterfall onScroll",e)},onEndReached:function(){var e=this;return b()(g.a.mark((function t(){var a,o;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.dataSource,!e.loadMoreDataFlag){t.next=3;break}return t.abrupt("return");case 3:return e.loadMoreDataFlag=!0,e.footerRefreshText="加载更多...",t.next=7,e.mockFetchData();case 7:0===(o=t.sent).length&&(e.footerRefreshText="没有更多数据"),e.dataSource=[].concat(r()(a),r()(o)),e.loadMoreDataFlag=!1,e.$refs.pullFooter.collapsePullFooter();case 12:case"end":return t.stop()}}),t)})))()},onItemClick:function(e){this.$refs.gridView.scrollToIndex({index:e,animation:!0})}}},xt=(a("./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&"),Object(c.a)(_t,gt,[],!1,null,"782cda3d",null));xt.options.__file="src/components/native-demos/demo-waterfall.vue";var Ct=xt.exports,wt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v3bbacb8e",attrs:{id:"demo-wrap"},on:{layout:e.onLayout}},[a("div",{staticClass:"v3bbacb8e",attrs:{id:"demo-content"}},[a("div",{staticClass:"v3bbacb8e",attrs:{id:"banner"}}),e._v(" "),a("div",{staticClass:"v3bbacb8e",attrs:{id:"tabs"}},e._l(2,(function(t){return a("p",{key:"tab"+t,staticClass:"v3bbacb8e",class:e.currentSlide===t-1?"selected":"",on:{click:function(a){return e.onTabClick(t)}}},[e._v("\n tab "+e._s(t)+" "+e._s(1===t?"(parent first)":"(self first)")+"\n ")])})),0),e._v(" "),a("swiper",{ref:"swiper",staticClass:"v3bbacb8e",style:{height:e.layoutHeight-80},attrs:{id:"swiper","need-animation":"",current:e.currentSlide},on:{dropped:e.onDropped}},[a("swiper-slide",{key:"slide1",staticClass:"v3bbacb8e"},[a("ul",{staticClass:"v3bbacb8e",attrs:{nestedScrollTopPriority:"parent"}},e._l(30,(function(t){return a("li",{key:"item"+t,staticClass:"v3bbacb8e",class:t%2?"item-even":"item-odd"},[a("p",[e._v("Item "+e._s(t))])])})),0)]),e._v(" "),a("swiper-slide",{key:"slide2",staticClass:"v3bbacb8e"},[a("ul",{staticClass:"v3bbacb8e",attrs:{nestedScrollTopPriority:"self"}},e._l(30,(function(t){return a("li",{key:"item"+t,staticClass:"v3bbacb8e",class:t%2?"item-even":"item-odd"},[a("p",[e._v("Item "+e._s(t))])])})),0)])],1)],1)])};wt._withStripped=!0;var St={data:function(){return{layoutHeight:0,currentSlide:0}},methods:{onLayout:function(e){this.layoutHeight=e.height},onTabClick:function(e){console.log("onclick",e),this.currentSlide=e-1},onDropped:function(e){this.currentSlide=e.currentSlide}}},kt=(a("./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&"),Object(c.a)(St,wt,[],!1,null,"3bbacb8e",null));kt.options.__file="src/components/native-demos/demo-nested-scroll.vue";var At=kt.exports,Pt={};i.default.Native&&Object.assign(Pt,{demoVueNative:{name:"Vue.Native 能力",component:ke},demoAnimation:{name:"animation 组件",component:tt},demoModal:{name:"dialog 组件",component:nt},demoSwiper:{name:"swiper 组件",component:ct},demoPullHeaderFooter:{name:"pull-header/footer 组件",component:mt},demoWaterfall:{name:"waterfall 组件",component:Ct},demoNestedScroll:{name:"nested scroll 示例",component:At},demoSetNativeProps:{name:"setNativeProps",component:_e}});var jt=Pt,Et={name:"App",data:function(){return{featureList:Object.keys(fe).map((function(e){return{id:e,name:fe[e].name}})),nativeFeatureList:Object.keys(jt).map((function(e){return{id:e,name:jt[e].name}})),Vue:i.default}},beforeAppExit:function(){}},Tt=(a("./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&"),Object(c.a)(Et,n,[function(){var e=this.$createElement,t=this._self._c||e;return t("li",[t("p",{staticClass:"v4fb46863 feature-title"},[this._v("\n 浏览器组件 Demos\n ")])])}],!1,null,"4fb46863",null));Tt.options.__file="src/pages/menu.vue";var Lt=Tt.exports,Vt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"inputDemo",staticClass:"v66065e90 demo-remote-input",on:{click:e.blurInput}},[a("div",{staticClass:"v66065e90 tips-wrap"},e._l(e.tips,(function(t,o){return a("p",{key:o,staticClass:"v66065e90 tips-item",style:e.styles.tipText},[e._v("\n "+e._s(o+1)+". "+e._s(t)+"\n ")])})),0),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.bundleUrl,expression:"bundleUrl"}],ref:"input",staticClass:"v66065e90 remote-input",attrs:{"caret-color":"yellow",placeholder:"please input bundleUrl",multiple:!0,numberOfLines:"4"},domProps:{value:e.bundleUrl},on:{click:e.stopPropagation,input:function(t){t.target.composing||(e.bundleUrl=t.target.value)}}}),e._v(" "),a("div",{staticClass:"v66065e90 buttonContainer",style:e.styles.buttonContainer},[a("button",{staticClass:"v66065e90 input-button",style:e.styles.button,on:{click:e.openBundle}},[a("span",{staticClass:"v66065e90",style:e.styles.buttonText},[e._v("开始")])])])])};Vt._withStripped=!0;var It={data:function(){return{bundleUrl:"http://127.0.0.1:38989/index.bundle?debugUrl=ws%3A%2F%2F127.0.0.1%3A38989%2Fdebugger-proxy",tips:["安装远程调试依赖: npm i -D @hippy/debug-server-next@latest","修改 webpack 配置,添加远程调试地址","运行 npm run hippy:dev 开始编译,编译结束后打印出 bundleUrl 及调试首页地址","粘贴 bundleUrl 并点击开始按钮","访问调试首页开始远程调试,远程调试支持热更新(HMR)"],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"}}}},methods:{blurInput:function(e){e.stopPropagation(),this.$refs.input.blur()},openBundle:function(){this.bundleUrl&&i.default.Native.callNative("TestModule","remoteDebug",this.$root.$options.rootViewId,this.bundleUrl)},stopPropagation:function(e){e.stopPropagation()},clearTextContent:function(){this.bundleUrl=""},getChildNodes:function(e){return i.default.Native?e:Array.from(e)}}},Ot=(a("./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&"),Object(c.a)(It,Vt,[],!1,null,"66065e90",null));Ot.options.__file="src/pages/remote-debug.vue";var Yt=Ot.exports;t.a={disableAutoBack:!1,routes:[{path:"/",component:Lt},{path:"/remote-debug",component:Yt,name:"调试"}].concat(r()(Object.keys(fe).map((function(e){return{path:"/demo/".concat(e),name:fe[e].name,component:fe[e].component}}))),r()(Object.keys(jt).map((function(e){return{path:"/demo/".concat(e),name:jt[e].name,component:jt[e].component}}))))}},"./src/util.js":function(e,t,a){"use strict";var o;function r(e){o=e}function n(){return o}a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return n}))},0:function(e,t,a){a("./node_modules/@hippy/rejection-tracking-polyfill/index.js"),e.exports=a("./src/main-native.js")},"dll-reference hippyVueBase":function(e,t){e.exports=hippyVueBase}}); \ No newline at end of file diff --git a/framework/examples/ios-demo/res/vue2/vendor.ios.js b/framework/examples/ios-demo/res/vue2/vendor.ios.js index ee94a8cf8be..5aa4713fd9e 100644 --- a/framework/examples/ios-demo/res/vue2/vendor.ios.js +++ b/framework/examples/ios-demo/res/vue2/vendor.ios.js @@ -1,8 +1,8 @@ -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-native-components/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"AnimationComponent",(function(){return v})),n.d(t,"DialogComponent",(function(){return m})),n.d(t,"ListRefreshComponent",(function(){return b})),n.d(t,"PullsComponents",(function(){return _})),n.d(t,"SwiperComponent",(function(){return w})),n.d(t,"WaterfallComponent",(function(){return k})),n.d(t,"default",(function(){return S}));var r=["mode","valueType","startValue","toValue"],o=["transform"],i=["transform"];function a(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,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||c(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 s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(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 c(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.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)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function h(e){return(h="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 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-native-components/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"AnimationComponent",(function(){return v})),n.d(t,"DialogComponent",(function(){return m})),n.d(t,"ListRefreshComponent",(function(){return b})),n.d(t,"PullsComponents",(function(){return _})),n.d(t,"SwiperComponent",(function(){return w})),n.d(t,"WaterfallComponent",(function(){return k})),n.d(t,"default",(function(){return S}));var r=["mode","valueType","startValue","toValue"],o=["transform"],i=["transform"];function a(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,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||c(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 s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(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 c(e,t){if(e){if("string"==typeof e)return u(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)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0?t.Native.parseColor(n):n}function c(t){var o=t.mode,i=void 0===o?"timing":o,s=t.valueType,c=t.startValue,u=t.toValue,d=p(t,r),h=f(f({},n),d);void 0!==s&&(h.valueType=t.valueType),h.startValue=a(h.valueType,c),h.toValue=a(h.valueType,u),h.repeatCount=l(h.repeatCount),h.mode=i;var v=new e.Hippy.Animation(h),m=v.getId();return{animation:v,animationId:m}}function u(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=new e.Hippy.AnimationSet({children:t,repeatCount:n}),o=r.getId();return{animation:r,animationId:o}}function l(e){return"loop"===e?-1:e}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};return Object.keys(e).forEach((function(r){if(Array.isArray(e[r])){var o=e[r],i=o[o.length-1].repeatCount,a=u(o.map((function(e){var n=c(Object.assign({},e,{repeatCount:0})),r=n.animationId,o=n.animation;return Object.assign(t,{[r]:o}),{animationId:r,follow:!0}})),l(i)),s=a.animationId,f=a.animation;n[r]={animationId:s},Object.assign(t,{[s]:f})}else{var d=c(e[r]),p=d.animationId,h=d.animation;Object.assign(t,{[p]:h}),n[r]={animationId:p}}})),n}function v(e){var t=e.transform,n=p(e,o),r=Object.keys(n).map((function(t){return e[t].animationId}));if(Array.isArray(t)&&t.length>0){var i=[];t.forEach((function(e){return Object.keys(e).forEach((function(t){if(e[t]){var n=e[t].animationId;"number"==typeof n&&n%1==0&&i.push(n)}}))})),r=[].concat(s(r),i)}return r}t.component("Animation",{inheritAttrs:!1,props:{tag:{type:String,default:"div"},playing:{type:Boolean,default:!1},actions:{type:Object,required:!0},props:Object},data:function(){return{style:{},animationIds:[],animationIdsMap:{},animationEventMap:{}}},watch:{playing:function(e,t){!t&&e?this.start():t&&!e&&this.pause()},actions:function(){var e=this;this.destroy(),this.create(),setTimeout((function(){"function"==typeof e.$listeners.actionsDidUpdate&&e.$listeners.actionsDidUpdate()}))}},created:function(){this.animationEventMap={start:"animationstart",end:"animationend",repeat:"animationrepeat",cancel:"animationcancel"}},beforeMount:function(){this.create()},mounted:function(){var e=this;this.$props.playing&&setTimeout((function(){e.start()}),0)},beforeDestroy:function(){this.destroy()},methods:{create:function(){var e=this.$props.actions,t=e.transform,n=p(e,i);this.animationIdsMap={};var r=d(n,this.animationIdsMap);if(t){var o=d(t,this.animationIdsMap);r.transform=Object.keys(o).map((function(e){return{[e]:o[e]}}))}this.$alreadyStarted=!1,this.style=r},removeAnimationEvent:function(){var e=this;this.animationIds.forEach((function(t){var n=e.animationIdsMap[t];n&&Object.keys(e.animationEventMap).forEach((function(t){if("function"==typeof e.$listeners[t]){var r=e.animationEventMap[t];r&&n.removeEventListener(r)}}))}))},addAnimationEvent:function(){var e=this;this.animationIds.forEach((function(t){var n=e.animationIdsMap[t];n&&Object.keys(e.animationEventMap).forEach((function(t){if("function"==typeof e.$listeners[t]){var r=e.animationEventMap[t];r&&n.addEventListener(r,(function(){e.$emit(t)}))}}))}))},reset:function(){this.$alreadyStarted=!1},start:function(){var e=this;this.$alreadyStarted?this.resume():(this.animationIds=v(this.style),this.$alreadyStarted=!0,this.removeAnimationEvent(),this.addAnimationEvent(),this.animationIds.forEach((function(t){var n=e.animationIdsMap[t];null==n||n.start()})))},resume:function(){var e=this;v(this.style).forEach((function(t){var n=e.animationIdsMap[t];null==n||n.resume()}))},pause:function(){var e=this;this.$alreadyStarted&&v(this.style).forEach((function(t){var n=e.animationIdsMap[t];null==n||n.pause()}))},destroy:function(){var e=this;this.removeAnimationEvent(),this.$alreadyStarted=!1,v(this.style).forEach((function(t){var n=e.animationIdsMap[t];null==n||n.destroy()}))}},template:'\n \n \n \n '})}function m(e){e.registerElement("hi-dialog",{component:{name:"Modal",defaultNativeStyle:{position:"absolute"}}}),e.component("Dialog",{inheritAttrs:!1,props:{collapsable:{type:Boolean,default:!1},transparent:{type:Boolean,default:!0},immersionStatusBar:{type:Boolean,default:!0},autoHideStatusBar:{type:Boolean,default:!1},autoHideNavigationBar:{type:Boolean,default:!1}},render:function(e){var t,n=(t=this.$slots.default)?Array.isArray(t)?t[0]:t||void 0:null;n&&(n.data.attrs?Object.assign(n.data.attrs,{__modalFirstChild__:!0}):n.data.attrs={__modalFirstChild__:!0});var r=this.collapsable,o=this.transparent,i=this.immersionStatusBar,a=this.autoHideStatusBar,s=this.autoHideNavigationBar;return e("hi-dialog",{on:f({},this.$listeners),attrs:{collapsable:r,transparent:o,immersionStatusBar:i,autoHideStatusBar:a,autoHideNavigationBar:s}},this.$slots.default)}})}function y(e){return"string"!=typeof e?"":"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1))}function g(e){var t=this,n={};return e.forEach((function(e){if(Array.isArray(e)){var r=a(e,2),o=r[0],i=r[1];Object.prototype.hasOwnProperty.call(t.$listeners,o)&&(t["on".concat(y(i))]?n[e]=t["on".concat(y(i))]:n[e]=function(e){return t.$emit(o,e)})}else Object.prototype.hasOwnProperty.call(t.$listeners,e)&&(t["on".concat(y(e))]?n[e]=t["on".concat(y(e))]:n[e]=function(n){return t.$emit(e,n)})})),n}function b(e){e.registerElement("hi-ul-refresh-wrapper",{component:{name:"RefreshWrapper"}}),e.registerElement("hi-refresh-wrapper-item",{component:{name:"RefreshWrapperItemView"}}),e.component("UlRefreshWrapper",{inheritAttrs:!1,props:{bounceTime:{type:Number,defaultValue:100}},methods:{startRefresh:function(){e.Native.callUIFunction(this.$refs.refreshWrapper,"startRefresh",null)},refreshCompleted:function(){e.Native.callUIFunction(this.$refs.refreshWrapper,"refreshComplected",null)}},render:function(e){return e("hi-ul-refresh-wrapper",{on:g.call(this,["refresh"]),ref:"refreshWrapper"},this.$slots.default)}}),e.component("UlRefresh",{inheritAttrs:!1,template:"\n \n
\n \n
\n
\n "})}function w(e){e.registerElement("hi-swiper",{component:{name:"ViewPager",processEventData:function(e,t,n){switch(t){case"onPageSelected":e.currentSlide=n.position;break;case"onPageScroll":e.nextSlide=n.position,e.offset=n.offset;break;case"onPageScrollStateChanged":e.state=n.pageScrollState}return e}}}),e.registerElement("swiper-slide",{component:{name:"ViewPagerItem",defaultNativeStyle:{position:"absolute",top:0,right:0,bottom:0,left:0}}}),e.component("Swiper",{inheritAttrs:!1,props:{current:{type:Number,defaultValue:0},needAnimation:{type:Boolean,defaultValue:!0}},watch:{current:function(e){this.$props.needAnimation?this.setSlide(e):this.setSlideWithoutAnimation(e)}},beforeMount:function(){this.$initialSlide=this.$props.current},methods:{setSlide:function(t){e.Native.callUIFunction(this.$refs.swiper,"setPage",[t])},setSlideWithoutAnimation:function(t){e.Native.callUIFunction(this.$refs.swiper,"setPageWithoutAnimation",[t])}},render:function(e){return e("hi-swiper",{on:g.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]),ref:"swiper",attrs:{initialPage:this.$initialSlide}},this.$slots.default)}})}function _(e){var t=e.Native.callUIFunction;[["Header","header"],["Footer","footer"]].forEach((function(n){var r=a(n,2),o=r[0],i=r[1];e.registerElement("hi-pull-".concat(i),{component:{name:"Pull".concat(o,"View"),processEventData:function(e,t,n){switch(t){case"on".concat(o,"Released"):case"on".concat(o,"Pulling"):Object.assign(e,n)}return e}}}),e.component("pull-".concat(i),{methods:{["expandPull".concat(o)]:function(){t(this.$refs.instance,"expandPull".concat(o))},["collapsePull".concat(o)]:function(e){"Header"===o&&void 0!==e?t(this.$refs.instance,"collapsePull".concat(o,"WithOptions"),[e]):t(this.$refs.instance,"collapsePull".concat(o))},onLayout:function(e){this.$contentHeight=e.height},["on".concat(o,"Released")]:function(e){this.$emit("released",e)},["on".concat(o,"Pulling")]:function(e){e.contentOffset>this.$contentHeight?"pulling"!==this.$lastEvent&&(this.$lastEvent="pulling",this.$emit("pulling",e)):"idle"!==this.$lastEvent&&(this.$lastEvent="idle",this.$emit("idle",e))}},render:function(e){var t=this.$listeners,n=t.released,r=t.pulling,a=t.idle,s={layout:this.onLayout};return"function"==typeof n&&(s["".concat(i,"Released")]=this["on".concat(o,"Released")]),"function"!=typeof r&&"function"!=typeof a||(s["".concat(i,"Pulling")]=this["on".concat(o,"Pulling")]),e("hi-pull-".concat(i),{on:s,ref:"instance"},this.$slots.default)}})}))}function k(e){e.registerElement("hi-waterfall",{component:{name:"WaterfallView",processEventData:function(e,t,n){switch(t){case"onExposureReport":e.exposureInfo=n.exposureInfo;break;case"onScroll":var r=n.startEdgePos,o=n.endEdgePos,i=n.firstVisibleRowIndex,a=n.lastVisibleRowIndex,s=n.visibleRowFrames;Object.assign(e,{startEdgePos:r,endEdgePos:o,firstVisibleRowIndex:i,lastVisibleRowIndex:a,visibleRowFrames:s})}return e}}}),e.registerElement("hi-waterfall-item",{component:{name:"WaterfallItem"}}),e.component("Waterfall",{inheritAttrs:!1,props:{numberOfColumns:{type:Number,default:2},contentInset:{type:Object,default:function(){return{top:0,left:0,bottom:0,right:0}}},columnSpacing:{type:Number,default:0},interItemSpacing:{type:Number,default:0},preloadItemNumber:{type:Number,default:0},containBannerView:{type:Boolean,default:!1},containPullHeader:{type:Boolean,default:!1},containPullFooter:{type:Boolean,default:!1}},methods:{call:function(t,n){e.Native.callUIFunction(this.$refs.waterfall,t,n)},startRefresh:function(){this.call("startRefresh")},startRefreshWithType:function(e){this.call("startRefreshWithType",[e])},callExposureReport:function(){this.call("callExposureReport",[])},scrollToIndex:function(e){var t=e.index,n=void 0===t?0:t,r=e.animated,o=void 0===r||r;"number"==typeof n&&"boolean"==typeof o&&this.call("scrollToIndex",[n,n,o])},scrollToContentOffset:function(e){var t=e.xOffset,n=void 0===t?0:t,r=e.yOffset,o=void 0===r?0:r,i=e.animated,a=void 0===i||i;"number"==typeof n&&"number"==typeof o&&"boolean"==typeof a&&this.call("scrollToContentOffset",[n,o,a])},startLoadMore:function(){this.call("startLoadMore")}},render:function(e){return e("hi-waterfall",{on:g.call(this,["headerReleased","headerPulling","endReached","exposureReport","initialListReady","scroll"]),ref:"waterfall",attrs:{numberOfColumns:this.numberOfColumns,contentInset:this.contentInset,columnSpacing:this.columnSpacing,interItemSpacing:this.interItemSpacing,preloadItemNumber:this.preloadItemNumber,containBannerView:this.containBannerView,containPullHeader:this.containPullHeader,containPullFooter:this.containPullFooter}},this.$slots.default)}}),e.component("WaterfallItem",{inheritAttrs:!1,props:{type:{type:[String,Number],default:""}},render:function(e){return e("hi-waterfall-item",{on:f({},this.$listeners),attrs:{type:this.type}},this.$slots.default)}})}var S={install:function(e){v(e),m(e),b(e),w(e),_(e),k(e)}}}.call(this,n("./node_modules/webpack/buildin/global.js"))},"../../packages/hippy-vue/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e,r,o){function i(e,t,n){return(i=p()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&l(o,n.prototype),o}).apply(null,arguments)}function a(){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=s(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function s(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}function c(){c=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var i=new RegExp(e,r);return t.set(i,o||t.get(e)),l(i,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=$(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,a)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},c.apply(this,arguments)}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&&l(e,t)}function l(e,t){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=p();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){if(t&&("object"===$(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)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0?t.Native.parseColor(n):n}function c(t){var o=t.mode,i=void 0===o?"timing":o,s=t.valueType,c=t.startValue,u=t.toValue,d=p(t,r),h=f(f({},n),d);void 0!==s&&(h.valueType=t.valueType),h.startValue=a(h.valueType,c),h.toValue=a(h.valueType,u),h.repeatCount=l(h.repeatCount),h.mode=i;var v=new e.Hippy.Animation(h),m=v.getId();return{animation:v,animationId:m}}function u(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=new e.Hippy.AnimationSet({children:t,repeatCount:n}),o=r.getId();return{animation:r,animationId:o}}function l(e){return"loop"===e?-1:e}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};return Object.keys(e).forEach((function(r){if(Array.isArray(e[r])){var o=e[r],i=o[o.length-1].repeatCount,a=u(o.map((function(e){var n=c(Object.assign({},e,{repeatCount:0})),r=n.animationId,o=n.animation;return Object.assign(t,{[r]:o}),{animationId:r,follow:!0}})),l(i)),s=a.animationId,f=a.animation;n[r]={animationId:s},Object.assign(t,{[s]:f})}else{var d=c(e[r]),p=d.animationId,h=d.animation;Object.assign(t,{[p]:h}),n[r]={animationId:p}}})),n}function v(e){var t=e.transform,n=p(e,o),r=Object.keys(n).map((function(t){return e[t].animationId}));if(Array.isArray(t)&&t.length>0){var i=[];t.forEach((function(e){return Object.keys(e).forEach((function(t){if(e[t]){var n=e[t].animationId;"number"==typeof n&&n%1==0&&i.push(n)}}))})),r=[].concat(s(r),i)}return r}t.component("Animation",{inheritAttrs:!1,props:{tag:{type:String,default:"div"},playing:{type:Boolean,default:!1},actions:{type:Object,required:!0},props:Object},data:function(){return{style:{},animationIds:[],animationIdsMap:{},animationEventMap:{}}},watch:{playing:function(e,t){!t&&e?this.start():t&&!e&&this.pause()},actions:function(){var e=this;this.destroy(),this.create(),setTimeout((function(){"function"==typeof e.$listeners.actionsDidUpdate&&e.$listeners.actionsDidUpdate()}))}},created:function(){this.animationEventMap={start:"animationstart",end:"animationend",repeat:"animationrepeat",cancel:"animationcancel"}},beforeMount:function(){this.create()},mounted:function(){var e=this;this.$props.playing&&setTimeout((function(){e.start()}),0)},beforeDestroy:function(){this.destroy()},methods:{create:function(){var e=this.$props.actions,t=e.transform,n=p(e,i);this.animationIdsMap={};var r=d(n,this.animationIdsMap);if(t){var o=d(t,this.animationIdsMap);r.transform=Object.keys(o).map((function(e){return{[e]:o[e]}}))}this.$alreadyStarted=!1,this.style=r},removeAnimationEvent:function(){var e=this;this.animationIds.forEach((function(t){var n=e.animationIdsMap[t];n&&Object.keys(e.animationEventMap).forEach((function(t){if("function"==typeof e.$listeners[t]){var r=e.animationEventMap[t];r&&n.removeEventListener(r)}}))}))},addAnimationEvent:function(){var e=this;this.animationIds.forEach((function(t){var n=e.animationIdsMap[t];n&&Object.keys(e.animationEventMap).forEach((function(t){if("function"==typeof e.$listeners[t]){var r=e.animationEventMap[t];r&&n.addEventListener(r,(function(){e.$emit(t)}))}}))}))},reset:function(){this.$alreadyStarted=!1},start:function(){var e=this;this.$alreadyStarted?this.resume():(this.animationIds=v(this.style),this.$alreadyStarted=!0,this.removeAnimationEvent(),this.addAnimationEvent(),this.animationIds.forEach((function(t){var n=e.animationIdsMap[t];null==n||n.start()})))},resume:function(){var e=this;v(this.style).forEach((function(t){var n=e.animationIdsMap[t];null==n||n.resume()}))},pause:function(){var e=this;this.$alreadyStarted&&v(this.style).forEach((function(t){var n=e.animationIdsMap[t];null==n||n.pause()}))},destroy:function(){var e=this;this.removeAnimationEvent(),this.$alreadyStarted=!1,v(this.style).forEach((function(t){var n=e.animationIdsMap[t];null==n||n.destroy()}))}},template:'\n \n \n \n '})}function m(e){e.registerElement("hi-dialog",{component:{name:"Modal",defaultNativeStyle:{position:"absolute"}}}),e.component("Dialog",{inheritAttrs:!1,props:{collapsable:{type:Boolean,default:!1},transparent:{type:Boolean,default:!0},immersionStatusBar:{type:Boolean,default:!0},autoHideStatusBar:{type:Boolean,default:!1},autoHideNavigationBar:{type:Boolean,default:!1}},render:function(e){var t,n=(t=this.$slots.default)?Array.isArray(t)?t[0]:t||void 0:null;n&&(n.data.attrs?Object.assign(n.data.attrs,{__modalFirstChild__:!0}):n.data.attrs={__modalFirstChild__:!0});var r=this.collapsable,o=this.transparent,i=this.immersionStatusBar,a=this.autoHideStatusBar,s=this.autoHideNavigationBar;return e("hi-dialog",{on:f({},this.$listeners),attrs:{collapsable:r,transparent:o,immersionStatusBar:i,autoHideStatusBar:a,autoHideNavigationBar:s}},this.$slots.default)}})}function y(e){return"string"!=typeof e?"":"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1))}function g(e){var t=this,n={};return e.forEach((function(e){if(Array.isArray(e)){var r=a(e,2),o=r[0],i=r[1];Object.prototype.hasOwnProperty.call(t.$listeners,o)&&(t["on".concat(y(i))]?n[e]=t["on".concat(y(i))]:n[e]=function(e){return t.$emit(o,e)})}else Object.prototype.hasOwnProperty.call(t.$listeners,e)&&(t["on".concat(y(e))]?n[e]=t["on".concat(y(e))]:n[e]=function(n){return t.$emit(e,n)})})),n}function b(e){e.registerElement("hi-ul-refresh-wrapper",{component:{name:"RefreshWrapper",processEventData:function(e,t,n){switch(t){case"onScroll":e.offsetX=n.contentOffset.x,e.offsetY=n.contentOffset.y}return e}}}),e.registerElement("hi-refresh-wrapper-item",{component:{name:"RefreshWrapperItemView"}}),e.component("UlRefreshWrapper",{inheritAttrs:!1,props:{bounceTime:{type:Number,defaultValue:100}},methods:{startRefresh:function(){e.Native.callUIFunction(this.$refs.refreshWrapper,"startRefresh",null)},refreshCompleted:function(){e.Native.callUIFunction(this.$refs.refreshWrapper,"refreshComplected",null)}},render:function(e){return e("hi-ul-refresh-wrapper",{on:g.call(this,["refresh","scroll"]),ref:"refreshWrapper"},this.$slots.default)}}),e.component("UlRefresh",{inheritAttrs:!1,template:"\n \n
\n \n
\n
\n "})}function w(e){e.registerElement("hi-swiper",{component:{name:"ViewPager",processEventData:function(e,t,n){switch(t){case"onPageSelected":e.currentSlide=n.position;break;case"onPageScroll":e.nextSlide=n.position,e.offset=n.offset;break;case"onPageScrollStateChanged":e.state=n.pageScrollState}return e}}}),e.registerElement("swiper-slide",{component:{name:"ViewPagerItem",defaultNativeStyle:{position:"absolute",top:0,right:0,bottom:0,left:0}}}),e.component("Swiper",{inheritAttrs:!1,props:{current:{type:Number,defaultValue:0},needAnimation:{type:Boolean,defaultValue:!0}},watch:{current:function(e){this.$props.needAnimation?this.setSlide(e):this.setSlideWithoutAnimation(e)}},beforeMount:function(){this.$initialSlide=this.$props.current},methods:{setSlide:function(t){e.Native.callUIFunction(this.$refs.swiper,"setPage",[t])},setSlideWithoutAnimation:function(t){e.Native.callUIFunction(this.$refs.swiper,"setPageWithoutAnimation",[t])}},render:function(e){return e("hi-swiper",{on:g.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]),ref:"swiper",attrs:{initialPage:this.$initialSlide}},this.$slots.default)}})}function _(e){var t=e.Native.callUIFunction;[["Header","header"],["Footer","footer"]].forEach((function(n){var r=a(n,2),o=r[0],i=r[1];e.registerElement("hi-pull-".concat(i),{component:{name:"Pull".concat(o,"View"),processEventData:function(e,t,n){switch(t){case"on".concat(o,"Released"):case"on".concat(o,"Pulling"):Object.assign(e,n)}return e}}}),e.component("pull-".concat(i),{methods:{["expandPull".concat(o)]:function(){t(this.$refs.instance,"expandPull".concat(o))},["collapsePull".concat(o)]:function(e){"Header"===o&&void 0!==e?t(this.$refs.instance,"collapsePull".concat(o,"WithOptions"),[e]):t(this.$refs.instance,"collapsePull".concat(o))},onLayout:function(e){this.$contentHeight=e.height},["on".concat(o,"Released")]:function(e){this.$emit("released",e)},["on".concat(o,"Pulling")]:function(e){e.contentOffset>this.$contentHeight?"pulling"!==this.$lastEvent&&(this.$lastEvent="pulling",this.$emit("pulling",e)):"idle"!==this.$lastEvent&&(this.$lastEvent="idle",this.$emit("idle",e))}},render:function(e){var t=this.$listeners,n=t.released,r=t.pulling,a=t.idle,s={layout:this.onLayout};return"function"==typeof n&&(s["".concat(i,"Released")]=this["on".concat(o,"Released")]),"function"!=typeof r&&"function"!=typeof a||(s["".concat(i,"Pulling")]=this["on".concat(o,"Pulling")]),e("hi-pull-".concat(i),{on:s,ref:"instance"},this.$slots.default)}})}))}function k(e){e.registerElement("hi-waterfall",{component:{name:"WaterfallView",processEventData:function(e,t,n){switch(t){case"onExposureReport":e.exposureInfo=n.exposureInfo;break;case"onScroll":var r=n.startEdgePos,o=n.endEdgePos,i=n.firstVisibleRowIndex,a=n.lastVisibleRowIndex,s=n.visibleRowFrames;Object.assign(e,{startEdgePos:r,endEdgePos:o,firstVisibleRowIndex:i,lastVisibleRowIndex:a,visibleRowFrames:s})}return e}}}),e.registerElement("hi-waterfall-item",{component:{name:"WaterfallItem"}}),e.component("Waterfall",{inheritAttrs:!1,props:{numberOfColumns:{type:Number,default:2},contentInset:{type:Object,default:function(){return{top:0,left:0,bottom:0,right:0}}},columnSpacing:{type:Number,default:0},interItemSpacing:{type:Number,default:0},preloadItemNumber:{type:Number,default:0},containBannerView:{type:Boolean,default:!1},containPullHeader:{type:Boolean,default:!1},containPullFooter:{type:Boolean,default:!1}},methods:{call:function(t,n){e.Native.callUIFunction(this.$refs.waterfall,t,n)},startRefresh:function(){this.call("startRefresh")},startRefreshWithType:function(e){this.call("startRefreshWithType",[e])},callExposureReport:function(){this.call("callExposureReport",[])},scrollToIndex:function(e){var t=e.index,n=void 0===t?0:t,r=e.animated,o=void 0===r||r;"number"==typeof n&&"boolean"==typeof o&&this.call("scrollToIndex",[n,n,o])},scrollToContentOffset:function(e){var t=e.xOffset,n=void 0===t?0:t,r=e.yOffset,o=void 0===r?0:r,i=e.animated,a=void 0===i||i;"number"==typeof n&&"number"==typeof o&&"boolean"==typeof a&&this.call("scrollToContentOffset",[n,o,a])},startLoadMore:function(){this.call("startLoadMore")}},render:function(e){return e("hi-waterfall",{on:g.call(this,["headerReleased","headerPulling","endReached","exposureReport","initialListReady","scroll"]),ref:"waterfall",attrs:{numberOfColumns:this.numberOfColumns,contentInset:this.contentInset,columnSpacing:this.columnSpacing,interItemSpacing:this.interItemSpacing,preloadItemNumber:this.preloadItemNumber,containBannerView:this.containBannerView,containPullHeader:this.containPullHeader,containPullFooter:this.containPullFooter}},this.$slots.default)}}),e.component("WaterfallItem",{inheritAttrs:!1,props:{type:{type:[String,Number],default:""}},render:function(e){return e("hi-waterfall-item",{on:f({},this.$listeners),attrs:{type:this.type}},this.$slots.default)}})}var S={install:function(e){v(e),m(e),b(e),w(e),_(e),k(e)}}}.call(this,n("./node_modules/webpack/buildin/global.js"))},"../../packages/hippy-vue/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e,r,o){function i(e,t,n,r){var o=a(f(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}function a(){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=s(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(null,arguments)}function s(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}function c(){c=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var i=RegExp(e,r);return t.set(i,o||t.get(e)),p(i,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=O(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,a)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},c.apply(this,arguments)}function u(e,t,n){return t=f(t),function(e,t){if(t&&("object"==O(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,l()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(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&&p(e,t)}function p(e,t){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0&&Math.floor(t)===t&&isFinite(e)}function D(e){return E(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function R(e){return null==e?"":Array.isArray(e)||j(e)&&e.toString===P?JSON.stringify(e,null,2):String(e)}function F(e){var t=parseFloat(e);return isNaN(t)?e:t}function V(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o-1)return e.splice(n,1)}}var W=Object.prototype.hasOwnProperty;function z(e,t){return W.call(e,t)}function Y(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var K=/-(\w)/g,G=Y((function(e){return e.replace(K,(function(e,t){return t?t.toUpperCase():""}))})),q=Y((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),X=/\B([A-Z])/g,J=Y((function(e){return e.replace(X,"-$1").toLowerCase()}));var Z=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function Q(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function ee(e,t){for(var n in t)e[n]=t[n];return e}function te(e,t,n){}var ne=function(e,t,n){return!1},re=function(e){return e};function oe(e,t){if(e===t)return!0;var n=T(e),r=T(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var o=Array.isArray(e),i=Array.isArray(t);if(o&&i)return e.length===t.length&&e.every((function(e,n){return oe(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(o||i)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return oe(e[n],t[n])}))}catch(e){return!1}}function ie(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=new je;return t.text=e,t.isComment=!0,t};function Me(e){return new je(void 0,void 0,void 0,String(e))}function De(e){var t=new je(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var Re=Array.prototype,Fe=Object.create(Re);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){var t=Re[e];de(Fe,e,(function(){for(var n=arguments.length,r=new Array(n),o=0;o-1)if(i&&!z(o,"default"))a=!1;else if(""===a||a===J(e)){var c=st(String,o.type);(c<0||s0&&(Et((o=e(o,"".concat(n||"","_").concat(r)))[0])&&Et(a)&&(s[i]=Me(a.text+o[0].text),o.shift()),s.push.apply(s,o)):C(o)?Et(a)?s[i]=Me(a.text+o):""!==o&&s.push(Me(o)):Et(o)&&Et(a)?s[i]=Me(a.text+o.text):(I(t._isVList)&&E(o.tag)&&N(o.key)&&E(n)&&(o.key="__vlist".concat(n,"_").concat(r,"__")),s.push(o)));return s}(e):void 0}function Et(e){return E(e)&&E(e.text)&&!1===e.isComment}function It(e,t){if(e){for(var n=Object.create(null),r=Ae?Reflect.ownKeys(e):Object.keys(e),o=0;o0,i=e?!!e.$stable:!o,a=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(i&&n&&n!==A&&a===n.$key&&!o&&!n.$hasNormal)return n;for(var s in r={},e)e[s]&&"$"!==s[0]&&(r[s]=Lt(t,s,e[s]))}else r={};for(var c in t)c in r||(r[c]=Mt(t,c));return e&&Object.isExtensible(e)&&(e._normalized=r),de(r,"$stable",i),de(r,"$key",a),de(r,"$hasNormal",o),r}function Lt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({}),t=(e=e&&"object"===$(e)&&!Array.isArray(e)?[e]:Nt(e))&&e[0];return e&&(!t||1===e.length&&t.isComment&&!Pt(t))?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function Mt(e,t){return function(){return e[t]}}function Dt(e,t){var n,r,o,i,a;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,o=e.length;rdocument.createEvent("Event").timeStamp&&(xn=function(){return On.now()})}function $n(){var e,t;for(xn(),kn=!0,gn.sort((function(e,t){return e.id-t.id})),Sn=0;SnSn&&gn[n].id>e.id;)n--;gn.splice(n+1,0,e)}else gn.push(e);_n||(_n=!0,wt($n))}}(this)}},{key:"run",value:function(){if(this.active){var e=this.get();if(e!==this.value||T(e)||this.deep){var t=this.value;if(this.value=e,this.user){var n='callback for watcher "'.concat(this.expression,'"');ut(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}}},{key:"evaluate",value:function(){this.value=this.get(),this.dirty=!1}},{key:"depend",value:function(){for(var e=this.deps.length;e--;)this.deps[e].depend()}},{key:"teardown",value:function(){if(this.active){this.vm._isBeingDestroyed||H(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}}}]),e}(),En={enumerable:!0,configurable:!0,get:te,set:te};function In(e,t,n){En.get=function(){return this[t][n]},En.set=function(e){this[t][n]=e},Object.defineProperty(e,n,En)}function Cn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},o=e.$options._propKeys=[];e.$parent&&Ue(!1);var i=function(i){o.push(i);var a=rt(i,t,n,e);ze(r,i,a),i in e||In(e,"_props",i)};for(var a in t)i(a);Ue(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?te:Z(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;j(t=e._data="function"==typeof t?function(e,t){Te();try{return e.call(t,t)}catch(e){return ct(e,t,"data()"),{}}finally{Pe()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,o=(e.$options.methods,n.length);for(;o--;){var i=n[o];0,r&&z(r,i)||fe(i)||In(e,"_data",i)}We(t,!0)}(e):We(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null);for(var r in t){var o=t[r],i="function"==typeof o?o:o.get;0,n[r]=new Nn(e,i||te,te,Tn),r in e||Pn(e,r,o)}}(e,t.computed),t.watch&&t.watch!==_e&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var o=0;o-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!L(e)&&e.test(t)}function Un(e,t){var n=e.cache,r=e.keys,o=e._vnode;for(var i in n){var a=n[i];if(a){var s=a.name;s&&!t(s)&&Hn(n,i,r,o)}}}function Hn(e,t,n,r){var o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,H(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=Mn++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=tt(Dn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&pn(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,r=n&&n.context;e.$slots=Ct(t._renderChildren,r),e.$scopedSlots=A,e._c=function(t,n,r,o){return an(e,t,n,r,o,!1)},e.$createElement=function(t,n,r,o){return an(e,t,n,r,o,!0)};var o=n&&n.data;ze(e,"$attrs",o&&o.attrs||A,null,!0),ze(e,"$listeners",t._parentListeners||A,null,!0)}(t),yn(t,"beforeCreate"),function(e){var t=It(e.$options.inject,e);t&&(Ue(!1),Object.keys(t).forEach((function(n){ze(e,n,t[n])})),Ue(!0))}(t),Cn(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),yn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(Rn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Ye,e.prototype.$delete=Ke,e.prototype.$watch=function(e,t,n){if(j(t))return Ln(this,e,t,n);(n=n||{}).user=!0;var r=new Nn(this,e,t,n);if(n.immediate){var o='callback for immediate watcher "'.concat(r.expression,'"');Te(),ut(t,this,[r.value],this,o),Pe()}return function(){r.teardown()}}}(Rn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var o=0,i=e.length;o1?Q(n):n;for(var r=Q(arguments,1),o='event handler for "'.concat(e,'"'),i=0,a=n.length;iparseInt(this.max)&&Hn(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Hn(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){Un(e,(function(e){return Bn(t,e)}))})),this.$watch("exclude",(function(t){Un(e,(function(e){return!Bn(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=function(e){if(Array.isArray(e))for(var t=0;t-1)return this;var n=Q(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=tt(this.options,e),this}}(e),Fn(e),function(e){se.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&j(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(Rn),Object.defineProperty(Rn.prototype,"$isServer",{get:Se}),Object.defineProperty(Rn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Rn,"FunctionalRenderContext",{value:Zt}),Rn.version="2.6.14",V("style,class");var Yn=V("input,textarea,option,select,progress");function Kn(e){for(var t=e.data,n=e,r=e;E(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Gn(r.data,t));for(;E(n=n.parent);)n&&n.data&&(t=Gn(t,n.data));return function(e,t){if(E(e)||E(t))return qn(e,Xn(t));return""}(t.staticClass,t.class)}function Gn(e,t){return{staticClass:qn(e.staticClass,t.staticClass),class:E(e.class)?[e.class,t.class]:t.class}}function qn(e,t){return e?t?e+" "+t:e:t||""}function Xn(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,o=e.length;r=0&&" "===(v=e.charAt(h));h--);v&&er.test(v)||(u=!0)}}else void 0===o?(p=r+1,o=e.slice(0,r).trim()):m();function m(){(i||(i=[])).push(e.slice(p,r).trim()),p=r+1}if(void 0===o?o=e.slice(0,r).trim():0!==p&&m(),i)for(r=0;r1&&(t[r[0].trim()]=r[1].trim())}})),t}));var wr={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=vr(e,"style");n&&(e.staticStyle=JSON.stringify(br(n)));var r=hr(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:".concat(e.staticStyle,",")),e.styleBinding&&(t+="style:(".concat(e.styleBinding,"),")),t}};var _r,kr,Sr,xr,Or,$r,Ar=function(e){return e},Nr=V("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),Er=V("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Ir=V("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Cr=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Tr=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Pr="[a-zA-Z_][\\-\\.0-9_a-zA-Z".concat(le.source,"]*"),jr="((?:".concat(Pr,"\\:)?").concat(Pr,")"),Lr=new RegExp("^<".concat(jr)),Mr=/^\s*(\/?)>/,Dr=new RegExp("^<\\/".concat(jr,"[^>]*>")),Rr=/^]+>/i,Fr=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Wr=/&(?:lt|gt|quot|amp|#39);/g,zr=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Yr=V("pre,textarea",!0),Kr=function(e,t){return e&&Yr(e)&&"\n"===t[0]};function Gr(e,t){var n=t?zr:Wr;return e.replace(n,(function(e){return Hr[e]}))}function qr(e,t){for(var n,r,o,i=[],a=t.expectHTML,s=t.isUnaryTag||ne,c=t.canBeLeftOpenTag||ne,u=0,l=function(){if(n=e,r&&Br(r)){var o=0,l=r.toLowerCase(),p=Ur[l]||(Ur[l]=new RegExp("([\\s\\S]*?)(]*>)","i")),h=e.replace(p,(function(e,n,r){return o=r.length,Br(l)||"noscript"===l||(n=n.replace(//g,"$1").replace(//g,"$1")),Kr(l,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));u+=e.length-h.length,e=h,d(l,u-o,u)}else{var v,m,y,g=e.indexOf("<");if(0===g){if(Fr.test(e)){var b=e.indexOf("--\x3e");if(b>=0)return t.shouldKeepComment&&t.comment(e.substring(4,b),u,u+b+3),f(b+3),0}if(Vr.test(e)){var w=e.indexOf("]>");if(w>=0)return f(w+2),0}var _=e.match(Rr);if(_)return f(_[0].length),0;var k=e.match(Dr);if(k){var S=u;return f(k[0].length),d(k[1],S,u),0}var x=function(){var t=e.match(Lr);if(t){var n,r,o={tagName:t[1],attrs:[],start:u};for(f(t[0].length);!(n=e.match(Mr))&&(r=e.match(Tr)||e.match(Cr));)r.start=u,f(r[0].length),r.end=u,o.attrs.push(r);if(n)return o.unarySlash=n[1],f(n[0].length),o.end=u,o}}();if(x)return function(e){var n=e.tagName,o=e.unarySlash;a&&("p"===r&&Ir(n)&&d(r),c(n)&&r===n&&d(n));for(var u=s(n)||!!o,l=e.attrs.length,f=new Array(l),p=0;p=0){for(m=e.slice(g);!(Dr.test(m)||Lr.test(m)||Fr.test(m)||Vr.test(m)||(y=m.indexOf("<",1))<0);)g+=y,m=e.slice(g);v=e.substring(0,g)}g<0&&(v=e),v&&f(v.length),t.chars&&v&&t.chars(v,u-v.length,u)}if(e===n)return t.chars&&t.chars(e),1};e&&(0===(o=l())||1!==o););function f(t){u+=t,e=e.substring(t)}function d(e,n,o){var a,s;if(null==n&&(n=u),null==o&&(o=u),e)for(s=e.toLowerCase(),a=i.length-1;a>=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var c=i.length-1;c>=a;c--)t.end&&t.end(i[c].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}d()}function Xr(e,t,n){var r=n||{},o=r.number,i="$$v";r.trim&&(i="(typeof ".concat("$$v"," === 'string'")+"? ".concat("$$v",".trim()")+": ".concat("$$v",")")),o&&(i="_n(".concat(i,")"));var a=Jr(t,i);e.model={value:"(".concat(t,")"),expression:JSON.stringify(t),callback:"function (".concat("$$v",") {").concat(a,"}")}}function Jr(e,t){var n=function(e){if(e=e.trim(),_r=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<_r-1)return(xr=e.lastIndexOf("."))>-1?{exp:e.slice(0,xr),key:'"'+e.slice(xr+1)+'"'}:{exp:e,key:null};kr=e,xr=Or=$r=0;for(;!Qr();)eo(Sr=Zr())?no(Sr):91===Sr&&to(Sr);return{exp:e.slice(0,Or),key:e.slice(Or+1,$r)}}(e);return null===n.key?"".concat(e,"=").concat(t):"$set(".concat(n.exp,", ").concat(n.key,", ").concat(t,")")}function Zr(){return kr.charCodeAt(++xr)}function Qr(){return xr>=_r}function eo(e){return 34===e||39===e}function to(e){var t=1;for(Or=xr;!Qr();)if(eo(e=Zr()))no(e);else if(91===e&&t++,93===e&&t--,0===t){$r=xr;break}}function no(e){for(var t=e;!Qr()&&(e=Zr())!==t;);}var ro,oo,io,ao,so,co,uo,lo,fo=/^@|^v-on:/,po=o.env.VBIND_PROP_SHORTHAND?/^v-|^@|^:|^\.|^#/:/^v-|^@|^:|^#/,ho=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,vo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,mo=/^\(|\)$/g,yo=/^\[.*\]$/,go=/:(.*)$/,bo=/^:|^\.|^v-bind:/,wo=/^\./,_o=/\.[^.\]]+(?=[^\]]*$)/g,ko=/^v-slot(:|$)|^#/,So=/[\r\n]/,xo=/[ \f\t\r\n]+/g,Oo=Y(Ar);function $o(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:Po(t),rawAttrsMap:{},parent:n,children:[]}}function Ao(e,t){ro=t.warn||ar,co=t.isPreTag||ne,uo=t.mustUseProp||ne,lo=t.getTagNamespace||ne;var n=t.isReservedTag||ne;(function(e){return!(!(e.component||e.attrsMap[":is"]||e.attrsMap["v-bind:is"])&&(e.attrsMap.is?n(e.attrsMap.is):n(e.tag)))}),io=sr(t.modules,"transformNode"),ao=sr(t.modules,"preTransformNode"),so=sr(t.modules,"postTransformNode"),oo=t.delimiters;var r,o,i=[],a=!1!==t.preserveWhitespace,s=t.whitespace,c=!1,u=!1;function l(e){if(f(e),c||e.processed||(e=No(e,t)),i.length||e===r||r.if&&(e.elseif||e.else)&&Io(r,{exp:e.elseif,block:e}),o&&!e.forbidden)if(e.elseif||e.else)a=e,(s=function(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}(o.children))&&s.if&&Io(s,{exp:a.elseif,block:a});else{if(e.slotScope){var n=e.slotTarget||'"default"';(o.scopedSlots||(o.scopedSlots={}))[n]=e}o.children.push(e),e.parent=o}var a,s;e.children=e.children.filter((function(e){return!e.slotScope})),f(e),e.pre&&(c=!1),co(e.tag)&&(u=!1);for(var l=0;lc&&(s.push(i=e.slice(c,o)),a.push(JSON.stringify(i)));var u=tr(r[1].trim());a.push("_s(".concat(u,")")),s.push({"@binding":u}),c=o+r[0].length}return c-1")+("true"===i?":(".concat(t,")"):":_q(".concat(t,",").concat(i,")"))),pr(e,"change","var $$a=".concat(t,",")+"$$el=$event.target,"+"$$c=$$el.checked?(".concat(i,"):(").concat(a,");")+"if(Array.isArray($$a)){"+"var $$v=".concat(r?"_n("+o+")":o,",")+"$$i=_i($$a,$$v);"+"if($$el.checked){$$i<0&&(".concat(Jr(t,"$$a.concat([$$v])"),")}")+"else{$$i>-1&&(".concat(Jr(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))"),")}")+"}else{".concat(Jr(t,"$$c"),"}"),null,!0)}(e,r,o);else if("input"===i&&"radio"===a)!function(e,t,n){var r=n&&n.number,o=hr(e,"value")||"null";o=r?"_n(".concat(o,")"):o,cr(e,"checked","_q(".concat(t,",").concat(o,")")),pr(e,"change",Jr(t,o),null,!0)}(e,r,o);else if("input"===i||"textarea"===i)!function(e,t,n){var r=e.attrsMap.type;0;var o=n||{},i=o.lazy,a=o.number,s=o.trim,c=!i&&"range"!==r,u=i?"change":"range"===r?"__r":"input",l="$event.target.value";s&&(l="$event.target.value.trim()");a&&(l="_n(".concat(l,")"));var f=Jr(t,l);c&&(f="if($event.target.composing)return;".concat(f));cr(e,"value","(".concat(t,")")),pr(e,u,f,null,!0),(s||a)&&pr(e,"blur","$forceUpdate()")}(e,r,o);else{if(!ue.isReservedTag(i))return Xr(e,r,o),!1}return!0},text:function(e,t){t.value&&cr(e,"textContent","_s(".concat(t.value,")"),t)},html:function(e,t){t.value&&cr(e,"innerHTML","_s(".concat(t.value,")"),t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:Nr,mustUseProp:function(e,t,n){return"value"===n&&Yn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},canBeLeftOpenTag:Er,isReservedTag:function(e){return Jn(e)||Zn(e)},getTagNamespace:function(e){return Zn(e)?"svg":"math"===e?"math":void 0},staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(Do)},Bo=Y((function(e){return V("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function Uo(e,t){e&&(Ro=Bo(t.staticKeys||""),Fo=t.isReservedTag||ne,function e(t){if(t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||B(e.tag)||!Fo(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(Ro)))}(t),1===t.type){if(!Fo(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n|^function(?:\s+[\w$]+)?\s*\(/,Wo=/\([^)]*?\);*$/,zo=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Yo={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Ko={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Go=function(e){return"if(".concat(e,")return null;")},qo={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Go("$event.target !== $event.currentTarget"),ctrl:Go("!$event.ctrlKey"),shift:Go("!$event.shiftKey"),alt:Go("!$event.altKey"),meta:Go("!$event.metaKey"),left:Go("'button' in $event && $event.button !== 0"),middle:Go("'button' in $event && $event.button !== 1"),right:Go("'button' in $event && $event.button !== 2")};function Xo(e,t){var n=t?"nativeOn:":"on:",r="",o="";for(var i in e){var a=Jo(e[i]);e[i]&&e[i].dynamic?o+="".concat(i,",").concat(a,","):r+='"'.concat(i,'":').concat(a,",")}return r="{".concat(r.slice(0,-1),"}"),o?n+"_d(".concat(r,",[").concat(o.slice(0,-1),"])"):n+r}function Jo(e){if(!e)return"function(){}";if(Array.isArray(e))return"[".concat(e.map((function(e){return Jo(e)})).join(","),"]");var t=zo.test(e.value),n=Ho.test(e.value),r=zo.test(e.value.replace(Wo,""));if(e.modifiers){var o="",i="",a=[],s=function(){if(qo[c])i+=qo[c],Yo[c]&&a.push(c);else if("exact"===c){var t=e.modifiers;i+=Go(["ctrl","shift","alt","meta"].filter((function(e){return!t[e]})).map((function(e){return"$event.".concat(e,"Key")})).join("||"))}else a.push(c)};for(var c in e.modifiers)s();a.length&&(o+=function(e){return"if(!$event.type.indexOf('key')&&"+"".concat(e.map(Zo).join("&&"),")return null;")}(a)),i&&(o+=i);var u=t?"return ".concat(e.value,".apply(null, arguments)"):n?"return (".concat(e.value,").apply(null, arguments)"):r?"return ".concat(e.value):e.value;return"function($event){".concat(o).concat(u,"}")}return t||n?e.value:"function($event){".concat(r?"return ".concat(e.value):e.value,"}")}function Zo(e){var t=parseInt(e,10);if(t)return"$event.keyCode!==".concat(t);var n=Yo[e],r=Ko[e];return"_k($event.keyCode,"+"".concat(JSON.stringify(e),",")+"".concat(JSON.stringify(n),",")+"$event.key,"+"".concat(JSON.stringify(r))+")"}var Qo={on:function(e,t){e.wrapListeners=function(e){return"_g(".concat(e,",").concat(t.value,")")}},bind:function(e,t){e.wrapData=function(n){return"_b(".concat(n,",'").concat(e.tag,"',").concat(t.value,",").concat(t.modifiers&&t.modifiers.prop?"true":"false").concat(t.modifiers&&t.modifiers.sync?",true":"",")")}},cloak:te},ei=x((function e(t){k(this,e),this.options=t,this.warn=t.warn||ar,this.transforms=sr(t.modules,"transformCode"),this.dataGenFns=sr(t.modules,"genData"),this.directives=ee(ee({},Qo),t.directives);var n=t.isReservedTag||ne;this.maybeComponent=function(e){return!!e.component||!n(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1}));function ti(e,t){var n=new ei(t),r=e?"script"===e.tag?"null":ni(e,n):'_c("div")';return{render:"with(this){return ".concat(r,"}"),staticRenderFns:n.staticRenderFns}}function ni(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return ri(e,t);if(e.once&&!e.onceProcessed)return oi(e,t);if(e.for&&!e.forProcessed)return ai(e,t);if(e.if&&!e.ifProcessed)return ii(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=li(e,t),o="_t(".concat(n).concat(r?",function(){return ".concat(r,"}"):""),i=e.attrs||e.dynamicAttrs?pi((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:G(e.name),value:e.value,dynamic:e.dynamic}}))):null,a=e.attrsMap["v-bind"];!i&&!a||r||(o+=",null");i&&(o+=",".concat(i));a&&(o+="".concat(i?"":",null",",").concat(a));return o+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:li(t,n,!0);return"_c(".concat(e,",").concat(si(t,n)).concat(r?",".concat(r):"",")")}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=si(e,t));var o=e.inlineTemplate?null:li(e,t,!0);n="_c('".concat(e.tag,"'").concat(r?",".concat(r):"").concat(o?",".concat(o):"",")")}for(var i=0;i>>0}(a)):"",")")}(e,e.scopedSlots,t),",")),e.model&&(n+="model:{value:".concat(e.model.value,",callback:").concat(e.model.callback,",expression:").concat(e.model.expression,"},")),e.inlineTemplate){var i=function(e,t){var n=e.children[0];0;if(n&&1===n.type){var r=ti(n,t.options);return"inlineTemplate:{render:function(){".concat(r.render,"},staticRenderFns:[").concat(r.staticRenderFns.map((function(e){return"function(){".concat(e,"}")})).join(","),"]}")}}(e,t);i&&(n+="".concat(i,","))}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b(".concat(n,',"').concat(e.tag,'",').concat(pi(e.dynamicAttrs),")")),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function ci(e){return 1===e.type&&("slot"===e.tag||e.children.some(ci))}function ui(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return ii(e,t,ui,"null");if(e.for&&!e.forProcessed)return ai(e,t,ui);var r="_empty_"===e.slotScope?"":String(e.slotScope),o="function(".concat(r,"){")+"return ".concat("template"===e.tag?e.if&&n?"(".concat(e.if,")?").concat(li(e,t)||"undefined",":undefined"):li(e,t)||"undefined":ni(e,t),"}"),i=r?"":",proxy:true";return"{key:".concat(e.slotTarget||'"default"',",fn:").concat(o).concat(i,"}")}function li(e,t,n,r,o){var i=e.children;if(i.length){var a=i[0];if(1===i.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?t.maybeComponent(a)?",1":",0":"";return"".concat((r||ni)(a,t)).concat(s)}var c=n?function(e,t){for(var n=0,r=0;re.length)&&(r=e.length),e.slice(r-t.length,r)===t}function Fi(e){var t=e;return/^assets/.test(t)&&(t="".concat("hpfile://","./").concat(t)),t}function Vi(e){return null==e}function Bi(e){return"string"!=typeof e?e:!bi||void 0===bi.config.trimWhitespace||bi.config.trimWhitespace?e.trim().replace(/Â/g," "):e.replace(/Â/g," ")}var Ui=Symbol.for("View"),Hi=Symbol.for("Image"),Wi=Symbol.for("ListView"),zi=Symbol.for("ListViewItem"),Yi=Symbol.for("Text"),Ki=Symbol.for("TextInput"),Gi=Symbol.for("WebView"),qi=Symbol.for("VideoPlayer"),Xi={[Ui]:"View",[Hi]:"Image",[Wi]:"ListView",[zi]:"ListViewItem",[Yi]:"Text",[Ki]:"TextInput",[Gi]:"WebView",[qi]:"VideoPlayer"};function Ji(){for(var e={},t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.type=e,!1===t&&(this.bubbles=!1),!1===n&&(this.cancelable=!1),this}}]),e}(),_a=function(){function e(t){k(this,e),this.element=t,this.observers={}}return x(e,[{key:"getEventListeners",value:function(){return this.observers}},{key:"addEventListener",value:function(e,t,n){if("string"!=typeof e)throw new TypeError("Events name(s) must be string.");if(t&&!Mi(t))throw new TypeError("callback must be function.");for(var r=e.split(","),o=0,i=r.length;o=0&&s.splice(c,1),0===s.length&&(this.observers[a]=void 0)}}else this.observers[a]=void 0}return this.observers}},{key:"emit",value:function(e){var t,n,r=e.type,o=this.observers[r];if(o)for(var i=o.length-1;i>=0;i-=1){var a=o[i];(null===(t=a.options)||void 0===t?void 0:t.once)&&o.splice(i,1),(null===(n=a.options)||void 0===n?void 0:n.thisArg)?a.callback.apply(a.options.thisArg,[e]):a.callback(e)}}},{key:"getEventList",value:function(e,t){var n=this.observers[e];return!n&&t&&(n=[],this.observers[e]=n),n}},{key:"indexOfListener",value:function(e,t,n){return e.findIndex((function(e){return n?e.callback===t&&oe(e.options,n):e.callback===t}))}}]),e}(),ka=new Map;function Sa(e,t){ka.set(t,e)}function xa(e){return ka.get(e)||null}function Oa(t){!function(t,n){if(!e.requestIdleCallback)return setTimeout((function(){t({didTimeout:!1,timeRemaining:function(){return 1/0}})}),1);e.requestIdleCallback(t,n)}((function(e){(e.timeRemaining()>0||e.didTimeout)&&function e(t){var n;r=t.nodeId,ka.delete(r),null===(n=t.childNodes)||void 0===n||n.forEach((function(t){return e(t)}));var r}(t)}),{timeout:50})}function $a(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e[t],r=t;r-1){var f=new Ma(i);if(Object.assign(f,{eventPhase:c,nativeParams:s||{}}),"onLayout"===o){var d=s.layout,p=d.x,h=d.y,v=d.height,m=d.width;f.top=h,f.left=p,f.bottom=h+v,f.right=p+m,f.width=m,f.height=v}else{var y=u._meta.component.processEventData;y&&y(f,o,s)}u.dispatchEvent(function(e,t,n){return function(e){return["onTouchDown","onTouchMove","onTouchEnd","onTouchCancel"].indexOf(e)>=0}(e)&&Object.assign(t,{touches:{0:{clientX:n.page_x,clientY:n.page_y},length:1}}),t}(o,f,s),l,t)}}catch(e){console.error("receiveComponentEvent error",e)}else Ci.apply(void 0,Da.concat(["receiveComponentEvent","currentTargetNode or targetNode not exist"]))}else Ci.apply(void 0,Da.concat(["receiveComponentEvent","nativeEvent or domEvent not exist"]))}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=Ra);var Fa={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Va=function(){for(var e=arguments.length,t=new Array(e),n=0;n255?255:t},za=function(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},Ya=function(e,t,n){var r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e},Ka=function(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=Ya(o,r,e+1/3),a=Ya(o,r,e),s=Ya(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8},Ga=function(e){return(parseFloat(e)%360+360)%360/360},qa=function(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100};function Xa(e){if("string"==typeof e&&-1!==e.indexOf("var("))return e;var t=function(e){var t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Ha.hex6.exec(e),Array.isArray(t)?parseInt("".concat(t[1],"ff"),16)>>>0:Object.hasOwnProperty.call(Fa,e)?Fa[e]:(t=Ha.rgb.exec(e),Array.isArray(t)?(Wa(t[1])<<24|Wa(t[2])<<16|Wa(t[3])<<8|255)>>>0:(t=Ha.rgba.exec(e))?(Wa(t[1])<<24|Wa(t[2])<<16|Wa(t[3])<<8|za(t[4]))>>>0:(t=Ha.hex3.exec(e))?parseInt("".concat(t[1]+t[1]+t[2]+t[2]+t[3]+t[3],"ff"),16)>>>0:(t=Ha.hex8.exec(e))?parseInt(t[1],16)>>>0:(t=Ha.hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Ha.hsl.exec(e))?(255|Ka(Ga(t[1]),qa(t[2]),qa(t[3])))>>>0:(t=Ha.hsla.exec(e))?(Ka(Ga(t[1]),qa(t[2]),qa(t[3]))|za(t[4]))>>>0:null))}(e);if(null===t)throw new Error("Bad color value: ".concat(e));return t=(t<<24|t>>>8)>>>0}var Ja,Za={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor",caretColor:"caret-color"};function Qa(){var e=Cc.Localization;return!!e&&e.direction===Ja.RTL}!function(e){e[e.RTL=1]="RTL"}(Ja||(Ja={}));var es=new Map;function ts(e,t){es.set(e,t)}function ns(e){return es.get(e)||{}}var rs=function(){function e(){k(this,e),this.specificity=0}return x(e,[{key:"lookupSort",value:function(e,t){e.sortAsUniversal(t||this)}},{key:"removeSort",value:function(e,t){e.removeAsUniversal(t||this)}},{key:"trackChanges",value:function(e,t){this.dynamic&&t.addAttribute(e,"")}}]),e}(),os=function(e){u(n,e);var t=f(n);function n(){var e;return k(this,n),(e=t.apply(this,arguments)).rarity=0,e}return x(n,[{key:"accumulateChanges",value:function(e,t){return this.dynamic?!!this.mayMatch(e)&&(this.trackChanges(e,t),!0):this.match(e)}},{key:"mayMatch",value:function(e){return this.match(e)}},{key:"match",value:function(e){return!1}}]),n}(rs);function is(e){return e?" ".concat(e," "):""}var as=function(e,t){var n=e.attributes[t];return void 0!==n?n:Array.isArray(e.styleScopeId)&&e.styleScopeId.includes(t)?t:void 0},ss=function(e){u(n,e);var t=f(n);function n(e){var r;return k(this,n),(r=t.call(this)).specificity=e.reduce((function(e,t){return t.specificity+e}),0),r.head=e.reduce((function(e,t){return!e||e instanceof os&&t.rarity>e.rarity?t:e}),null),r.dynamic=e.some((function(e){return e.dynamic})),r.selectors=e,r}return x(n,[{key:"toString",value:function(){return"".concat(this.selectors.join("")).concat(is(this.combinator||""))}},{key:"match",value:function(e){return!!e&&this.selectors.every((function(t){return t.match(e)}))}},{key:"mayMatch",value:function(e){return!!e&&this.selectors.every((function(t){return t.mayMatch(e)}))}},{key:"trackChanges",value:function(e,t){this.selectors.forEach((function(n){return n.trackChanges(e,t)}))}},{key:"lookupSort",value:function(e,t){this.head&&this.head instanceof os&&this.head.lookupSort(e,t||this)}},{key:"removeSort",value:function(e,t){this.head&&this.head instanceof os&&this.head.removeSort(e,t||this)}}]),n}(os),cs=function(){try{return!!new RegExp("foo","y")}catch(e){return!1}}(),us={whiteSpaceRegEx:"\\s*",universalSelectorRegEx:"\\*",simpleIdentifierSelectorRegEx:"(#|\\.|:|\\b)([_-\\w][_-\\w\\d]*)",attributeSelectorRegEx:"\\[\\s*([_-\\w][_-\\w\\d]*)\\s*(?:(=|\\^=|\\$=|\\*=|\\~=|\\|=)\\s*(?:([_-\\w][_-\\w\\d]*)|\"((?:[^\\\\\"]|\\\\(?:\"|n|r|f|\\\\|0-9a-f))*)\"|'((?:[^\\\\']|\\\\(?:'|n|r|f|\\\\|0-9a-f))*)')\\s*)?\\]",combinatorRegEx:"\\s*(\\+|~|>)?\\s*"},ls={};function fs(e,t,n){var r="";cs&&(r="gy"),ls[e]||(ls[e]=new RegExp(us[e],r));var o,i=ls[e];if(cs)i.lastIndex=n||0,o=i.exec(t);else{if(t=t.slice(n,t.length),!(o=i.exec(t)))return{result:null,regexp:i};i.lastIndex=n||0+o[0].length}return{result:o,regexp:i}}function ds(e,t){return function(e,t){var n=fs("universalSelectorRegEx",e,t),r=n.result,o=n.regexp;return r?{value:{type:"*"},start:t,end:o.lastIndex}:null}(e,t)||function(e,t){var n=fs("simpleIdentifierSelectorRegEx",e,t),r=n.result,o=n.regexp;if(!r)return null;var i=o.lastIndex;return{value:{type:r[1],identifier:r[2]},start:t,end:i}}(e,t)||function(e,t){var n=fs("attributeSelectorRegEx",e,t),r=n.result,o=n.regexp;if(!r)return null;var i=o.lastIndex,a=r[1];return r[2]?{value:{type:"[]",property:a,test:r[2],value:r[3]||r[4]||r[5]},start:t,end:i}:{value:{type:"[]",property:a},start:t,end:i}}(e,t)}function ps(e,t){var n=ds(e,t);if(!n)return null;for(var r=n.end,o=[];n;){o.push(n.value),n=ds(e,r=n.end)}return{start:t,end:r,value:o}}function hs(e,t){var n=fs("combinatorRegEx",e,t),r=n.result,o=n.regexp;return r?{start:t,end:cs?o.lastIndex:t,value:r[1]||" "}:null}var vs=function(){function e(t,n,r){var o=this;k(this,e),t.forEach((function(e){return e.ruleSet=o,null})),this.hash=r,this.selectors=t,this.declarations=n}return x(e,[{key:"toString",value:function(){return"".concat(this.selectors.join(", ")," {").concat(this.declarations.map((function(e,t){return"".concat(0===t?" ":"").concat(e.property,": ").concat(e.value)})).join("; "),"}")}},{key:"lookupSort",value:function(e){this.selectors.forEach((function(t){return t.lookupSort(e)}))}},{key:"removeSort",value:function(e){this.selectors.forEach((function(t){return t.removeSort(e)}))}}]),e}(),ms=function(e){u(n,e);var t=f(n);function n(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return k(this,n),(r=t.call(this)).attribute="",r.test="",r.value="",r.specificity=256,r.rarity=0,r.dynamic=!0,r.attribute=e,r.test=o,r.value=i,r}return x(n,[{key:"match",value:function(e){if(!this.test)return!(!e||!e.attributes)&&!Vi(as(e,this.attribute));if(!this.value)return!1;if(!e||!e.attributes)return!1;var t="".concat(as(e,this.attribute));if("="===this.test)return t===this.value;if("^="===this.test)return t.startsWith(this.value);if("$="===this.test)return t.endsWith(this.value);if("*="===this.test)return-1!==t.indexOf(this.value);if("~="===this.test){var n=t.split(" ");return n&&-1!==n.indexOf(this.value)}return"|="===this.test&&(t===this.value||t.startsWith("".concat(this.value,"-")))}},{key:"toString",value:function(){return"[".concat(this.attribute).concat(is(this.test)).concat(this.test&&this.value||"","]").concat(is(this.combinator||""))}},{key:"mayMatch",value:function(){return!0}},{key:"trackChanges",value:function(e,t){t.addAttribute(e,this.attribute)}}]),n}(os),ys=function(e){u(n,e);var t=f(n);function n(e){var r;return k(this,n),(r=t.call(this)).specificity=256,r.rarity=2,r.dynamic=!1,r.className=e,r}return x(n,[{key:"toString",value:function(){return".".concat(this.className).concat(is(this.combinator||""))}},{key:"match",value:function(e){var t;return!!e&&(!!(null===(t=e.classList)||void 0===t?void 0:t.size)&&e.classList.has(this.className))}},{key:"lookupSort",value:function(e,t){e.sortByClass(this.className,t||this)}},{key:"removeSort",value:function(e,t){e.removeByClass(this.className,t||this)}}]),n}(os),gs=function(e){u(n,e);var t=f(n);function n(e){var r;return k(this,n),(r=t.call(this)).specificity=65536,r.rarity=3,r.dynamic=!1,r.id=e,r}return x(n,[{key:"toString",value:function(){return"#".concat(this.id).concat(is(this.combinator||""))}},{key:"match",value:function(e){return!!e&&e.id===this.id}},{key:"lookupSort",value:function(e,t){e.sortById(this.id,null!=t?t:this)}},{key:"removeSort",value:function(e,t){e.removeById(this.id,null!=t?t:this)}}]),n}(os),bs=function(e){u(n,e);var t=f(n);function n(e){var r;return k(this,n),(r=t.call(this)).specificity=0,r.rarity=4,r.dynamic=!1,r.combinator=void 0,r.err=e,r}return x(n,[{key:"toString",value:function(){return"")}},{key:"match",value:function(){return!1}}]),n}(os),ws=function(e){u(n,e);var t=f(n);function n(e){var r;return k(this,n),(r=t.call(this)).specificity=256,r.rarity=0,r.dynamic=!0,r.cssPseudoClass=e,r}return x(n,[{key:"toString",value:function(){return":".concat(this.cssPseudoClass).concat(is(this.combinator||""))}},{key:"match",value:function(e){return!!e}},{key:"mayMatch",value:function(){return!0}},{key:"trackChanges",value:function(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}]),n}(os),_s=function(){function e(t){k(this,e),this.selectors=t,this.dynamic=t.some((function(e){return e.dynamic}))}return x(e,[{key:"match",value:function(e){var t=e;if(t)return this.selectors.every((function(e,n){return 0!==n&&(t=null==t?void 0:t.parentNode),!!t&&!!e.match(t)}))?t:void 0}},{key:"mayMatch",value:function(e){var t=e;if(t)return this.selectors.every((function(e,n){return 0!==n&&(t=null==t?void 0:t.parentNode),!!t&&!!e.mayMatch(t)}))?t:void 0}},{key:"trackChanges",value:function(e,t){var n=e;this.selectors.forEach((function(e,r){0!==r&&(n=null==n?void 0:n.parentNode),n&&e.trackChanges(n,t)}))}}]),e}(),ks=function(){function e(t){k(this,e),this.selectors=t,this.dynamic=t.some((function(e){return e.dynamic}))}return x(e,[{key:"match",value:function(e){var t=e;if(t)return this.selectors.every((function(e,n){return 0!==n&&(t=null==t?void 0:t.nextSibling),!!t&&!!e.match(t)}))?t:void 0}},{key:"mayMatch",value:function(e){var t=e;if(t)return this.selectors.every((function(e,n){return 0!==n&&(t=null==t?void 0:t.nextSibling),!!t&&!!e.mayMatch(t)}))?t:void 0}},{key:"trackChanges",value:function(e,t){var n=e;this.selectors.forEach((function(e,r){0!==r&&(n=null==n?void 0:n.nextSibling),n&&e.trackChanges(n,t)}))}}]),e}(),Ss=function(e){u(n,e);var t=f(n);function n(e){var r;k(this,n),r=t.call(this);var o=[void 0," ",">","+"],i=[],a=[],s=[];r.selectors=e,r.selectors.reverse().forEach((function(e){if(-1===o.indexOf(e.combinator))throw new Error('Unsupported combinator "'.concat(e.combinator,'".'));void 0!==e.combinator&&" "!==e.combinator||s.push(a=[i=[]]),">"===e.combinator&&a.push(i=[]),i.push(e)})),r.groups=s.map((function(e){return new _s(e.map((function(e){return new ks(e)})))}));var c=g(e,1)[0];return r.last=c,r.specificity=e.reduce((function(e,t){return t.specificity+e}),0),r.dynamic=e.some((function(e){return e.dynamic})),r}return x(n,[{key:"toString",value:function(){return this.selectors.join("")}},{key:"match",value:function(e){var t=e;return this.groups.every((function(n,r){if(0===r)return!!(t=n.match(e));for(var o=t;o=null==o?void 0:o.parentNode;)if(t=n.match(o))return!0;return!1}))}},{key:"lookupSort",value:function(e){this.last.lookupSort(e,this)}},{key:"removeSort",value:function(e){this.last.removeSort(e,this)}},{key:"accumulateChanges",value:function(e,t){var n=e;if(!this.dynamic)return this.match(n);var r=[],o=this.groups.every((function(t,o){if(0===o){var i=t.mayMatch(e);return r.push({left:e,right:e}),!!(n=i)}for(var a=e;a=a.parentNode;){var s=t.mayMatch(a);if(s)return r.push({left:a,right:void 0}),n=s,!0}return!1}));if(!o)return!1;if(!t)return o;for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;e.forEach((function(e){if(e){var n=e.id;e.eventList.forEach((function(e){var r,o=e.name,i=e.type,a=e.listener;r=Ta(o)?Ia[o]:Pa(o),i===Ea&&t.removeEventListener(n,r,a),i===Na&&(t.removeEventListener(n,r,a),t.addEventListener(n,r,a))}))}}))}function Rs(e,t){0}function Fs(t){if(Ls)if(Ls=!1,0!==Ms.length){var n=t.$nextTick,r=t.$options.rootViewId;n((function(){var t=function(e){for(var t=[],n=0;n0&&void 0!==arguments[0]?arguments[0]:[],t=Ai();return e.map((function(e){var n=e.declarations.filter($s).map(As(t)),r=e.selectors.map(Is);return new vs(r,n,e.hash)}))}(e.__HIPPY_VUE_STYLES__);Cs?Cs.append(t):Cs=new Ps(t),e.__HIPPY_VUE_STYLES__=void 0}return e.__HIPPY_VUE_DISPOSE_STYLES__&&(e.__HIPPY_VUE_DISPOSE_STYLES__.forEach((function(e){Cs.delete(e)})),e.__HIPPY_VUE_DISPOSE_STYLES__=void 0),Cs}function Bs(e){var t={};return e.meta.component.defaultNativeProps&&Object.keys(e.meta.component.defaultNativeProps).forEach((function(n){if(void 0===e.getAttribute(n)){var r=e.meta.component.defaultNativeProps[n];Mi(r)?t[n]=r(e):t[n]=r}})),Object.keys(e.attributes).forEach((function(n){var r=e.getAttribute(n);if(e.meta.component.attributeMaps&&e.meta.component.attributeMaps[n]){var o=e.meta.component.attributeMaps[n];if("string"!=typeof o)if(Mi(o))t[n]=o(r);else{var i=o.name,a=o.propsValue,s=o.jointKey;Mi(a)&&(r=a(r)),s?(t[s]=t[s]||{},Object.assign(t[s],{[i]:r})):t[i]=r}else t[o]=r}else t[n]=r})),e.meta.component.nativeProps&&Object.assign(t,e.meta.component.nativeProps),t}function Us(e,t){"TextInput"===e.meta.component.name&&Qa()&&(t.textAlign||(t.textAlign="right"))}function Hs(e,t,n){"View"===e.meta.component.name&&("scroll"===n.overflowX&&n.overflowY,"scroll"===n.overflowY?t.name="ScrollView":"scroll"===n.overflowX&&(t.name="ScrollView",t.props.horizontal=!0,n.flexDirection=Qa()?"row-reverse":"row"),"ScrollView"===t.name&&(e.childNodes.length,e.childNodes.length&&e.childNodes[0].setStyle("collapsable",!1)),n.backgroundImage&&(n.backgroundImage=Fi(n.backgroundImage)))}function Ws(e){var t=Object.create(null);try{Vs().query(e).selectors.forEach((function(n){(function(e,t){return!(!t||!e)&&e.match(t)})(n,e)&&n.ruleSet.declarations.forEach((function(e){t[e.property]=e.value}))}))}catch(e){console.error("getDomCss Error:",e)}return t}function zs(e){if(e.props.__modalFirstChild__){var t=e.props.style;Object.keys(t).some((function(e){return"position"===e&&"absolute"===t[e]&&(["position","left","right","top","bottom"].forEach((function(e){return delete t[e]})),!0)}))}}function Ys(e){var t=void 0,n=e.events;if(n){var r=[];Object.keys(n).forEach((function(e){var t=n[e],o=t.name,i=t.type,a=t.isCapture,s=t.listener;r.push({name:o,type:i,isCapture:a,listener:s})})),t={id:e.nodeId,eventList:r}}return t}function Ks(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: ".concat(t.tagName));if(i)r=ns(t.nodeId);else{if(r=m(m({},r=Ws(t)),t.style),Ni()(),t.parentNode){var a=ns(t.parentNode.nodeId),s=["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"];s.forEach((function(e){!r[e]&&a[e]&&(r[e]=a[e])}))}t.meta.component.defaultNativeStyle&&(r=m(m({},t.meta.component.defaultNativeStyle),r)),ts(t.nodeId,r)}var c={id:t.nodeId,pId:(null===(n=t.parentNode)||void 0===n?void 0:n.nodeId)||e,name:t.meta.component.name,props:m(m({},Bs(t)),{},{style:r}),tagName:t.tagName};zs(c),Hs(t,c,r),Us(t,r);var u=Ys(t),l=void 0,f=[c,o];return[f,u,l]}function Gs(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=[],i=[],a=[];return t.traverseChildren((function(t,r){var s=g(Ks(e,t,r),3),c=s[0],u=s[1],l=s[2];c&&o.push(c),u&&i.push(u),l&&a.push(l),"function"==typeof n&&n(t)}),r),[o,i,a]}function qs(e,t){return 3===e.nodeId||e.id===t.slice(1-t.length)}function Xs(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e&&t&&!t.meta.skipAddToDom){var r=$i();if(r){var o=r.$options,i=o.rootViewId,a=o.rootView,s=qs(e,a)&&!e.isMounted,c=e.isMounted&&!t.isMounted;if(s||c){var u=Gs(i,s?e:t,(function(e){e.isMounted||(e.isMounted=!0),Sa(e,e.nodeId)}),n),l=g(u,3),f=l[0],d=l[1],p=l[2];Ms.push({type:js.createNode,nodes:f,eventNodes:d,printedNodes:p}),Fs(r)}}}}function Js(e){if(e.isMounted){var t=$i(),n=Ys(e);Ms.push({type:js.updateEvent,nodes:[],eventNodes:[n],printedNodes:[]}),Fs(t)}}function Zs(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.isMounted){var n=$i(),r=n.$options.rootViewId,o=Ks(r,e,{},t),i=g(o,3),a=i[0],s=i[1];i[2];a&&(Ms.push({type:js.updateNode,nodes:a?[a]:[],eventNodes:s?[s]:[],printedNodes:[]}),Fs(n))}}function Qs(e){if(e.isMounted){var t=$i(),n=g(Gs(t.$options.rootViewId,e),3),r=n[0],o=n[1],i=n[2];Ms.push({type:js.updateNode,nodes:r,eventNodes:o,printedNodes:i}),Fs(t)}}var ec,tc,nc=new Set,rc=!1,oc={exitApp:function(){Cc.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:function(e){return rc||(rc=!0,oc.initEventListener()),Cc.callNative("DeviceEventModule","setListenBackPress",!0),nc.add(e),{remove:function(){oc.removeListener(e)}}},removeListener:function(e){nc.delete(e),0===nc.size&&Cc.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener:function(){ec||(ec=$i()),ec.$on("hardwareBackPress",(function(){var e=!0;Array.from(nc).reverse().every((function(t){return"function"!=typeof t||!t()||(e=!1,!1)})),e&&oc.exitApp()}))}},ic={exitApp:function(){},addListener:function(){return{remove:function(){}}},removeListener:function(){},initEventListener:function(){}},ac="android"===Hippy.device.platform.OS?oc:ic,sc=new Map,cc=function(){function e(t,n){k(this,e),this.eventName=t,this.listener=n}return x(e,[{key:"remove",value:function(){this.eventName&&this.listener&&(uc(this.eventName,this.listener),this.listener=void 0)}}]),e}();function uc(e,t){if(t instanceof cc)t.remove();else{var n=e;"change"===e&&(n="networkStatusDidChange");var r=sc.get(t);r&&(tc||(tc=$i()),tc.$off(n,r),sc.delete(t),sc.size<1&&Cc.callNative("NetInfo","removeListener",n))}}var lc=Object.freeze({__proto__:null,addEventListener:function(e,t){if("function"==typeof t){var n=e;return"change"===n&&(n="networkStatusDidChange"),0===sc.size&&Cc.callNative("NetInfo","addListener",n),tc||(tc=$i()),tc.$on(n,t),sc.set(t,t),new cc(n,t)}},removeEventListener:uc,fetch:function(){return Cc.callNativeWithPromise("NetInfo","getCurrentConnectivity").then((function(e){return e.network_info}))},NetInfoRevoker:cc}),fc=Hippy,dc=fc.on,pc=fc.off,hc=fc.emit,vc=fc.bridge,mc=vc.callNative,yc=vc.callNativeWithPromise,gc=vc.callNativeWithCallbackId,bc=fc.device,wc=bc.platform,_c=wc.OS,kc=wc.Localization,Sc=void 0===kc?{}:kc,xc=bc.screen.scale,Oc=fc.device,$c=fc.document,Ac=fc.register,Nc={},Ec=["%c[native]%c","color: red","color: auto"],Ic=function(e,t){var n={top:-1,left:-1,bottom:-1,right:-1,width:-1,height:-1};if(!e.isMounted||!e.nodeId)return Promise.resolve(n);var r=e.nodeId;return Ii.apply(void 0,Ec.concat(["callUIFunction",{nodeId:r,funcName:t,params:[]}])),new Promise((function(e){return $c.callUIFunction(r,t,[],(function(t){if(!t||"object"!==$(t)||void 0===r)return e(n);var o=t.x,i=t.y,a=t.height,s=t.width;return e({top:i,left:o,width:s,height:a,bottom:i+a,right:o+s})}))}))},Cc={callNative:mc,callNativeWithPromise:yc,callNativeWithCallbackId:gc,UIManagerModule:$c,ConsoleModule:e.ConsoleModule||e.console,on:dc,off:pc,emit:hc,PixelRatio:xc,Platform:_c,Localization:Sc,version:"unspecified",Cookie:{getAll:function(e){if(!e)throw new TypeError("Vue.Native.Cookie.getAll() must have url argument");return yc.call(this,"network","getCookie",e)},set:function(e,t,n){if(!e)throw new TypeError("Vue.Native.Cookie.getAll() must have url argument");if("string"!=typeof t)throw new TypeError("Vue.Native.Cookie.getAll() only receive string type of keyValue");var r="";if(n){if(!(n instanceof Date))throw new TypeError("Vue.Native.Cookie.getAll() only receive Date type of expires");r=n.toUTCString()}mc.call(this,"network","setCookie",e,t,r)}},Clipboard:{getString:function(){return yc.call(this,"ClipboardModule","getString")},setString:function(e){mc.call(this,"ClipboardModule","setString",e)}},get isIPhoneX(){if(!E(Nc.isIPhoneX)){var e=!1;"ios"===Cc.Platform&&(e=20!==Cc.Dimensions.screen.statusBarHeight),Nc.isIPhoneX=e}return Nc.isIPhoneX},get screenIsVertical(){return Cc.Dimensions.window.width1&&void 0!==arguments[1]||Cc.Platform;if(Number.isInteger(e))return e;var t=Nc.COLOR_PARSER||(Nc.COLOR_PARSER=Object.create(null));return t[e]||(t[e]=Xa(e)),t[e]},AsyncStorage:e.Hippy.asyncStorage,BackAndroid:ac,ImageLoader:{getSize:function(e){return yc.call(this,"ImageLoaderModule","getSize",e)},prefetch:function(e){mc.call(this,"ImageLoaderModule","prefetch",e)}},NetInfo:lc,getElemCss:Ws},Tc=0;e.__GLOBAL__&&Number.isInteger(e.__GLOBAL__.nodeId)&&(Tc=e.__GLOBAL__.nodeId);var Pc=function(){function e(){k(this,e),this._ownerDocument=null,this._isMounted=!1,this.nodeId=((Tc+=1)%10==0&&(Tc+=1),Tc%10==0&&(Tc+=1),Tc),this.index=0,this.childNodes=[]}return x(e,[{key:"toString",value:function(){return this.constructor.name}},{key:"firstChild",get:function(){return this.childNodes.length?this.childNodes[0]:null}},{key:"lastChild",get:function(){var e=this.childNodes.length;return e?this.childNodes[e-1]:null}},{key:"meta",get:function(){return this._meta?this._meta:{}}},{key:"ownerDocument",get:function(){if(this._ownerDocument)return this._ownerDocument;for(var e=this;"DocumentNode"!==e.constructor.name&&(e=e.parentNode););return this._ownerDocument=e,e}},{key:"isMounted",get:function(){return this._isMounted},set:function(e){this._isMounted=e}},{key:"insertBefore",value:function(e,t){if(!e)throw new Error("Can't insert child.");if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't insert child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't insert child, because it already has a different parent.");var n=this.childNodes.indexOf(t),r=t;return t.meta.skipAddToDom&&(r=$a(this.childNodes,n)),e.parentNode=this,e.nextSibling=t,e.prevSibling=this.childNodes[n-1],this.childNodes[n-1]&&(this.childNodes[n-1].nextSibling=e),t.prevSibling=e,this.childNodes.splice(n,0,e),r.meta.skipAddToDom?Xs(this,e):Xs(this,e,{refId:r.nodeId,relativeToRef:Aa})}},{key:"moveChild",value:function(e,t){if(!e)throw new Error("Can't move child.");if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't move child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't move child, because it already has a different parent.");var n=this.childNodes.indexOf(e),r=this.childNodes.indexOf(t),o=t;if(t.meta.skipAddToDom&&(o=$a(this.childNodes,r)),r===n)return e;e.nextSibling=t,e.prevSibling=t.prevSibling,t.prevSibling=e,this.childNodes[r-1]&&(this.childNodes[r-1].nextSibling=e),this.childNodes[r+1]&&(this.childNodes[r+1].prevSibling=e),this.childNodes[n-1]&&(this.childNodes[n-1].nextSibling=this.childNodes[n+1]),this.childNodes[n+1]&&(this.childNodes[n+1].prevSibling=this.childNodes[n-1]),this.childNodes.splice(n,1);var i=this.childNodes.indexOf(t);return this.childNodes.splice(i,0,e),o.meta.skipAddToDom?Xs(this,e):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if((null==e?void 0:e.meta)&&Mi(e.meta.removeChild)&&e.meta.removeChild(e,t),t&&!t.meta.skipAddToDom&&(!n||n.refId!==t.nodeId)){var r=$i(),o=r.$options.rootViewId,i={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:o},a=[[i,n]],s=[];Ms.push({printedNodes:s,type:js.moveNode,nodes:a,eventNodes:[]}),Fs(r)}}(this,e,{refId:o.nodeId,relativeToRef:Aa})}},{key:"appendChild",value:function(e){if(!e)throw new Error("Can't append child.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");this.lastChild!==e&&(e.isMounted&&this.removeChild(e),e.parentNode=this,this.lastChild&&(e.prevSibling=this.lastChild,this.lastChild.nextSibling=e),this.childNodes.push(e),Xs(this,e))}},{key:"removeChild",value:function(e){if(!e)throw new Error("Can't remove child.");if(!e.parentNode)throw new Error("Can't remove child, because it has no parent.");if(e.parentNode!==this)throw new Error("Can't remove child, because it has a different parent.");if(!e.meta.skipAddToDom){e.prevSibling&&(e.prevSibling.nextSibling=e.nextSibling),e.nextSibling&&(e.nextSibling.prevSibling=e.prevSibling),e.prevSibling=void 0,e.nextSibling=void 0;var t=this.childNodes.indexOf(e);this.childNodes.splice(t,1),function(e,t){if(t&&!t.meta.skipAddToDom){t.isMounted=!1;var n=$i(),r=n.$options.rootViewId,o={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},i=[[o,{}]],a=[];Ms.push({printedNodes:a,type:js.deleteNode,nodes:i,eventNodes:[]}),Fs(n)}}(0,e)}}},{key:"findChild",value:function(e){if(e(this))return this;if(this.childNodes.length)for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:Rc,n=parseFloat(e),r=e||"",o=e.split("."),i=g(o,2),a=i[1];switch(a&&a.length>2&&(r=n.toFixed(2)),t){case Mc:r="".concat((360*n).toFixed(2));break;case Dc:r="".concat((180/Math.PI*n).toFixed(2))}return r}(a,s):i&&void 0!==Lc[i]&&(r=Lc[i]),r}}function ru(e){var t=g((e||"").replace(/\s+/g," ").trim().split(/\s+(?![^(]*?\))/),2),n=t[0],r=t[1],o=/^([+-]?\d+\.?\d*)%$/g;return!n||o.exec(n)||r?n&&o.exec(r)?{ratio:parseFloat(r.split("%")[0])/100,color:Cc.parseColor(n)}:void 0:{color:Cc.parseColor(n)}}function ou(e,t,n){delete n[e],iu(e,t,n);var r=t,o=e;if(0===t.indexOf("linear-gradient")){o="linearGradient";var i=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),a=[];r={},i.forEach((function(e,t){if(0===t){var n=nu(e);if(n)r.angle=n;else{r.angle="180";var o=ru(e);o&&a.push(o)}}else{var i=ru(e);i&&a.push(i)}})),r.colorStopList=a}else{var s=/(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t);if(s&&s.length>1){var c=g(s,2);r=c[1]}}return[o,r]}function iu(e,t,n){"backgroundImage"===e&&n.linearGradient&&delete n.linearGradient}function au(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[tu[e]]:t}),["textShadowOffset",n.textShadowOffset]}function su(e,t,n){void 0===t&&(delete n[e],iu(e,0,n),function(e,t,n){"textShadowOffsetX"!==e&&"textShadowOffsetY"!==e||!n.textShadowOffset||(delete n.textShadowOffset[tu[e]],0===Object.keys(n.textShadowOffset).length&&delete n.textShadowOffset)}(e,0,n))}function cu(e,t){if("string"==typeof e)for(var n=e.split(","),r=0,o=n.length;r2&&void 0!==arguments[2]?arguments[2]:{};try{var r=e,o=t;if("boolean"==typeof this.attributes[r]&&""===o&&(o=!0),void 0===r)return void(!n.notToNative&&Zs(this));switch(r){case Vc:var i=new Set(o.split(" ").filter((function(e){return e.trim()})));if(Di(this.classList,i))return;return this.classList=i,void(!n.notToNative&&Qs(this));case Bc:if(o===this.id)return;return this.id=o,void(!n.notToNative&&Qs(this));case Uc:case Hc:case Wc:case zc:if("string"!=typeof o)try{o=o.toString()}catch(e){"Property ".concat(r," must be string:").concat(e.message)}n&&n.textUpdate||(o=Bi(o)),o=Li(o);break;case Yc:if("ios"!==Cc.Platform)return;break;case Kc:case Gc:r="caret-color",o=Cc.parseColor(o);break;case qc:r="breakStrategy";break;case Xc:case Jc:r="placeholderTextColor",o=Cc.parseColor(o);break;case Zc:case Qc:r="underlineColorAndroid",o=Cc.parseColor(o);break;case eu:var a=o;void 0!==a.color&&(a.color=Cc.parseColor(a.color)),r="nativeBackgroundAndroid",o=a}if(this.attributes[r]===o)return;this.attributes[r]=o,"function"==typeof this.filterAttribute&&this.filterAttribute(this.attributes),!n.notToNative&&Zs(this,n.notUpdateStyle)}catch(e){0}}},{key:"removeAttribute",value:function(e){delete this.attributes[e]}},{key:"setStyles",value:function(e){var t=this;e&&"object"===$(e)&&0!==Object.keys(e).length&&(Object.keys(e).forEach((function(n){var r=e[n];t.setStyle(n,r,!0)})),Zs(this))}},{key:"setStyle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e,o=t;if(!this.getAttribute(Fc)){var i=this.beforeLoadStyle({property:e,value:t});o=i.value,r=i.property}if(void 0===t)return su(r,o,this.style),void(n||Zs(this));switch(r){case"fontWeight":"string"!=typeof o&&(o=o.toString());break;case"backgroundImage":var a=ou(r,o,this.style),s=g(a,2);r=s[0],o=s[1];break;case"textShadowOffsetX":case"textShadowOffsetY":var c=au(r,o,this.style),u=g(c,2);r=u[0],o=u[1];break;case"textShadowOffset":var l=o||{},f=l.x,d=void 0===f?0:f,p=l.width,h=void 0===p?0:p,v=l.y,m=void 0===v?0:v,y=l.height,b=void 0===y?0:y;o={width:d||h,height:m||b};break;default:Object.prototype.hasOwnProperty.call(Za,r)&&(r=Za[r]),"string"==typeof o&&(o=o.trim(),o=r.toLowerCase().indexOf("color")>=0?Cc.parseColor(o):Ri(o,"px")?parseFloat(o.slice(0,o.length-2)):ji(o))}null!=o&&this.style[r]!==o&&(this.style[r]=o,n||Zs(this))}},{key:"setNativeProps",value:function(e){if(e){var t=e.style;this.setStyles(t)}}},{key:"repaintWithChildren",value:function(){Qs(this)}},{key:"setStyleScope",value:function(e){"string"!=typeof e&&(e=e.toString()),e&&!this.scopeIdList.includes(e)&&this.scopeIdList.push(e)}},{key:"styleScopeId",get:function(){return this.scopeIdList}},{key:"isTextNode",value:function(e){return(null==e?void 0:e.meta.symbol)===Yi}},{key:"appendChild",value:function(e){(null==e?void 0:e.meta.symbol)===Yi&&e instanceof jc&&this.setText(e.text,{notToNative:!0}),a(h(n.prototype),"appendChild",this).call(this,e)}},{key:"insertBefore",value:function(e,t){this.isTextNode(e)&&e instanceof jc&&this.setText(e.text,{notToNative:!0}),a(h(n.prototype),"insertBefore",this).call(this,e,t)}},{key:"moveChild",value:function(e,t){this.isTextNode(e)&&e instanceof jc&&this.setText(e.text,{notToNative:!0}),a(h(n.prototype),"moveChild",this).call(this,e,t)}},{key:"removeChild",value:function(e){this.isTextNode(e)&&e instanceof jc&&this.setText("",{notToNative:!0}),a(h(n.prototype),"removeChild",this).call(this,e)}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"textarea"===this.tagName?this.setAttribute("value",e,{notToNative:!!t.notToNative}):this.setAttribute("text",e,{notToNative:!!t.notToNative})}},{key:"setListenerHandledType",value:function(e,t){this.events[e]&&(this.events[e].handledType=t)}},{key:"isListenerHandled",value:function(e,t){return!this.events[e]||t===this.events[e].handledType}},{key:"getNativeEventName",value:function(e){var t="on".concat(Ti(e));if(this.meta.component){var n=this.meta.component.eventNamesMap;(null==n?void 0:n[e])&&(t=n[e])}return t}},{key:"addEventListener",value:function(e,t,n){var r=this;if(this._emitter||(this._emitter=new _a(this)),"scroll"===e&&!(this.getAttribute("scrollEventThrottle")>0)){this.attributes.scrollEventThrottle=200}if("function"==typeof this.polyfillNativeEvents){var o=this.polyfillNativeEvents(ja,e,t,n);e=o.eventNames,t=o.callback,n=o.options}this._emitter.addEventListener(e,t,n),cu(e,(function(e){var t,n,o=r.getNativeEventName(e);r.events[o]?r.events[o]&&r.events[o].type!==Na&&(r.events[o].type=Na):r.events[o]={name:o,type:Na,listener:(t=o,n=e,function(e){var r=e.id,o=e.currentId,i=e.params,a=e.eventPhase;Ra.receiveComponentEvent({id:r,nativeName:t,originalName:n,currentId:o,params:i,eventPhase:a},e)}),isCapture:!1}})),Js(this)}},{key:"removeEventListener",value:function(e,t,n){var r=this;if(!this._emitter)return null;if("function"==typeof this.polyfillNativeEvents){var o=this.polyfillNativeEvents(La,e,t,n);e=o.eventNames,t=o.callback,n=o.options}var i=this._emitter.removeEventListener(e,t,n);return cu(e,(function(e){var t=r.getNativeEventName(e);r.events[t]&&(r.events[t].type=Ea)})),Js(this),i}},{key:"dispatchEvent",value:function(e,t,n){if(!(e instanceof wa))throw new Error("dispatchEvent method only accept Event instance");e.currentTarget=this,e.target||(e.target=t||this,"string"==typeof e.value&&e.target&&(e.target.value=e.value)),this._emitter&&this._emitter.emit(e),!e.bubbles&&n&&n.stopPropagation()}},{key:"getBoundingClientRect",value:function(){return Cc.measureInWindow(this)}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;if("number"==typeof e&&"number"==typeof t){var r=n;!1===r&&(r=0),Cc.callUIFunction(this,"scrollToWithOptions",[{x:e,y:t,duration:r}])}}},{key:"scrollTo",value:function(e,t,n){var r=n;if("object"===$(e)&&e){var o=e.left,i=e.top,a=e.behavior,s=void 0===a?"auto":a;r=e.duration,this.scrollToPosition(o,i,"none"===s?0:r)}else this.scrollToPosition(e,t,n)}},{key:"setPressed",value:function(e){Cc.callUIFunction(this,"setPressed",[e])}},{key:"setHotspot",value:function(e,t){Cc.callUIFunction(this,"setHotspot",[e,t])}}]),n}(Pc),lu=function(e){u(n,e);var t=f(n);function n(e){var r;return k(this,n),(r=t.call(this,"comment")).text=e,r._meta={symbol:Yi,skipAddToDom:!0},r}return x(n)}(uu),fu=function(e){u(n,e);var t=f(n);function n(){return k(this,n),t.apply(this,arguments)}return x(n,[{key:"getValue",value:function(){var e=this;return new Promise((function(t){return Cc.callUIFunction(e,"getValue",(function(e){return t(e.text)}))}))}},{key:"setValue",value:function(e){Cc.callUIFunction(this,"setValue",[e])}},{key:"focus",value:function(){Cc.callUIFunction(this,"focusTextInput",[])}},{key:"blur",value:function(){Cc.callUIFunction(this,"blurTextInput",[])}},{key:"isFocused",value:function(){var e=this;return new Promise((function(t){return Cc.callUIFunction(e,"isFocused",(function(e){return t(e.value)}))}))}},{key:"clear",value:function(){Cc.callUIFunction(this,"clear",[])}},{key:"showInputMethod",value:function(){}},{key:"hideInputMethod",value:function(){}}]),n}(uu),du=function(e){u(n,e);var t=f(n);function n(){return k(this,n),t.apply(this,arguments)}return x(n,[{key:"scrollToIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];"number"==typeof e&&"number"==typeof t&&Cc.callUIFunction(this,"scrollToIndex",[e,t,n])}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];"number"==typeof e&&"number"==typeof t&&Cc.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}]),n}(uu),pu=function(e){u(n,e);var t=f(n);function n(){var e;return k(this,n),(e=t.call(this)).documentElement=new uu("document"),e}return x(n,null,[{key:"createComment",value:function(e){return new lu(e)}},{key:"createElement",value:function(e){switch(e){case"input":case"textarea":return new fu(e);case"ul":return new du(e);default:return new uu(e)}}},{key:"createElementNS",value:function(e,t){return new uu("".concat(e,":").concat(t))}},{key:"createTextNode",value:function(e){return new jc(e)}},{key:"createEvent",value:function(e){return new wa(e)}}]),n}(Pc),hu={create:function(e,t){vu(t)},update:function(e,t){e.data.ref!==t.data.ref&&(vu(e,!0),vu(t))},destroy:function(e){vu(e,!0)}};function vu(e,t){var n=e.data.ref;if(E(n)){var r=e.context,o=e.componentInstance||e.elm,i=r.$refs;t?Array.isArray(i[n])?H(i[n],o):i[n]===o&&(i[n]=void 0):e.data.refInFor?Array.isArray(i[n])?i[n].indexOf(o)<0&&i[n].push(o):i[n]=[o]:i[n]=o}}var mu=new je("",{},[]),yu=["create","activate","update","remove","destroy"];function gu(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&E(e.data)===E(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,r=E(n=e.data)&&E(n=n.attrs)&&n.type,o=E(n=t.data)&&E(n=n.attrs)&&n.type;return r===o||Qn(r)&&Qn(o)}(e,t)||I(e.isAsyncPlaceholder)&&N(t.asyncFactory.error))}function bu(e,t,n){var r,o,i={};for(r=t;r<=n;++r)E(o=e[r].key)&&(i[o]=r);return i}var wu={create:_u,update:_u,destroy:function(e){_u(e,mu)}};function _u(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,r,o,i=e===mu,a=t===mu,s=Su(e.data.directives,e.context),c=Su(t.data.directives,t.context),u=[],l=[];for(n in c)r=s[n],o=c[n],r?(o.oldValue=r.value,o.oldArg=r.arg,Ou(o,"update",t,e),o.def&&o.def.componentUpdated&&l.push(o)):(Ou(o,"bind",t,e),o.def&&o.def.inserted&&u.push(o));if(u.length){var f=function(){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if(e&&e.data){var o=e.elm;if(t&&(o=t),o){var i=(null===(n=e.data)||void 0===n?void 0:n.attrs)||{};i.__ob__&&(i=ee({},i),e.data.attrs=i),Object.keys(i).forEach((function(e){o.setAttribute(e,i[e],{notToNative:!!r.notToNative})}))}}}(t,e,{notToNative:!0}),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e&&e.data){var r=e.elm;if(t&&(r=t),r){var o=e.data.staticStyle;o&&Object.keys(o).forEach((function(e){var t=o[e];t&&r.setStyle(Du(e),t,!!n.notToNative)}));var i=e.data.style;if(i){var a=i.__ob__;Array.isArray(i)&&(i=Ru(i),e.data.style=i),a&&(i=ee({},i),e.data.style=i),Object.keys(i).forEach((function(e){r.setStyle(Du(e),i[e],!!n.notToNative)}))}}}}(t,e,{notToNative:!0}),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e&&e.data){var r=e.data;if(r.staticClass||r.class){var o=e.elm;if(t&&(o=t),o){var i=Kn(e),a=o._transitionClasses;a&&(i=qn(i,Xn(a))),i!==o._prevClass&&(o.setAttribute("class",i,{notToNative:!!n.notToNative}),o._prevClass=i)}}}}(t,e,{notToNative:!0}))}var Hu=function(e){var t,n,r={},o=e.modules,i=e.nodeOps;for(t=0;td?h(e,N(n[y+1])?null:n[y+1].elm,n,f,y,r):f>y&&m(t,l,d)}(u,p,v,n,c):E(v)?(E(e.text)&&i.setTextContent(u,""),h(u,null,v,0,v.length-1,n)):E(p)?m(p,0,p.length-1):E(e.text)&&i.setTextContent(u,""):e.text!==t.text&&i.setTextContent(u,t.text),E(d)&&E(l=d.hook)&&E(l=l.postpatch)&&l(e,t)}}}function w(e,t,n){if(I(n)&&E(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r=0?e.moveChild(t,n):e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t),Oa(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.setText(t)},setAttribute:function(e,t,n){e.setAttribute(t,n)},setStyleScope:function(e,t){e.setStyleScope(t)}}),modules:Bu.concat($u)});function Wu(e,t){t!==e.attributes.defaultValue&&(e.attributes.defaultValue=t,e.setAttribute("text",t,{textUpdate:!0}))}var zu=function(e,t,n){t!==n&&e.setAttribute("defaultValue",t,{textUpdate:!0})},Yu={inserted:function(e,t){"ios"===Cc.Platform&&zu!==Wu&&(zu=Wu),"TextInput"===e.meta.component.name&&(e._vModifiers=t.modifiers,e.attributes.defaultValue=t.value,t.modifiers.lazy||e.addEventListener("change",(function(t){var n=t.value,r=new wa("input");r.value=n,e.dispatchEvent(r)})))},update:function(e,t){var n=t.value,r=t.oldValue;e.value=n,zu(e,n,r)}};function Ku(e,t,n,r){t?(n.data.show=!0,e.setStyle("display",r)):e.setStyle("display","none")}var Gu={bind:function(e,t,n){var r=t.value;void 0===e.style.display&&(e.style.display="block");var o="none"===e.style.display?"":e.style.display;e.__vOriginalDisplay=o,Ku(e,r,n,o)},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&Ku(e,r,n,e.__vOriginalDisplay)},unbind:function(e,t,n,r,o){o||(e.style.display=e.__vOriginalDisplay)}},qu=Object.freeze({__proto__:null,model:Yu,show:Gu}),Xu=['%c[Hippy-Vue "unspecified"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"],Ju=new pu;Rn.$document=Ju,Rn.prototype.$document=Ju,Rn.$Document=pu,Rn.$Event=wa,Rn.config.mustUseProp=function(e,t,n){var r=ba(e);return!!r.mustUseProp&&r.mustUseProp(t,n)},Rn.config.isReservedTag=ha,Rn.config.isUnknownElement=function(e){return t=e,!va.has(ya(t));var t},Rn.compile=_i,Rn.registerElement=ga,ee(Rn.options.directives,qu),Rn.prototype.__patch__=Hu,Rn.prototype.$mount=function(e,t){var n=this.$options;if(!n.render){var r=n.template;if(r&&"string"!=typeof r)return Ne("invalid template option: ".concat(r),this),this;if(r){var o=_i(r,{delimiters:n.delimiters,comments:n.comments},this),i=o.render,a=o.staticRenderFns;n.render=i,n.staticRenderFns=a}}return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=Le),yn(e,"beforeMount"),r=function(){e._update(e._render(),n)},new Nn(e,r,te,{before:function(){e._isMounted&&!e._isDestroyed&&yn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,yn(e,"mounted")),e}(this,e,t)},Rn.prototype.$start=function(e,t){var n,r=this;Oi(this),Mi(this.$options.beforeLoadStyle)&&(n=this.$options.beforeLoadStyle,Si=n),va.forEach((function(e){Rn.component(e.meta.component.name,e.meta.component)})),Ac.regist(this.$options.appName,(function(n){var o=n.__instanceId__;(r.$options.$superProps=n,r.$options.rootViewId=o,Ii.apply(void 0,Xu.concat(["Start",r.$options.appName,"with rootViewId",o,n])),r.$el)&&(r.$destroy(),Oi(new(Rn.extend(r.$options))(r.$options)));if(Mi(t)&&t(r,n),r.$mount(),"ios"===Cc.Platform){var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.iPhone,n={};if((null==t?void 0:t.statusBar)&&(n=t.statusBar),n.disabled)return null;var r=new uu("div"),o=Cc.Dimensions.screen.statusBarHeight;Cc.screenIsVertical?r.setStyle("height",o):r.setStyle("height",0);var i=4282431619;if("number"==typeof n.backgroundColor){var a=n;i=a.backgroundColor}if(r.setStyle("backgroundColor",i),"string"==typeof n.backgroundImage){var s=new uu("img");s.setStyle("width",Cc.Dimensions.screen.width),s.setStyle("height",o),s.setAttribute("src",e.statusBarOpts.backgroundImage),r.appendChild(s)}return r.addEventListener("layout",(function(){Cc.screenIsVertical?r.setStyle("height",o):r.setStyle("height",0)})),r}(r.$options);i&&(r.$el.childNodes.length?r.$el.insertBefore(i,r.$el.childNodes[0]):r.$el.appendChild(i))}Mi(e)&&e(r,n)}))};var Zu=1;Rn.component=function(e,t){return t?(j(t)&&(t.name=t.name||e,t=this.options._base.extend(t)),this.options.components[e]=t,t):this.options.components[e]},Rn.extend=function(e){e=e||{};var t=this,n=t.cid,r=e._Ctor||(e._Ctor={});if(r[n])return r[n];var o,i,a=e.name||t.options.name,s=function(e){this._init(e)};return(s.prototype=Object.create(t.prototype)).constructor=s,s.cid=Zu+=1,s.options=tt(t.options,e),s.super=t,s.options.props&&(i=(o=s).options.props,Object.keys(i).forEach((function(e){return In(o.prototype,"_props",e)}))),s.options.computed&&function(e){var t=e.options.computed;Object.keys(t).forEach((function(n){return Pn(e.prototype,n,t[n])}))}(s),s.extend=t.extend,s.mixin=t.mixin,s.use=t.use,se.forEach((function(e){s[e]=t[e]})),a&&(s.options.components[a]=s),s.superOptions=t.options,s.extendOptions=e,s.sealedOptions=ee({},s.options),r[n]=s,s},Rn.Native=Cc,Rn.getApp=$i,Rn.use((function(){Object.keys(pa).forEach((function(e){ga(e,pa[e])}))})),ue.devtools&&xe&&xe.emit("init",Rn);Rn.config._setBeforeRenderToNative=function(e,t){Mi(e)&&(1===t?xi=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))};var Qu,el=new Proxy(Rn,{construct:function(e,t){var n=i(e,b(t));return n}}),tl=function(){function e(t,n,r){var o=this;k(this,e),this.webSocketId=-1,Qu=$i(),this.url=t,this.readyState=0,this.webSocketCallbacks={},this.onWebSocketEvent=this.onWebSocketEvent.bind(this);var i=m({},r);if(Qu.$on("hippyWebsocketEvents",this.onWebSocketEvent),!t||"string"!=typeof t)throw new TypeError("Invalid WebSocket url");Array.isArray(n)&&n.length>0?i["Sec-WebSocket-Protocol"]=n.join(","):"string"==typeof n&&(i["Sec-WebSocket-Protocol"]=n);var a={headers:i,url:t};Cc.callNativeWithPromise("websocket","connect",a).then((function(e){e&&0===e.code&&"number"==typeof e.id&&(o.webSocketId=e.id)}))}return x(e,[{key:"close",value:function(e,t){1===this.readyState&&(this.readyState=2,Cc.callNative("websocket","close",{id:this.webSocketId,code:e,reason:t}))}},{key:"send",value:function(e){if(1===this.readyState){if("string"!=typeof e)throw new TypeError("Unsupported websocket data type: ".concat($(e)));Cc.callNative("websocket","send",{id:this.webSocketId,data:e})}}},{key:"onopen",set:function(e){this.webSocketCallbacks.onOpen=e}},{key:"onclose",set:function(e){this.webSocketCallbacks.onClose=e}},{key:"onerror",set:function(e){this.webSocketCallbacks.onError=e}},{key:"onmessage",set:function(e){this.webSocketCallbacks.onMessage=e}},{key:"onWebSocketEvent",value:function(e){if("object"===$(e)&&e.id===this.webSocketId){var t=e.type;if("string"==typeof t){"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,Qu.$off("hippyWebsocketEvents",this.onWebSocketEvent));var n=this.webSocketCallbacks[t];Mi(n)&&n(e.data)}}}}]),e}();e.process=e.process||{},e.process.env=e.process.env||{},e.WebSocket=tl,el.config.silent=!1,el.config.trimWhitespace=!0,function(e){bi=e}(el)}.call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/timers-browserify/main.js").setImmediate,n("./node_modules/process/browser.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 a(){throw new Error("clearTimeout has not been defined")}function s(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:a}catch(e){r=a}}();var c,u=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&p())}function p(){if(!l){var e=s(d);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f1)for(var n=1;n=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n("./node_modules/setimmediate/setImmediate.js"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/webpack/buildin/global.js":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},"./scripts/vendor.js":function(e,t,n){n("../../packages/hippy-vue/dist/index.js"),n("../../packages/hippy-vue-native-components/dist/index.js")},0:function(e,t,n){e.exports=n}}); \ No newline at end of file + */n.d(t,"default",(function(){return nl}));var $=Object.freeze({});function A(e){return null==e}function N(e){return null!=e}function E(e){return!0===e}function I(e){return"string"==typeof e||"number"==typeof e||"symbol"===O(e)||"boolean"==typeof e}function C(e){return null!==e&&"object"===O(e)}var T=Object.prototype.toString;function P(e){return"[object Object]"===T.call(e)}function j(e){return"[object RegExp]"===T.call(e)}function L(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function M(e){return N(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function D(e){return null==e?"":Array.isArray(e)||P(e)&&e.toString===T?JSON.stringify(e,null,2):String(e)}function R(e){var t=parseFloat(e);return isNaN(t)?e:t}function F(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o-1)return e.splice(n,1)}}var H=Object.prototype.hasOwnProperty;function W(e,t){return H.call(e,t)}function z(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var Y=/-(\w)/g,K=z((function(e){return e.replace(Y,(function(e,t){return t?t.toUpperCase():""}))})),G=z((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),q=/\B([A-Z])/g,X=z((function(e){return e.replace(q,"-$1").toLowerCase()}));var J=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function Z(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function Q(e,t){for(var n in t)e[n]=t[n];return e}function ee(e,t,n){}var te=function(e,t,n){return!1},ne=function(e){return e};function re(e,t){if(e===t)return!0;var n=C(e),r=C(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var o=Array.isArray(e),i=Array.isArray(t);if(o&&i)return e.length===t.length&&e.every((function(e,n){return re(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(o||i)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return re(e[n],t[n])}))}catch(e){return!1}}function oe(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=new Pe;return t.text=e,t.isComment=!0,t};function Le(e){return new Pe(void 0,void 0,void 0,String(e))}function Me(e){var t=new Pe(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var De=Array.prototype,Re=Object.create(De);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){var t=De[e];fe(Re,e,(function(){for(var n=arguments.length,r=new Array(n),o=0;o-1)if(i&&!W(o,"default"))a=!1;else if(""===a||a===X(e)){var c=at(String,o.type);(c<0||s0&&(Nt((o=e(o,"".concat(n||"","_").concat(r)))[0])&&Nt(a)&&(s[i]=Le(a.text+o[0].text),o.shift()),s.push.apply(s,o)):I(o)?Nt(a)?s[i]=Le(a.text+o):""!==o&&s.push(Le(o)):Nt(o)&&Nt(a)?s[i]=Le(a.text+o.text):(E(t._isVList)&&N(o.tag)&&A(o.key)&&N(n)&&(o.key="__vlist".concat(n,"_").concat(r,"__")),s.push(o)));return s}(e):void 0}function Nt(e){return N(e)&&N(e.text)&&!1===e.isComment}function Et(e,t){if(e){for(var n=Object.create(null),r=$e?Reflect.ownKeys(e):Object.keys(e),o=0;o0,i=e?!!e.$stable:!o,a=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(i&&n&&n!==$&&a===n.$key&&!o&&!n.$hasNormal)return n;for(var s in r={},e)e[s]&&"$"!==s[0]&&(r[s]=jt(t,s,e[s]))}else r={};for(var c in t)c in r||(r[c]=Lt(t,c));return e&&Object.isExtensible(e)&&(e._normalized=r),fe(r,"$stable",i),fe(r,"$key",a),fe(r,"$hasNormal",o),r}function jt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({}),t=(e=e&&"object"===O(e)&&!Array.isArray(e)?[e]:At(e))&&e[0];return e&&(!t||1===e.length&&t.isComment&&!Tt(t))?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function Lt(e,t){return function(){return e[t]}}function Mt(e,t){var n,r,o,i,a;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,o=e.length;rdocument.createEvent("Event").timeStamp&&(Sn=function(){return xn.now()})}function On(){var e,t;for(Sn(),_n=!0,yn.sort((function(e,t){return e.id-t.id})),kn=0;knkn&&yn[n].id>e.id;)n--;yn.splice(n+1,0,e)}else yn.push(e);wn||(wn=!0,bt(On))}}(this)}},{key:"run",value:function(){if(this.active){var e=this.get();if(e!==this.value||C(e)||this.deep){var t=this.value;if(this.value=e,this.user){var n='callback for watcher "'.concat(this.expression,'"');ct(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}}},{key:"evaluate",value:function(){this.value=this.get(),this.dirty=!1}},{key:"depend",value:function(){for(var e=this.deps.length;e--;)this.deps[e].depend()}},{key:"teardown",value:function(){if(this.active){this.vm._isBeingDestroyed||U(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}}}])}(),Nn={enumerable:!0,configurable:!0,get:ee,set:ee};function En(e,t,n){Nn.get=function(){return this[t][n]},Nn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Nn)}function In(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},o=e.$options._propKeys=[];e.$parent&&Be(!1);var i=function(i){o.push(i);var a=nt(i,t,n,e);We(r,i,a),i in e||En(e,"_props",i)};for(var a in t)i(a);Be(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?ee:J(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;P(t=e._data="function"==typeof t?function(e,t){Ce();try{return e.call(t,t)}catch(e){return st(e,t,"data()"),{}}finally{Te()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,o=(e.$options.methods,n.length);for(;o--;){var i=n[o];0,r&&W(r,i)||le(i)||En(e,"_data",i)}He(t,!0)}(e):He(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null);for(var r in t){var o=t[r],i="function"==typeof o?o:o.get;0,n[r]=new An(e,i||ee,ee,Cn),r in e||Tn(e,r,o)}}(e,t.computed),t.watch&&t.watch!==we&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var o=0;o-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!j(e)&&e.test(t)}function Bn(e,t){var n=e.cache,r=e.keys,o=e._vnode;for(var i in n){var a=n[i];if(a){var s=a.name;s&&!t(s)&&Un(n,i,r,o)}}}function Un(e,t,n,r){var o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,U(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=Ln++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=et(Mn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&dn(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,r=n&&n.context;e.$slots=It(t._renderChildren,r),e.$scopedSlots=$,e._c=function(t,n,r,o){return on(e,t,n,r,o,!1)},e.$createElement=function(t,n,r,o){return on(e,t,n,r,o,!0)};var o=n&&n.data;We(e,"$attrs",o&&o.attrs||$,null,!0),We(e,"$listeners",t._parentListeners||$,null,!0)}(t),mn(t,"beforeCreate"),function(e){var t=Et(e.$options.inject,e);t&&(Be(!1),Object.keys(t).forEach((function(n){We(e,n,t[n])})),Be(!0))}(t),In(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),mn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(Dn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=ze,e.prototype.$delete=Ye,e.prototype.$watch=function(e,t,n){if(P(t))return jn(this,e,t,n);(n=n||{}).user=!0;var r=new An(this,e,t,n);if(n.immediate){var o='callback for immediate watcher "'.concat(r.expression,'"');Ce(),ct(t,this,[r.value],this,o),Te()}return function(){r.teardown()}}}(Dn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var o=0,i=e.length;o1?Z(n):n;for(var r=Z(arguments,1),o='event handler for "'.concat(e,'"'),i=0,a=n.length;iparseInt(this.max)&&Un(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Un(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){Bn(e,(function(e){return Vn(t,e)}))})),this.$watch("exclude",(function(t){Bn(e,(function(e){return!Vn(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=function(e){if(Array.isArray(e))for(var t=0;t-1)return this;var n=Z(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=et(this.options,e),this}}(e),Rn(e),function(e){ae.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&P(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(Dn),Object.defineProperty(Dn.prototype,"$isServer",{get:ke}),Object.defineProperty(Dn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Dn,"FunctionalRenderContext",{value:Jt}),Dn.version="2.6.14",F("style,class");var zn=F("input,textarea,option,select,progress");function Yn(e){for(var t=e.data,n=e,r=e;N(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Kn(r.data,t));for(;N(n=n.parent);)n&&n.data&&(t=Kn(t,n.data));return function(e,t){if(N(e)||N(t))return Gn(e,qn(t));return""}(t.staticClass,t.class)}function Kn(e,t){return{staticClass:Gn(e.staticClass,t.staticClass),class:N(e.class)?[e.class,t.class]:t.class}}function Gn(e,t){return e?t?e+" "+t:e:t||""}function qn(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,o=e.length;r=0&&" "===(v=e.charAt(h));h--);v&&Qn.test(v)||(u=!0)}}else void 0===o?(p=r+1,o=e.slice(0,r).trim()):m();function m(){(i||(i=[])).push(e.slice(p,r).trim()),p=r+1}if(void 0===o?o=e.slice(0,r).trim():0!==p&&m(),i)for(r=0;r1&&(t[r[0].trim()]=r[1].trim())}})),t}));var br={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=hr(e,"style");n&&(e.staticStyle=JSON.stringify(gr(n)));var r=pr(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:".concat(e.staticStyle,",")),e.styleBinding&&(t+="style:(".concat(e.styleBinding,"),")),t}};var wr,_r,kr,Sr,xr,Or,$r=function(e){return e},Ar=F("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),Nr=F("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Er=F("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Ir=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Cr=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Tr="[a-zA-Z_][\\-\\.0-9_a-zA-Z".concat(ue.source,"]*"),Pr="((?:".concat(Tr,"\\:)?").concat(Tr,")"),jr=new RegExp("^<".concat(Pr)),Lr=/^\s*(\/?)>/,Mr=new RegExp("^<\\/".concat(Pr,"[^>]*>")),Dr=/^]+>/i,Rr=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Hr=/&(?:lt|gt|quot|amp|#39);/g,Wr=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,zr=F("pre,textarea",!0),Yr=function(e,t){return e&&zr(e)&&"\n"===t[0]};function Kr(e,t){var n=t?Wr:Hr;return e.replace(n,(function(e){return Ur[e]}))}function Gr(e,t){for(var n,r,o,i=[],a=t.expectHTML,s=t.isUnaryTag||te,c=t.canBeLeftOpenTag||te,u=0,l=function(){if(n=e,r&&Vr(r)){var o=0,l=r.toLowerCase(),p=Br[l]||(Br[l]=new RegExp("([\\s\\S]*?)(]*>)","i")),h=e.replace(p,(function(e,n,r){return o=r.length,Vr(l)||"noscript"===l||(n=n.replace(//g,"$1").replace(//g,"$1")),Yr(l,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));u+=e.length-h.length,e=h,d(l,u-o,u)}else{var v,m,y,g=e.indexOf("<");if(0===g){if(Rr.test(e)){var b=e.indexOf("--\x3e");if(b>=0)return t.shouldKeepComment&&t.comment(e.substring(4,b),u,u+b+3),f(b+3),0}if(Fr.test(e)){var w=e.indexOf("]>");if(w>=0)return f(w+2),0}var _=e.match(Dr);if(_)return f(_[0].length),0;var k=e.match(Mr);if(k){var S=u;return f(k[0].length),d(k[1],S,u),0}var x=function(){var t=e.match(jr);if(t){var n,r,o={tagName:t[1],attrs:[],start:u};for(f(t[0].length);!(n=e.match(Lr))&&(r=e.match(Cr)||e.match(Ir));)r.start=u,f(r[0].length),r.end=u,o.attrs.push(r);if(n)return o.unarySlash=n[1],f(n[0].length),o.end=u,o}}();if(x)return function(e){var n=e.tagName,o=e.unarySlash;a&&("p"===r&&Er(n)&&d(r),c(n)&&r===n&&d(n));for(var u=s(n)||!!o,l=e.attrs.length,f=new Array(l),p=0;p=0){for(m=e.slice(g);!(Mr.test(m)||jr.test(m)||Rr.test(m)||Fr.test(m)||(y=m.indexOf("<",1))<0);)g+=y,m=e.slice(g);v=e.substring(0,g)}g<0&&(v=e),v&&f(v.length),t.chars&&v&&t.chars(v,u-v.length,u)}if(e===n)return t.chars&&t.chars(e),1};e&&(0===(o=l())||1!==o););function f(t){u+=t,e=e.substring(t)}function d(e,n,o){var a,s;if(null==n&&(n=u),null==o&&(o=u),e)for(s=e.toLowerCase(),a=i.length-1;a>=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var c=i.length-1;c>=a;c--)t.end&&t.end(i[c].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}d()}function qr(e,t,n){var r=n||{},o=r.number,i="$$v";r.trim&&(i="(typeof ".concat("$$v"," === 'string'")+"? ".concat("$$v",".trim()")+": ".concat("$$v",")")),o&&(i="_n(".concat(i,")"));var a=Xr(t,i);e.model={value:"(".concat(t,")"),expression:JSON.stringify(t),callback:"function (".concat("$$v",") {").concat(a,"}")}}function Xr(e,t){var n=function(e){if(e=e.trim(),wr=e.length,e.indexOf("[")<0||e.lastIndexOf("]")-1?{exp:e.slice(0,Sr),key:'"'+e.slice(Sr+1)+'"'}:{exp:e,key:null};_r=e,Sr=xr=Or=0;for(;!Zr();)Qr(kr=Jr())?to(kr):91===kr&&eo(kr);return{exp:e.slice(0,xr),key:e.slice(xr+1,Or)}}(e);return null===n.key?"".concat(e,"=").concat(t):"$set(".concat(n.exp,", ").concat(n.key,", ").concat(t,")")}function Jr(){return _r.charCodeAt(++Sr)}function Zr(){return Sr>=wr}function Qr(e){return 34===e||39===e}function eo(e){var t=1;for(xr=Sr;!Zr();)if(Qr(e=Jr()))to(e);else if(91===e&&t++,93===e&&t--,0===t){Or=Sr;break}}function to(e){for(var t=e;!Zr()&&(e=Jr())!==t;);}var no,ro,oo,io,ao,so,co,uo,lo=/^@|^v-on:/,fo=o.env.VBIND_PROP_SHORTHAND?/^v-|^@|^:|^\.|^#/:/^v-|^@|^:|^#/,po=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,ho=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,vo=/^\(|\)$/g,mo=/^\[.*\]$/,yo=/:(.*)$/,go=/^:|^\.|^v-bind:/,bo=/^\./,wo=/\.[^.\]]+(?=[^\]]*$)/g,_o=/^v-slot(:|$)|^#/,ko=/[\r\n]/,So=/[ \f\t\r\n]+/g,xo=z($r);function Oo(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:To(t),rawAttrsMap:{},parent:n,children:[]}}function $o(e,t){no=t.warn||ir,so=t.isPreTag||te,co=t.mustUseProp||te,uo=t.getTagNamespace||te;var n=t.isReservedTag||te;(function(e){return!(!(e.component||e.attrsMap[":is"]||e.attrsMap["v-bind:is"])&&(e.attrsMap.is?n(e.attrsMap.is):n(e.tag)))}),oo=ar(t.modules,"transformNode"),io=ar(t.modules,"preTransformNode"),ao=ar(t.modules,"postTransformNode"),ro=t.delimiters;var r,o,i=[],a=!1!==t.preserveWhitespace,s=t.whitespace,c=!1,u=!1;function l(e){if(f(e),c||e.processed||(e=Ao(e,t)),i.length||e===r||r.if&&(e.elseif||e.else)&&Eo(r,{exp:e.elseif,block:e}),o&&!e.forbidden)if(e.elseif||e.else)a=e,(s=function(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}(o.children))&&s.if&&Eo(s,{exp:a.elseif,block:a});else{if(e.slotScope){var n=e.slotTarget||'"default"';(o.scopedSlots||(o.scopedSlots={}))[n]=e}o.children.push(e),e.parent=o}var a,s;e.children=e.children.filter((function(e){return!e.slotScope})),f(e),e.pre&&(c=!1),so(e.tag)&&(u=!1);for(var l=0;lc&&(s.push(i=e.slice(c,o)),a.push(JSON.stringify(i)));var u=er(r[1].trim());a.push("_s(".concat(u,")")),s.push({"@binding":u}),c=o+r[0].length}return c-1")+("true"===i?":(".concat(t,")"):":_q(".concat(t,",").concat(i,")"))),dr(e,"change","var $$a=".concat(t,",")+"$$el=$event.target,"+"$$c=$$el.checked?(".concat(i,"):(").concat(a,");")+"if(Array.isArray($$a)){"+"var $$v=".concat(r?"_n("+o+")":o,",")+"$$i=_i($$a,$$v);"+"if($$el.checked){$$i<0&&(".concat(Xr(t,"$$a.concat([$$v])"),")}")+"else{$$i>-1&&(".concat(Xr(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))"),")}")+"}else{".concat(Xr(t,"$$c"),"}"),null,!0)}(e,r,o);else if("input"===i&&"radio"===a)!function(e,t,n){var r=n&&n.number,o=pr(e,"value")||"null";o=r?"_n(".concat(o,")"):o,sr(e,"checked","_q(".concat(t,",").concat(o,")")),dr(e,"change",Xr(t,o),null,!0)}(e,r,o);else if("input"===i||"textarea"===i)!function(e,t,n){var r=e.attrsMap.type;0;var o=n||{},i=o.lazy,a=o.number,s=o.trim,c=!i&&"range"!==r,u=i?"change":"range"===r?"__r":"input",l="$event.target.value";s&&(l="$event.target.value.trim()");a&&(l="_n(".concat(l,")"));var f=Xr(t,l);c&&(f="if($event.target.composing)return;".concat(f));sr(e,"value","(".concat(t,")")),dr(e,u,f,null,!0),(s||a)&&dr(e,"blur","$forceUpdate()")}(e,r,o);else{if(!ce.isReservedTag(i))return qr(e,r,o),!1}return!0},text:function(e,t){t.value&&sr(e,"textContent","_s(".concat(t.value,")"),t)},html:function(e,t){t.value&&sr(e,"innerHTML","_s(".concat(t.value,")"),t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:Ar,mustUseProp:function(e,t,n){return"value"===n&&zn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},canBeLeftOpenTag:Nr,isReservedTag:function(e){return Xn(e)||Jn(e)},getTagNamespace:function(e){return Jn(e)?"svg":"math"===e?"math":void 0},staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(Mo)},Vo=z((function(e){return F("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function Bo(e,t){e&&(Do=Vo(t.staticKeys||""),Ro=t.isReservedTag||te,function e(t){if(t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||V(e.tag)||!Ro(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(Do)))}(t),1===t.type){if(!Ro(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n|^function(?:\s+[\w$]+)?\s*\(/,Ho=/\([^)]*?\);*$/,Wo=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,zo={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Yo={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Ko=function(e){return"if(".concat(e,")return null;")},Go={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Ko("$event.target !== $event.currentTarget"),ctrl:Ko("!$event.ctrlKey"),shift:Ko("!$event.shiftKey"),alt:Ko("!$event.altKey"),meta:Ko("!$event.metaKey"),left:Ko("'button' in $event && $event.button !== 0"),middle:Ko("'button' in $event && $event.button !== 1"),right:Ko("'button' in $event && $event.button !== 2")};function qo(e,t){var n=t?"nativeOn:":"on:",r="",o="";for(var i in e){var a=Xo(e[i]);e[i]&&e[i].dynamic?o+="".concat(i,",").concat(a,","):r+='"'.concat(i,'":').concat(a,",")}return r="{".concat(r.slice(0,-1),"}"),o?n+"_d(".concat(r,",[").concat(o.slice(0,-1),"])"):n+r}function Xo(e){if(!e)return"function(){}";if(Array.isArray(e))return"[".concat(e.map((function(e){return Xo(e)})).join(","),"]");var t=Wo.test(e.value),n=Uo.test(e.value),r=Wo.test(e.value.replace(Ho,""));if(e.modifiers){var o="",i="",a=[],s=function(){if(Go[c])i+=Go[c],zo[c]&&a.push(c);else if("exact"===c){var t=e.modifiers;i+=Ko(["ctrl","shift","alt","meta"].filter((function(e){return!t[e]})).map((function(e){return"$event.".concat(e,"Key")})).join("||"))}else a.push(c)};for(var c in e.modifiers)s();a.length&&(o+=function(e){return"if(!$event.type.indexOf('key')&&"+"".concat(e.map(Jo).join("&&"),")return null;")}(a)),i&&(o+=i);var u=t?"return ".concat(e.value,".apply(null, arguments)"):n?"return (".concat(e.value,").apply(null, arguments)"):r?"return ".concat(e.value):e.value;return"function($event){".concat(o).concat(u,"}")}return t||n?e.value:"function($event){".concat(r?"return ".concat(e.value):e.value,"}")}function Jo(e){var t=parseInt(e,10);if(t)return"$event.keyCode!==".concat(t);var n=zo[e],r=Yo[e];return"_k($event.keyCode,"+"".concat(JSON.stringify(e),",")+"".concat(JSON.stringify(n),",")+"$event.key,"+"".concat(JSON.stringify(r))+")"}var Zo={on:function(e,t){e.wrapListeners=function(e){return"_g(".concat(e,",").concat(t.value,")")}},bind:function(e,t){e.wrapData=function(n){return"_b(".concat(n,",'").concat(e.tag,"',").concat(t.value,",").concat(t.modifiers&&t.modifiers.prop?"true":"false").concat(t.modifiers&&t.modifiers.sync?",true":"",")")}},cloak:ee},Qo=S((function e(t){_(this,e),this.options=t,this.warn=t.warn||ir,this.transforms=ar(t.modules,"transformCode"),this.dataGenFns=ar(t.modules,"genData"),this.directives=Q(Q({},Zo),t.directives);var n=t.isReservedTag||te;this.maybeComponent=function(e){return!!e.component||!n(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1}));function ei(e,t){var n=new Qo(t),r=e?"script"===e.tag?"null":ti(e,n):'_c("div")';return{render:"with(this){return ".concat(r,"}"),staticRenderFns:n.staticRenderFns}}function ti(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return ni(e,t);if(e.once&&!e.onceProcessed)return ri(e,t);if(e.for&&!e.forProcessed)return ii(e,t);if(e.if&&!e.ifProcessed)return oi(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=ui(e,t),o="_t(".concat(n).concat(r?",function(){return ".concat(r,"}"):""),i=e.attrs||e.dynamicAttrs?di((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:K(e.name),value:e.value,dynamic:e.dynamic}}))):null,a=e.attrsMap["v-bind"];!i&&!a||r||(o+=",null");i&&(o+=",".concat(i));a&&(o+="".concat(i?"":",null",",").concat(a));return o+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:ui(t,n,!0);return"_c(".concat(e,",").concat(ai(t,n)).concat(r?",".concat(r):"",")")}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=ai(e,t));var o=e.inlineTemplate?null:ui(e,t,!0);n="_c('".concat(e.tag,"'").concat(r?",".concat(r):"").concat(o?",".concat(o):"",")")}for(var i=0;i>>0}(a)):"",")")}(e,e.scopedSlots,t),",")),e.model&&(n+="model:{value:".concat(e.model.value,",callback:").concat(e.model.callback,",expression:").concat(e.model.expression,"},")),e.inlineTemplate){var i=function(e,t){var n=e.children[0];0;if(n&&1===n.type){var r=ei(n,t.options);return"inlineTemplate:{render:function(){".concat(r.render,"},staticRenderFns:[").concat(r.staticRenderFns.map((function(e){return"function(){".concat(e,"}")})).join(","),"]}")}}(e,t);i&&(n+="".concat(i,","))}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b(".concat(n,',"').concat(e.tag,'",').concat(di(e.dynamicAttrs),")")),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function si(e){return 1===e.type&&("slot"===e.tag||e.children.some(si))}function ci(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return oi(e,t,ci,"null");if(e.for&&!e.forProcessed)return ii(e,t,ci);var r="_empty_"===e.slotScope?"":String(e.slotScope),o="function(".concat(r,"){")+"return ".concat("template"===e.tag?e.if&&n?"(".concat(e.if,")?").concat(ui(e,t)||"undefined",":undefined"):ui(e,t)||"undefined":ti(e,t),"}"),i=r?"":",proxy:true";return"{key:".concat(e.slotTarget||'"default"',",fn:").concat(o).concat(i,"}")}function ui(e,t,n,r,o){var i=e.children;if(i.length){var a=i[0];if(1===i.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?t.maybeComponent(a)?",1":",0":"";return"".concat((r||ti)(a,t)).concat(s)}var c=n?function(e,t){for(var n=0,r=0;re.length)&&(r=e.length),e.slice(r-t.length,r)===t}function Ri(e){var t=e;return/^assets/.test(t)&&(t="".concat("hpfile://","./").concat(t)),t}function Fi(e){return null==e}function Vi(e){return"string"==typeof e?""!==e.trim():null!=e}function Bi(e){return"string"!=typeof e?e:!gi||void 0===gi.config.trimWhitespace||gi.config.trimWhitespace?e.trim().replace(/( |Â)/g," "):e.replace(/( |Â)/g," ")}var Ui=Symbol.for("View"),Hi=Symbol.for("Image"),Wi=Symbol.for("ListView"),zi=Symbol.for("ListViewItem"),Yi=Symbol.for("Text"),Ki=Symbol.for("TextInput"),Gi=Symbol.for("WebView"),qi=Symbol.for("VideoPlayer"),Xi={[Ui]:"View",[Hi]:"Image",[Wi]:"ListView",[zi]:"ListViewItem",[Yi]:"Text",[Ki]:"TextInput",[Gi]:"WebView",[qi]:"VideoPlayer"};function Ji(){for(var e={},t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.type=e,!1===t&&(this.bubbles=!1),!1===n&&(this.cancelable=!1),this}}])}(),_a=function(){return S((function e(t){_(this,e),this.element=t,this.observers={}}),[{key:"getEventListeners",value:function(){return this.observers}},{key:"addEventListener",value:function(e,t,n){if("string"!=typeof e)throw new TypeError("Events name(s) must be string.");if(t&&!Li(t))throw new TypeError("callback must be function.");for(var r=e.split(","),o=0,i=r.length;o=0&&s.splice(c,1),0===s.length&&(this.observers[a]=void 0)}}else this.observers[a]=void 0}return this.observers}},{key:"emit",value:function(e){var t,n,r=e.type,o=this.observers[r];if(o)for(var i=o.length-1;i>=0;i-=1){var a=o[i];(null===(t=a.options)||void 0===t?void 0:t.once)&&o.splice(i,1),(null===(n=a.options)||void 0===n?void 0:n.thisArg)?a.callback.apply(a.options.thisArg,[e]):a.callback(e)}}},{key:"getEventList",value:function(e,t){var n=this.observers[e];return!n&&t&&(n=[],this.observers[e]=n),n}},{key:"indexOfListener",value:function(e,t,n){return e.findIndex((function(e){return n?e.callback===t&&re(e.options,n):e.callback===t}))}}])}(),ka=new Map;function Sa(e,t){ka.set(t,e)}function xa(e){return ka.get(e)||null}function Oa(t){!function(t,n){if(!e.requestIdleCallback)return setTimeout((function(){t({didTimeout:!1,timeRemaining:function(){return 1/0}})}),1);e.requestIdleCallback(t,n)}((function(e){(e.timeRemaining()>0||e.didTimeout)&&function e(t){var n;r=t.nodeId,ka.delete(r),null===(n=t.childNodes)||void 0===n||n.forEach((function(t){return e(t)}));var r}(t)}),{timeout:50})}function $a(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e[t],r=t;r-1){var f=new Da(i);if(Object.assign(f,{eventPhase:c,nativeParams:s||{}}),"onLayout"===o){var d=s.layout,p=d.x,h=d.y,v=d.height,m=d.width;f.top=h,f.left=p,f.bottom=h+v,f.right=p+m,f.width=m,f.height=v}else{var y=u._meta.component.processEventData;y&&y(f,o,s)}u.dispatchEvent(function(e,t,n){return function(e){return["onTouchDown","onTouchMove","onTouchEnd","onTouchCancel"].indexOf(e)>=0}(e)&&Object.assign(t,{touches:{0:{clientX:n.page_x,clientY:n.page_y},length:1}}),t}(o,f,s),l,t)}}catch(e){console.error("receiveComponentEvent error",e)}else Ii.apply(void 0,Ra.concat(["receiveComponentEvent","currentTargetNode or targetNode not exist"]))}else Ii.apply(void 0,Ra.concat(["receiveComponentEvent","nativeEvent or domEvent not exist"]))}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=Fa);var Va={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Ba=function(){for(var e=arguments.length,t=new Array(e),n=0;n255?255:t},Ya=function(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},Ka=function(e,t,n){var r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e},Ga=function(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=Ka(o,r,e+1/3),a=Ka(o,r,e),s=Ka(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8},qa=function(e){return(parseFloat(e)%360+360)%360/360},Xa=function(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100};function Ja(e){if("string"==typeof e&&-1!==e.indexOf("var("))return e;var t=function(e){var t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Wa.hex6.exec(e),Array.isArray(t)?parseInt("".concat(t[1],"ff"),16)>>>0:Object.hasOwnProperty.call(Va,e)?Va[e]:(t=Wa.rgb.exec(e),Array.isArray(t)?(za(t[1])<<24|za(t[2])<<16|za(t[3])<<8|255)>>>0:(t=Wa.rgba.exec(e))?(za(t[1])<<24|za(t[2])<<16|za(t[3])<<8|Ya(t[4]))>>>0:(t=Wa.hex3.exec(e))?parseInt("".concat(t[1]+t[1]+t[2]+t[2]+t[3]+t[3],"ff"),16)>>>0:(t=Wa.hex8.exec(e))?parseInt(t[1],16)>>>0:(t=Wa.hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Wa.hsl.exec(e))?(255|Ga(qa(t[1]),Xa(t[2]),Xa(t[3])))>>>0:(t=Wa.hsla.exec(e))?(Ga(qa(t[1]),Xa(t[2]),Xa(t[3]))|Ya(t[4]))>>>0:null))}(e);if(null===t)throw new Error("Bad color value: ".concat(e));return t=(t<<24|t>>>8)>>>0}var Za,Qa={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor",caretColor:"caret-color"};function es(){var e=Tc.Localization;return!!e&&e.direction===Za.RTL}!function(e){e[e.RTL=1]="RTL"}(Za||(Za={}));var ts=new Map;function ns(e,t){ts.set(e,t)}function rs(e){return ts.get(e)||{}}var os=function(){return S((function e(){_(this,e),this.specificity=0}),[{key:"lookupSort",value:function(e,t){e.sortAsUniversal(t||this)}},{key:"removeSort",value:function(e,t){e.removeAsUniversal(t||this)}},{key:"trackChanges",value:function(e,t){this.dynamic&&t.addAttribute(e,"")}}])}(),is=function(e){function t(){var e;return _(this,t),(e=u(this,t,arguments)).rarity=0,e}return d(t,e),S(t,[{key:"accumulateChanges",value:function(e,t){return this.dynamic?!!this.mayMatch(e)&&(this.trackChanges(e,t),!0):this.match(e)}},{key:"mayMatch",value:function(e){return this.match(e)}},{key:"match",value:function(e){return!1}}])}(os);function as(e){return e?" ".concat(e," "):""}var ss=function(e,t){var n=e.attributes[t];return void 0!==n?n:Array.isArray(e.styleScopeId)&&e.styleScopeId.includes(t)?t:void 0},cs=function(e){function t(e){var n;return _(this,t),(n=u(this,t)).specificity=e.reduce((function(e,t){return t.specificity+e}),0),n.head=e.reduce((function(e,t){return!e||e instanceof is&&t.rarity>e.rarity?t:e}),null),n.dynamic=e.some((function(e){return e.dynamic})),n.selectors=e,n}return d(t,e),S(t,[{key:"toString",value:function(){return"".concat(this.selectors.join("")).concat(as(this.combinator||""))}},{key:"match",value:function(e){return!!e&&this.selectors.every((function(t){return t.match(e)}))}},{key:"mayMatch",value:function(e){return!!e&&this.selectors.every((function(t){return t.mayMatch(e)}))}},{key:"trackChanges",value:function(e,t){this.selectors.forEach((function(n){return n.trackChanges(e,t)}))}},{key:"lookupSort",value:function(e,t){this.head&&this.head instanceof is&&this.head.lookupSort(e,t||this)}},{key:"removeSort",value:function(e,t){this.head&&this.head instanceof is&&this.head.removeSort(e,t||this)}}])}(is),us=function(){try{return!!new RegExp("foo","y")}catch(e){return!1}}(),ls={whiteSpaceRegEx:"\\s*",universalSelectorRegEx:"\\*",simpleIdentifierSelectorRegEx:"(#|\\.|:|\\b)([_-\\w][_-\\w\\d]*)",attributeSelectorRegEx:"\\[\\s*([_-\\w][_-\\w\\d]*)\\s*(?:(=|\\^=|\\$=|\\*=|\\~=|\\|=)\\s*(?:([_-\\w][_-\\w\\d]*)|\"((?:[^\\\\\"]|\\\\(?:\"|n|r|f|\\\\|0-9a-f))*)\"|'((?:[^\\\\']|\\\\(?:'|n|r|f|\\\\|0-9a-f))*)')\\s*)?\\]",combinatorRegEx:"\\s*(\\+|~|>)?\\s*"},fs={};function ds(e,t,n){var r="";us&&(r="gy"),fs[e]||(fs[e]=new RegExp(ls[e],r));var o,i=fs[e];if(us)i.lastIndex=n||0,o=i.exec(t);else{if(t=t.slice(n,t.length),!(o=i.exec(t)))return{result:null,regexp:i};i.lastIndex=n||0+o[0].length}return{result:o,regexp:i}}function ps(e,t){return function(e,t){var n=ds("universalSelectorRegEx",e,t),r=n.result,o=n.regexp;return r?{value:{type:"*"},start:t,end:o.lastIndex}:null}(e,t)||function(e,t){var n=ds("simpleIdentifierSelectorRegEx",e,t),r=n.result,o=n.regexp;if(!r)return null;var i=o.lastIndex;return{value:{type:r[1],identifier:r[2]},start:t,end:i}}(e,t)||function(e,t){var n=ds("attributeSelectorRegEx",e,t),r=n.result,o=n.regexp;if(!r)return null;var i=o.lastIndex,a=r[1];return r[2]?{value:{type:"[]",property:a,test:r[2],value:r[3]||r[4]||r[5]},start:t,end:i}:{value:{type:"[]",property:a},start:t,end:i}}(e,t)}function hs(e,t){var n=ps(e,t);if(!n)return null;for(var r=n.end,o=[];n;){o.push(n.value),n=ps(e,r=n.end)}return{start:t,end:r,value:o}}function vs(e,t){var n=ds("combinatorRegEx",e,t),r=n.result,o=n.regexp;return r?{start:t,end:us?o.lastIndex:t,value:r[1]||" "}:null}var ms=function(){return S((function e(t,n,r){var o=this;_(this,e),t.forEach((function(e){return e.ruleSet=o,null})),this.hash=r,this.selectors=t,this.declarations=n}),[{key:"toString",value:function(){return"".concat(this.selectors.join(", ")," {").concat(this.declarations.map((function(e,t){return"".concat(0===t?" ":"").concat(e.property,": ").concat(e.value)})).join("; "),"}")}},{key:"lookupSort",value:function(e){this.selectors.forEach((function(t){return t.lookupSort(e)}))}},{key:"removeSort",value:function(e){this.selectors.forEach((function(t){return t.removeSort(e)}))}}])}(),ys=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return _(this,t),(n=u(this,t)).attribute="",n.test="",n.value="",n.specificity=256,n.rarity=0,n.dynamic=!0,n.attribute=e,n.test=r,n.value=o,n}return d(t,e),S(t,[{key:"match",value:function(e){if(!this.test)return!(!e||!e.attributes)&&!Fi(ss(e,this.attribute));if(!this.value)return!1;if(!e||!e.attributes)return!1;var t="".concat(ss(e,this.attribute));if("="===this.test)return t===this.value;if("^="===this.test)return t.startsWith(this.value);if("$="===this.test)return t.endsWith(this.value);if("*="===this.test)return-1!==t.indexOf(this.value);if("~="===this.test){var n=t.split(" ");return n&&-1!==n.indexOf(this.value)}return"|="===this.test&&(t===this.value||t.startsWith("".concat(this.value,"-")))}},{key:"toString",value:function(){return"[".concat(this.attribute).concat(as(this.test)).concat(this.test&&this.value||"","]").concat(as(this.combinator||""))}},{key:"mayMatch",value:function(){return!0}},{key:"trackChanges",value:function(e,t){t.addAttribute(e,this.attribute)}}])}(is),gs=function(e){function t(e){var n;return _(this,t),(n=u(this,t)).specificity=256,n.rarity=2,n.dynamic=!1,n.className=e,n}return d(t,e),S(t,[{key:"toString",value:function(){return".".concat(this.className).concat(as(this.combinator||""))}},{key:"match",value:function(e){var t;return!!e&&(!!(null===(t=e.classList)||void 0===t?void 0:t.size)&&e.classList.has(this.className))}},{key:"lookupSort",value:function(e,t){e.sortByClass(this.className,t||this)}},{key:"removeSort",value:function(e,t){e.removeByClass(this.className,t||this)}}])}(is),bs=function(e){function t(e){var n;return _(this,t),(n=u(this,t)).specificity=65536,n.rarity=3,n.dynamic=!1,n.id=e,n}return d(t,e),S(t,[{key:"toString",value:function(){return"#".concat(this.id).concat(as(this.combinator||""))}},{key:"match",value:function(e){return!!e&&e.id===this.id}},{key:"lookupSort",value:function(e,t){e.sortById(this.id,null!=t?t:this)}},{key:"removeSort",value:function(e,t){e.removeById(this.id,null!=t?t:this)}}])}(is),ws=function(e){function t(e){var n;return _(this,t),(n=u(this,t)).specificity=0,n.rarity=4,n.dynamic=!1,n.combinator=void 0,n.err=e,n}return d(t,e),S(t,[{key:"toString",value:function(){return"")}},{key:"match",value:function(){return!1}}])}(is),_s=function(e){function t(e){var n;return _(this,t),(n=u(this,t)).specificity=256,n.rarity=0,n.dynamic=!0,n.cssPseudoClass=e,n}return d(t,e),S(t,[{key:"toString",value:function(){return":".concat(this.cssPseudoClass).concat(as(this.combinator||""))}},{key:"match",value:function(e){return!!e}},{key:"mayMatch",value:function(){return!0}},{key:"trackChanges",value:function(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}])}(is),ks=function(){return S((function e(t){_(this,e),this.selectors=t,this.dynamic=t.some((function(e){return e.dynamic}))}),[{key:"match",value:function(e){var t=e;if(t)return this.selectors.every((function(e,n){return 0!==n&&(t=null==t?void 0:t.parentNode),!!t&&!!e.match(t)}))?t:void 0}},{key:"mayMatch",value:function(e){var t=e;if(t)return this.selectors.every((function(e,n){return 0!==n&&(t=null==t?void 0:t.parentNode),!!t&&!!e.mayMatch(t)}))?t:void 0}},{key:"trackChanges",value:function(e,t){var n=e;this.selectors.forEach((function(e,r){0!==r&&(n=null==n?void 0:n.parentNode),n&&e.trackChanges(n,t)}))}}])}(),Ss=function(){return S((function e(t){_(this,e),this.selectors=t,this.dynamic=t.some((function(e){return e.dynamic}))}),[{key:"match",value:function(e){var t=e;if(t)return this.selectors.every((function(e,n){return 0!==n&&(t=null==t?void 0:t.nextSibling),!!t&&!!e.match(t)}))?t:void 0}},{key:"mayMatch",value:function(e){var t=e;if(t)return this.selectors.every((function(e,n){return 0!==n&&(t=null==t?void 0:t.nextSibling),!!t&&!!e.mayMatch(t)}))?t:void 0}},{key:"trackChanges",value:function(e,t){var n=e;this.selectors.forEach((function(e,r){0!==r&&(n=null==n?void 0:n.nextSibling),n&&e.trackChanges(n,t)}))}}])}(),xs=function(e){function t(e){var n;_(this,t),n=u(this,t);var r=[void 0," ",">","+"],o=[],i=[],a=[];n.selectors=e,n.selectors.reverse().forEach((function(e){if(-1===r.indexOf(e.combinator))throw new Error('Unsupported combinator "'.concat(e.combinator,'".'));void 0!==e.combinator&&" "!==e.combinator||a.push(i=[o=[]]),">"===e.combinator&&i.push(o=[]),o.push(e)})),n.groups=a.map((function(e){return new ks(e.map((function(e){return new Ss(e)})))}));var s=y(e,1)[0];return n.last=s,n.specificity=e.reduce((function(e,t){return t.specificity+e}),0),n.dynamic=e.some((function(e){return e.dynamic})),n}return d(t,e),S(t,[{key:"toString",value:function(){return this.selectors.join("")}},{key:"match",value:function(e){var t=e;return this.groups.every((function(n,r){if(0===r)return!!(t=n.match(e));for(var o=t;o=null==o?void 0:o.parentNode;)if(t=n.match(o))return!0;return!1}))}},{key:"lookupSort",value:function(e){this.last.lookupSort(e,this)}},{key:"removeSort",value:function(e){this.last.removeSort(e,this)}},{key:"accumulateChanges",value:function(e,t){var n=e;if(!this.dynamic)return this.match(n);var r=[],o=this.groups.every((function(t,o){if(0===o){var i=t.mayMatch(e);return r.push({left:e,right:e}),!!(n=i)}for(var a=e;a=a.parentNode;){var s=t.mayMatch(a);if(s)return r.push({left:a,right:void 0}),n=s,!0}return!1}));if(!o)return!1;if(!t)return o;for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;e.forEach((function(e){if(e){var n=e.id;e.eventList.forEach((function(e){var r,o=e.name,i=e.type,a=e.listener;r=Pa(o)?Ca[o]:ja(o),i===Ia&&t.removeEventListener(n,r,a),i===Ea&&(t.removeEventListener(n,r,a),t.addEventListener(n,r,a))}))}}))}function Fs(e,t){0}function Vs(t){if(Ms)if(Ms=!1,0!==Ds.length){var n=t.$nextTick,r=t.$options.rootViewId;n((function(){var t=function(e){for(var t=[],n=0;n0&&void 0!==arguments[0]?arguments[0]:[],t=$i();return e.map((function(e){var n=e.declarations.filter(As).map(Ns(t)),r=e.selectors.map(Cs);return new ms(r,n,e.hash)}))}(e.__HIPPY_VUE_STYLES__);Ts?Ts.append(t):Ts=new js(t),e.__HIPPY_VUE_STYLES__=void 0}return e.__HIPPY_VUE_DISPOSE_STYLES__&&(e.__HIPPY_VUE_DISPOSE_STYLES__.forEach((function(e){Ts.delete(e)})),e.__HIPPY_VUE_DISPOSE_STYLES__=void 0),Ts}function Us(e){var t={};return e.meta.component.defaultNativeProps&&Object.keys(e.meta.component.defaultNativeProps).forEach((function(n){if(void 0===e.getAttribute(n)){var r=e.meta.component.defaultNativeProps[n];Li(r)?t[n]=r(e):t[n]=r}})),Object.keys(e.attributes).forEach((function(n){var r=e.getAttribute(n);if(e.meta.component.attributeMaps&&e.meta.component.attributeMaps[n]){var o=e.meta.component.attributeMaps[n];if("string"!=typeof o)if(Li(o))t[n]=o(r);else{var i=o.name,a=o.propsValue,s=o.jointKey;Li(a)&&(r=a(r)),s?(t[s]=t[s]||{},Object.assign(t[s],{[i]:r})):t[i]=r}else t[o]=r}else t[n]=r})),e.meta.component.nativeProps&&Object.assign(t,e.meta.component.nativeProps),t}function Hs(e,t){"TextInput"===e.meta.component.name&&es()&&(t.textAlign||(t.textAlign="right"))}function Ws(e,t,n){"View"===e.meta.component.name&&("scroll"===n.overflowX&&n.overflowY,"scroll"===n.overflowY?t.name="ScrollView":"scroll"===n.overflowX&&(t.name="ScrollView",t.props.horizontal=!0,n.flexDirection=es()?"row-reverse":"row"),"ScrollView"===t.name&&(e.childNodes.length,e.childNodes.length&&e.childNodes[0].setStyle("collapsable",!1)),n.backgroundImage&&(n.backgroundImage=Ri(n.backgroundImage)))}function zs(e){var t=Object.create(null);try{Bs().query(e).selectors.forEach((function(n){(function(e,t){return!(!t||!e)&&e.match(t)})(n,e)&&n.ruleSet.declarations.forEach((function(e){t[e.property]=e.value}))}))}catch(e){console.error("getDomCss Error:",e)}return t}function Ys(e){if(e.props.__modalFirstChild__){var t=e.props.style;Object.keys(t).some((function(e){return"position"===e&&"absolute"===t[e]&&(["position","left","right","top","bottom"].forEach((function(e){return delete t[e]})),!0)}))}}function Ks(e){var t=void 0,n=e.events;if(n){var r=[];Object.keys(n).forEach((function(e){var t=n[e],o=t.name,i=t.type,a=t.isCapture,s=t.listener;r.push({name:o,type:i,isCapture:a,listener:s})})),t={id:e.nodeId,eventList:r}}return t}function Gs(e,t){var n,r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: ".concat(t.tagName));if(a)o=r=rs(t.nodeId);else{r=v(v({},r=zs(t)),t.style),Ai()();var s=Object.assign({},r);if(t.parentNode){var c=rs(t.parentNode.nodeId),u=["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"];u.forEach((function(e){!Vi(r[e])&&Vi(c[e])&&(r[e]=c[e])}))}ns(t.nodeId,r),o=Na(t)?r:s,t.meta.component.defaultNativeStyle&&(o=v(v({},t.meta.component.defaultNativeStyle),o))}var l={id:t.nodeId,pId:(null===(n=t.parentNode)||void 0===n?void 0:n.nodeId)||e,name:t.meta.component.name,props:v(v({},Us(t)),{},{style:o}),tagName:t.tagName};Ys(l),Ws(t,l,o),Hs(t,o);var f=Ks(t),d=void 0,p=[l,i];return[p,f,d]}function qs(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=[],i=[],a=[];return t.traverseChildren((function(t,r){var s=y(Gs(e,t,r),3),c=s[0],u=s[1],l=s[2];c&&o.push(c),u&&i.push(u),l&&a.push(l),"function"==typeof n&&n(t)}),r),[o,i,a]}function Xs(e,t){return 3===e.nodeId||e.id===t.slice(1-t.length)}function Js(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e&&t&&!t.meta.skipAddToDom){var r=Oi();if(r){var o=r.$options,i=o.rootViewId,a=o.rootView,s=Xs(e,a)&&!e.isMounted,c=e.isMounted&&!t.isMounted;if(s||c){var u=qs(i,s?e:t,(function(e){e.isMounted||(e.isMounted=!0),Sa(e,e.nodeId)}),n),l=y(u,3),f=l[0],d=l[1],p=l[2];Ds.push({type:Ls.createNode,nodes:f,eventNodes:d,printedNodes:p}),Vs(r)}}}}function Zs(e){if(e.isMounted){var t=Oi(),n=Ks(e);Ds.push({type:Ls.updateEvent,nodes:[],eventNodes:[n],printedNodes:[]}),Vs(t)}}function Qs(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.isMounted){var n=Oi(),r=n.$options.rootViewId,o=Gs(r,e,{},t),i=y(o,3),a=i[0],s=i[1];i[2];a&&(Ds.push({type:Ls.updateNode,nodes:a?[a]:[],eventNodes:s?[s]:[],printedNodes:[]}),Vs(n))}}function ec(e){if(e.isMounted){var t=Oi(),n=y(qs(t.$options.rootViewId,e),3),r=n[0],o=n[1],i=n[2];Ds.push({type:Ls.updateNode,nodes:r,eventNodes:o,printedNodes:i}),Vs(t)}}var tc,nc,rc=new Set,oc=!1,ic={exitApp:function(){Tc.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:function(e){return oc||(oc=!0,ic.initEventListener()),Tc.callNative("DeviceEventModule","setListenBackPress",!0),rc.add(e),{remove:function(){ic.removeListener(e)}}},removeListener:function(e){rc.delete(e),0===rc.size&&Tc.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener:function(){tc||(tc=Oi()),tc.$on("hardwareBackPress",(function(){var e=!0;Array.from(rc).reverse().every((function(t){return"function"!=typeof t||!t()||(e=!1,!1)})),e&&ic.exitApp()}))}},ac={exitApp:function(){},addListener:function(){return{remove:function(){}}},removeListener:function(){},initEventListener:function(){}},sc="android"===Hippy.device.platform.OS?ic:ac,cc=new Map,uc=function(){return S((function e(t,n){_(this,e),this.eventName=t,this.listener=n}),[{key:"remove",value:function(){this.eventName&&this.listener&&(lc(this.eventName,this.listener),this.listener=void 0)}}])}();function lc(e,t){if(t instanceof uc)t.remove();else{var n=e;"change"===e&&(n="networkStatusDidChange");var r=cc.get(t);r&&(nc||(nc=Oi()),nc.$off(n,r),cc.delete(t),cc.size<1&&Tc.callNative("NetInfo","removeListener",n))}}var fc=Object.freeze({__proto__:null,addEventListener:function(e,t){if("function"==typeof t){var n=e;return"change"===n&&(n="networkStatusDidChange"),0===cc.size&&Tc.callNative("NetInfo","addListener",n),nc||(nc=Oi()),nc.$on(n,t),cc.set(t,t),new uc(n,t)}},removeEventListener:lc,fetch:function(){return Tc.callNativeWithPromise("NetInfo","getCurrentConnectivity").then((function(e){return e.network_info}))},NetInfoRevoker:uc}),dc=Hippy,pc=dc.on,hc=dc.off,vc=dc.emit,mc=dc.bridge,yc=mc.callNative,gc=mc.callNativeWithPromise,bc=mc.callNativeWithCallbackId,wc=dc.device,_c=wc.platform,kc=_c.OS,Sc=_c.Localization,xc=void 0===Sc?{}:Sc,Oc=wc.screen.scale,$c=dc.device,Ac=dc.document,Nc=dc.register,Ec={},Ic=["%c[native]%c","color: red","color: auto"],Cc=function(e,t){var n={top:-1,left:-1,bottom:-1,right:-1,width:-1,height:-1};if(!e.isMounted||!e.nodeId)return Promise.resolve(n);var r=e.nodeId;return Ei.apply(void 0,Ic.concat(["callUIFunction",{nodeId:r,funcName:t,params:[]}])),new Promise((function(e){return Ac.callUIFunction(r,t,[],(function(t){if(!t||"object"!==O(t)||void 0===r)return e(n);var o=t.x,i=t.y,a=t.height,s=t.width;return e({top:i,left:o,width:s,height:a,bottom:i+a,right:o+s})}))}))},Tc={callNative:yc,callNativeWithPromise:gc,callNativeWithCallbackId:bc,UIManagerModule:Ac,ConsoleModule:e.ConsoleModule||e.console,on:pc,off:hc,emit:vc,PixelRatio:Oc,Platform:kc,Localization:xc,version:"unspecified",Cookie:{getAll:function(e){if(!e)throw new TypeError("Vue.Native.Cookie.getAll() must have url argument");return gc.call(this,"network","getCookie",e)},set:function(e,t,n){if(!e)throw new TypeError("Vue.Native.Cookie.getAll() must have url argument");if("string"!=typeof t)throw new TypeError("Vue.Native.Cookie.getAll() only receive string type of keyValue");var r="";if(n){if(!(n instanceof Date))throw new TypeError("Vue.Native.Cookie.getAll() only receive Date type of expires");r=n.toUTCString()}yc.call(this,"network","setCookie",e,t,r)}},Clipboard:{getString:function(){return gc.call(this,"ClipboardModule","getString")},setString:function(e){yc.call(this,"ClipboardModule","setString",e)}},get isIPhoneX(){if(!N(Ec.isIPhoneX)){var e=!1;"ios"===Tc.Platform&&(e=20!==Tc.Dimensions.screen.statusBarHeight),Ec.isIPhoneX=e}return Ec.isIPhoneX},get screenIsVertical(){return Tc.Dimensions.window.width1&&void 0!==arguments[1]||Tc.Platform;if(Number.isInteger(e))return e;var t=Ec.COLOR_PARSER||(Ec.COLOR_PARSER=Object.create(null));return t[e]||(t[e]=Ja(e)),t[e]},AsyncStorage:e.Hippy.asyncStorage,BackAndroid:sc,ImageLoader:{getSize:function(e){return gc.call(this,"ImageLoaderModule","getSize",e)},prefetch:function(e){yc.call(this,"ImageLoaderModule","prefetch",e)}},NetInfo:fc,getElemCss:zs},Pc=0;e.__GLOBAL__&&Number.isInteger(e.__GLOBAL__.nodeId)&&(Pc=e.__GLOBAL__.nodeId);var jc=function(){return S((function e(){_(this,e),this._ownerDocument=null,this._isMounted=!1,this.nodeId=((Pc+=1)%10==0&&(Pc+=1),Pc%10==0&&(Pc+=1),Pc),this.index=0,this.childNodes=[]}),[{key:"toString",value:function(){return this.constructor.name}},{key:"firstChild",get:function(){return this.childNodes.length?this.childNodes[0]:null}},{key:"lastChild",get:function(){var e=this.childNodes.length;return e?this.childNodes[e-1]:null}},{key:"meta",get:function(){return this._meta?this._meta:{}}},{key:"ownerDocument",get:function(){if(this._ownerDocument)return this._ownerDocument;for(var e=this;"DocumentNode"!==e.constructor.name&&(e=e.parentNode););return this._ownerDocument=e,e}},{key:"isMounted",get:function(){return this._isMounted},set:function(e){this._isMounted=e}},{key:"insertBefore",value:function(e,t){if(!e)throw new Error("Can't insert child.");if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't insert child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't insert child, because it already has a different parent.");var n=this.childNodes.indexOf(t),r=t;return t.meta.skipAddToDom&&(r=$a(this.childNodes,n)),e.parentNode=this,e.nextSibling=t,e.prevSibling=this.childNodes[n-1],this.childNodes[n-1]&&(this.childNodes[n-1].nextSibling=e),t.prevSibling=e,this.childNodes.splice(n,0,e),r.meta.skipAddToDom?Js(this,e):Js(this,e,{refId:r.nodeId,relativeToRef:Aa})}},{key:"moveChild",value:function(e,t){if(!e)throw new Error("Can't move child.");if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't move child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't move child, because it already has a different parent.");var n=this.childNodes.indexOf(e),r=this.childNodes.indexOf(t),o=t;if(t.meta.skipAddToDom&&(o=$a(this.childNodes,r)),r===n)return e;e.nextSibling=t,e.prevSibling=t.prevSibling,t.prevSibling=e,this.childNodes[r-1]&&(this.childNodes[r-1].nextSibling=e),this.childNodes[r+1]&&(this.childNodes[r+1].prevSibling=e),this.childNodes[n-1]&&(this.childNodes[n-1].nextSibling=this.childNodes[n+1]),this.childNodes[n+1]&&(this.childNodes[n+1].prevSibling=this.childNodes[n-1]),this.childNodes.splice(n,1);var i=this.childNodes.indexOf(t);return this.childNodes.splice(i,0,e),o.meta.skipAddToDom?Js(this,e):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if((null==e?void 0:e.meta)&&Li(e.meta.removeChild)&&e.meta.removeChild(e,t),t&&!t.meta.skipAddToDom&&(!n||n.refId!==t.nodeId)){var r=Oi(),o=r.$options.rootViewId,i={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:o},a=[[i,n]],s=[];Ds.push({printedNodes:s,type:Ls.moveNode,nodes:a,eventNodes:[]}),Vs(r)}}(this,e,{refId:o.nodeId,relativeToRef:Aa})}},{key:"appendChild",value:function(e){if(!e)throw new Error("Can't append child.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");this.lastChild!==e&&(e.isMounted&&this.removeChild(e),e.parentNode=this,this.lastChild&&(e.prevSibling=this.lastChild,this.lastChild.nextSibling=e),this.childNodes.push(e),Js(this,e))}},{key:"removeChild",value:function(e){if(!e)throw new Error("Can't remove child.");if(!e.parentNode)throw new Error("Can't remove child, because it has no parent.");if(e.parentNode!==this)throw new Error("Can't remove child, because it has a different parent.");if(!e.meta.skipAddToDom){e.prevSibling&&(e.prevSibling.nextSibling=e.nextSibling),e.nextSibling&&(e.nextSibling.prevSibling=e.prevSibling),e.prevSibling=void 0,e.nextSibling=void 0;var t=this.childNodes.indexOf(e);this.childNodes.splice(t,1),function(e,t){if(t&&!t.meta.skipAddToDom){t.isMounted=!1;var n=Oi(),r=n.$options.rootViewId,o={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},i=[[o,{}]],a=[];Ds.push({printedNodes:a,type:Ls.deleteNode,nodes:i,eventNodes:[]}),Vs(n)}}(0,e)}}},{key:"findChild",value:function(e){if(e(this))return this;if(this.childNodes.length)for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:Fc,n=parseFloat(e),r=e||"",o=e.split("."),i=y(o,2),a=i[1];switch(a&&a.length>2&&(r=n.toFixed(2)),t){case Dc:r="".concat((360*n).toFixed(2));break;case Rc:r="".concat((180/Math.PI*n).toFixed(2))}return r}(a,s):i&&void 0!==Mc[i]&&(r=Mc[i]),r}}function ou(e){var t=y((e||"").replace(/\s+/g," ").trim().split(/\s+(?![^(]*?\))/),2),n=t[0],r=t[1],o=/^([+-]?\d+\.?\d*)%$/g;return!n||o.exec(n)||r?n&&o.exec(r)?{ratio:parseFloat(r.split("%")[0])/100,color:Tc.parseColor(n)}:void 0:{color:Tc.parseColor(n)}}function iu(e,t,n){delete n[e],au(e,t,n);var r=t,o=e;if(0===t.indexOf("linear-gradient")){o="linearGradient";var i=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),a=[];r={},i.forEach((function(e,t){if(0===t){var n=ru(e);if(n)r.angle=n;else{r.angle="180";var o=ou(e);o&&a.push(o)}}else{var i=ou(e);i&&a.push(i)}})),r.colorStopList=a}else{var s=/(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t);if(s&&s.length>1){var c=y(s,2);r=c[1]}}return[o,r]}function au(e,t,n){"backgroundImage"===e&&n.linearGradient&&delete n.linearGradient}function su(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[nu[e]]:t}),["textShadowOffset",n.textShadowOffset]}function cu(e,t,n){void 0===t&&(delete n[e],au(e,0,n),function(e,t,n){"textShadowOffsetX"!==e&&"textShadowOffsetY"!==e||!n.textShadowOffset||(delete n.textShadowOffset[nu[e]],0===Object.keys(n.textShadowOffset).length&&delete n.textShadowOffset)}(e,0,n))}function uu(e,t){if("string"==typeof e)for(var n=e.split(","),r=0,o=n.length;r2&&void 0!==arguments[2]?arguments[2]:{};try{var r=e,o=t;if("boolean"==typeof this.attributes[r]&&""===o&&(o=!0),void 0===r)return void(!n.notToNative&&Qs(this));switch(r){case Bc:var i=new Set(o.split(" ").filter((function(e){return e.trim()})));if(Mi(this.classList,i))return;return this.classList=i,void(!n.notToNative&&ec(this));case Uc:if(o===this.id)return;return this.id=o,void(!n.notToNative&&ec(this));case Hc:case Wc:case zc:case Yc:if("string"!=typeof o)try{o=o.toString()}catch(e){"Property ".concat(r," must be string:").concat(e.message)}n&&n.textUpdate||(o=Bi(o)),o=ji(o);break;case Kc:if("ios"!==Tc.Platform)return;break;case Gc:case qc:r="caret-color",o=Tc.parseColor(o);break;case Xc:r="breakStrategy";break;case Jc:case Zc:r="placeholderTextColor",o=Tc.parseColor(o);break;case Qc:case eu:r="underlineColorAndroid",o=Tc.parseColor(o);break;case tu:var a=o;void 0!==a.color&&(a.color=Tc.parseColor(a.color)),r="nativeBackgroundAndroid",o=a}if(this.attributes[r]===o)return;this.attributes[r]=o,"function"==typeof this.filterAttribute&&this.filterAttribute(this.attributes),!n.notToNative&&Qs(this,n.notUpdateStyle)}catch(e){0}}},{key:"removeAttribute",value:function(e){delete this.attributes[e]}},{key:"setStyles",value:function(e){var t=this;e&&"object"===O(e)&&0!==Object.keys(e).length&&(Object.keys(e).forEach((function(n){var r=e[n];t.setStyle(n,r,!0)})),lu.some((function(t){return Object.prototype.hasOwnProperty.call(e,t)}))?ec(this):Qs(this))}},{key:"setStyle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e,o=t;if(!this.getAttribute(Vc)){var i=this.beforeLoadStyle({property:e,value:t});o=i.value,r=i.property}if(void 0===t)return cu(r,o,this.style),void(n||Qs(this));switch(r){case"fontWeight":"string"!=typeof o&&(o=o.toString());break;case"backgroundImage":var a=iu(r,o,this.style),s=y(a,2);r=s[0],o=s[1];break;case"textShadowOffsetX":case"textShadowOffsetY":var c=su(r,o,this.style),u=y(c,2);r=u[0],o=u[1];break;case"textShadowOffset":var l=o||{},f=l.x,d=void 0===f?0:f,p=l.width,h=void 0===p?0:p,v=l.y,m=void 0===v?0:v,g=l.height,b=void 0===g?0:g;o={width:d||h,height:m||b};break;default:Object.prototype.hasOwnProperty.call(Qa,r)&&(r=Qa[r]),"string"==typeof o&&(o=o.trim(),o=r.toLowerCase().indexOf("color")>=0?Tc.parseColor(o):Di(o,"px")?parseFloat(o.slice(0,o.length-2)):Pi(o))}null!=o&&this.style[r]!==o&&(this.style[r]=o,n||(lu.indexOf(r)>=0?ec(this):Qs(this)))}},{key:"setNativeProps",value:function(e){if(e){var t=e.style;this.setStyles(t)}}},{key:"repaintWithChildren",value:function(){ec(this)}},{key:"setStyleScope",value:function(e){"string"!=typeof e&&(e=e.toString()),e&&!this.scopeIdList.includes(e)&&this.scopeIdList.push(e)}},{key:"styleScopeId",get:function(){return this.scopeIdList}},{key:"isTextNode",value:function(e){return(null==e?void 0:e.meta.symbol)===Yi}},{key:"appendChild",value:function(e){(null==e?void 0:e.meta.symbol)===Yi&&e instanceof Lc&&this.setText(e.text,{notToNative:!0}),i(t,"appendChild",this,3)([e])}},{key:"insertBefore",value:function(e,n){this.isTextNode(e)&&e instanceof Lc&&this.setText(e.text,{notToNative:!0}),i(t,"insertBefore",this,3)([e,n])}},{key:"moveChild",value:function(e,n){this.isTextNode(e)&&e instanceof Lc&&this.setText(e.text,{notToNative:!0}),i(t,"moveChild",this,3)([e,n])}},{key:"removeChild",value:function(e){this.isTextNode(e)&&e instanceof Lc&&this.setText("",{notToNative:!0}),i(t,"removeChild",this,3)([e])}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"textarea"===this.tagName?this.setAttribute("value",e,{notToNative:!!t.notToNative}):this.setAttribute("text",e,{notToNative:!!t.notToNative})}},{key:"setListenerHandledType",value:function(e,t){this.events[e]&&(this.events[e].handledType=t)}},{key:"isListenerHandled",value:function(e,t){return!this.events[e]||t===this.events[e].handledType}},{key:"getNativeEventName",value:function(e){var t="on".concat(Ci(e));if(this.meta.component){var n=this.meta.component.eventNamesMap;(null==n?void 0:n[e])&&(t=n[e])}return t}},{key:"addEventListener",value:function(e,t,n){var r=this;if(this._emitter||(this._emitter=new _a(this)),"scroll"===e&&!(this.getAttribute("scrollEventThrottle")>0)){this.attributes.scrollEventThrottle=200}if("function"==typeof this.polyfillNativeEvents){var o=this.polyfillNativeEvents(La,e,t,n);e=o.eventNames,t=o.callback,n=o.options}this._emitter.addEventListener(e,t,n),uu(e,(function(e){var t,n,o=r.getNativeEventName(e);r.events[o]?r.events[o]&&r.events[o].type!==Ea&&(r.events[o].type=Ea):r.events[o]={name:o,type:Ea,listener:(t=o,n=e,function(e){var r=e.id,o=e.currentId,i=e.params,a=e.eventPhase;Fa.receiveComponentEvent({id:r,nativeName:t,originalName:n,currentId:o,params:i,eventPhase:a},e)}),isCapture:!1}})),Zs(this)}},{key:"removeEventListener",value:function(e,t,n){var r=this;if(!this._emitter)return null;if("function"==typeof this.polyfillNativeEvents){var o=this.polyfillNativeEvents(Ma,e,t,n);e=o.eventNames,t=o.callback,n=o.options}var i=this._emitter.removeEventListener(e,t,n);return uu(e,(function(e){var t=r.getNativeEventName(e);r.events[t]&&(r.events[t].type=Ia)})),Zs(this),i}},{key:"dispatchEvent",value:function(e,t,n){if(!(e instanceof wa))throw new Error("dispatchEvent method only accept Event instance");e.currentTarget=this,e.target||(e.target=t||this,"string"==typeof e.value&&e.target&&(e.target.value=e.value)),this._emitter&&this._emitter.emit(e),!e.bubbles&&n&&n.stopPropagation()}},{key:"getBoundingClientRect",value:function(){return Tc.measureInWindow(this)}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;if("number"==typeof e&&"number"==typeof t){var r=n;!1===r&&(r=0),Tc.callUIFunction(this,"scrollToWithOptions",[{x:e,y:t,duration:r}])}}},{key:"scrollTo",value:function(e,t,n){var r=n;if("object"===O(e)&&e){var o=e.left,i=e.top,a=e.behavior,s=void 0===a?"auto":a;r=e.duration,this.scrollToPosition(o,i,"none"===s?0:r)}else this.scrollToPosition(e,t,n)}},{key:"setPressed",value:function(e){Tc.callUIFunction(this,"setPressed",[e])}},{key:"setHotspot",value:function(e,t){Tc.callUIFunction(this,"setHotspot",[e,t])}}])}(jc),du=function(e){function t(e){var n;return _(this,t),(n=u(this,t,["comment"])).text=e,n._meta={symbol:Yi,skipAddToDom:!0},n}return d(t,e),S(t)}(fu),pu=function(e){function t(){return _(this,t),u(this,t,arguments)}return d(t,e),S(t,[{key:"getValue",value:function(){var e=this;return new Promise((function(t){return Tc.callUIFunction(e,"getValue",(function(e){return t(e.text)}))}))}},{key:"setValue",value:function(e){Tc.callUIFunction(this,"setValue",[e])}},{key:"focus",value:function(){Tc.callUIFunction(this,"focusTextInput",[])}},{key:"blur",value:function(){Tc.callUIFunction(this,"blurTextInput",[])}},{key:"isFocused",value:function(){var e=this;return new Promise((function(t){return Tc.callUIFunction(e,"isFocused",(function(e){return t(e.value)}))}))}},{key:"clear",value:function(){Tc.callUIFunction(this,"clear",[])}},{key:"showInputMethod",value:function(){}},{key:"hideInputMethod",value:function(){}}])}(fu),hu=function(e){function t(){return _(this,t),u(this,t,arguments)}return d(t,e),S(t,[{key:"scrollToIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];"number"==typeof e&&"number"==typeof t&&Tc.callUIFunction(this,"scrollToIndex",[e,t,n])}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];"number"==typeof e&&"number"==typeof t&&Tc.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}])}(fu),vu=function(e){function t(){var e;return _(this,t),(e=u(this,t)).documentElement=new fu("document"),e}return d(t,e),S(t,null,[{key:"createComment",value:function(e){return new du(e)}},{key:"createElement",value:function(e){switch(e){case"input":case"textarea":return new pu(e);case"ul":return new hu(e);default:return new fu(e)}}},{key:"createElementNS",value:function(e,t){return new fu("".concat(e,":").concat(t))}},{key:"createTextNode",value:function(e){return new Lc(e)}},{key:"createEvent",value:function(e){return new wa(e)}}])}(jc),mu={create:function(e,t){yu(t)},update:function(e,t){e.data.ref!==t.data.ref&&(yu(e,!0),yu(t))},destroy:function(e){yu(e,!0)}};function yu(e,t){var n=e.data.ref;if(N(n)){var r=e.context,o=e.componentInstance||e.elm,i=r.$refs;t?Array.isArray(i[n])?U(i[n],o):i[n]===o&&(i[n]=void 0):e.data.refInFor?Array.isArray(i[n])?i[n].indexOf(o)<0&&i[n].push(o):i[n]=[o]:i[n]=o}}var gu=new Pe("",{},[]),bu=["create","activate","update","remove","destroy"];function wu(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&N(e.data)===N(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,r=N(n=e.data)&&N(n=n.attrs)&&n.type,o=N(n=t.data)&&N(n=n.attrs)&&n.type;return r===o||Zn(r)&&Zn(o)}(e,t)||E(e.isAsyncPlaceholder)&&A(t.asyncFactory.error))}function _u(e,t,n){var r,o,i={};for(r=t;r<=n;++r)N(o=e[r].key)&&(i[o]=r);return i}var ku={create:Su,update:Su,destroy:function(e){Su(e,gu)}};function Su(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,r,o,i=e===gu,a=t===gu,s=Ou(e.data.directives,e.context),c=Ou(t.data.directives,t.context),u=[],l=[];for(n in c)r=s[n],o=c[n],r?(o.oldValue=r.value,o.oldArg=r.arg,Au(o,"update",t,e),o.def&&o.def.componentUpdated&&l.push(o)):(Au(o,"bind",t,e),o.def&&o.def.inserted&&u.push(o));if(u.length){var f=function(){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if(e&&e.data){var o=e.elm;if(t&&(o=t),o){var i=(null===(n=e.data)||void 0===n?void 0:n.attrs)||{};i.__ob__&&(i=Q({},i),e.data.attrs=i),Object.keys(i).forEach((function(e){o.setAttribute(e,i[e],{notToNative:!!r.notToNative})}))}}}(t,e,{notToNative:!0}),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e&&e.data){var r=e.elm;if(t&&(r=t),r){var o=e.data.staticStyle;o&&Object.keys(o).forEach((function(e){var t=o[e];t&&r.setStyle(Fu(e),t,!!n.notToNative)}));var i=e.data.style;if(i){var a=i.__ob__;Array.isArray(i)&&(i=Vu(i),e.data.style=i),a&&(i=Q({},i),e.data.style=i),Object.keys(i).forEach((function(e){r.setStyle(Fu(e),i[e],!!n.notToNative)}))}}}}(t,e,{notToNative:!0}),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e&&e.data){var r=e.data;if(r.staticClass||r.class){var o=e.elm;if(t&&(o=t),o){var i=Yn(e),a=o._transitionClasses;a&&(i=Gn(i,qn(a))),i!==o._prevClass&&(o.setAttribute("class",i,{notToNative:!!n.notToNative}),o._prevClass=i)}}}}(t,e,{notToNative:!0}))}var zu=function(e){var t,n,r={},o=e.modules,i=e.nodeOps;for(t=0;td?h(e,A(n[y+1])?null:n[y+1].elm,n,f,y,r):f>y&&m(t,l,d)}(u,p,v,n,c):N(v)?(N(e.text)&&i.setTextContent(u,""),h(u,null,v,0,v.length-1,n)):N(p)?m(p,0,p.length-1):N(e.text)&&i.setTextContent(u,""):e.text!==t.text&&i.setTextContent(u,t.text),N(d)&&N(l=d.hook)&&N(l=l.postpatch)&&l(e,t)}}}function w(e,t,n){if(E(n)&&N(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r=0?e.moveChild(t,n):e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t),Oa(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.setText(t)},setAttribute:function(e,t,n){e.setAttribute(t,n)},setStyleScope:function(e,t){e.setStyleScope(t)}}),modules:Hu.concat(Nu)});function Yu(e,t){t!==e.attributes.defaultValue&&(e.attributes.defaultValue=t,e.setAttribute("text",t,{textUpdate:!0}))}var Ku=function(e,t,n){t!==n&&e.setAttribute("defaultValue",t,{textUpdate:!0})},Gu={inserted:function(e,t){"ios"===Tc.Platform&&Ku!==Yu&&(Ku=Yu),"TextInput"===e.meta.component.name&&(e._vModifiers=t.modifiers,e.attributes.defaultValue=t.value,t.modifiers.lazy||e.addEventListener("change",(function(t){var n=t.value,r=new wa("input");r.value=n,e.dispatchEvent(r)})))},update:function(e,t){var n=t.value,r=t.oldValue;e.value=n,Ku(e,n,r)}};function qu(e,t,n,r){t?(n.data.show=!0,e.setStyle("display",r)):e.setStyle("display","none")}var Xu={bind:function(e,t,n){var r=t.value;void 0===e.style.display&&(e.style.display="block");var o="none"===e.style.display?"":e.style.display;e.__vOriginalDisplay=o,qu(e,r,n,o)},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&qu(e,r,n,e.__vOriginalDisplay)},unbind:function(e,t,n,r,o){o||(e.style.display=e.__vOriginalDisplay)}},Ju=Object.freeze({__proto__:null,model:Gu,show:Xu}),Zu=['%c[Hippy-Vue "unspecified"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"],Qu=new vu;Dn.$document=Qu,Dn.prototype.$document=Qu,Dn.$Document=vu,Dn.$Event=wa,Dn.config.mustUseProp=function(e,t,n){var r=ba(e);return!!r.mustUseProp&&r.mustUseProp(t,n)},Dn.config.isReservedTag=ha,Dn.config.isUnknownElement=function(e){return t=e,!va.has(ya(t));var t},Dn.compile=wi,Dn.registerElement=ga,Q(Dn.options.directives,Ju),Dn.prototype.__patch__=zu,Dn.prototype.$mount=function(e,t){var n=this.$options;if(!n.render){var r=n.template;if(r&&"string"!=typeof r)return Ae("invalid template option: ".concat(r),this),this;if(r){var o=wi(r,{delimiters:n.delimiters,comments:n.comments},this),i=o.render,a=o.staticRenderFns;n.render=i,n.staticRenderFns=a}}return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=je),mn(e,"beforeMount"),r=function(){e._update(e._render(),n)},new An(e,r,ee,{before:function(){e._isMounted&&!e._isDestroyed&&mn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,mn(e,"mounted")),e}(this,e,t)},Dn.prototype.$start=function(e,t){var n,r=this;xi(this),Li(this.$options.beforeLoadStyle)&&(n=this.$options.beforeLoadStyle,ki=n),va.forEach((function(e){Dn.component(e.meta.component.name,e.meta.component)})),Nc.regist(this.$options.appName,(function(n){var o=n.__instanceId__;(r.$options.$superProps=n,r.$options.rootViewId=o,Ei.apply(void 0,Zu.concat(["Start",r.$options.appName,"with rootViewId",o,n])),r.$el)&&(r.$destroy(),xi(new(Dn.extend(r.$options))(r.$options)));if(Li(t)&&t(r,n),r.$mount(),"ios"===Tc.Platform){var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.iPhone,n={};if((null==t?void 0:t.statusBar)&&(n=t.statusBar),n.disabled)return null;var r=new fu("div"),o=Tc.Dimensions.screen.statusBarHeight;Tc.screenIsVertical?r.setStyle("height",o):r.setStyle("height",0);var i=4282431619;if("number"==typeof n.backgroundColor){var a=n;i=a.backgroundColor}if(r.setStyle("backgroundColor",i),"string"==typeof n.backgroundImage){var s=new fu("img");s.setStyle("width",Tc.Dimensions.screen.width),s.setStyle("height",o),s.setAttribute("src",e.statusBarOpts.backgroundImage),r.appendChild(s)}return r.addEventListener("layout",(function(){Tc.screenIsVertical?r.setStyle("height",o):r.setStyle("height",0)})),r}(r.$options);i&&(r.$el.childNodes.length?r.$el.insertBefore(i,r.$el.childNodes[0]):r.$el.appendChild(i))}Li(e)&&e(r,n)}))};var el=1;Dn.component=function(e,t){return t?(P(t)&&(t.name=t.name||e,t=this.options._base.extend(t)),this.options.components[e]=t,t):this.options.components[e]},Dn.extend=function(e){e=e||{};var t=this,n=t.cid,r=e._Ctor||(e._Ctor={});if(r[n])return r[n];var o,i,a=e.name||t.options.name,s=function(e){this._init(e)};return(s.prototype=Object.create(t.prototype)).constructor=s,s.cid=el+=1,s.options=et(t.options,e),s.super=t,s.options.props&&(i=(o=s).options.props,Object.keys(i).forEach((function(e){return En(o.prototype,"_props",e)}))),s.options.computed&&function(e){var t=e.options.computed;Object.keys(t).forEach((function(n){return Tn(e.prototype,n,t[n])}))}(s),s.extend=t.extend,s.mixin=t.mixin,s.use=t.use,ae.forEach((function(e){s[e]=t[e]})),a&&(s.options.components[a]=s),s.superOptions=t.options,s.extendOptions=e,s.sealedOptions=Q({},s.options),r[n]=s,s},Dn.Native=Tc,Dn.getApp=Oi,Dn.use((function(){Object.keys(pa).forEach((function(e){ga(e,pa[e])}))})),ce.devtools&&Se&&Se.emit("init",Dn);Dn.config._setBeforeRenderToNative=function(e,t){Li(e)&&(1===t?Si=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))};var tl,nl=new Proxy(Dn,{construct:function(e,t){var n=function(e,t,n){if(l())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&p(o,n.prototype),o}(e,g(t));return n}}),rl=function(){return S((function e(t,n,r){var o=this;_(this,e),this.webSocketId=-1,tl=Oi(),this.url=t,this.readyState=0,this.webSocketCallbacks={},this.onWebSocketEvent=this.onWebSocketEvent.bind(this);var i=v({},r);if(tl.$on("hippyWebsocketEvents",this.onWebSocketEvent),!t||"string"!=typeof t)throw new TypeError("Invalid WebSocket url");Array.isArray(n)&&n.length>0?i["Sec-WebSocket-Protocol"]=n.join(","):"string"==typeof n&&(i["Sec-WebSocket-Protocol"]=n);var a={headers:i,url:t};Tc.callNativeWithPromise("websocket","connect",a).then((function(e){e&&0===e.code&&"number"==typeof e.id&&(o.webSocketId=e.id)}))}),[{key:"close",value:function(e,t){1===this.readyState&&(this.readyState=2,Tc.callNative("websocket","close",{id:this.webSocketId,code:e,reason:t}))}},{key:"send",value:function(e){if(1===this.readyState){if("string"!=typeof e)throw new TypeError("Unsupported websocket data type: ".concat(O(e)));Tc.callNative("websocket","send",{id:this.webSocketId,data:e})}}},{key:"onopen",set:function(e){this.webSocketCallbacks.onOpen=e}},{key:"onclose",set:function(e){this.webSocketCallbacks.onClose=e}},{key:"onerror",set:function(e){this.webSocketCallbacks.onError=e}},{key:"onmessage",set:function(e){this.webSocketCallbacks.onMessage=e}},{key:"onWebSocketEvent",value:function(e){if("object"===O(e)&&e.id===this.webSocketId){var t=e.type;if("string"==typeof t){"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,tl.$off("hippyWebsocketEvents",this.onWebSocketEvent));var n=this.webSocketCallbacks[t];Li(n)&&n(e.data)}}}}])}();e.process=e.process||{},e.process.env=e.process.env||{},e.WebSocket=rl,nl.config.silent=!1,nl.config.trimWhitespace=!0,function(e){gi=e}(nl)}.call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/timers-browserify/main.js").setImmediate,n("./node_modules/process/browser.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 a(){throw new Error("clearTimeout has not been defined")}function s(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:a}catch(e){r=a}}();var c,u=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&p())}function p(){if(!l){var e=s(d);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f1)for(var n=1;n=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n("./node_modules/setimmediate/setImmediate.js"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/webpack/buildin/global.js":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},"./scripts/vendor.js":function(e,t,n){n("../../packages/hippy-vue/dist/index.js"),n("../../packages/hippy-vue-native-components/dist/index.js")},0:function(e,t,n){e.exports=n}}); \ No newline at end of file diff --git a/framework/examples/ios-demo/res/vue3/asyncComponentFromHttp.ios.js b/framework/examples/ios-demo/res/vue3/asyncComponentFromHttp.ios.js index 2204eecf948..b797fd5968a 100644 --- a/framework/examples/ios-demo/res/vue3/asyncComponentFromHttp.ios.js +++ b/framework/examples/ios-demo/res/vue3/asyncComponentFromHttp.ios.js @@ -1 +1 @@ -((0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[]).push([[0],{101: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(7))},103:function(t,n,c){"use strict";c(101)},105: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(103),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 +((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 diff --git a/framework/examples/ios-demo/res/vue3/asyncComponentFromLocal.ios.js b/framework/examples/ios-demo/res/vue3/asyncComponentFromLocal.ios.js index 9d0456dd867..fe5ad672f63 100644 --- a/framework/examples/ios-demo/res/vue3/asyncComponentFromLocal.ios.js +++ b/framework/examples/ios-demo/res/vue3/asyncComponentFromLocal.ios.js @@ -1 +1 @@ -((0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[]).push([[1],{100: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(7))},102:function(t,n,e){"use strict";e(100)},104: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(102),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 +((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 diff --git a/framework/examples/ios-demo/res/vue3/index.ios.js b/framework/examples/ios-demo/res/vue3/index.ios.js index 0e5903eaf8d..94e8912bce6 100644 --- a/framework/examples/ios-demo/res/vue3/index.ios.js +++ b/framework/examples/ios-demo/res/vue3/index.ios.js @@ -1,22 +1,22 @@ -!function(e){function t(t){for(var n,r,a=t[0],i=t[1],c=0,u=[];c0===c.indexOf(e))){var l=c.split("/"),u=l[l.length-1],s=u.split(".")[0];(d=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[s])&&(c=d+u)}else{var d;s=c.split(".")[0];(d=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[s])&&(c=d+c)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+c;var n=o[e];0!==n&&n&&n[1](t),o[e]=void 0}},global.dynamicLoad(c,onScriptComplete)}return Promise.all(t)},r.m=e,r.c=n,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var a=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],i=a.push.bind(a);a.push=t,a=a.slice();for(var c=0;c=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}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 a,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n0===c.indexOf(e))){var i=c.split("/"),s=i[i.length-1],d=s.split(".")[0];(u=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(c=u+s)}else{var u;d=c.split(".")[0];(u=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(c=u+c)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+c;var o=n[e];0!==o&&o&&o[1](t),n[e]=void 0}},global.dynamicLoad(c,onScriptComplete)}return Promise.all(t)},a.m=e,a.c=o,a.d=function(e,t,o){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(a.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(o,n,function(t){return e[t]}.bind(null,n));return o},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a.oe=function(e){throw console.error(e),e};var r=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],l=r.push.bind(r);r.push=t,r=r.slice();for(var c=0;ce.length)&&(t=e.length);for(var o=0,n=new Array(t);o=0;--n){var a=this.tryEntries[n],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),i=r.call(a,"finallyLoc");if(c&&i){if(this.prev=0;--o){var n=this.tryEntries[o];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev=0;--t){var o=this.tryEntries[t];if(o.finallyLoc===e)return this.complete(o.completion,o.afterLoc),k(o),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.tryLoc===e){var n=o.completion;if("throw"===n.type){var a=n.arg;k(o)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,o){return this.delegate={iterator:P(e),resultName:t,nextLoc:o},"next"===this.method&&(this.arg=void 0),v}},t}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/setPrototypeOf.js":function(e,t){function o(t,n){return e.exports=o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,o(t,n)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/slicedToArray.js":function(e,t,o){var n=o("./node_modules/@babel/runtime/helpers/arrayWithHoles.js"),a=o("./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"),r=o("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),l=o("./node_modules/@babel/runtime/helpers/nonIterableRest.js");e.exports=function(e,t){return n(e)||a(e,t)||r(e,t)||l()},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toConsumableArray.js":function(e,t,o){var n=o("./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"),a=o("./node_modules/@babel/runtime/helpers/iterableToArray.js"),r=o("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),l=o("./node_modules/@babel/runtime/helpers/nonIterableSpread.js");e.exports=function(e){return n(e)||a(e)||r(e)||l()},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toPrimitive.js":function(e,t,o){var n=o("./node_modules/@babel/runtime/helpers/typeof.js").default;e.exports=function(e,t){if("object"!==n(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var a=o.call(e,t||"default");if("object"!==n(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toPropertyKey.js":function(e,t,o){var n=o("./node_modules/@babel/runtime/helpers/typeof.js").default,a=o("./node_modules/@babel/runtime/helpers/toPrimitive.js");e.exports=function(e){var t=a(e,"string");return"symbol"===n(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(e,t){function o(t){return e.exports=o="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.exports.__esModule=!0,e.exports.default=e.exports,o(t)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":function(e,t,o){var n=o("./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/regenerator/index.js":function(e,t,o){var n=o("./node_modules/@babel/runtime/helpers/regeneratorRuntime.js")();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},"./node_modules/@hippy/rejection-tracking-polyfill/index.js":function(e,t,o){(function(e){!function(){if("ios"===Hippy.device.platform.OS){var t=[ReferenceError,TypeError,RangeError],o=!1;!function(a){if(e.Promise){a=a||{},o&&(o=!1,e.Promise._onHandle=null,e.Promise._onReject=null),o=!0;var r=0,l=0,c={};e.Promise._onHandle=function(e){2===e._state&&c[e._rejectionId]&&(c[e._rejectionId].logged?function(e){c[e].logged&&(a.onHandled?a.onHandled(c[e].displayId,c[e].error):c[e].onUnhandled||(console.warn("Promise Rejection Handled (id: "+c[e].displayId+"):"),console.warn(' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+c[e].displayId+".")))}(e._rejectionId):clearTimeout(c[e._rejectionId].timeout),delete c[e._rejectionId])},e.Promise._onReject=function(e,o){0===e._deferredState&&(e._rejectionId=r++,c[e._rejectionId]={displayId:null,error:o,timeout:setTimeout(i.bind(null,e._rejectionId),n(o,t)?100:2e3),logged:!1})}}function i(e){(a.allRejections||n(c[e].error,a.whitelist||t))&&(c[e].displayId=l++,a.onUnhandled?(c[e].logged=!0,a.onUnhandled(c[e].displayId,c[e].error)):(c[e].logged=!0,function(e,t){console.warn("Possible Unhandled Promise Rejection (id: "+e+"):"),((t&&(t.stack||t))+"").split("\n").forEach((function(e){console.warn(" "+e)}))}(c[e].displayId,c[e].error)))}}({allRejections:!0,onUnhandled:function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.prototype.toString.call(o);if("[object Error]"===n){var a=Error.prototype.toString.call(o),r=o.stack,l="Possible Unhandled Promise Rejection (id: "+t+"):\n"+(a||"")+"\n"+(null==r?"":r);console.warn(l)}else{console.warn("Possible Unhandled Promise Rejection (id: "+t+"):");var c=(o&&(o.stack||o))+"";c.split("\n").forEach((function(e){console.warn(" "+e)}))}e.Hippy.emit("unhandledRejection",o,t)},onHandled:function(){}})}function n(e,t){return t.some((function(t){return e instanceof t}))}}()}).call(this,o("./node_modules/webpack/buildin/global.js"))},"./node_modules/@hippy/vue-router-next-history/dist/index.js":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a,r=o("./node_modules/vue-router/dist/vue-router.mjs"),l=o("../../packages/hippy-vue-next/dist/index.js");!function(e){e.pop="pop",e.push="push"}(n||(n={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(a||(a={}));var c=/\/$/,i=/^[^#]+#/;function s(e,t){return"".concat(e.replace(i,"#")).concat(t)}function d(e){var t=e;return t||(t="/"),"/"!==t[0]&&"#"!==t[0]&&(t="/".concat(t)),t.replace(c,"")}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="",o=[t],r=0,l=[],c=d(e);function i(e){(r+=1)===o.length||o.splice(r),o.push(e)}function u(e,t,o){for(var a={direction:o.direction,delta:o.delta,type:n.pop},r=0,c=l;r(l.push(e),function(){var t=l.indexOf(e);t>-1&&l.splice(t,1)}),destroy(){l=[],o=[t],r=0},go(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.location,l=e<0?a.back:a.forward;r=Math.max(0,Math.min(r+e,o.length-1)),t&&u(this.location,n,{direction:l,delta:e})},get position(){return r}};return Object.defineProperty(p,"location",{enumerable:!0,get:function(){return o[r]}}),p}t.createHippyHistory=u,t.createHippyRouter=function(e){var t,o=r.createRouter({history:null!==(t=e.history)&&void 0!==t?t:u(),routes:e.routes});return e.noInjectAndroidHardwareBackPress||function(e){if(l.Native.isAndroid()){var t=function(){if(e.options.history.position>0)return e.back(),!0};e.isReady().then((function(){l.BackAndroid.addListener(t)}))}}(o),o},Object.keys(r).forEach((function(e){"default"===e||t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}))},"./node_modules/@vue/shared/dist/shared.esm-bundler.js":function(e,t,o){"use strict";(function(e){o.d(t,"a",(function(){return a})),o.d(t,"b",(function(){return r})),o.d(t,"c",(function(){return j})),o.d(t,"d",(function(){return x})),o.d(t,"e",(function(){return i})),o.d(t,"f",(function(){return _})),o.d(t,"g",(function(){return I})),o.d(t,"h",(function(){return w})),o.d(t,"i",(function(){return s})),o.d(t,"j",(function(){return p})),o.d(t,"k",(function(){return k})),o.d(t,"l",(function(){return P})),o.d(t,"m",(function(){return c})),o.d(t,"n",(function(){return b})),o.d(t,"o",(function(){return l})),o.d(t,"p",(function(){return C})),o.d(t,"q",(function(){return d})),o.d(t,"r",(function(){return T})),o.d(t,"s",(function(){return f})),o.d(t,"t",(function(){return v})),o.d(t,"u",(function(){return L})),o.d(t,"v",(function(){return D})),o.d(t,"w",(function(){return S})),o.d(t,"x",(function(){return A}));o("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o("./node_modules/@babel/runtime/helpers/toConsumableArray.js"); /** -* @vue/runtime-dom v3.4.34 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/var w="undefined"!=typeof document?document:null,A=w&&w.createElement("template"),x={insert:function(e,t,n){t.insertBefore(e,n||null)},remove:function(e){var t=e.parentNode;t&&t.removeChild(e)},createElement:function(e,t,n,o){var r="svg"===t?w.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?w.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?w.createElement(e,{is:n}):w.createElement(e);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:function(e){return w.createTextNode(e)},createComment:function(e){return w.createComment(e)},setText:function(e,t){e.nodeValue=t},setElementText:function(e,t){e.textContent=t},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},querySelector:function(e){return w.querySelector(e)},setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,a){var i=n?n.previousSibling:t.lastChild;if(r&&(r===a||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==a&&(r=r.nextSibling););else{A.innerHTML="svg"===o?"".concat(e,""):"mathml"===o?"".concat(e,""):e;var c=A.content;if("svg"===o||"mathml"===o){for(var l=c.firstChild;l.firstChild;)c.appendChild(l.firstChild);c.removeChild(l)}t.insertBefore(c,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},C=Symbol("_vtc"),S=function(e,t){var n=t.slots;return Object(o.h)(o.BaseTransition,D(e),n)};S.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},T=(S.props=Object(h.e)({},o.BaseTransitionPropsValidators,k),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Object(h.i)(e)?e.forEach((function(e){return e.apply(void 0,m()(t))})):e&&e.apply(void 0,m()(t))}),_=function(e){return!!e&&(Object(h.i)(e)?e.some((function(e){return e.length>1})):e.length>1)};function D(e){var t={};for(var n in e)n in k||(t[n]=e[n]);if(!1===e.css)return t;var o=e.name,r=void 0===o?"v":o,a=e.type,i=e.duration,c=e.enterFromClass,l=void 0===c?"".concat(r,"-enter-from"):c,u=e.enterActiveClass,s=void 0===u?"".concat(r,"-enter-active"):u,d=e.enterToClass,f=void 0===d?"".concat(r,"-enter-to"):d,b=e.appearFromClass,p=void 0===b?l:b,g=e.appearActiveClass,v=void 0===g?s:g,m=e.appearToClass,O=void 0===m?f:m,j=e.leaveFromClass,y=void 0===j?"".concat(r,"-leave-from"):j,w=e.leaveActiveClass,A=void 0===w?"".concat(r,"-leave-active"):w,x=e.leaveToClass,C=void 0===x?"".concat(r,"-leave-to"):x,S=function(e){if(null==e)return null;if(Object(h.n)(e))return[E(e.enter),E(e.leave)];var t=E(e);return[t,t]}(i),D=S&&S[0],B=S&&S[1],M=t.onBeforeEnter,N=t.onEnter,H=t.onEnterCancelled,z=t.onLeave,F=t.onLeaveCancelled,U=t.onBeforeAppear,Y=void 0===U?M:U,W=t.onAppear,G=void 0===W?N:W,K=t.onAppearCancelled,J=void 0===K?H:K,q=function(e,t,n){I(e,t?O:f),I(e,t?v:s),n&&n()},Q=function(e,t){e._isLeaving=!1,I(e,y),I(e,C),I(e,A),t&&t()},X=function(e){return function(t,n){var o=e?G:N,r=function(){return q(t,e,n)};T(o,[t,r]),R((function(){I(t,e?p:l),P(t,e?O:f),_(o)||L(t,a,D,r)}))}};return Object(h.e)(t,{onBeforeEnter(e){T(M,[e]),P(e,l),P(e,s)},onBeforeAppear(e){T(Y,[e]),P(e,p),P(e,v)},onEnter:X(!1),onAppear:X(!0),onLeave(e,t){e._isLeaving=!0;var n=function(){return Q(e,t)};P(e,y),P(e,A),V(),R((function(){e._isLeaving&&(I(e,y),P(e,C),_(z)||L(e,a,B,n))})),T(z,[e,n])},onEnterCancelled(e){q(e,!1),T(H,[e])},onAppearCancelled(e){q(e,!0),T(J,[e])},onLeaveCancelled(e){Q(e),T(F,[e])}})}function E(e){return Object(h.x)(e)}function P(e,t){t.split(/\s+/).forEach((function(t){return t&&e.classList.add(t)})),(e[C]||(e[C]=new Set)).add(t)}function I(e,t){t.split(/\s+/).forEach((function(t){return t&&e.classList.remove(t)}));var n=e[C];n&&(n.delete(t),n.size||(e[C]=void 0))}function R(e){requestAnimationFrame((function(){requestAnimationFrame(e)}))}var B=0;function L(e,t,n,o){var r=e._endId=++B,a=function(){r===e._endId&&o()};if(n)return setTimeout(a,n);var i=M(e,t),c=i.type,l=i.timeout,u=i.propCount;if(!c)return o();var s=c+"end",d=0,f=function(){e.removeEventListener(s,b),a()},b=function(t){t.target===e&&++d>=u&&f()};setTimeout((function(){d0&&(s="transition",d=i,f=a.length):"animation"===t?u>0&&(s="animation",d=u,f=l.length):f=(s=(d=Math.max(i,u))>0?i>u?"transition":"animation":null)?"transition"===s?a.length:l.length:0,{type:s,timeout:d,propCount:f,hasTransform:"transition"===s&&/\b(transform|all)(,|$)/.test(o("".concat("transition","Property")).toString())}}function N(e,t){for(;e.length5&&void 0!==arguments[5]?arguments[5]:Object(h.r)(t);o&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(X,t.slice(6,t.length)):e.setAttributeNS(X,t,n):null==n||a&&!Object(h.g)(n)?e.removeAttribute(t):e.setAttribute(t,a?"":Object(h.t)(n)?String(n):n)}function $(e,t,n,o){e.addEventListener(t,n,o)}function ee(e,t,n,o){e.removeEventListener(t,n,o)}var te=Symbol("_vei");var ne=/(?:Once|Passive|Capture)$/;function oe(e){var t,n;if(ne.test(e))for(t={};n=e.match(ne);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0;return[":"===e[2]?e.slice(3):Object(h.f)(e.slice(2)),t]}var re=0,ae=Promise.resolve();function ie(e,t){var n=function e(n){if(n._vts){if(n._vts<=e.attached)return}else n._vts=Date.now();Object(o.callWithAsyncErrorHandling)(function(e,t){if(Object(h.i)(t)){var n=e.stopImmediatePropagation;return e.stopImmediatePropagation=function(){n.call(e),e._stopped=!0},t.map((function(e){return function(t){return!t._stopped&&e&&e(t)}}))}return t}(n,e.value),t,5,[n])};return n.value=e,n.attached=re||(ae.then((function(){return re=0})),re=Date.now()),n}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 le,ue=["ctrl","shift","alt","meta"],se={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 ue.some((function(n){return e["".concat(n,"Key")]&&!t.includes(n)}))}},de=function(e,t){var n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=function(n){for(var o=0;o1?a-1:0),c=1;c4&&void 0!==arguments[4]?arguments[4]:null,a=e[te]||(e[te]={}),i=a[t];if(o&&i)i.value=o;else{var c=oe(t),l=g()(c,2),u=l[0],s=l[1];if(o){var d=a[t]=ie(o,r);$(e,u,d,s)}else i&&(ee(e,u,i,s),a[t]=void 0)}}(e,t,n,o,a):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&ce(t)&&Object(h.j)(n));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 r=e.tagName;if("IMG"===r||"VIDEO"===r||"CANVAS"===r||"SOURCE"===r)return!1}if(ce(t)&&Object(h.s)(n))return!1;return t in e} -/*! #__NO_SIDE_EFFECTS__ */(e,t,o,i))?(!function(e,t,n,o){if("innerHTML"!==t&&"textContent"!==t){var r=e.tagName;if("value"===t&&"PROGRESS"!==r&&!r.includes("-")){var a="OPTION"===r?e.getAttribute("value")||"":e.value,i=null==n?"":String(n);return a===i&&"_value"in e||(e.value=i),null==n&&e.removeAttribute(t),void(e._value=n)}var c=!1;if(""===n||null==n){var l=typeof e[t];"boolean"===l?n=Object(h.g)(n):null==n&&"string"===l?(n="",c=!0):"number"===l&&(n=0,c=!0)}try{e[t]=n}catch(e){0}c&&e.removeAttribute(t)}else{if(null==n)return;e[t]=n}}(e,t,o),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Z(e,t,o,i,a,"value"!==t)):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),Z(e,t,o,i))}},x);function be(){return le||(le=Object(o.createRenderer)(fe))}var pe=function(){var e;(e=be()).render.apply(e,arguments)}},function(e,t,n){e.exports=n(18)(7)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return j})),n.d(t,"d",(function(){return A})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return w})),n.d(t,"g",(function(){return P})),n.d(t,"h",(function(){return x})),n.d(t,"i",(function(){return u})),n.d(t,"j",(function(){return f})),n.d(t,"k",(function(){return k})),n.d(t,"l",(function(){return _})),n.d(t,"m",(function(){return c})),n.d(t,"n",(function(){return g})),n.d(t,"o",(function(){return i})),n.d(t,"p",(function(){return T})),n.d(t,"q",(function(){return s})),n.d(t,"r",(function(){return E})),n.d(t,"s",(function(){return b})),n.d(t,"t",(function(){return p})),n.d(t,"u",(function(){return I})),n.d(t,"v",(function(){return R})),n.d(t,"w",(function(){return C})),n.d(t,"x",(function(){return S}));n(10),n(6); -/** -* @vue/shared v3.4.34 +* @vue/shared v3.4.32 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ /*! #__NO_SIDE_EFFECTS__ */ -function o(e,t){var n=new Set(e.split(","));return t?function(e){return n.has(e.toLowerCase())}:function(e){return n.has(e)}}var r={},a=function(){},i=function(e){return 111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97)},c=function(e){return e.startsWith("onUpdate:")},l=Object.assign,u=(Object.prototype.hasOwnProperty,Array.isArray),s=function(e){return"[object Set]"===m(e)},d=function(e){return"[object Date]"===m(e)},f=function(e){return"function"==typeof e},b=function(e){return"string"==typeof e},p=function(e){return"symbol"==typeof e},g=function(e){return null!==e&&"object"==typeof e},v=Object.prototype.toString,m=function(e){return v.call(e)},h=function(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}},O=/-(\w)/g,j=h((function(e){return e.replace(O,(function(e,t){return t?t.toUpperCase():""}))})),y=/\B([A-Z])/g,w=h((function(e){return e.replace(y,"-$1").toLowerCase()})),A=h((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),x=(h((function(e){return e?"on".concat(A(e)):""})),function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}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 i,c=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,i=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw i}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}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 a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n122||e.charCodeAt(2)<97)},c=function(e){return e.startsWith("onUpdate:")},i=Object.assign,s=(Object.prototype.hasOwnProperty,Array.isArray),d=function(e){return"[object Set]"===m(e)},u=function(e){return"[object Date]"===m(e)},p=function(e){return"function"==typeof e},f=function(e){return"string"==typeof e},v=function(e){return"symbol"==typeof e},b=function(e){return null!==e&&"object"==typeof e},y=Object.prototype.toString,m=function(e){return y.call(e)},g=function(e){var t=Object.create(null);return function(o){return t[o]||(t[o]=e(o))}},h=/-(\w)/g,j=g((function(e){return e.replace(h,(function(e,t){return t?t.toUpperCase():""}))})),O=/\B([A-Z])/g,_=g((function(e){return e.replace(O,"-$1").toLowerCase()})),x=g((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),w=(g((function(e){return e?"on".concat(x(e)):""})),function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),n=1;n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 l,c=!0,i=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return c=e.done,e},e:function(e){i=!0,l=e},f:function(){try{c||null==o.return||o.return()}finally{if(i)throw l}}}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 r,l=!0,i=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return l=e.done,e},e:function(e){i=!0,r=e},f:function(){try{l||null==o.return||o.return()}finally{if(i)throw r}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o2&&void 0!==arguments[2]?arguments[2]:"/",r={},a="",i="",c=t.indexOf("#"),l=t.indexOf("?");return c=0&&(l=-1),l>-1&&(n=t.slice(0,l),r=e(a=t.slice(l+1,c>-1?c:t.length))),c>-1&&(n=n||t.slice(0,c),i=t.slice(c,t.length)),{fullPath:(n=H(null!=n?n:t,o))+(a&&"?")+a+i,path:n,query:r,hash:E(i)}}function R(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function B(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function L(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!M(e[n],t[n]))return!1;return!0}function M(e,t){return b(e)?N(e,t):b(t)?N(t,e):e===t}function N(e,t){return b(t)?e.length===t.length&&e.every((function(e,n){return e===t[n]})):1===e.length&&e[0]===t}function H(e,t){if(e.startsWith("/"))return e;if(!e)return t;var n=t.split("/"),o=e.split("/"),r=o[o.length-1];".."!==r&&"."!==r||o.push("");var a,i,c=n.length-1;for(a=0;a1&&c--}return n.slice(0,c).join("/")+"/"+o.slice(a).join("/")}var V,z,F={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};!function(e){e.pop="pop",e.push="push"}(V||(V={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(z||(z={}));function U(e){if(!e)if(l){var t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(P,"")}var Y=/^[^#]+#/;function W(e,t){return e.replace(Y,"#")+t}var G=function(){return{left:window.scrollX,top:window.scrollY}};function K(e){var t;if("el"in e){var n=e.el,o="string"==typeof n&&n.startsWith("#"),r="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=function(e,t){var n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function J(e,t){return(history.state?history.state.position-t:-1)+e}var q=new Map;var Q=function(){return location.protocol+"//"+location.host};function X(e,t){var n=t.pathname,o=t.search,r=t.hash,a=e.indexOf("#");if(a>-1){var i=r.includes(e.slice(a))?e.slice(a).length:1,c=r.slice(i);return"/"!==c[0]&&(c="/"+c),R(c,"")}return R(n,e)+o+r}function Z(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?G():null}}function $(e){var t=function(e){var t=window,n=t.history,o=t.location,r={value:X(e,o)},a={value:n.state};function i(t,r,i){var c=e.indexOf("#"),l=c>-1?(o.host&&document.querySelector("base")?e:e.slice(c))+t:Q()+e+t;try{n[i?"replaceState":"pushState"](r,"",l),a.value=r}catch(e){console.error(e),o[i?"replace":"assign"](l)}}return a.value||i(r.value,{back:null,current:r.value,forward:null,position:n.length-1,replaced:!0,scroll:null},!0),{location:r,state:a,push:function(e,t){var o=s({},a.value,n.state,{forward:e,scroll:G()});i(o.current,o,!0),i(e,s({},Z(r.value,e,null),{position:o.position+1},t),!1),r.value=e},replace:function(e,t){i(e,s({},n.state,Z(a.value.back,e,a.value.forward,!0),t,{position:a.value.position}),!0),r.value=e}}}(e=U(e)),n=function(e,t,n,o){var r=[],a=[],c=null,l=function(a){var i=a.state,l=X(e,location),u=n.value,s=t.value,d=0;if(i){if(n.value=l,t.value=i,c&&c===u)return void(c=null);d=s?i.position-s.position:0}else o(l);r.forEach((function(e){e(n.value,u,{delta:d,type:V.pop,direction:d?d>0?z.forward:z.back:z.unknown})}))};function u(){var e=window.history;e.state&&e.replaceState(s({},e.state,{scroll:G()}),"")}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:function(){c=n.value},listen:function(e){r.push(e);var t=function(){var t=r.indexOf(e);t>-1&&r.splice(t,1)};return a.push(t),t},destroy:function(){var e,t=i(a);try{for(t.s();!(e=t.n()).done;){(0,e.value)()}}catch(e){t.e(e)}finally{t.f()}a=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}}}(e,t.state,t.location,t.replace);var o=s({location:"",base:e,go:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t||n.pauseListeners(),history.go(e)},createHref:W.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:function(){return t.location.value}}),Object.defineProperty(o,"state",{enumerable:!0,get:function(){return t.state.value}}),o}function ee(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[],n=[""],o=0;function r(e){++o!==n.length&&n.splice(o),n.push(e)}function a(e,n,o){for(var r={direction:o.direction,delta:o.delta,type:V.pop},a=0,i=t;a(t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}),destroy(){t=[],n=[""],o=0},go(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.location,i=e<0?z.back:z.forward;o=Math.max(0,Math.min(o+e,n.length-1)),t&&a(this.location,r,{direction:i,delta:e})}};return Object.defineProperty(i,"location",{enumerable:!0,get:function(){return n[o]}}),i}function te(e){return(e=location.host?e||location.pathname+location.search:"").includes("#")||(e+="#"),$(e)}function ne(e){return"string"==typeof e||e&&"object"==typeof e}function oe(e){return"string"==typeof e||"symbol"==typeof e}var re,ae=Symbol("");!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}(re||(re={}));function ie(e,t){return s(new Error,{type:e,[ae]:!0},t)}function ce(e,t){return e instanceof Error&&ae in e&&(null==t||!!(e.type&t))}var le={sensitive:!1,strict:!1,start:!0,end:!0},ue=/[.+*?^${}()[\]/\\]/g;function se(e,t){for(var n=0;nt.length?1===t.length&&80===t[0]?1:-1:0}function de(e,t){for(var n=0,o=e.score,r=t.score;n0&&t[t.length-1]<0}var be={type:0,value:""},pe=/[a-zA-Z0-9_]/;function ge(e,t,n){var o=function(e,t){var n,o=s({},le,t),r=[],a=o.start?"^":"",c=[],l=i(e);try{for(l.s();!(n=l.n()).done;){var u=n.value,d=u.length?[]:[90];o.strict&&!u.length&&(a+="/");for(var f=0;f1&&("*"===c||"+"===c)&&t("A repeatable param (".concat(u,") must be alone in its segment. eg: '/:ids+.")),n.push({type:1,value:u,regexp:s,repeatable:"*"===c||"+"===c,optional:"*"===c||"?"===c})):t("Invalid state to consume buffer"),u="")}function f(){u+=c}for(;l-1&&(n.splice(r,1),e.record.name&&o.delete(e.record.name),e.children.forEach(a),e.alias.forEach(a))}}function c(e){var t=function(e,t){var n=0,o=t.length;for(;n!==o;){var r=n+o>>1;de(e,t[r])<0?o=r:n=r+1}var a=function(e){var t=e;for(;t=t.parent;)if(we(t)&&0===de(e,t))return t;return}(e);a&&(o=t.lastIndexOf(a,o-1));return o}(e,n);n.splice(t,0,e),e.record.name&&!Oe(e)&&o.set(e.record.name,e)}return t=ye({strict:!1,end:!0,sensitive:!1},t),e.forEach((function(e){return r(e)})),{addRoute:r,resolve:function(e,t){var r,a,i,c={};if("name"in e&&e.name){if(!(r=o.get(e.name)))throw ie(1,{location:e});i=r.record.name,c=s(me(t.params,r.keys.filter((function(e){return!e.optional})).concat(r.parent?r.parent.keys.filter((function(e){return e.optional})):[]).map((function(e){return e.name}))),e.params&&me(e.params,r.keys.map((function(e){return e.name})))),a=r.stringify(c)}else if(null!=e.path)a=e.path,(r=n.find((function(e){return e.re.test(a)})))&&(c=r.parse(a),i=r.record.name);else{if(!(r=t.name?o.get(t.name):n.find((function(e){return e.re.test(t.path)}))))throw ie(1,{location:e,currentLocation:t});i=r.record.name,c=s({},t.params,e.params),a=r.stringify(c)}for(var l=[],u=r;u;)l.unshift(u.record),u=u.parent;return{name:i,path:a,params:c,matched:l,meta:je(l)}},removeRoute:a,clearRoutes:function(){n.length=0,o.clear()},getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}function me(e,t){var n,o={},r=i(t);try{for(r.s();!(n=r.n()).done;){var a=n.value;a in e&&(o[a]=e[a])}}catch(e){r.e(e)}finally{r.f()}return o}function he(e){var t={},n=e.props||!1;if("component"in e)t.default=n;else for(var o in e.components)t[o]="object"==typeof n?n[o]:n;return t}function Oe(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function je(e){return e.reduce((function(e,t){return s(e,t.meta)}),{})}function ye(e,t){var n={};for(var o in e)n[o]=o in t?t[o]:e[o];return n}function we(e){var t=e.record;return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function Ae(e){var t={};if(""===e||"?"===e)return t;for(var n=("?"===e[0]?e.slice(1):e).split("&"),o=0;o-1&&e.splice(n,1)}},list:function(){return e.slice()},reset:function(){e=[]}}}function Pe(e,t,n){var o=function(){e[t].delete(n)};Object(a.s)(o),Object(a.r)(o),Object(a.q)((function(){e[t].add(n)})),e[t].add(n)}function Ie(e){var t=Object(a.m)(Se,{}).value;t&&Pe(t,"leaveGuards",e)}function Re(e){var t=Object(a.m)(Se,{}).value;t&&Pe(t,"updateGuards",e)}function Be(e,t,n,o,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(e){return e()},i=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return function(){return new Promise((function(c,l){var u=function(e){!1===e?l(ie(4,{from:n,to:t})):e instanceof Error?l(e):ne(e)?l(ie(2,{from:t,to:e})):(i&&o.enterCallbacks[r]===i&&"function"==typeof e&&i.push(e),c())},s=a((function(){return e.call(o&&o.instances[r],t,n,u)})),d=Promise.resolve(s);e.length<3&&(d=d.then(u)),d.catch((function(e){return l(e)}))}))}}function Le(e,t,n,o){var r,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(e){return e()},c=[],l=i(e);try{var s=function(){var e=r.value;var i=function(r){var i=e.components[r];if("beforeRouteEnter"!==t&&!e.instances[r])return 1;if(Me(i)){var l=(i.__vccOpts||i)[t];l&&c.push(Be(l,n,o,e,r,a))}else{var s=i();0,c.push((function(){return s.then((function(i){if(!i)return Promise.reject(new Error("Couldn't resolve component \"".concat(r,'" at "').concat(e.path,'"')));var c=u(i)?i.default:i;e.components[r]=c;var l=(c.__vccOpts||c)[t];return l&&Be(l,n,o,e,r,a)()}))}))}};for(var l in e.components)i(l)};for(l.s();!(r=l.n()).done;)s()}catch(e){l.e(e)}finally{l.f()}return c}function Me(e){return"object"==typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}function Ne(e){return e.matched.every((function(e){return e.redirect}))?Promise.reject(new Error("Cannot load a route that redirects.")):Promise.all(e.matched.map((function(e){return e.components&&Promise.all(Object.keys(e.components).reduce((function(t,n){var o=e.components[n];return"function"!=typeof o||"displayName"in o||t.push(o().then((function(t){if(!t)return Promise.reject(new Error("Couldn't resolve component \"".concat(n,'" at "').concat(e.path,'". Ensure you passed a function that returns a promise.')));var o=u(t)?t.default:t;e.components[n]=o}))),t}),[]))}))).then((function(){return e}))}function He(e){var t=Object(a.m)(Te),n=Object(a.m)(_e),o=Object(a.c)((function(){var n=Object(a.E)(e.to);return t.resolve(n)})),r=Object(a.c)((function(){var e=o.value.matched,t=e.length,r=e[t-1],a=n.matched;if(!r||!a.length)return-1;var i=a.findIndex(B.bind(null,r));if(i>-1)return i;var c=Fe(e[t-2]);return t>1&&Fe(r)===c&&a[a.length-1].path!==c?a.findIndex(B.bind(null,e[t-2])):i})),i=Object(a.c)((function(){return r.value>-1&&function(e,t){var n,o=function(){var n=t[r],o=e[r];if("string"==typeof n){if(n!==o)return{v:!1}}else if(!b(o)||o.length!==n.length||n.some((function(e,t){return e!==o[t]})))return{v:!1}};for(var r in t)if(n=o())return n.v;return!0}(n.params,o.value.params)})),c=Object(a.c)((function(){return r.value>-1&&r.value===n.matched.length-1&&L(n.params,o.value.params)}));return{route:o,href:Object(a.c)((function(){return o.value.href})),isActive:i,isExactActive:c,navigate:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ze(n)?t[Object(a.E)(e.replace)?"replace":"push"](Object(a.E)(e.to)).catch(f):Promise.resolve()}}}var Ve=Object(a.j)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:He,setup(e,t){var n=t.slots,o=Object(a.v)(He(e)),r=Object(a.m)(Te).options,i=Object(a.c)((function(){return{[Ue(e.activeClass,r.linkActiveClass,"router-link-active")]:o.isActive,[Ue(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}}));return function(){var t=n.default&&n.default(o);return e.custom?t:Object(a.l)("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:i.value},t)}}});function ze(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Fe(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}var Ue=function(e,t,n){return null!=e?e:null!=t?t:n};function Ye(e,t){if(!e)return null;var n=e(t);return 1===n.length?n[0]:n}var We=Object(a.j)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,t){var n=t.attrs,o=t.slots,i=Object(a.m)(De),c=Object(a.c)((function(){return e.route||i.value})),l=Object(a.m)(ke,0),u=Object(a.c)((function(){for(var e,t=Object(a.E)(l),n=c.value.matched;(e=n[t])&&!e.components;)t++;return t})),d=Object(a.c)((function(){return c.value.matched[u.value]}));Object(a.u)(ke,Object(a.c)((function(){return u.value+1}))),Object(a.u)(Se,d),Object(a.u)(De,c);var f=Object(a.w)();return Object(a.G)((function(){return[f.value,d.value,e.name]}),(function(e,t){var n=r()(e,3),o=n[0],a=n[1],i=n[2],c=r()(t,3),l=c[0],u=c[1];c[2];a&&(a.instances[i]=o,u&&u!==a&&o&&o===l&&(a.leaveGuards.size||(a.leaveGuards=u.leaveGuards),a.updateGuards.size||(a.updateGuards=u.updateGuards))),!o||!a||u&&B(a,u)&&l||(a.enterCallbacks[i]||[]).forEach((function(e){return e(o)}))}),{flush:"post"}),function(){var t=c.value,r=e.name,i=d.value,l=i&&i.components[r];if(!l)return Ye(o.default,{Component:l,route:t});var u=i.props[r],b=u?!0===u?t.params:"function"==typeof u?u(t):u:null,p=Object(a.l)(l,s({},b,n,{onVnodeUnmounted:function(e){e.component.isUnmounted&&(i.instances[r]=null)},ref:f}));return Ye(o.default,{Component:p,route:t})||p}}});function Ge(e){var t=ve(e.routes,e),n=e.parseQuery||Ae,o=e.stringifyQuery||xe,c=e.history;var u=Ee(),p=Ee(),g=Ee(),v=Object(a.C)(F),m=F;l&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");var h,O=d.bind(null,(function(e){return""+e})),j=d.bind(null,D),y=d.bind(null,E);function A(e,r){if(r=s({},r||v.value),"string"==typeof e){var a=I(n,e,r.path),i=t.resolve({path:a.path},r),l=c.createHref(a.fullPath);return s(a,i,{params:y(i.params),hash:E(a.hash),redirectedFrom:void 0,href:l})}var u;if(null!=e.path)u=s({},e,{path:I(n,e.path,r.path).path});else{var d=s({},e.params);for(var f in d)null==d[f]&&delete d[f];u=s({},e,{params:j(d)}),r.params=j(r.params)}var b=t.resolve(u,r),p=e.hash||"";b.params=O(y(b.params));var g,m=function(e,t){var n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,s({},e,{hash:(g=p,T(g).replace(x,"{").replace(S,"}").replace(w,"^")),path:b.path})),h=c.createHref(m);return s({fullPath:m,hash:p,query:o===xe?Ce(e.query):e.query||{}},b,{redirectedFrom:void 0,href:h})}function C(e){return"string"==typeof e?I(n,e,v.value.path):s({},e)}function k(e,t){if(m!==e)return ie(8,{from:t,to:e})}function _(e){return R(e)}function P(e){var t=e.matched[e.matched.length-1];if(t&&t.redirect){var n=t.redirect,o="function"==typeof n?n(e):n;return"string"==typeof o&&((o=o.includes("?")||o.includes("#")?o=C(o):{path:o}).params={}),s({query:e.query,hash:e.hash,params:null!=o.path?{}:e.params},o)}}function R(e,t){var n=m=A(e),r=v.value,a=e.state,i=e.force,c=!0===e.replace,l=P(n);if(l)return R(s(C(l),{state:"object"==typeof l?s({},a,l.state):a,force:i,replace:c}),t||n);var u,d=n;return d.redirectedFrom=t,!i&&function(e,t,n){var o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&B(t.matched[o],n.matched[r])&&L(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,r,n)&&(u=ie(16,{to:d,from:r}),ee(r,r,!0,!1)),(u?Promise.resolve(u):H(d,r)).catch((function(e){return ce(e)?ce(e,2)?e:$(e):Z(e,d,r)})).then((function(e){if(e){if(ce(e,2))return R(s({replace:c},C(e.to),{state:"object"==typeof e.to?s({},a,e.to.state):a,force:i}),t||d)}else e=U(d,r,!0,c,a);return z(d,r,e),e}))}function M(e,t){var n=k(e,t);return n?Promise.reject(n):Promise.resolve()}function N(e){var t=re.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function H(e,t){var n,o=function(e,t){for(var n=[],o=[],r=[],a=Math.max(t.matched.length,e.matched.length),i=function(){var a=t.matched[c];a&&(e.matched.find((function(e){return B(e,a)}))?o.push(a):n.push(a));var i=e.matched[c];i&&(t.matched.find((function(e){return B(e,i)}))||r.push(i))},c=0;ce.length)&&(t=e.length);for(var n=0,o=Array(t);n0&&void 0!==arguments[0]?arguments[0]:"",t="",n=[t],a=0,i=[],c=s(e);function l(e){(a+=1)===n.length||n.splice(a),n.push(e)}function d(e,t,n){for(var r={direction:n.direction,delta:n.delta,type:o.pop},a=0,c=i;a(i.push(e),function(){var t=i.indexOf(e);t>-1&&i.splice(t,1)}),destroy(){i=[],n=[t],a=0},go(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=this.location,i=e<0?r.back:r.forward;a=Math.max(0,Math.min(a+e,n.length-1)),t&&d(this.location,o,{direction:i,delta:e})},get position(){return a}};return Object.defineProperty(f,"location",{enumerable:!0,get:function(){return n[a]}}),f}t.createHippyHistory=d,t.createHippyRouter=function(e){var t,n=a.createRouter({history:null!==(t=e.history)&&void 0!==t?t:d(),routes:e.routes});return e.noInjectAndroidHardwareBackPress||function(e){if(i.Native.isAndroid()){var t=function(){if(e.options.history.position>0)return e.back(),!0};e.isReady().then((function(){i.BackAndroid.addListener(t)}))}}(n),n},Object.keys(a).forEach((function(e){"default"===e||t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})}))},function(e,t,n){e.exports=n.p+"assets/hippyLogoWhite.png"},function(e,t,n){"use strict";n.d(t,"a",(function(){return St}));var o=n(6),r=n.n(o),a=n(53),i=n(0);var c=n(1),l=Object(c.defineComponent)({setup(){var e=Object(c.ref)(!1),t=Object(c.ref)(!1),n=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:n,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(){n.value=!n.value}}}}),u=(n(73),n(3)),s=n.n(u);var d=s()(l,[["render",function(e,t,n,o,r,a){return Object(i.t)(),Object(i.f)("div",{class:"button-demo"},[Object(i.g)("label",{class:"button-label"},"按钮和状态绑定"),Object(i.g)("button",{class:Object(i.o)([{"is-active":e.isClicked,"is-pressing":e.isPressing},"button-demo-1"]),onTouchstart:t[0]||(t[0]=Object(i.J)((function(){return e.onTouchBtnStart&&e.onTouchBtnStart.apply(e,arguments)}),["stop"])),onTouchmove:t[1]||(t[1]=Object(i.J)((function(){return e.onTouchBtnMove&&e.onTouchBtnMove.apply(e,arguments)}),["stop"])),onTouchend:t[2]||(t[2]=Object(i.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(i.t)(),Object(i.f)("span",{key:0,class:"button-text"},"视图已经被点击了,再点一下恢复")):(Object(i.t)(),Object(i.f)("span",{key:1,class:"button-text"},"视图尚未点击"))],34),Object(i.I)(Object(i.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),[[i.F,e.isClicked]])])}],["__scopeId","data-v-05797918"]]),f=n(17),b=n.n(f);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function g(e){for(var t=1;t1&&(n.value.numberOfLines-=1)},incrementLine:function(){n.value.numberOfLines<6&&(n.value.numberOfLines+=1)},changeMode:function(e){n.value.ellipsizeMode=e},changeTextShadow:function(){o.value.textShadowOffsetX=t.value%2==1?10:1,o.value.textShadowColor=t.value%2==1?"red":"grey",t.value+=1},changeBreakStrategy:function(e){r.value=e}}}});n(80);var le=s()(ce,[["render",function(e,t,n,o,r,a){return Object(i.t)(),Object(i.f)("div",{class:"p-demo"},[Object(i.g)("div",null,[Object(i.g)("label",null,"不带样式:"),Object(i.g)("p",{class:"p-demo-content",onTouchstart:t[0]||(t[0]=Object(i.J)((function(){return e.onTouchTextStart&&e.onTouchTextStart.apply(e,arguments)}),["stop"])),onTouchmove:t[1]||(t[1]=Object(i.J)((function(){return e.onTouchTextMove&&e.onTouchTextMove.apply(e,arguments)}),["stop"])),onTouchend:t[2]||(t[2]=Object(i.J)((function(){return e.onTouchTextEnd&&e.onTouchTextEnd.apply(e,arguments)}),["stop"]))}," 这是最普通的一行文字 ",32),Object(i.g)("p",{class:"p-demo-content-status"}," 当前touch状态: "+Object(i.D)(e.labelTouchStatus),1),Object(i.g)("label",null,"颜色:"),Object(i.g)("p",{class:"p-demo-1 p-demo-content"}," 这行文字改变了颜色 "),Object(i.g)("label",null,"尺寸:"),Object(i.g)("p",{class:"p-demo-2 p-demo-content"}," 这行改变了大小 "),Object(i.g)("label",null,"粗体:"),Object(i.g)("p",{class:"p-demo-3 p-demo-content"}," 这行加粗了 "),Object(i.g)("label",null,"下划线:"),Object(i.g)("p",{class:"p-demo-4 p-demo-content"}," 这里有条下划线 "),Object(i.g)("label",null,"删除线:"),Object(i.g)("p",{class:"p-demo-5 p-demo-content"}," 这里有条删除线 "),Object(i.g)("label",null,"自定义字体:"),Object(i.g)("p",{class:"p-demo-6 p-demo-content"}," 腾讯字体 Hippy "),Object(i.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-weight":"bold"}}," 腾讯字体 Hippy 粗体 "),Object(i.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-style":"italic"}}," 腾讯字体 Hippy 斜体 "),Object(i.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-weight":"bold","font-style":"italic"}}," 腾讯字体 Hippy 粗斜体 "),Object(i.g)("label",null,"文字阴影:"),Object(i.g)("p",{class:"p-demo-7 p-demo-content",style:Object(i.p)(e.textShadow),onClick:t[3]||(t[3]=function(){return e.changeTextShadow&&e.changeTextShadow.apply(e,arguments)})}," 这里是文字灰色阴影,点击可改变颜色 ",4),Object(i.g)("label",null,"文本字符间距"),Object(i.g)("p",{class:"p-demo-8 p-demo-content",style:{"margin-bottom":"5px"}}," Text width letter-spacing -1 "),Object(i.g)("p",{class:"p-demo-9 p-demo-content",style:{"margin-top":"5px"}}," Text width letter-spacing 5 "),Object(i.g)("label",null,"字体 style:"),Object(i.g)("div",{class:"p-demo-content"},[Object(i.g)("p",{style:{"font-style":"normal"}}," font-style: normal "),Object(i.g)("p",{style:{"font-style":"italic"}}," font-style: italic "),Object(i.g)("p",null,"font-style: [not set]")]),Object(i.g)("label",null,"numberOfLines="+Object(i.D)(e.textMode.numberOfLines)+" | ellipsizeMode="+Object(i.D)(e.textMode.ellipsizeMode),1),Object(i.g)("div",{class:"p-demo-content"},[Object(i.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5}},[Object(i.g)("span",{style:{"font-size":"19px",color:"white"}},"先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。"),Object(i.g)("span",null,"然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")],8,["numberOfLines","ellipsizeMode"]),Object(i.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5}},Object(i.D)("line 1\n\nline 3\n\nline 5"),8,["numberOfLines","ellipsizeMode"]),Object(i.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5,fontSize:14}},[Object(i.g)("img",{style:{width:24,height:24},src:e.img1},null,8,["src"]),Object(i.g)("img",{style:{width:24,height:24},src:e.img2},null,8,["src"])],8,["numberOfLines","ellipsizeMode"]),Object(i.g)("div",{class:"button-bar"},[Object(i.g)("button",{class:"button",onClick:t[4]||(t[4]=function(){return e.incrementLine&&e.incrementLine.apply(e,arguments)})},[Object(i.g)("span",null,"加一行")]),Object(i.g)("button",{class:"button",onClick:t[5]||(t[5]=function(){return e.decrementLine&&e.decrementLine.apply(e,arguments)})},[Object(i.g)("span",null,"减一行")])]),Object(i.g)("div",{class:"button-bar"},[Object(i.g)("button",{class:"button",onClick:t[6]||(t[6]=function(){return e.changeMode("clip")})},[Object(i.g)("span",null,"clip")]),Object(i.g)("button",{class:"button",onClick:t[7]||(t[7]=function(){return e.changeMode("head")})},[Object(i.g)("span",null,"head")]),Object(i.g)("button",{class:"button",onClick:t[8]||(t[8]=function(){return e.changeMode("middle")})},[Object(i.g)("span",null,"middle")]),Object(i.g)("button",{class:"button",onClick:t[9]||(t[9]=function(){return e.changeMode("tail")})},[Object(i.g)("span",null,"tail")])])]),"android"===e.Platform?(Object(i.t)(),Object(i.f)("label",{key:0},"break-strategy="+Object(i.D)(e.breakStrategy),1)):Object(i.e)("v-if",!0),"android"===e.Platform?(Object(i.t)(),Object(i.f)("div",{key:1,class:"p-demo-content"},[Object(i.g)("p",{"break-strategy":e.breakStrategy,style:{borderWidth:1,borderColor:"gray"}},Object(i.D)(e.longText),9,["break-strategy"]),Object(i.g)("div",{class:"button-bar"},[Object(i.g)("button",{class:"button",onClick:t[10]||(t[10]=Object(i.J)((function(){return e.changeBreakStrategy("simple")}),["stop"]))},[Object(i.g)("span",null,"simple")]),Object(i.g)("button",{class:"button",onClick:t[11]||(t[11]=Object(i.J)((function(){return e.changeBreakStrategy("high_quality")}),["stop"]))},[Object(i.g)("span",null,"high_quality")]),Object(i.g)("button",{class:"button",onClick:t[12]||(t[12]=Object(i.J)((function(){return e.changeBreakStrategy("balanced")}),["stop"]))},[Object(i.g)("span",null,"balanced")])])])):Object(i.e)("v-if",!0),Object(i.g)("label",null,"vertical-align"),Object(i.g)("div",{class:"p-demo-content"},[Object(i.g)("p",{style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(i.g)("img",{style:{width:"24",height:"24","vertical-align":"top"},src:e.img2},null,8,["src"]),Object(i.g)("img",{style:{width:"18",height:"12","vertical-align":"middle"},src:e.img2},null,8,["src"]),Object(i.g)("img",{style:{width:"24",height:"12","vertical-align":"baseline"},src:e.img2},null,8,["src"]),Object(i.g)("img",{style:{width:"36",height:"24","vertical-align":"bottom"},src:e.img2},null,8,["src"]),Object(i.g)("img",{style:{width:"24",height:"24","vertical-align":"top"},src:e.img3},null,8,["src"]),Object(i.g)("img",{style:{width:"18",height:"12","vertical-align":"middle"},src:e.img3},null,8,["src"]),Object(i.g)("img",{style:{width:"24",height:"12","vertical-align":"baseline"},src:e.img3},null,8,["src"]),Object(i.g)("img",{style:{width:"36",height:"24","vertical-align":"bottom"},src:e.img3},null,8,["src"]),Object(i.g)("span",{style:{"font-size":"16","vertical-align":"top"}},"字"),Object(i.g)("span",{style:{"font-size":"16","vertical-align":"middle"}},"字"),Object(i.g)("span",{style:{"font-size":"16","vertical-align":"baseline"}},"字"),Object(i.g)("span",{style:{"font-size":"16","vertical-align":"bottom"}},"字")]),"android"===e.Platform?(Object(i.t)(),Object(i.f)("p",{key:0}," legacy mode: ")):Object(i.e)("v-if",!0),"android"===e.Platform?(Object(i.t)(),Object(i.f)("p",{key:1,style:{lineHeight:"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(i.g)("img",{style:{width:"24",height:"24","vertical-alignment":"0"},src:e.img2},null,8,["src"]),Object(i.g)("img",{style:{width:"18",height:"12","vertical-alignment":"1"},src:e.img2},null,8,["src"]),Object(i.g)("img",{style:{width:"24",height:"12","vertical-alignment":"2"},src:e.img2},null,8,["src"]),Object(i.g)("img",{style:{width:"36",height:"24","vertical-alignment":"3"},src:e.img2},null,8,["src"]),Object(i.g)("img",{style:{width:"24",height:"24",top:"-10"},src:e.img3},null,8,["src"]),Object(i.g)("img",{style:{width:"18",height:"12",top:"-5"},src:e.img3},null,8,["src"]),Object(i.g)("img",{style:{width:"24",height:"12"},src:e.img3},null,8,["src"]),Object(i.g)("img",{style:{width:"36",height:"24",top:"5"},src:e.img3},null,8,["src"]),Object(i.g)("span",{style:{"font-size":"16"}},"字"),Object(i.g)("span",{style:{"font-size":"16"}},"字"),Object(i.g)("span",{style:{"font-size":"16"}},"字"),Object(i.g)("span",{style:{"font-size":"16"}},"字")])):Object(i.e)("v-if",!0)]),Object(i.g)("label",null,"tint-color & background-color"),Object(i.g)("div",{class:"p-demo-content"},[Object(i.g)("p",{style:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(i.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange"},src:e.img2},null,8,["src"]),Object(i.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(i.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(i.g)("span",{style:{"vertical-align":"middle","background-color":"#99f"}},"text")]),"android"===e.Platform?(Object(i.t)(),Object(i.f)("p",{key:0}," legacy mode: ")):Object(i.e)("v-if",!0),"android"===e.Platform?(Object(i.t)(),Object(i.f)("p",{key:1,style:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(i.g)("img",{style:{width:"24",height:"24","tint-color":"orange"},src:e.img2},null,8,["src"]),Object(i.g)("img",{style:{width:"24",height:"24","tint-color":"orange","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(i.g)("img",{style:{width:"24",height:"24","background-color":"#ccc"},src:e.img2},null,8,["src"])])):Object(i.e)("v-if",!0)]),Object(i.g)("label",null,"margin"),Object(i.g)("div",{class:"p-demo-content"},[Object(i.g)("p",{style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(i.g)("img",{style:{width:"24",height:"24","vertical-align":"top","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(i.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(i.g)("img",{style:{width:"24",height:"24","vertical-align":"baseline","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(i.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(i.t)(),Object(i.f)("p",{key:0}," legacy mode: ")):Object(i.e)("v-if",!0),"android"===e.Platform?(Object(i.t)(),Object(i.f)("p",{key:1,style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(i.g)("img",{style:{width:"24",height:"24","vertical-alignment":"0","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(i.g)("img",{style:{width:"24",height:"24","vertical-alignment":"1","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(i.g)("img",{style:{width:"24",height:"24","vertical-alignment":"2","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(i.g)("img",{style:{width:"24",height:"24","vertical-alignment":"3","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"])])):Object(i.e)("v-if",!0)])])])}],["__scopeId","data-v-34e2123c"]]);var ue=Object(c.defineComponent)({setup:()=>({Platform:v.Native.Platform})});n(81);var se=s()(ue,[["render",function(e,t,n,o,r,a){return Object(i.t)(),Object(i.f)("div",{id:"shadow-demo"},["android"===e.Platform?(Object(i.t)(),Object(i.f)("div",{key:0,class:"no-offset-shadow-demo-cube-android"},[Object(i.g)("div",{class:"no-offset-shadow-demo-content-android"},[Object(i.g)("p",null,"没有偏移阴影样式")])])):Object(i.e)("v-if",!0),"ios"===e.Platform?(Object(i.t)(),Object(i.f)("div",{key:1,class:"no-offset-shadow-demo-cube-ios"},[Object(i.g)("div",{class:"no-offset-shadow-demo-content-ios"},[Object(i.g)("p",null,"没有偏移阴影样式")])])):Object(i.e)("v-if",!0),"android"===e.Platform?(Object(i.t)(),Object(i.f)("div",{key:2,class:"offset-shadow-demo-cube-android"},[Object(i.g)("div",{class:"offset-shadow-demo-content-android"},[Object(i.g)("p",null,"偏移阴影样式")])])):Object(i.e)("v-if",!0),"ios"===e.Platform?(Object(i.t)(),Object(i.f)("div",{key:3,class:"offset-shadow-demo-cube-ios"},[Object(i.g)("div",{class:"offset-shadow-demo-content-ios"},[Object(i.g)("p",null,"偏移阴影样式")])])):Object(i.e)("v-if",!0)])}],["__scopeId","data-v-19ab3f2d"]]);var de=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:v.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}}}});n(82);var fe=s()(de,[["render",function(e,t,n,o,r,a){return Object(i.t)(),Object(i.f)("div",{id:"demo-textarea"},[Object(i.g)("label",null,"多行文本:"),Object(i.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(i.g)("div",{class:"output-container"},[Object(i.g)("p",{class:"output"}," 输入的文本为:"+Object(i.D)(e.content),1)]),"android"===e.Platform?(Object(i.t)(),Object(i.f)("label",{key:0},"break-strategy="+Object(i.D)(e.breakStrategy),1)):Object(i.e)("v-if",!0),"android"===e.Platform?(Object(i.t)(),Object(i.f)("div",{key:1},[Object(i.g)("textarea",{class:"textarea",defaultValue:e.longText,"break-strategy":e.breakStrategy},null,8,["defaultValue","break-strategy"]),Object(i.g)("div",{class:"button-bar"},[Object(i.g)("button",{class:"button",onClick:t[2]||(t[2]=function(){return e.changeBreakStrategy("simple")})},[Object(i.g)("span",null,"simple")]),Object(i.g)("button",{class:"button",onClick:t[3]||(t[3]=function(){return e.changeBreakStrategy("high_quality")})},[Object(i.g)("span",null,"high_quality")]),Object(i.g)("button",{class:"button",onClick:t[4]||(t[4]=function(){return e.changeBreakStrategy("balanced")})},[Object(i.g)("span",null,"balanced")])])])):Object(i.e)("v-if",!0)])}],["__scopeId","data-v-6d6167b3"]]);var be=n(9),pe=Object(c.defineComponent)({setup(){var e=null,t=Object(c.ref)(""),n=function(){var n=P()(R.a.mark((function n(o){var r,a,i,c;return R.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("nativeWithPromise"!==o){n.next=6;break}return n.next=3,Object(be.h)("aaa");case 3:t.value=n.sent,n.next=7;break;case 6:"getTurboConfig"===o?(e=Object(be.g)(),t.value="获取到config对象"):"printTurboConfig"===o?t.value=Object(be.i)(null!==(r=e)&&void 0!==r?r:Object(be.g)()):"getInfo"===o?t.value=(null!==(a=e)&&void 0!==a?a:Object(be.g)()).getInfo():"setInfo"===o?((null!==(i=e)&&void 0!==i?i:Object(be.g)()).setInfo("Hello World"),t.value="设置config信息成功"):(c={getString:function(){return Object(be.f)("123")},getNum:function(){return Object(be.d)(1024)},getBoolean:function(){return Object(be.b)(!0)},getMap:function(){return Object(be.c)(new Map([["a","1"],["b","2"]]))},getObject:function(){return Object(be.e)({c:"3",d:"4"})},getArray:function(){return Object(be.a)(["a","b","c"])}},t.value=c[o]());case 7:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();return{result:t,funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"],onTurboFunc:n}}});n(83);var ge=s()(pe,[["render",function(e,t,n,o,r,a){return Object(i.t)(),Object(i.f)("div",{class:"demo-turbo"},[Object(i.g)("span",{class:"result"},Object(i.D)(e.result),1),Object(i.g)("ul",{style:{flex:"1"}},[(Object(i.t)(!0),Object(i.f)(i.a,null,Object(i.x)(e.funList,(function(t){return Object(i.t)(),Object(i.f)("li",{key:t,class:"cell"},[Object(i.g)("div",{class:"contentView"},[Object(i.g)("div",{class:"func-info"},[Object(i.g)("span",{numberOfLines:0},"函数名:"+Object(i.D)(t),1)]),Object(i.g)("span",{class:"action-button",onClick:Object(i.J)((function(){return e.onTurboFunc(t)}),["stop"])},"运行",8,["onClick"])])])})),128))])])}]]);var ve=null,me=Object(c.ref)([]),he=function(e){me.value.unshift(e)},Oe=function(){ve&&1===ve.readyState&&ve.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){Oe(),(ve=new WebSocket(e)).onopen=function(){var e;return he("[Opened] ".concat(null===(e=ve)||void 0===e?void 0:e.url))},ve.onclose=function(){var e;return he("[Closed] ".concat(null===(e=ve)||void 0===e?void 0:e.url))},ve.onerror=function(e){he("[Error] ".concat(e.reason))},ve.onmessage=function(e){return he("[Received] ".concat(e.data))}}(e)}))},disconnect:function(){Oe()},sendMessage:function(){var e=t.value;e&&e.getValue().then((function(e){!function(e){he("[Sent] ".concat(e)),ve&&ve.send(e)}(e)}))}}}});n(84);var ye={demoDiv:{name:"div 组件",component:D},demoShadow:{name:"box-shadow",component:se},demoP:{name:"p 组件",component:le},demoButton:{name:"button 组件",component:d},demoImg:{name:"img 组件",component:F},demoInput:{name:"input 组件",component:J},demoTextarea:{name:"textarea 组件",component:fe},demoUl:{name:"ul/li 组件",component:ie},demoIFrame:{name:"iframe 组件",component:N},demoWebSocket:{name:"WebSocket",component:s()(je,[["render",function(e,t,n,o,r,a){return Object(i.t)(),Object(i.f)("div",{id:"websocket-demo"},[Object(i.g)("div",null,[Object(i.g)("p",{class:"demo-title"}," Url: "),Object(i.g)("input",{ref:"inputUrl",value:"wss://echo.websocket.org"},null,512),Object(i.g)("div",{class:"row"},[Object(i.g)("button",{onClick:t[0]||(t[0]=Object(i.J)((function(){return e.connect&&e.connect.apply(e,arguments)}),["stop"]))},[Object(i.g)("span",null,"Connect")]),Object(i.g)("button",{onClick:t[1]||(t[1]=Object(i.J)((function(){return e.disconnect&&e.disconnect.apply(e,arguments)}),["stop"]))},[Object(i.g)("span",null,"Disconnect")])])]),Object(i.g)("div",null,[Object(i.g)("p",{class:"demo-title"}," Message: "),Object(i.g)("input",{ref:"inputMessage",value:"Rock it with Hippy WebSocket"},null,512),Object(i.g)("button",{onClick:t[2]||(t[2]=Object(i.J)((function(){return e.sendMessage&&e.sendMessage.apply(e,arguments)}),["stop"]))},[Object(i.g)("span",null,"Send")])]),Object(i.g)("div",null,[Object(i.g)("p",{class:"demo-title"}," Log: "),Object(i.g)("div",{class:"output fullscreen"},[Object(i.g)("div",null,[(Object(i.t)(!0),Object(i.f)(i.a,null,Object(i.x)(e.output,(function(e,t){return Object(i.t)(),Object(i.f)("p",{key:t},Object(i.D)(e),1)})),128))])])])])}],["__scopeId","data-v-99a0fc74"]])},demoDynamicImport:{name:"DynamicImport",component:L},demoTurbo:{name:"Turbo",component:ge}};var we=Object(c.defineComponent)({setup(){var e=Object(c.ref)(null),t=Object(c.ref)(0),n=Object(c.ref)(0);Object(c.onMounted)((function(){n.value=v.Native.Dimensions.screen.width}));return{demoOnePointRef:e,demon2Left:t,screenWidth:n,onTouchDown1:function(t){var o=t.touches[0].clientX-40;console.log("touchdown x",o,n.value),e.value&&e.value.setNativeProps({style:{left:o}})},onTouchDown2:function(e){t.value=e.touches[0].clientX-40,console.log("touchdown x",t.value,n.value)},onTouchMove1:function(t){var o=t.touches[0].clientX-40;console.log("touchmove x",o,n.value),e.value&&e.value.setNativeProps({style:{left:o}})},onTouchMove2:function(e){t.value=e.touches[0].clientX-40,console.log("touchmove x",t.value,n.value)}}}});n(85);var Ae=s()(we,[["render",function(e,t,n,o,r,a){return Object(i.t)(),Object(i.f)("div",{class:"set-native-props-demo"},[Object(i.g)("label",null,"setNativeProps实现拖动效果"),Object(i.g)("div",{class:"native-demo-1-drag",style:Object(i.p)({width:e.screenWidth}),onTouchstart:t[0]||(t[0]=Object(i.J)((function(){return e.onTouchDown1&&e.onTouchDown1.apply(e,arguments)}),["stop"])),onTouchmove:t[1]||(t[1]=Object(i.J)((function(){return e.onTouchMove1&&e.onTouchMove1.apply(e,arguments)}),["stop"]))},[Object(i.g)("div",{ref:"demoOnePointRef",class:"native-demo-1-point"},null,512)],36),Object(i.g)("div",{class:"splitter"}),Object(i.g)("label",null,"普通渲染实现拖动效果"),Object(i.g)("div",{class:"native-demo-2-drag",style:Object(i.p)({width:e.screenWidth}),onTouchstart:t[2]||(t[2]=Object(i.J)((function(){return e.onTouchDown2&&e.onTouchDown2.apply(e,arguments)}),["stop"])),onTouchmove:t[3]||(t[3]=Object(i.J)((function(){return e.onTouchMove2&&e.onTouchMove2.apply(e,arguments)}),["stop"]))},[Object(i.g)("div",{class:"native-demo-2-point",style:Object(i.p)({left:e.demon2Left+"px"})},null,4)],36)])}],["__scopeId","data-v-4521f010"]]);var xe={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}]},Ce=Object(c.defineComponent)({props:{playing:Boolean,onRef:{type:Function,default:function(){}}},setup:()=>({colorActions:xe})});n(86);var Se=s()(Ce,[["render",function(e,t,n,o,r,a){var c=Object(i.z)("animation");return Object(i.t)(),Object(i.f)("div",null,[Object(i.i)(c,{ref:"animationView",playing:e.playing,actions:e.colorActions,class:"color-green"},{default:Object(i.H)((function(){return[Object(i.g)("div",{class:"color-white"},[Object(i.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)"}]}},Te=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}}});n(87);var _e=s()(Te,[["render",function(e,t,n,o,r,a){var c=Object(i.z)("animation");return Object(i.t)(),Object(i.f)("div",null,[Object(i.i)(c,{ref:"animationView",playing:e.playing,actions:e.loopActions,class:"loop-green"},{default:Object(i.H)((function(){return[Object(i.g)("div",{class:"loop-white"},[Object(i.y)(e.$slots,"default",{},void 0,!0)])]})),_:3},8,["playing","actions"])])}],["__scopeId","data-v-0ffc52dc"]]);var De={transform:{translateX:{startValue:0,toValue:200,duration:2e3,repeatCount:-1}}},Ee={transform:{translateY:{startValue:0,toValue:50,duration:2e3,repeatCount:-1}}},Pe=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,n=Object(c.ref)(""),o=Object(c.ref)(null);return Object(c.watch)(t,(function(e){switch(e){case"horizon":n.value=De;break;case"vertical":n.value=Ee;break;default:throw new Error("direction must be defined in props")}}),{immediate:!0}),Object(c.onMounted)((function(){e.onRef&&e.onRef(o.value)})),{loopActions:n,animationLoop:o}}});n(88);var Ie=s()(Pe,[["render",function(e,t,n,o,r,a){var c=Object(i.z)("animation");return Object(i.t)(),Object(i.f)("div",null,[Object(i.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(i.H)((function(){return[Object(i.g)("div",{class:"loop-white"},[Object(i.y)(e.$slots,"default",{},void 0,!0)])]})),_:3},8,["playing","actions"])])}],["__scopeId","data-v-54047ca5"]]);var Re={transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},Be={transform:{translateX:[{startValue:10,toValue:1,duration:250,timingFunction:"linear"},{startValue:1,toValue:10,duration:250,delay:750,timingFunction:"linear",repeatCount:-1}]}},Le=Object(c.defineComponent)({props:{isChanged:{type:Boolean,default:!0}},setup(e){var t=Object(c.ref)(null),n=Object(c.ref)({face:Re,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"}]}}}),o=Object(c.toRefs)(e).isChanged;return Object(c.watch)(o,(function(e,o){!o&&e?(console.log("changed to face2"),n.value.face=Be):o&&!e&&(console.log("changed to face1"),n.value.face=Re),setTimeout((function(){t.value&&t.value.start()}),10)})),{animationRef:t,imgs:{downVoteFace:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAAAXVBMVEUAAACmaCCoaSKlZyCmaCCoaiG0byOlZyCmaCGnaSKmaCCmZyClZyCmaCCmaSCybyymZyClaCGlaCGnaCCnaSGnaiOlZyKocCXMmTOmaCKnaCKmaSClZyGoZyClZyDPYmTmAAAAHnRSTlMA6S/QtjYO+FdJ4tyZbWYH7cewgTw5JRQFkHFfXk8vbZ09AAAAiUlEQVQY07WQRxLDMAhFPyq21dxLKvc/ZoSiySTZ+y3g8YcFA5wFcOkHYEi5QDkknparH5EZKS6GExQLs0RzUQUY6VYiK2ayNIapQ6EjNk2xd616Bi5qIh2fn8BqroS1XtPmgYKXxo+y07LuDrH95pm3LBM5FMpHWg2osOOLjRR6hR/WOw780bwASN0IT3NosMcAAAAASUVORK5CYII="},animations:n,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")}}}});n(89);var Me=s()(Le,[["render",function(e,t,n,o,r,a){var c=Object(i.z)("animation");return Object(i.t)(),Object(i.f)("div",null,[Object(i.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(i.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 Ne=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}]}}}})});n(90);var He=s()(Ne,[["render",function(e,t,n,o,r,a){var c=Object(i.z)("animation");return Object(i.t)(),Object(i.f)("div",null,[Object(i.i)(c,{actions:e.animations.face,class:"vote-face",playing:""},null,8,["actions"]),Object(i.i)(c,{tag:"img",class:"vote-up-eye",playing:"",props:{src:e.imgs.upVoteEye},actions:e.animations.upVoteEye},null,8,["props","actions"]),Object(i.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"]]),Ve=Object(c.defineComponent)({components:{Loop:Ie,colorComponent:Se,CubicBezier:_e},setup(){var e=Object(c.ref)(!0),t=Object(c.ref)(!0),n=Object(c.ref)(!0),o=Object(c.ref)("horizon"),r=Object(c.ref)(!0),a=Object(c.ref)(null),i=Object(c.shallowRef)(He);return{loopPlaying:e,colorPlaying:t,cubicPlaying:n,direction:o,voteComponent:i,colorComponent:Se,isChanged:r,animationRef:a,voteUp:function(){i.value=He},voteDown:function(){i.value=Me,r.value=!r.value},onRef:function(e){a.value=e},toggleLoopPlaying:function(){e.value=!e.value},toggleColorPlaying:function(){t.value=!t.value},toggleCubicPlaying:function(){n.value=!n.value},toggleDirection:function(){o.value="horizon"===o.value?"vertical":"horizon"},actionsDidUpdate:function(){Object(c.nextTick)().then((function(){console.log("actions updated & startAnimation"),a.value&&a.value.start()}))}}}});n(91);var ze=s()(Ve,[["render",function(e,t,n,o,r,a){var c=Object(i.z)("loop"),l=Object(i.z)("color-component"),u=Object(i.z)("cubic-bezier");return Object(i.t)(),Object(i.f)("ul",{id:"animation-demo"},[Object(i.g)("li",null,[Object(i.g)("label",null,"控制动画"),Object(i.g)("div",{class:"toolbar"},[Object(i.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=function(){return e.toggleLoopPlaying&&e.toggleLoopPlaying.apply(e,arguments)})},[e.loopPlaying?(Object(i.t)(),Object(i.f)("span",{key:0},"暂停")):(Object(i.t)(),Object(i.f)("span",{key:1},"播放"))]),Object(i.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=function(){return e.toggleDirection&&e.toggleDirection.apply(e,arguments)})},["horizon"===e.direction?(Object(i.t)(),Object(i.f)("span",{key:0},"切换为纵向")):(Object(i.t)(),Object(i.f)("span",{key:1},"切换为横向"))])]),Object(i.g)("div",{style:{height:"150px"}},[Object(i.i)(c,{playing:e.loopPlaying,direction:e.direction,"on-ref":e.onRef,onActionsDidUpdate:e.actionsDidUpdate},{default:Object(i.H)((function(){return[Object(i.g)("p",null,"I'm a looping animation")]})),_:1},8,["playing","direction","on-ref","onActionsDidUpdate"])])]),Object(i.g)("li",null,[Object(i.g)("div",{style:{"margin-top":"10px"}}),Object(i.g)("label",null,"点赞笑脸动画:"),Object(i.g)("div",{class:"toolbar"},[Object(i.g)("button",{class:"toolbar-btn",onClick:t[2]||(t[2]=function(){return e.voteUp&&e.voteUp.apply(e,arguments)})},[Object(i.g)("span",null,"点赞 👍")]),Object(i.g)("button",{class:"toolbar-btn",onClick:t[3]||(t[3]=function(){return e.voteDown&&e.voteDown.apply(e,arguments)})},[Object(i.g)("span",null,"踩 👎")])]),Object(i.g)("div",{class:"vote-face-container center"},[(Object(i.t)(),Object(i.d)(Object(i.A)(e.voteComponent),{class:"vote-icon","is-changed":e.isChanged},null,8,["is-changed"]))])]),Object(i.g)("li",null,[Object(i.g)("div",{style:{"margin-top":"10px"}}),Object(i.g)("label",null,"渐变色动画"),Object(i.g)("div",{class:"toolbar"},[Object(i.g)("button",{class:"toolbar-btn",onClick:t[4]||(t[4]=function(){return e.toggleColorPlaying&&e.toggleColorPlaying.apply(e,arguments)})},[e.colorPlaying?(Object(i.t)(),Object(i.f)("span",{key:0},"暂停")):(Object(i.t)(),Object(i.f)("span",{key:1},"播放"))])]),Object(i.g)("div",null,[Object(i.i)(l,{playing:e.colorPlaying},{default:Object(i.H)((function(){return[Object(i.g)("p",null,"背景色渐变")]})),_:1},8,["playing"])])]),Object(i.g)("li",null,[Object(i.g)("div",{style:{"margin-top":"10px"}}),Object(i.g)("label",null,"贝塞尔曲线动画"),Object(i.g)("div",{class:"toolbar"},[Object(i.g)("button",{class:"toolbar-btn",onClick:t[5]||(t[5]=function(){return e.toggleCubicPlaying&&e.toggleCubicPlaying.apply(e,arguments)})},[e.cubicPlaying?(Object(i.t)(),Object(i.f)("span",{key:0},"暂停")):(Object(i.t)(),Object(i.f)("span",{key:1},"播放"))])]),Object(i.g)("div",null,[Object(i.i)(u,{playing:e.cubicPlaying},{default:Object(i.H)((function(){return[Object(i.g)("p",null,"cubic-bezier(.45,2.84,.38,.5)")]})),_:1},8,["playing"])])])])}],["__scopeId","data-v-4fa3f0c0"]]);var Fe=n(13),Ue=["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"],Ye=Object(c.defineComponent)({setup(){var e=Object(c.ref)(!1),t=Object(c.ref)(!1),n=Object(c.ref)("fade"),o=Object(c.ref)(!1),r=Object(c.ref)(!1),a=Object(c.ref)(!1);return Object(Fe.onBeforeRouteLeave)((function(t,n,o){e.value||o()})),{supportedOrientations:Ue,dialogIsVisible:e,dialog2IsVisible:t,dialogAnimationType:n,immersionStatusBar:o,autoHideStatusBar:r,autoHideNavigationBar:a,stopPropagation:function(e){e.stopPropagation()},onClose:function(n){n.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,n.value=t},onClickOpenSecond:function(e){e.stopPropagation(),t.value=!t.value},onClickDialogConfig:function(e){switch(e){case"hideStatusBar":r.value=!r.value;break;case"immerseStatusBar":o.value=!o.value;break;case"hideNavigationBar":a.value=!a.value}}}}});n(92);var We=s()(Ye,[["render",function(e,t,n,o,r,a){return Object(i.t)(),Object(i.f)("div",{id:"dialog-demo"},[Object(i.g)("label",null,"显示或者隐藏对话框:"),Object(i.g)("button",{class:"dialog-demo-button-1",onClick:t[0]||(t[0]=Object(i.J)((function(){return e.onClickView("slide")}),["stop"]))},[Object(i.g)("span",{class:"button-text"},"显示对话框--slide")]),Object(i.g)("button",{class:"dialog-demo-button-1",onClick:t[1]||(t[1]=Object(i.J)((function(){return e.onClickView("fade")}),["stop"]))},[Object(i.g)("span",{class:"button-text"},"显示对话框--fade")]),Object(i.g)("button",{class:"dialog-demo-button-1",onClick:t[2]||(t[2]=Object(i.J)((function(){return e.onClickView("slide_fade")}),["stop"]))},[Object(i.g)("span",{class:"button-text"},"显示对话框--slide_fade")]),Object(i.g)("button",{style:Object(i.p)([{borderColor:e.autoHideStatusBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[3]||(t[3]=Object(i.J)((function(){return e.onClickDialogConfig("hideStatusBar")}),["stop"]))},[Object(i.g)("span",{class:"button-text"},"隐藏状态栏")],4),Object(i.g)("button",{style:Object(i.p)([{borderColor:e.immersionStatusBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[4]||(t[4]=Object(i.J)((function(){return e.onClickDialogConfig("immerseStatusBar")}),["stop"]))},[Object(i.g)("span",{class:"button-text"},"沉浸式状态栏")],4),Object(i.g)("button",{style:Object(i.p)([{borderColor:e.autoHideNavigationBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[5]||(t[5]=Object(i.J)((function(){return e.onClickDialogConfig("hideNavigationBar")}),["stop"]))},[Object(i.g)("span",{class:"button-text"},"隐藏导航栏")],4),Object(i.e)(" dialog can't support v-show, can only use v-if for explicit switching "),e.dialogIsVisible?(Object(i.t)(),Object(i.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(i.e)(" dialog on iOS platform can only have one child node "),Object(i.g)("div",{class:"dialog-demo-wrapper"},[Object(i.g)("div",{class:"fullscreen center row",onClick:t[11]||(t[11]=function(){return e.onClickView&&e.onClickView.apply(e,arguments)})},[Object(i.g)("div",{class:"dialog-demo-close-btn center column",onClick:t[7]||(t[7]=function(){return e.stopPropagation&&e.stopPropagation.apply(e,arguments)})},[Object(i.g)("p",{class:"dialog-demo-close-btn-text"}," 点击空白区域关闭 "),Object(i.g)("button",{class:"dialog-demo-button-2",onClick:t[6]||(t[6]=function(){return e.onClickOpenSecond&&e.onClickOpenSecond.apply(e,arguments)})},[Object(i.g)("span",{class:"button-text"},"点击打开二级全屏弹窗")])]),e.dialog2IsVisible?(Object(i.t)(),Object(i.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(i.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(i.g)("p",{class:"dialog-demo-close-btn-text",style:{color:"white"}}," Hello 我是二级全屏弹窗,点击任意位置关闭。 ")])],40,["animationType"])):Object(i.e)("v-if",!0)])])],40,["animationType","supportedOrientations","immersionStatusBar","autoHideStatusBar","autoHideNavigationBar"])):Object(i.e)("v-if",!0)])}],["__scopeId","data-v-58c0fb99"]]);var Ge,Ke=n(12),Je=Object(c.defineComponent)({setup(){var e=Object(c.ref)("ready to set"),t=Object(c.ref)(""),n=Object(c.ref)(""),o=Object(c.ref)("正在获取..."),r=Object(c.ref)(""),a=Object(c.ref)(""),i=Object(c.ref)(""),l=Object(c.ref)(null),u=Object(c.ref)("请求网址中..."),s=Object(c.ref)("ready to set"),d=Object(c.ref)(""),f=Object(c.ref)(0),b=function(){var e=P()(R.a.mark((function e(){var n;return R.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.Native.AsyncStorage.getItem("itemKey");case 2:n=e.sent,t.value=n||"undefined";case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=function(){var e=P()(R.a.mark((function e(){var t;return R.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.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),n.value="".concat(t.width,"x").concat(t.height);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),g=function(){var e=P()(R.a.mark((function e(){var t,n,o=arguments;return R.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]&&o[0],e.prev=1,e.next=4,v.Native.getBoundingClientRect(l.value,{relToContainer:t});case 4:n=e.sent,t?a.value="".concat(JSON.stringify(n)):r.value="".concat(JSON.stringify(n)),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(){i.value=JSON.stringify(Object(Ke.a)()),v.Native.NetInfo.fetch().then((function(e){o.value=e})),Ge=v.Native.NetInfo.addEventListener("change",(function(e){o.value="收到通知: ".concat(e.network_info)})),fetch("https://hippyjs.org",{mode:"no-cors"}).then((function(e){u.value="成功状态: ".concat(e.status)})).catch((function(e){u.value="收到错误: ".concat(e)})),v.EventBus.$on("testEvent",(function(){f.value+=1}))})),{Native:v.Native,rect1:r,rect2:a,rectRef:l,storageValue:t,storageSetStatus:e,imageSize:n,netInfoText:o,superProps:i,fetchText:u,cookieString:s,cookiesValue:d,getSize:p,setItem:function(){v.Native.AsyncStorage.setItem("itemKey","hippy"),e.value='set "hippy" value succeed'},getItem:b,removeItem:function(){v.Native.AsyncStorage.removeItem("itemKey"),e.value='remove "hippy" value succeed'},setCookie:function(){v.Native.Cookie.set("https://hippyjs.org","name=hippy;network=mobile"),s.value="'name=hippy;network=mobile' is set"},getCookie:function(){v.Native.Cookie.getAll("https://hippyjs.org").then((function(e){d.value=e}))},getBoundingClientRect:g,triggerAppEvent:function(){v.EventBus.$emit("testEvent")},eventTriggeredTimes:f}},beforeDestroy(){Ge&&v.Native.NetInfo.removeEventListener("change",Ge),v.EventBus.$off("testEvent")}});n(93);var qe=s()(Je,[["render",function(e,t,n,o,r,a){var c,l;return Object(i.t)(),Object(i.f)("div",{id:"demo-vue-native",ref:"rectRef"},[Object(i.g)("div",null,[Object(i.e)(" platform "),e.Native.Platform?(Object(i.t)(),Object(i.f)("div",{key:0,class:"native-block"},[Object(i.g)("label",{class:"vue-native-title"},"Native.Platform"),Object(i.g)("p",null,Object(i.D)(e.Native.Platform),1)])):Object(i.e)("v-if",!0),Object(i.e)(" device name "),Object(i.g)("div",{class:"native-block"},[Object(i.g)("label",{class:"vue-native-title"},"Native.Device"),Object(i.g)("p",null,Object(i.D)(e.Native.Device),1)]),Object(i.e)(" Is it an iPhone X "),e.Native.isIOS()?(Object(i.t)(),Object(i.f)("div",{key:1,class:"native-block"},[Object(i.g)("label",{class:"vue-native-title"},"Native.isIPhoneX"),Object(i.g)("p",null,Object(i.D)(e.Native.isIPhoneX),1)])):Object(i.e)("v-if",!0),Object(i.e)(" OS version, currently only available for iOS, other platforms return null "),e.Native.isIOS()?(Object(i.t)(),Object(i.f)("div",{key:2,class:"native-block"},[Object(i.g)("label",{class:"vue-native-title"},"Native.OSVersion"),Object(i.g)("p",null,Object(i.D)(e.Native.OSVersion||"null"),1)])):Object(i.e)("v-if",!0),Object(i.e)(" Internationalization related information "),Object(i.g)("div",{class:"native-block"},[Object(i.g)("label",{class:"vue-native-title"},"Native.Localization"),Object(i.g)("p",null,Object(i.D)("国际化相关信息")),Object(i.g)("p",null,Object(i.D)("国家 ".concat(null===(c=e.Native.Localization)||void 0===c?void 0:c.country)),1),Object(i.g)("p",null,Object(i.D)("语言 ".concat(null===(l=e.Native.Localization)||void 0===l?void 0:l.language)),1),Object(i.g)("p",null,Object(i.D)("方向 ".concat(1===e.Native.Localization.direction?"RTL":"LTR")),1)]),Object(i.e)(" API version, currently only available for Android, other platforms return null "),e.Native.isAndroid()?(Object(i.t)(),Object(i.f)("div",{key:3,class:"native-block"},[Object(i.g)("label",{class:"vue-native-title"},"Native.APILevel"),Object(i.g)("p",null,Object(i.D)(e.Native.APILevel||"null"),1)])):Object(i.e)("v-if",!0),Object(i.e)(" Whether the screen is vertically displayed "),Object(i.g)("div",{class:"native-block"},[Object(i.g)("label",{class:"vue-native-title"},"Native.screenIsVertical"),Object(i.g)("p",null,Object(i.D)(e.Native.screenIsVertical),1)]),Object(i.e)(" width of window "),e.Native.Dimensions.window.width?(Object(i.t)(),Object(i.f)("div",{key:4,class:"native-block"},[Object(i.g)("label",{class:"vue-native-title"},"Native.Dimensions.window.width"),Object(i.g)("p",null,Object(i.D)(e.Native.Dimensions.window.width),1)])):Object(i.e)("v-if",!0),Object(i.e)(" The height of the window, it should be noted that both platforms include the status bar. "),Object(i.e)(" Android will start drawing from the first pixel below the status bar. "),e.Native.Dimensions.window.height?(Object(i.t)(),Object(i.f)("div",{key:5,class:"native-block"},[Object(i.g)("label",{class:"vue-native-title"},"Native.Dimensions.window.height"),Object(i.g)("p",null,Object(i.D)(e.Native.Dimensions.window.height),1)])):Object(i.e)("v-if",!0),Object(i.e)(" width of screen "),e.Native.Dimensions.screen.width?(Object(i.t)(),Object(i.f)("div",{key:6,class:"native-block"},[Object(i.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.width"),Object(i.g)("p",null,Object(i.D)(e.Native.Dimensions.screen.width),1)])):Object(i.e)("v-if",!0),Object(i.e)(" height of screen "),e.Native.Dimensions.screen.height?(Object(i.t)(),Object(i.f)("div",{key:7,class:"native-block"},[Object(i.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.height"),Object(i.g)("p",null,Object(i.D)(e.Native.Dimensions.screen.height),1)])):Object(i.e)("v-if",!0),Object(i.e)(" the pt value of a pixel "),Object(i.g)("div",{class:"native-block"},[Object(i.g)("label",{class:"vue-native-title"},"Native.OnePixel"),Object(i.g)("p",null,Object(i.D)(e.Native.OnePixel),1)]),Object(i.e)(" Android Navigation Bar Height "),e.Native.Dimensions.screen.navigatorBarHeight?(Object(i.t)(),Object(i.f)("div",{key:8,class:"native-block"},[Object(i.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.navigatorBarHeight"),Object(i.g)("p",null,Object(i.D)(e.Native.Dimensions.screen.navigatorBarHeight),1)])):Object(i.e)("v-if",!0),Object(i.e)(" height of status bar "),e.Native.Dimensions.screen.statusBarHeight?(Object(i.t)(),Object(i.f)("div",{key:9,class:"native-block"},[Object(i.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.statusBarHeight"),Object(i.g)("p",null,Object(i.D)(e.Native.Dimensions.screen.statusBarHeight),1)])):Object(i.e)("v-if",!0),Object(i.e)(" android virtual navigation bar height "),e.Native.isAndroid()&&void 0!==e.Native.Dimensions.screen.navigatorBarHeight?(Object(i.t)(),Object(i.f)("div",{key:10,class:"native-block"},[Object(i.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.navigatorBarHeight(Android only)"),Object(i.g)("p",null,Object(i.D)(e.Native.Dimensions.screen.navigatorBarHeight),1)])):Object(i.e)("v-if",!0),Object(i.e)(" The startup parameters passed from the native "),e.superProps?(Object(i.t)(),Object(i.f)("div",{key:11,class:"native-block"},[Object(i.g)("label",{class:"vue-native-title"},"afterCallback of $start method contain superProps"),Object(i.g)("p",null,Object(i.D)(e.superProps),1)])):Object(i.e)("v-if",!0),Object(i.e)(" A demo of Native Event,Just show how to use "),Object(i.g)("div",{class:"native-block"},[Object(i.g)("label",{class:"vue-native-title"},"App event"),Object(i.g)("div",null,[Object(i.g)("button",{class:"event-btn",onClick:t[0]||(t[0]=function(){return e.triggerAppEvent&&e.triggerAppEvent.apply(e,arguments)})},[Object(i.g)("span",{class:"event-btn-text"},"Trigger app event")]),Object(i.g)("div",{class:"event-btn-result"},[Object(i.g)("p",null,"Event triggered times: "+Object(i.D)(e.eventTriggeredTimes),1)])])]),Object(i.e)(" example of measuring the size of an element "),Object(i.g)("div",{ref:"measure-block",class:"native-block"},[Object(i.g)("label",{class:"vue-native-title"},"Native.getBoundingClientRect"),Object(i.g)("div",{class:"item-wrapper"},[Object(i.g)("button",{class:"item-button",onClick:t[1]||(t[1]=function(){return e.getBoundingClientRect(!1)})},[Object(i.g)("span",null,"relative to App")]),Object(i.g)("span",{style:{"max-width":"200px"}},Object(i.D)(e.rect1),1)]),Object(i.g)("div",{class:"item-wrapper"},[Object(i.g)("button",{class:"item-button",onClick:t[2]||(t[2]=function(){return e.getBoundingClientRect(!0)})},[Object(i.g)("span",null,"relative to Container")]),Object(i.g)("span",{style:{"max-width":"200px"}},Object(i.D)(e.rect2),1)])],512),Object(i.e)(" local storage "),e.Native.AsyncStorage?(Object(i.t)(),Object(i.f)("div",{key:12,class:"native-block"},[Object(i.g)("label",{class:"vue-native-title"},"AsyncStorage 使用"),Object(i.g)("div",{class:"item-wrapper"},[Object(i.g)("button",{class:"item-button",onClick:t[3]||(t[3]=function(){return e.setItem&&e.setItem.apply(e,arguments)})},[Object(i.g)("span",null,"setItem")]),Object(i.g)("span",null,Object(i.D)(e.storageSetStatus),1)]),Object(i.g)("div",{class:"item-wrapper"},[Object(i.g)("button",{class:"item-button",onClick:t[4]||(t[4]=function(){return e.removeItem&&e.removeItem.apply(e,arguments)})},[Object(i.g)("span",null,"removeItem")]),Object(i.g)("span",null,Object(i.D)(e.storageSetStatus),1)]),Object(i.g)("div",{class:"item-wrapper"},[Object(i.g)("button",{class:"item-button",onClick:t[5]||(t[5]=function(){return e.getItem&&e.getItem.apply(e,arguments)})},[Object(i.g)("span",null,"getItem")]),Object(i.g)("span",null,Object(i.D)(e.storageValue),1)])])):Object(i.e)("v-if",!0),Object(i.e)(" ImageLoader "),e.Native.ImageLoader?(Object(i.t)(),Object(i.f)("div",{key:13,class:"native-block"},[Object(i.g)("label",{class:"vue-native-title"},"ImageLoader 使用"),Object(i.g)("div",{class:"item-wrapper"},[Object(i.g)("button",{class:"item-button",onClick:t[6]||(t[6]=function(){return e.getSize&&e.getSize.apply(e,arguments)})},[Object(i.g)("span",null,"getSize")]),Object(i.g)("span",null,Object(i.D)(e.imageSize),1)])])):Object(i.e)("v-if",!0),Object(i.e)(" Fetch "),Object(i.g)("div",{class:"native-block"},[Object(i.g)("label",{class:"vue-native-title"},"Fetch 使用"),Object(i.g)("div",{class:"item-wrapper"},[Object(i.g)("span",null,Object(i.D)(e.fetchText),1)])]),Object(i.e)(" network info "),e.Native.NetInfo?(Object(i.t)(),Object(i.f)("div",{key:14,class:"native-block"},[Object(i.g)("label",{class:"vue-native-title"},"NetInfo 使用"),Object(i.g)("div",{class:"item-wrapper"},[Object(i.g)("span",null,Object(i.D)(e.netInfoText),1)])])):Object(i.e)("v-if",!0),Object(i.e)(" Cookie "),e.Native.Cookie?(Object(i.t)(),Object(i.f)("div",{key:15,class:"native-block"},[Object(i.g)("label",{class:"vue-native-title"},"Cookie 使用"),Object(i.g)("div",{class:"item-wrapper"},[Object(i.g)("button",{class:"item-button",onClick:t[7]||(t[7]=function(){return e.setCookie&&e.setCookie.apply(e,arguments)})},[Object(i.g)("span",null,"setCookie")]),Object(i.g)("span",null,Object(i.D)(e.cookieString),1)]),Object(i.g)("div",{class:"item-wrapper"},[Object(i.g)("button",{class:"item-button",onClick:t[8]||(t[8]=function(){return e.getCookie&&e.getCookie.apply(e,arguments)})},[Object(i.g)("span",null,"getCookie")]),Object(i.g)("span",null,Object(i.D)(e.cookiesValue),1)])])):Object(i.e)("v-if",!0),Object(i.e)(" iOS platform "),e.Native.isIOS()?(Object(i.t)(),Object(i.f)("div",{key:16,class:"native-block"},[Object(i.g)("label",{class:"vue-native-title"},"Native.isIOS"),Object(i.g)("p",null,Object(i.D)(e.Native.isIOS()),1)])):Object(i.e)("v-if",!0),Object(i.e)(" Android platform "),e.Native.isAndroid()?(Object(i.t)(),Object(i.f)("div",{key:17,class:"native-block"},[Object(i.g)("label",{class:"vue-native-title"},"Native.isAndroid"),Object(i.g)("p",null,Object(i.D)(e.Native.isAndroid()),1)])):Object(i.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 nt=s()(tt,[["render",function(e,t,n,o,r,a){return Object(i.t)(),Object(i.f)("div",{class:"list-view-item style-one"},[Object(i.g)("p",{numberOfLines:2,enableScale:!0,class:"article-title"},Object(i.D)(e.itemBean.title),1),Object(i.g)("div",{class:"style-one-image-container"},[(Object(i.t)(!0),Object(i.f)(i.a,null,Object(i.x)(e.itemBean.picList,(function(e,t){return Object(i.t)(),Object(i.f)("img",{key:t,src:e,alt:"",class:"image style-one-image"},null,8,["src"])})),128))]),Object(i.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(i.g)("p",{class:"normal-text"},Object(i.D)(e.itemBean.subInfo.join("")),1)])])}]]);var ot=Object(c.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:function(){}}}});var rt=s()(ot,[["render",function(e,t,n,o,r,a){return Object(i.t)(),Object(i.f)("div",{class:"list-view-item style-two"},[Object(i.g)("div",{class:"style-two-left-container"},[Object(i.g)("p",{class:"article-title",numberOfLines:2,enableScale:!0},Object(i.D)(e.itemBean.title),1),Object(i.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(i.g)("p",{class:"normal-text"},Object(i.D)(e.itemBean.subInfo.join("")),1)])]),Object(i.g)("div",{class:"style-two-image-container"},[Object(i.g)("img",{src:e.itemBean.picUrl,alt:"",class:"image style-two-image"},null,8,["src"])])])}]]);var at=Object(c.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:function(){}}}});var it=s()(at,[["render",function(e,t,n,o,r,a){return Object(i.t)(),Object(i.f)("div",{class:"list-view-item style-five"},[Object(i.g)("p",{numberOfLines:2,enableScale:!0,class:"article-title"},Object(i.D)(e.itemBean.title),1),Object(i.g)("div",{class:"style-five-image-container"},[Object(i.g)("img",{src:e.itemBean.picUrl,alt:"",class:"image"},null,8,["src"])]),Object(i.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(i.g)("p",{class:"normal-text"},Object(i.D)(e.itemBean.subInfo.join(" ")),1)])])}]]),ct=0,lt=Object(c.ref)({top:0,left:0}),ut=function(){var e=P()(R.a.mark((function e(){return R.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)}}(),st=Object(c.defineComponent)({components:{StyleOne:nt,StyleTwo:rt,StyleFive:it},setup(){var e=Object(c.ref)(null),t=Object(c.ref)(null),n=Object(c.ref)(null),o=Object(c.ref)(r()(et)),a=!1,i=!1,l=Object(c.ref)(""),u=Object(c.ref)("继续下拉触发刷新"),s=Object(c.ref)("正在加载..."),d=function(){var e=P()(R.a.mark((function e(){return R.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!i){e.next=2;break}return e.abrupt("return");case 2:return i=!0,console.log("onHeaderReleased"),u.value="刷新数据中,请稍等",e.next=7,ut();case 7:o.value=e.sent,o.value=o.value.reverse(),i=!1,u.value="2秒后收起",t.value&&t.value.collapsePullHeader({time:2e3});case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),f=function(){var e=P()(R.a.mark((function e(t){var i;return R.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("endReached",t),!a){e.next=3;break}return e.abrupt("return");case 3:return a=!0,s.value="加载更多...",e.next=7,ut();case 7:0===(i=e.sent).length&&(s.value="没有更多数据"),o.value=[].concat(r()(o.value),r()(i)),a=!1,n.value&&n.value.collapsePullFooter();case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(c.onMounted)((function(){a=!1,i=!1,o.value=r()(et),ct=null!==v.Native&&void 0!==v.Native&&v.Native.Dimensions?v.Native.Dimensions.window.height:window.innerHeight,t.value&&t.value.collapsePullHeader({time:2e3})})),{loadingState:l,dataSource:o,headerRefreshText:u,footerRefreshText:s,list:e,pullHeader:t,pullFooter:n,onEndReached:f,onHeaderReleased:d,onHeaderIdle:function(){},onHeaderPulling:function(e){i||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?u.value="松手,即可触发刷新":u.value="继续下拉,触发刷新")},onFooterIdle:function(){},onFooterPulling:function(e){console.log("onFooterPulling",e)},onScroll:function(e){e.stopPropagation(),lt.value={top:e.offsetY,left:e.offsetX}},scrollToNextPage:function(){if(v.Native){if(e.value){var t=e.value;console.log("scroll to next page",e,lt.value,ct);var n=lt.value.top+ct-200;t.scrollTo({left:lt.value.left,top:n,behavior:"auto",duration:200})}}else alert("This method is only supported in Native environment.")},scrollToBottom:function(){if(v.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.")}}}});n(94);var dt=s()(st,[["render",function(e,t,n,o,r,a){var c=Object(i.z)("pull-header"),l=Object(i.z)("style-one"),u=Object(i.z)("style-two"),s=Object(i.z)("style-five"),d=Object(i.z)("pull-footer");return Object(i.t)(),Object(i.f)("div",{id:"demo-pull-header-footer","specital-attr":"pull-header-footer"},[Object(i.g)("div",{class:"toolbar"},[Object(i.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=function(){return e.scrollToNextPage&&e.scrollToNextPage.apply(e,arguments)})},[Object(i.g)("span",null,"翻到下一页")]),Object(i.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=function(){return e.scrollToBottom&&e.scrollToBottom.apply(e,arguments)})},[Object(i.g)("span",null,"翻动到底部")]),Object(i.g)("p",{class:"toolbar-text"}," 列表元素数量:"+Object(i.D)(e.dataSource.length),1)]),Object(i.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(i.h)(" /** * 下拉组件 * * 事件: * idle: 滑动距离在 pull-header 区域内触发一次,参数 contentOffset,滑动距离 * pulling: 滑动距离超出 pull-header 后触发一次,参数 contentOffset,滑动距离 * refresh: 滑动超出距离,松手后触发一次 */ "),Object(i.i)(c,{ref:"pullHeader",class:"ul-refresh",onIdle:e.onHeaderIdle,onPulling:e.onHeaderPulling,onReleased:e.onHeaderReleased},{default:Object(i.H)((function(){return[Object(i.g)("p",{class:"ul-refresh-text"},Object(i.D)(e.headerRefreshText),1)]})),_:1},8,["onIdle","onPulling","onReleased"]),(Object(i.t)(!0),Object(i.f)(i.a,null,Object(i.x)(e.dataSource,(function(e,t){return Object(i.t)(),Object(i.f)("li",{key:t,class:"item-style",type:"row-"+e.style,sticky:0===t},[1===e.style?(Object(i.t)(),Object(i.d)(l,{key:0,"item-bean":e.itemBean},null,8,["item-bean"])):Object(i.e)("v-if",!0),2===e.style?(Object(i.t)(),Object(i.d)(u,{key:1,"item-bean":e.itemBean},null,8,["item-bean"])):Object(i.e)("v-if",!0),5===e.style?(Object(i.t)(),Object(i.d)(s,{key:2,"item-bean":e.itemBean},null,8,["item-bean"])):Object(i.e)("v-if",!0)],8,["type","sticky"])})),128)),Object(i.h)(" /** * 上拉组件 * > 如果不需要显示加载情况,可以直接使用 ul 的 onEndReached 实现一直加载 * * 事件: * idle: 滑动距离在 pull-footer 区域内触发一次,参数 contentOffset,滑动距离 * pulling: 滑动距离超出 pull-footer 后触发一次,参数 contentOffset,滑动距离 * released: 滑动超出距离,松手后触发一次 */ "),Object(i.i)(d,{ref:"pullFooter",class:"pull-footer",onIdle:e.onFooterIdle,onPulling:e.onFooterPulling,onReleased:e.onEndReached},{default:Object(i.H)((function(){return[Object(i.g)("p",{class:"pull-footer-text"},Object(i.D)(e.footerRefreshText),1)]})),_:1},8,["onIdle","onPulling","onReleased"])],40,["numberOfRows"])])}],["__scopeId","data-v-52ecb6dc"]]);var ft=Object(c.defineComponent)({setup(){var e=Object(c.ref)("idle"),t=Object(c.ref)(2),n=Object(c.ref)(2);return{dataSource:new Array(7).fill(0).map((function(e,t){return t})),currentSlide:t,currentSlideNum:n,state:e,scrollToNextPage:function(){console.log("scroll next",t.value,n.value),t.value<7?t.value=n.value+1:t.value=0},scrollToPrevPage:function(){console.log("scroll prev",t.value,n.value),0===t.value?t.value=6:t.value=n.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),n.value=e.currentSlide},onStateChanged:function(t){console.log("onStateChanged",t),e.value=t.state}}}});n(95);var bt=s()(ft,[["render",function(e,t,n,o,r,a){var c=Object(i.z)("swiper-slide"),l=Object(i.z)("swiper");return Object(i.t)(),Object(i.f)("div",{id:"demo-swiper"},[Object(i.g)("div",{class:"toolbar"},[Object(i.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=function(){return e.scrollToPrevPage&&e.scrollToPrevPage.apply(e,arguments)})},[Object(i.g)("span",null,"翻到上一页")]),Object(i.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=function(){return e.scrollToNextPage&&e.scrollToNextPage.apply(e,arguments)})},[Object(i.g)("span",null,"翻到下一页")]),Object(i.g)("p",{class:"toolbar-text"}," 当前第 "+Object(i.D)(e.currentSlideNum+1)+" 页 ",1)]),Object(i.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(i.i)(l,{id:"swiper",ref:"swiper","need-animation":"",current:e.currentSlide,onDragging:e.onDragging,onDropped:e.onDropped,onStateChanged:e.onStateChanged},{default:Object(i.H)((function(){return[Object(i.e)(" slides "),(Object(i.t)(!0),Object(i.f)(i.a,null,Object(i.x)(e.dataSource,(function(e){return Object(i.t)(),Object(i.d)(c,{key:e,style:Object(i.p)({backgroundColor:4278222848+100*e})},{default:Object(i.H)((function(){return[Object(i.g)("p",null,"I'm Slide "+Object(i.D)(e+1),1)]})),_:2},1032,["style"])})),128))]})),_:1},8,["current","onDragging","onDropped","onStateChanged"]),Object(i.e)(" A Demo of dots "),Object(i.g)("div",{id:"swiper-dots"},[(Object(i.t)(!0),Object(i.f)(i.a,null,Object(i.x)(e.dataSource,(function(t){return Object(i.t)(),Object(i.f)("div",{key:t,class:Object(i.o)(["dot",{hightlight:e.currentSlideNum===t}])},null,2)})),128))])])}]]);var pt=0,gt={top:0,left:5,bottom:0,right:5},vt="android"===v.Native.Platform,mt=function(){var e=P()(R.a.mark((function e(){return R.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){setTimeout((function(){return e((pt+=1)>=50?[]:[].concat(r()(et),r()(et)))}),600)})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ht=Object(c.defineComponent)({components:{StyleOne:nt,StyleTwo:rt,StyleFive:it},setup(){var e=Object(c.ref)([].concat(r()(et),r()(et),r()(et),r()(et))),t=!1,n=!1,o=Object(c.ref)(!1),a=Object(c.ref)("正在加载..."),i=Object(c.ref)(null),l=Object(c.ref)(null),u="继续下拉触发刷新",s="正在加载...",d=Object(c.computed)((function(){return o.value?"正在刷新":"下拉刷新"})),f=Object(c.ref)(null),b=Object(c.ref)(null),p=Object(c.computed)((function(){return(v.Native.Dimensions.screen.width-gt.left-gt.right-6)/2})),g=function(){var t=P()(R.a.mark((function t(){var n;return R.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o.value=!0,t.next=3,mt();case 3:n=t.sent,o.value=!1,e.value=n.reverse(),b.value&&b.value.refreshCompleted();case 7:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),m=function(){var e=P()(R.a.mark((function e(){return R.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n){e.next=2;break}return e.abrupt("return");case 2:n=!0,console.log("onHeaderReleased"),u="刷新数据中,请稍等",n=!1,u="2秒后收起",i.value&&i.value.collapsePullHeader({time:2e3});case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),h=function(){var n=P()(R.a.mark((function n(){var o;return R.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(console.log("end Reached"),!t){n.next=3;break}return n.abrupt("return");case 3:return t=!0,s="加载更多...",n.next=7,mt();case 7:0===(o=n.sent).length&&(s="没有更多数据"),e.value=[].concat(r()(e.value),r()(o)),t=!1,l.value&&l.value.collapsePullFooter();case 12:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return{dataSource:e,isRefreshing:o,refreshText:d,STYLE_LOADING:100,loadingState:a,header:b,gridView:f,contentInset:gt,columnSpacing:6,interItemSpacing:6,numberOfColumns:2,itemWidth:p,onScroll:function(e){console.log("waterfall onScroll",e)},onRefresh:g,onEndReached:h,onClickItem:function(e){f.value&&f.value.scrollToIndex({index:e,animation:!0})},isAndroid:vt,onHeaderPulling:function(e){n||(console.log("onHeaderPulling",e.contentOffset),u=e.contentOffset>30?"松手,即可触发刷新":"继续下拉,触发刷新")},onFooterPulling:function(e){console.log("onFooterPulling",e)},onHeaderIdle:function(){},onFooterIdle:function(){},onHeaderReleased:m,headerRefreshText:u,footerRefreshText:s,loadMoreDataFlag:t,pullHeader:i,pullFooter:l}}});n(96);var Ot=s()(ht,[["render",function(e,t,n,o,r,a){var c=Object(i.z)("pull-header"),l=Object(i.z)("waterfall-item"),u=Object(i.z)("style-one"),s=Object(i.z)("style-two"),d=Object(i.z)("style-five"),f=Object(i.z)("pull-footer"),b=Object(i.z)("waterfall");return Object(i.t)(),Object(i.f)("div",{id:"demo-waterfall"},[Object(i.i)(b,{ref:"gridView","content-inset":e.contentInset,"column-spacing":e.columnSpacing,"contain-banner-view":!e.isAndroid,"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(i.H)((function(){return[Object(i.i)(c,{ref:"pullHeader",class:"ul-refresh",onIdle:e.onHeaderIdle,onPulling:e.onHeaderPulling,onReleased:e.onHeaderReleased},{default:Object(i.H)((function(){return[Object(i.g)("p",{class:"ul-refresh-text"},Object(i.D)(e.headerRefreshText),1)]})),_:1},8,["onIdle","onPulling","onReleased"]),e.isAndroid?(Object(i.t)(),Object(i.d)(l,{key:1,"full-span":!0,class:"banner-view"},{default:Object(i.H)((function(){return[Object(i.g)("span",null,"BannerView")]})),_:1})):(Object(i.t)(),Object(i.f)("div",{key:0,class:"banner-view"},[Object(i.g)("span",null,"BannerView")])),(Object(i.t)(!0),Object(i.f)(i.a,null,Object(i.x)(e.dataSource,(function(t,n){return Object(i.t)(),Object(i.d)(l,{key:n,style:Object(i.p)({width:e.itemWidth}),type:t.style,onClick:Object(i.J)((function(){return e.onClickItem(n)}),["stop"])},{default:Object(i.H)((function(){return[1===t.style?(Object(i.t)(),Object(i.d)(u,{key:0,"item-bean":t.itemBean},null,8,["item-bean"])):Object(i.e)("v-if",!0),2===t.style?(Object(i.t)(),Object(i.d)(s,{key:1,"item-bean":t.itemBean},null,8,["item-bean"])):Object(i.e)("v-if",!0),5===t.style?(Object(i.t)(),Object(i.d)(d,{key:2,"item-bean":t.itemBean},null,8,["item-bean"])):Object(i.e)("v-if",!0)]})),_:2},1032,["style","type","onClick"])})),128)),Object(i.i)(f,{ref:"pullFooter",class:"pull-footer",onIdle:e.onFooterIdle,onPulling:e.onFooterPulling,onReleased:e.onEndReached},{default:Object(i.H)((function(){return[Object(i.g)("p",{class:"pull-footer-text"},Object(i.D)(e.footerRefreshText),1)]})),_:1},8,["onIdle","onPulling","onReleased"])]})),_:1},8,["content-inset","column-spacing","contain-banner-view","inter-item-spacing","number-of-columns","onEndReached","onScroll"])])}],["__scopeId","data-v-056a0bc2"]]);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}}}});n(97);var yt={demoNative:{name:"Native 能力",component:qe},demoAnimation:{name:"animation 组件",component:ze},demoDialog:{name:"dialog 组件",component:We},demoSwiper:{name:"swiper 组件",component:bt},demoPullHeaderFooter:{name:"pull header/footer 组件",component:dt},demoWaterfall:{name:"waterfall 组件",component:Ot},demoNestedScroll:{name:"nested scroll 示例",component:s()(jt,[["render",function(e,t,n,o,r,a){var c=Object(i.z)("swiper-slide"),l=Object(i.z)("swiper");return Object(i.t)(),Object(i.f)("div",{id:"demo-wrap",onLayout:t[0]||(t[0]=function(){return e.onLayout&&e.onLayout.apply(e,arguments)})},[Object(i.g)("div",{id:"demo-content"},[Object(i.g)("div",{id:"banner"}),Object(i.g)("div",{id:"tabs"},[(Object(i.t)(),Object(i.f)(i.a,null,Object(i.x)(2,(function(t){return Object(i.g)("p",{key:"tab"+t,class:Object(i.o)(e.currentSlide===t-1?"selected":""),onClick:function(n){return e.onTabClick(t)}}," tab "+Object(i.D)(t)+" "+Object(i.D)(1===t?"(parent first)":"(self first)"),11,["onClick"])})),64))]),Object(i.i)(l,{id:"swiper",ref:"swiper","need-animation":"",current:e.currentSlide,style:Object(i.p)({height:e.layoutHeight-80}),onDropped:e.onDropped},{default:Object(i.H)((function(){return[Object(i.i)(c,{key:"slide1"},{default:Object(i.H)((function(){return[Object(i.g)("ul",{nestedScrollTopPriority:"parent"},[(Object(i.t)(),Object(i.f)(i.a,null,Object(i.x)(30,(function(e){return Object(i.g)("li",{key:"item"+e,class:Object(i.o)(e%2?"item-even":"item-odd")},[Object(i.g)("p",null,"Item "+Object(i.D)(e),1)],2)})),64))])]})),_:1}),Object(i.i)(c,{key:"slide2"},{default:Object(i.H)((function(){return[Object(i.g)("ul",{nestedScrollTopPriority:"self"},[(Object(i.t)(),Object(i.f)(i.a,null,Object(i.x)(30,(function(e){return Object(i.g)("li",{key:"item"+e,class:Object(i.o)(e%2?"item-even":"item-odd")},[Object(i.g)("p",null,"Item "+Object(i.D)(e),1)],2)})),64))])]})),_:1})]})),_:1},8,["current","style","onDropped"])])],32)}],["__scopeId","data-v-72406cea"]])},demoSetNativeProps:{name:"setNativeProps",component:Ae}};var wt=Object(c.defineComponent)({name:"App",setup(){var e=Object.keys(ye).map((function(e){return{id:e,name:ye[e].name}})),t=Object.keys(yt).map((function(e){return{id:e,name:yt[e].name}}));return Object(c.onMounted)((function(){})),{featureList:e,nativeFeatureList:t,version:c.version,Native:v.Native}}});n(98);var At=s()(wt,[["render",function(e,t,n,o,r,a){var c=Object(i.z)("router-link");return Object(i.t)(),Object(i.f)("ul",{class:"feature-list"},[Object(i.g)("li",null,[Object(i.g)("div",{id:"version-info"},[Object(i.g)("p",{class:"feature-title"}," Vue: "+Object(i.D)(e.version),1),e.Native?(Object(i.t)(),Object(i.f)("p",{key:0,class:"feature-title"}," Hippy-Vue-Next: "+Object(i.D)("unspecified"!==e.Native.version?e.Native.version:"master"),1)):Object(i.e)("v-if",!0)])]),Object(i.g)("li",null,[Object(i.g)("p",{class:"feature-title"}," 浏览器组件 Demos ")]),(Object(i.t)(!0),Object(i.f)(i.a,null,Object(i.x)(e.featureList,(function(e){return Object(i.t)(),Object(i.f)("li",{key:e.id,class:"feature-item"},[Object(i.i)(c,{to:{path:"/demo/".concat(e.id)},class:"button"},{default:Object(i.H)((function(){return[Object(i.h)(Object(i.D)(e.name),1)]})),_:2},1032,["to"])])})),128)),e.nativeFeatureList.length?(Object(i.t)(),Object(i.f)("li",{key:0},[Object(i.g)("p",{class:"feature-title",paintType:"fcp"}," 终端组件 Demos ")])):Object(i.e)("v-if",!0),(Object(i.t)(!0),Object(i.f)(i.a,null,Object(i.x)(e.nativeFeatureList,(function(e){return Object(i.t)(),Object(i.f)("li",{key:e.id,class:"feature-item"},[Object(i.i)(c,{to:{path:"/demo/".concat(e.id)},class:"button"},{default:Object(i.H)((function(){return[Object(i.h)(Object(i.D)(e.name),1)]})),_:2},1032,["to"])])})),128))])}],["__scopeId","data-v-63300fa4"]]);var xt=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;v.Native.callNative("TestModule","remoteDebug",t,e.value)}}}}});n(99);var Ct=[{path:"/",component:At},{path:"/remote-debug",component:s()(xt,[["render",function(e,t,n,o,r,a){return Object(i.t)(),Object(i.f)("div",{ref:"inputDemo",class:"demo-remote-input",onClick:t[2]||(t[2]=Object(i.J)((function(){return e.blurInput&&e.blurInput.apply(e,arguments)}),["stop"]))},[Object(i.g)("div",{class:"tips-wrap"},[(Object(i.t)(!0),Object(i.f)(i.a,null,Object(i.x)(e.tips,(function(t,n){return Object(i.t)(),Object(i.f)("p",{key:n,class:"tips-item",style:Object(i.p)(e.styles.tipText)},Object(i.D)(n+1)+". "+Object(i.D)(t),5)})),128))]),Object(i.g)("input",{ref:"inputRef",value:e.bundleUrl,"caret-color":"yellow",placeholder:"please input bundleUrl",multiple:!0,numberOfLines:"4",class:"remote-input",onClick:Object(i.J)((function(){}),["stop"]),onChange:t[0]||(t[0]=function(t){return e.bundleUrl=t.value})},null,40,["value"]),Object(i.g)("div",{class:"buttonContainer",style:Object(i.p)(e.styles.buttonContainer)},[Object(i.g)("button",{style:Object(i.p)(e.styles.button),class:"input-button",onClick:t[1]||(t[1]=Object(i.J)((function(){return e.openBundle&&e.openBundle.apply(e,arguments)}),["stop"]))},[Object(i.g)("span",{style:Object(i.p)(e.styles.buttonText)},"开始",4)],4)],4)],512)}],["__scopeId","data-v-c92250fe"]]),name:"Debug"}].concat(r()(Object.keys(ye).map((function(e){return{path:"/demo/".concat(e),name:ye[e].name,component:ye[e].component}}))),r()(Object.keys(yt).map((function(e){return{path:"/demo/".concat(e),name:yt[e].name,component:yt[e].component}}))));function St(){return Object(a.createHippyRouter)({routes:Ct})}},function(e,t,n){"use strict";var o=n(0);var r=n(1),a=n(13),i=Object(r.defineComponent)({name:"App",setup(){var e=Object(a.useRouter)(),t=Object(a.useRoute)(),n=Object(r.ref)(""),o=Object(r.ref)(0),i=Object(r.ref)([{text:"API",path:"/"},{text:"调试",path:"/remote-debug"}]);return{activatedTab:o,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:n,tabs:i,goBack:function(){e.back()},navigateTo:function(t,n){n!==o.value&&(o.value=n,e.replace({path:t.path}))}}},watch:{$route(e){void 0!==e.name?this.subTitle=e.name:this.subTitle=""}}}),c=(n(72),n(3));const l=n.n(c)()(i,[["render",function(e,t,n,r,a,i){var c=Object(o.z)("router-view");return Object(o.t)(),Object(o.f)("div",{id:"root"},[Object(o.g)("div",{id:"header"},[Object(o.g)("div",{class:"left-title"},[Object(o.I)(Object(o.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"]),[[o.F,!["/","/debug","/remote-debug"].includes(e.currentRoute.path)]]),["/","/debug","/remote-debug"].includes(e.currentRoute.path)?(Object(o.t)(),Object(o.f)("label",{key:0,class:"title"},"Hippy Vue Next")):Object(o.e)("v-if",!0)]),Object(o.g)("label",{class:"title"},Object(o.D)(e.subTitle),1)]),Object(o.g)("div",{class:"body-container",onClick:Object(o.J)((function(){}),["stop"])},[Object(o.e)(" if you don't need keep-alive, just use '' "),Object(o.i)(c,null,{default:Object(o.H)((function(e){var t=e.Component,n=e.route;return[(Object(o.t)(),Object(o.d)(o.b,null,[(Object(o.t)(),Object(o.d)(Object(o.A)(t),{key:n.path}))],1024))]})),_:1})]),Object(o.g)("div",{class:"bottom-tabs"},[(Object(o.t)(!0),Object(o.f)(o.a,null,Object(o.x)(e.tabs,(function(t,n){return Object(o.t)(),Object(o.f)("div",{key:"tab-"+n,class:Object(o.o)(["bottom-tab",n===e.activatedTab?"activated":""]),onClick:Object(o.J)((function(o){return e.navigateTo(t,n)}),["stop"])},[Object(o.g)("span",{class:"bottom-tab-text"},Object(o.D)(t.text),1)],10,["onClick"])})),128))])])}]]);t.a=l},,,function(e,t,n){n(60),e.exports=n(61)},function(e,t,n){(function(e){!function(){if("ios"===Hippy.device.platform.OS){var t=[ReferenceError,TypeError,RangeError],n=!1;!function(r){if(e.Promise){r=r||{},n&&(n=!1,e.Promise._onHandle=null,e.Promise._onReject=null),n=!0;var a=0,i=0,c={};e.Promise._onHandle=function(e){2===e._state&&c[e._rejectionId]&&(c[e._rejectionId].logged?function(e){c[e].logged&&(r.onHandled?r.onHandled(c[e].displayId,c[e].error):c[e].onUnhandled||(console.warn("Promise Rejection Handled (id: "+c[e].displayId+"):"),console.warn(' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+c[e].displayId+".")))}(e._rejectionId):clearTimeout(c[e._rejectionId].timeout),delete c[e._rejectionId])},e.Promise._onReject=function(e,n){0===e._deferredState&&(e._rejectionId=a++,c[e._rejectionId]={displayId:null,error:n,timeout:setTimeout(l.bind(null,e._rejectionId),o(n,t)?100:2e3),logged:!1})}}function l(e){(r.allRejections||o(c[e].error,r.whitelist||t))&&(c[e].displayId=i++,r.onUnhandled?(c[e].logged=!0,r.onUnhandled(c[e].displayId,c[e].error)):(c[e].logged=!0,function(e,t){console.warn("Possible Unhandled Promise Rejection (id: "+e+"):"),((t&&(t.stack||t))+"").split("\n").forEach((function(e){console.warn(" "+e)}))}(c[e].displayId,c[e].error)))}}({allRejections:!0,onUnhandled:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=Object.prototype.toString.call(n);if("[object Error]"===o){var r=Error.prototype.toString.call(n),a=n.stack,i="Possible Unhandled Promise Rejection (id: "+t+"):\n"+(r||"")+"\n"+(null==a?"":a);console.warn(i)}else{console.warn("Possible Unhandled Promise Rejection (id: "+t+"):");var c=(n&&(n.stack||n))+"";c.split("\n").forEach((function(e){console.warn(" "+e)}))}e.Hippy.emit("unhandledRejection",n,t)},onHandled:function(){}})}function o(e,t){return t.some((function(t){return e instanceof t}))}}()}).call(this,n(7))},function(e,t,n){"use strict";n.r(t),function(e){var t=n(4),o=n(56),r=n(55),a=n(12);e.Hippy.on("uncaughtException",(function(e){console.log("uncaughtException error",e.stack,e.message)})),e.Hippy.on("unhandledRejection",(function(e){console.log("unhandledRejection reason",e)}));var i=Object(t.createApp)(o.a,{appName:"Demo",iPhone:{statusBar:{backgroundColor:4283416717}},trimWhitespace:!0}),c=Object(r.a)();i.use(c),t.EventBus.$on("onSizeChanged",(function(e){e.width&&e.height&&Object(t.setScreenSize)({width:e.width,height:e.height})}));i.$start().then((function(e){var n=e.superProps,o=e.rootViewId;Object(a.b)({superProps:n,rootViewId:o}),c.push("/"),t.BackAndroid.addListener((function(){return console.log("backAndroid"),!0})),i.mount("#root")}))}.call(this,n(7))},function(e,t,n){var o=n(16).default;e.exports=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t,o){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,a,i,c=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=a.call(n)).done)&&(c.push(o.value),c.length!==t);l=!0);}catch(e){u=!0,r=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw r}}return c}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var o=n(23);e.exports=function(e){if(Array.isArray(e))return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var o=n(16).default;function r(){"use strict"; -/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=r=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},a=Object.prototype,i=a.hasOwnProperty,c=Object.defineProperty||function(e,t,n){e[t]=n.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",s=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(t){f=function(e,t,n){return e[t]=n}}function b(e,t,n,o){var r=t&&t.prototype instanceof O?t:O,a=Object.create(r.prototype),i=new P(o||[]);return c(a,"_invoke",{value:T(e,n,i)}),a}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=b;var g="suspendedStart",v="executing",m="completed",h={};function O(){}function j(){}function y(){}var w={};f(w,u,(function(){return this}));var A=Object.getPrototypeOf,x=A&&A(A(I([])));x&&x!==a&&i.call(x,u)&&(w=x);var C=y.prototype=O.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(r,a,c,l){var u=p(e[r],e,a);if("throw"!==u.type){var s=u.arg,d=s.value;return d&&"object"==o(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,c,l)}),(function(e){n("throw",e,c,l)})):t.resolve(d).then((function(e){s.value=e,c(s)}),(function(e){return n("throw",e,c,l)}))}l(u.arg)}var r;c(this,"_invoke",{value:function(e,o){function a(){return new t((function(t,r){n(e,o,t,r)}))}return r=r?r.then(a,a):a()}})}function T(e,n,o){var r=g;return function(a,i){if(r===v)throw Error("Generator is already running");if(r===m){if("throw"===a)throw i;return{value:t,done:!0}}for(o.method=a,o.arg=i;;){var c=o.delegate;if(c){var l=_(c,o);if(l){if(l===h)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===g)throw r=m,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=v;var u=p(e,n,o);if("normal"===u.type){if(r=o.done?m:"suspendedYield",u.arg===h)continue;return{value:u.arg,done:o.done}}"throw"===u.type&&(r=m,o.method="throw",o.arg=u.arg)}}}function _(e,n){var o=n.method,r=e.iterator[o];if(r===t)return n.delegate=null,"throw"===o&&e.iterator.return&&(n.method="return",n.arg=t,_(e,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),h;var a=p(r,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,h;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,h):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function n(){for(;++r=0;--r){var a=this.tryEntries[r],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(l&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;E(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,n,o){return this.delegate={iterator:I(e),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=t),h}},n}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(24)},function(e,t,n){"use strict";n(25)},function(e,t,n){"use strict";n(26)},function(e,t,n){"use strict";n(27)},function(e,t,n){"use strict";n(28)},function(e,t,n){"use strict";n(29)},function(e,t,n){"use strict";n(30)},function(e,t,n){"use strict";n(31)},function(e,t,n){"use strict";n(32)},function(e,t,n){"use strict";n(33)},function(e,t,n){"use strict";n(34)},function(e,t,n){"use strict";n(35)},function(e,t,n){"use strict";n(36)},function(e,t,n){"use strict";n(37)},function(e,t,n){"use strict";n(38)},function(e,t,n){"use strict";n(39)},function(e,t,n){"use strict";n(40)},function(e,t,n){"use strict";n(41)},function(e,t,n){"use strict";n(42)},function(e,t,n){"use strict";n(43)},function(e,t,n){"use strict";n(44)},function(e,t,n){"use strict";n(45)},function(e,t,n){"use strict";n(46)},function(e,t,n){"use strict";n(47)},function(e,t,n){"use strict";n(48)},function(e,t,n){"use strict";n(49)},function(e,t,n){"use strict";n(50)},function(e,t,n){"use strict";n(51)}]); \ No newline at end of file + */var i="undefined"!=typeof document;function s(e){return e.__esModule||"Module"===e[Symbol.toStringTag]}var d=Object.assign;function u(e,t){var o={};for(var n in t){var a=t[n];o[n]=f(a)?a.map(e):e(a)}return o}var p=function(){},f=Array.isArray;var v=/#/g,b=/&/g,y=/\//g,m=/=/g,g=/\?/g,h=/\+/g,j=/%5B/g,O=/%5D/g,_=/%5E/g,x=/%60/g,w=/%7B/g,S=/%7C/g,A=/%7D/g,k=/%20/g;function C(e){return encodeURI(""+e).replace(S,"|").replace(j,"[").replace(O,"]")}function P(e){return C(e).replace(h,"%2B").replace(k,"+").replace(v,"%23").replace(b,"%26").replace(x,"`").replace(w,"{").replace(A,"}").replace(_,"^")}function E(e){return null==e?"":function(e){return C(e).replace(v,"%23").replace(g,"%3F")}(e).replace(y,"%2F")}function T(e){try{return decodeURIComponent(""+e)}catch(e){}return""+e}var I,L,D=/\/$/;function H(e,t){var o,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/",a={},r="",l="",c=t.indexOf("#"),i=t.indexOf("?");return c=0&&(i=-1),i>-1&&(o=t.slice(0,i),a=e(r=t.slice(i+1,c>-1?c:t.length))),c>-1&&(o=o||t.slice(0,c),l=t.slice(c,t.length)),{fullPath:(o=M(null!=o?o:t,n))+(r&&"?")+r+l,path:o,query:a,hash:T(l)}}function V(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function Y(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function R(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var o in e)if(!B(e[o],t[o]))return!1;return!0}function B(e,t){return f(e)?N(e,t):f(t)?N(t,e):e===t}function N(e,t){return f(t)?e.length===t.length&&e.every((function(e,o){return e===t[o]})):1===e.length&&e[0]===t}function M(e,t){if(e.startsWith("/"))return e;if(!e)return t;var o=t.split("/"),n=e.split("/"),a=n[n.length-1];".."!==a&&"."!==a||n.push("");var r,l,c=o.length-1;for(r=0;r1&&c--}return o.slice(0,c).join("/")+"/"+n.slice(r).join("/")}!function(e){e.pop="pop",e.push="push"}(I||(I={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(L||(L={}));function U(e){if(!e)if(i){var t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(D,"")}var z=/^[^#]+#/;function F(e,t){return e.replace(z,"#")+t}var W=function(){return{left:window.scrollX,top:window.scrollY}};function G(e){var t;if("el"in e){var o=e.el,n="string"==typeof o&&o.startsWith("#"),a="string"==typeof o?n?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!a)return;t=function(e,t){var o=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-o.left-(t.left||0),top:n.top-o.top-(t.top||0)}}(a,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function K(e,t){return(history.state?history.state.position-t:-1)+e}var J=new Map;var q=function(){return location.protocol+"//"+location.host};function Q(e,t){var o=t.pathname,n=t.search,a=t.hash,r=e.indexOf("#");if(r>-1){var l=a.includes(e.slice(r))?e.slice(r).length:1,c=a.slice(l);return"/"!==c[0]&&(c="/"+c),V(c,"")}return V(o,e)+n+a}function X(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return{back:e,current:t,forward:o,replaced:n,position:window.history.length,scroll:a?W():null}}function Z(e){var t=function(e){var t=window,o=t.history,n=t.location,a={value:Q(e,n)},r={value:o.state};function l(t,a,l){var c=e.indexOf("#"),i=c>-1?(n.host&&document.querySelector("base")?e:e.slice(c))+t:q()+e+t;try{o[l?"replaceState":"pushState"](a,"",i),r.value=a}catch(e){console.error(e),n[l?"replace":"assign"](i)}}return r.value||l(a.value,{back:null,current:a.value,forward:null,position:o.length-1,replaced:!0,scroll:null},!0),{location:a,state:r,push:function(e,t){var n=d({},r.value,o.state,{forward:e,scroll:W()});l(n.current,n,!0),l(e,d({},X(a.value,e,null),{position:n.position+1},t),!1),a.value=e},replace:function(e,t){l(e,d({},o.state,X(r.value.back,e,r.value.forward,!0),t,{position:r.value.position}),!0),a.value=e}}}(e=U(e)),o=function(e,t,o,n){var a=[],r=[],c=null,i=function(r){var l=r.state,i=Q(e,location),s=o.value,d=t.value,u=0;if(l){if(o.value=i,t.value=l,c&&c===s)return void(c=null);u=d?l.position-d.position:0}else n(i);a.forEach((function(e){e(o.value,s,{delta:u,type:I.pop,direction:u?u>0?L.forward:L.back:L.unknown})}))};function s(){var e=window.history;e.state&&e.replaceState(d({},e.state,{scroll:W()}),"")}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",s,{passive:!0}),{pauseListeners:function(){c=o.value},listen:function(e){a.push(e);var t=function(){var t=a.indexOf(e);t>-1&&a.splice(t,1)};return r.push(t),t},destroy:function(){var e,t=l(r);try{for(t.s();!(e=t.n()).done;){(0,e.value)()}}catch(e){t.e(e)}finally{t.f()}r=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",s)}}}(e,t.state,t.location,t.replace);var n=d({location:"",base:e,go:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t||o.pauseListeners(),history.go(e)},createHref:F.bind(null,e)},t,o);return Object.defineProperty(n,"location",{enumerable:!0,get:function(){return t.location.value}}),Object.defineProperty(n,"state",{enumerable:!0,get:function(){return t.state.value}}),n}function $(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[],o=[""],n=0;function a(e){++n!==o.length&&o.splice(n),o.push(e)}function r(e,o,n){for(var a={direction:n.direction,delta:n.delta,type:I.pop},r=0,l=t;r(t.push(e),function(){var o=t.indexOf(e);o>-1&&t.splice(o,1)}),destroy(){t=[],o=[""],n=0},go(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=this.location,l=e<0?L.back:L.forward;n=Math.max(0,Math.min(n+e,o.length-1)),t&&r(this.location,a,{direction:l,delta:e})}};return Object.defineProperty(l,"location",{enumerable:!0,get:function(){return o[n]}}),l}function ee(e){return(e=location.host?e||location.pathname+location.search:"").includes("#")||(e+="#"),Z(e)}function te(e){return"string"==typeof e||e&&"object"==typeof e}function oe(e){return"string"==typeof e||"symbol"==typeof e}var ne,ae={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},re=Symbol("");!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}(ne||(ne={}));function le(e,t){return d(new Error,{type:e,[re]:!0},t)}function ce(e,t){return e instanceof Error&&re in e&&(null==t||!!(e.type&t))}var ie={sensitive:!1,strict:!1,start:!0,end:!0},se=/[.+*?^${}()[\]/\\]/g;function de(e,t){for(var o=0;ot.length?1===t.length&&80===t[0]?1:-1:0}function ue(e,t){for(var o=0,n=e.score,a=t.score;o0&&t[t.length-1]<0}var fe={type:0,value:""},ve=/[a-zA-Z0-9_]/;function be(e,t,o){var n=function(e,t){var o,n=d({},ie,t),a=[],r=n.start?"^":"",c=[],i=l(e);try{for(i.s();!(o=i.n()).done;){var s=o.value,u=s.length?[]:[90];n.strict&&!s.length&&(r+="/");for(var p=0;p1&&("*"===c||"+"===c)&&t("A repeatable param (".concat(s,") must be alone in its segment. eg: '/:ids+.")),o.push({type:1,value:s,regexp:d,repeatable:"*"===c||"+"===c,optional:"*"===c||"?"===c})):t("Invalid state to consume buffer"),s="")}function p(){s+=c}for(;i-1&&(o.splice(a,1),e.record.name&&n.delete(e.record.name),e.children.forEach(r),e.alias.forEach(r))}}function c(e){for(var t=0;t=0&&(e.record.path!==o[t].record.path||!_e(e,o[t]));)t++;o.splice(t,0,e),e.record.name&&!he(e)&&n.set(e.record.name,e)}return t=Oe({strict:!1,end:!0,sensitive:!1},t),e.forEach((function(e){return a(e)})),{addRoute:a,resolve:function(e,t){var a,r,l,c={};if("name"in e&&e.name){if(!(a=n.get(e.name)))throw le(1,{location:e});l=a.record.name,c=d(me(t.params,a.keys.filter((function(e){return!e.optional})).concat(a.parent?a.parent.keys.filter((function(e){return e.optional})):[]).map((function(e){return e.name}))),e.params&&me(e.params,a.keys.map((function(e){return e.name})))),r=a.stringify(c)}else if(null!=e.path)r=e.path,(a=o.find((function(e){return e.re.test(r)})))&&(c=a.parse(r),l=a.record.name);else{if(!(a=t.name?n.get(t.name):o.find((function(e){return e.re.test(t.path)}))))throw le(1,{location:e,currentLocation:t});l=a.record.name,c=d({},t.params,e.params),r=a.stringify(c)}for(var i=[],s=a;s;)i.unshift(s.record),s=s.parent;return{name:l,path:r,params:c,matched:i,meta:je(i)}},removeRoute:r,getRoutes:function(){return o},getRecordMatcher:function(e){return n.get(e)}}}function me(e,t){var o,n={},a=l(t);try{for(a.s();!(o=a.n()).done;){var r=o.value;r in e&&(n[r]=e[r])}}catch(e){a.e(e)}finally{a.f()}return n}function ge(e){var t={},o=e.props||!1;if("component"in e)t.default=o;else for(var n in e.components)t[n]="object"==typeof o?o[n]:o;return t}function he(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function je(e){return e.reduce((function(e,t){return d(e,t.meta)}),{})}function Oe(e,t){var o={};for(var n in e)o[n]=n in t?t[n]:e[n];return o}function _e(e,t){return t.children.some((function(t){return t===e||_e(e,t)}))}function xe(e){var t={};if(""===e||"?"===e)return t;for(var o=("?"===e[0]?e.slice(1):e).split("&"),n=0;n-1&&e.splice(o,1)}},list:function(){return e.slice()},reset:function(){e=[]}}}function Ie(e,t,o){var n=function(){e[t].delete(o)};Object(r.s)(n),Object(r.r)(n),Object(r.q)((function(){e[t].add(o)})),e[t].add(o)}function Le(e){var t=Object(r.m)(Ae,{}).value;t&&Ie(t,"leaveGuards",e)}function De(e){var t=Object(r.m)(Ae,{}).value;t&&Ie(t,"updateGuards",e)}function He(e,t,o,n,a){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(e){return e()},l=n&&(n.enterCallbacks[a]=n.enterCallbacks[a]||[]);return function(){return new Promise((function(c,i){var s=function(e){!1===e?i(le(4,{from:o,to:t})):e instanceof Error?i(e):te(e)?i(le(2,{from:t,to:e})):(l&&n.enterCallbacks[a]===l&&"function"==typeof e&&l.push(e),c())},d=r((function(){return e.call(n&&n.instances[a],t,o,s)})),u=Promise.resolve(d);e.length<3&&(u=u.then(s)),u.catch((function(e){return i(e)}))}))}}function Ve(e,t,o,n){var a,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(e){return e()},c=[],i=l(e);try{var d=function(){var e=a.value;var l=function(a){var l=e.components[a];if("beforeRouteEnter"!==t&&!e.instances[a])return 1;if(Ye(l)){var i=(l.__vccOpts||l)[t];i&&c.push(He(i,o,n,e,a,r))}else{var d=l();0,c.push((function(){return d.then((function(l){if(!l)return Promise.reject(new Error("Couldn't resolve component \"".concat(a,'" at "').concat(e.path,'"')));var c=s(l)?l.default:l;e.components[a]=c;var i=(c.__vccOpts||c)[t];return i&&He(i,o,n,e,a,r)()}))}))}};for(var i in e.components)l(i)};for(i.s();!(a=i.n()).done;)d()}catch(e){i.e(e)}finally{i.f()}return c}function Ye(e){return"object"==typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}function Re(e){return e.matched.every((function(e){return e.redirect}))?Promise.reject(new Error("Cannot load a route that redirects.")):Promise.all(e.matched.map((function(e){return e.components&&Promise.all(Object.keys(e.components).reduce((function(t,o){var n=e.components[o];return"function"!=typeof n||"displayName"in n||t.push(n().then((function(t){if(!t)return Promise.reject(new Error("Couldn't resolve component \"".concat(o,'" at "').concat(e.path,'". Ensure you passed a function that returns a promise.')));var n=s(t)?t.default:t;e.components[o]=n}))),t}),[]))}))).then((function(){return e}))}function Be(e){var t=Object(r.m)(Ce),o=Object(r.m)(Pe),n=Object(r.c)((function(){return t.resolve(Object(r.E)(e.to))})),a=Object(r.c)((function(){var e=n.value.matched,t=e.length,a=e[t-1],r=o.matched;if(!a||!r.length)return-1;var l=r.findIndex(Y.bind(null,a));if(l>-1)return l;var c=Ue(e[t-2]);return t>1&&Ue(a)===c&&r[r.length-1].path!==c?r.findIndex(Y.bind(null,e[t-2])):l})),l=Object(r.c)((function(){return a.value>-1&&function(e,t){var o,n=function(){var o=t[a],n=e[a];if("string"==typeof o){if(o!==n)return{v:!1}}else if(!f(n)||n.length!==o.length||o.some((function(e,t){return e!==n[t]})))return{v:!1}};for(var a in t)if(o=n())return o.v;return!0}(o.params,n.value.params)})),c=Object(r.c)((function(){return a.value>-1&&a.value===o.matched.length-1&&R(o.params,n.value.params)}));return{route:n,href:Object(r.c)((function(){return n.value.href})),isActive:l,isExactActive:c,navigate:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Me(o)?t[Object(r.E)(e.replace)?"replace":"push"](Object(r.E)(e.to)).catch(p):Promise.resolve()}}}var Ne=Object(r.j)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Be,setup(e,t){var o=t.slots,n=Object(r.v)(Be(e)),a=Object(r.m)(Ce).options,l=Object(r.c)((function(){return{[ze(e.activeClass,a.linkActiveClass,"router-link-active")]:n.isActive,[ze(e.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}}));return function(){var t=o.default&&o.default(n);return e.custom?t:Object(r.l)("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:l.value},t)}}});function Me(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Ue(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}var ze=function(e,t,o){return null!=e?e:null!=t?t:o};function Fe(e,t){if(!e)return null;var o=e(t);return 1===o.length?o[0]:o}var We=Object(r.j)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,t){var o=t.attrs,n=t.slots,l=Object(r.m)(Ee),c=Object(r.c)((function(){return e.route||l.value})),i=Object(r.m)(ke,0),s=Object(r.c)((function(){for(var e,t=Object(r.E)(i),o=c.value.matched;(e=o[t])&&!e.components;)t++;return t})),u=Object(r.c)((function(){return c.value.matched[s.value]}));Object(r.u)(ke,Object(r.c)((function(){return s.value+1}))),Object(r.u)(Ae,u),Object(r.u)(Ee,c);var p=Object(r.w)();return Object(r.G)((function(){return[p.value,u.value,e.name]}),(function(e,t){var o=a()(e,3),n=o[0],r=o[1],l=o[2],c=a()(t,3),i=c[0],s=c[1];c[2];r&&(r.instances[l]=n,s&&s!==r&&n&&n===i&&(r.leaveGuards.size||(r.leaveGuards=s.leaveGuards),r.updateGuards.size||(r.updateGuards=s.updateGuards))),!n||!r||s&&Y(r,s)&&i||(r.enterCallbacks[l]||[]).forEach((function(e){return e(n)}))}),{flush:"post"}),function(){var t=c.value,a=e.name,l=u.value,i=l&&l.components[a];if(!i)return Fe(n.default,{Component:i,route:t});var s=l.props[a],f=s?!0===s?t.params:"function"==typeof s?s(t):s:null,v=Object(r.l)(i,d({},f,o,{onVnodeUnmounted:function(e){e.component.isUnmounted&&(l.instances[a]=null)},ref:p}));return Fe(n.default,{Component:v,route:t})||v}}});function Ge(e){var t=ye(e.routes,e),o=e.parseQuery||xe,n=e.stringifyQuery||we,c=e.history;var s=Te(),v=Te(),b=Te(),y=Object(r.C)(ae),m=ae;i&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");var g,h=u.bind(null,(function(e){return""+e})),j=u.bind(null,E),O=u.bind(null,T);function x(e,a){if(a=d({},a||y.value),"string"==typeof e){var r=H(o,e,a.path),l=t.resolve({path:r.path},a),i=c.createHref(r.fullPath);return d(r,l,{params:O(l.params),hash:T(r.hash),redirectedFrom:void 0,href:i})}var s;if(null!=e.path)s=d({},e,{path:H(o,e.path,a.path).path});else{var u=d({},e.params);for(var p in u)null==u[p]&&delete u[p];s=d({},e,{params:j(u)}),a.params=j(a.params)}var f=t.resolve(s,a),v=e.hash||"";f.params=h(O(f.params));var b,m=function(e,t){var o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}(n,d({},e,{hash:(b=v,C(b).replace(w,"{").replace(A,"}").replace(_,"^")),path:f.path})),g=c.createHref(m);return d({fullPath:m,hash:v,query:n===we?Se(e.query):e.query||{}},f,{redirectedFrom:void 0,href:g})}function S(e){return"string"==typeof e?H(o,e,y.value.path):d({},e)}function k(e,t){if(m!==e)return le(8,{from:t,to:e})}function P(e){return D(e)}function L(e){var t=e.matched[e.matched.length-1];if(t&&t.redirect){var o=t.redirect,n="function"==typeof o?o(e):o;return"string"==typeof n&&((n=n.includes("?")||n.includes("#")?n=S(n):{path:n}).params={}),d({query:e.query,hash:e.hash,params:null!=n.path?{}:e.params},n)}}function D(e,t){var o=m=x(e),a=y.value,r=e.state,l=e.force,c=!0===e.replace,i=L(o);if(i)return D(d(S(i),{state:"object"==typeof i?d({},r,i.state):r,force:l,replace:c}),t||o);var s,u=o;return u.redirectedFrom=t,!l&&function(e,t,o){var n=t.matched.length-1,a=o.matched.length-1;return n>-1&&n===a&&Y(t.matched[n],o.matched[a])&&R(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}(n,a,o)&&(s=le(16,{to:u,from:a}),$(a,a,!0,!1)),(s?Promise.resolve(s):N(u,a)).catch((function(e){return ce(e)?ce(e,2)?e:Z(e):X(e,u,a)})).then((function(e){if(e){if(ce(e,2))return D(d({replace:c},S(e.to),{state:"object"==typeof e.to?d({},r,e.to.state):r,force:l}),t||u)}else e=U(u,a,!0,c,r);return M(u,a,e),e}))}function V(e,t){var o=k(e,t);return o?Promise.reject(o):Promise.resolve()}function B(e){var t=ne.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function N(e,t){var o,n=function(e,t){for(var o=[],n=[],a=[],r=Math.max(t.matched.length,e.matched.length),l=function(){var r=t.matched[c];r&&(e.matched.find((function(e){return Y(e,r)}))?n.push(r):o.push(r));var l=e.matched[c];l&&(t.matched.find((function(e){return Y(e,l)}))||a.push(l))},c=0;c=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 r,l=!0,c=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return l=e.done,e},e:function(e){c=!0,r=e},f:function(){try{l||null==o.return||o.return()}finally{if(c)throw r}}}}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o".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(o){if(o._vts){if(o._vts<=e.attached)return}else o._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}(o,e.value),t,5,[o])};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=3d01fd90&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=3d01fd90&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=7a4724b0&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=7a4724b0&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=e3752104&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=e3752104&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 kt}));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<6?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,t.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=7a4724b0&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="android"===y.Native.Platform,mt="ios"===y.Native.Platform,gt=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)}}(),ht=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,gt();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,gt();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})},isAndroid:yt,isiOS:mt,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=e3752104&scoped=true&lang=css");var jt=d()(ht,[["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-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.isAndroid||e.isiOS?(Object(l.t)(),Object(l.d)(i,{key:1,"full-span":!0,isHeader:!0,class:"banner-view"},{default:Object(l.H)((function(){return[Object(l.g)("span",null,"Banner View")]})),_:1})):(Object(l.t)(),Object(l.f)("div",{key:0,class:"banner-view"},[Object(l.g)("span",null,"BannerView")])),(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)(i,{isFooter:!0,class:"banner-view"},{default:Object(l.H)((function(){return[Object(l.g)("span",null,"Footer View")]})),_:1}),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-e3752104"]]);var Ot=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 _t={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:jt},demoNestedScroll:{name:"nested scroll 示例",component:d()(Ot,[["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 xt=Object(c.defineComponent)({name:"App",setup(){var e=Object.keys(Oe).map((function(e){return{id:e,name:Oe[e].name}})),t=Object.keys(_t).map((function(e){return{id:e,name:_t[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 wt=d()(xt,[["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 St=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 At=[{path:"/",component:wt},{path:"/remote-debug",component:d()(St,[["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(_t).map((function(e){return{path:"/demo/".concat(e),name:_t[e].name,component:_t[e].component}}))));function kt(){return Object(r.createHippyRouter)({routes:At})}},"./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 diff --git a/framework/examples/ios-demo/res/vue3/vendor-manifest.json b/framework/examples/ios-demo/res/vue3/vendor-manifest.json index 783c9df4584..4a7252c7cef 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/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 +{"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 diff --git a/framework/examples/ios-demo/res/vue3/vendor.ios.js b/framework/examples/ios-demo/res/vue3/vendor.ios.js index ad20cc3949b..389a3d494f4 100644 --- a/framework/examples/ios-demo/res/vue3/vendor.ios.js +++ b/framework/examples/ios-demo/res/vue3/vendor.ios.js @@ -1,19 +1,8 @@ -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){ +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){ /*! * @hippy/vue-next vunspecified - * (Using Vue v3.4.34 and Hippy-Vue-Next vunspecified) - * Build at: Thu Aug 01 2024 19:06:20 GMT+0800 (中国标准时间) + * (Using Vue v3.4.32 and Hippy-Vue-Next vunspecified) + * Build at: Thu Nov 14 2024 11:26:34 GMT+0800 (中国标准时间) * * Tencent is pleased to support the open source community by making * Hippy available. @@ -33,11 +22,22 @@ var hippyVueBase=function(e){var t={};function n(r){if(t[r])return t[r].exports; * See the License for the specific language governing permissions and * limitations under the License. */ -var i=["mode","valueType","startValue","toValue"],o=["transform"],a=["transform"];function u(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function f(e,t,n,r,i,o,a){try{var u=e[o](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,i)}function d(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){f(o,r,i,a,u,"next",e)}function u(e){f(o,r,i,a,u,"throw",e)}a(void 0)}))}}function v(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=A(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 h(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||A(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 p(e,t,n){return t=m(t),y(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}function y(e,t){if(t&&("object"==k(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)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){for(var n=0;n]+)>/g,(function(e,t){var n=o[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof i){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=k(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,a)),i.apply(this,e)}))}return e[Symbol.replace].call(this,n,i)},N.apply(this,arguments)}function T(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&&x(e,t)}function x(e,t){return(x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function j(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)||A(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 A(e,t){if(e){if("string"==typeof e)return I(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)?I(e,t):void 0}}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n255?255:t},B=function(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},U=function(e,t,n){var r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e},H=function(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=U(i,r,e+1/3),a=U(i,r,e),u=U(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*u)<<8},$=function(e){return(parseFloat(e)%360+360)%360/360},Y=function(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100};function W(e){var t=function(e){var t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=D.hex6.exec(e),Array.isArray(t)?parseInt("".concat(t[1],"ff"),16)>>>0:Object.hasOwnProperty.call(R,e)?R[e]:(t=D.rgb.exec(e),Array.isArray(t)?(V(t[1])<<24|V(t[2])<<16|V(t[3])<<8|255)>>>0:(t=D.rgba.exec(e))?(V(t[1])<<24|V(t[2])<<16|V(t[3])<<8|B(t[4]))>>>0:(t=D.hex3.exec(e))?parseInt("".concat(t[1]+t[1]+t[2]+t[2]+t[3]+t[3],"ff"),16)>>>0:(t=D.hex8.exec(e))?parseInt(t[1],16)>>>0:(t=D.hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=D.hsl.exec(e))?(255|H($(t[1]),Y(t[2]),Y(t[3])))>>>0:(t=D.hsla.exec(e))?(H($(t[1]),Y(t[2]),Y(t[3]))|B(t[4]))>>>0:null))}(e);if(null===t)throw new Error("Bad color value: ".concat(e));return t=(t<<24|t>>>8)>>>0}var z={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},K={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},G="turn",q="rad",J="deg",X=/\/\*[\s\S]{0,1000}?\*\//gm;var Z=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function Q(e){if("number"==typeof e)return e;if(Z.test(e))try{return parseFloat(e)}catch(e){}return e}function ee(e){if(Number.isInteger(e))return e;if("string"==typeof e&&e.endsWith("px")){var t=parseFloat(e.slice(0,e.indexOf("px")));Number.isNaN(t)||(e=t)}return e}function te(e){var t=(e||"").replace(/\s*/g,"").toLowerCase(),n=N(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(!Array.isArray(n))return"";var r="180",i=j(n,3),o=i[0],a=i[1],u=i[2];return a&&u?r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J,n=parseFloat(e),r=e||"",i=e.split("."),o=j(i,2),a=o[1];switch(a&&a.length>2&&(r=n.toFixed(2)),t){case G:r="".concat((360*n).toFixed(2));break;case q:r="".concat((180/Math.PI*n).toFixed(2))}return r}(a,u):o&&void 0!==K[o]&&(r=K[o]),r}function ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.replace(/\s+/g," ").trim(),n=t.split(/\s+(?![^(]*?\))/),r=j(n,2),i=r[0],o=r[1],a=/^([+-]?\d+\.?\d*)%$/g;return!i||a.exec(i)||o?i&&a.exec(o)?{ratio:parseFloat(o.split("%")[0])/100,color:W(i)}:null:{color:W(i)}}function re(e,t){var n=t,r=e;if(0===t.indexOf("linear-gradient")){r="linearGradient";var i=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),o=[];n={},i.forEach((function(e,t){if(0===t){var r=te(e);if(r)n.angle=r;else{n.angle="180";var i=ne(e);i&&o.push(i)}}else{var a=ne(e);a&&o.push(a)}})),n.colorStopList=o}else{var a=/(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t);if(a&&a.length>1){var u=j(a,2);n=u[1]}}return[r,n]}function ie(e,t){var n=e&&"string"==typeof e.type,r=n?e:t;return Object.keys(e).forEach((function(t){var n=e[t];Array.isArray(n)?n.forEach((function(e){ie(e,r)})):n&&"object"===k(n)&&ie(n,r)})),n&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t}),e}var oe=function(){return O((function e(){g(this,e),this.changeMap=new Map}),[{key:"addAttribute",value:function(e,t){var n=this.properties(e);n.attributes||(n.attributes=new Set),n.attributes.add(t)}},{key:"addPseudoClass",value:function(e,t){var n=this.properties(e);n.pseudoClasses||(n.pseudoClasses=new Set),n.pseudoClasses.add(t)}},{key:"properties",value:function(e){var t=this.changeMap.get(e);return t||this.changeMap.set(e,t={}),t}}])}(),ae=function(){function e(t){var n=this;g(this,e),this.id={},this.class={},this.type={},this.universal=[],this.position=0,this.ruleSets=t,t.forEach((function(e){return e.lookupSort(n)}))}return O(e,[{key:"append",value:function(e){var t=this;this.ruleSets=this.ruleSets.concat(e),e.forEach((function(e){return e.lookupSort(t)}))}},{key:"delete",value:function(e){var t=this,n=[];this.ruleSets=this.ruleSets.filter((function(t){return t.hash!==e||(n.push(t),!1)})),n.forEach((function(e){return e.removeSort(t)}))}},{key:"query",value:function(e,t){var n=this,r=e.tagName,i=e.id,o=e.classList,a=e.props,u=i,c=o;if(null==a?void 0:a.attributes){var s=a.attributes;c=new Set(((null==s?void 0:s.class)||"").split(" ").filter((function(e){return e.trim()}))),u=s.id}var l=[this.universal,this.id[u],this.type[r]];(null==c?void 0:c.size)&&c.forEach((function(e){return l.push(n.class[e])}));var f=l.filter((function(e){return!!e})).reduce((function(e,t){return e.concat(t)}),[]),d=new oe;return d.selectors=f.filter((function(n){return n.sel.accumulateChanges(e,d,t)})).sort((function(e,t){return e.sel.specificity-t.sel.specificity||e.pos-t.pos})).map((function(e){return e.sel})),d}},{key:"removeById",value:function(t,n){e.removeFromMap(this.id,t,n)}},{key:"sortById",value:function(e,t){this.addToMap(this.id,e,t)}},{key:"removeByClass",value:function(t,n){e.removeFromMap(this.class,t,n)}},{key:"sortByClass",value:function(e,t){this.addToMap(this.class,e,t)}},{key:"removeByType",value:function(t,n){e.removeFromMap(this.type,t,n)}},{key:"sortByType",value:function(e,t){this.addToMap(this.type,e,t)}},{key:"removeAsUniversal",value:function(e){var t=this.universal.findIndex((function(t){var n,r;return(null===(n=t.sel.ruleSet)||void 0===n?void 0:n.hash)===(null===(r=e.ruleSet)||void 0===r?void 0:r.hash)}));-1!==t&&this.universal.splice(t)}},{key:"sortAsUniversal",value:function(e){this.universal.push(this.makeDocSelector(e))}},{key:"addToMap",value:function(e,t,n){this.position+=1;var r=e[t];r?r.push(this.makeDocSelector(n)):e[t]=[this.makeDocSelector(n)]}},{key:"makeDocSelector",value:function(e){return this.position+=1,{sel:e,pos:this.position}}}],[{key:"removeFromMap",value:function(e,t,n){var r=e[t],i=r.findIndex((function(e){var t;return e.sel.ruleSet.hash===(null===(t=n.ruleSet)||void 0===t?void 0:t.hash)}));-1!==i&&r.splice(i,1)}}])}();function ue(e){return null==e}function ce(e){return e?" ".concat(e):""}function se(e,t){return t?(null==e?void 0:e.pId)&&t[e.pId]?t[e.pId]:null:null==e?void 0:e.parentNode}var le=function(){return O((function e(){g(this,e),this.specificity=0}),[{key:"lookupSort",value:function(e,t){e.sortAsUniversal(null!=t?t:this)}},{key:"removeSort",value:function(e,t){e.removeAsUniversal(null!=t?t:this)}}])}(),fe=function(e){function t(){var e;return g(this,t),(e=p(this,t,arguments)).rarity=0,e}return T(t,e),O(t,[{key:"accumulateChanges",value:function(e,t){return this.dynamic?!!this.mayMatch(e)&&(this.trackChanges(e,t),!0):this.match(e)}},{key:"match",value:function(e){return!!e}},{key:"mayMatch",value:function(e){return this.match(e)}},{key:"trackChanges",value:function(e,t){}}])}(le),de=function(e){function t(e){var n;return g(this,t),(n=p(this,t)).specificity=e.reduce((function(e,t){return t.specificity+e}),0),n.head=e.reduce((function(e,t){return!e||e instanceof fe&&t.rarity>e.rarity?t:e}),null),n.dynamic=e.some((function(e){return e.dynamic})),n.selectors=e,n}return T(t,e),O(t,[{key:"toString",value:function(){return"".concat(this.selectors.join("")).concat(ce(this.combinator))}},{key:"match",value:function(e){return!!e&&this.selectors.every((function(t){return t.match(e)}))}},{key:"mayMatch",value:function(e){return!!e&&this.selectors.every((function(t){return t.mayMatch(e)}))}},{key:"trackChanges",value:function(e,t){this.selectors.forEach((function(n){return n.trackChanges(e,t)}))}},{key:"lookupSort",value:function(e,t){this.head&&this.head instanceof fe&&this.head.lookupSort(e,null!=t?t:this)}},{key:"removeSort",value:function(e,t){this.head&&this.head instanceof fe&&this.head.removeSort(e,null!=t?t:this)}}])}(fe),ve=function(e){function t(){var e;return g(this,t),(e=p(this,t)).specificity=0,e.rarity=0,e.dynamic=!1,e}return T(t,e),O(t,[{key:"toString",value:function(){return"*".concat(ce(this.combinator))}},{key:"match",value:function(){return!0}}])}(fe),he=function(e){function t(e){var n;return g(this,t),(n=p(this,t)).specificity=65536,n.rarity=3,n.dynamic=!1,n.id=e,n}return T(t,e),O(t,[{key:"toString",value:function(){return"#".concat(this.id).concat(ce(this.combinator))}},{key:"match",value:function(e){var t,n;return!!e&&((null===(n=null===(t=e.props)||void 0===t?void 0:t.attributes)||void 0===n?void 0:n.id)===this.id||e.id===this.id)}},{key:"lookupSort",value:function(e,t){e.sortById(this.id,null!=t?t:this)}},{key:"removeSort",value:function(e,t){e.removeById(this.id,null!=t?t:this)}}])}(fe),pe=function(e){function t(e){var n;return g(this,t),(n=p(this,t)).specificity=1,n.rarity=1,n.dynamic=!1,n.cssType=e,n}return T(t,e),O(t,[{key:"toString",value:function(){return"".concat(this.cssType).concat(ce(this.combinator))}},{key:"match",value:function(e){return!!e&&e.tagName===this.cssType}},{key:"lookupSort",value:function(e,t){e.sortByType(this.cssType,null!=t?t:this)}},{key:"removeSort",value:function(e,t){e.removeByType(this.cssType,null!=t?t:this)}}])}(fe),ye=function(e){function t(e){var n;return g(this,t),(n=p(this,t)).specificity=256,n.rarity=2,n.dynamic=!1,n.className=e,n}return T(t,e),O(t,[{key:"toString",value:function(){return".".concat(this.className).concat(ce(this.combinator))}},{key:"match",value:function(e){var t,n,r;if(!e)return!1;var i=null!==(t=e.classList)&&void 0!==t?t:new Set(((null===(r=null===(n=e.props)||void 0===n?void 0:n.attributes)||void 0===r?void 0:r.class)||"").split(" ").filter((function(e){return e.trim()})));return!(!i.size||!i.has(this.className))}},{key:"lookupSort",value:function(e,t){e.sortByClass(this.className,null!=t?t:this)}},{key:"removeSort",value:function(e,t){e.removeByClass(this.className,null!=t?t:this)}}])}(fe),me=function(e){function t(e){var n;return g(this,t),(n=p(this,t)).specificity=256,n.rarity=0,n.dynamic=!0,n.cssPseudoClass=e,n}return T(t,e),O(t,[{key:"toString",value:function(){return":".concat(this.cssPseudoClass).concat(ce(this.combinator))}},{key:"match",value:function(){return!1}},{key:"mayMatch",value:function(){return!0}},{key:"trackChanges",value:function(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}])}(fe),ge=function(e,t){var n,r,i,o=(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n[t])||(null===(r=null==e?void 0:e.attributes)||void 0===r?void 0:r[t]);return void 0!==o?o:Array.isArray(null==e?void 0:e.styleScopeId)&&(null===(i=null==e?void 0:e.styleScopeId)||void 0===i?void 0:i.includes(t))?t:void 0},be=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return g(this,t),(n=p(this,t)).attribute="",n.test="",n.value="",n.specificity=256,n.rarity=0,n.dynamic=!0,n.attribute=e,n.test=r,n.value=i,r?i?(n.match=function(t){if(!t||!(null==t?void 0:t.attributes)&&!(null==t?void 0:t.props[e]))return!1;var n="".concat(ge(t,e));if("="===r)return n===i;if("^="===r)return n.startsWith(i);if("$="===r)return n.endsWith(i);if("*="===r)return-1!==n.indexOf(i);if("~="===r){var o=n.split(" ");return-1!==(null==o?void 0:o.indexOf(i))}return"|="===r&&(n===i||n.startsWith("".concat(i,"-")))},n):(n.match=function(){return!1},y(n)):(n.match=function(t){return!(!t||!(null==t?void 0:t.attributes)&&!(null==t?void 0:t.props))&&!ue(ge(t,e))},y(n))}return T(t,e),O(t,[{key:"toString",value:function(){return"[".concat(this.attribute).concat(ce(this.test)).concat(this.test&&this.value||"","]").concat(ce(this.combinator))}},{key:"match",value:function(e){return!!e&&!e}},{key:"mayMatch",value:function(){return!0}},{key:"trackChanges",value:function(e,t){t.addAttribute(e,this.attribute)}}])}(fe),Oe=function(e){function t(e){var n;return g(this,t),(n=p(this,t)).specificity=0,n.rarity=4,n.dynamic=!1,n.combinator=void 0,n.error=e,n}return T(t,e),O(t,[{key:"toString",value:function(){return"")}},{key:"match",value:function(){return!1}},{key:"lookupSort",value:function(){return null}},{key:"removeSort",value:function(){return null}}])}(fe),_e=function(){return O((function e(t){g(this,e),this.selectors=t,this.dynamic=t.some((function(e){return e.dynamic}))}),[{key:"match",value:function(e){return!!e&&(this.selectors.every((function(t,n){return 0!==n&&(e=e.parentNode),!!e&&t.match(e)}))?e:null)}},{key:"mayMatch",value:function(e){return!!e&&(this.selectors.every((function(t,n){return 0!==n&&(e=e.parentNode),!!e&&t.mayMatch(e)}))?e:null)}},{key:"trackChanges",value:function(e,t){this.selectors.forEach((function(n,r){0!==r&&(e=e.parentNode),e&&n.trackChanges(e,t)}))}}])}(),we=function(){return O((function e(t){g(this,e),this.selectors=t,this.dynamic=t.some((function(e){return e.dynamic}))}),[{key:"match",value:function(e){return!!e&&(this.selectors.every((function(t,n){return 0!==n&&(e=e.nextSibling),!!e&&t.match(e)}))?e:null)}},{key:"mayMatch",value:function(e){return!!e&&(this.selectors.every((function(t,n){return 0!==n&&(e=e.nextSibling),!!e&&t.mayMatch(e)}))?e:null)}},{key:"trackChanges",value:function(e,t){this.selectors.forEach((function(n,r){0!==r&&(e=e.nextSibling),e&&n.trackChanges(e,t)}))}}])}(),Se=function(e){function t(e){var n;g(this,t),n=p(this,t);var r=[void 0," ",">","+","~"],i=[],o=[],a=[],u=h(e),c=u.length-1;n.specificity=0,n.dynamic=!1;for(var s=c;s>=0;s--){var l=u[s];if(-1===r.indexOf(l.combinator))throw console.error('Unsupported combinator "'.concat(l.combinator,'".')),new Error('Unsupported combinator "'.concat(l.combinator,'".'));void 0!==l.combinator&&" "!==l.combinator||a.push(o=[i=[]]),">"===l.combinator&&o.push(i=[]),n.specificity+=l.specificity,l.dynamic&&(n.dynamic=!0),i.push(l)}return n.groups=a.map((function(e){return new _e(e.map((function(e){return new we(e)})))})),n.last=u[c],n}return T(t,e),O(t,[{key:"toString",value:function(){return this.selectors.join("")}},{key:"match",value:function(e,t){return!!e&&this.groups.every((function(n,r){if(0===r)return!!(e=n.match(e));for(var i=se(e,t);i;){if(e=n.match(i))return!0;i=se(i,t)}return!1}))}},{key:"lookupSort",value:function(e){this.last.lookupSort(e,this)}},{key:"removeSort",value:function(e){this.last.removeSort(e,this)}},{key:"accumulateChanges",value:function(e,t,n){if(!this.dynamic)return this.match(e,n);var r=[],i=this.groups.every((function(t,i){if(0===i){var o=t.mayMatch(e);return r.push({left:e,right:e}),!!(e=o)}for(var a=se(e,n);a;){var u=t.mayMatch(a);if(u)return r.push({left:a,right:null}),e=u,!0;a=se(a,n)}return!1}));if(!i)return!1;if(!t)return i;for(var o=0;o)?\\s*"},Te={};function xe(e,t,n){var r="";ke&&(r="gy"),Te[e]||(Te[e]=new RegExp(Ne[e],r));var i,o=Te[e];if(ke)o.lastIndex=n,i=o.exec(t);else{if(t=t.slice(n,t.length),!(i=o.exec(t)))return{result:null,regexp:o};o.lastIndex=n+i[0].length}return{result:i,regexp:o}}function je(e,t){var n,r;return null!==(r=null!==(n=function(e,t){var n=xe("universalSelectorRegEx",e,t),r=n.result,i=n.regexp;return r?{value:{type:"*"},start:t,end:i.lastIndex}:null}(e,t))&&void 0!==n?n:function(e,t){var n=xe("simpleIdentifierSelectorRegEx",e,t),r=n.result,i=n.regexp;if(!r)return null;var o=i.lastIndex;return{value:{type:r[1],identifier:r[2]},start:t,end:o}}(e,t))&&void 0!==r?r:function(e,t){var n=xe("attributeSelectorRegEx",e,t),r=n.result,i=n.regexp;if(!r)return null;var o=i.lastIndex,a=r[1];return r[2]?{value:{type:"[]",property:a,test:r[2],value:r[3]||r[4]||r[5]},start:t,end:o}:{value:{type:"[]",property:a},start:t,end:o}}(e,t)}function Ae(e,t){var n=je(e,t);if(!n)return null;for(var r=n.end,i=[];n;){i.push(n.value),n=je(e,r=n.end)}return{start:t,end:r,value:i}}function Ie(e,t){var n=xe("combinatorRegEx",e,t),r=n.result,i=n.regexp;return r?{start:t,end:ke?i.lastIndex:t,value:r[1]||" "}:null}var Ce,Pe=function(e){return e};function Re(e){return"declaration"===e.type}function Le(e){return function(t){return e(t)}}function Me(e){switch(e.type){case"*":return new ve;case"#":return new he(e.identifier);case"":return new pe(e.identifier.replace(/-/,"").toLowerCase());case".":return new ye(e.identifier);case":":return new me(e.identifier);case"[]":return e.test?new be(e.property,e.test,e.value):new be(e.property);default:return new Oe(new Error("Unknown selector."))}}function Fe(e){return 0===e.length?new Oe(new Error("Empty simple selector sequence.")):1===e.length?Me(e[0]):new de(e.map(Me))}function De(e){try{var t=function(e,t){var n=t,r=xe("whiteSpaceRegEx",e,t),i=r.result,o=r.regexp;i&&(n=o.lastIndex);var a,u=[],c=!0,s=[void 0,void 0];return(ke?[e]:e.split(" ")).forEach((function(e){if(!ke){if(""===e)return;n=0}do{var t=Ae(e,n);if(!t){if(c)return;break}if(n=t.end,a&&(s[1]=a.value),s=[t.value,void 0],u.push(s),a=Ie(e,n))n=a.end;c=!(!a||" "===a.value)}while(a)})),{start:t,end:n,value:u}}(e,0);return t?function(e){if(0===e.length)return new Oe(new Error("Empty selector."));if(1===e.length)return Fe(e[0][0]);var t,n=[],r=v(e);try{for(r.s();!(t=r.n()).done;){var i=t.value,o=Fe(i[0]),a=i[1];a&&o&&(o.combinator=a),n.push(o)}}catch(e){r.e(e)}finally{r.f()}return new Se(n)}(t.value):new Oe(new Error("Empty selector"))}catch(e){return new Oe(e)}}function Ve(e){var t;return!e||!(null===(t=null==e?void 0:e.ruleSets)||void 0===t?void 0:t.length)}function Be(t,n){if(t){if(!Ve(Ce))return Ce;var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e.map((function(e){var n=e[0],r=e[1];return r=r.map((function(e){var t=j(e,2);return{type:"declaration",property:t[0],value:t[1]}})).map(Le(null!=t?t:Pe)),n=n.map(De),new Ee(n,r,"")}))}(t,n);return Ce=new ae(r)}var i=e[Ue];if(Ve(Ce)||i){var o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=e.map((function(e){if(!Array.isArray(e))return e;var t=j(e,3);return{hash:t[0],selectors:t[1],declarations:t[2].map((function(e){var t=j(e,2);return{type:"declaration",property:t[0],value:t[1]}}))}}));return n.map((function(e){var n=e.declarations.filter(Re).map(Le(null!=t?t:Pe)),r=e.selectors.map(De);return new Ee(r,n,e.hash)}))}(i);Ce?Ce.append(o):Ce=new ae(o),e[Ue]=void 0}return e[He]&&(e[He].forEach((function(e){Ce.delete(e)})),e[He]=void 0),Ce}var Ue="__HIPPY_VUE_STYLES__",He="__HIPPY_VUE_DISPOSE_STYLES__",$e=Object.create(null),Ye={$on:function(e,t,n){return Array.isArray(e)?e.forEach((function(e){Ye.$on(e,t,n)})):($e[e]||($e[e]=[]),$e[e].push({fn:t,ctx:n})),Ye},$once:function(e,t,n){function r(){Ye.$off(e,r);for(var i=arguments.length,o=new Array(i),a=0;a1?r-1:0),o=1;o0||e.didTimeout)&&function e(t){var n;"number"==typeof t?In(t):t&&(In(t.nodeId),null===(n=t.childNodes)||void 0===n||n.forEach((function(t){return e(t)})))}(t)},r={timeout:50},e.requestIdleCallback?e.requestIdleCallback(n,r):setTimeout((function(){n({didTimeout:!1,timeRemaining:function(){return 1/0}})}),1)}function Rn(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e[t],r=t;r-1){var f;if("onLayout"===i){f=new On(o),Object.assign(f,{eventPhase:c,nativeParams:null!=u?u:{}});var d=u.layout,v=d.x,h=d.y,p=d.height,y=d.width;f.top=h,f.left=v,f.bottom=h+p,f.right=v+y,f.width=y,f.height=p}else{f=new gn(o),Object.assign(f,{eventPhase:c,nativeParams:null!=u?u:{}});var m=l.component.processEventData;m&&m({__evt:i,handler:f},u)}s.dispatchEvent(function(e,t,n){return function(e){return["onTouchDown","onTouchMove","onTouchEnd","onTouchCancel"].indexOf(e)>=0}(e)&&Object.assign(t,{touches:{0:{clientX:n.page_x,clientY:n.page_y},length:1}}),t}(i,f,u),l,t)}}catch(e){console.error("receiveComponentEvent error",e)}else qe.apply(void 0,Mn.concat(["receiveComponentEvent","currentTargetNode or targetNode not exist"]))}else qe.apply(void 0,Mn.concat(["receiveComponentEvent","nativeEvent or domEvent not exist"]))}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=Fn);var Dn,Vn=function(){function e(){g(this,e),this.listeners={}}return O(e,[{key:"addEventListener",value:function(e,t,n){for(var r=e.split(","),i=r.length,o=0;o=0&&c.splice(s,1),c.length||(this.listeners[u]=void 0)}}}else this.listeners[u]=void 0}}},{key:"emitEvent",value:function(e){var t,n,r=e.type,i=this.listeners[r];if(i)for(var o=i.length-1;o>=0;o-=1){var a=i[o];(null===(t=a.options)||void 0===t?void 0:t.once)&&i.splice(o,1),(null===(n=a.options)||void 0===n?void 0:n.thisArg)?a.callback.apply(a.options.thisArg,[e]):a.callback(e)}}},{key:"getEventListenerList",value:function(){return this.listeners}}],[{key:"indexOfListener",value:function(e,t,n){return e.findIndex((function(e){return n?e.callback===t&&C.looseEqual(e.options,n):e.callback===t}))}}])}();!function(e){e[e.CREATE=0]="CREATE",e[e.UPDATE=1]="UPDATE",e[e.DELETE=2]="DELETE",e[e.MOVE=3]="MOVE",e[e.UPDATE_EVENT=4]="UPDATE_EVENT"}(Dn||(Dn={}));var Bn,Un=!1,Hn=[];function $n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;e.forEach((function(e){if(e){var n=e.id;e.eventList.forEach((function(e){var r,i=e.name,o=e.type,a=e.listener;r=fn(i)?sn[i]:dn(i),o===cn&&t.removeEventListener(n,r,a),o===un&&(t.removeEventListener(n,r,a),t.addEventListener(n,r,a))}))}}))}function Yn(e,t){0}function Wn(){Un||(Un=!0,0!==Hn.length?P.nextTick().then((function(){var t=function(e){var t,n=[],r=v(e);try{for(r.s();!(t=r.n()).done;){var i=t.value,o=i.type,a=i.nodes,u=i.eventNodes,c=i.printedNodes,s=n[n.length-1];s&&s.type===o?(s.nodes=s.nodes.concat(a),s.eventNodes=s.eventNodes.concat(u),s.printedNodes=s.printedNodes.concat(c)):n.push({type:o,nodes:a,eventNodes:u,printedNodes:c})}}catch(e){r.e(e)}finally{r.f()}return n}(Hn),n=yn().rootViewId,r=new e.Hippy.SceneBuilder(n);t.forEach((function(e){switch(e.type){case Dn.CREATE:Yn(e.printedNodes),r.create(e.nodes,!0),$n(e.eventNodes,r);break;case Dn.UPDATE:Yn(e.printedNodes),r.update(e.nodes),$n(e.eventNodes,r);break;case Dn.DELETE:Yn(e.printedNodes),r.delete(e.nodes);break;case Dn.MOVE:Yn(e.printedNodes),r.move(e.nodes);break;case Dn.UPDATE_EVENT:$n(e.eventNodes,r)}})),r.build(),Un=!1,Hn=[]})):Un=!1)}function zn(e){var t=j(e,3),n=t[0],r=t[1],i=t[2];Hn.push({type:Dn.CREATE,nodes:n,eventNodes:r,printedNodes:i}),Wn()}function Kn(e){var t=j(e,3),n=t[0],r=t[2];n&&(Hn.push({type:Dn.MOVE,nodes:n,eventNodes:[],printedNodes:r}),Wn())}function Gn(e){var t=j(e,3),n=t[0],r=t[1],i=t[2];n&&(Hn.push({type:Dn.UPDATE,nodes:n,eventNodes:r,printedNodes:i}),Wn())}function qn(e){var t,n=e.events;if(n){var r=[];Object.keys(n).forEach((function(e){var t=n[e],i=t.name,o=t.type,a=t.isCapture,u=t.listener;r.push({name:i,type:o,isCapture:a,listener:u})})),t={id:e.nodeId,eventList:r}}return t}!function(e){e[e.ElementNode=1]="ElementNode",e[e.TextNode=3]="TextNode",e[e.CommentNode=8]="CommentNode",e[e.DocumentNode=4]="DocumentNode"}(Bn||(Bn={}));var Jn=function(t){function n(e,t){var r,i;return g(this,n),(r=p(this,n)).isMounted=!1,r.events={},r.childNodes=[],r.parentNode=null,r.prevSibling=null,r.nextSibling=null,r.tagComponent=null,r.nodeId=null!==(i=null==t?void 0:t.id)&&void 0!==i?i:n.getUniqueNodeId(),r.nodeType=e,r.isNeedInsertToNative=function(e){return e===Bn.ElementNode}(e),(null==t?void 0:t.id)&&(r.isMounted=!0),r}return T(n,t),O(n,[{key:"firstChild",get:function(){return this.childNodes.length?this.childNodes[0]:null}},{key:"lastChild",get:function(){var e=this.childNodes.length;return e?this.childNodes[e-1]:null}},{key:"component",get:function(){return this.tagComponent}},{key:"index",get:function(){var e=0;this.parentNode&&(e=this.parentNode.childNodes.filter((function(e){return e.isNeedInsertToNative})).indexOf(this));return e}},{key:"isRootNode",value:function(){return 1===this.nodeId}},{key:"hasChildNodes",value:function(){return!!this.childNodes.length}},{key:"insertBefore",value:function(e,t){var n=e,r=t;if(!n)throw new Error("No child to insert");if(r){if(n.parentNode&&n.parentNode!==this)throw new Error("Can not insert child, because the child node is already has a different parent");var i=this;r.parentNode!==this&&(i=r.parentNode);var o=i.childNodes.indexOf(r),a=r;r.isNeedInsertToNative||(a=Rn(this.childNodes,o)),n.parentNode=i,n.nextSibling=r,n.prevSibling=i.childNodes[o-1],i.childNodes[o-1]&&(i.childNodes[o-1].nextSibling=n),r.prevSibling=n,i.childNodes.splice(o,0,n),a.isNeedInsertToNative?this.insertChildNativeNode(n,{refId:a.nodeId,relativeToRef:Ln}):this.insertChildNativeNode(n)}else this.appendChild(n)}},{key:"moveChild",value:function(e,t){var n=e,r=t;if(!n)throw new Error("No child to move");if(r){if(r.parentNode&&r.parentNode!==this)throw new Error("Can not move child, because the anchor node is already has a different parent");if(n.parentNode&&n.parentNode!==this)throw new Error("Can't move child, because it already has a different parent");var i=this.childNodes.indexOf(n),o=this.childNodes.indexOf(r),a=r;if(r.isNeedInsertToNative||(a=Rn(this.childNodes,o)),o!==i){n.nextSibling=r,n.prevSibling=r.prevSibling,r.prevSibling=n,this.childNodes[o-1]&&(this.childNodes[o-1].nextSibling=n),this.childNodes[o+1]&&(this.childNodes[o+1].prevSibling=n),this.childNodes[i-1]&&(this.childNodes[i-1].nextSibling=this.childNodes[i+1]),this.childNodes[i+1]&&(this.childNodes[i+1].prevSibling=this.childNodes[i-1]),this.childNodes.splice(i,1);var u=this.childNodes.indexOf(r);this.childNodes.splice(u,0,n),a.isNeedInsertToNative?this.moveChildNativeNode(n,{refId:a.nodeId,relativeToRef:Ln}):this.insertChildNativeNode(n)}}else this.appendChild(n)}},{key:"appendChild",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e;if(!n)throw new Error("No child to append");this.lastChild!==n&&(n.parentNode&&n.parentNode!==this?n.parentNode.removeChild(n):(n.isMounted&&!t&&this.removeChild(n),n.parentNode=this,this.lastChild&&(n.prevSibling=this.lastChild,this.lastChild.nextSibling=n),this.childNodes.push(n),t?An(n,n.nodeId):this.insertChildNativeNode(n)))}},{key:"removeChild",value:function(e){var t=e;if(!t)throw new Error("Can't remove child.");if(!t.parentNode)throw new Error("Can't remove child, because it has no parent.");if(t.parentNode===this){if(t.isNeedInsertToNative){t.prevSibling&&(t.prevSibling.nextSibling=t.nextSibling),t.nextSibling&&(t.nextSibling.prevSibling=t.prevSibling),t.prevSibling=null,t.nextSibling=null;var n=this.childNodes.indexOf(t);this.childNodes.splice(n,1),this.removeChildNativeNode(t)}}else t.parentNode.removeChild(t)}},{key:"findChild",value:function(e){if(e(this))return this;if(this.childNodes.length){var t,n=v(this.childNodes);try{for(n.s();!(t=n.n()).done;){var r=t.value,i=this.findChild.call(r,e);if(i)return i}}catch(e){n.e(e)}finally{n.f()}}return null}},{key:"eachNode",value:function(e){var t=this;e&&e(this),this.childNodes.length&&this.childNodes.forEach((function(n){t.eachNode.call(n,e)}))}},{key:"insertChildNativeNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.isNeedInsertToNative){var n=this.isRootNode()&&!this.isMounted,r=this.isMounted&&!e.isMounted;if(n||r){var i=n?this:e;zn(i.convertToNativeNodes(!0,t)),i.eachNode((function(e){var t=e;!t.isMounted&&t.isNeedInsertToNative&&(t.isMounted=!0),An(t,t.nodeId)}))}}}},{key:"moveChildNativeNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.isNeedInsertToNative&&(!t||t.refId!==e.nodeId)){var n=e;Kn(n.convertToNativeNodes(!1,t))}}},{key:"removeChildNativeNode",value:function(e){if(e&&e.isNeedInsertToNative){var t,n,r,i,o=e;o.isMounted&&(o.isMounted=!1,t=o.convertToNativeNodes(!1,{}),n=j(t,3),r=n[0],i=n[2],r&&(Hn.push({type:Dn.DELETE,nodes:r,eventNodes:[],printedNodes:i}),Wn()))}}},{key:"updateNativeNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isMounted){var t=this.convertToNativeNodes(e,{});Gn(t)}}},{key:"updateNativeEvent",value:function(){this.isMounted&&function(e){Hn.push({type:Dn.UPDATE_EVENT,nodes:[],eventNodes:[e],printedNodes:[]}),Wn()}(qn(this))}},{key:"convertToNativeNodes",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;if(!this.isNeedInsertToNative)return[[],[],[]];if(e){var o=[],a=[],u=[];return this.eachNode((function(e){var t=j(e.convertToNativeNodes(!1,r),3),n=t[0],i=t[1],c=t[2];Array.isArray(n)&&n.length&&o.push.apply(o,h(n)),Array.isArray(i)&&i.length&&a.push.apply(a,h(i)),Array.isArray(c)&&c.length&&u.push.apply(u,h(c))})),[o,a,u]}if(!this.component)throw new Error("tagName is not supported yet");var c=yn(),s=c.rootViewId,l=null!=i?i:{},f=w({id:this.nodeId,pId:null!==(n=null===(t=this.parentNode)||void 0===t?void 0:t.nodeId)&&void 0!==n?n:s},l),d=qn(this),v=void 0,p=[f,r];return[[p],[d],[v]]}}],[{key:"getUniqueNodeId",value:function(){return e.hippyUniqueId||(e.hippyUniqueId=0),e.hippyUniqueId+=1,e.hippyUniqueId%10==0&&(e.hippyUniqueId+=1),e.hippyUniqueId}}])}(Vn),Xn=function(e){function t(e,n){var r;return g(this,t),(r=p(this,t,[Bn.TextNode,n])).text=e,r.data=e,r.isNeedInsertToNative=!1,r}return T(t,e),O(t,[{key:"setText",value:function(e){this.text=e,this.parentNode&&this.parentNode.nodeType===Bn.ElementNode&&this.parentNode.setText(e)}}])}(Jn);function Zn(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0,i=r,o={textShadowOffsetX:"width",textShadowOffsetY:"height"};return i.textShadowOffset=null!==(t=i.textShadowOffset)&&void 0!==t?t:{},Object.assign(i.textShadowOffset,{[o[e]]:n}),["textShadowOffset",i.textShadowOffset]}function Qn(e,t){var n=t;e.component.name===ze.TextInput&&an()&&(n.textAlign||(n.textAlign="right"))}function er(e,t,n){var r=t,i=n;e.component.name===ze.View&&("scroll"===i.overflowX&&i.overflowY,"scroll"===i.overflowY?r.name="ScrollView":"scroll"===i.overflowX&&(r.name="ScrollView",r.props&&(r.props.horizontal=!0),i.flexDirection=an()?"row-reverse":"row"),"ScrollView"===r.name&&(e.childNodes.length,e.childNodes.length&&e.nodeType===Bn.ElementNode&&e.childNodes[0].setStyle("collapsable",!1)),i.backgroundImage&&(i.backgroundImage=ct(i.backgroundImage)))}function tr(e,t){if("string"==typeof e)for(var n=e.split(","),r=0,i=n.length;r1&&void 0!==arguments[1]&&arguments[1];e instanceof Xn&&this.setText(e.text,{notToNative:!0}),c(m(t.prototype),"appendChild",this).call(this,e,n)}},{key:"insertBefore",value:function(e,n){e instanceof Xn&&this.setText(e.text,{notToNative:!0}),c(m(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"moveChild",value:function(e,n){e instanceof Xn&&this.setText(e.text,{notToNative:!0}),c(m(t.prototype),"moveChild",this).call(this,e,n)}},{key:"removeChild",value:function(e){e instanceof Xn&&this.setText("",{notToNative:!0}),c(m(t.prototype),"removeChild",this).call(this,e)}},{key:"hasAttribute",value:function(e){return!!this.attributes[e]}},{key:"getAttribute",value:function(e){return this.attributes[e]}},{key:"removeAttribute",value:function(e){delete this.attributes[e]}},{key:"setAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t,i=e;try{if("boolean"==typeof this.attributes[i]&&""===r&&(r=!0),void 0===i)return void(!n.notToNative&&this.updateNativeNode());switch(i){case"class":var o=new Set(vt(r));if(at(this.classList,o))return;return this.classList=o,void(!n.notToNative&&this.updateNativeNode(!0));case"id":if(r===this.id)return;return this.id=r,void(!n.notToNative&&this.updateNativeNode(!0));case"text":case"value":case"defaultValue":case"placeholder":if("string"!=typeof r)try{r=r.toString()}catch(e){"Property ".concat(i," must be string:").concat(e.message)}n&&n.textUpdate||(r=dt(r)),r=ot(r);break;case"numberOfRows":if(!Pt.isIOS())return;break;case"caretColor":case"caret-color":i="caret-color",r=Pt.parseColor(r);break;case"break-strategy":i="breakStrategy";break;case"placeholderTextColor":case"placeholder-text-color":i="placeholderTextColor",r=Pt.parseColor(r);break;case"underlineColorAndroid":case"underline-color-android":i="underlineColorAndroid",r=Pt.parseColor(r);break;case"nativeBackgroundAndroid":var a=r;void 0!==a.color&&(a.color=Pt.parseColor(a.color)),i="nativeBackgroundAndroid",r=a}if(this.attributes[i]===r)return;this.attributes[i]=r,"function"==typeof this.filterAttribute&&this.filterAttribute(this.attributes),!n.notToNative&&this.updateNativeNode()}catch(e){0}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setAttribute("text",e,{notToNative:!!t.notToNative})}},{key:"removeStyle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.style={},e||this.updateNativeNode()}},{key:"setStyles",value:function(e){var t=this;e&&"object"===k(e)&&(Object.keys(e).forEach((function(n){var r=e[n];t.setStyle(n,r,!0)})),this.updateNativeNode())}},{key:"setStyle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(void 0===t)return delete this.style[e],void(n||this.updateNativeNode());var r=this.beforeLoadStyle({property:e,value:t}),i=r.property,o=r.value;switch(i){case"fontWeight":"string"!=typeof o&&(o=o.toString());break;case"backgroundImage":var a=re(i,o),u=j(a,2);i=u[0],o=u[1];break;case"textShadowOffsetX":case"textShadowOffsetY":var c=Zn(i,o,this.style),s=j(c,2);i=s[0],o=s[1];break;case"textShadowOffset":var l=null!=o?o:{},f=l.x,d=void 0===f?0:f,v=l.width,h=void 0===v?0:v,p=l.y,y=void 0===p?0:p,m=l.height,g=void 0===m?0:m;o={width:d||h,height:y||g};break;default:Object.prototype.hasOwnProperty.call(z,i)&&(i=z[i]),"string"==typeof o&&(o=o.trim(),o=i.toLowerCase().indexOf("color")>=0?Pt.parseColor(o):o.endsWith("px")?parseFloat(o.slice(0,o.length-2)):Qe(o))}null!=o&&this.style[i]!==o&&(this.style[i]=o,n||this.updateNativeNode())}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;if("number"==typeof e&&"number"==typeof t){var r=n;!1===r&&(r=0),Pt.callUIFunction(this,"scrollToWithOptions",[{x:e,y:t,duration:r}])}}},{key:"scrollTo",value:function(e,t,n){if("object"===k(e)&&e){var r=e.left,i=e.top,o=e.behavior,a=void 0===o?"auto":o,u=e.duration;this.scrollToPosition(r,i,"none"===a?0:u)}else this.scrollToPosition(e,t,n)}},{key:"setListenerHandledType",value:function(e,t){this.events[e]&&(this.events[e].handledType=t)}},{key:"isListenerHandled",value:function(e,t){return!this.events[e]||t===this.events[e].handledType}},{key:"getNativeEventName",value:function(e){var t="on".concat(Xe(e));if(this.component){var n=this.component.eventNamesMap;(null==n?void 0:n.get(e))&&(t=n.get(e))}return t}},{key:"addEventListener",value:function(e,n,r){var i=this,o=e,a=n,u=r,s=!0;"scroll"!==o||this.getAttribute("scrollEventThrottle")>0||(this.attributes.scrollEventThrottle=200);var l=this.getNativeEventName(o);if(this.attributes[l]&&(s=!1),"function"==typeof this.polyfillNativeEvents){var f=this.polyfillNativeEvents(hn,o,a,u);o=f.eventNames,a=f.callback,u=f.options}c(m(t.prototype),"addEventListener",this).call(this,o,a,u),tr(o,(function(e){var t,n,r=i.getNativeEventName(e);i.events[r]?i.events[r]&&i.events[r].type!==un&&(i.events[r].type=un):i.events[r]={name:r,type:un,listener:(t=r,n=e,function(e){var r=e.id,i=e.currentId,o=e.params,a=e.eventPhase;Fn.receiveComponentEvent({id:r,nativeName:t,originalName:n,currentId:i,params:o,eventPhase:a},e)}),isCapture:!1}})),s&&this.updateNativeEvent()}},{key:"removeEventListener",value:function(e,n,r){var i=this,o=e,a=n,u=r;if("function"==typeof this.polyfillNativeEvents){var s=this.polyfillNativeEvents(pn,o,a,u);o=s.eventNames,a=s.callback,u=s.options}c(m(t.prototype),"removeEventListener",this).call(this,o,a,u),tr(o,(function(e){var t=i.getNativeEventName(e);i.events[t]&&(i.events[t].type=cn)}));var l=this.getNativeEventName(o);this.attributes[l]&&delete this.attributes[l],this.updateNativeEvent()}},{key:"dispatchEvent",value:function(e,t,n){var r=e;r.currentTarget=this,r.target||(r.target=t||this,xn(r)&&(r.target.value=r.value)),this.emitEvent(r),!r.bubbles&&n&&n.stopPropagation()}},{key:"convertToNativeNodes",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isNeedInsertToNative)return[[],[],[]];if(e)return c(m(t.prototype),"convertToNativeNodes",this).call(this,!0,r);var i=this.getNativeStyles();if(this.parentNode&&this.parentNode instanceof t){var o=this.parentNode.processedStyle,a=["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"];a.forEach((function(e){!i[e]&&o[e]&&(i[e]=o[e])}))}if(it()(this,i),this.component.defaultNativeStyle){var u=this.component.defaultNativeStyle,s={};Object.keys(u).forEach((function(e){n.getAttribute(e)||(s[e]=u[e])})),i=w(w({},s),i)}this.processedStyle=i;var l={name:this.component.name,props:w(w({},this.getNativeProps()),{},{style:i}),tagName:this.tagName};return Qn(this,i),er(this,l,i),c(m(t.prototype),"convertToNativeNodes",this).call(this,!1,r,l)}},{key:"repaintWithChildren",value:function(){this.updateNativeNode(!0)}},{key:"setNativeProps",value:function(e){if(e){var t=e.style;this.setStyles(t)}}},{key:"setPressed",value:function(e){Pt.callUIFunction(this,"setPressed",[e])}},{key:"setHotspot",value:function(e,t){Pt.callUIFunction(this,"setHotspot",[e,t])}},{key:"setStyleScope",value:function(e){var t="string"!=typeof e?e.toString():e;t&&!this.scopedIdList.includes(t)&&this.scopedIdList.push(t)}},{key:"styleScopeId",get:function(){return this.scopedIdList}},{key:"getInlineStyle",value:function(){var e=this,t={};return Object.keys(this.style).forEach((function(n){var r=P.toRaw(e.style[n]);void 0!==r&&(t[n]=r)})),t}},{key:"getNativeStyles",value:function(){var e=this,n={};return Be(void 0,tt()).query(this).selectors.forEach((function(t){var r,i;ft(t,e)&&(null===(i=null===(r=t.ruleSet)||void 0===r?void 0:r.declarations)||void 0===i?void 0:i.length)&&t.ruleSet.declarations.forEach((function(e){e.property&&(n[e.property]=e.value)}))})),this.ssrInlineStyle&&(n=w(w({},n),this.ssrInlineStyle)),n=t.parseRem(w(w({},n),this.getInlineStyle()))}},{key:"getNativeProps",value:function(){var e=this,t={},n=this.component.defaultNativeProps;n&&Object.keys(n).forEach((function(r){if(void 0===e.getAttribute(r)){var i=n[r];t[r]=C.isFunction(i)?i(e):P.toRaw(i)}})),Object.keys(this.attributes).forEach((function(n){var r,i=P.toRaw(e.getAttribute(n));if(e.component.attributeMaps&&e.component.attributeMaps[n]){var o=e.component.attributeMaps[n];if(C.isString(o))t[o]=P.toRaw(i);else if(C.isFunction(o))t[n]=P.toRaw(o(i));else{var a=o.name,u=o.propsValue,c=o.jointKey;C.isFunction(u)&&(i=u(i)),c?(t[c]=null!==(r=t[c])&&void 0!==r?r:{},Object.assign(t[c],{[a]:P.toRaw(i)})):t[a]=P.toRaw(i)}}else t[n]=P.toRaw(i)}));var r=this.component.nativeProps;return r&&Object.keys(r).forEach((function(e){t[e]=P.toRaw(r[e])})),t}},{key:"getNodeAttributes",value:function(){var e;try{var t=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new WeakMap;if("object"!==k(t)||null===t)throw new TypeError("deepCopy data is object");if(n.has(t))return n.get(t);var r={},i=Object.keys(t);return i.forEach((function(i){var o=t[i];"object"!==k(o)||null===o?r[i]=o:Array.isArray(o)?r[i]=h(o):o instanceof Set?r[i]=new Set(h(o)):o instanceof Map?r[i]=new Map(h(o)):(n.set(t,t),r[i]=e(o,n))})),r}(this.attributes),n=Array.from(null!==(e=this.classList)&&void 0!==e?e:[]).join(" "),r=w({id:this.id,hippyNodeId:"".concat(this.nodeId),class:n},t);return delete r.text,delete r.value,Object.keys(r).forEach((function(e){"id"!==e&&"hippyNodeId"!==e&&"class"!==e&&delete r[e]})),r}catch(e){return{}}}},{key:"getNativeEvents",value:function(){var e={},t=this.getEventListenerList(),n=Object.keys(t);if(n.length){var r=this.component.eventNamesMap;n.forEach((function(n){var i=null==r?void 0:r.get(n);if(i)e[i]=!!t[n];else{var o="on".concat(Xe(n));e[o]=!!t[n]}}))}return e}},{key:"hackSpecialIssue",value:function(){this.fixVShowDirectiveIssue()}},{key:"fixVShowDirectiveIssue",value:function(){var e,t=this,n=null!==(e=this.style.display)&&void 0!==e?e:void 0;Object.defineProperty(this.style,"display",{enumerable:!0,configurable:!0,get:function(){return n},set:function(e){n=void 0===e?"flex":e,t.updateNativeNode()}})}}],[{key:"parseRem",value:function(e){var t={},n=Object.keys(e);return n.length?n.forEach((function(n){t[n]=function(e){var t=e;if("string"!=typeof t||!t.endsWith("rem"))return t;if(t=parseFloat(t),Number.isNaN(t))return e;var n=yn().ratioBaseWidth;return 100*t*(Pt.Dimensions.screen.width/n)}(e[n])})):t=e,t}}])}(Jn);var rr=["dialog","hi-pull-header","hi-pull-footer","hi-swiper","hi-swiper-slider","hi-waterfall","hi-waterfall-item","hi-ul-refresh-wrapper","hi-refresh-wrapper-item"],ir={install:function(t){!function(t){var n={valueType:void 0,delay:0,startValue:0,toValue:0,duration:0,direction:"center",timingFunction:"linear",repeatCount:0,inputRange:[],outputRange:[]};function r(e,t){return"color"===e&&["number","string"].indexOf(k(t))>=0?Pt.parseColor(t):t}function c(e){return"loop"===e?-1:e}function s(t){var o=t.mode,a=void 0===o?"timing":o,s=t.valueType,l=t.startValue,f=t.toValue,d=u(t,i),v=w(w({},n),d);void 0!==s&&(v.valueType=t.valueType),v.startValue=r(v.valueType,l),v.toValue=r(v.valueType,f),v.repeatCount=c(v.repeatCount),v.mode=a;var h=new e.Hippy.Animation(v),p=h.getId();return{animation:h,animationId:p}}function l(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=new e.Hippy.AnimationSet({children:t,repeatCount:n}),i=r.getId();return{animation:r,animationId:i}}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};return Object.keys(e).forEach((function(r){if(Array.isArray(e[r])){var i=e[r],o=i[i.length-1].repeatCount,a=l(i.map((function(e){var n=s(w(w({},e),{},{repeatCount:0})),r=n.animationId,i=n.animation;return Object.assign(t,{[r]:i}),{animationId:r,follow:!0}})),c(o)),u=a.animationId,f=a.animation;n[r]={animationId:u},Object.assign(t,{[u]:f})}else{var d=s(e[r]),v=d.animationId,h=d.animation;Object.assign(t,{[v]:h}),n[r]={animationId:v}}})),n}function d(e){var t=e.transform,n=u(e,o),r=Object.keys(n).map((function(t){return e[t].animationId}));if(Array.isArray(t)&&t.length>0){var i=[];t.forEach((function(e){return Object.keys(e).forEach((function(t){if(e[t]){var n=e[t].animationId;"number"==typeof n&&n%1==0&&i.push(n)}}))})),r=[].concat(h(r),i)}return r}t.component("Animation",{props:{tag:{type:String,default:"div"},playing:{type:Boolean,default:!1},actions:{type:Object,required:!0},props:Object},data:function(){return{style:{},animationIds:[],animationIdsMap:{},animationEventMap:{}}},watch:{playing:function(e,t){!t&&e?this.start():t&&!e&&this.pause()},actions:function(){var e=this;this.destroy(),this.create(),setTimeout((function(){var t=e.$attrs[st("actionsDidUpdate")];"function"==typeof t&&t()}))}},created:function(){this.animationEventMap={start:"animationstart",end:"animationend",repeat:"animationrepeat",cancel:"animationcancel"}},beforeMount:function(){this.create()},mounted:function(){var e=this;this.$props.playing&&setTimeout((function(){e.start()}),0)},beforeDestroy:function(){this.destroy()},deactivated:function(){this.pause()},activated:function(){this.resume()},methods:{create:function(){var e=this.$props.actions,t=e.transform,n=u(e,a);this.animationIdsMap={};var r=f(n,this.animationIdsMap);if(t){var i=f(t,this.animationIdsMap);r.transform=Object.keys(i).map((function(e){return{[e]:i[e]}}))}this.$alreadyStarted=!1,this.style=r},removeAnimationEvent:function(){var e=this;this.animationIds.forEach((function(t){var n=P.toRaw(e.animationIdsMap[t]);n&&Object.keys(e.animationEventMap).forEach((function(t){if("function"==typeof e.$attrs[st(t)]){var r=e.animationEventMap[t];r&&"function"==typeof e["".concat(r)]&&n.removeEventListener(r)}}))}))},addAnimationEvent:function(){var e=this;this.animationIds.forEach((function(t){var n=P.toRaw(e.animationIdsMap[t]);n&&Object.keys(e.animationEventMap).forEach((function(t){if("function"==typeof e.$attrs[st(t)]){var r=e.animationEventMap[t];r&&n.addEventListener(r,(function(){e.$emit(t)}))}}))}))},reset:function(){this.$alreadyStarted=!1},start:function(){var e=this;this.$alreadyStarted?this.resume():(this.animationIds=d(this.style),this.$alreadyStarted=!0,this.removeAnimationEvent(),this.addAnimationEvent(),this.animationIds.forEach((function(t){var n=P.toRaw(e.animationIdsMap[t]);null==n||n.start()})))},resume:function(){var e=this;d(this.style).forEach((function(t){var n=P.toRaw(e.animationIdsMap[t]);null==n||n.resume()}))},pause:function(){var e=this;this.$alreadyStarted&&d(this.style).forEach((function(t){var n=P.toRaw(e.animationIdsMap[t]);null==n||n.pause()}))},destroy:function(){var e=this;this.removeAnimationEvent(),this.$alreadyStarted=!1,d(this.style).forEach((function(t){var n=P.toRaw(e.animationIdsMap[t]);null==n||n.destroy()}))}},render:function(){return P.h(this.tag,w({useAnimation:!0,style:this.style,tag:this.$props.tag},this.$props.props),this.$slots.default?this.$slots.default():null)}})}(t),Bt("dialog",{component:{name:"Modal",defaultNativeProps:{transparent:!0,immersionStatusBar:!0,collapsable:!1,autoHideStatusBar:!1,autoHideNavigationBar:!1},defaultNativeStyle:{position:"absolute"}}}),function(e){var t=Pt.callUIFunction;[["Header","header"],["Footer","footer"]].forEach((function(n){var r=j(n,2),i=r[0],o=r[1];Bt("hi-pull-".concat(o),{component:{name:"Pull".concat(i,"View"),processEventData:function(e,t){var n=e.handler;switch(e.__evt){case"on".concat(i,"Released"):case"on".concat(i,"Pulling"):Object.assign(n,t)}return n}}}),e.component("pull-".concat(o),{methods:{["expandPull".concat(i)]:function(){t(this.$refs.instance,"expandPull".concat(i))},["collapsePull".concat(i)]:function(e){"Header"===i&&void 0!==e?t(this.$refs.instance,"collapsePull".concat(i,"WithOptions"),[e]):t(this.$refs.instance,"collapsePull".concat(i))},onLayout:function(e){this.$contentHeight=e.height},["on".concat(i,"Released")]:function(e){this.$emit("released",e)},["on".concat(i,"Pulling")]:function(e){e.contentOffset>this.$contentHeight?"pulling"!==this.$lastEvent&&(this.$lastEvent="pulling",this.$emit("pulling",e)):"idle"!==this.$lastEvent&&(this.$lastEvent="idle",this.$emit("idle",e))}},render:function(){var e=this.$attrs,t=e.onReleased,n=e.onPulling,r=e.onIdle,a={onLayout:this.onLayout};return"function"==typeof t&&(a["on".concat(i,"Released")]=this["on".concat(i,"Released")]),"function"!=typeof n&&"function"!=typeof r||(a["on".concat(i,"Pulling")]=this["on".concat(i,"Pulling")]),P.h("hi-pull-".concat(o),w(w({},a),{},{ref:"instance"}),this.$slots.default?this.$slots.default():null)}})}))}(t),function(e){Bt("hi-ul-refresh-wrapper",{component:{name:"RefreshWrapper"}}),Bt("hi-refresh-wrapper-item",{component:{name:"RefreshWrapperItemView"}}),e.component("UlRefreshWrapper",{props:{bounceTime:{type:Number,defaultValue:100}},methods:{startRefresh:function(){Pt.callUIFunction(this.$refs.refreshWrapper,"startRefresh",null)},refreshCompleted:function(){Pt.callUIFunction(this.$refs.refreshWrapper,"refreshComplected",null)}},render:function(){return P.h("hi-ul-refresh-wrapper",{ref:"refreshWrapper"},this.$slots.default?this.$slots.default():null)}}),e.component("UlRefresh",{render:function(){var e=P.h("div",null,this.$slots.default?this.$slots.default():null);return P.h("hi-refresh-wrapper-item",{style:{position:"absolute",left:0,right:0}},e)}})}(t),function(e){Bt("hi-waterfall",{component:{name:"WaterfallView",processEventData:function(e,t){var n=e.handler;switch(e.__evt){case"onExposureReport":n.exposureInfo=t.exposureInfo;break;case"onScroll":var r=t.startEdgePos,i=t.endEdgePos,o=t.firstVisibleRowIndex,a=t.lastVisibleRowIndex,u=t.visibleRowFrames;Object.assign(n,{startEdgePos:r,endEdgePos:i,firstVisibleRowIndex:o,lastVisibleRowIndex:a,visibleRowFrames:u})}return n}}}),Bt("hi-waterfall-item",{component:{name:"WaterfallItem"}}),e.component("Waterfall",{props:{numberOfColumns:{type:Number,default:2},contentInset:{type:Object,default:function(){return{top:0,left:0,bottom:0,right:0}}},columnSpacing:{type:Number,default:0},interItemSpacing:{type:Number,default:0},preloadItemNumber:{type:Number,default:0},containBannerView:{type:Boolean,default:!1},containPullHeader:{type:Boolean,default:!1},containPullFooter:{type:Boolean,default:!1}},methods:{call:function(e,t){Pt.callUIFunction(this.$refs.waterfall,e,t)},startRefresh:function(){this.call("startRefresh")},startRefreshWithType:function(e){this.call("startRefreshWithType",[e])},callExposureReport:function(){this.call("callExposureReport",[])},scrollToIndex:function(e){var t=e.index,n=void 0===t?0:t,r=e.animated,i=void 0===r||r;this.call("scrollToIndex",[n,n,i])},scrollToContentOffset:function(e){var t=e.xOffset,n=void 0===t?0:t,r=e.yOffset,i=void 0===r?0:r,o=e.animated,a=void 0===o||o;this.call("scrollToContentOffset",[n,i,a])},startLoadMore:function(){this.call("startLoadMore")}},render:function(){var e=lt.call(this,["headerReleased","headerPulling","endReached","exposureReport","initialListReady","scroll"]);return P.h("hi-waterfall",w(w({},e),{},{ref:"waterfall",numberOfColumns:this.numberOfColumns,contentInset:this.contentInset,columnSpacing:this.columnSpacing,interItemSpacing:this.interItemSpacing,preloadItemNumber:this.preloadItemNumber,containBannerView:this.containBannerView,containPullHeader:this.containPullHeader,containPullFooter:this.containPullFooter}),this.$slots.default?this.$slots.default():null)}}),e.component("WaterfallItem",{props:{type:{type:[String,Number],default:""},fullSpan:{type:Boolean,default:!1}},render:function(){return P.h("hi-waterfall-item",{type:this.type,fullSpan:this.fullSpan},this.$slots.default?this.$slots.default():null)}})}(t),function(e){Bt("hi-swiper",{component:{name:"ViewPager",processEventData:function(e,t){var n=e.handler;switch(e.__evt){case"onPageSelected":n.currentSlide=t.position;break;case"onPageScroll":n.nextSlide=t.position,n.offset=t.offset;break;case"onPageScrollStateChanged":n.state=t.pageScrollState}return n}}}),Bt("hi-swiper-slide",{component:{name:"ViewPagerItem",defaultNativeStyle:{position:"absolute",top:0,right:0,bottom:0,left:0}}}),e.component("Swiper",{props:{current:{type:Number,defaultValue:0},needAnimation:{type:Boolean,defaultValue:!0}},data:function(){return{$initialSlide:0}},watch:{current:function(e){this.$props.needAnimation?this.setSlide(e):this.setSlideWithoutAnimation(e)}},beforeMount:function(){this.$initialSlide=this.$props.current},methods:{setSlide:function(e){Pt.callUIFunction(this.$refs.swiper,"setPage",[e])},setSlideWithoutAnimation:function(e){Pt.callUIFunction(this.$refs.swiper,"setPageWithoutAnimation",[e])}},render:function(){var e=lt.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]);return P.h("hi-swiper",w(w({},e),{},{ref:"swiper",initialPage:this.$data.$initialSlide}),this.$slots.default?this.$slots.default():null)}}),e.component("SwiperSlide",{render:function(){return P.h("hi-swiper-slide",{},this.$slots.default?this.$slots.default():null)}})}(t)}};var or=function(e){function t(e,n){var r;return g(this,t),(r=p(this,t,["comment",n])).text=e,r.data=e,r.isNeedInsertToNative=!1,r}return T(t,e),O(t)}(nr),ar=function(e){function t(){return g(this,t),p(this,t,arguments)}return T(t,e),O(t,[{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"textarea"===this.tagName?this.setAttribute("value",e,{notToNative:!!t.notToNative}):this.setAttribute("text",e,{notToNative:!!t.notToNative})}},{key:"getValue",value:(r=d(l().mark((function e(){var t=this;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){return Pt.callUIFunction(t,"getValue",(function(t){return e(t.text)}))})));case 1:case"end":return e.stop()}}),e)}))),function(){return r.apply(this,arguments)})},{key:"setValue",value:function(e){Pt.callUIFunction(this,"setValue",[e])}},{key:"focus",value:function(){Pt.callUIFunction(this,"focusTextInput",[])}},{key:"blur",value:function(){Pt.callUIFunction(this,"blurTextInput",[])}},{key:"clear",value:function(){Pt.callUIFunction(this,"clear",[])}},{key:"isFocused",value:(n=d(l().mark((function e(){var t=this;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){return Pt.callUIFunction(t,"isFocused",(function(t){return e(t.value)}))})));case 1:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})}]);var n,r}(nr),ur=function(e){function t(){return g(this,t),p(this,t,arguments)}return T(t,e),O(t,[{key:"scrollToIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Pt.callUIFunction(this,"scrollToIndex",[e,t,n])}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];"number"==typeof e&&"number"==typeof t&&Pt.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}])}(nr),cr=function(e){function t(){return g(this,t),p(this,t,[Bn.DocumentNode])}return T(t,e),O(t,null,[{key:"createComment",value:function(e){return new or(e)}},{key:"createElement",value:function(e){switch(e){case"input":case"textarea":return new ar(e);case"ul":return new ur(e);default:return new nr(e)}}},{key:"createTextNode",value:function(e){return new Xn(e)}}])}(Jn);var sr={insert:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;t.childNodes.indexOf(e)>=0?t.moveChild(e,n):t.insertBefore(e,n)},remove:function(e){var t=e.parentNode;t&&(t.removeChild(e),Pn(e))},setText:function(e,t){e.setText(t)},setElementText:function(e,t){e.setText(t)},createElement:function(e){return cr.createElement(e)},createComment:function(e){return cr.createComment(e)},createText:function(e){return cr.createTextNode(e)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},setScopeId:function(e,t){e.setStyleScope(t)}};var lr=/(?:Once|Passive|Capture)$/;function fr(e){var t,n=e,r={};if(lr.test(n))for(var i=n.match(lr);i;)n=n.slice(0,n.length-i[0].length),r[i[0].toLowerCase()]=!0,i=n.match(lr);return n=":"===n[2]?n.slice(3):n.slice(2),[(t=n,"".concat(t.charAt(0).toLowerCase()).concat(t.slice(1))),r]}function dr(e,t){var n=function e(n){P.callWithAsyncErrorHandling(e.value,t,P.ErrorCodes.NATIVE_EVENT_HANDLER,[n])};return n.value=e,n}function vr(e,t,n){var r=e,i={};if(!function(e,t,n){var r=!e,i=!t&&!n,o=JSON.stringify(t)===JSON.stringify(n);return r||i||o}(r,t,n))if(t&&!n)r.removeStyle();else{if(C.isString(n))throw new Error("Style is Not Object");n&&(Object.keys(n).forEach((function(e){var t=n[e];(function(e){return null==e})(t)||(i[P.camelize(e)]=t)})),r.removeStyle(!0),r.setStyles(i))}}function hr(e,t,n,r,i,o){switch(t){case"class":!function(e,t){var n=t;null===n&&(n=""),e.setAttribute("class",n)}(e,r);break;case"style":vr(e,n,r);break;default:C.isOn(t)?function(e,t,n,r){var i,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=e,u=null!==(i=a._vei)&&void 0!==i?i:a._vei={},c=u[t];if(r&&c)c.value=r;else{var s=fr(t),l=j(s,2),f=l[0],d=l[1];if(r){u[t]=dr(r,o);var v=u[t];a.addEventListener(f,v,d)}else a.removeEventListener(f,c,d),u[t]=void 0}}(e,t,n,r,o):function(e,t,n,r){null===r?e.removeAttribute(t):n!==r&&e.setAttribute(t,r)}(e,t,n,r)}}var pr=!1,yr=function(){return O((function e(t,n,r){var i=this;g(this,e),this.webSocketId=-1,this.protocol="",this.listeners={},this.url=t,this.readyState=0,this.webSocketCallbacks={},this.onWebSocketEvent=this.onWebSocketEvent.bind(this);var o=w({},r);if(pr||(pr=!0,Ye.$on("hippyWebsocketEvents",this.onWebSocketEvent)),!t)throw new TypeError("Invalid WebSocket url");Array.isArray(n)&&n.length>0?(this.protocol=n.join(","),o["Sec-WebSocket-Protocol"]=this.protocol):"string"==typeof n&&(this.protocol=n,o["Sec-WebSocket-Protocol"]=this.protocol);var a={headers:o,url:t};Pt.callNativeWithPromise("websocket","connect",a).then((function(e){e&&0===e.code&&(i.webSocketId=e.id)}))}),[{key:"close",value:function(e,t){1===this.readyState&&(this.readyState=2,Pt.callNative("websocket","close",{id:this.webSocketId,code:e,reason:t}))}},{key:"send",value:function(e){if(1===this.readyState){if("string"!=typeof e)throw new TypeError("Unsupported websocket data type: ".concat(k(e)));Pt.callNative("websocket","send",{id:this.webSocketId,data:e})}}},{key:"onopen",set:function(e){this.addEventListener("open",e)}},{key:"onclose",set:function(e){this.addEventListener("close",e)}},{key:"onerror",set:function(e){this.addEventListener("error",e)}},{key:"onmessage",set:function(e){this.addEventListener("message",e)}},{key:"onWebSocketEvent",value:function(e){if("object"===k(e)&&e.id===this.webSocketId){var t=e.type;if("string"==typeof t){"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,Ye.$off("hippyWebsocketEvents",this.onWebSocketEvent));var n=this.webSocketCallbacks[t];(null==n?void 0:n.length)&&n.forEach((function(t){C.isFunction(t)&&t(e.data)}))}}}},{key:"addEventListener",value:function(e,t){if(function(e){return-1!==["open","close","message","error"].indexOf(e)}(e)){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t);var n=st(e);this.webSocketCallbacks[n]=this.listeners[e]}}}])}();function mr(e,t){var n=function(e){var t;if("comment"===e.name)return new or(e.props.text,e);if("Text"===e.name&&!e.tagName){var n=new Xn(e.props.text,e);return n.nodeType=Bn.TextNode,n.data=e.props.text,n}switch(e.tagName){case"input":case"textarea":return new ar(e.tagName,e);case"ul":return new ur(e.tagName,e);default:return new nr(null!==(t=e.tagName)&&void 0!==t?t:"",e)}}(e),r=t.filter((function(t){return t.pId===e.id})).sort((function(e,t){return e.index-t.index})),i=r.filter((function(e){return"comment"===e.name}));if(i.length){r=r.filter((function(e){return"comment"!==e.name}));for(var o=i.length-1;o>=0;o--)r.splice(i[o].index,0,i[o])}return r.forEach((function(e){n.appendChild(mr(e,t),!0)})),n}e.WebSocket=yr;var gr=['%c[Hippy-Vue-Next "unspecified"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"];function br(e,t){if(Pt.isIOS()){var n=function(e){var t,n,r,i=e.iPhone;if((null==i?void 0:i.statusBar)&&(r=i.statusBar),null==r?void 0:r.disabled)return null;var o=new nr("div"),a=Pt.Dimensions.screen.statusBarHeight;Pt.screenIsVertical?o.setStyle("height",a):o.setStyle("height",0);var u=4282431619;if(Number.isInteger(u)&&(u=r.backgroundColor),o.setStyle("backgroundColor",u),"string"==typeof r.backgroundImage){var c=new nr("img");c.setStyle("width",Pt.Dimensions.screen.width),c.setStyle("height",a),c.setAttribute("src",null===(n=null===(t=e.iPhone)||void 0===t?void 0:t.statusBar)||void 0===n?void 0:n.backgroundImage),o.appendChild(c)}return o.addEventListener("layout",(function(){Pt.screenIsVertical?o.setStyle("height",a):o.setStyle("height",0)})),o}(e);if(n){var r=t.$el.parentNode;r.childNodes.length?r.insertBefore(n,r.childNodes[0]):r.appendChild(n)}}}var Or=function(e,t){var n,r,i,o,a=e,u=Boolean(null===(n=null==t?void 0:t.ssrNodeList)||void 0===n?void 0:n.length);a.use(on),a.use(ir),"function"==typeof(null===(r=null==t?void 0:t.styleOptions)||void 0===r?void 0:r.beforeLoadStyle)&&(i=t.styleOptions.beforeLoadStyle,et=i),t.silent&&(o=t.silent,o),function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Ke=e}(t.trimWhitespace);var c=a.mount;return a.mount=function(e){var n;mn("rootContainer",e);var r,i=(null===(n=null==t?void 0:t.ssrNodeList)||void 0===n?void 0:n.length)?mr(j(r=t.ssrNodeList,1)[0],r):function(e){var t=cr.createElement("div");return t.id=e,t.style={display:"flex",flex:1},t}(e),o=c(i,u,!1);return mn("instance",o),u||br(t,o),o},a.$start=function(){var e=d(l().mark((function e(n){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){Pt.hippyNativeRegister.regist(t.appName,(function(r){var i,o,u=r.__instanceId__;Ge.apply(void 0,gr.concat(["Start",t.appName,"with rootViewId",u,r]));var c,s=yn();(null==s?void 0:s.app)&&s.app.unmount(),c={rootViewId:u,superProps:r,app:a,ratioBaseWidth:null!==(o=null===(i=null==t?void 0:t.styleOptions)||void 0===i?void 0:i.ratioBaseWidth)&&void 0!==o?o:750},vn=c;var l={superProps:r,rootViewId:u};C.isFunction(n)?n(l):e(l)}))})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a};t.BackAndroid=Dt,t.ContentSizeEvent=Sn,t.EventBus=Ye,t.ExposureEvent=Nn,t.FocusEvent=En,t.HIPPY_DEBUG_ADDRESS=We,t.HIPPY_GLOBAL_DISPOSE_STYLE_NAME="__HIPPY_VUE_DISPOSE_STYLES__",t.HIPPY_GLOBAL_STYLE_NAME="__HIPPY_VUE_STYLES__",t.HIPPY_STATIC_PROTOCOL="hpfile://",t.HIPPY_UNIQUE_ID_KEY="hippyUniqueId",t.HIPPY_VUE_VERSION="unspecified",t.HippyEvent=gn,t.HippyKeyboardEvent=wn,t.HippyLayoutEvent=On,t.HippyLoadResourceEvent=_n,t.HippyTouchEvent=bn,t.IS_PROD=!0,t.ListViewEvent=Tn,t.NATIVE_COMPONENT_MAP=ze,t.Native=Pt,t.ViewPagerEvent=kn,t._setBeforeRenderToNative=function(e,t){C.isFunction(e)&&(1===t?rt=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))},t.createApp=function(e,t){var n=P.createRenderer(w({patchProp:hr},sr)).createApp(e);return Or(n,t)},t.createHippyApp=Or,t.createSSRApp=function(e,t){var n=P.createHydrationRenderer(w({patchProp:hr},sr)).createApp(e);return Or(n,t)},t.eventIsKeyboardEvent=xn,t.getCssMap=Be,t.getTagComponent=Ut,t.isNativeTag=function(e){return rr.includes(e)},t.parseCSS=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{source:0},n=1,r=1;function i(e){var t=e.match(/\n/g);t&&(n+=t.length);var i=e.lastIndexOf("\n");r=~i?e.length-i:r+e.length}function o(t){var n=t.exec(e);if(!n)return null;var r=n[0];return i(r),e=e.slice(r.length),n}function a(){o(/^\s*/)}function u(){return function(i){return i.position={start:{line:n,column:r},end:{line:n,column:r},source:t.source,content:e},a(),i}}var c=[];function s(i){var o=w(w({},new Error("".concat(t.source,":").concat(n,":").concat(r,": ").concat(i))),{},{reason:i,filename:t.source,line:n,column:r,source:e});if(!t.silent)throw o;c.push(o)}function l(){var t=u();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return null;for(var n=2;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)n+=1;if(n+=2,""===e.charAt(n-1))return s("End of comment missing");var o=e.slice(2,n-2);return r+=2,i(o),e=e.slice(n),r+=2,t({type:"comment",comment:o})}function f(){for(var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=t||[];e=l();)!1!==e&&n.push(e);return n}function d(){var t,n=[];for(a(),f(n);e.length&&"}"!==e.charAt(0)&&(t=M()||b());)t&&(n.push(t),f(n));return n}function v(){var e=d();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:c}}}function h(){return o(/^{\s*/)}function p(){return o(/^}/)}function y(){var e=o(/^([^{]+)/);return e?e[0].trim().replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"‌")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")})):null}function m(){var e=u(),t=o(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+])?)\s*/);if(!t)return null;if(t=t[0].trim(),!o(/^:\s*/))return s("property missing ':'");var n=t.replace(X,""),r=C.camelize(n),i=z[r]||r,a=o(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]{0,500}?\)|[^};])+)/),c=a?a[0].trim().replace(X,""):"";switch(i){case"backgroundImage":var l=j(re(i,c),2);i=l[0],c=l[1];break;case"transform":var f=/((\w+)\s*\()/,d=/(?:\(['"]?)(.*?)(?:['"]?\))/,v=c;c=[],v.split(" ").forEach((function(e){if(f.test(e)){var t,n,r=f.exec(e),i=d.exec(e);if(r)t=j(r,3)[2];if(i)n=j(i,2)[1];0===n.indexOf(".")&&(n="0".concat(n)),parseFloat(n).toString()===n&&(n=parseFloat(n));var o={};o[t]=n,c.push(o)}else s("missing '('")}));break;case"fontWeight":break;case"shadowOffset":var h=c.split(" ").filter((function(e){return e})).map((function(e){return ee(e)})),p=j(h,1)[0],y=j(h,2)[1];y||(y=p),c={x:p,y:y};break;case"collapsable":c=Boolean(c);break;default:c=Q(c);["top","left","right","bottom","height","width","size","padding","margin","ratio","radius","offset","spread"].find((function(e){return i.toLowerCase().indexOf(e)>-1}))&&(c=ee(c))}var m=e({type:"declaration",value:c,property:i});return o(/^[;\s]*/),m}function g(){var e,t=[];if(!h())return s("missing '{'");for(f(t);e=m();)!1!==e&&(Array.isArray(e)?t=t.concat(e):t.push(e),f(t));return p()?t:s("missing '}'")}function b(){var e=u(),t=y();return t?(f(),e({type:"rule",selectors:t,declarations:g()})):s("selector missing")}function O(){for(var e,t=[],n=u();e=o(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),o(/^,\s*/);return t.length?n({type:"keyframe",values:t,declarations:g()}):null}function _(){var e=u(),t=o(/^@([-\w]+)?keyframes\s*/);if(!t)return null;var n=t[1];if(!(t=o(/^([-\w]+)\s*/)))return s("@keyframes missing name");var r,i=t[1];if(!h())return s("@keyframes missing '{'");for(var a=f();r=O();)a.push(r),a=a.concat(f());return p()?e({type:"keyframes",name:i,vendor:n,keyframes:a}):s("@keyframes missing '}'")}function S(){var e=u(),t=o(/^@supports *([^{]+)/);if(!t)return null;var n=t[1].trim();if(!h())return s("@supports missing '{'");var r=f().concat(d());return p()?e({type:"supports",supports:n,rules:r}):s("@supports missing '}'")}function E(){var e=u();if(!o(/^@host\s*/))return null;if(!h())return s("@host missing '{'");var t=f().concat(d());return p()?e({type:"host",rules:t}):s("@host missing '}'")}function k(){var e=u(),t=o(/^@media *([^{]+)/);if(!t)return null;var n=t[1].trim();if(!h())return s("@media missing '{'");var r=f().concat(d());return p()?e({type:"media",media:n,rules:r}):s("@media missing '}'")}function N(){var e=u(),t=o(/^@custom-media\s+(--[^\s]+)\s*([^{;]{1,200}?);/);return t?e({type:"custom-media",name:t[1].trim(),media:t[2].trim()}):null}function T(){var e=u();if(!o(/^@page */))return null;var t=y()||[];if(!h())return s("@page missing '{'");for(var n,r=f();n=m();)r.push(n),r=r.concat(f());return p()?e({type:"page",selectors:t,declarations:r}):s("@page missing '}'")}function x(){var e=u(),t=o(/^@([-\w]+)?document *([^{]+)/);if(!t)return null;var n=t[1].trim(),r=t[2].trim();if(!h())return s("@document missing '{'");var i=f().concat(d());return p()?e({type:"document",document:r,vendor:n,rules:i}):s("@document missing '}'")}function A(){var e=u();if(!o(/^@font-face\s*/))return null;if(!h())return s("@font-face missing '{'");for(var t,n=f();t=m();)n.push(t),n=n.concat(f());return p()?e({type:"font-face",declarations:n}):s("@font-face missing '}'")}function I(e){var t=new RegExp("^@".concat(e,"\\s*([^;]+);"));return function(){var n=u(),r=o(t);if(!r)return null;var i={type:e};return i[e]=r[1].trim(),n(i)}}var P=I("import"),R=I("charset"),L=I("namespace");function M(){return"@"!==e[0]?null:_()||k()||N()||S()||P()||R()||L()||x()||T()||E()||A()}return ie(v(),null)},t.registerElement=Bt,t.setScreenSize=function(t){var n;if(t.width&&t.height){var r=(null===(n=null==e?void 0:e.Hippy)||void 0===n?void 0:n.device).screen;r&&(r.width=t.width,r.height=t.height)}},t.translateColor=W}).call(this,n(2),n(6))},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&&v())}function v(){if(!l){var e=u(d);l=!0;for(var t=s.length;t;){for(c=s,s=[];++f1)for(var n=1;n=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 a(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)||s(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 u(e){return(u="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)}function c(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(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 s(e,t){if(e){if("string"==typeof e)return l(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)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function c(){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=s(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function s(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */l=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,a=Object.create(o.prototype),u=new I(r||[]);return i(a,"_invoke",{value:T(e,n,u)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var p="suspendedStart",v="executing",h="completed",y={};function m(){}function g(){}function b(){}var O={};s(O,a,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(C([])));w&&w!==n&&r.call(w,a)&&(O=w);var S=b.prototype=m.prototype=Object.create(O);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function N(e,t){function n(i,o,a,u){var c=d(e[i],e,o);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==k(l)&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,a,u)}),(function(e){n("throw",e,a,u)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,u)}))}u(c.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function T(t,n,r){var i=p;return function(o,a){if(i===v)throw Error("Generator is already running");if(i===h){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var u=r.delegate;if(u){var c=x(u,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===p)throw i=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var s=d(t,n,r);if("normal"===s.type){if(i=r.done?h:"suspendedYield",s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(i=h,r.method="throw",r.arg=s.arg)}}}function x(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=d(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function C(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function f(e,t,n,r,i,o,a){try{var u=e[o](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,i)}function d(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){f(o,r,i,a,u,"next",e)}function u(e){f(o,r,i,a,u,"throw",e)}a(void 0)}))}}function p(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=A(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 v(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||A(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 h(e,t,n){return t=m(t),y(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}function y(e,t){if(t&&("object"===k(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)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){for(var n=0;n]+)>/g,(function(e,t){var n=o[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof i){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=k(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,a)),i.apply(this,e)}))}return e[Symbol.replace].call(this,n,i)},N.apply(this,arguments)}function T(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&&x(e,t)}function x(e,t){return(x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function j(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)||A(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 A(e,t){if(e){if("string"==typeof e)return I(e,t);var n=Object.prototype.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)?I(e,t):void 0}}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n255?255:t},B=function(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},U=function(e,t,n){var r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e},H=function(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=U(i,r,e+1/3),a=U(i,r,e),u=U(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*u)<<8},$=function(e){return(parseFloat(e)%360+360)%360/360},Y=function(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100};function W(e){var t=function(e){var t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=D.hex6.exec(e),Array.isArray(t)?parseInt("".concat(t[1],"ff"),16)>>>0:Object.hasOwnProperty.call(R,e)?R[e]:(t=D.rgb.exec(e),Array.isArray(t)?(V(t[1])<<24|V(t[2])<<16|V(t[3])<<8|255)>>>0:(t=D.rgba.exec(e))?(V(t[1])<<24|V(t[2])<<16|V(t[3])<<8|B(t[4]))>>>0:(t=D.hex3.exec(e))?parseInt("".concat(t[1]+t[1]+t[2]+t[2]+t[3]+t[3],"ff"),16)>>>0:(t=D.hex8.exec(e))?parseInt(t[1],16)>>>0:(t=D.hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=D.hsl.exec(e))?(255|H($(t[1]),Y(t[2]),Y(t[3])))>>>0:(t=D.hsla.exec(e))?(H($(t[1]),Y(t[2]),Y(t[3]))|B(t[4]))>>>0:null))}(e);if(null===t)throw new Error("Bad color value: ".concat(e));return t=(t<<24|t>>>8)>>>0}var z={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},K={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},G="turn",q="rad",J="deg",X=/\/\*[\s\S]{0,1000}?\*\//gm;var Z=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function Q(e){if("number"==typeof e)return e;if(Z.test(e))try{return parseFloat(e)}catch(e){}return e}function ee(e){if(Number.isInteger(e))return e;if("string"==typeof e&&e.endsWith("px")){var t=parseFloat(e.slice(0,e.indexOf("px")));Number.isNaN(t)||(e=t)}return e}function te(e){var t=(e||"").replace(/\s*/g,"").toLowerCase(),n=N(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(!Array.isArray(n))return"";var r="180",i=j(n,3),o=i[0],a=i[1],u=i[2];return a&&u?r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J,n=parseFloat(e),r=e||"",i=e.split("."),o=j(i,2),a=o[1];switch(a&&a.length>2&&(r=n.toFixed(2)),t){case G:r="".concat((360*n).toFixed(2));break;case q:r="".concat((180/Math.PI*n).toFixed(2))}return r}(a,u):o&&void 0!==K[o]&&(r=K[o]),r}function ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.replace(/\s+/g," ").trim(),n=t.split(/\s+(?![^(]*?\))/),r=j(n,2),i=r[0],o=r[1],a=/^([+-]?\d+\.?\d*)%$/g;return!i||a.exec(i)||o?i&&a.exec(o)?{ratio:parseFloat(o.split("%")[0])/100,color:W(i)}:null:{color:W(i)}}function re(e,t){var n=t,r=e;if(0===t.indexOf("linear-gradient")){r="linearGradient";var i=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),o=[];n={},i.forEach((function(e,t){if(0===t){var r=te(e);if(r)n.angle=r;else{n.angle="180";var i=ne(e);i&&o.push(i)}}else{var a=ne(e);a&&o.push(a)}})),n.colorStopList=o}else{var a=/(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t);if(a&&a.length>1){var u=j(a,2);n=u[1]}}return[r,n]}function ie(e,t){var n=e&&"string"==typeof e.type,r=n?e:t;return Object.keys(e).forEach((function(t){var n=e[t];Array.isArray(n)?n.forEach((function(e){ie(e,r)})):n&&"object"===k(n)&&ie(n,r)})),n&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t}),e}var oe=function(){return O((function e(){g(this,e),this.changeMap=new Map}),[{key:"addAttribute",value:function(e,t){var n=this.properties(e);n.attributes||(n.attributes=new Set),n.attributes.add(t)}},{key:"addPseudoClass",value:function(e,t){var n=this.properties(e);n.pseudoClasses||(n.pseudoClasses=new Set),n.pseudoClasses.add(t)}},{key:"properties",value:function(e){var t=this.changeMap.get(e);return t||this.changeMap.set(e,t={}),t}}])}(),ae=function(){function e(t){var n=this;g(this,e),this.id={},this.class={},this.type={},this.universal=[],this.position=0,this.ruleSets=t,t.forEach((function(e){return e.lookupSort(n)}))}return O(e,[{key:"append",value:function(e){var t=this;this.ruleSets=this.ruleSets.concat(e),e.forEach((function(e){return e.lookupSort(t)}))}},{key:"delete",value:function(e){var t=this,n=[];this.ruleSets=this.ruleSets.filter((function(t){return t.hash!==e||(n.push(t),!1)})),n.forEach((function(e){return e.removeSort(t)}))}},{key:"query",value:function(e,t){var n=this,r=e.tagName,i=e.id,o=e.classList,a=e.props,u=i,c=o;if(null==a?void 0:a.attributes){var s=a.attributes;c=new Set(((null==s?void 0:s.class)||"").split(" ").filter((function(e){return e.trim()}))),u=s.id}var l=[this.universal,this.id[u],this.type[r]];(null==c?void 0:c.size)&&c.forEach((function(e){return l.push(n.class[e])}));var f=l.filter((function(e){return!!e})).reduce((function(e,t){return e.concat(t)}),[]),d=new oe;return d.selectors=f.filter((function(n){return n.sel.accumulateChanges(e,d,t)})).sort((function(e,t){return e.sel.specificity-t.sel.specificity||e.pos-t.pos})).map((function(e){return e.sel})),d}},{key:"removeById",value:function(t,n){e.removeFromMap(this.id,t,n)}},{key:"sortById",value:function(e,t){this.addToMap(this.id,e,t)}},{key:"removeByClass",value:function(t,n){e.removeFromMap(this.class,t,n)}},{key:"sortByClass",value:function(e,t){this.addToMap(this.class,e,t)}},{key:"removeByType",value:function(t,n){e.removeFromMap(this.type,t,n)}},{key:"sortByType",value:function(e,t){this.addToMap(this.type,e,t)}},{key:"removeAsUniversal",value:function(e){var t=this.universal.findIndex((function(t){var n,r;return(null===(n=t.sel.ruleSet)||void 0===n?void 0:n.hash)===(null===(r=e.ruleSet)||void 0===r?void 0:r.hash)}));-1!==t&&this.universal.splice(t)}},{key:"sortAsUniversal",value:function(e){this.universal.push(this.makeDocSelector(e))}},{key:"addToMap",value:function(e,t,n){this.position+=1;var r=e[t];r?r.push(this.makeDocSelector(n)):e[t]=[this.makeDocSelector(n)]}},{key:"makeDocSelector",value:function(e){return this.position+=1,{sel:e,pos:this.position}}}],[{key:"removeFromMap",value:function(e,t,n){var r=e[t],i=r.findIndex((function(e){var t;return e.sel.ruleSet.hash===(null===(t=n.ruleSet)||void 0===t?void 0:t.hash)}));-1!==i&&r.splice(i,1)}}])}();function ue(e){return null==e}function ce(e){return e?" ".concat(e):""}function se(e,t){return t?(null==e?void 0:e.pId)&&t[e.pId]?t[e.pId]:null:null==e?void 0:e.parentNode}var le=function(){return O((function e(){g(this,e),this.specificity=0}),[{key:"lookupSort",value:function(e,t){e.sortAsUniversal(null!=t?t:this)}},{key:"removeSort",value:function(e,t){e.removeAsUniversal(null!=t?t:this)}}])}(),fe=function(e){function t(){var e;return g(this,t),(e=h(this,t,arguments)).rarity=0,e}return T(t,e),O(t,[{key:"accumulateChanges",value:function(e,t){return this.dynamic?!!this.mayMatch(e)&&(this.trackChanges(e,t),!0):this.match(e)}},{key:"match",value:function(e){return!!e}},{key:"mayMatch",value:function(e){return this.match(e)}},{key:"trackChanges",value:function(e,t){}}])}(le),de=function(e){function t(e){var n;return g(this,t),(n=h(this,t)).specificity=e.reduce((function(e,t){return t.specificity+e}),0),n.head=e.reduce((function(e,t){return!e||e instanceof fe&&t.rarity>e.rarity?t:e}),null),n.dynamic=e.some((function(e){return e.dynamic})),n.selectors=e,n}return T(t,e),O(t,[{key:"toString",value:function(){return"".concat(this.selectors.join("")).concat(ce(this.combinator))}},{key:"match",value:function(e){return!!e&&this.selectors.every((function(t){return t.match(e)}))}},{key:"mayMatch",value:function(e){return!!e&&this.selectors.every((function(t){return t.mayMatch(e)}))}},{key:"trackChanges",value:function(e,t){this.selectors.forEach((function(n){return n.trackChanges(e,t)}))}},{key:"lookupSort",value:function(e,t){this.head&&this.head instanceof fe&&this.head.lookupSort(e,null!=t?t:this)}},{key:"removeSort",value:function(e,t){this.head&&this.head instanceof fe&&this.head.removeSort(e,null!=t?t:this)}}])}(fe),pe=function(e){function t(){var e;return g(this,t),(e=h(this,t)).specificity=0,e.rarity=0,e.dynamic=!1,e}return T(t,e),O(t,[{key:"toString",value:function(){return"*".concat(ce(this.combinator))}},{key:"match",value:function(){return!0}}])}(fe),ve=function(e){function t(e){var n;return g(this,t),(n=h(this,t)).specificity=65536,n.rarity=3,n.dynamic=!1,n.id=e,n}return T(t,e),O(t,[{key:"toString",value:function(){return"#".concat(this.id).concat(ce(this.combinator))}},{key:"match",value:function(e){var t,n;return!!e&&((null===(n=null===(t=e.props)||void 0===t?void 0:t.attributes)||void 0===n?void 0:n.id)===this.id||e.id===this.id)}},{key:"lookupSort",value:function(e,t){e.sortById(this.id,null!=t?t:this)}},{key:"removeSort",value:function(e,t){e.removeById(this.id,null!=t?t:this)}}])}(fe),he=function(e){function t(e){var n;return g(this,t),(n=h(this,t)).specificity=1,n.rarity=1,n.dynamic=!1,n.cssType=e,n}return T(t,e),O(t,[{key:"toString",value:function(){return"".concat(this.cssType).concat(ce(this.combinator))}},{key:"match",value:function(e){return!!e&&e.tagName===this.cssType}},{key:"lookupSort",value:function(e,t){e.sortByType(this.cssType,null!=t?t:this)}},{key:"removeSort",value:function(e,t){e.removeByType(this.cssType,null!=t?t:this)}}])}(fe),ye=function(e){function t(e){var n;return g(this,t),(n=h(this,t)).specificity=256,n.rarity=2,n.dynamic=!1,n.className=e,n}return T(t,e),O(t,[{key:"toString",value:function(){return".".concat(this.className).concat(ce(this.combinator))}},{key:"match",value:function(e){var t,n,r;if(!e)return!1;var i=null!==(t=e.classList)&&void 0!==t?t:new Set(((null===(r=null===(n=e.props)||void 0===n?void 0:n.attributes)||void 0===r?void 0:r.class)||"").split(" ").filter((function(e){return e.trim()})));return!(!i.size||!i.has(this.className))}},{key:"lookupSort",value:function(e,t){e.sortByClass(this.className,null!=t?t:this)}},{key:"removeSort",value:function(e,t){e.removeByClass(this.className,null!=t?t:this)}}])}(fe),me=function(e){function t(e){var n;return g(this,t),(n=h(this,t)).specificity=256,n.rarity=0,n.dynamic=!0,n.cssPseudoClass=e,n}return T(t,e),O(t,[{key:"toString",value:function(){return":".concat(this.cssPseudoClass).concat(ce(this.combinator))}},{key:"match",value:function(){return!1}},{key:"mayMatch",value:function(){return!0}},{key:"trackChanges",value:function(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}])}(fe),ge=function(e,t){var n,r,i,o=(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n[t])||(null===(r=null==e?void 0:e.attributes)||void 0===r?void 0:r[t]);return void 0!==o?o:Array.isArray(null==e?void 0:e.styleScopeId)&&(null===(i=null==e?void 0:e.styleScopeId)||void 0===i?void 0:i.includes(t))?t:void 0},be=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return g(this,t),(n=h(this,t)).attribute="",n.test="",n.value="",n.specificity=256,n.rarity=0,n.dynamic=!0,n.attribute=e,n.test=r,n.value=i,r?i?(n.match=function(t){if(!t||!(null==t?void 0:t.attributes)&&!(null==t?void 0:t.props[e]))return!1;var n="".concat(ge(t,e));if("="===r)return n===i;if("^="===r)return n.startsWith(i);if("$="===r)return n.endsWith(i);if("*="===r)return-1!==n.indexOf(i);if("~="===r){var o=n.split(" ");return-1!==(null==o?void 0:o.indexOf(i))}return"|="===r&&(n===i||n.startsWith("".concat(i,"-")))},n):(n.match=function(){return!1},y(n)):(n.match=function(t){return!(!t||!(null==t?void 0:t.attributes)&&!(null==t?void 0:t.props))&&!ue(ge(t,e))},y(n))}return T(t,e),O(t,[{key:"toString",value:function(){return"[".concat(this.attribute).concat(ce(this.test)).concat(this.test&&this.value||"","]").concat(ce(this.combinator))}},{key:"match",value:function(e){return!!e&&!e}},{key:"mayMatch",value:function(){return!0}},{key:"trackChanges",value:function(e,t){t.addAttribute(e,this.attribute)}}])}(fe),Oe=function(e){function t(e){var n;return g(this,t),(n=h(this,t)).specificity=0,n.rarity=4,n.dynamic=!1,n.combinator=void 0,n.error=e,n}return T(t,e),O(t,[{key:"toString",value:function(){return"")}},{key:"match",value:function(){return!1}},{key:"lookupSort",value:function(){return null}},{key:"removeSort",value:function(){return null}}])}(fe),_e=function(){return O((function e(t){g(this,e),this.selectors=t,this.dynamic=t.some((function(e){return e.dynamic}))}),[{key:"match",value:function(e){return!!e&&(this.selectors.every((function(t,n){return 0!==n&&(e=e.parentNode),!!e&&t.match(e)}))?e:null)}},{key:"mayMatch",value:function(e){return!!e&&(this.selectors.every((function(t,n){return 0!==n&&(e=e.parentNode),!!e&&t.mayMatch(e)}))?e:null)}},{key:"trackChanges",value:function(e,t){this.selectors.forEach((function(n,r){0!==r&&(e=e.parentNode),e&&n.trackChanges(e,t)}))}}])}(),we=function(){return O((function e(t){g(this,e),this.selectors=t,this.dynamic=t.some((function(e){return e.dynamic}))}),[{key:"match",value:function(e){return!!e&&(this.selectors.every((function(t,n){return 0!==n&&(e=e.nextSibling),!!e&&t.match(e)}))?e:null)}},{key:"mayMatch",value:function(e){return!!e&&(this.selectors.every((function(t,n){return 0!==n&&(e=e.nextSibling),!!e&&t.mayMatch(e)}))?e:null)}},{key:"trackChanges",value:function(e,t){this.selectors.forEach((function(n,r){0!==r&&(e=e.nextSibling),e&&n.trackChanges(e,t)}))}}])}(),Se=function(e){function t(e){var n;g(this,t),n=h(this,t);var r=[void 0," ",">","+","~"],i=[],o=[],a=[],u=v(e),c=u.length-1;n.specificity=0,n.dynamic=!1;for(var s=c;s>=0;s--){var l=u[s];if(-1===r.indexOf(l.combinator))throw console.error('Unsupported combinator "'.concat(l.combinator,'".')),new Error('Unsupported combinator "'.concat(l.combinator,'".'));void 0!==l.combinator&&" "!==l.combinator||a.push(o=[i=[]]),">"===l.combinator&&o.push(i=[]),n.specificity+=l.specificity,l.dynamic&&(n.dynamic=!0),i.push(l)}return n.groups=a.map((function(e){return new _e(e.map((function(e){return new we(e)})))})),n.last=u[c],n}return T(t,e),O(t,[{key:"toString",value:function(){return this.selectors.join("")}},{key:"match",value:function(e,t){return!!e&&this.groups.every((function(n,r){if(0===r)return!!(e=n.match(e));for(var i=se(e,t);i;){if(e=n.match(i))return!0;i=se(i,t)}return!1}))}},{key:"lookupSort",value:function(e){this.last.lookupSort(e,this)}},{key:"removeSort",value:function(e){this.last.removeSort(e,this)}},{key:"accumulateChanges",value:function(e,t,n){if(!this.dynamic)return this.match(e,n);var r=[],i=this.groups.every((function(t,i){if(0===i){var o=t.mayMatch(e);return r.push({left:e,right:e}),!!(e=o)}for(var a=se(e,n);a;){var u=t.mayMatch(a);if(u)return r.push({left:a,right:null}),e=u,!0;a=se(a,n)}return!1}));if(!i)return!1;if(!t)return i;for(var o=0;o)?\\s*"},Te={};function xe(e,t,n){var r="";ke&&(r="gy"),Te[e]||(Te[e]=new RegExp(Ne[e],r));var i,o=Te[e];if(ke)o.lastIndex=n,i=o.exec(t);else{if(t=t.slice(n,t.length),!(i=o.exec(t)))return{result:null,regexp:o};o.lastIndex=n+i[0].length}return{result:i,regexp:o}}function je(e,t){var n,r;return null!==(r=null!==(n=function(e,t){var n=xe("universalSelectorRegEx",e,t),r=n.result,i=n.regexp;return r?{value:{type:"*"},start:t,end:i.lastIndex}:null}(e,t))&&void 0!==n?n:function(e,t){var n=xe("simpleIdentifierSelectorRegEx",e,t),r=n.result,i=n.regexp;if(!r)return null;var o=i.lastIndex;return{value:{type:r[1],identifier:r[2]},start:t,end:o}}(e,t))&&void 0!==r?r:function(e,t){var n=xe("attributeSelectorRegEx",e,t),r=n.result,i=n.regexp;if(!r)return null;var o=i.lastIndex,a=r[1];return r[2]?{value:{type:"[]",property:a,test:r[2],value:r[3]||r[4]||r[5]},start:t,end:o}:{value:{type:"[]",property:a},start:t,end:o}}(e,t)}function Ae(e,t){var n=je(e,t);if(!n)return null;for(var r=n.end,i=[];n;){i.push(n.value),n=je(e,r=n.end)}return{start:t,end:r,value:i}}function Ie(e,t){var n=xe("combinatorRegEx",e,t),r=n.result,i=n.regexp;return r?{start:t,end:ke?i.lastIndex:t,value:r[1]||" "}:null}var Ce,Pe=function(e){return e};function Re(e){return"declaration"===e.type}function Le(e){return function(t){return e(t)}}function Me(e){switch(e.type){case"*":return new pe;case"#":return new ve(e.identifier);case"":return new he(e.identifier.replace(/-/,"").toLowerCase());case".":return new ye(e.identifier);case":":return new me(e.identifier);case"[]":return e.test?new be(e.property,e.test,e.value):new be(e.property);default:return null}}function Fe(e){return 0===e.length?new Oe(new Error("Empty simple selector sequence.")):1===e.length?Me(e[0]):new de(e.map(Me))}function De(e){try{var t=function(e,t){var n=t,r=xe("whiteSpaceRegEx",e,t),i=r.result,o=r.regexp;i&&(n=o.lastIndex);var a,u=[],c=!0,s=[void 0,void 0];return(ke?[e]:e.split(" ")).forEach((function(e){if(!ke){if(""===e)return;n=0}do{var t=Ae(e,n);if(!t){if(c)return;break}if(n=t.end,a&&(s[1]=a.value),s=[t.value,void 0],u.push(s),a=Ie(e,n))n=a.end;c=!(!a||" "===a.value)}while(a)})),{start:t,end:n,value:u}}(e,0);return t?function(e){if(0===e.length)return new Oe(new Error("Empty selector."));if(1===e.length)return Fe(e[0][0]);var t,n=[],r=p(e);try{for(r.s();!(t=r.n()).done;){var i=t.value,o=Fe(i[0]),a=i[1];a&&o&&(o.combinator=a),n.push(o)}}catch(e){r.e(e)}finally{r.f()}return new Se(n)}(t.value):new Oe(new Error("Empty selector"))}catch(e){return new Oe(e)}}function Ve(e){var t;return!e||!(null===(t=null==e?void 0:e.ruleSets)||void 0===t?void 0:t.length)}function Be(t,n){if(t){if(!Ve(Ce))return Ce;var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e.map((function(e){var n=e[0],r=e[1];return r=r.map((function(e){var t=j(e,2);return{type:"declaration",property:t[0],value:t[1]}})).map(Le(null!=t?t:Pe)),n=n.map(De),new Ee(n,r,"")}))}(t,n);return Ce=new ae(r)}var i=e[Ue];if(Ve(Ce)||i){var o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e.map((function(e){var n=e.declarations.filter(Re).map(Le(null!=t?t:Pe)),r=e.selectors.map(De);return new Ee(r,n,e.hash)}))}(i,n);Ce?Ce.append(o):Ce=new ae(o),e[Ue]=void 0}return e[He]&&(e[He].forEach((function(e){Ce.delete(e)})),e[He]=void 0),Ce}var Ue="__HIPPY_VUE_STYLES__",He="__HIPPY_VUE_DISPOSE_STYLES__",$e=Object.create(null),Ye={$on:function(e,t,n){return Array.isArray(e)?e.forEach((function(e){Ye.$on(e,t,n)})):($e[e]||($e[e]=[]),$e[e].push({fn:t,ctx:n})),Ye},$once:function(e,t,n){function r(){Ye.$off(e,r);for(var i=arguments.length,o=new Array(i),a=0;a1?r-1:0),o=1;o0||e.didTimeout)&&function e(t){var n;"number"==typeof t?In(t):t&&(In(t.nodeId),null===(n=t.childNodes)||void 0===n||n.forEach((function(t){return e(t)})))}(t)},r={timeout:50},e.requestIdleCallback?e.requestIdleCallback(n,r):setTimeout((function(){n({didTimeout:!1,timeRemaining:function(){return 1/0}})}),1)}function Rn(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e[t],r=t;r-1){var f;if("onLayout"===i){f=new On(o),Object.assign(f,{eventPhase:c,nativeParams:null!=u?u:{}});var d=u.layout,p=d.x,v=d.y,h=d.height,y=d.width;f.top=v,f.left=p,f.bottom=v+h,f.right=p+y,f.width=y,f.height=h}else{f=new gn(o),Object.assign(f,{eventPhase:c,nativeParams:null!=u?u:{}});var m=l.component.processEventData;m&&m({__evt:i,handler:f},u)}s.dispatchEvent(function(e,t,n){return function(e){return["onTouchDown","onTouchMove","onTouchEnd","onTouchCancel"].indexOf(e)>=0}(e)&&Object.assign(t,{touches:{0:{clientX:n.page_x,clientY:n.page_y},length:1}}),t}(i,f,u),l,t)}}catch(e){console.error("receiveComponentEvent error",e)}else qe.apply(void 0,Mn.concat(["receiveComponentEvent","currentTargetNode or targetNode not exist"]))}else qe.apply(void 0,Mn.concat(["receiveComponentEvent","nativeEvent or domEvent not exist"]))}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=Fn);var Dn,Vn=function(){function e(){g(this,e),this.listeners={}}return O(e,[{key:"addEventListener",value:function(e,t,n){for(var r=e.split(","),i=r.length,o=0;o=0&&c.splice(s,1),c.length||(this.listeners[u]=void 0)}}}else this.listeners[u]=void 0}}},{key:"emitEvent",value:function(e){var t,n,r=e.type,i=this.listeners[r];if(i)for(var o=i.length-1;o>=0;o-=1){var a=i[o];(null===(t=a.options)||void 0===t?void 0:t.once)&&i.splice(o,1),(null===(n=a.options)||void 0===n?void 0:n.thisArg)?a.callback.apply(a.options.thisArg,[e]):a.callback(e)}}},{key:"getEventListenerList",value:function(){return this.listeners}}],[{key:"indexOfListener",value:function(e,t,n){return e.findIndex((function(e){return n?e.callback===t&&C.looseEqual(e.options,n):e.callback===t}))}}])}();!function(e){e[e.CREATE=0]="CREATE",e[e.UPDATE=1]="UPDATE",e[e.DELETE=2]="DELETE",e[e.MOVE=3]="MOVE",e[e.UPDATE_EVENT=4]="UPDATE_EVENT"}(Dn||(Dn={}));var Bn,Un=!1,Hn=[];function $n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;e.forEach((function(e){if(e){var n=e.id;e.eventList.forEach((function(e){var r,i=e.name,o=e.type,a=e.listener;r=fn(i)?sn[i]:dn(i),o===cn&&t.removeEventListener(n,r,a),o===un&&(t.removeEventListener(n,r,a),t.addEventListener(n,r,a))}))}}))}function Yn(e,t){0}function Wn(){Un||(Un=!0,0!==Hn.length?P.nextTick().then((function(){var t=function(e){var t,n=[],r=p(e);try{for(r.s();!(t=r.n()).done;){var i=t.value,o=i.type,a=i.nodes,u=i.eventNodes,c=i.printedNodes,s=n[n.length-1];s&&s.type===o?(s.nodes=s.nodes.concat(a),s.eventNodes=s.eventNodes.concat(u),s.printedNodes=s.printedNodes.concat(c)):n.push({type:o,nodes:a,eventNodes:u,printedNodes:c})}}catch(e){r.e(e)}finally{r.f()}return n}(Hn),n=yn().rootViewId,r=new e.Hippy.SceneBuilder(n);t.forEach((function(e){switch(e.type){case Dn.CREATE:Yn(e.printedNodes),r.create(e.nodes,!0),$n(e.eventNodes,r);break;case Dn.UPDATE:Yn(e.printedNodes),r.update(e.nodes),$n(e.eventNodes,r);break;case Dn.DELETE:Yn(e.printedNodes),r.delete(e.nodes);break;case Dn.MOVE:Yn(e.printedNodes),r.move(e.nodes);break;case Dn.UPDATE_EVENT:$n(e.eventNodes,r)}})),r.build(),Un=!1,Hn=[]})):Un=!1)}function zn(e){var t=j(e,3),n=t[0],r=t[1],i=t[2];Hn.push({type:Dn.CREATE,nodes:n,eventNodes:r,printedNodes:i}),Wn()}function Kn(e){var t=j(e,3),n=t[0],r=t[2];n&&(Hn.push({type:Dn.MOVE,nodes:n,eventNodes:[],printedNodes:r}),Wn())}function Gn(e){var t=j(e,3),n=t[0],r=t[1],i=t[2];n&&(Hn.push({type:Dn.UPDATE,nodes:n,eventNodes:r,printedNodes:i}),Wn())}function qn(e){var t,n=e.events;if(n){var r=[];Object.keys(n).forEach((function(e){var t=n[e],i=t.name,o=t.type,a=t.isCapture,u=t.listener;r.push({name:i,type:o,isCapture:a,listener:u})})),t={id:e.nodeId,eventList:r}}return t}!function(e){e[e.ElementNode=1]="ElementNode",e[e.TextNode=3]="TextNode",e[e.CommentNode=8]="CommentNode",e[e.DocumentNode=4]="DocumentNode"}(Bn||(Bn={}));var Jn=function(t){function n(e,t){var r,i;return g(this,n),(r=h(this,n)).isMounted=!1,r.events={},r.childNodes=[],r.parentNode=null,r.prevSibling=null,r.nextSibling=null,r.tagComponent=null,r.nodeId=null!==(i=null==t?void 0:t.id)&&void 0!==i?i:n.getUniqueNodeId(),r.nodeType=e,r.isNeedInsertToNative=function(e){return e===Bn.ElementNode}(e),(null==t?void 0:t.id)&&(r.isMounted=!0),r}return T(n,t),O(n,[{key:"firstChild",get:function(){return this.childNodes.length?this.childNodes[0]:null}},{key:"lastChild",get:function(){var e=this.childNodes.length;return e?this.childNodes[e-1]:null}},{key:"component",get:function(){return this.tagComponent}},{key:"index",get:function(){var e=0;this.parentNode&&(e=this.parentNode.childNodes.filter((function(e){return e.isNeedInsertToNative})).indexOf(this));return e}},{key:"isRootNode",value:function(){return 1===this.nodeId}},{key:"hasChildNodes",value:function(){return!!this.childNodes.length}},{key:"insertBefore",value:function(e,t){var n=e,r=t;if(!n)throw new Error("No child to insert");if(r){if(n.parentNode&&n.parentNode!==this)throw new Error("Can not insert child, because the child node is already has a different parent");var i=this;r.parentNode!==this&&(i=r.parentNode);var o=i.childNodes.indexOf(r),a=r;r.isNeedInsertToNative||(a=Rn(this.childNodes,o)),n.parentNode=i,n.nextSibling=r,n.prevSibling=i.childNodes[o-1],i.childNodes[o-1]&&(i.childNodes[o-1].nextSibling=n),r.prevSibling=n,i.childNodes.splice(o,0,n),a.isNeedInsertToNative?this.insertChildNativeNode(n,{refId:a.nodeId,relativeToRef:Ln}):this.insertChildNativeNode(n)}else this.appendChild(n)}},{key:"moveChild",value:function(e,t){var n=e,r=t;if(!n)throw new Error("No child to move");if(r){if(r.parentNode&&r.parentNode!==this)throw new Error("Can not move child, because the anchor node is already has a different parent");if(n.parentNode&&n.parentNode!==this)throw new Error("Can't move child, because it already has a different parent");var i=this.childNodes.indexOf(n),o=this.childNodes.indexOf(r),a=r;if(r.isNeedInsertToNative||(a=Rn(this.childNodes,o)),o!==i){n.nextSibling=r,n.prevSibling=r.prevSibling,r.prevSibling=n,this.childNodes[o-1]&&(this.childNodes[o-1].nextSibling=n),this.childNodes[o+1]&&(this.childNodes[o+1].prevSibling=n),this.childNodes[i-1]&&(this.childNodes[i-1].nextSibling=this.childNodes[i+1]),this.childNodes[i+1]&&(this.childNodes[i+1].prevSibling=this.childNodes[i-1]),this.childNodes.splice(i,1);var u=this.childNodes.indexOf(r);this.childNodes.splice(u,0,n),a.isNeedInsertToNative?this.moveChildNativeNode(n,{refId:a.nodeId,relativeToRef:Ln}):this.insertChildNativeNode(n)}}else this.appendChild(n)}},{key:"appendChild",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e;if(!n)throw new Error("No child to append");this.lastChild!==n&&(n.parentNode&&n.parentNode!==this?n.parentNode.removeChild(n):(n.isMounted&&!t&&this.removeChild(n),n.parentNode=this,this.lastChild&&(n.prevSibling=this.lastChild,this.lastChild.nextSibling=n),this.childNodes.push(n),t?An(n,n.nodeId):this.insertChildNativeNode(n)))}},{key:"removeChild",value:function(e){var t=e;if(!t)throw new Error("Can't remove child.");if(!t.parentNode)throw new Error("Can't remove child, because it has no parent.");if(t.parentNode===this){if(t.isNeedInsertToNative){t.prevSibling&&(t.prevSibling.nextSibling=t.nextSibling),t.nextSibling&&(t.nextSibling.prevSibling=t.prevSibling),t.prevSibling=null,t.nextSibling=null;var n=this.childNodes.indexOf(t);this.childNodes.splice(n,1),this.removeChildNativeNode(t)}}else t.parentNode.removeChild(t)}},{key:"findChild",value:function(e){if(e(this))return this;if(this.childNodes.length){var t,n=p(this.childNodes);try{for(n.s();!(t=n.n()).done;){var r=t.value,i=this.findChild.call(r,e);if(i)return i}}catch(e){n.e(e)}finally{n.f()}}return null}},{key:"eachNode",value:function(e){var t=this;e&&e(this),this.childNodes.length&&this.childNodes.forEach((function(n){t.eachNode.call(n,e)}))}},{key:"insertChildNativeNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.isNeedInsertToNative){var n=this.isRootNode()&&!this.isMounted,r=this.isMounted&&!e.isMounted;if(n||r){var i=n?this:e;zn(i.convertToNativeNodes(!0,t)),i.eachNode((function(e){var t=e;!t.isMounted&&t.isNeedInsertToNative&&(t.isMounted=!0),An(t,t.nodeId)}))}}}},{key:"moveChildNativeNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.isNeedInsertToNative&&(!t||t.refId!==e.nodeId)){var n=e;Kn(n.convertToNativeNodes(!1,t))}}},{key:"removeChildNativeNode",value:function(e){if(e&&e.isNeedInsertToNative){var t,n,r,i,o=e;o.isMounted&&(o.isMounted=!1,t=o.convertToNativeNodes(!1,{}),n=j(t,3),r=n[0],i=n[2],r&&(Hn.push({type:Dn.DELETE,nodes:r,eventNodes:[],printedNodes:i}),Wn()))}}},{key:"updateNativeNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isMounted){var t=this.convertToNativeNodes(e,{});Gn(t)}}},{key:"updateNativeEvent",value:function(){this.isMounted&&function(e){Hn.push({type:Dn.UPDATE_EVENT,nodes:[],eventNodes:[e],printedNodes:[]}),Wn()}(qn(this))}},{key:"convertToNativeNodes",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;if(!this.isNeedInsertToNative)return[[],[],[]];if(e){var o=[],a=[],u=[];return this.eachNode((function(e){var t=j(e.convertToNativeNodes(!1,r),3),n=t[0],i=t[1],c=t[2];Array.isArray(n)&&n.length&&o.push.apply(o,v(n)),Array.isArray(i)&&i.length&&a.push.apply(a,v(i)),Array.isArray(c)&&c.length&&u.push.apply(u,v(c))})),[o,a,u]}if(!this.component)throw new Error("tagName is not supported yet");var c=yn(),s=c.rootViewId,l=null!=i?i:{},f=w({id:this.nodeId,pId:null!==(n=null===(t=this.parentNode)||void 0===t?void 0:t.nodeId)&&void 0!==n?n:s},l),d=qn(this),p=void 0,h=[f,r];return[[h],[d],[p]]}}],[{key:"getUniqueNodeId",value:function(){return e.hippyUniqueId||(e.hippyUniqueId=0),e.hippyUniqueId+=1,e.hippyUniqueId%10==0&&(e.hippyUniqueId+=1),e.hippyUniqueId}}])}(Vn),Xn=function(e){function t(e,n){var r;return g(this,t),(r=h(this,t,[Bn.TextNode,n])).text=e,r.data=e,r.isNeedInsertToNative=!1,r}return T(t,e),O(t,[{key:"setText",value:function(e){this.text=e,this.parentNode&&this.parentNode.nodeType===Bn.ElementNode&&this.parentNode.setText(e)}}])}(Jn);function Zn(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0,i=r,o={textShadowOffsetX:"width",textShadowOffsetY:"height"};return i.textShadowOffset=null!==(t=i.textShadowOffset)&&void 0!==t?t:{},Object.assign(i.textShadowOffset,{[o[e]]:n}),["textShadowOffset",i.textShadowOffset]}function Qn(e,t){var n=t;e.component.name===ze.TextInput&&an()&&(n.textAlign||(n.textAlign="right"))}function er(e,t,n){var r=t,i=n;e.component.name===ze.View&&("scroll"===i.overflowX&&i.overflowY,"scroll"===i.overflowY?r.name="ScrollView":"scroll"===i.overflowX&&(r.name="ScrollView",r.props&&(r.props.horizontal=!0),i.flexDirection=an()?"row-reverse":"row"),"ScrollView"===r.name&&(e.childNodes.length,e.childNodes.length&&e.nodeType===Bn.ElementNode&&e.childNodes[0].setStyle("collapsable",!1)),i.backgroundImage&&(i.backgroundImage=ct(i.backgroundImage)))}function tr(e,t){if("string"==typeof e)for(var n=e.split(","),r=0,i=n.length;r1&&void 0!==arguments[1]&&arguments[1];e instanceof Xn&&this.setText(e.text,{notToNative:!0}),c(m(t.prototype),"appendChild",this).call(this,e,n)}},{key:"insertBefore",value:function(e,n){e instanceof Xn&&this.setText(e.text,{notToNative:!0}),c(m(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"moveChild",value:function(e,n){e instanceof Xn&&this.setText(e.text,{notToNative:!0}),c(m(t.prototype),"moveChild",this).call(this,e,n)}},{key:"removeChild",value:function(e){e instanceof Xn&&this.setText("",{notToNative:!0}),c(m(t.prototype),"removeChild",this).call(this,e)}},{key:"hasAttribute",value:function(e){return!!this.attributes[e]}},{key:"getAttribute",value:function(e){return this.attributes[e]}},{key:"removeAttribute",value:function(e){delete this.attributes[e]}},{key:"setAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t,i=e;try{if("boolean"==typeof this.attributes[i]&&""===r&&(r=!0),void 0===i)return void(!n.notToNative&&this.updateNativeNode());switch(i){case"class":var o=new Set(pt(r));if(at(this.classList,o))return;return this.classList=o,void(!n.notToNative&&this.updateNativeNode(!0));case"id":if(r===this.id)return;return this.id=r,void(!n.notToNative&&this.updateNativeNode(!0));case"text":case"value":case"defaultValue":case"placeholder":if("string"!=typeof r)try{r=r.toString()}catch(e){"Property ".concat(i," must be string:").concat(e.message)}n&&n.textUpdate||(r=dt(r)),r=ot(r);break;case"numberOfRows":if(!Pt.isIOS())return;break;case"caretColor":case"caret-color":i="caret-color",r=Pt.parseColor(r);break;case"break-strategy":i="breakStrategy";break;case"placeholderTextColor":case"placeholder-text-color":i="placeholderTextColor",r=Pt.parseColor(r);break;case"underlineColorAndroid":case"underline-color-android":i="underlineColorAndroid",r=Pt.parseColor(r);break;case"nativeBackgroundAndroid":var a=r;void 0!==a.color&&(a.color=Pt.parseColor(a.color)),i="nativeBackgroundAndroid",r=a}if(this.attributes[i]===r)return;this.attributes[i]=r,"function"==typeof this.filterAttribute&&this.filterAttribute(this.attributes),!n.notToNative&&this.updateNativeNode()}catch(e){0}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setAttribute("text",e,{notToNative:!!t.notToNative})}},{key:"removeStyle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.style={},e||this.updateNativeNode()}},{key:"setStyles",value:function(e){var t=this;e&&"object"===k(e)&&(Object.keys(e).forEach((function(n){var r=e[n];t.setStyle(n,r,!0)})),this.updateNativeNode())}},{key:"setStyle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(void 0===t)return delete this.style[e],void(n||this.updateNativeNode());var r=this.beforeLoadStyle({property:e,value:t}),i=r.property,o=r.value;switch(i){case"fontWeight":"string"!=typeof o&&(o=o.toString());break;case"backgroundImage":var a=re(i,o),u=j(a,2);i=u[0],o=u[1];break;case"textShadowOffsetX":case"textShadowOffsetY":var c=Zn(i,o,this.style),s=j(c,2);i=s[0],o=s[1];break;case"textShadowOffset":var l=null!=o?o:{},f=l.x,d=void 0===f?0:f,p=l.width,v=void 0===p?0:p,h=l.y,y=void 0===h?0:h,m=l.height,g=void 0===m?0:m;o={width:d||v,height:y||g};break;default:Object.prototype.hasOwnProperty.call(z,i)&&(i=z[i]),"string"==typeof o&&(o=o.trim(),o=i.toLowerCase().indexOf("color")>=0?Pt.parseColor(o):o.endsWith("px")?parseFloat(o.slice(0,o.length-2)):Qe(o))}null!=o&&this.style[i]!==o&&(this.style[i]=o,n||this.updateNativeNode())}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;if("number"==typeof e&&"number"==typeof t){var r=n;!1===r&&(r=0),Pt.callUIFunction(this,"scrollToWithOptions",[{x:e,y:t,duration:r}])}}},{key:"scrollTo",value:function(e,t,n){if("object"===k(e)&&e){var r=e.left,i=e.top,o=e.behavior,a=void 0===o?"auto":o,u=e.duration;this.scrollToPosition(r,i,"none"===a?0:u)}else this.scrollToPosition(e,t,n)}},{key:"setListenerHandledType",value:function(e,t){this.events[e]&&(this.events[e].handledType=t)}},{key:"isListenerHandled",value:function(e,t){return!this.events[e]||t===this.events[e].handledType}},{key:"getNativeEventName",value:function(e){var t="on".concat(Xe(e));if(this.component){var n=this.component.eventNamesMap;(null==n?void 0:n.get(e))&&(t=n.get(e))}return t}},{key:"addEventListener",value:function(e,n,r){var i=this,o=e,a=n,u=r,s=!0;"scroll"!==o||this.getAttribute("scrollEventThrottle")>0||(this.attributes.scrollEventThrottle=200);var l=this.getNativeEventName(o);if(this.attributes[l]&&(s=!1),"function"==typeof this.polyfillNativeEvents){var f=this.polyfillNativeEvents(vn,o,a,u);o=f.eventNames,a=f.callback,u=f.options}c(m(t.prototype),"addEventListener",this).call(this,o,a,u),tr(o,(function(e){var t,n,r=i.getNativeEventName(e);i.events[r]?i.events[r]&&i.events[r].type!==un&&(i.events[r].type=un):i.events[r]={name:r,type:un,listener:(t=r,n=e,function(e){var r=e.id,i=e.currentId,o=e.params,a=e.eventPhase;Fn.receiveComponentEvent({id:r,nativeName:t,originalName:n,currentId:i,params:o,eventPhase:a},e)}),isCapture:!1}})),s&&this.updateNativeEvent()}},{key:"removeEventListener",value:function(e,n,r){var i=this,o=e,a=n,u=r;if("function"==typeof this.polyfillNativeEvents){var s=this.polyfillNativeEvents(hn,o,a,u);o=s.eventNames,a=s.callback,u=s.options}c(m(t.prototype),"removeEventListener",this).call(this,o,a,u),tr(o,(function(e){var t=i.getNativeEventName(e);i.events[t]&&(i.events[t].type=cn)}));var l=this.getNativeEventName(o);this.attributes[l]&&delete this.attributes[l],this.updateNativeEvent()}},{key:"dispatchEvent",value:function(e,t,n){var r=e;r.currentTarget=this,r.target||(r.target=t||this,xn(r)&&(r.target.value=r.value)),this.emitEvent(r),!r.bubbles&&n&&n.stopPropagation()}},{key:"convertToNativeNodes",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isNeedInsertToNative)return[[],[],[]];if(e)return c(m(t.prototype),"convertToNativeNodes",this).call(this,!0,r);var i=this.getNativeStyles();if(this.parentNode&&this.parentNode instanceof t){var o=this.parentNode.processedStyle,a=["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"];a.forEach((function(e){!i[e]&&o[e]&&(i[e]=o[e])}))}if(it()(this,i),this.component.defaultNativeStyle){var u=this.component.defaultNativeStyle,s={};Object.keys(u).forEach((function(e){n.getAttribute(e)||(s[e]=u[e])})),i=w(w({},s),i)}this.processedStyle=i;var l={name:this.component.name,props:w(w({},this.getNativeProps()),{},{style:i}),tagName:this.tagName};return Qn(this,i),er(this,l,i),c(m(t.prototype),"convertToNativeNodes",this).call(this,!1,r,l)}},{key:"repaintWithChildren",value:function(){this.updateNativeNode(!0)}},{key:"setNativeProps",value:function(e){if(e){var t=e.style;this.setStyles(t)}}},{key:"setPressed",value:function(e){Pt.callUIFunction(this,"setPressed",[e])}},{key:"setHotspot",value:function(e,t){Pt.callUIFunction(this,"setHotspot",[e,t])}},{key:"setStyleScope",value:function(e){var t="string"!=typeof e?e.toString():e;t&&!this.scopedIdList.includes(t)&&this.scopedIdList.push(t)}},{key:"styleScopeId",get:function(){return this.scopedIdList}},{key:"getInlineStyle",value:function(){var e=this,t={};return Object.keys(this.style).forEach((function(n){var r=P.toRaw(e.style[n]);void 0!==r&&(t[n]=r)})),t}},{key:"getNativeStyles",value:function(){var e=this,n={};return Be(void 0,tt()).query(this).selectors.forEach((function(t){var r,i;ft(t,e)&&(null===(i=null===(r=t.ruleSet)||void 0===r?void 0:r.declarations)||void 0===i?void 0:i.length)&&t.ruleSet.declarations.forEach((function(e){e.property&&(n[e.property]=e.value)}))})),this.ssrInlineStyle&&(n=w(w({},n),this.ssrInlineStyle)),n=t.parseRem(w(w({},n),this.getInlineStyle()))}},{key:"getNativeProps",value:function(){var e=this,t={},n=this.component.defaultNativeProps;n&&Object.keys(n).forEach((function(r){if(void 0===e.getAttribute(r)){var i=n[r];t[r]=C.isFunction(i)?i(e):P.toRaw(i)}})),Object.keys(this.attributes).forEach((function(n){var r,i=P.toRaw(e.getAttribute(n));if(e.component.attributeMaps&&e.component.attributeMaps[n]){var o=e.component.attributeMaps[n];if(C.isString(o))t[o]=P.toRaw(i);else if(C.isFunction(o))t[n]=P.toRaw(o(i));else{var a=o.name,u=o.propsValue,c=o.jointKey;C.isFunction(u)&&(i=u(i)),c?(t[c]=null!==(r=t[c])&&void 0!==r?r:{},Object.assign(t[c],{[a]:P.toRaw(i)})):t[a]=P.toRaw(i)}}else t[n]=P.toRaw(i)}));var r=this.component.nativeProps;return r&&Object.keys(r).forEach((function(e){t[e]=P.toRaw(r[e])})),t}},{key:"getNodeAttributes",value:function(){var e;try{var t=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new WeakMap;if("object"!==k(t)||null===t)throw new TypeError("deepCopy data is object");if(n.has(t))return n.get(t);var r={},i=Object.keys(t);return i.forEach((function(i){var o=t[i];"object"!==k(o)||null===o?r[i]=o:Array.isArray(o)?r[i]=v(o):o instanceof Set?r[i]=new Set(v(o)):o instanceof Map?r[i]=new Map(v(o)):(n.set(t,t),r[i]=e(o,n))})),r}(this.attributes),n=Array.from(null!==(e=this.classList)&&void 0!==e?e:[]).join(" "),r=w({id:this.id,hippyNodeId:"".concat(this.nodeId),class:n},t);return delete r.text,delete r.value,Object.keys(r).forEach((function(e){"id"!==e&&"hippyNodeId"!==e&&"class"!==e&&delete r[e]})),r}catch(e){return{}}}},{key:"getNativeEvents",value:function(){var e={},t=this.getEventListenerList(),n=Object.keys(t);if(n.length){var r=this.component.eventNamesMap;n.forEach((function(n){var i=null==r?void 0:r.get(n);if(i)e[i]=!!t[n];else{var o="on".concat(Xe(n));e[o]=!!t[n]}}))}return e}},{key:"hackSpecialIssue",value:function(){this.fixVShowDirectiveIssue()}},{key:"fixVShowDirectiveIssue",value:function(){var e,t=this,n=null!==(e=this.style.display)&&void 0!==e?e:void 0;Object.defineProperty(this.style,"display",{enumerable:!0,configurable:!0,get:function(){return n},set:function(e){n=void 0===e?"flex":e,t.updateNativeNode()}})}}],[{key:"parseRem",value:function(e){var t={},n=Object.keys(e);return n.length?n.forEach((function(n){t[n]=function(e){var t=e;if("string"!=typeof t||!t.endsWith("rem"))return t;if(t=parseFloat(t),Number.isNaN(t))return e;var n=yn().ratioBaseWidth;return 100*t*(Pt.Dimensions.screen.width/n)}(e[n])})):t=e,t}}])}(Jn);var rr=["dialog","hi-pull-header","hi-pull-footer","hi-swiper","hi-swiper-slider","hi-waterfall","hi-waterfall-item","hi-ul-refresh-wrapper","hi-refresh-wrapper-item"],ir={install:function(t){!function(t){var n={valueType:void 0,delay:0,startValue:0,toValue:0,duration:0,direction:"center",timingFunction:"linear",repeatCount:0,inputRange:[],outputRange:[]};function r(e,t){return"color"===e&&["number","string"].indexOf(k(t))>=0?Pt.parseColor(t):t}function c(e){return"loop"===e?-1:e}function s(t){var o=t.mode,a=void 0===o?"timing":o,s=t.valueType,l=t.startValue,f=t.toValue,d=u(t,i),p=w(w({},n),d);void 0!==s&&(p.valueType=t.valueType),p.startValue=r(p.valueType,l),p.toValue=r(p.valueType,f),p.repeatCount=c(p.repeatCount),p.mode=a;var v=new e.Hippy.Animation(p),h=v.getId();return{animation:v,animationId:h}}function l(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=new e.Hippy.AnimationSet({children:t,repeatCount:n}),i=r.getId();return{animation:r,animationId:i}}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};return Object.keys(e).forEach((function(r){if(Array.isArray(e[r])){var i=e[r],o=i[i.length-1].repeatCount,a=l(i.map((function(e){var n=s(w(w({},e),{},{repeatCount:0})),r=n.animationId,i=n.animation;return Object.assign(t,{[r]:i}),{animationId:r,follow:!0}})),c(o)),u=a.animationId,f=a.animation;n[r]={animationId:u},Object.assign(t,{[u]:f})}else{var d=s(e[r]),p=d.animationId,v=d.animation;Object.assign(t,{[p]:v}),n[r]={animationId:p}}})),n}function d(e){var t=e.transform,n=u(e,o),r=Object.keys(n).map((function(t){return e[t].animationId}));if(Array.isArray(t)&&t.length>0){var i=[];t.forEach((function(e){return Object.keys(e).forEach((function(t){if(e[t]){var n=e[t].animationId;"number"==typeof n&&n%1==0&&i.push(n)}}))})),r=[].concat(v(r),i)}return r}t.component("Animation",{props:{tag:{type:String,default:"div"},playing:{type:Boolean,default:!1},actions:{type:Object,required:!0},props:Object},data:function(){return{style:{},animationIds:[],animationIdsMap:{},animationEventMap:{}}},watch:{playing:function(e,t){!t&&e?this.start():t&&!e&&this.pause()},actions:function(){var e=this;this.destroy(),this.create(),setTimeout((function(){var t=e.$attrs[st("actionsDidUpdate")];"function"==typeof t&&t()}))}},created:function(){this.animationEventMap={start:"animationstart",end:"animationend",repeat:"animationrepeat",cancel:"animationcancel"}},beforeMount:function(){this.create()},mounted:function(){var e=this;this.$props.playing&&setTimeout((function(){e.start()}),0)},beforeDestroy:function(){this.destroy()},deactivated:function(){this.pause()},activated:function(){this.resume()},methods:{create:function(){var e=this.$props.actions,t=e.transform,n=u(e,a);this.animationIdsMap={};var r=f(n,this.animationIdsMap);if(t){var i=f(t,this.animationIdsMap);r.transform=Object.keys(i).map((function(e){return{[e]:i[e]}}))}this.$alreadyStarted=!1,this.style=r},removeAnimationEvent:function(){var e=this;this.animationIds.forEach((function(t){var n=P.toRaw(e.animationIdsMap[t]);n&&Object.keys(e.animationEventMap).forEach((function(t){if("function"==typeof e.$attrs[st(t)]){var r=e.animationEventMap[t];r&&"function"==typeof e["".concat(r)]&&n.removeEventListener(r)}}))}))},addAnimationEvent:function(){var e=this;this.animationIds.forEach((function(t){var n=P.toRaw(e.animationIdsMap[t]);n&&Object.keys(e.animationEventMap).forEach((function(t){if("function"==typeof e.$attrs[st(t)]){var r=e.animationEventMap[t];r&&n.addEventListener(r,(function(){e.$emit(t)}))}}))}))},reset:function(){this.$alreadyStarted=!1},start:function(){var e=this;this.$alreadyStarted?this.resume():(this.animationIds=d(this.style),this.$alreadyStarted=!0,this.removeAnimationEvent(),this.addAnimationEvent(),this.animationIds.forEach((function(t){var n=P.toRaw(e.animationIdsMap[t]);null==n||n.start()})))},resume:function(){var e=this;d(this.style).forEach((function(t){var n=P.toRaw(e.animationIdsMap[t]);null==n||n.resume()}))},pause:function(){var e=this;this.$alreadyStarted&&d(this.style).forEach((function(t){var n=P.toRaw(e.animationIdsMap[t]);null==n||n.pause()}))},destroy:function(){var e=this;this.removeAnimationEvent(),this.$alreadyStarted=!1,d(this.style).forEach((function(t){var n=P.toRaw(e.animationIdsMap[t]);null==n||n.destroy()}))}},render:function(){return P.h(this.tag,w({useAnimation:!0,style:this.style,tag:this.$props.tag},this.$props.props),this.$slots.default?this.$slots.default():null)}})}(t),Bt("dialog",{component:{name:"Modal",defaultNativeProps:{transparent:!0,immersionStatusBar:!0,collapsable:!1,autoHideStatusBar:!1,autoHideNavigationBar:!1},defaultNativeStyle:{position:"absolute"}}}),function(e){var t=Pt.callUIFunction;[["Header","header"],["Footer","footer"]].forEach((function(n){var r=j(n,2),i=r[0],o=r[1];Bt("hi-pull-".concat(o),{component:{name:"Pull".concat(i,"View"),processEventData:function(e,t){var n=e.handler;switch(e.__evt){case"on".concat(i,"Released"):case"on".concat(i,"Pulling"):Object.assign(n,t)}return n}}}),e.component("pull-".concat(o),{methods:{["expandPull".concat(i)]:function(){t(this.$refs.instance,"expandPull".concat(i))},["collapsePull".concat(i)]:function(e){"Header"===i&&void 0!==e?t(this.$refs.instance,"collapsePull".concat(i,"WithOptions"),[e]):t(this.$refs.instance,"collapsePull".concat(i))},onLayout:function(e){this.$contentHeight=e.height},["on".concat(i,"Released")]:function(e){this.$emit("released",e)},["on".concat(i,"Pulling")]:function(e){e.contentOffset>this.$contentHeight?"pulling"!==this.$lastEvent&&(this.$lastEvent="pulling",this.$emit("pulling",e)):"idle"!==this.$lastEvent&&(this.$lastEvent="idle",this.$emit("idle",e))}},render:function(){var e=this.$attrs,t=e.onReleased,n=e.onPulling,r=e.onIdle,a={onLayout:this.onLayout};return"function"==typeof t&&(a["on".concat(i,"Released")]=this["on".concat(i,"Released")]),"function"!=typeof n&&"function"!=typeof r||(a["on".concat(i,"Pulling")]=this["on".concat(i,"Pulling")]),P.h("hi-pull-".concat(o),w(w({},a),{},{ref:"instance"}),this.$slots.default?this.$slots.default():null)}})}))}(t),function(e){Bt("hi-ul-refresh-wrapper",{component:{name:"RefreshWrapper"}}),Bt("hi-refresh-wrapper-item",{component:{name:"RefreshWrapperItemView"}}),e.component("UlRefreshWrapper",{props:{bounceTime:{type:Number,defaultValue:100}},methods:{startRefresh:function(){Pt.callUIFunction(this.$refs.refreshWrapper,"startRefresh",null)},refreshCompleted:function(){Pt.callUIFunction(this.$refs.refreshWrapper,"refreshComplected",null)}},render:function(){return P.h("hi-ul-refresh-wrapper",{ref:"refreshWrapper"},this.$slots.default?this.$slots.default():null)}}),e.component("UlRefresh",{render:function(){var e=P.h("div",null,this.$slots.default?this.$slots.default():null);return P.h("hi-refresh-wrapper-item",{style:{position:"absolute",left:0,right:0}},e)}})}(t),function(e){Bt("hi-waterfall",{component:{name:"WaterfallView",processEventData:function(e,t){var n=e.handler;switch(e.__evt){case"onExposureReport":n.exposureInfo=t.exposureInfo;break;case"onScroll":var r=t.startEdgePos,i=t.endEdgePos,o=t.firstVisibleRowIndex,a=t.lastVisibleRowIndex,u=t.visibleRowFrames;Object.assign(n,{startEdgePos:r,endEdgePos:i,firstVisibleRowIndex:o,lastVisibleRowIndex:a,visibleRowFrames:u})}return n}}}),Bt("hi-waterfall-item",{component:{name:"WaterfallItem"}}),e.component("Waterfall",{props:{numberOfColumns:{type:Number,default:2},contentInset:{type:Object,default:function(){return{top:0,left:0,bottom:0,right:0}}},columnSpacing:{type:Number,default:0},interItemSpacing:{type:Number,default:0},preloadItemNumber:{type:Number,default:0},containBannerView:{type:Boolean,default:!1},containPullHeader:{type:Boolean,default:!1},containPullFooter:{type:Boolean,default:!1}},methods:{call:function(e,t){Pt.callUIFunction(this.$refs.waterfall,e,t)},startRefresh:function(){this.call("startRefresh")},startRefreshWithType:function(e){this.call("startRefreshWithType",[e])},callExposureReport:function(){this.call("callExposureReport",[])},scrollToIndex:function(e){var t=e.index,n=void 0===t?0:t,r=e.animated,i=void 0===r||r;this.call("scrollToIndex",[n,n,i])},scrollToContentOffset:function(e){var t=e.xOffset,n=void 0===t?0:t,r=e.yOffset,i=void 0===r?0:r,o=e.animated,a=void 0===o||o;this.call("scrollToContentOffset",[n,i,a])},startLoadMore:function(){this.call("startLoadMore")}},render:function(){var e=lt.call(this,["headerReleased","headerPulling","endReached","exposureReport","initialListReady","scroll"]);return P.h("hi-waterfall",w(w({},e),{},{ref:"waterfall",numberOfColumns:this.numberOfColumns,contentInset:this.contentInset,columnSpacing:this.columnSpacing,interItemSpacing:this.interItemSpacing,preloadItemNumber:this.preloadItemNumber,containBannerView:this.containBannerView,containPullHeader:this.containPullHeader,containPullFooter:this.containPullFooter}),this.$slots.default?this.$slots.default():null)}}),e.component("WaterfallItem",{props:{type:{type:[String,Number],default:""},fullSpan:{type:Boolean,default:!1}},render:function(){return P.h("hi-waterfall-item",{type:this.type,fullSpan:this.fullSpan},this.$slots.default?this.$slots.default():null)}})}(t),function(e){Bt("hi-swiper",{component:{name:"ViewPager",processEventData:function(e,t){var n=e.handler;switch(e.__evt){case"onPageSelected":n.currentSlide=t.position;break;case"onPageScroll":n.nextSlide=t.position,n.offset=t.offset;break;case"onPageScrollStateChanged":n.state=t.pageScrollState}return n}}}),Bt("hi-swiper-slide",{component:{name:"ViewPagerItem",defaultNativeStyle:{position:"absolute",top:0,right:0,bottom:0,left:0}}}),e.component("Swiper",{props:{current:{type:Number,defaultValue:0},needAnimation:{type:Boolean,defaultValue:!0}},data:function(){return{$initialSlide:0}},watch:{current:function(e){this.$props.needAnimation?this.setSlide(e):this.setSlideWithoutAnimation(e)}},beforeMount:function(){this.$initialSlide=this.$props.current},methods:{setSlide:function(e){Pt.callUIFunction(this.$refs.swiper,"setPage",[e])},setSlideWithoutAnimation:function(e){Pt.callUIFunction(this.$refs.swiper,"setPageWithoutAnimation",[e])}},render:function(){var e=lt.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]);return P.h("hi-swiper",w(w({},e),{},{ref:"swiper",initialPage:this.$data.$initialSlide}),this.$slots.default?this.$slots.default():null)}}),e.component("SwiperSlide",{render:function(){return P.h("hi-swiper-slide",{},this.$slots.default?this.$slots.default():null)}})}(t)}};var or=function(e){function t(e,n){var r;return g(this,t),(r=h(this,t,["comment",n])).text=e,r.data=e,r.isNeedInsertToNative=!1,r}return T(t,e),O(t)}(nr),ar=function(e){function t(){return g(this,t),h(this,t,arguments)}return T(t,e),O(t,[{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"textarea"===this.tagName?this.setAttribute("value",e,{notToNative:!!t.notToNative}):this.setAttribute("text",e,{notToNative:!!t.notToNative})}},{key:"getValue",value:(r=d(l().mark((function e(){var t=this;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){return Pt.callUIFunction(t,"getValue",(function(t){return e(t.text)}))})));case 1:case"end":return e.stop()}}),e)}))),function(){return r.apply(this,arguments)})},{key:"setValue",value:function(e){Pt.callUIFunction(this,"setValue",[e])}},{key:"focus",value:function(){Pt.callUIFunction(this,"focusTextInput",[])}},{key:"blur",value:function(){Pt.callUIFunction(this,"blurTextInput",[])}},{key:"clear",value:function(){Pt.callUIFunction(this,"clear",[])}},{key:"isFocused",value:(n=d(l().mark((function e(){var t=this;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){return Pt.callUIFunction(t,"isFocused",(function(t){return e(t.value)}))})));case 1:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})}]);var n,r}(nr),ur=function(e){function t(){return g(this,t),h(this,t,arguments)}return T(t,e),O(t,[{key:"scrollToIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Pt.callUIFunction(this,"scrollToIndex",[e,t,n])}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];"number"==typeof e&&"number"==typeof t&&Pt.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}])}(nr),cr=function(e){function t(){return g(this,t),h(this,t,[Bn.DocumentNode])}return T(t,e),O(t,null,[{key:"createComment",value:function(e){return new or(e)}},{key:"createElement",value:function(e){switch(e){case"input":case"textarea":return new ar(e);case"ul":return new ur(e);default:return new nr(e)}}},{key:"createTextNode",value:function(e){return new Xn(e)}}])}(Jn);var sr={insert:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;t.childNodes.indexOf(e)>=0?t.moveChild(e,n):t.insertBefore(e,n)},remove:function(e){var t=e.parentNode;t&&(t.removeChild(e),Pn(e))},setText:function(e,t){e.setText(t)},setElementText:function(e,t){e.setText(t)},createElement:function(e){return cr.createElement(e)},createComment:function(e){return cr.createComment(e)},createText:function(e){return cr.createTextNode(e)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},setScopeId:function(e,t){e.setStyleScope(t)}};var lr=/(?:Once|Passive|Capture)$/;function fr(e){var t,n=e,r={};if(lr.test(n))for(var i=n.match(lr);i;)n=n.slice(0,n.length-i[0].length),r[i[0].toLowerCase()]=!0,i=n.match(lr);return n=":"===n[2]?n.slice(3):n.slice(2),[(t=n,"".concat(t.charAt(0).toLowerCase()).concat(t.slice(1))),r]}function dr(e,t){var n=function e(n){P.callWithAsyncErrorHandling(e.value,t,P.ErrorCodes.NATIVE_EVENT_HANDLER,[n])};return n.value=e,n}function pr(e,t,n){var r=e,i={};if(!function(e,t,n){var r=!e,i=!t&&!n,o=JSON.stringify(t)===JSON.stringify(n);return r||i||o}(r,t,n))if(t&&!n)r.removeStyle();else{if(C.isString(n))throw new Error("Style is Not Object");n&&(Object.keys(n).forEach((function(e){var t=n[e];(function(e){return null==e})(t)||(i[P.camelize(e)]=t)})),r.removeStyle(!0),r.setStyles(i))}}function vr(e,t,n,r,i,o){switch(t){case"class":!function(e,t){var n=t;null===n&&(n=""),e.setAttribute("class",n)}(e,r);break;case"style":pr(e,n,r);break;default:C.isOn(t)&&!function(e){return["onInterceptTouchEvent","onInterceptPullUpEvent"].indexOf(e)>=0}(t)?function(e,t,n,r){var i,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=e,u=null!==(i=a._vei)&&void 0!==i?i:a._vei={},c=u[t];if(r&&c)c.value=r;else{var s=fr(t),l=j(s,2),f=l[0],d=l[1];if(r){u[t]=dr(r,o);var p=u[t];a.addEventListener(f,p,d)}else a.removeEventListener(f,c,d),u[t]=void 0}}(e,t,n,r,o):function(e,t,n,r){n!==r&&e.setAttribute(t,r)}(e,t,n,r)}}var hr=function(){return O((function e(t,n,r){var i=this;g(this,e),this.webSocketId=-1,this.protocol="",this.listeners={},this.url=t,this.readyState=0,this.webSocketCallbacks={},this.onWebSocketEvent=this.onWebSocketEvent.bind(this);var o=w({},r);if(Ye.$on("hippyWebsocketEvents",this.onWebSocketEvent),!t)throw new TypeError("Invalid WebSocket url");Array.isArray(n)&&n.length>0?(this.protocol=n.join(","),o["Sec-WebSocket-Protocol"]=this.protocol):"string"==typeof n&&(this.protocol=n,o["Sec-WebSocket-Protocol"]=this.protocol);var a={headers:o,url:t};Pt.callNativeWithPromise("websocket","connect",a).then((function(e){e&&0===e.code&&(i.webSocketId=e.id)}))}),[{key:"close",value:function(e,t){1===this.readyState&&(this.readyState=2,Pt.callNative("websocket","close",{id:this.webSocketId,code:e,reason:t}))}},{key:"send",value:function(e){if(1===this.readyState){if("string"!=typeof e)throw new TypeError("Unsupported websocket data type: ".concat(k(e)));Pt.callNative("websocket","send",{id:this.webSocketId,data:e})}}},{key:"onopen",set:function(e){this.addEventListener("open",e)}},{key:"onclose",set:function(e){this.addEventListener("close",e)}},{key:"onerror",set:function(e){this.addEventListener("error",e)}},{key:"onmessage",set:function(e){this.addEventListener("message",e)}},{key:"onWebSocketEvent",value:function(e){if("object"===k(e)&&e.id===this.webSocketId){var t=e.type;if("string"==typeof t){"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,Ye.$off("hippyWebsocketEvents",this.onWebSocketEvent));var n=this.webSocketCallbacks[t];(null==n?void 0:n.length)&&n.forEach((function(t){C.isFunction(t)&&t(e.data)}))}}}},{key:"addEventListener",value:function(e,t){if(function(e){return-1!==["open","close","message","error"].indexOf(e)}(e)){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t);var n=st(e);this.webSocketCallbacks[n]=this.listeners[e]}}}])}();function yr(e,t){var n=function(e){var t;if("comment"===e.name)return new or(e.props.text,e);if("Text"===e.name&&!e.tagName){var n=new Xn(e.props.text,e);return n.nodeType=Bn.TextNode,n.data=e.props.text,n}switch(e.tagName){case"input":case"textarea":return new ar(e.tagName,e);case"ul":return new ur(e.tagName,e);default:return new nr(null!==(t=e.tagName)&&void 0!==t?t:"",e)}}(e),r=t.filter((function(t){return t.pId===e.id})).sort((function(e,t){return e.index-t.index})),i=r.filter((function(e){return"comment"===e.name}));if(i.length){r=r.filter((function(e){return"comment"!==e.name}));for(var o=i.length-1;o>=0;o--)r.splice(i[o].index,0,i[o])}return r.forEach((function(e){n.appendChild(yr(e,t),!0)})),n}e.WebSocket=hr;var mr=['%c[Hippy-Vue-Next "unspecified"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"];function gr(e,t){if(Pt.isIOS()){var n=function(e){var t,n,r,i=e.iPhone;if((null==i?void 0:i.statusBar)&&(r=i.statusBar),null==r?void 0:r.disabled)return null;var o=new nr("div"),a=Pt.Dimensions.screen.statusBarHeight;Pt.screenIsVertical?o.setStyle("height",a):o.setStyle("height",0);var u=4282431619;if(Number.isInteger(u)&&(u=r.backgroundColor),o.setStyle("backgroundColor",u),"string"==typeof r.backgroundImage){var c=new nr("img");c.setStyle("width",Pt.Dimensions.screen.width),c.setStyle("height",a),c.setAttribute("src",null===(n=null===(t=e.iPhone)||void 0===t?void 0:t.statusBar)||void 0===n?void 0:n.backgroundImage),o.appendChild(c)}return o.addEventListener("layout",(function(){Pt.screenIsVertical?o.setStyle("height",a):o.setStyle("height",0)})),o}(e);if(n){var r=t.$el.parentNode;r.childNodes.length?r.insertBefore(n,r.childNodes[0]):r.appendChild(n)}}}var br=function(e,t){var n,r,i,o,a=e,u=Boolean(null===(n=null==t?void 0:t.ssrNodeList)||void 0===n?void 0:n.length);a.use(on),a.use(ir),"function"==typeof(null===(r=null==t?void 0:t.styleOptions)||void 0===r?void 0:r.beforeLoadStyle)&&(i=t.styleOptions.beforeLoadStyle,et=i),t.silent&&(o=t.silent,o),function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Ke=e}(t.trimWhitespace);var c=a.mount;return a.mount=function(e){var n;mn("rootContainer",e);var r,i=(null===(n=null==t?void 0:t.ssrNodeList)||void 0===n?void 0:n.length)?yr(j(r=t.ssrNodeList,1)[0],r):function(e){var t=cr.createElement("div");return t.id=e,t.style={display:"flex",flex:1},t}(e),o=c(i,u,!1);return mn("instance",o),u||gr(t,o),o},a.$start=function(){var e=d(l().mark((function e(n){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){Pt.hippyNativeRegister.regist(t.appName,(function(r){var i,o,u=r.__instanceId__;Ge.apply(void 0,mr.concat(["Start",t.appName,"with rootViewId",u,r]));var c,s=yn();(null==s?void 0:s.app)&&s.app.unmount(),c={rootViewId:u,superProps:r,app:a,ratioBaseWidth:null!==(o=null===(i=null==t?void 0:t.styleOptions)||void 0===i?void 0:i.ratioBaseWidth)&&void 0!==o?o:750},pn=c;var l={superProps:r,rootViewId:u};C.isFunction(n)?n(l):e(l)}))})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a};t.BackAndroid=Dt,t.ContentSizeEvent=Sn,t.EventBus=Ye,t.ExposureEvent=Nn,t.FocusEvent=En,t.HIPPY_DEBUG_ADDRESS=We,t.HIPPY_GLOBAL_DISPOSE_STYLE_NAME="__HIPPY_VUE_DISPOSE_STYLES__",t.HIPPY_GLOBAL_STYLE_NAME="__HIPPY_VUE_STYLES__",t.HIPPY_STATIC_PROTOCOL="hpfile://",t.HIPPY_UNIQUE_ID_KEY="hippyUniqueId",t.HIPPY_VUE_VERSION="unspecified",t.HippyEvent=gn,t.HippyKeyboardEvent=wn,t.HippyLayoutEvent=On,t.HippyLoadResourceEvent=_n,t.HippyTouchEvent=bn,t.IS_PROD=!0,t.ListViewEvent=Tn,t.NATIVE_COMPONENT_MAP=ze,t.Native=Pt,t.ViewPagerEvent=kn,t._setBeforeRenderToNative=function(e,t){C.isFunction(e)&&(1===t?rt=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))},t.createApp=function(e,t){var n=P.createRenderer(w({patchProp:vr},sr)).createApp(e);return br(n,t)},t.createHippyApp=br,t.createSSRApp=function(e,t){var n=P.createHydrationRenderer(w({patchProp:vr},sr)).createApp(e);return br(n,t)},t.eventIsKeyboardEvent=xn,t.getCssMap=Be,t.getTagComponent=Ut,t.isNativeTag=function(e){return rr.includes(e)},t.parseCSS=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{source:0},n=1,r=1;function i(e){var t=e.match(/\n/g);t&&(n+=t.length);var i=e.lastIndexOf("\n");r=~i?e.length-i:r+e.length}function o(t){var n=t.exec(e);if(!n)return null;var r=n[0];return i(r),e=e.slice(r.length),n}function a(){o(/^\s*/)}function u(){return function(i){return i.position={start:{line:n,column:r},end:{line:n,column:r},source:t.source,content:e},a(),i}}var c=[];function s(i){var o=w(w({},new Error("".concat(t.source,":").concat(n,":").concat(r,": ").concat(i))),{},{reason:i,filename:t.source,line:n,column:r,source:e});if(!t.silent)throw o;c.push(o)}function l(){var t=u();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return null;for(var n=2;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)n+=1;if(n+=2,""===e.charAt(n-1))return s("End of comment missing");var o=e.slice(2,n-2);return r+=2,i(o),e=e.slice(n),r+=2,t({type:"comment",comment:o})}function f(){for(var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=t||[];e=l();)!1!==e&&n.push(e);return n}function d(){var t,n=[];for(a(),f(n);e.length&&"}"!==e.charAt(0)&&(t=M()||b());)t&&(n.push(t),f(n));return n}function p(){var e=d();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:c}}}function v(){return o(/^{\s*/)}function h(){return o(/^}/)}function y(){var e=o(/^([^{]+)/);return e?e[0].trim().replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"‌")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")})):null}function m(){var e=u(),t=o(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+])?)\s*/);if(!t)return null;if(t=t[0].trim(),!o(/^:\s*/))return s("property missing ':'");var n=t.replace(X,""),r=C.camelize(n),i=z[r]||r,a=o(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]{0,500}?\)|[^};])+)/),c=a?a[0].trim().replace(X,""):"";switch(i){case"backgroundImage":var l=j(re(i,c),2);i=l[0],c=l[1];break;case"transform":var f=/((\w+)\s*\()/,d=/(?:\(['"]?)(.*?)(?:['"]?\))/,p=c;c=[],p.split(" ").forEach((function(e){if(f.test(e)){var t,n,r=f.exec(e),i=d.exec(e);if(r)t=j(r,3)[2];if(i)n=j(i,2)[1];0===n.indexOf(".")&&(n="0".concat(n)),parseFloat(n).toString()===n&&(n=parseFloat(n));var o={};o[t]=n,c.push(o)}else s("missing '('")}));break;case"fontWeight":break;case"shadowOffset":var v=c.split(" ").filter((function(e){return e})).map((function(e){return ee(e)})),h=j(v,1)[0],y=j(v,2)[1];y||(y=h),c={x:h,y:y};break;case"collapsable":c=Boolean(c);break;default:c=Q(c);["top","left","right","bottom","height","width","size","padding","margin","ratio","radius","offset","spread"].find((function(e){return i.toLowerCase().indexOf(e)>-1}))&&(c=ee(c))}var m=e({type:"declaration",value:c,property:i});return o(/^[;\s]*/),m}function g(){var e,t=[];if(!v())return s("missing '{'");for(f(t);e=m();)!1!==e&&(Array.isArray(e)?t=t.concat(e):t.push(e),f(t));return h()?t:s("missing '}'")}function b(){var e=u(),t=y();return t?(f(),e({type:"rule",selectors:t,declarations:g()})):s("selector missing")}function O(){for(var e,t=[],n=u();e=o(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),o(/^,\s*/);return t.length?n({type:"keyframe",values:t,declarations:g()}):null}function _(){var e=u(),t=o(/^@([-\w]+)?keyframes\s*/);if(!t)return null;var n=t[1];if(!(t=o(/^([-\w]+)\s*/)))return s("@keyframes missing name");var r,i=t[1];if(!v())return s("@keyframes missing '{'");for(var a=f();r=O();)a.push(r),a=a.concat(f());return h()?e({type:"keyframes",name:i,vendor:n,keyframes:a}):s("@keyframes missing '}'")}function S(){var e=u(),t=o(/^@supports *([^{]+)/);if(!t)return null;var n=t[1].trim();if(!v())return s("@supports missing '{'");var r=f().concat(d());return h()?e({type:"supports",supports:n,rules:r}):s("@supports missing '}'")}function E(){var e=u();if(!o(/^@host\s*/))return null;if(!v())return s("@host missing '{'");var t=f().concat(d());return h()?e({type:"host",rules:t}):s("@host missing '}'")}function k(){var e=u(),t=o(/^@media *([^{]+)/);if(!t)return null;var n=t[1].trim();if(!v())return s("@media missing '{'");var r=f().concat(d());return h()?e({type:"media",media:n,rules:r}):s("@media missing '}'")}function N(){var e=u(),t=o(/^@custom-media\s+(--[^\s]+)\s*([^{;]{1,200}?);/);return t?e({type:"custom-media",name:t[1].trim(),media:t[2].trim()}):null}function T(){var e=u();if(!o(/^@page */))return null;var t=y()||[];if(!v())return s("@page missing '{'");for(var n,r=f();n=m();)r.push(n),r=r.concat(f());return h()?e({type:"page",selectors:t,declarations:r}):s("@page missing '}'")}function x(){var e=u(),t=o(/^@([-\w]+)?document *([^{]+)/);if(!t)return null;var n=t[1].trim(),r=t[2].trim();if(!v())return s("@document missing '{'");var i=f().concat(d());return h()?e({type:"document",document:r,vendor:n,rules:i}):s("@document missing '}'")}function A(){var e=u();if(!o(/^@font-face\s*/))return null;if(!v())return s("@font-face missing '{'");for(var t,n=f();t=m();)n.push(t),n=n.concat(f());return h()?e({type:"font-face",declarations:n}):s("@font-face missing '}'")}function I(e){var t=new RegExp("^@".concat(e,"\\s*([^;]+);"));return function(){var n=u(),r=o(t);if(!r)return null;var i={type:e};return i[e]=r[1].trim(),n(i)}}var P=I("import"),R=I("charset"),L=I("namespace");function M(){return"@"!==e[0]?null:_()||k()||N()||S()||P()||R()||L()||x()||T()||E()||A()}return ie(p(),null)},t.registerElement=Bt,t.setScreenSize=function(t){var n;if(t.width&&t.height){var r=(null===(n=null==e?void 0:e.Hippy)||void 0===n?void 0:n.device).screen;r&&(r.width=t.width,r.height=t.height)}},t.translateColor=W}).call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/process/browser.js"))},"../../packages/hippy-vue-next/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js":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 ht})),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 pt})),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("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js");function o(e,t,n){return t=a(t),function(e,t){if(t&&("object"===p(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=Object.prototype.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=new Array(t);n1?o-1:0),u=1;u")})).join("\n"),i]);else{var s,l=["[Vue warn]: ".concat(e)].concat(a);i.length&&l.push.apply(l,["\n"].concat(c(p(i)))),(s=console).warn.apply(s,c(l))}Object(r.resetTracking)(),d=!1}}function h(){var e=f[f.length-1];if(!e)return[];for(var t=[];e;){var n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});var r=e.component&&e.component.parent;e=r&&r.vnode}return t}function p(e){var t=[];return e.forEach((function(e,n){var o,a,u,s,l,f,d,v,h,p;t.push.apply(t,c(0===n?[]:["\n"]).concat(c((l=(s=e).vnode,f=s.recurseCount,d=f>0?"... (".concat(f," recursive calls)"):"",v=!!l.component&&null==l.component.parent,h=" at <".concat(ii(l.component,l.type,v)),p=">"+d,l.props?[h].concat(c((o=l.props,a=[],(u=Object.keys(o)).slice(0,3).forEach((function(e){a.push.apply(a,c(function e(t,n,o){return Object(i.isString)(n)?(n=JSON.stringify(n),o?n:["".concat(t,"=").concat(n)]):"number"==typeof n||"boolean"==typeof n||null==n?o?n:["".concat(t,"=").concat(n)]:Object(r.isRef)(n)?(n=e(t,Object(r.toRaw)(n.value),!0),o?n:["".concat(t,"=Ref<"),n,">"]):Object(i.isFunction)(n)?["".concat(t,"=fn").concat(n.name?"<".concat(n.name,">"):"")]:(n=Object(r.toRaw)(n),o?n:["".concat(t,"="),n])}(e,o[e])))})),u.length>3&&a.push(" ..."),a)),[p]):[h+p]))))})),t}function y(e,t){}var m={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE"},g={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update"};function b(e,t,n,r){try{return r?e.apply(void 0,c(r)):e()}catch(e){_(e,t,n)}}function O(e,t,n,r){if(Object(i.isFunction)(e)){var o=b(e,t,n,r);return o&&Object(i.isPromise)(o)&&o.catch((function(e){_(e,t,n)})),o}if(Object(i.isArray)(e)){for(var a=[],u=0;u3&&void 0!==arguments[3])||arguments[3],o=t?t.vnode:null;if(t){for(var a=t.parent,u=t.proxy,c="https://vuejs.org/error-reference/#runtime-".concat(n);a;){var s=a.ec;if(s)for(var l=0;l>>1,i=k[r],o=D(i);o2&&void 0!==arguments[2]?arguments[2]:S?N+1:0;for(0;n1&&void 0!==arguments[1]?arguments[1]:$;if(!t)return e;if(e._n)return e;var n=function n(){n._d&&sr(-1);var r,i=W(t);try{r=e.apply(void 0,arguments)}finally{W(i),n._d&&sr(1)}return r};return n._n=!0,n._c=!0,n._d=!0,n}function J(e,t){if(null===$)return e;for(var n=ei($),r=e.dirs||(e.dirs=[]),o=0;o1){var c,s=o(t);try{for(s.s();!(c=s.n()).done;){var l=c.value;if(l.type!==nr){0,u=l,!0;break}}}catch(e){s.e(e)}finally{s.f()}}var f=Object(r.toRaw)(e),d=f.mode;if(a.isLeaving)return ae(u);var v=ue(u);if(!v)return ae(u);var h=oe(v,f,a,i,(function(e){return h=e}));ce(v,h);var p=i.subTree,y=p&&ue(p);if(y&&y.type!==nr&&!hr(v,y)&&function e(t){var n=t.subTree;return n.component?e(n.component):n}(i).type!==nr){var m=oe(y,f,a,i);if(ce(y,m),"out-in"===d&&v.type!==nr)return a.isLeaving=!0,m.afterLeave=function(){a.isLeaving=!1,!1!==i.update.active&&(i.effect.dirty=!0,i.update())},ae(u);"in-out"===d&&v.type!==nr&&(m.delayLeave=function(e,t,n){ie(a,y)[String(y.key)]=y,e[Z]=function(){t(),e[Z]=void 0,delete h.delayedLeave},h.delayedLeave=n})}return u}}}};function ie(e,t){var n=e.leavingVNodes,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function oe(e,t,n,r,o){var a=t.appear,u=t.mode,c=t.persisted,s=void 0!==c&&c,l=t.onBeforeEnter,f=t.onEnter,d=t.onAfterEnter,v=t.onEnterCancelled,h=t.onBeforeLeave,p=t.onLeave,y=t.onAfterLeave,m=t.onLeaveCancelled,g=t.onBeforeAppear,b=t.onAppear,_=t.onAfterAppear,w=t.onAppearCancelled,S=String(e.key),E=ie(n,e),k=function(e,t){e&&O(e,r,9,t)},N=function(e,t){var n=t[1];k(e,t),Object(i.isArray)(e)?e.every((function(e){return e.length<=1}))&&n():e.length<=1&&n()},T={mode:u,persisted:s,beforeEnter:function(t){var r=l;if(!n.isMounted){if(!a)return;r=g||l}t[Z]&&t[Z](!0);var i=E[S];i&&hr(e,i)&&i.el[Z]&&i.el[Z](),k(r,[t])},enter:function(e){var t=f,r=d,i=v;if(!n.isMounted){if(!a)return;t=b||f,r=_||d,i=w||v}var o=!1,u=e[Q]=function(t){o||(o=!0,k(t?i:r,[e]),T.delayedLeave&&T.delayedLeave(),e[Q]=void 0)};t?N(t,[e,u]):u()},leave:function(t,r){var i=String(e.key);if(t[Q]&&t[Q](!0),n.isUnmounting)return r();k(h,[t]);var o=!1,a=t[Z]=function(n){o||(o=!0,r(),k(n?m:y,[t]),t[Z]=void 0,E[i]===e&&delete E[i])};E[i]=e,p?N(p,[t,a]):a()},clone:function(e){var i=oe(e,t,n,r,o);return o&&o(i),i}};return T}function ae(e){if(he(e))return(e=wr(e)).children=null,e}function ue(e){if(!he(e))return e;var t=e.shapeFlag,n=e.children;if(n){if(16&t)return n[0];if(32&t&&Object(i.isFunction)(n.default))return n.default()}}function ce(e,t){6&e.shapeFlag&&e.component?ce(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function se(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=[],i=0,o=0;o1)for(var c=0;c0&&void 0!==arguments[0]&&arguments[0];v(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){v(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,p=l(c);try{for(p.s();!(d=p.n()).done;){var v=d.value;v&&U(v,4)}}catch(e){p.e(e)}finally{p.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];v(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 v(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 v(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 pe(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 ve(){var e=Ye(this),t=0!==e.size,n=e.clear();return t&&K(e,"clear",void 0,void 0),n}function he(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:pe,clear:ve,forEach:he(!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:pe,clear:ve,forEach:he(!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:he(!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:he(!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;v(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){v(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;v(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]=vt(e,n);return t}var ft=function(){return y((function e(t,n,r){v(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){v(this,e),this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}),[{key:"value",get:function(){return this._getter()}}])}();function pt(e,t,n){return Ze(e)?e:Object(i.isFunction)(e)?new dt(e):Object(i.isObject)(e)&&arguments.length>1?vt(e,t,n):Qe(e)}function vt(e,t,n){var r=e[t];return Ze(r)?r:new ft(e,t,n)}var ht=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"}},"../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js":function(e,t,n){"use strict";n.r(t),n.d(t,"BaseTransition",(function(){return re})),n.d(t,"BaseTransitionPropsValidators",(function(){return ne})),n.d(t,"Comment",(function(){return nr})),n.d(t,"DeprecationTypes",(function(){return bi})),n.d(t,"ErrorCodes",(function(){return m})),n.d(t,"ErrorTypeStrings",(function(){return pi})),n.d(t,"Fragment",(function(){return er})),n.d(t,"KeepAlive",(function(){return he})),n.d(t,"Static",(function(){return rr})),n.d(t,"Suspense",(function(){return Kn})),n.d(t,"Teleport",(function(){return rn})),n.d(t,"Text",(function(){return tr})),n.d(t,"assertNumber",(function(){return y})),n.d(t,"callWithAsyncErrorHandling",(function(){return O})),n.d(t,"callWithErrorHandling",(function(){return b})),n.d(t,"cloneVNode",(function(){return wr})),n.d(t,"compatUtils",(function(){return gi})),n.d(t,"computed",(function(){return ai})),n.d(t,"createBlock",(function(){return dr})),n.d(t,"createCommentVNode",(function(){return kr})),n.d(t,"createElementBlock",(function(){return fr})),n.d(t,"createElementVNode",(function(){return gr})),n.d(t,"createHydrationRenderer",(function(){return yn})),n.d(t,"createPropsRestProxy",(function(){return lt})),n.d(t,"createRenderer",(function(){return hn})),n.d(t,"createSlots",(function(){return He})),n.d(t,"createStaticVNode",(function(){return Er})),n.d(t,"createTextVNode",(function(){return Sr})),n.d(t,"createVNode",(function(){return br})),n.d(t,"defineAsyncComponent",(function(){return de})),n.d(t,"defineComponent",(function(){return le})),n.d(t,"defineEmits",(function(){return Ze})),n.d(t,"defineExpose",(function(){return Qe})),n.d(t,"defineModel",(function(){return nt})),n.d(t,"defineOptions",(function(){return et})),n.d(t,"defineProps",(function(){return Xe})),n.d(t,"defineSlots",(function(){return tt})),n.d(t,"devtools",(function(){return vi})),n.d(t,"getCurrentInstance",(function(){return Fr})),n.d(t,"getTransitionRawChildren",(function(){return se})),n.d(t,"guardReactiveProps",(function(){return _r})),n.d(t,"h",(function(){return ui})),n.d(t,"handleError",(function(){return _})),n.d(t,"hasInjectionContext",(function(){return At})),n.d(t,"initCustomFormatter",(function(){return ci})),n.d(t,"inject",(function(){return jt})),n.d(t,"isMemoSame",(function(){return li})),n.d(t,"isRuntimeOnly",(function(){return Jr})),n.d(t,"isVNode",(function(){return pr})),n.d(t,"mergeDefaults",(function(){return ct})),n.d(t,"mergeModels",(function(){return st})),n.d(t,"mergeProps",(function(){return jr})),n.d(t,"nextTick",(function(){return C})),n.d(t,"onActivated",(function(){return me})),n.d(t,"onBeforeMount",(function(){return ke})),n.d(t,"onBeforeUnmount",(function(){return je})),n.d(t,"onBeforeUpdate",(function(){return Te})),n.d(t,"onDeactivated",(function(){return ge})),n.d(t,"onErrorCaptured",(function(){return Re})),n.d(t,"onMounted",(function(){return Ne})),n.d(t,"onRenderTracked",(function(){return Pe})),n.d(t,"onRenderTriggered",(function(){return Ce})),n.d(t,"onServerPrefetch",(function(){return Ie})),n.d(t,"onUnmounted",(function(){return Ae})),n.d(t,"onUpdated",(function(){return xe})),n.d(t,"openBlock",(function(){return ar})),n.d(t,"popScopeId",(function(){return K})),n.d(t,"provide",(function(){return xt})),n.d(t,"pushScopeId",(function(){return z})),n.d(t,"queuePostFlushCb",(function(){return L})),n.d(t,"registerRuntimeCompiler",(function(){return qr})),n.d(t,"renderList",(function(){return Ue})),n.d(t,"renderSlot",(function(){return $e})),n.d(t,"resolveComponent",(function(){return Le})),n.d(t,"resolveDirective",(function(){return De})),n.d(t,"resolveDynamicComponent",(function(){return Fe})),n.d(t,"resolveFilter",(function(){return mi})),n.d(t,"resolveTransitionHooks",(function(){return oe})),n.d(t,"setBlockTracking",(function(){return sr})),n.d(t,"setDevtoolsHook",(function(){return hi})),n.d(t,"setTransitionHooks",(function(){return ce})),n.d(t,"ssrContextKey",(function(){return Sn})),n.d(t,"ssrUtils",(function(){return yi})),n.d(t,"toHandlers",(function(){return We})),n.d(t,"transformVNodeArgs",(function(){return hr})),n.d(t,"useAttrs",(function(){return ot})),n.d(t,"useModel",(function(){return Rn})),n.d(t,"useSSRContext",(function(){return En})),n.d(t,"useSlots",(function(){return it})),n.d(t,"useTransitionState",(function(){return ee})),n.d(t,"version",(function(){return fi})),n.d(t,"warn",(function(){return di})),n.d(t,"watch",(function(){return jn})),n.d(t,"watchEffect",(function(){return kn})),n.d(t,"watchPostEffect",(function(){return Nn})),n.d(t,"watchSyncEffect",(function(){return Tn})),n.d(t,"withAsyncContext",(function(){return ft})),n.d(t,"withCtx",(function(){return q})),n.d(t,"withDefaults",(function(){return rt})),n.d(t,"withDirectives",(function(){return J})),n.d(t,"withMemo",(function(){return si})),n.d(t,"withScopeId",(function(){return G}));var r=n("../../packages/hippy-vue-next/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js");n.d(t,"EffectScope",(function(){return r.EffectScope})),n.d(t,"ReactiveEffect",(function(){return r.ReactiveEffect})),n.d(t,"TrackOpTypes",(function(){return r.TrackOpTypes})),n.d(t,"TriggerOpTypes",(function(){return r.TriggerOpTypes})),n.d(t,"customRef",(function(){return r.customRef})),n.d(t,"effect",(function(){return r.effect})),n.d(t,"effectScope",(function(){return r.effectScope})),n.d(t,"getCurrentScope",(function(){return r.getCurrentScope})),n.d(t,"isProxy",(function(){return r.isProxy})),n.d(t,"isReactive",(function(){return r.isReactive})),n.d(t,"isReadonly",(function(){return r.isReadonly})),n.d(t,"isRef",(function(){return r.isRef})),n.d(t,"isShallow",(function(){return r.isShallow})),n.d(t,"markRaw",(function(){return r.markRaw})),n.d(t,"onScopeDispose",(function(){return r.onScopeDispose})),n.d(t,"proxyRefs",(function(){return r.proxyRefs})),n.d(t,"reactive",(function(){return r.reactive})),n.d(t,"readonly",(function(){return r.readonly})),n.d(t,"ref",(function(){return r.ref})),n.d(t,"shallowReactive",(function(){return r.shallowReactive})),n.d(t,"shallowReadonly",(function(){return r.shallowReadonly})),n.d(t,"shallowRef",(function(){return r.shallowRef})),n.d(t,"stop",(function(){return r.stop})),n.d(t,"toRaw",(function(){return r.toRaw})),n.d(t,"toRef",(function(){return r.toRef})),n.d(t,"toRefs",(function(){return r.toRefs})),n.d(t,"toValue",(function(){return r.toValue})),n.d(t,"triggerRef",(function(){return r.triggerRef})),n.d(t,"unref",(function(){return r.unref}));var i=n("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js");function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(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 a(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)||s(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 u(e){return(u="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)}function c(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(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 s(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.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)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?o-1:0),u=1;u")})).join("\n"),i]);else{var s,l=["[Vue warn]: ".concat(e)].concat(a);i.length&&l.push.apply(l,["\n"].concat(c(h(i)))),(s=console).warn.apply(s,c(l))}Object(r.resetTracking)(),d=!1}}function v(){var e=f[f.length-1];if(!e)return[];for(var t=[];e;){var n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});var r=e.component&&e.component.parent;e=r&&r.vnode}return t}function h(e){var t=[];return e.forEach((function(e,n){var o,a,u,s,l,f,d,p,v,h;t.push.apply(t,c(0===n?[]:["\n"]).concat(c((l=(s=e).vnode,f=s.recurseCount,d=f>0?"... (".concat(f," recursive calls)"):"",p=!!l.component&&null==l.component.parent,v=" at <".concat(ii(l.component,l.type,p)),h=">"+d,l.props?[v].concat(c((o=l.props,a=[],(u=Object.keys(o)).slice(0,3).forEach((function(e){a.push.apply(a,c(function e(t,n,o){return Object(i.isString)(n)?(n=JSON.stringify(n),o?n:["".concat(t,"=").concat(n)]):"number"==typeof n||"boolean"==typeof n||null==n?o?n:["".concat(t,"=").concat(n)]:Object(r.isRef)(n)?(n=e(t,Object(r.toRaw)(n.value),!0),o?n:["".concat(t,"=Ref<"),n,">"]):Object(i.isFunction)(n)?["".concat(t,"=fn").concat(n.name?"<".concat(n.name,">"):"")]:(n=Object(r.toRaw)(n),o?n:["".concat(t,"="),n])}(e,o[e])))})),u.length>3&&a.push(" ..."),a)),[h]):[v+h]))))})),t}function y(e,t){}var m={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE"},g={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update"};function b(e,t,n,r){try{return r?e.apply(void 0,c(r)):e()}catch(e){_(e,t,n)}}function O(e,t,n,r){if(Object(i.isFunction)(e)){var o=b(e,t,n,r);return o&&Object(i.isPromise)(o)&&o.catch((function(e){_(e,t,n)})),o}if(Object(i.isArray)(e)){for(var a=[],u=0;u3&&void 0!==arguments[3])||arguments[3],o=t?t.vnode:null;if(t){for(var a=t.parent,u=t.proxy,c="https://vuejs.org/error-reference/#runtime-".concat(n);a;){var s=a.ec;if(s)for(var l=0;l>>1,i=k[r],o=D(i);o2&&void 0!==arguments[2]?arguments[2]:S?N+1:0;for(0;n1&&void 0!==arguments[1]?arguments[1]:$;if(!t)return e;if(e._n)return e;var n=function n(){n._d&&sr(-1);var r,i=W(t);try{r=e.apply(void 0,arguments)}finally{W(i),n._d&&sr(1)}return r};return n._n=!0,n._c=!0,n._d=!0,n}function J(e,t){if(null===$)return e;for(var n=ei($),r=e.dirs||(e.dirs=[]),o=0;o1){var c,s=o(t);try{for(s.s();!(c=s.n()).done;){var l=c.value;if(l.type!==nr){0,u=l,!0;break}}}catch(e){s.e(e)}finally{s.f()}}var f=Object(r.toRaw)(e),d=f.mode;if(a.isLeaving)return ae(u);var p=ue(u);if(!p)return ae(u);var v=oe(p,f,a,i,(function(e){return v=e}));ce(p,v);var h=i.subTree,y=h&&ue(h);if(y&&y.type!==nr&&!vr(p,y)&&function e(t){var n=t.subTree;return n.component?e(n.component):n}(i).type!==nr){var m=oe(y,f,a,i);if(ce(y,m),"out-in"===d&&p.type!==nr)return a.isLeaving=!0,m.afterLeave=function(){a.isLeaving=!1,!1!==i.update.active&&(i.effect.dirty=!0,i.update())},ae(u);"in-out"===d&&p.type!==nr&&(m.delayLeave=function(e,t,n){ie(a,y)[String(y.key)]=y,e[Z]=function(){t(),e[Z]=void 0,delete v.delayedLeave},v.delayedLeave=n})}return u}}}};function ie(e,t){var n=e.leavingVNodes,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function oe(e,t,n,r,o){var a=t.appear,u=t.mode,c=t.persisted,s=void 0!==c&&c,l=t.onBeforeEnter,f=t.onEnter,d=t.onAfterEnter,p=t.onEnterCancelled,v=t.onBeforeLeave,h=t.onLeave,y=t.onAfterLeave,m=t.onLeaveCancelled,g=t.onBeforeAppear,b=t.onAppear,_=t.onAfterAppear,w=t.onAppearCancelled,S=String(e.key),E=ie(n,e),k=function(e,t){e&&O(e,r,9,t)},N=function(e,t){var n=t[1];k(e,t),Object(i.isArray)(e)?e.every((function(e){return e.length<=1}))&&n():e.length<=1&&n()},T={mode:u,persisted:s,beforeEnter:function(t){var r=l;if(!n.isMounted){if(!a)return;r=g||l}t[Z]&&t[Z](!0);var i=E[S];i&&vr(e,i)&&i.el[Z]&&i.el[Z](),k(r,[t])},enter:function(e){var t=f,r=d,i=p;if(!n.isMounted){if(!a)return;t=b||f,r=_||d,i=w||p}var o=!1,u=e[Q]=function(t){o||(o=!0,k(t?i:r,[e]),T.delayedLeave&&T.delayedLeave(),e[Q]=void 0)};t?N(t,[e,u]):u()},leave:function(t,r){var i=String(e.key);if(t[Q]&&t[Q](!0),n.isUnmounting)return r();k(v,[t]);var o=!1,a=t[Z]=function(n){o||(o=!0,r(),k(n?m:y,[t]),t[Z]=void 0,E[i]===e&&delete E[i])};E[i]=e,h?N(h,[t,a]):a()},clone:function(e){var i=oe(e,t,n,r,o);return o&&o(i),i}};return T}function ae(e){if(ve(e))return(e=wr(e)).children=null,e}function ue(e){if(!ve(e))return e;var t=e.shapeFlag,n=e.children;if(n){if(16&t)return n[0];if(32&t&&Object(i.isFunction)(n.default))return n.default()}}function ce(e,t){6&e.shapeFlag&&e.component?ce(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function se(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=[],i=0,o=0;o1)for(var c=0;c1)return s=null,t;if(!(vr(r)&&(4&r.shapeFlag||128&r.shapeFlag)))return s=null,r;var i=we(r),o=i.type,a=ri(fe(i)?i.type.__asyncResolved||{}:o),l=e.include,f=e.exclude,d=e.max;if(l&&(!a||!ye(l,a))||f&&a&&ye(f,a))return s=i,r;var v=null==i.key?o:i.key,h=u.get(v);return i.el&&(i=wr(i),128&r.shapeFlag&&(r.ssContent=i)),b=v,h?(i.el=h.el,i.component=h.component,i.transition&&ce(i,i.transition),i.shapeFlag|=512,c.delete(v),c.add(v)):(c.add(v),d&&c.size>parseInt(d,10)&&g(c.values().next().value)),i.shapeFlag|=256,s=i,Wn(r.type)?r:i}}};function ye(e,t){return Object(i.isArray)(e)?e.some((function(e){return ye(e,t)})):Object(i.isString)(e)?e.split(",").includes(t):!!Object(i.isRegExp)(e)&&e.test(t)}function me(e,t){be(e,"a",t)}function ge(e,t){be(e,"da",t)}function be(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Mr,r=e.__wdc||(e.__wdc=function(){for(var t=n;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Se(t,r,n),n)for(var i=n.parent;i&&i.parent;)he(i.parent.vnode)&&Oe(r,t,n,i),i=i.parent}function Oe(e,t,n,r){var o=Se(t,e,r,!0);Ae((function(){Object(i.remove)(r[t],o)}),n)}function _e(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function we(e){return 128&e.shapeFlag?e.ssContent:e}function Se(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Mr,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(n){var o=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=function(){Object(r.pauseTracking)();for(var i=Br(n),o=arguments.length,a=new Array(o),u=0;u1&&void 0!==arguments[1]?arguments[1]:Mr;Wr&&"sp"!==e||Se(e,(function(){return t.apply(void 0,arguments)}),n)}},ke=Ee("bm"),Ne=Ee("m"),Te=Ee("bu"),xe=Ee("u"),je=Ee("bum"),Ae=Ee("um"),Ie=Ee("sp"),Ce=Ee("rtg"),Pe=Ee("rtc");function Re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mr;Se("ec",e,t)}function Le(e,t){return Ve("components",e,!0,t)||e}var Me=Symbol.for("v-ndc");function Fe(e){return Object(i.isString)(e)?Ve("components",e,!1)||e:e||Me}function De(e){return Ve("directives",e)}function Ve(e,t){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=$||Mr;if(r){var o=r.type;if("components"===e){var a=ri(o,!1);if(a&&(a===t||a===Object(i.camelize)(t)||a===Object(i.capitalize)(Object(i.camelize)(t))))return o}var u=Be(r[e]||o[e],t)||Be(r.appContext[e],t);return!u&&n?o:u}}function Be(e,t){return e&&(e[t]||e[Object(i.camelize)(t)]||e[Object(i.capitalize)(Object(i.camelize)(t))])}function Ue(e,t,n,r){var o,a=n&&n[r];if(Object(i.isArray)(e)||Object(i.isString)(e)){o=new Array(e.length);for(var u=0,c=e.length;u2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;if($.isCE||$.parent&&fe($.parent)&&$.parent.isCE)return"default"!==t&&(n.name=t),br("slot",n,r&&r());var o=e[t];o&&o._c&&(o._d=!1),ar();var a=o&&Ye(o(n)),u=dr(er,{key:(n.key||a&&a.key||"_".concat(t))+(!a&&r?"_fb":"")},a||(r?r():[]),a&&1===e._?64:-2);return!i&&u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),o&&o._c&&(o._d=!0),u}function Ye(e){return e.some((function(e){return!vr(e)||e.type!==nr&&!(e.type===er&&!Ye(e.children))}))?e:null}function We(e,t){var n={};for(var r in e)n[t&&/[A-Z]/.test(r)?"on:".concat(r):Object(i.toHandlerKey)(r)]=e[r];return n}var ze=function e(t){return t?Hr(t)?ei(t):e(t.parent):null},Ke=Object(i.extend)(Object.create(null),{$:function(e){return e},$el:function(e){return e.vnode.el},$data:function(e){return e.data},$props:function(e){return e.props},$attrs:function(e){return e.attrs},$slots:function(e){return e.slots},$refs:function(e){return e.refs},$parent:function(e){return ze(e.parent)},$root:function(e){return ze(e.root)},$emit:function(e){return e.emit},$options:function(e){return __VUE_OPTIONS_API__?yt(e):e.type},$forceUpdate:function(e){return e.f||(e.f=function(){e.effect.dirty=!0,P(e.update)})},$nextTick:function(e){return e.n||(e.n=C.bind(e.proxy))},$watch:function(e){return __VUE_OPTIONS_API__?In.bind(e):i.NOOP}}),Ge=function(e,t){return e!==i.EMPTY_OBJ&&!e.__isScriptSetup&&Object(i.hasOwn)(e,t)},qe={get:function(e,t){var n=e._;if("__v_skip"===t)return!0;var o,a=n.ctx,u=n.setupState,c=n.data,s=n.props,l=n.accessCache,f=n.type,d=n.appContext;if("$"!==t[0]){var v=l[t];if(void 0!==v)switch(v){case 1:return u[t];case 2:return c[t];case 4:return a[t];case 3:return s[t]}else{if(Ge(u,t))return l[t]=1,u[t];if(c!==i.EMPTY_OBJ&&Object(i.hasOwn)(c,t))return l[t]=2,c[t];if((o=n.propsOptions[0])&&Object(i.hasOwn)(o,t))return l[t]=3,s[t];if(a!==i.EMPTY_OBJ&&Object(i.hasOwn)(a,t))return l[t]=4,a[t];__VUE_OPTIONS_API__&&!dt||(l[t]=0)}}var h,p,y=Ke[t];return y?("$attrs"===t&&Object(r.track)(n.attrs,"get",""),y(n)):(h=f.__cssModules)&&(h=h[t])?h:a!==i.EMPTY_OBJ&&Object(i.hasOwn)(a,t)?(l[t]=4,a[t]):(p=d.config.globalProperties,Object(i.hasOwn)(p,t)?p[t]:void 0)},set:function(e,t,n){var r=e._,o=r.data,a=r.setupState,u=r.ctx;return Ge(a,t)?(a[t]=n,!0):o!==i.EMPTY_OBJ&&Object(i.hasOwn)(o,t)?(o[t]=n,!0):!Object(i.hasOwn)(r.props,t)&&(("$"!==t[0]||!(t.slice(1)in r))&&(u[t]=n,!0))},has:function(e,t){var n,r=e._,o=r.data,a=r.setupState,u=r.accessCache,c=r.ctx,s=r.appContext,l=r.propsOptions;return!!u[t]||o!==i.EMPTY_OBJ&&Object(i.hasOwn)(o,t)||Ge(a,t)||(n=l[0])&&Object(i.hasOwn)(n,t)||Object(i.hasOwn)(c,t)||Object(i.hasOwn)(Ke,t)||Object(i.hasOwn)(s.config.globalProperties,t)},defineProperty:function(e,t,n){return null!=n.get?e._.accessCache[t]=0:Object(i.hasOwn)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};var Je=Object(i.extend)({},qe,{get:function(e,t){if(t!==Symbol.unscopables)return qe.get(e,t,e)},has:function(e,t){var n="_"!==t[0]&&!Object(i.isGloballyAllowed)(t);return n}});function Xe(){return null}function Ze(){return null}function Qe(e){0}function et(e){0}function tt(){return null}function nt(){0}function rt(e,t){return null}function it(){return at().slots}function ot(){return at().attrs}function at(){var e=Fr();return e.setupContext||(e.setupContext=Qr(e))}function ut(e){return Object(i.isArray)(e)?e.reduce((function(e,t){return e[t]=null,e}),{}):e}function ct(e,t){var n=ut(e);for(var r in t)if(!r.startsWith("__skip")){var o=n[r];o?Object(i.isArray)(o)||Object(i.isFunction)(o)?o=n[r]={type:o,default:t[r]}:o.default=t[r]:null===o&&(o=n[r]={default:t[r]}),o&&t["__skip_".concat(r)]&&(o.skipFactory=!0)}return n}function st(e,t){return e&&t?Object(i.isArray)(e)&&Object(i.isArray)(t)?e.concat(t):Object(i.extend)({},ut(e),ut(t)):e||t}function lt(e,t){var n={},r=function(r){t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:function(){return e[r]}})};for(var i in e)r(i);return n}function ft(e){var t=Fr();var n=e();return Ur(),Object(i.isPromise)(n)&&(n=n.catch((function(e){throw Br(t),e}))),[n,function(){return Br(t)}]}var dt=!0;function vt(e){var t=yt(e),n=e.proxy,o=e.ctx;dt=!1,t.beforeCreate&&ht(t.beforeCreate,e,"bc");var a=t.data,u=t.computed,c=t.methods,s=t.watch,l=t.provide,f=t.inject,d=t.created,v=t.beforeMount,h=t.mounted,p=t.beforeUpdate,y=t.updated,m=t.activated,g=t.deactivated,b=(t.beforeDestroy,t.beforeUnmount),O=(t.destroyed,t.unmounted),_=t.render,w=t.renderTracked,S=t.renderTriggered,E=t.errorCaptured,k=t.serverPrefetch,N=t.expose,T=t.inheritAttrs,x=t.components,j=t.directives;t.filters;if(f&&function(e,t){arguments.length>2&&void 0!==arguments[2]||i.NOOP;Object(i.isArray)(e)&&(e=Ot(e));var n=function(){var n,a=e[o];n=Object(i.isObject)(a)?"default"in a?jt(a.from||o,a.default,!0):jt(a.from||o):jt(a),Object(r.isRef)(n)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:function(){return n.value},set:function(e){return n.value=e}}):t[o]=n};for(var o in e)n()}(f,o,null),c)for(var A in c){var I=c[A];Object(i.isFunction)(I)&&(o[A]=I.bind(n))}if(a){0;var C=a.call(n,n);if(Object(i.isObject)(C))e.data=Object(r.reactive)(C);else;}if(dt=!0,u){var P=function(e){var t=u[e],r=Object(i.isFunction)(t)?t.bind(n,n):Object(i.isFunction)(t.get)?t.get.bind(n,n):i.NOOP;var a=!Object(i.isFunction)(t)&&Object(i.isFunction)(t.set)?t.set.bind(n):i.NOOP,c=ai({get:r,set:a});Object.defineProperty(o,e,{enumerable:!0,configurable:!0,get:function(){return c.value},set:function(e){return c.value=e}})};for(var R in u)P(R)}if(s)for(var L in s)pt(s[L],o,n,L);if(l){var M=Object(i.isFunction)(l)?l.call(n):l;Reflect.ownKeys(M).forEach((function(e){xt(e,M[e])}))}function F(e,t){Object(i.isArray)(t)?t.forEach((function(t){return e(t.bind(n))})):t&&e(t.bind(n))}if(d&&ht(d,e,"c"),F(ke,v),F(Ne,h),F(Te,p),F(xe,y),F(me,m),F(ge,g),F(Re,E),F(Pe,w),F(Ce,S),F(je,b),F(Ae,O),F(Ie,k),Object(i.isArray)(N))if(N.length){var D=e.exposed||(e.exposed={});N.forEach((function(e){Object.defineProperty(D,e,{get:function(){return n[e]},set:function(t){return n[e]=t}})}))}else e.exposed||(e.exposed={});_&&e.render===i.NOOP&&(e.render=_),null!=T&&(e.inheritAttrs=T),x&&(e.components=x),j&&(e.directives=j)}function ht(e,t,n){O(Object(i.isArray)(e)?e.map((function(e){return e.bind(t.proxy)})):e.bind(t.proxy),t,n)}function pt(e,t,n,r){var o=r.includes(".")?Cn(n,r):function(){return n[r]};if(Object(i.isString)(e)){var a=t[e];Object(i.isFunction)(a)&&jn(o,a)}else if(Object(i.isFunction)(e))jn(o,e.bind(n));else if(Object(i.isObject)(e))if(Object(i.isArray)(e))e.forEach((function(e){return pt(e,t,n,r)}));else{var u=Object(i.isFunction)(e.handler)?e.handler.bind(n):t[e.handler];Object(i.isFunction)(u)&&jn(o,u,e)}else 0}function yt(e){var t,n=e.type,r=n.mixins,o=n.extends,a=e.appContext,u=a.mixins,c=a.optionsCache,s=a.config.optionMergeStrategies,l=c.get(n);return l?t=l:u.length||r||o?(t={},u.length&&u.forEach((function(e){return mt(t,e,s,!0)})),mt(t,n,s)):t=n,Object(i.isObject)(n)&&c.set(n,t),t}function mt(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=t.mixins,o=t.extends;for(var a in o&&mt(e,o,n,!0),i&&i.forEach((function(t){return mt(e,t,n,!0)})),t)if(r&&"expose"===a);else{var u=gt[a]||n&&n[a];e[a]=u?u(e[a],t[a]):t[a]}return e}var gt={data:bt,props:St,emits:St,methods:wt,computed:wt,beforeCreate:_t,created:_t,beforeMount:_t,mounted:_t,beforeUpdate:_t,updated:_t,beforeDestroy:_t,beforeUnmount:_t,destroyed:_t,unmounted:_t,activated:_t,deactivated:_t,errorCaptured:_t,serverPrefetch:_t,components:wt,directives:wt,watch:function(e,t){if(!e)return t;if(!t)return e;var n=Object(i.extend)(Object.create(null),e);for(var r in t)n[r]=_t(e[r],t[r]);return n},provide:bt,inject:function(e,t){return wt(Ot(e),Ot(t))}};function bt(e,t){return t?e?function(){return Object(i.extend)(Object(i.isFunction)(e)?e.call(this,this):e,Object(i.isFunction)(t)?t.call(this,this):t)}:t:e}function Ot(e){if(Object(i.isArray)(e)){for(var t={},n=0;n1&&void 0!==arguments[1]?arguments[1]:null;Object(i.isFunction)(n)||(n=Object(i.extend)({},n)),null==r||Object(i.isObject)(r)||(r=null);var o=Et(),a=new WeakSet,u=!1,c=o.app={_uid:kt++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:fi,get config(){return o.config},set config(e){0},use:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r2&&void 0!==arguments[2]&&arguments[2],r=Mr||$;if(r||Tt){var o=r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Tt._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Object(i.isFunction)(t)?t.call(r&&r.proxy):t}else 0}function At(){return!!(Mr||$||Tt)}var It={},Ct=function(){return Object.create(It)},Pt=function(e){return Object.getPrototypeOf(e)===It};function Rt(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o={},a=Ct();for(var u in e.propsDefaults=Object.create(null),Lt(e,t,o,a),e.propsOptions[0])u in o||(o[u]=void 0);n?e.props=i?o:Object(r.shallowReactive)(o):e.type.props?e.props=o:e.props=a,e.attrs=a}function Lt(e,t,n,o){var u,c=a(e.propsOptions,2),s=c[0],l=c[1],f=!1;if(t)for(var d in t)if(!Object(i.isReservedProp)(d)){var v=t[d],h=void 0;s&&Object(i.hasOwn)(s,h=Object(i.camelize)(d))?l&&l.includes(h)?(u||(u={}))[h]=v:n[h]=v:Dn(e.emitsOptions,d)||d in o&&v===o[d]||(o[d]=v,f=!0)}if(l)for(var p=Object(r.toRaw)(n),y=u||i.EMPTY_OBJ,m=0;m2&&void 0!==arguments[2]&&arguments[2],r=__VUE_OPTIONS_API__&&n?Ft:t.propsCache,o=r.get(e);if(o)return o;var u=e.props,s={},l=[],f=!1;if(__VUE_OPTIONS_API__&&!Object(i.isFunction)(e)){var d=function(e){f=!0;var n=a(Dt(e,t,!0),2),r=n[0],o=n[1];Object(i.extend)(s,r),o&&l.push.apply(l,c(o))};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!u&&!f)return Object(i.isObject)(e)&&r.set(e,i.EMPTY_ARR),i.EMPTY_ARR;if(Object(i.isArray)(u))for(var v=0;v-1,g[1]=O<0||b-1||Object(i.hasOwn)(g,"default"))&&l.push(y)}}}var _=[s,l];return Object(i.isObject)(e)&&r.set(e,_),_}function Vt(e){return"$"!==e[0]&&!Object(i.isReservedProp)(e)}function Bt(e){return null===e?"null":"function"==typeof e?e.name||"":"object"===u(e)&&e.constructor&&e.constructor.name||""}function Ut(e,t){return Bt(e)===Bt(t)}function Ht(e,t){return Object(i.isArray)(t)?t.findIndex((function(t){return Ut(t,e)})):Object(i.isFunction)(t)&&Ut(t,e)?0:-1}var $t=function(e){return"_"===e[0]||"$stable"===e},Yt=function(e){return Object(i.isArray)(e)?e.map(Nr):[Nr(e)]},Wt=function(e,t,n){var r=e._ctx,o=function(){if($t(a))return 1;var n=e[a];if(Object(i.isFunction)(n))t[a]=function(e,t,n){if(t._n)return t;var r=q((function(){return Yt(t.apply(void 0,arguments))}),n);return r._c=!1,r}(0,n,r);else if(null!=n){0;var o=Yt(n);t[a]=function(){return o}}};for(var a in e)o()},zt=function(e,t){var n=Yt(t);e.slots.default=function(){return n}},Kt=function(e,t,n){for(var r in t)(n||"_"!==r)&&(e[r]=t[r])},Gt=function(e,t,n){var r=e.slots=Ct();if(32&e.vnode.shapeFlag){var o=t._;o?(Kt(r,t,n),n&&Object(i.def)(r,"_",o,!0)):Wt(t,r)}else t&&zt(e,t)};function qt(e,t,n,o){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(Object(i.isArray)(e))e.forEach((function(e,r){return qt(e,t&&(Object(i.isArray)(t)?t[r]:t),n,o,a)}));else if(!fe(o)||a){var u=4&o.shapeFlag?ei(o.component):o.el,c=a?null:u,s=e.i,l=e.r;0;var f=t&&t.r,d=s.refs===i.EMPTY_OBJ?s.refs={}:s.refs,v=s.setupState;if(null!=f&&f!==l&&(Object(i.isString)(f)?(d[f]=null,Object(i.hasOwn)(v,f)&&(v[f]=null)):Object(r.isRef)(f)&&(f.value=null)),Object(i.isFunction)(l))b(l,s,12,[c,d]);else{var h=Object(i.isString)(l),p=Object(r.isRef)(l);if(h||p){var y=function(){if(e.f){var t=h?Object(i.hasOwn)(v,l)?v[l]:d[l]:l.value;a?Object(i.isArray)(t)&&Object(i.remove)(t,u):Object(i.isArray)(t)?t.includes(u)||t.push(u):h?(d[l]=[u],Object(i.hasOwn)(v,l)&&(v[l]=d[l])):(l.value=[u],e.k&&(d[e.k]=l.value))}else h?(d[l]=c,Object(i.hasOwn)(v,l)&&(v[l]=c)):p&&(l.value=c,e.k&&(d[e.k]=c))};c?(y.id=-1,hn(y,n)):y()}else 0}}}var Jt=Symbol("_vte"),Xt=function(e){return e.__isTeleport},Zt=function(e){return e&&(e.disabled||""===e.disabled)},Qt=function(e){return"undefined"!=typeof SVGElement&&e instanceof SVGElement},en=function(e){return"function"==typeof MathMLElement&&e instanceof MathMLElement},tn=function(e,t){var n=e&&e.to;return Object(i.isString)(n)?t?t(n):null:n};function nn(e,t,n,r){var i=r.o.insert,o=r.m,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2;0===a&&i(e.targetAnchor,t,n);var u=e.el,c=e.anchor,s=e.shapeFlag,l=e.children,f=e.props,d=2===a;if(d&&i(u,t,n),(!d||Zt(f))&&16&s)for(var v=0;v5&&void 0!==arguments[5]&&arguments[5];h=h||!!i.dynamicChildren;var p=sn(r)&&"["===r.data,S=function(){return b(r,i,o,a,f,p)},E=i.type,k=i.ref,N=i.shapeFlag,T=i.patchFlag,x=r.nodeType;i.el=r,-2===T&&(h=!1,i.dynamicChildren=null);var j=null;switch(E){case tr:3!==x?""===i.children?(d(i.el=c(""),l(r),r),j=r):j=S():(r.data!==i.children&&(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&v("Hydration text mismatch in",r.parentNode,"\n - rendered on server: ".concat(JSON.stringify(r.data),"\n - expected on client: ").concat(JSON.stringify(i.children))),un(),r.data=i.children),j=s(r));break;case nr:w(r)?(j=s(r),_(i.el=r.content.firstChild,r,o)):j=8!==x||p?S():s(r);break;case rr:if(p&&(x=(r=s(r)).nodeType),1===x||3===x){j=r;for(var A=!i.children.length,I=0;I1&&void 0!==arguments[1]?arguments[1]:"[",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"]",r=0;e;)if((e=s(e))&&sn(e)&&(e.data===t&&r++,e.data===n)){if(0===r)return s(e);r--}return e},_=function(e,t,n){var r=t.parentNode;r&&r.replaceChild(e,t);for(var i=n;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},w=function(e){return 1===e.nodeType&&"template"===e.tagName.toLowerCase()};return[function(e,t){if(!t.hasChildNodes())return __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&v("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),n(null,e,t),F(),void(t._vnode=e);p(t.firstChild,e,null,null,null),F(),t._vnode=e},p]}function fn(e,t,n,r,u){var c,s,l,f;if("class"===t)l=e.getAttribute("class"),f=Object(i.normalizeClass)(n),function(e,t){if(e.size!==t.size)return!1;var n,r=o(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!t.has(i))return!1}}catch(e){r.e(e)}finally{r.f()}return!0}(dn(l||""),dn(f))||(c=s="class");else if("style"===t){l=e.getAttribute("style")||"",f=Object(i.isString)(n)?n:Object(i.stringifyStyle)(Object(i.normalizeStyle)(n));var d=vn(l),h=vn(f);if(r.dirs){var p,y=o(r.dirs);try{for(y.s();!(p=y.n()).done;){var m=p.value,g=m.dir,b=m.value;"show"!==g.name||b||h.set("display","none")}}catch(e){y.e(e)}finally{y.f()}}u&&function e(t,n,r){var i=t.subTree;if(t.getCssVars&&(n===i||i&&i.type===er&&i.children.includes(n))){var o=t.getCssVars();for(var a in o)r.set("--".concat(a),String(o[a]))}n===i&&t.parent&&e(t.parent,t.vnode,r)}(u,r,h),function(e,t){if(e.size!==t.size)return!1;var n,r=o(e);try{for(r.s();!(n=r.n()).done;){var i=a(n.value,2),u=i[0];if(i[1]!==t.get(u))return!1}}catch(e){r.e(e)}finally{r.f()}return!0}(d,h)||(c=s="style")}else(e instanceof SVGElement&&Object(i.isKnownSvgAttr)(t)||e instanceof HTMLElement&&(Object(i.isBooleanAttr)(t)||Object(i.isKnownHtmlAttr)(t)))&&(Object(i.isBooleanAttr)(t)?(l=e.hasAttribute(t),f=Object(i.includeBooleanAttr)(n)):null==n?(l=e.hasAttribute(t),f=!1):(l=e.hasAttribute(t)?e.getAttribute(t):"value"===t&&"TEXTAREA"===e.tagName&&e.value,f=!!Object(i.isRenderableAttrValue)(n)&&String(n)),l!==f&&(c="attribute",s=t));if(c){var O=function(e){return!1===e?"(not rendered)":"".concat(s,'="').concat(e,'"')};return v("Hydration ".concat(c," mismatch on"),e,"\n - rendered on server: ".concat(O(l),"\n - expected on client: ").concat(O(f),"\n Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.\n You should fix the source of the mismatch.")),!0}return!1}function dn(e){return new Set(e.trim().split(/\s+/))}function vn(e){var t,n=new Map,r=o(e.split(";"));try{for(r.s();!(t=r.n()).done;){var i=a(t.value.split(":"),2),u=i[0],c=i[1];u=u.trim(),c=c&&c.trim(),u&&c&&n.set(u,c)}}catch(e){r.e(e)}finally{r.f()}return n}var hn=Xn;function pn(e){return mn(e)}function yn(e){return mn(e,ln)}function mn(e,t){"boolean"!=typeof __VUE_OPTIONS_API__&&(Object(i.getGlobalThis)().__VUE_OPTIONS_API__=!0),"boolean"!=typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&(Object(i.getGlobalThis)().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1),Object(i.getGlobalThis)().__VUE__=!0;var n,o,u=e.insert,c=e.remove,s=e.patchProp,l=e.createElement,f=e.createText,d=e.createComment,v=e.setText,h=e.setElementText,p=e.parentNode,y=e.nextSibling,m=e.setScopeId,g=void 0===m?i.NOOP:m,b=e.insertStaticContent,O=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:void 0,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:!!t.dynamicChildren;if(e!==t){e&&!hr(e,t)&&(r=ee(e),G(e,i,o,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null);var s=t.type,l=t.ref,f=t.shapeFlag;switch(s){case tr:_(e,t,n,r);break;case nr:w(e,t,n,r);break;case rr:null==e&&S(t,n,r,a);break;case er:D(e,t,n,r,i,o,a,u,c);break;default:1&f?x(e,t,n,r,i,o,a,u,c):6&f?V(e,t,n,r,i,o,a,u,c):(64&f||128&f)&&s.process(e,t,n,r,i,o,a,u,c,re)}null!=l&&i&&qt(l,e&&e.ref,o,t||e,!t)}},_=function(e,t,n,r){if(null==e)u(t.el=f(t.children),n,r);else{var i=t.el=e.el;t.children!==e.children&&v(i,t.children)}},w=function(e,t,n,r){null==e?u(t.el=d(t.children||""),n,r):t.el=e.el},S=function(e,t,n,r){var i=a(b(e.children,t,n,r,e.el,e.anchor),2);e.el=i[0],e.anchor=i[1]},E=function(e,t,n){for(var r,i=e.el,o=e.anchor;i&&i!==o;)r=y(i),u(i,t,n),i=r;u(o,t,n)},T=function(e){for(var t,n=e.el,r=e.anchor;n&&n!==r;)t=y(n),c(n),n=t;c(r)},x=function(e,t,n,r,i,o,a,u,c){"svg"===t.type?a="svg":"math"===t.type&&(a="mathml"),null==e?j(t,n,r,i,o,a,u,c):C(e,t,i,o,a,u,c)},j=function(e,t,n,r,o,a,c,f){var d,v,p=e.props,y=e.shapeFlag,m=e.transition,g=e.dirs;if(d=e.el=l(e.type,a,p&&p.is,p),8&y?h(d,e.children):16&y&&I(e.children,d,null,r,o,gn(e,a),c,f),g&&X(e,null,r,"created"),A(d,e,e.scopeId,c,r),p){for(var b in p)"value"===b||Object(i.isReservedProp)(b)||s(d,b,null,p[b],a,r);"value"in p&&s(d,"value",null,p.value,a),(v=p.onVnodeBeforeMount)&&Ar(v,r,e)}g&&X(e,null,r,"beforeMount");var O=On(o,m);O&&m.beforeEnter(d),u(d,t,n),((v=p&&p.onVnodeMounted)||O||g)&&hn((function(){v&&Ar(v,r,e),O&&m.enter(d),g&&X(e,null,r,"mounted")}),o)},A=function e(t,n,r,i,o){if(r&&g(t,r),i)for(var a=0;a8&&void 0!==arguments[8]?arguments[8]:0,s=c;s0){if(16&l)L(c,p,y,n,o);else if(2&l&&p.class!==y.class&&s(c,"class",null,y.class,o),4&l&&s(c,"style",p.style,y.style,o),8&l)for(var m=t.dynamicProps,g=0;g0&&64&v&&h&&e.dynamicChildren?(R(e.dynamicChildren,h,n,i,o,a,c),(null!=t.key||i&&t===i.subTree)&&_n(e,t,!0)):Y(e,t,n,d,i,o,a,c,s)},V=function(e,t,n,r,i,o,a,u,c){t.slotScopeIds=u,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,a,c):B(t,n,r,i,o,a,c):U(e,t,c)},B=function(e,t,n,r,i,o,a){var u=e.component=Pr(e,r,i);if(he(e)&&(u.ctx.renderer=re),zr(u,!1,a),u.asyncDep){if(i&&i.registerDep(u,H,a),!e.el){var c=u.subTree=br(nr);w(null,c,t,n)}}else H(u,e,t,n,i,o,a)},U=function(e,t,n){var r,i,o=t.component=e.component;if(function(e,t,n){var r=e.props,i=e.children,o=e.component,a=t.props,u=t.children,c=t.patchFlag,s=o.emitsOptions;0;if(t.dirs||t.transition)return!0;if(!(n&&c>=0))return!(!i&&!u||u&&u.$stable)||r!==a&&(r?!a||$n(r,a,s):!!a);if(1024&c)return!0;if(16&c)return r?$n(r,a,s):!!a;if(8&c)for(var l=t.dynamicProps,f=0;fN&&k.splice(i,1),o.effect.dirty=!0,o.update()}else t.el=e.el,o.vnode=t},H=function(e,t,n,a,u,c,s){var l=e.effect=new r.ReactiveEffect((function r(){if(e.isMounted){var l=e.next,f=e.bu,d=e.u,v=e.parent,h=e.vnode,y=function e(t){var n=t.subTree.component;if(n)return n.asyncDep&&!n.asyncResolved?n:e(n)}(e);if(y)return l&&(l.el=h.el,$(e,l,s)),void y.asyncDep.then((function(){e.isUnmounted||r()}));var m,g=l;0,bn(e,!1),l?(l.el=h.el,$(e,l,s)):l=h,f&&Object(i.invokeArrayFns)(f),(m=l.props&&l.props.onVnodeBeforeUpdate)&&Ar(m,v,l,h),bn(e,!0);var b=Vn(e);0;var _=e.subTree;e.subTree=b,O(_,b,p(_.el),ee(_),e,u,c),l.el=b.el,null===g&&Yn(e,b.el),d&&hn(d,u),(m=l.props&&l.props.onVnodeUpdated)&&hn((function(){return Ar(m,v,l,h)}),u)}else{var w,S=t,E=S.el,k=S.props,N=e.bm,T=e.m,x=e.parent,j=fe(t);if(bn(e,!1),N&&Object(i.invokeArrayFns)(N),!j&&(w=k&&k.onVnodeBeforeMount)&&Ar(w,x,t),bn(e,!0),E&&o){var A=function(){e.subTree=Vn(e),o(E,e.subTree,e,u,null)};j?t.type.__asyncLoader().then((function(){return!e.isUnmounted&&A()})):A()}else{0;var I=e.subTree=Vn(e);0,O(null,I,n,a,e,u,c),t.el=I.el}if(T&&hn(T,u),!j&&(w=k&&k.onVnodeMounted)){var C=t;hn((function(){return Ar(w,x,C)}),u)}(256&t.shapeFlag||x&&fe(x.vnode)&&256&x.vnode.shapeFlag)&&e.a&&hn(e.a,u),e.isMounted=!0,t=n=a=null}}),i.NOOP,(function(){return P(f)}),e.scope),f=e.update=function(){l.dirty&&l.run()};f.i=e,f.id=e.uid,bn(e,!0),f()},$=function(e,t,n){t.component=e;var o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){var u=e.props,c=e.attrs,s=e.vnode.patchFlag,l=Object(r.toRaw)(u),f=a(e.propsOptions,1)[0],d=!1;if(!(o||s>0)||16&s){var v;for(var h in Lt(e,t,u,c)&&(d=!0),l)t&&(Object(i.hasOwn)(t,h)||(v=Object(i.hyphenate)(h))!==h&&Object(i.hasOwn)(t,v))||(f?!n||void 0===n[h]&&void 0===n[v]||(u[h]=Mt(f,l,h,void 0,e,!0)):delete u[h]);if(c!==l)for(var p in c)t&&Object(i.hasOwn)(t,p)||(delete c[p],d=!0)}else if(8&s)for(var y=e.vnode.dynamicProps,m=0;m8&&void 0!==arguments[8]&&arguments[8],s=e&&e.children,l=e?e.shapeFlag:0,f=t.children,d=t.patchFlag,v=t.shapeFlag;if(d>0){if(128&d)return void z(s,f,n,r,i,o,a,u,c);if(256&d)return void W(s,f,n,r,i,o,a,u,c)}8&v?(16&l&&Q(s,i,o),f!==s&&h(n,f)):16&l?16&v?z(s,f,n,r,i,o,a,u,c):Q(s,i,o,!0):(8&l&&h(n,""),16&v&&I(f,n,r,i,o,a,u,c))},W=function(e,t,n,r,o,a,u,c,s){e=e||i.EMPTY_ARR,t=t||i.EMPTY_ARR;var l,f=e.length,d=t.length,v=Math.min(f,d);for(l=0;ld?Q(e,o,a,!0,!1,v):I(t,n,r,o,a,u,c,s,v)},z=function(e,t,n,r,o,a,u,c,s){for(var l=0,f=t.length,d=e.length-1,v=f-1;l<=d&&l<=v;){var h=e[l],p=t[l]=s?Tr(t[l]):Nr(t[l]);if(!hr(h,p))break;O(h,p,n,null,o,a,u,c,s),l++}for(;l<=d&&l<=v;){var y=e[d],m=t[v]=s?Tr(t[v]):Nr(t[v]);if(!hr(y,m))break;O(y,m,n,null,o,a,u,c,s),d--,v--}if(l>d){if(l<=v)for(var g=v+1,b=gv)for(;l<=d;)G(e[l],o,a,!0),l++;else{var _,w=l,S=l,E=new Map;for(l=S;l<=v;l++){var k=t[l]=s?Tr(t[l]):Nr(t[l]);null!=k.key&&E.set(k.key,l)}var N=0,T=v-S+1,x=!1,j=0,A=new Array(T);for(l=0;l=T)G(I,o,a,!0);else{var C=void 0;if(null!=I.key)C=E.get(I.key);else for(_=S;_<=v;_++)if(0===A[_-S]&&hr(I,t[_])){C=_;break}void 0===C?G(I,o,a,!0):(A[C-S]=l+1,C>=j?j=C:x=!0,O(I,t[C],n,null,o,a,u,c,s),N++)}}var P=x?function(e){var t,n,r,i,o,a=e.slice(),u=[0],c=e.length;for(t=0;t>1]]0&&(a[t]=u[r-1]),u[r]=t)}}r=u.length,i=u[r-1];for(;r-- >0;)u[r]=i,i=a[i];return u}(A):i.EMPTY_ARR;for(_=P.length-1,l=T-1;l>=0;l--){var R=S+l,L=t[R],M=R+14&&void 0!==arguments[4]?arguments[4]:null,a=t.el,c=t.type,s=t.transition,l=t.children,f=t.shapeFlag;if(6&f)e(t.component.subTree,n,r,i);else if(128&f)t.suspense.move(n,r,i);else if(64&f)c.move(t,n,r,re);else if(c!==er)if(c!==rr){var d=2!==i&&1&f&&s;if(d)if(0===i)s.beforeEnter(a),u(a,n,r),hn((function(){return s.enter(a)}),o);else{var v=s.leave,h=s.delayLeave,p=s.afterLeave,y=function(){return u(a,n,r)},m=function(){v(a,(function(){y(),p&&p()}))};h?h(a,y,m):m()}else u(a,n,r)}else E(t,n,r);else{u(a,n,r);for(var g=0;g3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=e.type,a=e.props,u=e.ref,c=e.children,s=e.dynamicChildren,l=e.shapeFlag,f=e.patchFlag,d=e.dirs,v=e.cacheIndex;if(-2===f&&(i=!1),null!=u&&qt(u,null,n,e,!0),null!=v&&(t.renderCache[v]=void 0),256&l)t.ctx.deactivate(e);else{var h,p=1&l&&d,y=!fe(e);if(y&&(h=a&&a.onVnodeBeforeUnmount)&&Ar(h,t,e),6&l)Z(e.component,n,r);else{if(128&l)return void e.suspense.unmount(n,r);p&&X(e,null,t,"beforeUnmount"),64&l?e.type.remove(e,t,n,re,r):s&&!s.hasOnce&&(o!==er||f>0&&64&f)?Q(s,t,n,!1,!0):(o===er&&384&f||!i&&16&l)&&Q(c,t,n),r&&q(e)}(y&&(h=a&&a.onVnodeUnmounted)||p)&&hn((function(){h&&Ar(h,t,e),p&&X(e,null,t,"unmounted")}),n)}},q=function(e){var t=e.type,n=e.el,r=e.anchor,i=e.transition;if(t!==er)if(t!==rr){var o=function(){c(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){var a=i.leave,u=i.delayLeave,s=function(){return a(n,o)};u?u(e.el,o,s):s()}else o()}else T(e);else J(n,r)},J=function(e,t){for(var n;e!==t;)n=y(e),c(e),e=n;c(t)},Z=function(e,t,n){var r=e.bum,o=e.scope,a=e.update,u=e.subTree,c=e.um,s=e.m,l=e.a;wn(s),wn(l),r&&Object(i.invokeArrayFns)(r),o.stop(),a&&(a.active=!1,G(u,e,t,n)),c&&hn(c,t),hn((function(){e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},Q=function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=o;a2&&void 0!==arguments[2]&&arguments[2],r=e.children,o=t.children;if(Object(i.isArray)(r)&&Object(i.isArray)(o))for(var a=0;a2&&void 0!==arguments[2]?arguments[2]:i.EMPTY_OBJ,o=n.immediate,a=n.deep,u=n.flush,c=n.once;n.onTrack,n.onTrigger;if(t&&c){var s=t;t=function(){s.apply(void 0,arguments),T()}}var l,f,d=Mr,v=function(e){return!0===a?e:Pn(e,!1===a?1:void 0)},h=!1,p=!1;if(Object(r.isRef)(e)?(l=function(){return e.value},h=Object(r.isShallow)(e)):Object(r.isReactive)(e)?(l=function(){return v(e)},h=!0):Object(i.isArray)(e)?(p=!0,h=e.some((function(e){return Object(r.isReactive)(e)||Object(r.isShallow)(e)})),l=function(){return e.map((function(e){return Object(r.isRef)(e)?e.value:Object(r.isReactive)(e)?v(e):Object(i.isFunction)(e)?b(e,d,2):void 0}))}):l=Object(i.isFunction)(e)?t?function(){return b(e,d,2)}:function(){return f&&f(),O(e,d,3,[g])}:i.NOOP,t&&a){var y=l;l=function(){return Pn(y())}}var m,g=function(e){f=k.onStop=function(){b(e,d,4),f=k.onStop=void 0}};if(Wr){if(g=i.NOOP,t?o&&O(t,d,3,[l(),p?[]:void 0,g]):l(),"sync"!==u)return i.NOOP;var _=En();m=_.__watcherHandles||(_.__watcherHandles=[])}var w,S=p?new Array(e.length).fill(xn):xn,E=function(){if(k.active&&k.dirty)if(t){var e=k.run();(a||h||(p?e.some((function(e,t){return Object(i.hasChanged)(e,S[t])})):Object(i.hasChanged)(e,S)))&&(f&&f(),O(t,d,3,[e,S===xn?void 0:p&&S[0]===xn?[]:S,g]),S=e)}else k.run()};E.allowRecurse=!!t,"sync"===u?w=E:"post"===u?w=function(){return hn(E,d&&d.suspense)}:(E.pre=!0,d&&(E.id=d.uid),w=function(){return P(E)});var k=new r.ReactiveEffect(l,i.NOOP,w),N=Object(r.getCurrentScope)(),T=function(){k.stop(),N&&Object(i.remove)(N.effects,k)};return t?o?E():S=k.run():"post"===u?hn(k.run.bind(k),d&&d.suspense):k.run(),m&&m.push(T),T}function In(e,t,n){var r,o=this.proxy,a=Object(i.isString)(e)?e.includes(".")?Cn(o,e):function(){return o[e]}:e.bind(o,o);Object(i.isFunction)(t)?r=t:(r=t.handler,n=t);var u=Br(this),c=An(a,r.bind(o),n);return u(),c}function Cn(e,t){var n=t.split(".");return function(){for(var t=e,r=0;r1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2?arguments[2]:void 0;if(t<=0||!Object(i.isObject)(e)||e.__v_skip)return e;if((n=n||new Set).has(e))return e;if(n.add(e),t--,Object(r.isRef)(e))Pn(e.value,t,n);else if(Object(i.isArray)(e))for(var a=0;a2&&void 0!==arguments[2]?arguments[2]:i.EMPTY_OBJ,o=Fr();var a=Object(i.camelize)(t),u=Object(i.hyphenate)(t),c=Ln(e,t),s=Object(r.customRef)((function(r,c){var s,l,f=i.EMPTY_OBJ;return Tn((function(){var n=e[t];Object(i.hasChanged)(s,n)&&(s=n,c())})),{get:function(){return r(),n.get?n.get(s):s},set:function(e){if(Object(i.hasChanged)(e,s)||f!==i.EMPTY_OBJ&&Object(i.hasChanged)(e,f)){var r=o.vnode.props;r&&(t in r||a in r||u in r)&&("onUpdate:".concat(t)in r||"onUpdate:".concat(a)in r||"onUpdate:".concat(u)in r)||(s=e,c());var d=n.set?n.set(e):e;o.emit("update:".concat(t),d),Object(i.hasChanged)(e,d)&&Object(i.hasChanged)(e,f)&&!Object(i.hasChanged)(d,l)&&c(),f=e,l=d}}}}));return s[Symbol.iterator]=function(){var e=0;return{next:function(){return e<2?{value:e++?c||i.EMPTY_OBJ:s,done:!1}:{done:!0}}}},s}var Ln=function(e,t){return"modelValue"===t||"model-value"===t?e.modelModifiers:e["".concat(t,"Modifiers")]||e["".concat(Object(i.camelize)(t),"Modifiers")]||e["".concat(Object(i.hyphenate)(t),"Modifiers")]};function Mn(e,t){if(!e.isUnmounted){for(var n=e.vnode.props||i.EMPTY_OBJ,r=arguments.length,o=new Array(r>2?r-2:0),a=2;a2&&void 0!==arguments[2]&&arguments[2],r=t.emitsCache,o=r.get(e);if(void 0!==o)return o;var a=e.emits,u={},c=!1;if(__VUE_OPTIONS_API__&&!Object(i.isFunction)(e)){var s=function(e){var n=Fn(e,t,!0);n&&(c=!0,Object(i.extend)(u,n))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return a||c?(Object(i.isArray)(a)?a.forEach((function(e){return u[e]=null})):Object(i.extend)(u,a),Object(i.isObject)(e)&&r.set(e,u),u):(Object(i.isObject)(e)&&r.set(e,null),null)}function Dn(e,t){return!(!e||!Object(i.isOn)(t))&&(t=t.slice(2).replace(/Once$/,""),Object(i.hasOwn)(e,t[0].toLowerCase()+t.slice(1))||Object(i.hasOwn)(e,Object(i.hyphenate)(t))||Object(i.hasOwn)(e,t))}function Vn(e){var t,n,r=e.type,o=e.vnode,u=e.proxy,c=e.withProxy,s=a(e.propsOptions,1)[0],l=e.slots,f=e.attrs,d=e.emit,v=e.render,h=e.renderCache,p=e.props,y=e.data,m=e.setupState,g=e.ctx,b=e.inheritAttrs,O=W(e);try{if(4&o.shapeFlag){var w=c||u,S=w;t=Nr(v.call(S,w,h,p,m,y,g)),n=f}else{var E=r;0,t=Nr(E.length>1?E(p,{attrs:f,slots:l,emit:d}):E(p,null)),n=r.props?f:Un(f)}}catch(n){ir.length=0,_(n,e,1),t=br(nr)}var k=t;if(n&&!1!==b){var N=Object.keys(n),T=k.shapeFlag;if(N.length)if(7&T)s&&N.some(i.isModelListener)&&(n=Hn(n,s)),k=wr(k,n,!1,!0);else;}return o.dirs&&((k=wr(k,null,!1,!0)).dirs=k.dirs?k.dirs.concat(o.dirs):o.dirs),o.transition&&(k.transition=o.transition),t=k,W(O),t}function Bn(e){for(var t,n=0;n0?(Gn(e,"onPending"),Gn(e,"onFallback"),s(null,e.ssFallback,t,n,r,null,o,a),Zn(f,e.ssFallback)):f.resolve(!1,!0)}(t,n,r,i,o,a,u,c,s);else{if(o&&o.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,r,i,o,a,u,c){var s=c.p,l=c.um,f=c.o.createElement,d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;var v=t.ssContent,h=t.ssFallback,p=d.activeBranch,y=d.pendingBranch,m=d.isInFallback,g=d.isHydrating;if(y)d.pendingBranch=v,hr(v,y)?(s(y,v,d.hiddenContainer,null,i,d,o,a,u),d.deps<=0?d.resolve():m&&(g||(s(p,h,n,r,i,null,o,a,u),Zn(d,h)))):(d.pendingId=zn++,g?(d.isHydrating=!1,d.activeBranch=y):l(y,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=f("div"),m?(s(null,v,d.hiddenContainer,null,i,d,o,a,u),d.deps<=0?d.resolve():(s(p,h,n,r,i,null,o,a,u),Zn(d,h))):p&&hr(v,p)?(s(p,v,n,r,i,d,o,a,u),d.resolve(!0)):(s(null,v,d.hiddenContainer,null,i,d,o,a,u),d.deps<=0&&d.resolve()));else if(p&&hr(v,p))s(p,v,n,r,i,d,o,a,u),Zn(d,v);else if(Gn(t,"onPending"),d.pendingBranch=v,512&v.shapeFlag?d.pendingId=v.component.suspenseId:d.pendingId=zn++,s(null,v,d.hiddenContainer,null,i,d,o,a,u),d.deps<=0)d.resolve();else{var b=d.timeout,O=d.pendingId;b>0?setTimeout((function(){d.pendingId===O&&d.fallback(h)}),b):0===b&&d.fallback(h)}}(e,t,n,r,i,a,u,c,s)}},hydrate:function(e,t,n,r,i,o,a,u,c){var s=t.suspense=qn(t,r,n,e.parentNode,document.createElement("div"),null,i,o,a,u,!0),l=c(e,s.pendingBranch=t.ssContent,n,s,o,a);0===s.deps&&s.resolve(!1,!0);return l},normalize:function(e){var t=e.shapeFlag,n=e.children,r=32&t;e.ssContent=Jn(r?n.default:n),e.ssFallback=r?Jn(n.fallback):br(nr)}};function Gn(e,t){var n=e.props&&e.props[t];Object(i.isFunction)(n)&&n()}function qn(e,t,n,r,o,a,u,s,l,f){var d=arguments.length>10&&void 0!==arguments[10]&&arguments[10];var v,h=f.p,p=f.m,y=f.um,m=f.n,g=f.o,b=g.parentNode,O=g.remove,w=Qn(e);w&&t&&t.pendingBranch&&(v=t.pendingId,t.deps++);var S=e.props?Object(i.toNumber)(e.props.timeout):void 0;var E=a,k={vnode:e,parent:t,parentComponent:n,namespace:u,container:r,hiddenContainer:o,deps:0,pendingId:zn++,timeout:"number"==typeof S?S:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var r=k.vnode,i=k.activeBranch,o=k.pendingBranch,u=k.pendingId,s=k.effects,l=k.parentComponent,f=k.container,d=!1;k.isHydrating?k.isHydrating=!1:e||((d=i&&o.transition&&"out-in"===o.transition.mode)&&(i.transition.afterLeave=function(){u===k.pendingId&&(p(o,f,a===E?m(i):a,0),L(s))}),i&&(b(i.el)!==k.hiddenContainer&&(a=m(i)),y(i,l,k,!0)),d||p(o,f,a,0)),Zn(k,o),k.pendingBranch=null,k.isInFallback=!1;for(var h=k.parent,g=!1;h;){if(h.pendingBranch){var O;(O=h.effects).push.apply(O,c(s)),g=!0;break}h=h.parent}g||d||L(s),k.effects=[],w&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),Gn(r,"onResolve")},fallback:function(e){if(k.pendingBranch){var t=k.vnode,n=k.activeBranch,r=k.parentComponent,i=k.container,o=k.namespace;Gn(t,"onFallback");var a=m(n),u=function(){k.isInFallback&&(h(null,e,i,a,r,null,o,s,l),Zn(k,e))},c=e.transition&&"out-in"===e.transition.mode;c&&(n.transition.afterLeave=u),k.isInFallback=!0,y(n,r,null,!0),c||u()}},move:function(e,t,n){k.activeBranch&&p(k.activeBranch,e,t,n),k.container=e},next:function(){return k.activeBranch&&m(k.activeBranch)},registerDep:function(e,t,n){var r=!!k.pendingBranch;r&&k.deps++;var i=e.vnode.el;e.asyncDep.catch((function(t){_(t,e,0)})).then((function(o){if(!e.isUnmounted&&!k.isUnmounted&&k.pendingId===e.suspenseId){e.asyncResolved=!0;var a=e.vnode;0,Gr(e,o,!1),i&&(a.el=i);var c=!i&&e.subTree.el;t(e,a,b(i||e.subTree.el),i?null:m(e.subTree),k,u,n),c&&O(c),Yn(e,a.el),r&&0==--k.deps&&k.resolve()}}))},unmount:function(e,t){k.isUnmounted=!0,k.activeBranch&&y(k.activeBranch,n,e,t),k.pendingBranch&&y(k.pendingBranch,n,e,t)}};return k}function Jn(e){var t;if(Object(i.isFunction)(e)){var n=cr&&e._c;n&&(e._d=!1,ar()),e=e(),n&&(e._d=!0,t=or,ur())}if(Object(i.isArray)(e)){var r=Bn(e);0,e=r}return e=Nr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter((function(t){return t!==e}))),e}function Xn(e,t){var n;t&&t.pendingBranch?Object(i.isArray)(e)?(n=t.effects).push.apply(n,c(e)):t.effects.push(e):L(e)}function Zn(e,t){e.activeBranch=t;for(var n=e.vnode,r=e.parentComponent,i=t.el;!i&&t.component;)i=(t=t.component.subTree).el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,Yn(r,i))}function Qn(e){var t=e.props&&e.props.suspensible;return null!=t&&!1!==t}var er=Symbol.for("v-fgt"),tr=Symbol.for("v-txt"),nr=Symbol.for("v-cmt"),rr=Symbol.for("v-stc"),ir=[],or=null;function ar(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];ir.push(or=e?null:[])}function ur(){ir.pop(),or=ir[ir.length-1]||null}var cr=1;function sr(e){cr+=e,e<0&&or&&(or.hasOnce=!0)}function lr(e){return e.dynamicChildren=cr>0?or||i.EMPTY_ARR:null,ur(),cr>0&&or&&or.push(e),e}function fr(e,t,n,r,i,o){return lr(gr(e,t,n,r,i,o,!0))}function dr(e,t,n,r,i){return lr(br(e,t,n,r,i,!0))}function vr(e){return!!e&&!0===e.__v_isVNode}function hr(e,t){return e.type===t.type&&e.key===t.key}function pr(e){e}var yr=function(e){var t=e.key;return null!=t?t:null},mr=function(e){var t=e.ref,n=e.ref_key,o=e.ref_for;return"number"==typeof t&&(t=""+t),null!=t?Object(i.isString)(t)||Object(r.isRef)(t)||Object(i.isFunction)(t)?{i:$,r:t,k:n,f:!!o}:t:null};function gr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e===er?0:1,u=arguments.length>6&&void 0!==arguments[6]&&arguments[6],c=arguments.length>7&&void 0!==arguments[7]&&arguments[7],s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&yr(t),ref:t&&mr(t),scopeId:Y,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:$};return c?(xr(s,n),128&a&&e.normalize(s)):n&&(s.shapeFlag|=Object(i.isString)(n)?8:16),cr>0&&!u&&or&&(s.patchFlag>0||6&a)&&32!==s.patchFlag&&or.push(s),s}var br=Or;function Or(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,u=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(e&&e!==Me||(e=nr),vr(e)){var c=wr(e,t,!0);return n&&xr(c,n),cr>0&&!u&&or&&(6&c.shapeFlag?or[or.indexOf(e)]=c:or.push(c)),c.patchFlag=-2,c}if(oi(e)&&(e=e.__vccOpts),t){var s=t=_r(t),l=s.class,f=s.style;l&&!Object(i.isString)(l)&&(t.class=Object(i.normalizeClass)(l)),Object(i.isObject)(f)&&(Object(r.isProxy)(f)&&!Object(i.isArray)(f)&&(f=Object(i.extend)({},f)),t.style=Object(i.normalizeStyle)(f))}var d=Object(i.isString)(e)?1:Wn(e)?128:Xt(e)?64:Object(i.isObject)(e)?4:Object(i.isFunction)(e)?2:0;return gr(e,t,n,o,a,d,u,!0)}function _r(e){return e?Object(r.isProxy)(e)||Pt(e)?Object(i.extend)({},e):e:null}function wr(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=e.props,a=e.ref,u=e.patchFlag,c=e.children,s=e.transition,l=t?jr(o||{},t):o,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&yr(l),ref:t&&t.ref?n&&a?Object(i.isArray)(a)?a.concat(mr(t)):[a,mr(t)]:mr(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==er?-1===u?16:16|u:u,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&wr(e.ssContent),ssFallback:e.ssFallback&&wr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return s&&r&&ce(f,s.clone(f)),f}function Sr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return br(tr,null,e,t)}function Er(e,t){var n=br(rr,null,e);return n.staticCount=t,n}function kr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?(ar(),dr(nr,null,e)):br(nr,null,e)}function Nr(e){return null==e||"boolean"==typeof e?br(nr):Object(i.isArray)(e)?br(er,null,e.slice()):"object"===u(e)?Tr(e):br(tr,null,String(e))}function Tr(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:wr(e)}function xr(e,t){var n=0,r=e.shapeFlag;if(null==t)t=null;else if(Object(i.isArray)(t))n=16;else if("object"===u(t)){if(65&r){var o=t.default;return void(o&&(o._c&&(o._d=!1),xr(e,o()),o._c&&(o._d=!0)))}n=32;var a=t._;a||Pt(t)?3===a&&$&&(1===$.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=$}else Object(i.isFunction)(t)?(t={default:t,_ctx:$},n=32):(t=String(t),64&r?(n=16,t=[Sr(t)]):n=8);e.children=t,e.shapeFlag|=n}function jr(){for(var e={},t=0;t3&&void 0!==arguments[3]?arguments[3]:null;O(e,t,7,[n,r])}var Ir=Et(),Cr=0;function Pr(e,t,n){var o=e.type,a=(t?t.appContext:e.appContext)||Ir,u={uid:Cr++,vnode:e,type:o,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new r.EffectScope(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Dt(o,a),emitsOptions:Fn(o,a),emit:null,emitted:null,propsDefaults:i.EMPTY_OBJ,inheritAttrs:o.inheritAttrs,ctx:i.EMPTY_OBJ,data:i.EMPTY_OBJ,props:i.EMPTY_OBJ,attrs:i.EMPTY_OBJ,slots:i.EMPTY_OBJ,refs:i.EMPTY_OBJ,setupState:i.EMPTY_OBJ,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return u.ctx={_:u},u.root=t?t.root:u,u.emit=Mn.bind(null,u),e.ce&&e.ce(u),u}var Rr,Lr,Mr=null,Fr=function(){return Mr||$},Dr=Object(i.getGlobalThis)(),Vr=function(e,t){var n;return(n=Dr[e])||(n=Dr[e]=[]),n.push(t),function(e){n.length>1?n.forEach((function(t){return t(e)})):n[0](e)}};Rr=Vr("__VUE_INSTANCE_SETTERS__",(function(e){return Mr=e})),Lr=Vr("__VUE_SSR_SETTERS__",(function(e){return Wr=e}));var Br=function(e){var t=Mr;return Rr(e),e.scope.on(),function(){e.scope.off(),Rr(t)}},Ur=function(){Mr&&Mr.scope.off(),Rr(null)};function Hr(e){return 4&e.vnode.shapeFlag}var $r,Yr,Wr=!1;function zr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t&&Lr(t);var r=e.vnode,i=r.props,o=r.children,a=Hr(e);Rt(e,i,a,t),Gt(e,o,n);var u=a?Kr(e,t):void 0;return t&&Lr(!1),u}function Kr(e,t){var n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,qe);var o=n.setup;if(o){var a=e.setupContext=o.length>1?Qr(e):null,u=Br(e);Object(r.pauseTracking)();var c=b(o,e,0,[e.props,a]);if(Object(r.resetTracking)(),u(),Object(i.isPromise)(c)){if(c.then(Ur,Ur),t)return c.then((function(n){Gr(e,n,t)})).catch((function(t){_(t,e,0)}));e.asyncDep=c}else Gr(e,c,t)}else Xr(e,t)}function Gr(e,t,n){Object(i.isFunction)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Object(i.isObject)(t)&&(e.setupState=Object(r.proxyRefs)(t)),Xr(e,n)}function qr(e){$r=e,Yr=function(e){e.render._rc&&(e.withProxy=new Proxy(e.ctx,Je))}}var Jr=function(){return!$r};function Xr(e,t,n){var o=e.type;if(!e.render){if(!t&&$r&&!o.render){var a=o.template||yt(e).template;if(a){0;var u=e.appContext.config,c=u.isCustomElement,s=u.compilerOptions,l=o.delimiters,f=o.compilerOptions,d=Object(i.extend)(Object(i.extend)({isCustomElement:c,delimiters:l},s),f);o.render=$r(a,d)}}e.render=o.render||i.NOOP,Yr&&Yr(e)}if(__VUE_OPTIONS_API__){var v=Br(e);Object(r.pauseTracking)();try{vt(e)}finally{Object(r.resetTracking)(),v()}}}var Zr={get:function(e,t){return Object(r.track)(e,"get",""),e[t]}};function Qr(e){return{attrs:new Proxy(e.attrs,Zr),slots:e.slots,emit:e.emit,expose:function(t){e.exposed=t||{}}}}function ei(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Object(r.proxyRefs)(Object(r.markRaw)(e.exposed)),{get:function(t,n){return n in t?t[n]:n in Ke?Ke[n](e):void 0},has:function(e,t){return t in e||t in Ke}})):e.proxy}var ti=/(?:^|[-_])(\w)/g,ni=function(e){return e.replace(ti,(function(e){return e.toUpperCase()})).replace(/[-_]/g,"")};function ri(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Object(i.isFunction)(e)?e.displayName||e.name:e.name||t&&e.__name}function ii(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=ri(t);if(!r&&t.__file){var i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(r=i[1])}if(!r&&e&&e.parent){var o=function(e){for(var n in e)if(e[n]===t)return n};r=o(e.components||e.parent.type.components)||o(e.appContext.components)}return r?ni(r):n?"App":"Anonymous"}function oi(e){return Object(i.isFunction)(e)&&"__vccOpts"in e}var ai=function(e,t){return Object(r.computed)(e,t,Wr)};function ui(e,t,n){var r=arguments.length;return 2===r?Object(i.isObject)(t)&&!Object(i.isArray)(t)?vr(t)?br(e,null,[t]):br(e,t):br(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&vr(n)&&(n=[n]),br(e,t,n))}function ci(){return void 0}function si(e,t,n,r){var i=n[r];if(i&&li(i,e))return i;var o=t();return o.memo=e.slice(),o.cacheIndex=r,n[r]=o}function li(e,t){var n=e.memo;if(n.length!=t.length)return!1;for(var r=0;r0&&or&&or.push(e),!0}var fi="3.4.34",di=i.NOOP,vi=g,hi=U,pi=function e(t,n){var r,i;if(U=t)U.enabled=!0,H.forEach((function(e){var t,n=e.event,r=e.args;return(t=U).emit.apply(t,[n].concat(c(r)))})),H=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null==(i=null==(r=window.navigator)?void 0:r.userAgent)?void 0:i.includes("jsdom"))){(n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((function(t){e(t,n)})),setTimeout((function(){U||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,!0,H=[])}),3e3)}else!0,H=[]},yi={createComponentInstance:Pr,setupComponent:zr,renderComponentRoot:Vn,setCurrentRenderingInstance:W,isVNode:vr,normalizeVNode:Nr,getComponentPublicInstance:ei},mi=null,gi=null,bi=null}]); \ No newline at end of file +/*! #__NO_SIDE_EFFECTS__ */function de(e){Object(i.isFunction)(e)&&(e={loader:e});var t,n=e,o=n.loader,a=n.loadingComponent,u=n.errorComponent,c=n.delay,s=void 0===c?200:c,l=n.timeout,f=n.suspensible,d=void 0===f||f,p=n.onError,v=null,h=0,y=function(){return h++,v=null,m()},m=function(){var e;return v||(e=v=o().catch((function(e){if(e=e instanceof Error?e:new Error(String(e)),p)return new Promise((function(t,n){p(e,(function(){return t(y())}),(function(){return n(e)}),h+1)}));throw e})).then((function(n){return e!==v&&v?v:(n&&(n.__esModule||"Module"===n[Symbol.toStringTag])&&(n=n.default),t=n,n)})))};return le({name:"AsyncComponentWrapper",__asyncLoader:m,get __asyncResolved(){return t},setup:function(){var e=Mr;if(t)return function(){return pe(t,e)};var n=function(t){v=null,_(t,e,13,!u)};if(d&&e.suspense||Wr)return m().then((function(t){return function(){return pe(t,e)}})).catch((function(e){return n(e),function(){return u?br(u,{error:e}):null}}));var i=Object(r.ref)(!1),o=Object(r.ref)(),c=Object(r.ref)(!!s);return s&&setTimeout((function(){c.value=!1}),s),null!=l&&setTimeout((function(){if(!i.value&&!o.value){var e=new Error("Async component timed out after ".concat(l,"ms."));n(e),o.value=e}}),l),m().then((function(){i.value=!0,e.parent&&ve(e.parent.vnode)&&(e.parent.effect.dirty=!0,P(e.parent.update))})).catch((function(e){n(e),o.value=e})),function(){return i.value&&t?pe(t,e):o.value&&u?br(u,{error:o.value}):a&&!c.value?br(a):void 0}}})}function pe(e,t){var n=t.vnode,r=n.ref,i=n.props,o=n.children,a=n.ce,u=br(e,i,o);return u.ref=r,u.ce=a,delete t.vnode.ce,u}var ve=function(e){return e.type.__isKeepAlive},he={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup:function(e,t){var n=t.slots,r=Fr(),o=r.ctx;if(!o.renderer)return function(){var e=n.default&&n.default();return e&&1===e.length?e[0]:e};var u=new Map,c=new Set,s=null;var l=r.suspense,f=o.renderer,d=f.p,p=f.m,v=f.um,h=(0,f.o.createElement)("div");function y(e){_e(e),v(e,r,l,!0)}function m(e){u.forEach((function(t,n){var r=ri(t.type);!r||e&&e(r)||g(n)}))}function g(e){var t=u.get(e);s&&vr(t,s)?s&&_e(s):y(t),u.delete(e),c.delete(e)}o.activate=function(e,t,n,r,o){var a=e.component;p(e,t,n,0,l),d(a.vnode,e,t,n,a,l,r,e.slotScopeIds,o),vn((function(){a.isDeactivated=!1,a.a&&Object(i.invokeArrayFns)(a.a);var t=e.props&&e.props.onVnodeMounted;t&&Ar(t,a.parent,e)}),l)},o.deactivate=function(e){var t=e.component;wn(t.m),wn(t.a),p(e,h,null,1,l),vn((function(){t.da&&Object(i.invokeArrayFns)(t.da);var n=e.props&&e.props.onVnodeUnmounted;n&&Ar(n,t.parent,e),t.isDeactivated=!0}),l)},jn((function(){return[e.include,e.exclude]}),(function(e){var t=a(e,2),n=t[0],r=t[1];n&&m((function(e){return ye(n,e)})),r&&m((function(e){return!ye(r,e)}))}),{flush:"post",deep:!0});var b=null,O=function(){null!=b&&(Wn(r.subTree.type)?vn((function(){u.set(b,we(r.subTree))}),r.subTree.suspense):u.set(b,we(r.subTree)))};return Ne(O),xe(O),je((function(){u.forEach((function(e){var t=r.subTree,n=r.suspense,i=we(t);if(e.type!==i.type||e.key!==i.key)y(e);else{_e(i);var o=i.component.da;o&&vn(o,n)}}))})),function(){if(b=null,!n.default)return null;var t=n.default(),r=t[0];if(t.length>1)return s=null,t;if(!(pr(r)&&(4&r.shapeFlag||128&r.shapeFlag)))return s=null,r;var i=we(r),o=i.type,a=ri(fe(i)?i.type.__asyncResolved||{}:o),l=e.include,f=e.exclude,d=e.max;if(l&&(!a||!ye(l,a))||f&&a&&ye(f,a))return s=i,r;var p=null==i.key?o:i.key,v=u.get(p);return i.el&&(i=wr(i),128&r.shapeFlag&&(r.ssContent=i)),b=p,v?(i.el=v.el,i.component=v.component,i.transition&&ce(i,i.transition),i.shapeFlag|=512,c.delete(p),c.add(p)):(c.add(p),d&&c.size>parseInt(d,10)&&g(c.values().next().value)),i.shapeFlag|=256,s=i,Wn(r.type)?r:i}}};function ye(e,t){return Object(i.isArray)(e)?e.some((function(e){return ye(e,t)})):Object(i.isString)(e)?e.split(",").includes(t):!!Object(i.isRegExp)(e)&&e.test(t)}function me(e,t){be(e,"a",t)}function ge(e,t){be(e,"da",t)}function be(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Mr,r=e.__wdc||(e.__wdc=function(){for(var t=n;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Se(t,r,n),n)for(var i=n.parent;i&&i.parent;)ve(i.parent.vnode)&&Oe(r,t,n,i),i=i.parent}function Oe(e,t,n,r){var o=Se(t,e,r,!0);Ae((function(){Object(i.remove)(r[t],o)}),n)}function _e(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function we(e){return 128&e.shapeFlag?e.ssContent:e}function Se(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Mr,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(n){var o=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=function(){Object(r.pauseTracking)();for(var i=Br(n),o=arguments.length,a=new Array(o),u=0;u1&&void 0!==arguments[1]?arguments[1]:Mr;Wr&&"sp"!==e||Se(e,(function(){return t.apply(void 0,arguments)}),n)}},ke=Ee("bm"),Ne=Ee("m"),Te=Ee("bu"),xe=Ee("u"),je=Ee("bum"),Ae=Ee("um"),Ie=Ee("sp"),Ce=Ee("rtg"),Pe=Ee("rtc");function Re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mr;Se("ec",e,t)}function Le(e,t){return Ve("components",e,!0,t)||e}var Me=Symbol.for("v-ndc");function Fe(e){return Object(i.isString)(e)?Ve("components",e,!1)||e:e||Me}function De(e){return Ve("directives",e)}function Ve(e,t){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=$||Mr;if(r){var o=r.type;if("components"===e){var a=ri(o,!1);if(a&&(a===t||a===Object(i.camelize)(t)||a===Object(i.capitalize)(Object(i.camelize)(t))))return o}var u=Be(r[e]||o[e],t)||Be(r.appContext[e],t);return!u&&n?o:u}}function Be(e,t){return e&&(e[t]||e[Object(i.camelize)(t)]||e[Object(i.capitalize)(Object(i.camelize)(t))])}function Ue(e,t,n,r){var o,a=n&&n[r];if(Object(i.isArray)(e)||Object(i.isString)(e)){o=new Array(e.length);for(var u=0,c=e.length;u2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;if($.isCE||$.parent&&fe($.parent)&&$.parent.isCE)return"default"!==t&&(n.name=t),br("slot",n,r&&r());var o=e[t];o&&o._c&&(o._d=!1),ar();var a=o&&Ye(o(n)),u=dr(er,{key:(n.key||a&&a.key||"_".concat(t))+(!a&&r?"_fb":"")},a||(r?r():[]),a&&1===e._?64:-2);return!i&&u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),o&&o._c&&(o._d=!0),u}function Ye(e){return e.some((function(e){return!pr(e)||e.type!==nr&&!(e.type===er&&!Ye(e.children))}))?e:null}function We(e,t){var n={};for(var r in e)n[t&&/[A-Z]/.test(r)?"on:".concat(r):Object(i.toHandlerKey)(r)]=e[r];return n}var ze=function e(t){return t?Hr(t)?ei(t):e(t.parent):null},Ke=Object(i.extend)(Object.create(null),{$:function(e){return e},$el:function(e){return e.vnode.el},$data:function(e){return e.data},$props:function(e){return e.props},$attrs:function(e){return e.attrs},$slots:function(e){return e.slots},$refs:function(e){return e.refs},$parent:function(e){return ze(e.parent)},$root:function(e){return ze(e.root)},$emit:function(e){return e.emit},$options:function(e){return __VUE_OPTIONS_API__?yt(e):e.type},$forceUpdate:function(e){return e.f||(e.f=function(){e.effect.dirty=!0,P(e.update)})},$nextTick:function(e){return e.n||(e.n=C.bind(e.proxy))},$watch:function(e){return __VUE_OPTIONS_API__?In.bind(e):i.NOOP}}),Ge=function(e,t){return e!==i.EMPTY_OBJ&&!e.__isScriptSetup&&Object(i.hasOwn)(e,t)},qe={get:function(e,t){var n=e._;if("__v_skip"===t)return!0;var o,a=n.ctx,u=n.setupState,c=n.data,s=n.props,l=n.accessCache,f=n.type,d=n.appContext;if("$"!==t[0]){var p=l[t];if(void 0!==p)switch(p){case 1:return u[t];case 2:return c[t];case 4:return a[t];case 3:return s[t]}else{if(Ge(u,t))return l[t]=1,u[t];if(c!==i.EMPTY_OBJ&&Object(i.hasOwn)(c,t))return l[t]=2,c[t];if((o=n.propsOptions[0])&&Object(i.hasOwn)(o,t))return l[t]=3,s[t];if(a!==i.EMPTY_OBJ&&Object(i.hasOwn)(a,t))return l[t]=4,a[t];__VUE_OPTIONS_API__&&!dt||(l[t]=0)}}var v,h,y=Ke[t];return y?("$attrs"===t&&Object(r.track)(n.attrs,"get",""),y(n)):(v=f.__cssModules)&&(v=v[t])?v:a!==i.EMPTY_OBJ&&Object(i.hasOwn)(a,t)?(l[t]=4,a[t]):(h=d.config.globalProperties,Object(i.hasOwn)(h,t)?h[t]:void 0)},set:function(e,t,n){var r=e._,o=r.data,a=r.setupState,u=r.ctx;return Ge(a,t)?(a[t]=n,!0):o!==i.EMPTY_OBJ&&Object(i.hasOwn)(o,t)?(o[t]=n,!0):!Object(i.hasOwn)(r.props,t)&&(("$"!==t[0]||!(t.slice(1)in r))&&(u[t]=n,!0))},has:function(e,t){var n,r=e._,o=r.data,a=r.setupState,u=r.accessCache,c=r.ctx,s=r.appContext,l=r.propsOptions;return!!u[t]||o!==i.EMPTY_OBJ&&Object(i.hasOwn)(o,t)||Ge(a,t)||(n=l[0])&&Object(i.hasOwn)(n,t)||Object(i.hasOwn)(c,t)||Object(i.hasOwn)(Ke,t)||Object(i.hasOwn)(s.config.globalProperties,t)},defineProperty:function(e,t,n){return null!=n.get?e._.accessCache[t]=0:Object(i.hasOwn)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};var Je=Object(i.extend)({},qe,{get:function(e,t){if(t!==Symbol.unscopables)return qe.get(e,t,e)},has:function(e,t){var n="_"!==t[0]&&!Object(i.isGloballyAllowed)(t);return n}});function Xe(){return null}function Ze(){return null}function Qe(e){0}function et(e){0}function tt(){return null}function nt(){0}function rt(e,t){return null}function it(){return at().slots}function ot(){return at().attrs}function at(){var e=Fr();return e.setupContext||(e.setupContext=Qr(e))}function ut(e){return Object(i.isArray)(e)?e.reduce((function(e,t){return e[t]=null,e}),{}):e}function ct(e,t){var n=ut(e);for(var r in t)if(!r.startsWith("__skip")){var o=n[r];o?Object(i.isArray)(o)||Object(i.isFunction)(o)?o=n[r]={type:o,default:t[r]}:o.default=t[r]:null===o&&(o=n[r]={default:t[r]}),o&&t["__skip_".concat(r)]&&(o.skipFactory=!0)}return n}function st(e,t){return e&&t?Object(i.isArray)(e)&&Object(i.isArray)(t)?e.concat(t):Object(i.extend)({},ut(e),ut(t)):e||t}function lt(e,t){var n={},r=function(r){t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:function(){return e[r]}})};for(var i in e)r(i);return n}function ft(e){var t=Fr();var n=e();return Ur(),Object(i.isPromise)(n)&&(n=n.catch((function(e){throw Br(t),e}))),[n,function(){return Br(t)}]}var dt=!0;function pt(e){var t=yt(e),n=e.proxy,o=e.ctx;dt=!1,t.beforeCreate&&vt(t.beforeCreate,e,"bc");var a=t.data,u=t.computed,c=t.methods,s=t.watch,l=t.provide,f=t.inject,d=t.created,p=t.beforeMount,v=t.mounted,h=t.beforeUpdate,y=t.updated,m=t.activated,g=t.deactivated,b=(t.beforeDestroy,t.beforeUnmount),O=(t.destroyed,t.unmounted),_=t.render,w=t.renderTracked,S=t.renderTriggered,E=t.errorCaptured,k=t.serverPrefetch,N=t.expose,T=t.inheritAttrs,x=t.components,j=t.directives;t.filters;if(f&&function(e,t){arguments.length>2&&void 0!==arguments[2]||i.NOOP;Object(i.isArray)(e)&&(e=Ot(e));var n=function(){var n,a=e[o];n=Object(i.isObject)(a)?"default"in a?jt(a.from||o,a.default,!0):jt(a.from||o):jt(a),Object(r.isRef)(n)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:function(){return n.value},set:function(e){return n.value=e}}):t[o]=n};for(var o in e)n()}(f,o,null),c)for(var A in c){var I=c[A];Object(i.isFunction)(I)&&(o[A]=I.bind(n))}if(a){0;var C=a.call(n,n);if(Object(i.isObject)(C))e.data=Object(r.reactive)(C);else;}if(dt=!0,u){var P=function(e){var t=u[e],r=Object(i.isFunction)(t)?t.bind(n,n):Object(i.isFunction)(t.get)?t.get.bind(n,n):i.NOOP;var a=!Object(i.isFunction)(t)&&Object(i.isFunction)(t.set)?t.set.bind(n):i.NOOP,c=ai({get:r,set:a});Object.defineProperty(o,e,{enumerable:!0,configurable:!0,get:function(){return c.value},set:function(e){return c.value=e}})};for(var R in u)P(R)}if(s)for(var L in s)ht(s[L],o,n,L);if(l){var M=Object(i.isFunction)(l)?l.call(n):l;Reflect.ownKeys(M).forEach((function(e){xt(e,M[e])}))}function F(e,t){Object(i.isArray)(t)?t.forEach((function(t){return e(t.bind(n))})):t&&e(t.bind(n))}if(d&&vt(d,e,"c"),F(ke,p),F(Ne,v),F(Te,h),F(xe,y),F(me,m),F(ge,g),F(Re,E),F(Pe,w),F(Ce,S),F(je,b),F(Ae,O),F(Ie,k),Object(i.isArray)(N))if(N.length){var D=e.exposed||(e.exposed={});N.forEach((function(e){Object.defineProperty(D,e,{get:function(){return n[e]},set:function(t){return n[e]=t}})}))}else e.exposed||(e.exposed={});_&&e.render===i.NOOP&&(e.render=_),null!=T&&(e.inheritAttrs=T),x&&(e.components=x),j&&(e.directives=j)}function vt(e,t,n){O(Object(i.isArray)(e)?e.map((function(e){return e.bind(t.proxy)})):e.bind(t.proxy),t,n)}function ht(e,t,n,r){var o=r.includes(".")?Cn(n,r):function(){return n[r]};if(Object(i.isString)(e)){var a=t[e];Object(i.isFunction)(a)&&jn(o,a)}else if(Object(i.isFunction)(e))jn(o,e.bind(n));else if(Object(i.isObject)(e))if(Object(i.isArray)(e))e.forEach((function(e){return ht(e,t,n,r)}));else{var u=Object(i.isFunction)(e.handler)?e.handler.bind(n):t[e.handler];Object(i.isFunction)(u)&&jn(o,u,e)}else 0}function yt(e){var t,n=e.type,r=n.mixins,o=n.extends,a=e.appContext,u=a.mixins,c=a.optionsCache,s=a.config.optionMergeStrategies,l=c.get(n);return l?t=l:u.length||r||o?(t={},u.length&&u.forEach((function(e){return mt(t,e,s,!0)})),mt(t,n,s)):t=n,Object(i.isObject)(n)&&c.set(n,t),t}function mt(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=t.mixins,o=t.extends;for(var a in o&&mt(e,o,n,!0),i&&i.forEach((function(t){return mt(e,t,n,!0)})),t)if(r&&"expose"===a);else{var u=gt[a]||n&&n[a];e[a]=u?u(e[a],t[a]):t[a]}return e}var gt={data:bt,props:St,emits:St,methods:wt,computed:wt,beforeCreate:_t,created:_t,beforeMount:_t,mounted:_t,beforeUpdate:_t,updated:_t,beforeDestroy:_t,beforeUnmount:_t,destroyed:_t,unmounted:_t,activated:_t,deactivated:_t,errorCaptured:_t,serverPrefetch:_t,components:wt,directives:wt,watch:function(e,t){if(!e)return t;if(!t)return e;var n=Object(i.extend)(Object.create(null),e);for(var r in t)n[r]=_t(e[r],t[r]);return n},provide:bt,inject:function(e,t){return wt(Ot(e),Ot(t))}};function bt(e,t){return t?e?function(){return Object(i.extend)(Object(i.isFunction)(e)?e.call(this,this):e,Object(i.isFunction)(t)?t.call(this,this):t)}:t:e}function Ot(e){if(Object(i.isArray)(e)){for(var t={},n=0;n1&&void 0!==arguments[1]?arguments[1]:null;Object(i.isFunction)(n)||(n=Object(i.extend)({},n)),null==r||Object(i.isObject)(r)||(r=null);var o=Et(),a=new WeakSet,u=!1,c=o.app={_uid:kt++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:fi,get config(){return o.config},set config(e){0},use:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r2&&void 0!==arguments[2]&&arguments[2],r=Mr||$;if(r||Tt){var o=r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Tt._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Object(i.isFunction)(t)?t.call(r&&r.proxy):t}else 0}function At(){return!!(Mr||$||Tt)}var It={},Ct=function(){return Object.create(It)},Pt=function(e){return Object.getPrototypeOf(e)===It};function Rt(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o={},a=Ct();for(var u in e.propsDefaults=Object.create(null),Lt(e,t,o,a),e.propsOptions[0])u in o||(o[u]=void 0);n?e.props=i?o:Object(r.shallowReactive)(o):e.type.props?e.props=o:e.props=a,e.attrs=a}function Lt(e,t,n,o){var u,c=a(e.propsOptions,2),s=c[0],l=c[1],f=!1;if(t)for(var d in t)if(!Object(i.isReservedProp)(d)){var p=t[d],v=void 0;s&&Object(i.hasOwn)(s,v=Object(i.camelize)(d))?l&&l.includes(v)?(u||(u={}))[v]=p:n[v]=p:Dn(e.emitsOptions,d)||d in o&&p===o[d]||(o[d]=p,f=!0)}if(l)for(var h=Object(r.toRaw)(n),y=u||i.EMPTY_OBJ,m=0;m2&&void 0!==arguments[2]&&arguments[2],r=__VUE_OPTIONS_API__&&n?Ft:t.propsCache,o=r.get(e);if(o)return o;var u=e.props,s={},l=[],f=!1;if(__VUE_OPTIONS_API__&&!Object(i.isFunction)(e)){var d=function(e){f=!0;var n=a(Dt(e,t,!0),2),r=n[0],o=n[1];Object(i.extend)(s,r),o&&l.push.apply(l,c(o))};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!u&&!f)return Object(i.isObject)(e)&&r.set(e,i.EMPTY_ARR),i.EMPTY_ARR;if(Object(i.isArray)(u))for(var p=0;p-1,g[1]=O<0||b-1||Object(i.hasOwn)(g,"default"))&&l.push(y)}}}var _=[s,l];return Object(i.isObject)(e)&&r.set(e,_),_}function Vt(e){return"$"!==e[0]&&!Object(i.isReservedProp)(e)}function Bt(e){return null===e?"null":"function"==typeof e?e.name||"":"object"===u(e)&&e.constructor&&e.constructor.name||""}function Ut(e,t){return Bt(e)===Bt(t)}function Ht(e,t){return Object(i.isArray)(t)?t.findIndex((function(t){return Ut(t,e)})):Object(i.isFunction)(t)&&Ut(t,e)?0:-1}var $t=function(e){return"_"===e[0]||"$stable"===e},Yt=function(e){return Object(i.isArray)(e)?e.map(Nr):[Nr(e)]},Wt=function(e,t,n){var r=e._ctx,o=function(){if($t(a))return 1;var n=e[a];if(Object(i.isFunction)(n))t[a]=function(e,t,n){if(t._n)return t;var r=q((function(){return Yt(t.apply(void 0,arguments))}),n);return r._c=!1,r}(0,n,r);else if(null!=n){0;var o=Yt(n);t[a]=function(){return o}}};for(var a in e)o()},zt=function(e,t){var n=Yt(t);e.slots.default=function(){return n}},Kt=function(e,t,n){for(var r in t)(n||"_"!==r)&&(e[r]=t[r])},Gt=function(e,t,n){var r=e.slots=Ct();if(32&e.vnode.shapeFlag){var o=t._;o?(Kt(r,t,n),n&&Object(i.def)(r,"_",o,!0)):Wt(t,r)}else t&&zt(e,t)};function qt(e,t,n,o){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(Object(i.isArray)(e))e.forEach((function(e,r){return qt(e,t&&(Object(i.isArray)(t)?t[r]:t),n,o,a)}));else if(!fe(o)||a){var u=4&o.shapeFlag?ei(o.component):o.el,c=a?null:u,s=e.i,l=e.r;0;var f=t&&t.r,d=s.refs===i.EMPTY_OBJ?s.refs={}:s.refs,p=s.setupState;if(null!=f&&f!==l&&(Object(i.isString)(f)?(d[f]=null,Object(i.hasOwn)(p,f)&&(p[f]=null)):Object(r.isRef)(f)&&(f.value=null)),Object(i.isFunction)(l))b(l,s,12,[c,d]);else{var v=Object(i.isString)(l),h=Object(r.isRef)(l);if(v||h){var y=function(){if(e.f){var t=v?Object(i.hasOwn)(p,l)?p[l]:d[l]:l.value;a?Object(i.isArray)(t)&&Object(i.remove)(t,u):Object(i.isArray)(t)?t.includes(u)||t.push(u):v?(d[l]=[u],Object(i.hasOwn)(p,l)&&(p[l]=d[l])):(l.value=[u],e.k&&(d[e.k]=l.value))}else v?(d[l]=c,Object(i.hasOwn)(p,l)&&(p[l]=c)):h&&(l.value=c,e.k&&(d[e.k]=c))};c?(y.id=-1,vn(y,n)):y()}else 0}}}var Jt=Symbol("_vte"),Xt=function(e){return e.__isTeleport},Zt=function(e){return e&&(e.disabled||""===e.disabled)},Qt=function(e){return"undefined"!=typeof SVGElement&&e instanceof SVGElement},en=function(e){return"function"==typeof MathMLElement&&e instanceof MathMLElement},tn=function(e,t){var n=e&&e.to;return Object(i.isString)(n)?t?t(n):null:n};function nn(e,t,n,r){var i=r.o.insert,o=r.m,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2;0===a&&i(e.targetAnchor,t,n);var u=e.el,c=e.anchor,s=e.shapeFlag,l=e.children,f=e.props,d=2===a;if(d&&i(u,t,n),(!d||Zt(f))&&16&s)for(var p=0;p5&&void 0!==arguments[5]&&arguments[5];v=v||!!i.dynamicChildren;var h=sn(r)&&"["===r.data,S=function(){return b(r,i,o,a,f,h)},E=i.type,k=i.ref,N=i.shapeFlag,T=i.patchFlag,x=r.nodeType;i.el=r,-2===T&&(v=!1,i.dynamicChildren=null);var j=null;switch(E){case tr:3!==x?""===i.children?(d(i.el=c(""),l(r),r),j=r):j=S():(r.data!==i.children&&(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&p("Hydration text mismatch in",r.parentNode,"\n - rendered on server: ".concat(JSON.stringify(r.data),"\n - expected on client: ").concat(JSON.stringify(i.children))),un(),r.data=i.children),j=s(r));break;case nr:w(r)?(j=s(r),_(i.el=r.content.firstChild,r,o)):j=8!==x||h?S():s(r);break;case rr:if(h&&(x=(r=s(r)).nodeType),1===x||3===x){j=r;for(var A=!i.children.length,I=0;I1&&void 0!==arguments[1]?arguments[1]:"[",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"]",r=0;e;)if((e=s(e))&&sn(e)&&(e.data===t&&r++,e.data===n)){if(0===r)return s(e);r--}return e},_=function(e,t,n){var r=t.parentNode;r&&r.replaceChild(e,t);for(var i=n;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},w=function(e){return 1===e.nodeType&&"template"===e.tagName.toLowerCase()};return[function(e,t){if(!t.hasChildNodes())return __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&p("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),n(null,e,t),F(),void(t._vnode=e);h(t.firstChild,e,null,null,null),F(),t._vnode=e},h]}function fn(e,t,n,r,u){var c,s,l,f;if("class"===t)l=e.getAttribute("class"),f=Object(i.normalizeClass)(n),function(e,t){if(e.size!==t.size)return!1;var n,r=o(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!t.has(i))return!1}}catch(e){r.e(e)}finally{r.f()}return!0}(dn(l||""),dn(f))||(c=s="class");else if("style"===t){l=e.getAttribute("style")||"",f=Object(i.isString)(n)?n:Object(i.stringifyStyle)(Object(i.normalizeStyle)(n));var d=pn(l),v=pn(f);if(r.dirs){var h,y=o(r.dirs);try{for(y.s();!(h=y.n()).done;){var m=h.value,g=m.dir,b=m.value;"show"!==g.name||b||v.set("display","none")}}catch(e){y.e(e)}finally{y.f()}}u&&function e(t,n,r){var i=t.subTree;if(t.getCssVars&&(n===i||i&&i.type===er&&i.children.includes(n))){var o=t.getCssVars();for(var a in o)r.set("--".concat(a),String(o[a]))}n===i&&t.parent&&e(t.parent,t.vnode,r)}(u,r,v),function(e,t){if(e.size!==t.size)return!1;var n,r=o(e);try{for(r.s();!(n=r.n()).done;){var i=a(n.value,2),u=i[0];if(i[1]!==t.get(u))return!1}}catch(e){r.e(e)}finally{r.f()}return!0}(d,v)||(c=s="style")}else(e instanceof SVGElement&&Object(i.isKnownSvgAttr)(t)||e instanceof HTMLElement&&(Object(i.isBooleanAttr)(t)||Object(i.isKnownHtmlAttr)(t)))&&(Object(i.isBooleanAttr)(t)?(l=e.hasAttribute(t),f=Object(i.includeBooleanAttr)(n)):null==n?(l=e.hasAttribute(t),f=!1):(l=e.hasAttribute(t)?e.getAttribute(t):"value"===t&&"TEXTAREA"===e.tagName&&e.value,f=!!Object(i.isRenderableAttrValue)(n)&&String(n)),l!==f&&(c="attribute",s=t));if(c){var O=function(e){return!1===e?"(not rendered)":"".concat(s,'="').concat(e,'"')};return p("Hydration ".concat(c," mismatch on"),e,"\n - rendered on server: ".concat(O(l),"\n - expected on client: ").concat(O(f),"\n Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.\n You should fix the source of the mismatch.")),!0}return!1}function dn(e){return new Set(e.trim().split(/\s+/))}function pn(e){var t,n=new Map,r=o(e.split(";"));try{for(r.s();!(t=r.n()).done;){var i=a(t.value.split(":"),2),u=i[0],c=i[1];u=u.trim(),c=c&&c.trim(),u&&c&&n.set(u,c)}}catch(e){r.e(e)}finally{r.f()}return n}var vn=Xn;function hn(e){return mn(e)}function yn(e){return mn(e,ln)}function mn(e,t){"boolean"!=typeof __VUE_OPTIONS_API__&&(Object(i.getGlobalThis)().__VUE_OPTIONS_API__=!0),"boolean"!=typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&(Object(i.getGlobalThis)().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1),Object(i.getGlobalThis)().__VUE__=!0;var n,o,u=e.insert,c=e.remove,s=e.patchProp,l=e.createElement,f=e.createText,d=e.createComment,p=e.setText,v=e.setElementText,h=e.parentNode,y=e.nextSibling,m=e.setScopeId,g=void 0===m?i.NOOP:m,b=e.insertStaticContent,O=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:void 0,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:!!t.dynamicChildren;if(e!==t){e&&!vr(e,t)&&(r=ee(e),G(e,i,o,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null);var s=t.type,l=t.ref,f=t.shapeFlag;switch(s){case tr:_(e,t,n,r);break;case nr:w(e,t,n,r);break;case rr:null==e&&S(t,n,r,a);break;case er:D(e,t,n,r,i,o,a,u,c);break;default:1&f?x(e,t,n,r,i,o,a,u,c):6&f?V(e,t,n,r,i,o,a,u,c):(64&f||128&f)&&s.process(e,t,n,r,i,o,a,u,c,re)}null!=l&&i&&qt(l,e&&e.ref,o,t||e,!t)}},_=function(e,t,n,r){if(null==e)u(t.el=f(t.children),n,r);else{var i=t.el=e.el;t.children!==e.children&&p(i,t.children)}},w=function(e,t,n,r){null==e?u(t.el=d(t.children||""),n,r):t.el=e.el},S=function(e,t,n,r){var i=a(b(e.children,t,n,r,e.el,e.anchor),2);e.el=i[0],e.anchor=i[1]},E=function(e,t,n){for(var r,i=e.el,o=e.anchor;i&&i!==o;)r=y(i),u(i,t,n),i=r;u(o,t,n)},T=function(e){for(var t,n=e.el,r=e.anchor;n&&n!==r;)t=y(n),c(n),n=t;c(r)},x=function(e,t,n,r,i,o,a,u,c){"svg"===t.type?a="svg":"math"===t.type&&(a="mathml"),null==e?j(t,n,r,i,o,a,u,c):C(e,t,i,o,a,u,c)},j=function(e,t,n,r,o,a,c,f){var d,p,h=e.props,y=e.shapeFlag,m=e.transition,g=e.dirs;if(d=e.el=l(e.type,a,h&&h.is,h),8&y?v(d,e.children):16&y&&I(e.children,d,null,r,o,gn(e,a),c,f),g&&X(e,null,r,"created"),A(d,e,e.scopeId,c,r),h){for(var b in h)"value"===b||Object(i.isReservedProp)(b)||s(d,b,null,h[b],a,r);"value"in h&&s(d,"value",null,h.value,a),(p=h.onVnodeBeforeMount)&&Ar(p,r,e)}g&&X(e,null,r,"beforeMount");var O=On(o,m);O&&m.beforeEnter(d),u(d,t,n),((p=h&&h.onVnodeMounted)||O||g)&&vn((function(){p&&Ar(p,r,e),O&&m.enter(d),g&&X(e,null,r,"mounted")}),o)},A=function e(t,n,r,i,o){if(r&&g(t,r),i)for(var a=0;a8&&void 0!==arguments[8]?arguments[8]:0,s=c;s0){if(16&l)L(c,h,y,n,o);else if(2&l&&h.class!==y.class&&s(c,"class",null,y.class,o),4&l&&s(c,"style",h.style,y.style,o),8&l)for(var m=t.dynamicProps,g=0;g0&&64&p&&v&&e.dynamicChildren?(R(e.dynamicChildren,v,n,i,o,a,c),(null!=t.key||i&&t===i.subTree)&&_n(e,t,!0)):Y(e,t,n,d,i,o,a,c,s)},V=function(e,t,n,r,i,o,a,u,c){t.slotScopeIds=u,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,a,c):B(t,n,r,i,o,a,c):U(e,t,c)},B=function(e,t,n,r,i,o,a){var u=e.component=Pr(e,r,i);if(ve(e)&&(u.ctx.renderer=re),zr(u,!1,a),u.asyncDep){if(i&&i.registerDep(u,H,a),!e.el){var c=u.subTree=br(nr);w(null,c,t,n)}}else H(u,e,t,n,i,o,a)},U=function(e,t,n){var r,i,o=t.component=e.component;if(function(e,t,n){var r=e.props,i=e.children,o=e.component,a=t.props,u=t.children,c=t.patchFlag,s=o.emitsOptions;0;if(t.dirs||t.transition)return!0;if(!(n&&c>=0))return!(!i&&!u||u&&u.$stable)||r!==a&&(r?!a||$n(r,a,s):!!a);if(1024&c)return!0;if(16&c)return r?$n(r,a,s):!!a;if(8&c)for(var l=t.dynamicProps,f=0;fN&&k.splice(i,1),o.effect.dirty=!0,o.update()}else t.el=e.el,o.vnode=t},H=function(e,t,n,a,u,c,s){var l=e.effect=new r.ReactiveEffect((function r(){if(e.isMounted){var l=e.next,f=e.bu,d=e.u,p=e.parent,v=e.vnode,y=function e(t){var n=t.subTree.component;if(n)return n.asyncDep&&!n.asyncResolved?n:e(n)}(e);if(y)return l&&(l.el=v.el,$(e,l,s)),void y.asyncDep.then((function(){e.isUnmounted||r()}));var m,g=l;0,bn(e,!1),l?(l.el=v.el,$(e,l,s)):l=v,f&&Object(i.invokeArrayFns)(f),(m=l.props&&l.props.onVnodeBeforeUpdate)&&Ar(m,p,l,v),bn(e,!0);var b=Vn(e);0;var _=e.subTree;e.subTree=b,O(_,b,h(_.el),ee(_),e,u,c),l.el=b.el,null===g&&Yn(e,b.el),d&&vn(d,u),(m=l.props&&l.props.onVnodeUpdated)&&vn((function(){return Ar(m,p,l,v)}),u)}else{var w,S=t,E=S.el,k=S.props,N=e.bm,T=e.m,x=e.parent,j=fe(t);if(bn(e,!1),N&&Object(i.invokeArrayFns)(N),!j&&(w=k&&k.onVnodeBeforeMount)&&Ar(w,x,t),bn(e,!0),E&&o){var A=function(){e.subTree=Vn(e),o(E,e.subTree,e,u,null)};j?t.type.__asyncLoader().then((function(){return!e.isUnmounted&&A()})):A()}else{0;var I=e.subTree=Vn(e);0,O(null,I,n,a,e,u,c),t.el=I.el}if(T&&vn(T,u),!j&&(w=k&&k.onVnodeMounted)){var C=t;vn((function(){return Ar(w,x,C)}),u)}(256&t.shapeFlag||x&&fe(x.vnode)&&256&x.vnode.shapeFlag)&&e.a&&vn(e.a,u),e.isMounted=!0,t=n=a=null}}),i.NOOP,(function(){return P(f)}),e.scope),f=e.update=function(){l.dirty&&l.run()};f.i=e,f.id=e.uid,bn(e,!0),f()},$=function(e,t,n){t.component=e;var o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){var u=e.props,c=e.attrs,s=e.vnode.patchFlag,l=Object(r.toRaw)(u),f=a(e.propsOptions,1)[0],d=!1;if(!(o||s>0)||16&s){var p;for(var v in Lt(e,t,u,c)&&(d=!0),l)t&&(Object(i.hasOwn)(t,v)||(p=Object(i.hyphenate)(v))!==v&&Object(i.hasOwn)(t,p))||(f?!n||void 0===n[v]&&void 0===n[p]||(u[v]=Mt(f,l,v,void 0,e,!0)):delete u[v]);if(c!==l)for(var h in c)t&&Object(i.hasOwn)(t,h)||(delete c[h],d=!0)}else if(8&s)for(var y=e.vnode.dynamicProps,m=0;m8&&void 0!==arguments[8]&&arguments[8],s=e&&e.children,l=e?e.shapeFlag:0,f=t.children,d=t.patchFlag,p=t.shapeFlag;if(d>0){if(128&d)return void z(s,f,n,r,i,o,a,u,c);if(256&d)return void W(s,f,n,r,i,o,a,u,c)}8&p?(16&l&&Q(s,i,o),f!==s&&v(n,f)):16&l?16&p?z(s,f,n,r,i,o,a,u,c):Q(s,i,o,!0):(8&l&&v(n,""),16&p&&I(f,n,r,i,o,a,u,c))},W=function(e,t,n,r,o,a,u,c,s){e=e||i.EMPTY_ARR,t=t||i.EMPTY_ARR;var l,f=e.length,d=t.length,p=Math.min(f,d);for(l=0;ld?Q(e,o,a,!0,!1,p):I(t,n,r,o,a,u,c,s,p)},z=function(e,t,n,r,o,a,u,c,s){for(var l=0,f=t.length,d=e.length-1,p=f-1;l<=d&&l<=p;){var v=e[l],h=t[l]=s?Tr(t[l]):Nr(t[l]);if(!vr(v,h))break;O(v,h,n,null,o,a,u,c,s),l++}for(;l<=d&&l<=p;){var y=e[d],m=t[p]=s?Tr(t[p]):Nr(t[p]);if(!vr(y,m))break;O(y,m,n,null,o,a,u,c,s),d--,p--}if(l>d){if(l<=p)for(var g=p+1,b=gp)for(;l<=d;)G(e[l],o,a,!0),l++;else{var _,w=l,S=l,E=new Map;for(l=S;l<=p;l++){var k=t[l]=s?Tr(t[l]):Nr(t[l]);null!=k.key&&E.set(k.key,l)}var N=0,T=p-S+1,x=!1,j=0,A=new Array(T);for(l=0;l=T)G(I,o,a,!0);else{var C=void 0;if(null!=I.key)C=E.get(I.key);else for(_=S;_<=p;_++)if(0===A[_-S]&&vr(I,t[_])){C=_;break}void 0===C?G(I,o,a,!0):(A[C-S]=l+1,C>=j?j=C:x=!0,O(I,t[C],n,null,o,a,u,c,s),N++)}}var P=x?function(e){var t,n,r,i,o,a=e.slice(),u=[0],c=e.length;for(t=0;t>1]]0&&(a[t]=u[r-1]),u[r]=t)}}r=u.length,i=u[r-1];for(;r-- >0;)u[r]=i,i=a[i];return u}(A):i.EMPTY_ARR;for(_=P.length-1,l=T-1;l>=0;l--){var R=S+l,L=t[R],M=R+14&&void 0!==arguments[4]?arguments[4]:null,a=t.el,c=t.type,s=t.transition,l=t.children,f=t.shapeFlag;if(6&f)e(t.component.subTree,n,r,i);else if(128&f)t.suspense.move(n,r,i);else if(64&f)c.move(t,n,r,re);else if(c!==er)if(c!==rr){var d=2!==i&&1&f&&s;if(d)if(0===i)s.beforeEnter(a),u(a,n,r),vn((function(){return s.enter(a)}),o);else{var p=s.leave,v=s.delayLeave,h=s.afterLeave,y=function(){return u(a,n,r)},m=function(){p(a,(function(){y(),h&&h()}))};v?v(a,y,m):m()}else u(a,n,r)}else E(t,n,r);else{u(a,n,r);for(var g=0;g3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=e.type,a=e.props,u=e.ref,c=e.children,s=e.dynamicChildren,l=e.shapeFlag,f=e.patchFlag,d=e.dirs,p=e.cacheIndex;if(-2===f&&(i=!1),null!=u&&qt(u,null,n,e,!0),null!=p&&(t.renderCache[p]=void 0),256&l)t.ctx.deactivate(e);else{var v,h=1&l&&d,y=!fe(e);if(y&&(v=a&&a.onVnodeBeforeUnmount)&&Ar(v,t,e),6&l)Z(e.component,n,r);else{if(128&l)return void e.suspense.unmount(n,r);h&&X(e,null,t,"beforeUnmount"),64&l?e.type.remove(e,t,n,re,r):s&&!s.hasOnce&&(o!==er||f>0&&64&f)?Q(s,t,n,!1,!0):(o===er&&384&f||!i&&16&l)&&Q(c,t,n),r&&q(e)}(y&&(v=a&&a.onVnodeUnmounted)||h)&&vn((function(){v&&Ar(v,t,e),h&&X(e,null,t,"unmounted")}),n)}},q=function(e){var t=e.type,n=e.el,r=e.anchor,i=e.transition;if(t!==er)if(t!==rr){var o=function(){c(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){var a=i.leave,u=i.delayLeave,s=function(){return a(n,o)};u?u(e.el,o,s):s()}else o()}else T(e);else J(n,r)},J=function(e,t){for(var n;e!==t;)n=y(e),c(e),e=n;c(t)},Z=function(e,t,n){var r=e.bum,o=e.scope,a=e.update,u=e.subTree,c=e.um,s=e.m,l=e.a;wn(s),wn(l),r&&Object(i.invokeArrayFns)(r),o.stop(),a&&(a.active=!1,G(u,e,t,n)),c&&vn(c,t),vn((function(){e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},Q=function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=o;a2&&void 0!==arguments[2]&&arguments[2],r=e.children,o=t.children;if(Object(i.isArray)(r)&&Object(i.isArray)(o))for(var a=0;a2&&void 0!==arguments[2]?arguments[2]:i.EMPTY_OBJ,o=n.immediate,a=n.deep,u=n.flush,c=n.once;n.onTrack,n.onTrigger;if(t&&c){var s=t;t=function(){s.apply(void 0,arguments),T()}}var l,f,d=Mr,p=function(e){return!0===a?e:Pn(e,!1===a?1:void 0)},v=!1,h=!1;if(Object(r.isRef)(e)?(l=function(){return e.value},v=Object(r.isShallow)(e)):Object(r.isReactive)(e)?(l=function(){return p(e)},v=!0):Object(i.isArray)(e)?(h=!0,v=e.some((function(e){return Object(r.isReactive)(e)||Object(r.isShallow)(e)})),l=function(){return e.map((function(e){return Object(r.isRef)(e)?e.value:Object(r.isReactive)(e)?p(e):Object(i.isFunction)(e)?b(e,d,2):void 0}))}):l=Object(i.isFunction)(e)?t?function(){return b(e,d,2)}:function(){return f&&f(),O(e,d,3,[g])}:i.NOOP,t&&a){var y=l;l=function(){return Pn(y())}}var m,g=function(e){f=k.onStop=function(){b(e,d,4),f=k.onStop=void 0}};if(Wr){if(g=i.NOOP,t?o&&O(t,d,3,[l(),h?[]:void 0,g]):l(),"sync"!==u)return i.NOOP;var _=En();m=_.__watcherHandles||(_.__watcherHandles=[])}var w,S=h?new Array(e.length).fill(xn):xn,E=function(){if(k.active&&k.dirty)if(t){var e=k.run();(a||v||(h?e.some((function(e,t){return Object(i.hasChanged)(e,S[t])})):Object(i.hasChanged)(e,S)))&&(f&&f(),O(t,d,3,[e,S===xn?void 0:h&&S[0]===xn?[]:S,g]),S=e)}else k.run()};E.allowRecurse=!!t,"sync"===u?w=E:"post"===u?w=function(){return vn(E,d&&d.suspense)}:(E.pre=!0,d&&(E.id=d.uid),w=function(){return P(E)});var k=new r.ReactiveEffect(l,i.NOOP,w),N=Object(r.getCurrentScope)(),T=function(){k.stop(),N&&Object(i.remove)(N.effects,k)};return t?o?E():S=k.run():"post"===u?vn(k.run.bind(k),d&&d.suspense):k.run(),m&&m.push(T),T}function In(e,t,n){var r,o=this.proxy,a=Object(i.isString)(e)?e.includes(".")?Cn(o,e):function(){return o[e]}:e.bind(o,o);Object(i.isFunction)(t)?r=t:(r=t.handler,n=t);var u=Br(this),c=An(a,r.bind(o),n);return u(),c}function Cn(e,t){var n=t.split(".");return function(){for(var t=e,r=0;r1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2?arguments[2]:void 0;if(t<=0||!Object(i.isObject)(e)||e.__v_skip)return e;if((n=n||new Set).has(e))return e;if(n.add(e),t--,Object(r.isRef)(e))Pn(e.value,t,n);else if(Object(i.isArray)(e))for(var a=0;a2&&void 0!==arguments[2]?arguments[2]:i.EMPTY_OBJ,o=Fr();var a=Object(i.camelize)(t),u=Object(i.hyphenate)(t),c=Ln(e,t),s=Object(r.customRef)((function(r,c){var s,l,f;return Tn((function(){var n=e[t];Object(i.hasChanged)(s,n)&&(s=n,c())})),{get:function(){return r(),n.get?n.get(s):s},set:function(e){if(Object(i.hasChanged)(e,s)){var r=o.vnode.props;r&&(t in r||a in r||u in r)&&("onUpdate:".concat(t)in r||"onUpdate:".concat(a)in r||"onUpdate:".concat(u)in r)||(s=e,c());var d=n.set?n.set(e):e;o.emit("update:".concat(t),d),e!==d&&e!==l&&d===f&&c(),l=e,f=d}}}}));return s[Symbol.iterator]=function(){var e=0;return{next:function(){return e<2?{value:e++?c||i.EMPTY_OBJ:s,done:!1}:{done:!0}}}},s}var Ln=function(e,t){return"modelValue"===t||"model-value"===t?e.modelModifiers:e["".concat(t,"Modifiers")]||e["".concat(Object(i.camelize)(t),"Modifiers")]||e["".concat(Object(i.hyphenate)(t),"Modifiers")]};function Mn(e,t){if(!e.isUnmounted){for(var n=e.vnode.props||i.EMPTY_OBJ,r=arguments.length,o=new Array(r>2?r-2:0),a=2;a2&&void 0!==arguments[2]&&arguments[2],r=t.emitsCache,o=r.get(e);if(void 0!==o)return o;var a=e.emits,u={},c=!1;if(__VUE_OPTIONS_API__&&!Object(i.isFunction)(e)){var s=function(e){var n=Fn(e,t,!0);n&&(c=!0,Object(i.extend)(u,n))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return a||c?(Object(i.isArray)(a)?a.forEach((function(e){return u[e]=null})):Object(i.extend)(u,a),Object(i.isObject)(e)&&r.set(e,u),u):(Object(i.isObject)(e)&&r.set(e,null),null)}function Dn(e,t){return!(!e||!Object(i.isOn)(t))&&(t=t.slice(2).replace(/Once$/,""),Object(i.hasOwn)(e,t[0].toLowerCase()+t.slice(1))||Object(i.hasOwn)(e,Object(i.hyphenate)(t))||Object(i.hasOwn)(e,t))}function Vn(e){var t,n,r=e.type,o=e.vnode,u=e.proxy,c=e.withProxy,s=a(e.propsOptions,1)[0],l=e.slots,f=e.attrs,d=e.emit,p=e.render,v=e.renderCache,h=e.props,y=e.data,m=e.setupState,g=e.ctx,b=e.inheritAttrs,O=W(e);try{if(4&o.shapeFlag){var w=c||u,S=w;t=Nr(p.call(S,w,v,h,m,y,g)),n=f}else{var E=r;0,t=Nr(E.length>1?E(h,{attrs:f,slots:l,emit:d}):E(h,null)),n=r.props?f:Un(f)}}catch(n){ir.length=0,_(n,e,1),t=br(nr)}var k=t;if(n&&!1!==b){var N=Object.keys(n),T=k.shapeFlag;if(N.length)if(7&T)s&&N.some(i.isModelListener)&&(n=Hn(n,s)),k=wr(k,n,!1,!0);else;}return o.dirs&&((k=wr(k,null,!1,!0)).dirs=k.dirs?k.dirs.concat(o.dirs):o.dirs),o.transition&&(k.transition=o.transition),t=k,W(O),t}function Bn(e){for(var t,n=0;n0?(Gn(e,"onPending"),Gn(e,"onFallback"),s(null,e.ssFallback,t,n,r,null,o,a),Zn(f,e.ssFallback)):f.resolve(!1,!0)}(t,n,r,i,o,a,u,c,s);else{if(o&&o.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,r,i,o,a,u,c){var s=c.p,l=c.um,f=c.o.createElement,d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;var p=t.ssContent,v=t.ssFallback,h=d.activeBranch,y=d.pendingBranch,m=d.isInFallback,g=d.isHydrating;if(y)d.pendingBranch=p,vr(p,y)?(s(y,p,d.hiddenContainer,null,i,d,o,a,u),d.deps<=0?d.resolve():m&&(g||(s(h,v,n,r,i,null,o,a,u),Zn(d,v)))):(d.pendingId=zn++,g?(d.isHydrating=!1,d.activeBranch=y):l(y,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=f("div"),m?(s(null,p,d.hiddenContainer,null,i,d,o,a,u),d.deps<=0?d.resolve():(s(h,v,n,r,i,null,o,a,u),Zn(d,v))):h&&vr(p,h)?(s(h,p,n,r,i,d,o,a,u),d.resolve(!0)):(s(null,p,d.hiddenContainer,null,i,d,o,a,u),d.deps<=0&&d.resolve()));else if(h&&vr(p,h))s(h,p,n,r,i,d,o,a,u),Zn(d,p);else if(Gn(t,"onPending"),d.pendingBranch=p,512&p.shapeFlag?d.pendingId=p.component.suspenseId:d.pendingId=zn++,s(null,p,d.hiddenContainer,null,i,d,o,a,u),d.deps<=0)d.resolve();else{var b=d.timeout,O=d.pendingId;b>0?setTimeout((function(){d.pendingId===O&&d.fallback(v)}),b):0===b&&d.fallback(v)}}(e,t,n,r,i,a,u,c,s)}},hydrate:function(e,t,n,r,i,o,a,u,c){var s=t.suspense=qn(t,r,n,e.parentNode,document.createElement("div"),null,i,o,a,u,!0),l=c(e,s.pendingBranch=t.ssContent,n,s,o,a);0===s.deps&&s.resolve(!1,!0);return l},normalize:function(e){var t=e.shapeFlag,n=e.children,r=32&t;e.ssContent=Jn(r?n.default:n),e.ssFallback=r?Jn(n.fallback):br(nr)}};function Gn(e,t){var n=e.props&&e.props[t];Object(i.isFunction)(n)&&n()}function qn(e,t,n,r,o,a,u,s,l,f){var d=arguments.length>10&&void 0!==arguments[10]&&arguments[10];var p,v=f.p,h=f.m,y=f.um,m=f.n,g=f.o,b=g.parentNode,O=g.remove,w=Qn(e);w&&t&&t.pendingBranch&&(p=t.pendingId,t.deps++);var S=e.props?Object(i.toNumber)(e.props.timeout):void 0;var E=a,k={vnode:e,parent:t,parentComponent:n,namespace:u,container:r,hiddenContainer:o,deps:0,pendingId:zn++,timeout:"number"==typeof S?S:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var r=k.vnode,i=k.activeBranch,o=k.pendingBranch,u=k.pendingId,s=k.effects,l=k.parentComponent,f=k.container,d=!1;k.isHydrating?k.isHydrating=!1:e||((d=i&&o.transition&&"out-in"===o.transition.mode)&&(i.transition.afterLeave=function(){u===k.pendingId&&(h(o,f,a===E?m(i):a,0),L(s))}),i&&(b(i.el)!==k.hiddenContainer&&(a=m(i)),y(i,l,k,!0)),d||h(o,f,a,0)),Zn(k,o),k.pendingBranch=null,k.isInFallback=!1;for(var v=k.parent,g=!1;v;){if(v.pendingBranch){var O;(O=v.effects).push.apply(O,c(s)),g=!0;break}v=v.parent}g||d||L(s),k.effects=[],w&&t&&t.pendingBranch&&p===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),Gn(r,"onResolve")},fallback:function(e){if(k.pendingBranch){var t=k.vnode,n=k.activeBranch,r=k.parentComponent,i=k.container,o=k.namespace;Gn(t,"onFallback");var a=m(n),u=function(){k.isInFallback&&(v(null,e,i,a,r,null,o,s,l),Zn(k,e))},c=e.transition&&"out-in"===e.transition.mode;c&&(n.transition.afterLeave=u),k.isInFallback=!0,y(n,r,null,!0),c||u()}},move:function(e,t,n){k.activeBranch&&h(k.activeBranch,e,t,n),k.container=e},next:function(){return k.activeBranch&&m(k.activeBranch)},registerDep:function(e,t,n){var r=!!k.pendingBranch;r&&k.deps++;var i=e.vnode.el;e.asyncDep.catch((function(t){_(t,e,0)})).then((function(o){if(!e.isUnmounted&&!k.isUnmounted&&k.pendingId===e.suspenseId){e.asyncResolved=!0;var a=e.vnode;0,Gr(e,o,!1),i&&(a.el=i);var c=!i&&e.subTree.el;t(e,a,b(i||e.subTree.el),i?null:m(e.subTree),k,u,n),c&&O(c),Yn(e,a.el),r&&0==--k.deps&&k.resolve()}}))},unmount:function(e,t){k.isUnmounted=!0,k.activeBranch&&y(k.activeBranch,n,e,t),k.pendingBranch&&y(k.pendingBranch,n,e,t)}};return k}function Jn(e){var t;if(Object(i.isFunction)(e)){var n=cr&&e._c;n&&(e._d=!1,ar()),e=e(),n&&(e._d=!0,t=or,ur())}if(Object(i.isArray)(e)){var r=Bn(e);0,e=r}return e=Nr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter((function(t){return t!==e}))),e}function Xn(e,t){var n;t&&t.pendingBranch?Object(i.isArray)(e)?(n=t.effects).push.apply(n,c(e)):t.effects.push(e):L(e)}function Zn(e,t){e.activeBranch=t;for(var n=e.vnode,r=e.parentComponent,i=t.el;!i&&t.component;)i=(t=t.component.subTree).el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,Yn(r,i))}function Qn(e){var t=e.props&&e.props.suspensible;return null!=t&&!1!==t}var er=Symbol.for("v-fgt"),tr=Symbol.for("v-txt"),nr=Symbol.for("v-cmt"),rr=Symbol.for("v-stc"),ir=[],or=null;function ar(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];ir.push(or=e?null:[])}function ur(){ir.pop(),or=ir[ir.length-1]||null}var cr=1;function sr(e){cr+=e,e<0&&or&&(or.hasOnce=!0)}function lr(e){return e.dynamicChildren=cr>0?or||i.EMPTY_ARR:null,ur(),cr>0&&or&&or.push(e),e}function fr(e,t,n,r,i,o){return lr(gr(e,t,n,r,i,o,!0))}function dr(e,t,n,r,i){return lr(br(e,t,n,r,i,!0))}function pr(e){return!!e&&!0===e.__v_isVNode}function vr(e,t){return e.type===t.type&&e.key===t.key}function hr(e){e}var yr=function(e){var t=e.key;return null!=t?t:null},mr=function(e){var t=e.ref,n=e.ref_key,o=e.ref_for;return"number"==typeof t&&(t=""+t),null!=t?Object(i.isString)(t)||Object(r.isRef)(t)||Object(i.isFunction)(t)?{i:$,r:t,k:n,f:!!o}:t:null};function gr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e===er?0:1,u=arguments.length>6&&void 0!==arguments[6]&&arguments[6],c=arguments.length>7&&void 0!==arguments[7]&&arguments[7],s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&yr(t),ref:t&&mr(t),scopeId:Y,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:$};return c?(xr(s,n),128&a&&e.normalize(s)):n&&(s.shapeFlag|=Object(i.isString)(n)?8:16),cr>0&&!u&&or&&(s.patchFlag>0||6&a)&&32!==s.patchFlag&&or.push(s),s}var br=Or;function Or(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,u=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(e&&e!==Me||(e=nr),pr(e)){var c=wr(e,t,!0);return n&&xr(c,n),cr>0&&!u&&or&&(6&c.shapeFlag?or[or.indexOf(e)]=c:or.push(c)),c.patchFlag=-2,c}if(oi(e)&&(e=e.__vccOpts),t){var s=t=_r(t),l=s.class,f=s.style;l&&!Object(i.isString)(l)&&(t.class=Object(i.normalizeClass)(l)),Object(i.isObject)(f)&&(Object(r.isProxy)(f)&&!Object(i.isArray)(f)&&(f=Object(i.extend)({},f)),t.style=Object(i.normalizeStyle)(f))}var d=Object(i.isString)(e)?1:Wn(e)?128:Xt(e)?64:Object(i.isObject)(e)?4:Object(i.isFunction)(e)?2:0;return gr(e,t,n,o,a,d,u,!0)}function _r(e){return e?Object(r.isProxy)(e)||Pt(e)?Object(i.extend)({},e):e:null}function wr(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=e.props,a=e.ref,u=e.patchFlag,c=e.children,s=e.transition,l=t?jr(o||{},t):o,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&yr(l),ref:t&&t.ref?n&&a?Object(i.isArray)(a)?a.concat(mr(t)):[a,mr(t)]:mr(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==er?-1===u?16:16|u:u,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&wr(e.ssContent),ssFallback:e.ssFallback&&wr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return s&&r&&ce(f,s.clone(f)),f}function Sr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return br(tr,null,e,t)}function Er(e,t){var n=br(rr,null,e);return n.staticCount=t,n}function kr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?(ar(),dr(nr,null,e)):br(nr,null,e)}function Nr(e){return null==e||"boolean"==typeof e?br(nr):Object(i.isArray)(e)?br(er,null,e.slice()):"object"===u(e)?Tr(e):br(tr,null,String(e))}function Tr(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:wr(e)}function xr(e,t){var n=0,r=e.shapeFlag;if(null==t)t=null;else if(Object(i.isArray)(t))n=16;else if("object"===u(t)){if(65&r){var o=t.default;return void(o&&(o._c&&(o._d=!1),xr(e,o()),o._c&&(o._d=!0)))}n=32;var a=t._;a||Pt(t)?3===a&&$&&(1===$.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=$}else Object(i.isFunction)(t)?(t={default:t,_ctx:$},n=32):(t=String(t),64&r?(n=16,t=[Sr(t)]):n=8);e.children=t,e.shapeFlag|=n}function jr(){for(var e={},t=0;t3&&void 0!==arguments[3]?arguments[3]:null;O(e,t,7,[n,r])}var Ir=Et(),Cr=0;function Pr(e,t,n){var o=e.type,a=(t?t.appContext:e.appContext)||Ir,u={uid:Cr++,vnode:e,type:o,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new r.EffectScope(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Dt(o,a),emitsOptions:Fn(o,a),emit:null,emitted:null,propsDefaults:i.EMPTY_OBJ,inheritAttrs:o.inheritAttrs,ctx:i.EMPTY_OBJ,data:i.EMPTY_OBJ,props:i.EMPTY_OBJ,attrs:i.EMPTY_OBJ,slots:i.EMPTY_OBJ,refs:i.EMPTY_OBJ,setupState:i.EMPTY_OBJ,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return u.ctx={_:u},u.root=t?t.root:u,u.emit=Mn.bind(null,u),e.ce&&e.ce(u),u}var Rr,Lr,Mr=null,Fr=function(){return Mr||$},Dr=Object(i.getGlobalThis)(),Vr=function(e,t){var n;return(n=Dr[e])||(n=Dr[e]=[]),n.push(t),function(e){n.length>1?n.forEach((function(t){return t(e)})):n[0](e)}};Rr=Vr("__VUE_INSTANCE_SETTERS__",(function(e){return Mr=e})),Lr=Vr("__VUE_SSR_SETTERS__",(function(e){return Wr=e}));var Br=function(e){var t=Mr;return Rr(e),e.scope.on(),function(){e.scope.off(),Rr(t)}},Ur=function(){Mr&&Mr.scope.off(),Rr(null)};function Hr(e){return 4&e.vnode.shapeFlag}var $r,Yr,Wr=!1;function zr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t&&Lr(t);var r=e.vnode,i=r.props,o=r.children,a=Hr(e);Rt(e,i,a,t),Gt(e,o,n);var u=a?Kr(e,t):void 0;return t&&Lr(!1),u}function Kr(e,t){var n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,qe);var o=n.setup;if(o){var a=e.setupContext=o.length>1?Qr(e):null,u=Br(e);Object(r.pauseTracking)();var c=b(o,e,0,[e.props,a]);if(Object(r.resetTracking)(),u(),Object(i.isPromise)(c)){if(c.then(Ur,Ur),t)return c.then((function(n){Gr(e,n,t)})).catch((function(t){_(t,e,0)}));e.asyncDep=c}else Gr(e,c,t)}else Xr(e,t)}function Gr(e,t,n){Object(i.isFunction)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Object(i.isObject)(t)&&(e.setupState=Object(r.proxyRefs)(t)),Xr(e,n)}function qr(e){$r=e,Yr=function(e){e.render._rc&&(e.withProxy=new Proxy(e.ctx,Je))}}var Jr=function(){return!$r};function Xr(e,t,n){var o=e.type;if(!e.render){if(!t&&$r&&!o.render){var a=o.template||yt(e).template;if(a){0;var u=e.appContext.config,c=u.isCustomElement,s=u.compilerOptions,l=o.delimiters,f=o.compilerOptions,d=Object(i.extend)(Object(i.extend)({isCustomElement:c,delimiters:l},s),f);o.render=$r(a,d)}}e.render=o.render||i.NOOP,Yr&&Yr(e)}if(__VUE_OPTIONS_API__){var p=Br(e);Object(r.pauseTracking)();try{pt(e)}finally{Object(r.resetTracking)(),p()}}}var Zr={get:function(e,t){return Object(r.track)(e,"get",""),e[t]}};function Qr(e){return{attrs:new Proxy(e.attrs,Zr),slots:e.slots,emit:e.emit,expose:function(t){e.exposed=t||{}}}}function ei(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Object(r.proxyRefs)(Object(r.markRaw)(e.exposed)),{get:function(t,n){return n in t?t[n]:n in Ke?Ke[n](e):void 0},has:function(e,t){return t in e||t in Ke}})):e.proxy}var ti=/(?:^|[-_])(\w)/g,ni=function(e){return e.replace(ti,(function(e){return e.toUpperCase()})).replace(/[-_]/g,"")};function ri(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Object(i.isFunction)(e)?e.displayName||e.name:e.name||t&&e.__name}function ii(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=ri(t);if(!r&&t.__file){var i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(r=i[1])}if(!r&&e&&e.parent){var o=function(e){for(var n in e)if(e[n]===t)return n};r=o(e.components||e.parent.type.components)||o(e.appContext.components)}return r?ni(r):n?"App":"Anonymous"}function oi(e){return Object(i.isFunction)(e)&&"__vccOpts"in e}var ai=function(e,t){return Object(r.computed)(e,t,Wr)};function ui(e,t,n){var r=arguments.length;return 2===r?Object(i.isObject)(t)&&!Object(i.isArray)(t)?pr(t)?br(e,null,[t]):br(e,t):br(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&pr(n)&&(n=[n]),br(e,t,n))}function ci(){return void 0}function si(e,t,n,r){var i=n[r];if(i&&li(i,e))return i;var o=t();return o.memo=e.slice(),o.cacheIndex=r,n[r]=o}function li(e,t){var n=e.memo;if(n.length!=t.length)return!1;for(var r=0;r0&&or&&or.push(e),!0}var fi="3.4.32",di=i.NOOP,pi=g,vi=U,hi=function e(t,n){var r,i;if(U=t)U.enabled=!0,H.forEach((function(e){var t,n=e.event,r=e.args;return(t=U).emit.apply(t,[n].concat(c(r)))})),H=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null==(i=null==(r=window.navigator)?void 0:r.userAgent)?void 0:i.includes("jsdom"))){(n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((function(t){e(t,n)})),setTimeout((function(){U||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,!0,H=[])}),3e3)}else!0,H=[]},yi={createComponentInstance:Pr,setupComponent:zr,renderComponentRoot:Vn,setCurrentRenderingInstance:W,isVNode:pr,normalizeVNode:Nr,getComponentPublicInstance:ei},mi=null,gi=null,bi=null},"../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js":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=Object.prototype.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=new Array(t);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},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)),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];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("./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;n0===l.indexOf(e))){var s=l.split("/"),c=s[s.length-1],h=c.split(".")[0];(u=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[h])&&(l=u+c)}else{var u;h=l.split(".")[0];(u=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[h])&&(l=u+l)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+l;var n=o[e];0!==n&&n&&n[1](t),o[e]=void 0}},global.dynamicLoad(l,onScriptComplete)}return Promise.all(t)},r.m=e,r.c=n,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var i=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],a=i.push.bind(i);i.push=t,i=i.slice();for(var l=0;l0===l.indexOf(e))){var s=l.split("/"),c=s[s.length-1],h=c.split(".")[0];(u=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[h])&&(l=u+c)}else{var u;h=l.split(".")[0];(u=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[h])&&(l=u+l)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+l;var n=o[e];0!==n&&n&&n[1](t),o[e]=void 0}},global.dynamicLoad(l,onScriptComplete)}return Promise.all(t)},r.m=e,r.c=n,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var i=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],a=i.push.bind(i);i.push=t,i=i.slice();for(var l=0;l=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;C(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:v(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=o}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}},"./node_modules/webpack/buildin/global.js":function(e,t,n){e.exports=n("dll-reference hippyReactBase")("./node_modules/webpack/buildin/global.js")},"./src/app.jsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return fn}));var o={};n.r(o),n.d(o,"Focusable",(function(){return N})),n.d(o,"Image",(function(){return q})),n.d(o,"ListView",(function(){return $})),n.d(o,"Modal",(function(){return re})),n.d(o,"RefreshWrapper",(function(){return Re})),n.d(o,"PullHeaderFooter",(function(){return ke})),n.d(o,"ScrollView",(function(){return Oe})),n.d(o,"Text",(function(){return Me})),n.d(o,"TextInput",(function(){return ze})),n.d(o,"View",(function(){return _e})),n.d(o,"ViewPager",(function(){return Je})),n.d(o,"WebView",(function(){return $e})),n.d(o,"BoxShadow",(function(){return nt})),n.d(o,"WaterfallView",(function(){return it})),n.d(o,"RippleViewAndroid",(function(){return dt}));var r={};n.r(r),n.d(r,"Animation",(function(){return yt})),n.d(r,"AsyncStorage",(function(){return bt})),n.d(r,"NetInfo",(function(){return xt})),n.d(r,"WebSocket",(function(){return At})),n.d(r,"UIManagerModule",(function(){return It}));var i={};n.r(i),n.d(i,"Slider",(function(){return Mt})),n.d(i,"TabHost",(function(){return zt})),n.d(i,"SetNativeProps",(function(){return _t})),n.d(i,"DynamicImport",(function(){return Wt})),n.d(i,"Localization",(function(){return Ut})),n.d(i,"Turbo",(function(){return Qt})),n.d(i,"NestedScroll",(function(){return Xt}));var a=n("./node_modules/react/index.js"),l=n.n(a),s=n("../../packages/hippy-react/dist/index.js"),c=n("./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0;h--){var m=r[h];"."===m?d(r,h):".."===m?(d(r,h),c++):c&&(d(r,h),c--)}if(!l)for(;c--;c)r.unshift("..");!l||""===r[0]||r[0]&&u(r[0])||r.unshift("");var g=r.join("/");return n&&"/"!==g.substr(-1)&&(g+="/"),g};var g="Invariant failed";function f(e,t){if(!e)throw new Error(g)}function y(e){var t=e.pathname,n=e.search,o=e.hash,r=t||"/";return n&&"?"!==n&&(r+="?"===n.charAt(0)?n:"?"+n),o&&"#"!==o&&(r+="#"===o.charAt(0)?o:"#"+o),r}function p(e,t,n,o){var r;"string"==typeof e?(r=function(e){var t=e||"/",n="",o="",r=t.indexOf("#");-1!==r&&(o=t.substr(r),t=t.substr(0,r));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===o?"":o}}(e)).state=t:(void 0===(r=h({},e)).pathname&&(r.pathname=""),r.search?"?"!==r.search.charAt(0)&&(r.search="?"+r.search):r.search="",r.hash?"#"!==r.hash.charAt(0)&&(r.hash="#"+r.hash):r.hash="",void 0!==t&&void 0===r.state&&(r.state=t));try{r.pathname=decodeURI(r.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+r.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(r.key=n),o?r.pathname?"/"!==r.pathname.charAt(0)&&(r.pathname=m(r.pathname,o.pathname)):r.pathname=o.pathname:r.pathname||(r.pathname="/"),r}function b(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,o,r){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof o?o(i,r):r(!0):r(!1!==i)}else r(!0)},appendListener:function(e){var n=!0;function o(){n&&e.apply(void 0,arguments)}return t.push(o),function(){n=!1,t=t.filter((function(e){return e!==o}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),o=0;ot?n.splice(t,n.length-t,o):n.push(o),u({action:"PUSH",location:o,index:t,entries:n})}}))},replace:function(e,t){var o=p(e,t,d(),S.location);c.confirmTransitionTo(o,"REPLACE",n,(function(e){e&&(S.entries[S.index]=o,u({action:"REPLACE",location:o}))}))},go:x,goBack:function(){x(-1)},goForward:function(){x(1)},canGo:function(e){var t=S.index+e;return t>=0&&t=0||(r[n]=e[n]);return r}var A=n("./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"),v=n.n(A),R=function(e){var t=Object(S.a)();return t.displayName=e,t}("Router"),V=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(c.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return l.a.createElement(R.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(l.a.Component);var k=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;rthis.onClick(e),requestFocus:0===e,focusStyle:{backgroundColor:"red"},noFocusStyle:{backgroundColor:"blue"}},l.a.createElement(s.Text,{style:{color:"white"}},t===e?"我被点击了"+e:"没有被点击"+e)))}render(){return l.a.createElement(s.ScrollView,null,this.getRenderRow(0),this.getRenderRow(1),this.getRenderRow(2),this.getRenderRow(3),this.getRenderRow(4),this.getRenderRow(5),this.getRenderRow(6),this.getRenderRow(7),this.getRenderRow(8),this.getRenderRow(9),this.getRenderRow(10),this.getRenderRow(11),this.getRenderRow(12),this.getRenderRow(13),this.getRenderRow(14),this.getRenderRow(15),this.getRenderRow(16),this.getRenderRow(17),this.getRenderRow(18))}}var W=n.p+"assets/defaultSource.jpg",K=n.p+"assets/hippyLogoWhite.png";const U="https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",G=s.StyleSheet.create({container_style:{alignItems:"center"},image_style:{width:300,height:180,margin:16,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",borderRadius:4},info_style:{marginTop:15,marginLeft:16,fontSize:16,color:"#4c9afa"},img_result:{width:300,marginTop:-15,marginLeft:16,fontSize:16,color:"#4c9afa",borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",borderRadius:4}});class q extends l.a.Component{constructor(e){super(e),this.state={gifLoadResult:{}}}render(){const{width:e,height:t,url:n}=this.state.gifLoadResult;return l.a.createElement(s.ScrollView,{style:G.container_style},l.a.createElement(s.Text,{style:G.info_style},"Contain:"),l.a.createElement(s.Image,{style:[G.image_style],resizeMode:s.Image.resizeMode.contain,defaultSource:W,source:{uri:U},onProgress:e=>{console.log("onProgress",e)},onLoadStart:()=>{console.log("image onloadStart")},onLoad:()=>{console.log("image onLoad")},onError:e=>{console.log("image onError",e)},onLoadEnd:()=>{console.log("image onLoadEnd")}}),l.a.createElement(s.Text,{style:G.info_style},"Cover:"),l.a.createElement(s.Image,{style:[G.image_style],defaultSource:W,source:{uri:U},resizeMode:s.Image.resizeMode.cover}),l.a.createElement(s.Text,{style:G.info_style},"Center:"),l.a.createElement(s.Image,{style:[G.image_style],defaultSource:W,source:{uri:U},resizeMode:s.Image.resizeMode.center}),l.a.createElement(s.Text,{style:G.info_style},"CapInsets:"),l.a.createElement(s.Image,{style:[G.image_style],defaultSource:W,source:{uri:U},capInsets:{top:50,left:50,bottom:50,right:50},resizeMode:s.Image.resizeMode.cover}),l.a.createElement(s.Text,{style:G.info_style},"TintColor:"),l.a.createElement(s.Image,{style:[G.image_style,{tintColor:"#4c9afa99"}],defaultSource:W,source:{uri:K},resizeMode:s.Image.resizeMode.center}),l.a.createElement(s.Text,{style:G.info_style},"Cover GIF:"),l.a.createElement(s.Image,{style:[G.image_style],resizeMode:s.Image.resizeMode.cover,defaultSource:W,source:{uri:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif"},onLoad:e=>{console.log("gif onLoad result: "+e);const{width:t,height:n,url:o}=e;this.setState({gifLoadResult:{width:t,height:n,url:o}})}}),l.a.createElement(s.Text,{style:G.img_result},`gifLoadResult: { width: ${e}, height: ${t}, url: ${n} }`))}}const Q=[{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}],Y=s.StyleSheet.create({container:{backgroundColor:"#fff",collapsable:!1},itemContainer:{padding:12},separatorLine:{marginLeft:12,marginRight:12,height:1,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}});function X({index:e}){return l.a.createElement(s.View,{style:Y.container,onClickCapture:e=>{console.log("onClickCapture style1",e.target.nodeId,e.currentTarget.nodeId)},onTouchDown:e=>(e.stopPropagation(),console.log("onTouchDown style1",e.target.nodeId,e.currentTarget.nodeId),!1),onClick:e=>(console.log("click style1",e.target.nodeId,e.currentTarget.nodeId),!1)},l.a.createElement(s.Text,{numberOfLines:1},e+": Style 1 UI"))}function J({index:e}){return l.a.createElement(s.View,{style:Y.container},l.a.createElement(s.Text,{numberOfLines:1},e+": Style 2 UI"))}function Z({index:e}){return l.a.createElement(s.View,{style:Y.container},l.a.createElement(s.Text,{numberOfLines:1},e+": Style 5 UI"))}class $ extends l.a.Component{constructor(e){super(e),this.state={dataSource:Q,fetchingDataFlag:!1,horizontal:void 0},this.delText="Delete",this.mockFetchData=this.mockFetchData.bind(this),this.getRenderRow=this.getRenderRow.bind(this),this.onEndReached=this.onEndReached.bind(this),this.getRowType=this.getRowType.bind(this),this.getRowKey=this.getRowKey.bind(this),this.getRowStyle=this.getRowStyle.bind(this),this.onDelete=this.onDelete.bind(this),this.onAppear=this.onAppear.bind(this),this.onDisappear=this.onDisappear.bind(this),this.onWillAppear=this.onWillAppear.bind(this),this.onWillDisappear=this.onWillDisappear.bind(this),this.rowShouldSticky=this.rowShouldSticky.bind(this),this.onScroll=this.onScroll.bind(this)}onDelete({index:e}){const{dataSource:t}=this.state,n=t.filter((t,n)=>e!==n);this.setState({dataSource:n})}async onEndReached(){const{dataSource:e,fetchingDataFlag:t}=this.state;if(t)return;this.setState({fetchingDataFlag:!0,dataSource:e.concat([{style:100}])});const n=await this.mockFetchData(),o=e.concat(n);this.setState({dataSource:o,fetchingDataFlag:!1})}onAppear(e){console.log("onAppear",e)}onScroll(e){console.log("onScroll",e.contentOffset.y),e.contentOffset.y<=0?this.topReached||(this.topReached=!0,console.log("onTopReached")):this.topReached=!1}onDisappear(e){console.log("onDisappear",e)}onWillAppear(e){console.log("onWillAppear",e)}onWillDisappear(e){console.log("onWillDisappear",e)}rowShouldSticky(e){return 2===e}getRowType(e){return this.state.dataSource[e].style}getRowStyle(){const{horizontal:e}=this.state;return e?{width:100,height:50}:{}}getRowKey(e){return"row-"+e}getRenderRow(e){const{dataSource:t}=this.state;let n=null;const o=t[e],r=t.length===e+1;switch(o.style){case 1:n=l.a.createElement(X,{index:e});break;case 2:n=l.a.createElement(J,{index:e});break;case 5:n=l.a.createElement(Z,{index:e});break;case 100:n=l.a.createElement(s.Text,{style:Y.loading},"Loading now...")}return l.a.createElement(s.View,{style:Y.container,onClickCapture:e=>{console.log("onClickCapture style outer",e.target.nodeId,e.currentTarget.nodeId)},onTouchDown:e=>(console.log("onTouchDown style outer",e.target.nodeId,e.currentTarget.nodeId),!1),onClick:e=>(console.log("click style outer",e.target.nodeId,e.currentTarget.nodeId),!1)},l.a.createElement(s.View,{style:Y.itemContainer},n),r?null:l.a.createElement(s.View,{style:Y.separatorLine}))}mockFetchData(){return new Promise(e=>{setTimeout(()=>e(Q),600)})}changeDirection(){this.setState({horizontal:void 0===this.state.horizontal||void 0})}render(){const{dataSource:e,horizontal:t}=this.state;return l.a.createElement(s.View,{style:{flex:1,collapsable:!1}},l.a.createElement(s.ListView,{onTouchDown:e=>{console.log("onTouchDown ListView",e.target.nodeId,e.currentTarget.nodeId)},onClickCapture:e=>{console.log("onClickCapture listview",e.target.nodeId,e.currentTarget.nodeId)},onClick:e=>(console.log("click listview",e.target.nodeId,e.currentTarget.nodeId),!0),bounces:!0,horizontal:t,style:[{backgroundColor:"#ffffff"},t?{height:50}:{flex:1}],numberOfRows:e.length,renderRow:this.getRenderRow,onEndReached:this.onEndReached,getRowType:this.getRowType,onDelete:this.onDelete,onMomentumScrollBegin:e=>console.log("onMomentumScrollBegin",e),onMomentumScrollEnd:e=>console.log("onMomentumScrollEnd",e),onScrollBeginDrag:e=>console.log("onScrollBeginDrag",e),onScrollEndDrag:e=>console.log("onScrollEndDrag",e),delText:this.delText,editable:!0,getRowStyle:this.getRowStyle,getRowKey:this.getRowKey,initialListSize:15,rowShouldSticky:this.rowShouldSticky,onAppear:this.onAppear,onDisappear:this.onDisappear,onWillAppear:this.onWillAppear,onWillDisappear:this.onWillDisappear,onScroll:this.onScroll,scrollEventThrottle:1e3}),"android"===s.Platform.OS?l.a.createElement(s.View,{onClick:()=>this.changeDirection(),style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#4c9afa"}},l.a.createElement(s.View,{style:{width:60,height:60,borderRadius:30,backgroundColor:"#4c9afa",display:"flex",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{color:"white"}},"切换方向"))):null)}}const ee="#4c9afa",te="#4c9afa",ne="white",oe=s.StyleSheet.create({container:{flex:1,flexDirection:"column",justifyContent:"flex-start",alignItems:"center"},buttonView:{borderColor:ee,borderWidth:2,borderStyle:"solid",borderRadius:8,justifyContent:"center",alignItems:"center",width:250,height:50,marginTop:30},buttonText:{fontSize:20,color:ee,textAlign:"center",textAlignVertical:"center"},selectionText:{fontSize:20,textAlign:"center",textAlignVertical:"center",marginLeft:10,marginRight:10,padding:5,borderRadius:5,borderWidth:2}});class re extends l.a.Component{constructor(e){super(e),this.state={visible:!1,press:!1,animationType:"fade",immerseStatusBar:!1,hideStatusBar:!1,hideNavigationBar:!1},this.show=this.show.bind(this),this.hide=this.hide.bind(this)}feedback(e){this.setState({press:"in"===e})}show(){this.setState({visible:!0})}hide(){this.setState({visible:!1})}render(){const{press:e,visible:t}=this.state;return l.a.createElement(s.ScrollView,null,l.a.createElement(s.View,{style:oe.container},l.a.createElement(s.View,{onPressIn:()=>this.feedback("in"),onPressOut:()=>this.feedback("out"),onClick:this.show,style:[oe.buttonView,{borderColor:ee,opacity:e?.5:1}]},l.a.createElement(s.Text,{style:[oe.buttonText,{color:ee}]},"点击弹出浮层"))),l.a.createElement(s.View,{style:{flexDirection:"row",justifyContent:"center",marginTop:20}},l.a.createElement(s.Text,{onClick:()=>{this.setState({animationType:"fade"})},style:[oe.selectionText,{borderColor:"fade"===this.state.animationType?"red":ee},{color:"fade"===this.state.animationType?"red":ee}]},"fade"),l.a.createElement(s.Text,{onClick:()=>{this.setState({animationType:"slide"})},style:[oe.selectionText,{borderColor:"slide"===this.state.animationType?"red":ee},{color:"slide"===this.state.animationType?"red":ee}]},"slide"),l.a.createElement(s.Text,{onClick:()=>{this.setState({animationType:"slide_fade"})},style:[oe.selectionText,{borderColor:"slide_fade"===this.state.animationType?"red":ee},{color:"slide_fade"===this.state.animationType?"red":ee}]},"slide_fade")),l.a.createElement(s.View,{style:{flexDirection:"row",justifyContent:"center",marginTop:20}},l.a.createElement(s.Text,{onClick:()=>{this.setState({hideStatusBar:!this.state.hideStatusBar})},style:[oe.selectionText,{borderColor:this.state.hideStatusBar?"red":ee},{color:this.state.hideStatusBar?"red":ee}]},"autoHideStatusBar")),l.a.createElement(s.View,{style:{flexDirection:"row",justifyContent:"center",marginTop:20}},l.a.createElement(s.Text,{onClick:()=>{this.setState({immerseStatusBar:!this.state.immerseStatusBar})},style:[oe.selectionText,{borderColor:this.state.immerseStatusBar?"red":ee},{color:this.state.immerseStatusBar?"red":ee}]},"immersionStatusBar")),l.a.createElement(s.View,{style:{flexDirection:"row",justifyContent:"center",marginTop:20}},l.a.createElement(s.Text,{onClick:()=>{this.setState({hideNavigationBar:!this.state.hideNavigationBar})},style:[oe.selectionText,{borderColor:this.state.hideNavigationBar?"red":ee},{color:this.state.hideNavigationBar?"red":ee}]},"autoHideNavigationBar")),l.a.createElement(s.Modal,{transparent:!0,animationType:this.state.animationType,visible:t,onRequestClose:()=>{},supportedOrientations:["portrait"],immersionStatusBar:this.state.immerseStatusBar,autoHideStatusBar:this.state.hideStatusBar,autoHideNavigationBar:this.state.hideNavigationBar},l.a.createElement(s.View,{style:{flex:1,flexDirection:"row",justifyContent:"center",backgroundColor:"#4c9afa88"}},l.a.createElement(s.View,{onClick:this.hide,style:{width:200,height:200,backgroundColor:te,marginTop:300,flexDirection:"row",justifyContent:"center"}},l.a.createElement(s.Text,{style:{color:ne,fontSize:22,marginTop:80}},"点击关闭浮层")))))}}const ie="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",ae={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[ie,ie,ie],subInfo:["三图评论","11评"]}},le={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},se={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}};var ce=[se,ae,le,ae,le,ae,le,se,ae],he=n("./node_modules/@babel/runtime/helpers/extends.js"),ue=n.n(he);var de={getScreenWidth(){const e=s.Dimensions.get("screen").width,t=s.Dimensions.get("screen").height,n=e>t?t:e;return Math.floor(n)},uniqueArray(e){const t=[];for(let n=0;n=812&&s.PixelRatio.get()>=2&&(e=!0),e}};const me=(de.getScreenWidth()-24-12)/3,ge=Math.floor(me/1.35),fe=s.StyleSheet.create({imageContainer:{flexDirection:"row",justifyContent:"center",height:ge,marginTop:8},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},image:{width:me,height:ge},title:{fontSize:"android"===s.Platform.OS?17:18,lineHeight:24,color:"#242424"},tagLine:{marginTop:8,height:20,flexDirection:"row",justifyContent:"flex-start"}});function ye(e){const{itemBean:{title:t,picList:n}}=e;let{itemBean:{subInfo:o}}=e,r=null;if(o&&o.length){o=de.uniqueArray(o);const e=o.join(" ");r=l.a.createElement(s.Text,{style:fe.normalText,numberOfLines:1},e)}return l.a.createElement(s.View,ue()({},e,{style:{collapsable:!1}}),l.a.createElement(s.Text,{style:[fe.title],numberOfLines:2,enableScale:!0},t),l.a.createElement(s.View,{style:fe.imageContainer},l.a.createElement(s.Image,{style:fe.image,source:{uri:n[0]},resizeMode:s.Image.resizeMode.cover}),l.a.createElement(s.Image,{style:[fe.image,{marginLeft:6,marginRight:6}],source:{uri:n[1]},resizeMode:s.Image.resizeMode.cover}),l.a.createElement(s.Image,{style:fe.image,source:{uri:n[2]},resizeMode:s.Image.resizeMode.cover})),r?l.a.createElement(s.View,{style:fe.tagLine},r):null)}const pe=de.getScreenWidth()-24,be=Math.floor(pe-12)/3,we=Math.floor(be/1.35),xe=s.StyleSheet.create({container:{flexDirection:"row",justifyContent:"space-between",height:we},leftContainer:{flex:1,flexDirection:"column",justifyContent:"center",marginRight:8},imageContainer:{width:be,height:we},image:{width:be,height:we},title:{fontSize:"android"===s.Platform.OS?17:18,lineHeight:24},tagLine:{marginTop:8,height:20,flexDirection:"row",justifyContent:"flex-start"},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}});function Se(e){if("undefined"===e)return null;const{itemBean:t}=e;if(!t)return null;let n=null;const{title:o,picUrl:r}=t;let{subInfo:i}=t;if(i&&i.length){i=de.uniqueArray(i);const e=i.join(" ");n=l.a.createElement(s.Text,{style:xe.normalText,numberOfLines:1},e)}return l.a.createElement(s.View,ue()({},e,{style:xe.container}),l.a.createElement(s.View,{style:xe.leftContainer},l.a.createElement(s.Text,{style:xe.title,numberOfLines:2,enableScale:!0},o),n?l.a.createElement(s.View,{style:xe.tagLine},n):null),l.a.createElement(s.View,{style:xe.imageContainer},l.a.createElement(s.Image,{resizeMode:s.Image.resizeMode.cover,style:xe.image,source:{uri:r}})))}const Ee=de.getScreenWidth()-24,Te=Math.floor(188*Ee/336),Ce=s.StyleSheet.create({text:{fontSize:"android"===s.Platform.OS?17:18,lineHeight:24,color:"#242424"},playerView:{marginTop:8,alignItems:"center",width:Ee,height:Te,alignSelf:"center"},image:{width:Ee,height:Te},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},tagLine:{marginTop:8,flexDirection:"row",justifyContent:"space-between",alignItems:"center"}});function Ae(e){if("undefined"===e)return null;const{itemBean:t}=e;if(!t)return null;const{title:n,picUrl:o}=t;let{subInfo:r}=t,i=null;if(r&&r.length){r=de.uniqueArray(r);const e=r.join(" ");i=l.a.createElement(s.Text,{style:Ce.normalText,numberOfLines:1},e)}return l.a.createElement(s.View,e,l.a.createElement(s.Text,{style:Ce.text,numberOfLines:2,enableScale:!0},n),l.a.createElement(s.View,{style:Ce.playerView},l.a.createElement(s.Image,{style:Ce.image,source:{uri:o},resizeMode:s.Image.resizeMode.cover})),i?l.a.createElement(s.View,{style:Ce.tagLine},i):null)}const ve=s.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},spliter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}});class Re extends l.a.Component{constructor(e){super(e),this.state={dataSource:[],loadingState:"正在加载..."},this.fetchTimes=0,this.mockFetchData=this.mockFetchData.bind(this),this.onRefresh=this.onRefresh.bind(this),this.getRefresh=this.getRefresh.bind(this),this.getRenderRow=this.getRenderRow.bind(this),this.onEndReached=this.onEndReached.bind(this),this.getRowType=this.getRowType.bind(this),this.getRowKey=this.getRowKey.bind(this)}async componentDidMount(){const e=await this.mockFetchData();this.setState({dataSource:e})}async onEndReached(){const{dataSource:e,fetchingDataFlag:t}=this.state;if(t)return;this.setState({fetchingDataFlag:!0,dataSource:e.concat([{style:100}])});const n=await this.mockFetchData(),o=e[e.length-1];o&&100===o.style&&e.pop();const r=e.concat(n);this.setState({dataSource:r})}onRefresh(){setTimeout(async()=>{const e=await this.mockFetchData();this.setState({dataSource:e}),this.refresh.refreshComplected()},1e3)}onClickItem(e){console.log(`item: ${e} is clicked..`)}getRenderRow(e){const{dataSource:t,loadingState:n}=this.state;let o=null;const r=t[e],i=t.length===e+1;switch(r.style){case 1:o=l.a.createElement(ye,{itemBean:r.itemBean,onClick:()=>this.onClickItem(e)});break;case 2:o=l.a.createElement(Se,{itemBean:r.itemBean,onClick:()=>this.onClickItem(e)});break;case 5:o=l.a.createElement(Ae,{itemBean:r.itemBean,onClick:()=>this.onClickItem(e)});break;case 100:o=l.a.createElement(s.Text,{style:ve.loading},n)}return l.a.createElement(s.View,{style:ve.container},l.a.createElement(s.View,{style:ve.itemContainer},o),i?null:l.a.createElement(s.View,{style:ve.spliter}))}getRowType(e){return this.state.dataSource[e].style}getRowKey(e){return"row-"+e}getRefresh(){return l.a.createElement(s.View,{style:{flex:1,height:30}},l.a.createElement(s.Text,{style:{flex:1,textAlign:"center"}},"下拉刷新中..."))}mockFetchData(){return new Promise(e=>{setTimeout(()=>(this.setState({fetchingDataFlag:!1}),this.fetchTimes+=1,this.fetchTimes>=50?e([]):e(ce)),600)})}render(){const{dataSource:e}=this.state;return l.a.createElement(s.RefreshWrapper,{ref:e=>{this.refresh=e},style:{flex:1},onRefresh:this.onRefresh,bounceTime:100,getRefresh:this.getRefresh},l.a.createElement(s.ListView,{style:{flex:1,backgroundColor:"#ffffff"},numberOfRows:e.length,renderRow:this.getRenderRow,onEndReached:this.onEndReached,getRowType:this.getRowType,getRowKey:this.getRowKey}))}}const Ve=s.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},splitter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},pullContainer:{flex:1,height:50,backgroundColor:"#4c9afa"},pullContent:{lineHeight:50,color:"white",height:50,textAlign:"center"},pullFooter:{height:40,flex:1,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}});class ke extends l.a.Component{constructor(e){super(e),this.state={dataSource:[],headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",horizontal:void 0},this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.mockFetchData=this.mockFetchData.bind(this),this.renderRow=this.renderRow.bind(this),this.getRowType=this.getRowType.bind(this),this.getRowKey=this.getRowKey.bind(this),this.getHeaderStyle=this.getHeaderStyle.bind(this),this.getFooterStyle=this.getFooterStyle.bind(this),this.getRowStyle=this.getRowStyle.bind(this),this.renderPullHeader=this.renderPullHeader.bind(this),this.renderPullFooter=this.renderPullFooter.bind(this),this.onEndReached=this.onEndReached.bind(this),this.onHeaderReleased=this.onHeaderReleased.bind(this),this.onHeaderPulling=this.onHeaderPulling.bind(this),this.onFooterPulling=this.onFooterPulling.bind(this)}async componentDidMount(){const e=await this.mockFetchData();this.setState({dataSource:e}),this.listView.collapsePullHeader()}mockFetchData(){return new Promise(e=>{setTimeout(()=>e(ce),800)})}async onEndReached(){const{dataSource:e}=this.state;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.setState({footerRefreshText:"加载更多..."});let t=[];try{t=await this.mockFetchData()}catch(e){}0===t.length&&this.setState({footerRefreshText:"没有更多数据"});const n=[...e,...t];this.setState({dataSource:n}),this.loadMoreDataFlag=!1,this.listView.collapsePullFooter()}async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.setState({headerRefreshText:"刷新数据中,请稍等"});let e=[];try{e=await this.mockFetchData(),e=e.reverse()}catch(e){}this.fetchingDataFlag=!1,this.setState({dataSource:e,headerRefreshText:"2秒后收起"},()=>{this.listView.collapsePullHeader({time:2e3})})}onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>Ve.pullContent.height?this.setState({headerRefreshText:"松手,即可触发刷新"}):this.setState({headerRefreshText:"继续下拉,触发刷新"}))}onFooterPulling(e){console.log("onFooterPulling",e)}onClickItem(e,t){console.log(`item: ${e} is clicked..`,t.target.nodeId,t.currentTarget.nodeId)}getRowType(e){return this.state.dataSource[e].style}getRowKey(e){return"row-"+e}getHeaderStyle(){const{horizontal:e}=this.state;return e?{width:50}:{}}renderPullHeader(){const{headerRefreshText:e,horizontal:t}=this.state;return t?l.a.createElement(s.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{lineHeight:25,color:"white",width:40,paddingHorizontal:15}},e)):l.a.createElement(s.View,{style:Ve.pullContainer},l.a.createElement(s.Text,{style:Ve.pullContent},e))}getFooterStyle(){const{horizontal:e}=this.state;return e?{width:40}:{}}renderPullFooter(){const{horizontal:e}=this.state;return e?l.a.createElement(s.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{color:"white",lineHeight:25,width:40,paddingHorizontal:15}},this.state.footerRefreshText)):l.a.createElement(s.View,{style:Ve.pullFooter},l.a.createElement(s.Text,{style:{color:"white"}},this.state.footerRefreshText))}renderRow(e){const{dataSource:t}=this.state;let n=null;const o=t[e],r=t.length===e+1;switch(o.style){case 1:n=l.a.createElement(ye,{itemBean:o.itemBean,onClick:t=>this.onClickItem(e,t)});break;case 2:n=l.a.createElement(Se,{itemBean:o.itemBean,onClick:t=>this.onClickItem(e,t)});break;case 5:n=l.a.createElement(Ae,{itemBean:o.itemBean,onClick:t=>this.onClickItem(e,t)})}return l.a.createElement(s.View,{style:Ve.container},l.a.createElement(s.View,{style:Ve.itemContainer},n),r?null:l.a.createElement(s.View,{style:Ve.splitter}))}getRowStyle(){const{horizontal:e}=this.state;return e?{height:300,justifyContent:"center",alignItems:"center"}:{}}changeDirection(){this.setState({horizontal:void 0===this.state.horizontal||void 0})}render(){const{dataSource:e,horizontal:t}=this.state;return l.a.createElement(s.View,{style:{flex:1,collapsable:!1}},l.a.createElement(s.ListView,{horizontal:t,onClick:e=>console.log("ListView",e.target.nodeId,e.currentTarget.nodeId),ref:e=>{this.listView=e},style:[{backgroundColor:"#ffffff"},t?{height:300}:{flex:1}],numberOfRows:e.length,getRowType:this.getRowType,getRowKey:this.getRowKey,getHeaderStyle:this.getHeaderStyle,getFooterStyle:this.getFooterStyle,getRowStyle:this.getRowStyle,renderRow:this.renderRow,renderPullHeader:this.renderPullHeader,renderPullFooter:this.renderPullFooter,onHeaderReleased:this.onHeaderReleased,onHeaderPulling:this.onHeaderPulling,onFooterReleased:this.onEndReached,onFooterPulling:this.onFooterPulling,rowShouldSticky:e=>0===e}),"android"===s.Platform.OS?l.a.createElement(s.View,{onClick:()=>this.changeDirection(),style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#4c9afa"}},l.a.createElement(s.View,{style:{width:60,height:60,borderRadius:30,backgroundColor:"#4c9afa",display:"flex",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{color:"white"}},"切换方向"))):null)}}const Ie=s.StyleSheet.create({itemStyle:{width:100,height:100,lineHeight:100,borderWidth:1,borderStyle:"solid",borderColor:"#4c9afa",fontSize:80,margin:20,color:"#4c9afa",textAlign:"center"},verticalScrollView:{height:300,width:140,margin:20,borderColor:"#eee",borderWidth:1,borderStyle:"solid"},itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10}});function Oe(){return l.a.createElement(s.ScrollView,null,l.a.createElement(s.View,{style:Ie.itemTitle},l.a.createElement(s.Text,null,"Horizontal ScrollView")),l.a.createElement(s.View,null,l.a.createElement(s.ScrollView,{horizontal:!0,bounces:!0,showsHorizontalScrollIndicator:!1,showScrollIndicator:!1,onScroll:e=>console.log("onScroll",e),onMomentumScrollBegin:e=>console.log("onMomentumScrollBegin",e),onMomentumScrollEnd:e=>console.log("onMomentumScrollEnd",e),onScrollBeginDrag:e=>console.log("onScrollBeginDrag",e),onScrollEndDrag:e=>console.log("onScrollEndDrag",e)},l.a.createElement(s.Text,{style:Ie.itemStyle},"A"),l.a.createElement(s.Text,{style:Ie.itemStyle},"B"),l.a.createElement(s.Text,{style:Ie.itemStyle},"C"),l.a.createElement(s.Text,{style:Ie.itemStyle},"D"),l.a.createElement(s.Text,{style:Ie.itemStyle},"E"),l.a.createElement(s.Text,{style:Ie.itemStyle},"F"),l.a.createElement(s.Text,{style:Ie.itemStyle},"A"))),l.a.createElement(s.View,{style:Ie.itemTitle},l.a.createElement(s.Text,null,"Vertical ScrollView")),l.a.createElement(s.ScrollView,{bounces:!0,horizontal:!1,style:Ie.verticalScrollView,showScrollIndicator:!1,showsVerticalScrollIndicator:!1},l.a.createElement(s.Text,{style:Ie.itemStyle},"A"),l.a.createElement(s.Text,{style:Ie.itemStyle},"B"),l.a.createElement(s.Text,{style:Ie.itemStyle},"C"),l.a.createElement(s.Text,{style:Ie.itemStyle},"D"),l.a.createElement(s.Text,{style:Ie.itemStyle},"E"),l.a.createElement(s.Text,{style:Ie.itemStyle},"F"),l.a.createElement(s.Text,{style:Ie.itemStyle},"A")))}const De="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEXRSTlMA9QlZEMPc2Mmmj2VkLEJ4Rsx+pEgAAAChSURBVCjPjVLtEsMgCDOAdbbaNu//sttVPes+zvGD8wgQCLp/TORbUGMAQtQ3UBeSAMlF7/GV9Cmb5eTJ9R7H1t4bOqLE3rN2UCvvwpLfarhILfDjJL6WRKaXfzxc84nxAgLzCGSGiwKwsZUB8hPorZwUV1s1cnGKw+yAOrnI+7hatNIybl9Q3OkBfzopCw6SmDVJJiJ+yD451OS0/TNM7QnuAAbvCG0TSAAAAABJRU5ErkJggg==",Pe="https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",je=s.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},itemContent:{alignItems:"flex-start",justifyContent:"center",borderWidth:1,borderStyle:"solid",borderRadius:2,borderColor:"#e0e0e0",backgroundColor:"#ffffff",padding:10},normalText:{fontSize:14,lineHeight:18,color:"black"},buttonBar:{flexDirection:"row",marginTop:10,flexGrow:1},button:{height:24,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",flexGrow:1,flexShrink:1},buttonText:{lineHeight:24,textAlign:"center",paddingHorizontal:20},customFont:{color:"#0052d9",fontSize:32,fontFamily:"TTTGB"}});let Le=0;class Me extends l.a.Component{constructor(e){super(e),this.state={fontSize:16,textShadowColor:"grey",textShadowOffset:{x:1,y:1},numberOfLines:2,ellipsizeMode:void 0},this.incrementFontSize=this.incrementFontSize.bind(this),this.decrementFontSize=this.decrementFontSize.bind(this),this.incrementLine=this.incrementLine.bind(this),this.decrementLine=this.decrementLine.bind(this),this.changeMode=this.changeMode.bind(this)}incrementFontSize(){const{fontSize:e}=this.state;24!==e&&this.setState({fontSize:e+1})}decrementFontSize(){const{fontSize:e}=this.state;6!==e&&this.setState({fontSize:e-1})}incrementLine(){const{numberOfLines:e}=this.state;e<6&&this.setState({numberOfLines:e+1})}decrementLine(){const{numberOfLines:e}=this.state;e>1&&this.setState({numberOfLines:e-1})}changeMode(e){this.setState({ellipsizeMode:e})}changeBreakStrategy(e){this.setState({breakStrategy:e})}render(){const{fontSize:e,textShadowColor:t,textShadowOffset:n,numberOfLines:o,ellipsizeMode:r,breakStrategy:i}=this.state,a=e=>l.a.createElement(s.View,{style:je.itemTitle},l.a.createElement(s.Text,{style:!0},e));return l.a.createElement(s.ScrollView,{style:{paddingHorizontal:10}},a("shadow"),l.a.createElement(s.View,{style:[je.itemContent,{height:60}],onClick:()=>{let e="red",t={x:10,y:1};Le%2==1&&(e="grey",t={x:1,y:1}),Le+=1,this.setState({textShadowColor:e,textShadowOffset:t})}},l.a.createElement(s.Text,{style:[je.normalText,{color:"#242424",textShadowOffset:n,textShadowRadius:3,textShadowColor:t}]},"Text shadow is grey with radius 3 and offset 1")),a("color"),l.a.createElement(s.View,{style:[je.itemContent,{height:80}]},l.a.createElement(s.Text,{style:[je.normalText,{color:"#242424"}]},"Text color is black"),l.a.createElement(s.Text,{style:[je.normalText,{color:"blue"}]},"Text color is blue"),l.a.createElement(s.Text,{style:[je.normalText,{color:"rgb(228,61,36)"}]},"This is red")),a("fontSize"),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{style:[je.normalText,{fontSize:e}]},"Text fontSize is "+e),l.a.createElement(s.View,{style:je.button,onClick:this.incrementFontSize},l.a.createElement(s.Text,{style:je.buttonText},"放大字体")),l.a.createElement(s.View,{style:je.button,onClick:this.decrementFontSize},l.a.createElement(s.Text,{style:je.buttonText},"缩小字体"))),a("fontStyle"),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{style:[je.normalText,{fontStyle:"normal"}]},"Text fontStyle is normal"),l.a.createElement(s.Text,{style:[je.normalText,{fontStyle:"italic"}]},"Text fontStyle is italic")),a("numberOfLines and ellipsizeMode"),l.a.createElement(s.View,{style:[je.itemContent]},l.a.createElement(s.Text,{style:[je.normalText,{marginBottom:10}]},`numberOfLines=${o} | ellipsizeMode=${r}`),l.a.createElement(s.Text,{numberOfLines:o,ellipsizeMode:r,style:[je.normalText,{lineHeight:void 0,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Text,{style:{fontSize:19,color:"white"}},"先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。"),l.a.createElement(s.Text,null,"然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")),l.a.createElement(s.Text,{numberOfLines:o,ellipsizeMode:r,style:[je.normalText,{backgroundColor:"#4c9afa",marginBottom:10,color:"white",paddingHorizontal:10,paddingVertical:5}]},"line 1\n\nline 3\n\nline 5"),l.a.createElement(s.Text,{numberOfLines:o,ellipsizeMode:r,style:[je.normalText,{lineHeight:void 0,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5,verticalAlign:"middle"}]},l.a.createElement(s.Image,{style:{width:24,height:24},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24},source:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEnRSTlMA/QpX7WQU2m27pi3Ej9KEQXaD5HhjAAAAqklEQVQoz41SWxLDIAh0RcFXTHL/yzZSO01LMpP9WJEVUNA9gfdXTioCSKE/kQQTQmf/ArRYva+xAcuPP37seFII2L7FN4BmXdHzlEPIpDHiZ0A7eIViPcw2QwqipkvMSdNEFBUE1bmMNOyE7FyFaIkAP4jHhhG80lvgkzBODTKpwhRMcexuR7fXzcp08UDq6GRbootp4oRtO3NNpd4NKtnR9hB6oaefweIFQU0EfnGDRoQAAAAASUVORK5CYII="}}),l.a.createElement(s.Text,null,"Text + Attachment")),l.a.createElement(s.View,{style:je.buttonBar},l.a.createElement(s.View,{style:je.button,onClick:this.incrementLine},l.a.createElement(s.Text,{style:je.buttonText},"加一行")),l.a.createElement(s.View,{style:je.button,onClick:this.decrementLine},l.a.createElement(s.Text,{style:je.buttonText},"减一行"))),l.a.createElement(s.View,{style:je.buttonBar},l.a.createElement(s.View,{style:je.button,onClick:()=>this.changeMode("clip")},l.a.createElement(s.Text,{style:je.buttonText},"clip")),l.a.createElement(s.View,{style:je.button,onClick:()=>this.changeMode("head")},l.a.createElement(s.Text,{style:je.buttonText},"head")),l.a.createElement(s.View,{style:je.button,onClick:()=>this.changeMode("middle")},l.a.createElement(s.Text,{style:je.buttonText},"middle")),l.a.createElement(s.View,{style:je.button,onClick:()=>this.changeMode("tail")},l.a.createElement(s.Text,{style:je.buttonText},"tail")))),a("textDecoration"),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[je.normalText,{textDecorationLine:"underline",textDecorationStyle:"dotted"}]},"underline"),l.a.createElement(s.Text,{numberOfLines:1,style:[je.normalText,{textDecorationLine:"line-through",textDecorationColor:"red"}]},"line-through")),a("LetterSpacing"),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[je.normalText,{letterSpacing:-1}]},"Text width letter-spacing -1"),l.a.createElement(s.Text,{numberOfLines:1,style:[je.normalText,{letterSpacing:5}]},"Text width letter-spacing 5")),a("Nest Text"),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:3},l.a.createElement(s.Text,{numberOfLines:3,style:[je.normalText,{color:"#4c9afa"}]},"#SpiderMan#"),l.a.createElement(s.Text,{numberOfLines:3,style:je.normalText},"Hello world, I am a spider man and I have five friends in other universe."))),a("Custom font"),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:je.customFont},"Hippy 跨端框架")),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[je.customFont,{fontWeight:"bold"}]},"Hippy 跨端框架 粗体")),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[je.customFont,{fontStyle:"italic"}]},"Hippy 跨端框架 斜体")),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[je.customFont,{fontWeight:"bold",fontStyle:"italic"}]},"Hippy 跨端框架 粗斜体")),a("Text Nested"),l.a.createElement(s.View,{style:[je.itemContent,{height:150}]},l.a.createElement(s.Text,{style:{height:100,lineHeight:50}},l.a.createElement(s.Text,{numberOfLines:1,style:je.normalText},"后面有张图片"),l.a.createElement(s.Image,{style:{width:70,height:35},source:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAAtCAMAAABmgJ64AAAAOVBMVEX/Rx8AAAD/QiL/Tif/QyH/RR//QiH/QiP/RCD/QSL/Qxz/QyH/QiL/QiD/QyL/QiL/QiH/QyH/QiLwirLUAAAAEnRSTlMZAF4OTC7DrWzjI4iietrRk0EEv/0YAAAB0UlEQVRYw72Y0Y6sIAxAKwUFlFH7/x97izNXF2lN1pU5D800jD2hJAJCdwYZuAUyVbmToKh903IhQHgErAVH+ccV0KI+G2oBPMxJgPA4WAigAT8F0IRDgNAE3ARyfeMFDGSc3YHVFkTBAHKDAgkEyHjacae/GTjxFqAo8NbakXrL9DRy9B+BCQwRcXR9OBKmEuAmAFFgcy0agBnIc1xZsMPOI5loAoUsQFmQjDEL9YbpaeGYBMGRKKAuqFEFL/JXApCw/zFEZk9qgbLGBx0gXLISxT25IUBREEgh1II1fph/IViGnZnCcDDVAgfgVg6gCy6ZaClySbDQpAl04vCGaB4+xGcFRK8CLvW0IBb5bQGqAlNwU4C6oEIVTLTcmoEr0AWcpKsZ/H0NAtkLQffnFjkOqiC/TTWBL9AFCwXQBHgI7rXImMgjCZwFa50s6DRBXyALmIECuMASiWNPFgRTgSJwM+XW8PDCmbwndzdaNL8FMYXPNjASDVChnIvWlBI/MKadPV952HszbmXtRERhhQ0vGFA52SVSSVt7MjHvxfRK8cdTpqovn02dUcltMrwiKf+wQ1FxXKCk9en6e/eDNnP44h2thQEb35O/etNv/q3iHza+KuhqqhZAAAAAAElFTkSuQmCC"}}),l.a.createElement(s.Text,{numberOfLines:1,style:je.customFont},"前面有张图片")),l.a.createElement(s.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"center",paddingHorizontal:10,paddingVertical:5,backgroundColor:"#4c9afa"}},l.a.createElement(s.Image,{style:{width:24,height:24,alignSelf:"center"},source:{uri:De}}),l.a.createElement(s.Text,{style:{fontSize:15,alignItems:"center",justifyContent:"center"}},"Image+Text"))),"android"===s.Platform.OS&&a("breakStrategy"),"android"===s.Platform.OS&&l.a.createElement(s.View,{style:je.itemContent},l.a.createElement(s.Text,{style:[je.normalText,{borderWidth:1,borderColor:"gray"}],breakStrategy:i},"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales."),l.a.createElement(s.Text,{style:je.normalText},"breakStrategy: "+i),l.a.createElement(s.View,{style:je.buttonBar},l.a.createElement(s.View,{style:je.button,onClick:()=>this.changeBreakStrategy("simple")},l.a.createElement(s.Text,{style:je.buttonText},"simple")),l.a.createElement(s.View,{style:je.button,onClick:()=>this.changeBreakStrategy("high_quality")},l.a.createElement(s.Text,{style:je.buttonText},"high_quality")),l.a.createElement(s.View,{style:je.button,onClick:()=>this.changeBreakStrategy("balanced")},l.a.createElement(s.Text,{style:je.buttonText},"balanced")))),a("verticalAlign"),l.a.createElement(s.View,{style:[je.itemContent,{height:"android"===s.Platform.OS?160:70}]},l.a.createElement(s.Text,{style:[je.normalText,{lineHeight:50,backgroundColor:"#4c9afa",paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"top"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:18,height:12,verticalAlign:"middle"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:12,verticalAlign:"baseline"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:36,height:24,verticalAlign:"bottom"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"top"},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:18,height:12,verticalAlign:"middle"},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:24,height:12,verticalAlign:"baseline"},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:36,height:24,verticalAlign:"bottom"},source:{uri:Pe}}),l.a.createElement(s.Text,{style:{fontSize:16,verticalAlign:"top"}},"字"),l.a.createElement(s.Text,{style:{fontSize:16,verticalAlign:"middle"}},"字"),l.a.createElement(s.Text,{style:{fontSize:16,verticalAlign:"baseline"}},"字"),l.a.createElement(s.Text,{style:{fontSize:16,verticalAlign:"bottom"}},"字")),"android"===s.Platform.OS&&l.a.createElement(l.a.Fragment,null,l.a.createElement(s.Text,null,"legacy mode:"),l.a.createElement(s.Text,{style:[je.normalText,{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:0},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:18,height:12,verticalAlignment:1},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:12,verticalAlignment:2},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:36,height:24,verticalAlignment:3},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,top:-10},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:18,height:12,top:-5},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:24,height:12},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:36,height:24,top:3},source:{uri:Pe}}),l.a.createElement(s.Text,{style:{fontSize:16}},"字"),l.a.createElement(s.Text,{style:{fontSize:16}},"字"),l.a.createElement(s.Text,{style:{fontSize:16}},"字"),l.a.createElement(s.Text,{style:{fontSize:16}},"字")))),a("tintColor & backgroundColor"),l.a.createElement(s.View,{style:[je.itemContent]},l.a.createElement(s.Text,{style:[je.normalText,{lineHeight:30,backgroundColor:"#4c9afa",paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"middle",tintColor:"orange"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"middle",tintColor:"orange",backgroundColor:"#ccc"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"middle",backgroundColor:"#ccc"},source:{uri:De}}),l.a.createElement(s.Text,{style:{verticalAlign:"middle",backgroundColor:"#090"}},"text")),"android"===s.Platform.OS&&l.a.createElement(l.a.Fragment,null,l.a.createElement(s.Text,null,"legacy mode:"),l.a.createElement(s.Text,{style:[je.normalText,{lineHeight:30,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,tintColor:"orange"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,tintColor:"orange",backgroundColor:"#ccc"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,backgroundColor:"#ccc"},source:{uri:De}})))),a("margin"),l.a.createElement(s.View,{style:[je.itemContent]},l.a.createElement(s.Text,{style:[{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"top",backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"middle",backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"baseline",backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"bottom",backgroundColor:"#ccc",margin:5},source:{uri:De}})),"android"===s.Platform.OS&&l.a.createElement(l.a.Fragment,null,l.a.createElement(s.Text,null,"legacy mode:"),l.a.createElement(s.Text,{style:[je.normalText,{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:0,backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:1,backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:2,backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:3,backgroundColor:"#ccc",margin:5},source:{uri:De}})))))}}const Be=s.StyleSheet.create({container_style:{padding:10},input_style:{width:300,marginVertical:10,fontSize:16,color:"#242424",height:30,lineHeight:30},input_style_block:{height:100,lineHeight:20,fontSize:15,borderWidth:1,borderColor:"gray",underlineColorAndroid:"transparent"},itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},itemContent:{marginTop:10},buttonBar:{flexDirection:"row",marginTop:10,flexGrow:1},button:{width:200,height:24,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",marginTop:5,marginBottom:5,flexGrow:1,flexShrink:1}});class ze extends a.Component{constructor(e){super(e),this.state={textContent:""},this.changeInputContent=this.changeInputContent.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this)}changeInputContent(){this.setState({textContent:"当前时间毫秒:"+Date.now()})}focus(){this.input.focus()}blur(){this.input.blur()}async onFocus(){const e=await this.input.isFocused();this.setState({event:"onFocus",isFocused:e})}async onBlur(){const e=await this.input.isFocused();this.setState({event:"onBlur",isFocused:e})}changeBreakStrategy(e){this.setState({breakStrategy:e})}render(){const{textContent:e,event:t,isFocused:n,breakStrategy:o}=this.state,r=e=>l.a.createElement(s.View,{style:Be.itemTitle},l.a.createElement(s.Text,null,e));return l.a.createElement(s.ScrollView,{style:Be.container_style},r("text"),l.a.createElement(s.TextInput,{ref:e=>{this.input=e},style:Be.input_style,caretColor:"yellow",underlineColorAndroid:"grey",placeholderTextColor:"#4c9afa",placeholder:"text",defaultValue:e,onBlur:()=>this.onBlur(),onFocus:()=>this.onFocus()}),l.a.createElement(s.Text,{style:Be.itemContent},`事件: ${t} | isFocused: ${n}`),l.a.createElement(s.View,{style:Be.button,onClick:this.changeInputContent},l.a.createElement(s.Text,null,"点击改变输入框内容")),l.a.createElement(s.View,{style:Be.button,onClick:this.focus},l.a.createElement(s.Text,null,"Focus")),l.a.createElement(s.View,{style:Be.button,onClick:this.blur},l.a.createElement(s.Text,null,"Blur")),r("numeric"),l.a.createElement(s.TextInput,{style:Be.input_style,keyboardType:"numeric",placeholder:"numeric"}),r("phone-pad"),l.a.createElement(s.TextInput,{style:Be.input_style,keyboardType:"phone-pad",placeholder:"phone-pad"}),r("password"),l.a.createElement(s.TextInput,{style:Be.input_style,keyboardType:"password",placeholder:"Password",multiline:!1}),r("maxLength"),l.a.createElement(s.TextInput,{caretColor:"yellow",style:Be.input_style,placeholder:"maxLength=5",maxLength:5}),"android"===s.Platform.OS&&r("breakStrategy"),"android"===s.Platform.OS&&l.a.createElement(l.a.Fragment,null,l.a.createElement(s.TextInput,{style:Be.input_style_block,breakStrategy:o,defaultValue:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales."}),l.a.createElement(s.Text,{style:{}},"breakStrategy: "+o),l.a.createElement(s.View,{style:Be.buttonBar},l.a.createElement(s.View,{style:Be.button,onClick:()=>this.changeBreakStrategy("simple")},l.a.createElement(s.Text,{style:Be.buttonText},"simple")),l.a.createElement(s.View,{style:Be.button,onClick:()=>this.changeBreakStrategy("high_quality")},l.a.createElement(s.Text,{style:Be.buttonText},"high_quality")),l.a.createElement(s.View,{style:Be.button,onClick:()=>this.changeBreakStrategy("balanced")},l.a.createElement(s.Text,{style:Be.buttonText},"balanced")))))}}var Fe=n.p+"assets/defaultSource.jpg";const He=s.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},rectangle:{width:160,height:80,marginVertical:10},bigRectangle:{width:200,height:100,borderColor:"#eee",borderWidth:1,borderStyle:"solid",padding:10,marginVertical:10},smallRectangle:{width:40,height:40,borderRadius:10}});function _e(){const e=e=>l.a.createElement(s.View,{style:He.itemTitle},l.a.createElement(s.Text,null,e));return l.a.createElement(s.ScrollView,{style:{paddingHorizontal:10}},e("backgroundColor"),l.a.createElement(s.View,{style:[He.rectangle,{backgroundColor:"#4c9afa"}]}),e("backgroundImage"),l.a.createElement(s.View,{style:[He.rectangle,{alignItems:"center",justifyContent:"center",marginTop:20,backgroundImage:Fe}],accessible:!0,accessibilityLabel:"背景图",accessibilityRole:"image",accessibilityState:{disabled:!1,selected:!0,checked:!1,expanded:!1,busy:!0},accessibilityValue:{min:1,max:10,now:5,text:"middle"}},l.a.createElement(s.Text,{style:{color:"white"}},"背景图")),e("backgroundImage linear-gradient"),l.a.createElement(s.View,{style:[He.rectangle,{alignItems:"center",justifyContent:"center",marginTop:20,borderWidth:2,borderStyle:"solid",borderColor:"black",borderRadius:2,backgroundImage:"linear-gradient(30deg, blue 10%, yellow 40%, red 50%);"}]},l.a.createElement(s.Text,{style:{color:"white"}},"渐变色")),e("border props"),l.a.createElement(s.View,{style:[He.rectangle,{borderColor:"#242424",borderRadius:4,borderWidth:1,borderStyle:"solid"}]}),e("flex props"),l.a.createElement(s.View,{style:[He.bigRectangle,{flexDirection:"row",alignItems:"center",justifyContent:"space-between"}]},l.a.createElement(s.View,{style:[He.smallRectangle,{backgroundColor:"yellow"}]}),l.a.createElement(s.View,{style:[He.smallRectangle,{backgroundColor:"blue"}]}),l.a.createElement(s.View,{style:[He.smallRectangle,{backgroundColor:"green"}]})))}const Ne=s.StyleSheet.create({pageContainer:{alignItems:"center",justifyContent:"center",flex:1,paddingTop:20},mainRec:{backgroundColor:"#4c9afaAA",width:256,height:48,marginBottom:10,marginTop:156},title:{verticalAlign:"middle",lineHeight:48,height:48,fontSize:16,color:"white",alignSelf:"center"},shapeBase:{width:128,height:128,backgroundColor:"#4c9afa"},square:{},circle:{borderRadius:64},triangle:{borderStyle:"solid",borderTopWidth:0,borderRightWidth:70,borderBottomWidth:128,borderLeftWidth:70,borderTopColor:"transparent",borderRightColor:"transparent",borderLeftColor:"transparent",borderBottomColor:"#4c9afa",backgroundColor:"transparent",width:140}}),We="SquarePagerView",Ke="TrianglePagerView",Ue="CirclePagerView";function Ge(e,t){const n=t=>l.a.createElement(s.View,{style:Ne.pageContainer,key:t},l.a.createElement(s.View,{style:[Ne.shapeBase,e],key:"shape"}),l.a.createElement(s.View,{style:Ne.mainRec,key:"title"},t?l.a.createElement(s.Text,{style:Ne.title},t):null));return n.displayName=t,n}const qe=Ge(Ne.square,We),Qe=Ge(Ne.triangle,Ke),Ye=Ge(Ne.circle,Ue),Xe=s.StyleSheet.create({dotContainer:{position:"absolute",bottom:10,left:0,right:0,flexDirection:"row",alignItems:"center",justifyContent:"center"},dot:{width:6,height:6,borderRadius:3,margin:3,backgroundColor:"#BBBBBB"},selectDot:{backgroundColor:"#000000"},container:{height:500},buttonContainer:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12},button:{width:120,height:36,backgroundColor:"#4c9afa",borderRadius:18,alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,color:"#fff"}});class Je extends l.a.Component{constructor(e){super(e),_()(this,"state",{selectedIndex:0}),this.onPageSelected=this.onPageSelected.bind(this),this.onPageScrollStateChanged=this.onPageScrollStateChanged.bind(this)}onPageSelected(e){console.log("onPageSelected",e.position),this.setState({selectedIndex:e.position})}onPageScrollStateChanged(e){console.log("onPageScrollStateChanged",e)}onPageScroll({offset:e,position:t}){console.log("onPageScroll",e,t)}render(){const{selectedIndex:e}=this.state;return l.a.createElement(s.View,{style:{flex:1,backgroundColor:"#ffffff"}},l.a.createElement(s.View,{style:Xe.buttonContainer},l.a.createElement(s.View,{style:Xe.button,onClick:()=>{this.viewpager.setPage(2)}},l.a.createElement(s.Text,{style:Xe.buttonText},"动效滑到第3页")),l.a.createElement(s.View,{style:Xe.button,onClick:()=>this.viewpager.setPageWithoutAnimation(0)},l.a.createElement(s.Text,{style:Xe.buttonText},"直接滑到第1页"))),l.a.createElement(s.ViewPager,{ref:e=>{this.viewpager=e},style:Xe.container,initialPage:0,keyboardDismissMode:"none",scrollEnabled:!0,onPageSelected:this.onPageSelected,onPageScrollStateChanged:this.onPageScrollStateChanged,onPageScroll:this.onPageScroll},[qe("squarePager"),Qe("TrianglePager"),Ye("CirclePager")]),l.a.createElement(s.View,{style:Xe.dotContainer},new Array(3).fill(0).map((t,n)=>{const o=n===e;return l.a.createElement(s.View,{style:[Xe.dot,o?Xe.selectDot:null],key:"dot_"+n})})))}}const Ze=s.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},webViewStyle:{padding:10,flex:1,flexGrow:1,borderRadius:10}});function $e(){return l.a.createElement(s.View,{style:{paddingHorizontal:10,flex:1}},l.a.createElement(s.View,{style:Ze.itemTitle},l.a.createElement(s.Text,null,"WebView 示例")),l.a.createElement(s.WebView,{source:{uri:"https://hippyjs.org"},method:"get",userAgent:"Mozilla/5.0 (Linux; U; Android 5.1.1; zh-cn; vivo X7 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko)Version/4.0 Chrome/37.0.0.0 MQQBrowser/8.2 Mobile Safari/537.36",style:Ze.webViewStyle,onLoad:({url:e})=>console.log("webview onload",e),onLoadStart:({url:e})=>console.log("webview onLoadStart",e),onLoadEnd:({url:e,success:t,error:n})=>console.log("webview onLoadEnd",e,t,n)}))}const et=s.StyleSheet.create({shadowDemo:{flex:1,overflowY:"scroll"},shadowDemoCubeAndroid:{position:"absolute",left:50,top:50,width:170,height:170,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowColor:"#4c9afa",borderRadius:5},shadowDemoContentAndroid:{position:"absolute",left:5,top:5,width:160,height:160,backgroundColor:"grey",borderRadius:5,display:"flex",justifyContent:"center",alignItems:"center"},shadowDemoCubeIos:{position:"absolute",left:50,top:50,width:160,height:160,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowSpread:1,boxShadowColor:"#4c9afa",borderRadius:5},shadowDemoContentIos:{width:160,height:160,backgroundColor:"grey",borderRadius:5,display:"flex",justifyContent:"center",alignItems:"center"},text:{color:"white"}}),tt=s.StyleSheet.create({shadowDemoCubeAndroid:{position:"absolute",left:50,top:300,width:175,height:175,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:15,boxShadowOffsetY:15,boxShadowColor:"#4c9afa"},shadowDemoContentAndroid:{width:160,height:160,backgroundColor:"grey",display:"flex",justifyContent:"center",alignItems:"center"},shadowDemoCubeIos:{position:"absolute",left:50,top:300,width:160,height:160,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:10,boxShadowOffsetY:10,boxShadowSpread:1,boxShadowColor:"#4c9afa"},shadowDemoContentIos:{width:160,height:160,backgroundColor:"grey",display:"flex",justifyContent:"center",alignItems:"center"},text:{color:"white"}});function nt(){return l.a.createElement(s.View,{style:et.shadowDemo},"android"===s.Platform.OS?l.a.createElement(s.View,{style:et.shadowDemoCubeAndroid},l.a.createElement(s.View,{style:et.shadowDemoContentAndroid},l.a.createElement(s.Text,{style:et.text},"没有偏移阴影样式"))):l.a.createElement(s.View,{style:et.shadowDemoCubeIos},l.a.createElement(s.View,{style:et.shadowDemoContentIos},l.a.createElement(s.Text,{style:et.text},"没有偏移阴影样式"))),"android"===s.Platform.OS?l.a.createElement(s.View,{style:tt.shadowDemoCubeAndroid},l.a.createElement(s.View,{style:tt.shadowDemoContentAndroid},l.a.createElement(s.Text,{style:tt.text},"偏移阴影样式"))):l.a.createElement(s.View,{style:tt.shadowDemoCubeIos},l.a.createElement(s.View,{style:tt.shadowDemoContentIos},l.a.createElement(s.Text,{style:tt.text},"偏移阴影样式"))))}const ot=ce.filter(e=>2!==e.style),rt=s.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},splitter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},pullContainer:{height:50,backgroundColor:"#4c9afa"},pullContent:{lineHeight:50,color:"white",height:50,textAlign:"center"},pullFooter:{flex:1,height:40,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}});class it extends l.a.Component{constructor(e){super(e),this.state={dataSource:[],headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",horizontal:void 0},this.numberOfColumns=2,this.columnSpacing=6,this.interItemSpacing=6,this.mockFetchData=this.mockFetchData.bind(this),this.renderItem=this.renderItem.bind(this),this.getItemType=this.getItemType.bind(this),this.getItemKey=this.getItemKey.bind(this),this.onEndReached=this.onEndReached.bind(this),this.onRefresh=this.onRefresh.bind(this),this.getRefresh=this.getRefresh.bind(this),this.renderPullFooter=this.renderPullFooter.bind(this),this.renderPullHeader=this.renderPullHeader.bind(this),this.onHeaderReleased=this.onHeaderReleased.bind(this),this.onHeaderPulling=this.onHeaderPulling.bind(this),this.onFooterPulling=this.onFooterPulling.bind(this),this.renderBanner=this.renderBanner.bind(this),this.getItemStyle=this.getItemStyle.bind(this),this.getHeaderStyle=this.getHeaderStyle.bind(this),this.onScroll=this.onScroll.bind(this)}async componentDidMount(){const e=await this.mockFetchData();this.setState({dataSource:e})}async onEndReached(){const{dataSource:e}=this.state;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.setState({footerRefreshText:"加载更多..."});let t=[];try{t=await this.mockFetchData()}catch(e){}0===t.length&&this.setState({footerRefreshText:"没有更多数据"});const n=[...e,...t];this.setState({dataSource:n}),this.loadMoreDataFlag=!1,this.listView.collapsePullFooter()}async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.setState({headerRefreshText:"刷新数据中,请稍等"});let e=[];try{e=await this.mockFetchData()}catch(e){}this.fetchingDataFlag=!1,this.setState({dataSource:e,headerRefreshText:"2秒后收起"},()=>{this.listView.collapsePullHeader({time:2e3})})}onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>rt.pullContent.height?this.setState({headerRefreshText:"松手,即可触发刷新"}):this.setState({headerRefreshText:"继续下拉,触发刷新"}))}onFooterPulling(e){console.log("onFooterPulling",e)}renderPullFooter(){const{horizontal:e}=this.state;return e?l.a.createElement(s.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{color:"white",lineHeight:25,width:40,paddingHorizontal:15}},this.state.footerRefreshText)):l.a.createElement(s.View,{style:rt.pullFooter},l.a.createElement(s.Text,{style:{color:"white"}},this.state.footerRefreshText))}async onRefresh(){setTimeout(async()=>{const e=await this.mockFetchData();this.setState({dataSource:e}),this.refresh.refreshComplected()},1e3)}getRefresh(){return l.a.createElement(s.View,{style:{flex:1,height:40,justifyContent:"center",alignItems:"center",backgroundColor:"#4c9afa"}},l.a.createElement(s.Text,{style:{height:40,lineHeight:40,textAlign:"center",color:"white"}},"下拉刷新中..."))}onClickItem(e){console.log(`item: ${e} is clicked..`)}getItemType(e){return this.state.dataSource[e].style}getItemKey(e){return"row-"+e}onItemClick(e){console.log("onItemClick",e),this.listView.scrollToIndex({index:e,animation:!0})}onScroll(e){}renderBanner(){return 0===this.state.dataSource.length?null:l.a.createElement(s.View,{style:{backgroundColor:"grey",height:100,justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{fontSize:20,color:"white",lineHeight:100,height:100}},"Banner View"))}renderItem(e){const{dataSource:t}=this.state;let n=null;const o=t[e];switch(o.style){case 1:n=l.a.createElement(ye,{itemBean:o.itemBean});break;case 2:n=l.a.createElement(Se,{itemBean:o.itemBean});break;case 5:n=l.a.createElement(Ae,{itemBean:o.itemBean})}return l.a.createElement(s.View,{onClick:()=>this.onItemClick(e),style:rt.container},l.a.createElement(s.View,{style:rt.itemContainer},n),l.a.createElement(s.View,{style:rt.splitter}))}mockFetchData(){return new Promise(e=>{setTimeout(()=>{const t=[...ot,...ot];return e(t)},600)})}getWaterfallContentInset(){return{top:0,left:0,bottom:0,right:0}}getItemStyle(){const{numberOfColumns:e,columnSpacing:t}=this,n=s.Dimensions.get("screen").width-32,o=this.getWaterfallContentInset();return{width:(n-o.left-o.right-(e-1)*t)/e}}getHeaderStyle(){const{horizontal:e}=this.state;return e?{width:50}:{}}renderPullHeader(){const{headerRefreshText:e,horizontal:t}=this.state;return t?l.a.createElement(s.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{lineHeight:25,color:"white",width:40,paddingHorizontal:15}},e)):l.a.createElement(s.View,{style:rt.pullContainer},l.a.createElement(s.Text,{style:rt.pullContent},e))}render(){const{dataSource:e}=this.state,{numberOfColumns:t,columnSpacing:n,interItemSpacing:o}=this,r=this.getWaterfallContentInset();return l.a.createElement(s.WaterfallView,{ref:e=>{this.listView=e},numberOfColumns:t,columnSpacing:n,interItemSpacing:o,numberOfItems:e.length,preloadItemNumber:4,style:{flex:1},onScroll:this.onScroll,renderBanner:this.renderBanner,renderPullHeader:this.renderPullHeader,onEndReached:this.onEndReached,onFooterReleased:this.onEndReached,onHeaderReleased:this.onHeaderReleased,onHeaderPulling:this.onHeaderPulling,renderItem:this.renderItem,getItemType:this.getItemType,getItemKey:this.getItemKey,getItemStyle:this.getItemStyle,getHeaderStyle:this.getHeaderStyle,contentInset:r})}}var at=n.p+"assets/defaultSource.jpg";function lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function st(e){for(var t=1;t{i.current.setPressed(!1)},{nativeBackgroundAndroid:h,style:u}=e;return l.a.createElement(s.View,{onLayout:()=>{s.UIManagerModule.measureInAppWindow(i.current,e=>{n(e.x),r(e.y)})},style:u,onTouchDown:e=>{i.current.setHotspot(e.page_x-t,e.page_y-o),i.current.setPressed(!0)},onTouchEnd:c,onTouchCancel:c,ref:i,nativeBackgroundAndroid:st(st({},ct),h)},e.children)}const ut=s.StyleSheet.create({imgRectangle:{width:260,height:56,alignItems:"center",justifyContent:"center"},circleRipple:{marginTop:30,width:150,height:56,alignItems:"center",justifyContent:"center",borderWidth:3,borderStyle:"solid",borderColor:"#4c9afa"},squareRipple:{alignItems:"center",justifyContent:"center",width:150,height:150,backgroundColor:"#4c9afa",marginTop:30,borderRadius:12,overflow:"hidden"},squareRippleWrapper:{alignItems:"flex-start",justifyContent:"center",height:150,marginTop:30},squareRipple1:{alignItems:"center",justifyContent:"center",width:150,height:150,borderWidth:5,borderStyle:"solid",backgroundSize:"cover",borderColor:"#4c9afa",backgroundImage:at,paddingHorizontal:10},squareRipple2:{alignItems:"center",justifyContent:"center",width:150,height:150,paddingHorizontal:10,backgroundSize:"cover",backgroundImage:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}});function dt(){return"ios"===s.Platform.OS?l.a.createElement(s.Text,null,"iOS暂未支持水波纹效果"):l.a.createElement(s.ScrollView,{style:{margin:10,flex:1}},l.a.createElement(s.View,{style:[ut.imgRectangle,{marginTop:20,backgroundImage:at,backgroundSize:"cover"}]},l.a.createElement(ht,{style:[ut.imgRectangle],nativeBackgroundAndroid:{borderless:!0,color:"#666666"}},l.a.createElement(s.Text,{style:{color:"white",maxWidth:200}},"外层背景图,内层无边框水波纹,受外层影响始终有边框"))),l.a.createElement(ht,{style:[ut.circleRipple],nativeBackgroundAndroid:{borderless:!0,color:"#666666",rippleRadius:100}},l.a.createElement(s.Text,{style:{color:"black",textAlign:"center"}},"无边框圆形水波纹")),l.a.createElement(ht,{style:[ut.squareRipple],nativeBackgroundAndroid:{borderless:!1,color:"#666666"}},l.a.createElement(s.Text,{style:{color:"#fff"}},"带背景色水波纹")),l.a.createElement(s.View,{style:[ut.squareRippleWrapper]},l.a.createElement(ht,{style:[ut.squareRipple1],nativeBackgroundAndroid:{borderless:!1,color:"#666666"}},l.a.createElement(s.Text,{style:{color:"white"}},"有边框水波纹,带本地底图效果"))),l.a.createElement(s.View,{style:[ut.squareRippleWrapper]},l.a.createElement(ht,{style:[ut.squareRipple2],nativeBackgroundAndroid:{borderless:!1,color:"#666666"}},l.a.createElement(s.Text,{style:{color:"black"}},"有边框水波纹,带网络底图效果"))))}const mt="#4c9afa",gt="#f44837",ft=s.StyleSheet.create({container:{paddingHorizontal:10},square:{width:80,height:80,backgroundColor:gt},showArea:{height:150,marginVertical:10},button:{borderColor:mt,borderWidth:2,borderStyle:"solid",justifyContent:"center",alignItems:"center",width:70,borderRadius:8,height:50,marginTop:20,marginRight:8},buttonText:{fontSize:20,color:mt,textAlign:"center",textAlignVertical:"center"},colorText:{fontSize:14,color:"white",textAlign:"center",textAlignVertical:"center"},buttonContainer:{flexDirection:"row",alignItems:"center"},title:{fontSize:24,marginTop:8}});class yt extends l.a.Component{constructor(e){super(e),this.state={}}componentWillMount(){this.horizonAnimation=new s.Animation({startValue:150,toValue:20,duration:1e3,delay:500,mode:"timing",timingFunction:"linear",repeatCount:"loop"}),this.verticalAnimation=new s.Animation({startValue:80,toValue:40,duration:1e3,delay:0,mode:"timing",timingFunction:"linear",repeatCount:"loop"}),this.scaleAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:1,toValue:1.2,duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:1.2,toValue:.2,duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.rotateAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:0,toValue:180,duration:2e3,delay:0,valueType:"deg",mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:180,toValue:360,duration:2e3,delay:0,valueType:"deg",mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.skewXAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:0,toValue:20,duration:2e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:20,toValue:0,duration:2e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.skewYAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:0,toValue:20,duration:2e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:20,toValue:0,duration:2e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.bgColorAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:"red",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:"yellow",toValue:"blue",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.txtColorAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:"white",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:"yellow",toValue:"white",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.cubicBezierScaleAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:0,toValue:1,duration:1e3,delay:0,mode:"timing",timingFunction:"cubic-bezier(.45,2.84,.38,.5)"}),follow:!1},{animation:new s.Animation({startValue:1,toValue:0,duration:1e3,mode:"timing",timingFunction:"cubic-bezier(.17,1.45,.78,.14)"}),follow:!0}],repeatCount:"loop"})}componentDidMount(){"web"===s.Platform.OS&&(this.verticalAnimation.setRef(this.verticalRef),this.horizonAnimation.setRef(this.horizonRef),this.scaleAnimationSet.setRef(this.scaleRef),this.bgColorAnimationSet.setRef(this.bgColorRef),this.txtColorAnimationSet.setRef(this.textColorRef),this.txtColorAnimationSet.setRef(this.textColorRef),this.cubicBezierScaleAnimationSet.setRef(this.cubicBezierScaleRef),this.rotateAnimationSet.setRef(this.rotateRef),this.skewXAnimationSet.setRef(this.skewRef),this.skewYAnimationSet.setRef(this.skewRef)),this.horizonAnimation.onAnimationStart(()=>{console.log("on animation start!!!")}),this.horizonAnimation.onAnimationEnd(()=>{console.log("on animation end!!!")}),this.horizonAnimation.onAnimationCancel(()=>{console.log("on animation cancel!!!")}),this.horizonAnimation.onAnimationRepeat(()=>{console.log("on animation repeat!!!")})}componentWillUnmount(){this.horizonAnimation&&this.horizonAnimation.destroy(),this.verticalAnimation&&this.verticalAnimation.destroy(),this.scaleAnimationSet&&this.scaleAnimationSet.destroy(),this.bgColorAnimationSet&&this.bgColorAnimationSet.destroy(),this.txtColorAnimationSet&&this.txtColorAnimationSet.destroy(),this.cubicBezierScaleAnimationSet&&this.cubicBezierScaleAnimationSet.destroy(),this.rotateAnimationSet&&this.rotateAnimationSet.destroy(),this.skewXAnimationSet&&this.skewXAnimationSet.destroy(),this.skewYAnimationSet&&this.skewYAnimationSet.destroy()}render(){return l.a.createElement(s.ScrollView,{style:ft.container},l.a.createElement(s.Text,{style:ft.title},"水平位移动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.horizonAnimation.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.horizonAnimation.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.horizonAnimation.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.horizonAnimation.updateAnimation({startValue:50,toValue:100})}},l.a.createElement(s.Text,{style:ft.buttonText},"更新"))),l.a.createElement(s.View,{style:ft.showArea},l.a.createElement(s.View,{ref:e=>{this.horizonRef=e},style:[ft.square,{transform:[{translateX:this.horizonAnimation}]}]})),l.a.createElement(s.Text,{style:ft.title},"高度形变动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.verticalAnimation.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.verticalAnimation.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.verticalAnimation.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:ft.showArea},l.a.createElement(s.View,{ref:e=>{this.verticalRef=e},style:[ft.square,{height:this.verticalAnimation}]})),l.a.createElement(s.Text,{style:ft.title},"旋转动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.rotateAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.rotateAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.rotateAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:ft.showArea},l.a.createElement(s.View,{ref:e=>{this.rotateRef=e},style:[ft.square,{transform:[{rotate:this.rotateAnimationSet}]}]})),l.a.createElement(s.Text,{style:ft.title},"倾斜动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.skewXAnimationSet.start(),this.skewYAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.skewXAnimationSet.pause(),this.skewYAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.skewXAnimationSet.resume(),this.skewYAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:ft.showArea},l.a.createElement(s.View,{ref:e=>{this.skewRef=e},style:[ft.square,{transform:[{skewX:this.skewXAnimationSet},{skewY:this.skewYAnimationSet}]}]})),l.a.createElement(s.Text,{style:ft.title},"缩放动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.scaleAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.scaleAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.scaleAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:[ft.showArea,{marginVertical:20}]},l.a.createElement(s.View,{ref:e=>{this.scaleRef=e},style:[ft.square,{transform:[{scale:this.scaleAnimationSet}]}]})),l.a.createElement(s.Text,{style:ft.title},"颜色渐变动画(文字渐变仅Android支持)"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.bgColorAnimationSet.start(),this.txtColorAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.bgColorAnimationSet.pause(),this.txtColorAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.bgColorAnimationSet.resume(),this.txtColorAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:[ft.showArea,{marginVertical:20}]},l.a.createElement(s.View,{ref:e=>{this.bgColorRef=e},style:[ft.square,{justifyContent:"center",alignItems:"center"},{backgroundColor:this.bgColorAnimationSet}]},l.a.createElement(s.Text,{ref:e=>{this.textColorRef=e},style:[ft.colorText,{color:"android"===s.Platform.OS?this.txtColorAnimationSet:"white"}]},"颜色渐变背景和文字"))),l.a.createElement(s.Text,{style:ft.title},"贝塞尔曲线动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.cubicBezierScaleAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.cubicBezierScaleAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.cubicBezierScaleAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:[ft.showArea,{marginVertical:20}]},l.a.createElement(s.View,{ref:e=>{this.cubicBezierScaleRef=e},style:[ft.square,{transform:[{scale:this.cubicBezierScaleAnimationSet}]}]})))}}const pt=s.StyleSheet.create({containerStyle:{margin:20,alignItems:"center",flexDirection:"column"},itemGroupStyle:{flexDirection:"row",marginTop:10,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",width:100,height:40,justifyContent:"center",alignItems:"center"},viewGroupStyle:{flexDirection:"row",marginTop:10},infoStyle:{width:60,height:40,fontSize:16,color:"#4c9afa",textAlign:"center"},inputStyle:{width:200,height:40,placeholderTextColor:"#aaaaaa",underlineColorAndroid:"#4c9afa",fontSize:16,color:"#242424",textAlign:"left"},buttonStyle:{textAlign:"center",fontSize:16,color:"#4c9afa",backgroundColor:"#4c9afa11",marginLeft:10,marginRight:10}});class bt extends l.a.Component{constructor(e){super(e),this.state={result:""},this.onTextChangeKey=this.onTextChangeKey.bind(this),this.onTextChangeValue=this.onTextChangeValue.bind(this),this.onClickSet=this.onClickSet.bind(this),this.onTextChangeKey=this.onTextChangeKey.bind(this),this.onClickGet=this.onClickGet.bind(this)}onClickSet(){const{key:e,value:t}=this.state;e&&s.AsyncStorage.setItem(e,t)}onClickGet(){const{key:e}=this.state;e&&s.AsyncStorage.getItem(e).then(e=>{this.setState({result:e})})}onTextChangeKey(e){this.setState({key:e})}onTextChangeValue(e){this.setState({value:e})}render(){const{result:e}=this.state;return l.a.createElement(s.ScrollView,{style:pt.containerStyle},l.a.createElement(s.View,{style:pt.viewGroupStyle},l.a.createElement(s.Text,{style:pt.infoStyle},"Key:"),l.a.createElement(s.TextInput,{style:pt.inputStyle,onChangeText:this.onTextChangeKey})),l.a.createElement(s.View,{style:pt.viewGroupStyle},l.a.createElement(s.Text,{style:pt.infoStyle},"Value:"),l.a.createElement(s.TextInput,{style:pt.inputStyle,onChangeText:this.onTextChangeValue})),l.a.createElement(s.View,{style:pt.itemGroupStyle,onClick:this.onClickSet},l.a.createElement(s.Text,{style:pt.buttonStyle},"Set")),l.a.createElement(s.View,{style:[pt.viewGroupStyle,{marginTop:60}]},l.a.createElement(s.Text,{style:pt.infoStyle},"Key:"),l.a.createElement(s.TextInput,{style:pt.inputStyle,onChangeText:this.onTextChangeKey})),l.a.createElement(s.View,{style:[pt.viewGroupStyle,{display:"none"}]},l.a.createElement(s.Text,{style:pt.infoStyle},"Value:"),l.a.createElement(s.Text,{style:[pt.infoStyle,{width:200}]},e)),l.a.createElement(s.View,{style:pt.itemGroupStyle,onClick:this.onClickGet},l.a.createElement(s.Text,{style:pt.buttonStyle},"Get")))}}const wt=s.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},wrapper:{borderColor:"#eee",borderWidth:1,borderStyle:"solid",paddingHorizontal:10,paddingVertical:5,marginVertical:10,flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start"},infoContainer:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",marginTop:5,marginBottom:5,flexWrap:"wrap"},infoText:{collapsable:!1,marginVertical:5}});class xt extends l.a.Component{constructor(e){super(e),this.state={netInfoStatusTxt:"",netInfoChangeTxt:"",fetchInfoTxt:"",cookies:""},this.listener=null}async fetchNetInfoStatus(){this.setState({netInfoStatusTxt:await s.NetInfo.fetch()})}fetchUrl(){fetch("https://hippyjs.org",{mode:"no-cors"}).then(e=>(this.setState({fetchInfoTxt:"成功状态: "+e.status}),e)).catch(e=>{this.setState({fetchInfoTxt:"收到错误: "+e})})}setCookies(){s.NetworkModule.setCookie("https://hippyjs.org","name=hippy;network=mobile")}getCookies(){s.NetworkModule.getCookies("https://hippyjs.org").then(e=>{this.setState({cookies:e})})}async componentWillMount(){const e=this;this.listener=s.NetInfo.addEventListener("change",t=>{e.setState({netInfoChangeTxt:""+t.network_info})})}componentWillUnmount(){this.listener&&s.NetInfo.removeEventListener("change",this.listener)}componentDidMount(){this.fetchUrl(),this.fetchNetInfoStatus()}render(){const{netInfoStatusTxt:e,fetchInfoTxt:t,netInfoChangeTxt:n,cookies:o}=this.state,r=e=>l.a.createElement(s.View,{style:wt.itemTitle},l.a.createElement(s.Text,null,e));return l.a.createElement(s.ScrollView,{style:{paddingHorizontal:10}},r("Fetch"),l.a.createElement(s.View,{style:[wt.wrapper]},l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10},onClick:()=>this.fetchUrl()},l.a.createElement(s.Text,{style:{color:"white"}},"请求 hippy 网址:")),l.a.createElement(s.Text,{style:wt.infoText},t))),r("NetInfo"),l.a.createElement(s.View,{style:[wt.wrapper]},l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10},onClick:()=>this.fetchNetInfoStatus()},l.a.createElement(s.Text,{style:{color:"white"}},"获取网络状态:")),l.a.createElement(s.Text,{style:wt.infoText},e)),l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10}},l.a.createElement(s.Text,{style:{color:"white"}},"监听网络变化:")),l.a.createElement(s.Text,{style:wt.infoText},n))),r("NetworkModule"),l.a.createElement(s.View,{style:[wt.wrapper]},l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10},onClick:()=>this.setCookies()},l.a.createElement(s.Text,{style:{color:"white"}},"设置Cookies:")),l.a.createElement(s.Text,{style:wt.infoText},"name=hippy;network=mobile")),l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10},onClick:()=>this.getCookies()},l.a.createElement(s.Text,{style:{color:"white"}},"获取Cookies:")),l.a.createElement(s.Text,{style:wt.infoText},o))))}}const St=s.StyleSheet.create({fullScreen:{flex:1},row:{flexDirection:"row"},title:{color:"#ccc"},button:{height:56,backgroundColor:"#4c9afa",borderColor:"#5dabfb",borderStyle:"solid",borderWidth:1,paddingHorizontal:20,fontSize:16,textAlign:"center",lineHeight:56,color:"#fff",margin:10},input:{color:"black",flex:1,height:36,lineHeight:36,fontSize:14,borderBottomColor:"#4c9afa",borderBottomStyle:"solid",borderBottomWidth:1,padding:0},output:{color:"black"}}),Et="wss://echo.websocket.org",Tt="Rock it with Hippy WebSocket";let Ct;var At=function(){const e=Object(a.useRef)(null),t=Object(a.useRef)(null),[n,o]=Object(a.useState)([]),r=e=>{o(t=>[e,...t])};return l.a.createElement(s.View,{style:St.fullScreen},l.a.createElement(s.View,null,l.a.createElement(s.Text,{style:St.title},"Url:"),l.a.createElement(s.TextInput,{ref:e,value:Et,style:St.input}),l.a.createElement(s.View,{style:St.row},l.a.createElement(s.Text,{onClick:()=>{e.current.getValue().then(e=>{Ct&&1===Ct.readyState&&Ct.close(),Ct=new WebSocket(e),Ct.onopen=()=>r("[Opened] "+Ct.url),Ct.onclose=()=>r("[Closed] "+Ct.url),Ct.onerror=e=>r("[Error] "+e.reason),Ct.onmessage=e=>r("[Received] "+e.data)})},style:St.button},"Connect"),l.a.createElement(s.Text,{onClick:()=>Ct.close(),style:St.button},"Disconnect"))),l.a.createElement(s.View,null,l.a.createElement(s.Text,{style:St.title},"Message:"),l.a.createElement(s.TextInput,{ref:t,value:Tt,style:St.input}),l.a.createElement(s.Text,{onClick:()=>t.current.getValue().then(e=>{r("[Sent] "+e),Ct.send(e)}),style:St.button},"Send")),l.a.createElement(s.View,null,l.a.createElement(s.Text,{style:St.title},"Log:"),l.a.createElement(s.ScrollView,{style:St.fullScreen},n.map((e,t)=>l.a.createElement(s.Text,{key:t,style:St.output},e)))))};function vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Rt(e){for(var t=1;t{const e=s.Dimensions.get("screen");({width:t,height:n}=e)});const[o,r]=Object(a.useState)({width:100,height:100,top:10,left:10}),[i,c]=Object(a.useState)({width:0,height:0,x:0,y:0}),h=async(t=!1)=>{try{const n=await s.UIManagerModule.getBoundingClientRect(e.current,{relToContainer:t});c(n)}catch(e){console.error("getBoxPosition error",e)}},u=Rt(Rt({},Vt.box),o);return l.a.createElement(s.View,{style:Vt.full},l.a.createElement(s.View,{style:Vt.demoContent},l.a.createElement(s.View,{ref:e,style:u},l.a.createElement(s.Text,{style:Vt.text,numberOfLines:2},"I am the box"))),l.a.createElement(s.View,{style:Vt.buttonContainer},l.a.createElement(s.View,{onClick:()=>{const e=kt(0,t-100),o=kt(0,n-450),i=kt(80,120);r({left:e,top:o,width:i,height:i})},style:Vt.button},l.a.createElement(s.Text,{style:Vt.buttonText},"Move position")),l.a.createElement(s.View,{onClick:()=>h(!1),style:Vt.button},l.a.createElement(s.Text,{style:Vt.buttonText},"Measure in App Window")),l.a.createElement(s.View,{onClick:()=>h(!0),style:Vt.button},l.a.createElement(s.Text,{style:Vt.buttonText},"Measure in Container(RootView)"))),l.a.createElement(s.View,{style:Vt.row},l.a.createElement(s.View,null,l.a.createElement(s.Text,null,"Box style:"),l.a.createElement(s.Text,{style:Vt.black},"Width: "+u.width),l.a.createElement(s.Text,{style:Vt.black},"Height: "+u.height),l.a.createElement(s.Text,{style:Vt.black},"Left: "+u.left),l.a.createElement(s.Text,{style:Vt.black},"Top: "+u.top)),l.a.createElement(s.View,null,l.a.createElement(s.Text,null,"getBoundingClientRect output:"),l.a.createElement(s.Text,{style:Vt.black},"Width: "+i.width),l.a.createElement(s.Text,{style:Vt.black},"Height: "+i.height),l.a.createElement(s.Text,{style:Vt.black},"X: "+i.x),l.a.createElement(s.Text,{style:Vt.black},"Y: "+i.y))))};const Ot=s.StyleSheet.create({style_indicator_item:{width:4,height:4,marginLeft:2.5,marginRight:2.5,borderRadius:2},style_indicator:{position:"absolute",bottom:6,left:0,right:0,marginLeft:0,marginRight:0,alignItems:"center",justifyContent:"center",flexDirection:"row"}});class Dt extends l.a.Component{constructor(e){super(e),this.state={current:e.current||0}}update(e){const{current:t}=this.state;t!==e&&this.setState({current:e})}render(){const{count:e}=this.props,{current:t}=this.state,n=[];for(let o=0;o=r||(this.indicator&&this.indicator.update(o),this.currentIndex=o)}onScrollBeginDrag(){this.touchStartOffset=this.scrollOffset,this.doClearTimer()}onScrollEndDrag(){this.doCreateTimer()}onLayout(e){this.width=e.layout.width}doSwitchPage(e){this.scrollView.scrollTo({x:this.imgWidth*e,y:0,animated:!0})}doCreateTimer(){this.doClearTimer(),this.duration<=0||(this.interval=setInterval(()=>{this.doSwitchPage((this.currentIndex+1)%this.itemCount)},this.duration))}doClearTimer(){this.interval&&clearInterval(this.interval),this.interval=null}render(){const{images:e}=this.props,t=[];for(let n=0;n{this.scrollView=e}},t),l.a.createElement(Dt,{ref:e=>{this.indicator=e},count:this.itemCount}))}}_()(Pt,"defaultProps",{duration:0,currentPage:0,images:[]});const jt=["https://user-images.githubusercontent.com/12878546/148736627-bca54707-6939-45b3-84f7-74e6c2c09c88.jpg","https://user-images.githubusercontent.com/12878546/148736679-0521fdff-09f5-40e3-a36a-55c8f714be16.jpg","https://user-images.githubusercontent.com/12878546/148736685-a4c226ad-f64a-4fe0-b3df-ce0d8fcd7a01.jpg"],Lt=s.StyleSheet.create({sliderStyle:{width:400,height:180},infoStyle:{height:40,fontSize:16,color:"#4c9afa",marginTop:15}});function Mt(){return l.a.createElement(s.ScrollView,null,l.a.createElement(s.Text,{style:Lt.infoStyle},"Auto:"),l.a.createElement(Pt,{style:Lt.sliderStyle,images:jt,duration:1e3}),l.a.createElement(s.Text,{style:Lt.infoStyle},"Manual:"),l.a.createElement(Pt,{style:Lt.sliderStyle,images:jt,duration:0}))}const Bt=s.StyleSheet.create({container:{height:45,paddingLeft:4,flexDirection:"row",backgroundColor:"#ffffff",borderBottomColor:"#E5E5E5",borderBottomWidth:1,borderStyle:"solid"},scroll:{flex:1,height:44},navItem:{width:60,height:44,paddingTop:13},navItemText:{fontSize:16,lineHeight:17,textAlign:"center",backgroundColor:"#ffffff"},navItemTextNormal:{color:"#666666"},navItemTextBlue:{color:"#2D73FF"}});class zt extends l.a.Component{constructor(e){super(e),this.state={curIndex:0,navList:["头条","推荐","圈子","NBA","中超","英超","西甲","CBA","澳网","电影","本地","娱乐","小说","生活","直播","游戏"]},this.navScrollView=null,this.viewPager=null,this.onViewPagerChange=this.onViewPagerChange.bind(this),this.pressNavItem=this.pressNavItem.bind(this),this.scrollSV=this.scrollSV.bind(this)}static getPage(e,t){switch(t%3){case 0:return qe(e);case 1:return Ye(e);case 2:return Qe(e);default:return null}}componentDidUpdate(){this.scrollSV()}onViewPagerChange({position:e}){this.setState({curIndex:e})}scrollSV(){if(this.navScrollView){const{curIndex:e,navList:t}=this.state,n=t.length,o=de.getScreenWidth(),r=o/2/60,i=60*nn-r?60*n-o:60*e-60*r+30,this.navScrollView.scrollTo({x:a,y:0,animated:!0})}}pressNavItem(e){this.setState({curIndex:e}),this.viewPager&&this.viewPager.setPage(e)}renderNav(){const{navList:e,curIndex:t}=this.state;return l.a.createElement(s.View,{style:Bt.container},l.a.createElement(s.ScrollView,{style:Bt.scroll,horizontal:!0,showsHorizontalScrollIndicator:!1,ref:e=>{this.navScrollView=e}},e.map((e,n)=>l.a.createElement(s.View,{style:Bt.navItem,key:"nav_"+e,activeOpacity:.5,onClick:()=>this.pressNavItem(n)},l.a.createElement(s.Text,{style:[Bt.navItemText,t===n?Bt.navItemTextBlue:Bt.navItemTextNormal],numberOfLines:1},e)))))}render(){const{navList:e}=this.state;return l.a.createElement(s.View,{style:{flex:1,backgroundColor:"#ffffff"}},this.renderNav(),l.a.createElement(s.ViewPager,{ref:e=>{this.viewPager=e},style:{flex:1},initialPage:0,onPageSelected:this.onViewPagerChange},e.map((e,t)=>zt.getPage(e,t))))}}const{width:Ft}=s.Dimensions.get("window"),Ht=s.StyleSheet.create({setNativePropsDemo:{display:"flex",alignItems:"center",position:"relative"},nativeDemo1Drag:{height:80,width:Ft,backgroundColor:"#4c9afa",position:"relative",marginTop:10},nativeDemo1Point:{height:80,width:80,color:"#4cccfa",backgroundColor:"#4cccfa",position:"absolute",left:0},nativeDemo2Drag:{height:80,width:Ft,backgroundColor:"#4c9afa",position:"relative",marginTop:10},nativeDemo2Point:{height:80,width:80,color:"#4cccfa",backgroundColor:"#4cccfa",position:"absolute",left:0},splitter:{marginTop:50}});class _t extends l.a.Component{constructor(e){super(e),this.demon1Point=l.a.createRef(),this.demo1PointDom=null,this.state={demo2Left:0},this.isDemon1Layouted=!1,this.idDemon2Layouted=!1,this.onTouchDown1=this.onTouchDown1.bind(this),this.onDemon1Layout=this.onDemon1Layout.bind(this),this.onTouchMove1=this.onTouchMove1.bind(this),this.onTouchDown2=this.onTouchDown2.bind(this),this.onTouchMove2=this.onTouchMove2.bind(this)}componentDidMount(){}onDemon1Layout(){this.isDemon1Layouted||(this.isDemon1Layouted=!0,this.demo1PointDom=s.UIManagerModule.getElementFromFiberRef(this.demon1Point.current))}onTouchDown1(e){const{page_x:t}=e,n=t-40;console.log("touchdown x",t,n,Ft),this.demo1PointDom&&this.demo1PointDom.setNativeProps({style:{left:n}})}onTouchMove1(e){const{page_x:t}=e,n=t-40;console.log("touchmove x",t,n,Ft),this.demo1PointDom&&this.demo1PointDom.setNativeProps({style:{left:n}})}onTouchDown2(e){const{page_x:t}=e,n=t-40;console.log("touchdown x",t,n,Ft),this.setState({demo2Left:n})}onTouchMove2(e){const{page_x:t}=e,n=t-40;console.log("touchmove x",t,n,Ft),this.setState({demo2Left:n})}render(){const{demo2Left:e}=this.state;return l.a.createElement(s.View,{style:Ht.setNativePropsDemo},l.a.createElement(s.Text,null,"setNativeProps实现拖动效果"),l.a.createElement(s.View,{style:Ht.nativeDemo1Drag,onTouchDown:this.onTouchDown1,onTouchMove:this.onTouchMove1},l.a.createElement(s.View,{onLayout:this.onDemon1Layout,style:Ht.nativeDemo1Point,ref:this.demon1Point})),l.a.createElement(s.View,{style:Ht.splitter}),l.a.createElement(s.Text,null,"普通渲染实现拖动效果"),l.a.createElement(s.View,{style:Ht.nativeDemo2Drag,onTouchDown:this.onTouchDown2,onTouchMove:this.onTouchMove2},l.a.createElement(s.View,{style:[Ht.nativeDemo2Point,{left:e}]})))}}const Nt=s.StyleSheet.create({dynamicImportDemo:{marginTop:20,display:"flex",flex:1,alignItems:"center",position:"relative",flexDirection:"column"}});class Wt extends l.a.Component{constructor(e){super(e),this.state={AsyncComponentFromLocal:null,AsyncComponentFromHttp:null},this.onAsyncComponentLoad=this.onAsyncComponentLoad.bind(this)}onAsyncComponentLoad(){console.log("load async component"),n.e(1).then(n.bind(null,"./src/externals/DyanmicImport/AsyncComponentLocal.jsx")).then(e=>{this.setState({AsyncComponentFromLocal:e.default||e})}).catch(e=>console.error("import async local component error",e)),n.e(0).then(n.bind(null,"./src/externals/DyanmicImport/AsyncComponentHttp.jsx")).then(e=>{this.setState({AsyncComponentFromHttp:e.default||e})}).catch(e=>console.error("import async remote component error",e))}render(){const{AsyncComponentFromLocal:e,AsyncComponentFromHttp:t}=this.state;return l.a.createElement(s.View,{style:Nt.dynamicImportDemo},l.a.createElement(s.View,{style:{width:130,height:40,textAlign:"center",backgroundColor:"#4c9afa",borderRadius:5},onTouchDown:this.onAsyncComponentLoad},l.a.createElement(s.Text,{style:{height:40,lineHeight:40,textAlign:"center"}},"点我异步加载")),l.a.createElement(s.View,{style:{marginTop:20}},e?l.a.createElement(e,null):null,t?l.a.createElement(t,null):null))}}const Kt=s.StyleSheet.create({LocalizationDemo:{marginTop:20,display:"flex",flex:1,alignItems:"center",position:"relative",flexDirection:"column"}});class Ut extends l.a.Component{render(){const{country:e,language:t,direction:n}=s.Platform.Localization||{};return l.a.createElement(s.View,{style:Kt.LocalizationDemo},l.a.createElement(s.View,{style:{height:40,textAlign:"center",backgroundColor:"#4c9afa",borderRadius:5},onTouchDown:this.onAsyncComponentLoad},l.a.createElement(s.Text,{style:{color:"white",marginHorizontal:30,height:40,lineHeight:40,textAlign:"center"}},`国际化相关信息:国家 ${e} | 语言 ${t} | 方向 ${1===n?"RTL":"LTR"}`)))}}const Gt=()=>getTurboModule("demoTurbo").getTurboConfig(),qt=s.StyleSheet.create({container:{flex:1},cellContentView:{flexDirection:"row",justifyContent:"space-between",backgroundColor:"#ccc",marginBottom:1},funcInfo:{justifyContent:"center",paddingLeft:15,paddingRight:15},actionButton:{backgroundColor:"#4c9afa",color:"#fff",height:44,lineHeight:44,textAlign:"center",width:80,borderRadius:6},resultView:{backgroundColor:"darkseagreen",minHeight:150,padding:15}});class Qt extends l.a.Component{constructor(e){super(e),this.state={config:null,result:"",funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"]},this.onTurboFunc=this.onTurboFunc.bind(this),this.getRenderRow=this.getRenderRow.bind(this),this.getRowKey=this.getRowKey.bind(this)}async onTurboFunc(e){let t;if("nativeWithPromise"===e)t=await(async e=>turboPromise(getTurboModule("demoTurbo").nativeWithPromise)(e))("aaa");else if("getTurboConfig"===e)this.config=Gt(),t="获取到config对象";else if("printTurboConfig"===e)n=this.config||Gt(),t=getTurboModule("demoTurbo").printTurboConfig(n);else if("getInfo"===e)t=(this.config||Gt()).getInfo();else if("setInfo"===e)(this.config||Gt()).setInfo("Hello World"),t="设置config信息成功";else{t={getString:()=>{return e="123",getTurboModule("demoTurbo").getString(e);var e},getNum:()=>{return e=1024,getTurboModule("demoTurbo").getNum(e);var e},getBoolean:()=>{return e=!0,getTurboModule("demoTurbo").getBoolean(e);var e},getMap:()=>{return e=new Map([["a","1"],["b",2]]),getTurboModule("demoTurbo").getMap(e);var e},getObject:()=>{return e={c:"3",d:"4"},getTurboModule("demoTurbo").getObject(e);var e},getArray:()=>{return e=["a","b","c"],getTurboModule("demoTurbo").getArray(e);var e}}[e]()}var n;this.setState({result:t})}renderResultView(){return l.a.createElement(s.View,{style:qt.resultView},l.a.createElement(s.Text,{style:{backgroundColor:"darkseagreen"}},""+this.state.result))}getRenderRow(e){const{funList:t}=this.state;return l.a.createElement(s.View,{style:qt.cellContentView},l.a.createElement(s.View,{style:qt.funcInfo},l.a.createElement(s.Text,{numberofLines:0},"函数名:",t[e])),l.a.createElement(s.Text,{style:qt.actionButton,onClick:()=>this.onTurboFunc(t[e])},"执行"))}getRowKey(e){const{funList:t}=this.state;return t[e]}render(){const{funList:e}=this.state;return l.a.createElement(s.View,{style:qt.container},this.renderResultView(),l.a.createElement(s.ListView,{numberOfRows:e.length,renderRow:this.getRenderRow,getRowKey:this.getRowKey,style:{flex:1}}))}}const Yt=s.StyleSheet.create({demoWrap:{horizontal:!1,flex:1,flexDirection:"column"},banner:{backgroundImage:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",backgroundSize:"cover",height:150,justifyContent:"flex-end"},bannerText:{color:"coral",textAlign:"center"},tabs:{flexDirection:"row",height:30},tabText:{flex:1,textAlign:"center",backgroundColor:"#eee",color:"#999"},tabSelected:{flex:1,textAlign:"center",color:"#4c9afa"},itemEven:{height:40,backgroundColor:"gray"},itemEvenText:{lineHeight:40,color:"white",fontSize:20,textAlign:"center"},itemOdd:{height:40},itemOddText:{lineHeight:40,fontSize:20,textAlign:"center"}});class Xt extends l.a.Component{constructor(e){super(e),this.state={layoutHeight:0,currentSlide:0}}selectPage(e){var t;this.setState({currentSlide:e}),null===(t=this.viewPager)||void 0===t||t.setPage(e)}render(){const{layoutHeight:e,currentSlide:t}=this.state;return l.a.createElement(s.ScrollView,{style:Yt.demoWrap,scrollEventThrottle:50,onLayout:e=>this.setState({layoutHeight:e.layout.height})},l.a.createElement(s.View,{style:Yt.banner}),l.a.createElement(s.View,{style:Yt.tabs},l.a.createElement(s.Text,{key:"tab1",style:0===t?Yt.tabSelected:Yt.tabText,onClick:()=>this.selectPage(0)},"tab 1 (parent first)"),l.a.createElement(s.Text,{key:"tab2",style:1===t?Yt.tabSelected:Yt.tabText,onClick:()=>this.selectPage(1)},"tab 2 (self first)")),l.a.createElement(s.ViewPager,{ref:e=>this.viewPager=e,initialPage:t,style:{height:e-80},onPageSelected:e=>this.setState({currentSlide:e.position})},l.a.createElement(s.ListView,{nestedScrollTopPriority:"parent",key:"slide1",numberOfRows:30,getRowKey:e=>"item"+e,initialListSize:30,renderRow:e=>l.a.createElement(s.Text,{style:e%2?Yt.itemEvenText:Yt.itemOddText},"Item ",e),getRowStyle:e=>e%2?Yt.itemEven:Yt.itemOdd}),l.a.createElement(s.ListView,{nestedScrollTopPriority:"self",key:"slide2",numberOfRows:30,getRowKey:e=>"item"+e,initialListSize:30,renderRow:e=>l.a.createElement(s.Text,{style:e%2?Yt.itemEvenText:Yt.itemOddText},"Item ",e),getRowStyle:e=>e%2?Yt.itemEven:Yt.itemOdd})))}}function Jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Zt(e){for(var t=1;t 组件",component:$t.View,meta:{type:en.COMPONENT}},{path:"/Text",name:" 组件",component:$t.Text,meta:{type:en.COMPONENT}},{path:"/Image",name:" 组件",component:$t.Image,meta:{type:en.COMPONENT}},{path:"/ListView",name:" 组件",component:$t.ListView,meta:{type:en.COMPONENT}},{path:"/WaterfallView",name:" 组件",component:$t.WaterfallView,meta:{type:en.COMPONENT}},{path:"/PullHeader",name:" 组件",component:$t.PullHeaderFooter,meta:{type:en.COMPONENT}},{path:"/RefreshWrapper",name:" 组件",component:$t.RefreshWrapper,meta:{type:en.COMPONENT}},{path:"/ScrollView",name:" 组件",component:$t.ScrollView,meta:{type:en.COMPONENT}},{path:"/ViewPager",name:" 组件",component:$t.ViewPager,meta:{type:en.COMPONENT}},{path:"/TextInput",name:" 组件",component:$t.TextInput,meta:{type:en.COMPONENT}},{path:"/Modal",name:" 组件",component:$t.Modal,meta:{type:en.COMPONENT}},{path:"/Slider",name:" 组件",component:$t.Slider,meta:{type:en.COMPONENT}},{path:"/TabHost",name:" 组件",component:$t.TabHost,meta:{type:en.COMPONENT}},{path:"/WebView",name:" 组件",component:$t.WebView,meta:{type:en.COMPONENT}},{path:"/RippleViewAndroid",name:" 组件",component:$t.RippleViewAndroid,meta:{type:en.COMPONENT}},{path:"/Moduels",name:"Modules",meta:{type:en.TITLE,mapType:en.MODULE}},{path:"/Animation",name:"Animation 模块",component:$t.Animation,meta:{type:en.MODULE}},{path:"/WebSocket",name:"WebSocket 模块",component:$t.WebSocket,meta:{type:en.MODULE}},{path:"/NetInfo",name:"Network 模块",component:$t.NetInfo,meta:{type:en.MODULE}},{path:"/UIManagerModule",name:"UIManagerModule 模块",component:$t.UIManagerModule,meta:{type:en.MODULE}},{path:"/Others",name:"Others",meta:{type:en.TITLE,mapType:en.OTHER}},{path:"/NestedScroll",name:"NestedScroll 范例",component:$t.NestedScroll,meta:{type:en.OTHER}},{path:"/BoxShadow",name:"BoxShadow 范例",component:$t.BoxShadow,meta:{type:en.OTHER}},{path:"/SetNativeProps",name:"setNativeProps 范例",component:$t.SetNativeProps,meta:{type:en.OTHER}},{path:"/DynamicImport",name:"DynamicImport 范例",component:$t.DynamicImport,meta:{type:en.OTHER}},{path:"/Localization",name:"Localization 范例",component:$t.Localization,meta:{type:en.OTHER}},{path:"/Turbo",name:"Turbo 范例",component:$t.Turbo,meta:{type:en.OTHER}}],nn="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";const on="#1E304A",rn=s.StyleSheet.create({container:{marginTop:20,marginBottom:12,height:24,flexDirection:"row",alignItems:"center",justifyContent:"space-between"},backIcon:{tintColor:on,width:15,height:15},headerButton:{height:24,alignItems:"center",justifyContent:"center"},title:{fontSize:16,color:on,lineHeight:16}});var an=F(({history:e,route:t})=>0===e.index?l.a.createElement(s.View,{style:[rn.container]},l.a.createElement(s.View,null,l.a.createElement(s.Text,{numberOfLines:1,style:[rn.title]},t.name)),l.a.createElement(s.View,{style:rn.headerButton},l.a.createElement(s.Text,{numberOfLines:1,style:rn.title},"unspecified"!==s.default.version?""+s.default.version:"master"))):l.a.createElement(s.View,{style:[rn.container]},l.a.createElement(s.View,{onClick:()=>e.goBack(),style:[rn.headerButton]},l.a.createElement(s.Image,{style:rn.backIcon,source:{uri:nn}})),l.a.createElement(s.View,{style:rn.headerButton},l.a.createElement(s.Text,{numberOfLines:1,style:rn.title},t.name))));function ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function sn(e){for(var t=1;t{t[en[e]]=!1}),this.state={pressItem:"",dataSource:[...tn],typeVisibleState:t},this.renderRow=this.renderRow.bind(this),this.getRowType=this.getRowType.bind(this),this.getRowKey=this.getRowKey.bind(this),this.clickTo=this.clickTo.bind(this),this.clickToggle=this.clickToggle.bind(this)}componentDidMount(){const{history:e}=this.props;"android"===s.Platform.OS&&s.BackAndroid.addListener(()=>(console.log("BackAndroid"),0!==e.index&&(e.goBack(),!0)))}getRowType(e){const{dataSource:t}=this.state;return t[e].meta.type}getRowKey(e){const{dataSource:t}=this.state;return t[e].path||""+e}feedback(e){const t=e||"";this.setState({pressItem:t})}clickTo(e){const{history:t}=this.props;t.push(e)}clickToggle(e){this.setState({typeVisibleState:sn(sn({},this.state.typeVisibleState),{},{[e]:!this.state.typeVisibleState[e]})})}renderRow(e){const{dataSource:t,pressItem:n,typeVisibleState:o}=this.state,r=t[e],{type:i}=r.meta;if(i===en.TITLE){const{mapType:e}=r.meta;return l.a.createElement(s.View,{style:[cn.typeContainer,o[e]?{borderBottomLeftRadius:0,borderBottomRightRadius:0}:{borderBottomLeftRadius:4,borderBottomRightRadius:4}],onClick:()=>this.clickToggle(e)},l.a.createElement(s.Text,{style:cn.typeText},r.name),l.a.createElement(s.Image,{style:[cn.arrowIcon,o[e]?{transform:[{rotate:"-90deg"}]}:{transform:[{rotate:"180deg"}]}],source:{uri:nn}}))}let a=!1;const c=t[e+1],h=t.length-1;return(c&&c.meta.type===en.TITLE||e===h)&&(a=!0),l.a.createElement(s.View,{style:o[i]?{display:"flex"}:{display:"none"}},l.a.createElement(s.View,{onPressIn:()=>this.feedback(r.path),onPressOut:()=>this.feedback(),onClick:()=>this.clickTo(r.path),style:[cn.buttonView,{opacity:n===r.path?.5:1}]},l.a.createElement(s.Text,{style:cn.buttonText},r.name)),a?null:l.a.createElement(s.View,{style:cn.separatorLine}))}render(){const{dataSource:e}=this.state;return l.a.createElement(s.ListView,{style:{flex:1},numberOfRows:e.length,renderRow:this.renderRow,getRowType:this.getRowType,getRowKey:this.getRowKey,paintType:"fcp"})}}const un=[{path:"/Gallery",name:"Hippy React",component:F(hn)},...tn];var dn=()=>l.a.createElement(s.View,{style:{flex:1}},l.a.createElement(k,{initialEntries:["/Gallery"]},un.map(e=>{const t=e.component;return l.a.createElement(P,{key:e.path,exact:!0,path:""+e.path},l.a.createElement(s.View,{style:{flex:1}},l.a.createElement(an,{route:e}),l.a.createElement(t,null)))})));const mn={container:{flex:1,paddingHorizontal:16,backgroundColor:"#E5E5E5"}};class gn extends a.Component{render(){const{children:e}=this.props;return l.a.createElement(s.View,{style:mn.container,onLayout:this.onLayout},e)}}class fn extends a.Component{componentDidMount(){s.ConsoleModule.log("~~~~~~~~~~~~~~~~~ This is a log from ConsoleModule ~~~~~~~~~~~~~~~~~")}render(){return l.a.createElement(gn,null,l.a.createElement(dn,null))}}},"./src/main.js":function(e,t,n){"use strict";n.r(t),function(e){var t=n("../../packages/hippy-react/dist/index.js"),o=n("./src/app.jsx");e.Hippy.on("uncaughtException",e=>{console.error("uncaughtException error",e.stack,e.message)}),e.Hippy.on("unhandledRejection",e=>{console.error("unhandledRejection reason",e)}),new t.Hippy({appName:"Demo",entryPage:o.a,bubbles:!1,silent:!1}).start()}.call(this,n("./node_modules/webpack/buildin/global.js"))},0:function(e,t,n){n("./node_modules/regenerator-runtime/runtime.js"),e.exports=n("./src/main.js")},"dll-reference hippyReactBase":function(e,t){e.exports=hippyReactBase}}); \ No newline at end of file + */var o="function"==typeof Symbol&&Symbol.for,r=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,a=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,s=o?Symbol.for("react.profiler"):60114,c=o?Symbol.for("react.provider"):60109,h=o?Symbol.for("react.context"):60110,u=o?Symbol.for("react.async_mode"):60111,d=o?Symbol.for("react.concurrent_mode"):60111,m=o?Symbol.for("react.forward_ref"):60112,g=o?Symbol.for("react.suspense"):60113,f=o?Symbol.for("react.suspense_list"):60120,y=o?Symbol.for("react.memo"):60115,p=o?Symbol.for("react.lazy"):60116,b=o?Symbol.for("react.block"):60121,w=o?Symbol.for("react.fundamental"):60117,x=o?Symbol.for("react.responder"):60118,S=o?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case a:case s:case l:case g:return e;default:switch(e=e&&e.$$typeof){case h:case m:case p:case y:case c:return e;default:return t}}case i:return t}}}function T(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=h,t.ContextProvider=c,t.Element=r,t.ForwardRef=m,t.Fragment=a,t.Lazy=p,t.Memo=y,t.Portal=i,t.Profiler=s,t.StrictMode=l,t.Suspense=g,t.isAsyncMode=function(e){return T(e)||E(e)===u},t.isConcurrentMode=T,t.isContextConsumer=function(e){return E(e)===h},t.isContextProvider=function(e){return E(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===m},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===p},t.isMemo=function(e){return E(e)===y},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===l},t.isSuspense=function(e){return E(e)===g},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===s||e===l||e===g||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===y||e.$$typeof===c||e.$$typeof===h||e.$$typeof===m||e.$$typeof===w||e.$$typeof===x||e.$$typeof===S||e.$$typeof===b)},t.typeOf=E},"./node_modules/react-is/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/react-is/cjs/react-is.production.min.js")},"./node_modules/react/index.js":function(e,t,n){e.exports=n("dll-reference hippyReactBase")("./node_modules/react/index.js")},"./node_modules/regenerator-runtime/runtime.js":function(e,t,n){var o=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new A(r||[]);return o(a,"_invoke",{value:S(e,n,l)}),a}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function m(){}function g(){}var f={};s(f,i,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(v([])));p&&p!==t&&n.call(p,i)&&(f=p);var b=g.prototype=d.prototype=Object.create(f);function w(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){var r;o(this,"_invoke",{value:function(o,i){function a(){return new t((function(r,a){!function o(r,i,a,l){var s=h(e[r],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}})}function S(e,t,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return R()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var l=E(a,n);if(l){if(l===u)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var s=h(e,t,n);if("normal"===s.type){if(o=n.done?"completed":"suspendedYield",s.arg===u)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o="completed",n.method="throw",n.arg=s.arg)}}}function E(e,t){var n=t.method,o=e.iterator[n];if(void 0===o)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),u;var r=h(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function v(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;C(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:v(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=o}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}},"./node_modules/webpack/buildin/global.js":function(e,t,n){e.exports=n("dll-reference hippyReactBase")("./node_modules/webpack/buildin/global.js")},"./src/app.jsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return fn}));var o={};n.r(o),n.d(o,"Focusable",(function(){return W})),n.d(o,"Image",(function(){return q})),n.d(o,"ListView",(function(){return $})),n.d(o,"Modal",(function(){return re})),n.d(o,"RefreshWrapper",(function(){return Re})),n.d(o,"PullHeaderFooter",(function(){return ke})),n.d(o,"ScrollView",(function(){return Oe})),n.d(o,"Text",(function(){return Be})),n.d(o,"TextInput",(function(){return Fe})),n.d(o,"View",(function(){return _e})),n.d(o,"ViewPager",(function(){return Je})),n.d(o,"WebView",(function(){return $e})),n.d(o,"BoxShadow",(function(){return nt})),n.d(o,"WaterfallView",(function(){return it})),n.d(o,"RippleViewAndroid",(function(){return dt}));var r={};n.r(r),n.d(r,"Animation",(function(){return yt})),n.d(r,"AsyncStorage",(function(){return bt})),n.d(r,"NetInfo",(function(){return xt})),n.d(r,"WebSocket",(function(){return At})),n.d(r,"UIManagerModule",(function(){return It}));var i={};n.r(i),n.d(i,"Slider",(function(){return Bt})),n.d(i,"TabHost",(function(){return Ft})),n.d(i,"SetNativeProps",(function(){return _t})),n.d(i,"DynamicImport",(function(){return Nt})),n.d(i,"Localization",(function(){return Ut})),n.d(i,"Turbo",(function(){return Qt})),n.d(i,"NestedScroll",(function(){return Xt}));var a=n("./node_modules/react/index.js"),l=n.n(a),s=n("../../packages/hippy-react/dist/index.js"),c=n("./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0;h--){var m=r[h];"."===m?d(r,h):".."===m?(d(r,h),c++):c&&(d(r,h),c--)}if(!l)for(;c--;c)r.unshift("..");!l||""===r[0]||r[0]&&u(r[0])||r.unshift("");var g=r.join("/");return n&&"/"!==g.substr(-1)&&(g+="/"),g};var g="Invariant failed";function f(e,t){if(!e)throw new Error(g)}function y(e){var t=e.pathname,n=e.search,o=e.hash,r=t||"/";return n&&"?"!==n&&(r+="?"===n.charAt(0)?n:"?"+n),o&&"#"!==o&&(r+="#"===o.charAt(0)?o:"#"+o),r}function p(e,t,n,o){var r;"string"==typeof e?(r=function(e){var t=e||"/",n="",o="",r=t.indexOf("#");-1!==r&&(o=t.substr(r),t=t.substr(0,r));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===o?"":o}}(e)).state=t:(void 0===(r=h({},e)).pathname&&(r.pathname=""),r.search?"?"!==r.search.charAt(0)&&(r.search="?"+r.search):r.search="",r.hash?"#"!==r.hash.charAt(0)&&(r.hash="#"+r.hash):r.hash="",void 0!==t&&void 0===r.state&&(r.state=t));try{r.pathname=decodeURI(r.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+r.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(r.key=n),o?r.pathname?"/"!==r.pathname.charAt(0)&&(r.pathname=m(r.pathname,o.pathname)):r.pathname=o.pathname:r.pathname||(r.pathname="/"),r}function b(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,o,r){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof o?o(i,r):r(!0):r(!1!==i)}else r(!0)},appendListener:function(e){var n=!0;function o(){n&&e.apply(void 0,arguments)}return t.push(o),function(){n=!1,t=t.filter((function(e){return e!==o}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),o=0;ot?n.splice(t,n.length-t,o):n.push(o),u({action:"PUSH",location:o,index:t,entries:n})}}))},replace:function(e,t){var o=p(e,t,d(),S.location);c.confirmTransitionTo(o,"REPLACE",n,(function(e){e&&(S.entries[S.index]=o,u({action:"REPLACE",location:o}))}))},go:x,goBack:function(){x(-1)},goForward:function(){x(1)},canGo:function(e){var t=S.index+e;return t>=0&&t=0)continue;n[o]=e[o]}return n}var A=n("./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"),v=n.n(A),R=function(e){var t=Object(S.a)();return t.displayName=e,t}("Router"),V=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(c.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return l.a.createElement(R.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(l.a.Component);var k=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;rthis.onClick(e),requestFocus:0===e,focusStyle:{backgroundColor:"red"},noFocusStyle:{backgroundColor:"blue"}},l.a.createElement(s.Text,{style:{color:"white"}},t===e?"我被点击了"+e:"没有被点击"+e)))}render(){return l.a.createElement(s.ScrollView,null,this.getRenderRow(0),this.getRenderRow(1),this.getRenderRow(2),this.getRenderRow(3),this.getRenderRow(4),this.getRenderRow(5),this.getRenderRow(6),this.getRenderRow(7),this.getRenderRow(8),this.getRenderRow(9),this.getRenderRow(10),this.getRenderRow(11),this.getRenderRow(12),this.getRenderRow(13),this.getRenderRow(14),this.getRenderRow(15),this.getRenderRow(16),this.getRenderRow(17),this.getRenderRow(18))}}var N=n.p+"assets/defaultSource.jpg",K=n.p+"assets/hippyLogoWhite.png";const U="https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",G=s.StyleSheet.create({container_style:{alignItems:"center"},image_style:{width:300,height:180,margin:16,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",borderRadius:4},info_style:{marginTop:15,marginLeft:16,fontSize:16,color:"#4c9afa"},img_result:{width:300,marginTop:-15,marginLeft:16,fontSize:16,color:"#4c9afa",borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",borderRadius:4}});class q extends l.a.Component{constructor(e){super(e),this.state={gifLoadResult:{}}}render(){const{width:e,height:t,url:n}=this.state.gifLoadResult;return l.a.createElement(s.ScrollView,{style:G.container_style},l.a.createElement(s.Text,{style:G.info_style},"Contain:"),l.a.createElement(s.Image,{style:[G.image_style],resizeMode:s.Image.resizeMode.contain,defaultSource:N,source:{uri:U},onProgress:e=>{console.log("onProgress",e)},onLoadStart:()=>{console.log("image onloadStart")},onLoad:()=>{console.log("image onLoad")},onError:e=>{console.log("image onError",e)},onLoadEnd:()=>{console.log("image onLoadEnd")}}),l.a.createElement(s.Text,{style:G.info_style},"Cover:"),l.a.createElement(s.Image,{style:[G.image_style],defaultSource:N,source:{uri:U},resizeMode:s.Image.resizeMode.cover}),l.a.createElement(s.Text,{style:G.info_style},"Center:"),l.a.createElement(s.Image,{style:[G.image_style],defaultSource:N,source:{uri:U},resizeMode:s.Image.resizeMode.center}),l.a.createElement(s.Text,{style:G.info_style},"CapInsets:"),l.a.createElement(s.Image,{style:[G.image_style],defaultSource:N,source:{uri:U},capInsets:{top:50,left:50,bottom:50,right:50},resizeMode:s.Image.resizeMode.cover}),l.a.createElement(s.Text,{style:G.info_style},"TintColor:"),l.a.createElement(s.Image,{style:[G.image_style,{tintColor:"#4c9afa99"}],defaultSource:N,source:{uri:K},resizeMode:s.Image.resizeMode.center}),l.a.createElement(s.Text,{style:G.info_style},"Cover GIF:"),l.a.createElement(s.Image,{style:[G.image_style],resizeMode:s.Image.resizeMode.cover,defaultSource:N,source:{uri:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif"},onLoad:e=>{console.log("gif onLoad result: "+e);const{width:t,height:n,url:o}=e;this.setState({gifLoadResult:{width:t,height:n,url:o}})}}),l.a.createElement(s.Text,{style:G.img_result},`gifLoadResult: { width: ${e}, height: ${t}, url: ${n} }`))}}const Q=[{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}],Y=s.StyleSheet.create({container:{backgroundColor:"#fff",collapsable:!1},itemContainer:{padding:12},separatorLine:{marginLeft:12,marginRight:12,height:1,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}});function X({index:e}){return l.a.createElement(s.View,{style:Y.container,onClickCapture:e=>{console.log("onClickCapture style1",e.target.nodeId,e.currentTarget.nodeId)},onTouchDown:e=>(e.stopPropagation(),console.log("onTouchDown style1",e.target.nodeId,e.currentTarget.nodeId),!1),onClick:e=>(console.log("click style1",e.target.nodeId,e.currentTarget.nodeId),!1)},l.a.createElement(s.Text,{numberOfLines:1},e+": Style 1 UI"))}function J({index:e}){return l.a.createElement(s.View,{style:Y.container},l.a.createElement(s.Text,{numberOfLines:1},e+": Style 2 UI"))}function Z({index:e}){return l.a.createElement(s.View,{style:Y.container},l.a.createElement(s.Text,{numberOfLines:1},e+": Style 5 UI"))}class $ extends l.a.Component{constructor(e){super(e),this.state={dataSource:Q,fetchingDataFlag:!1,horizontal:void 0},this.delText="Delete",this.mockFetchData=this.mockFetchData.bind(this),this.getRenderRow=this.getRenderRow.bind(this),this.onEndReached=this.onEndReached.bind(this),this.getRowType=this.getRowType.bind(this),this.getRowKey=this.getRowKey.bind(this),this.getRowStyle=this.getRowStyle.bind(this),this.onDelete=this.onDelete.bind(this),this.onAppear=this.onAppear.bind(this),this.onDisappear=this.onDisappear.bind(this),this.onWillAppear=this.onWillAppear.bind(this),this.onWillDisappear=this.onWillDisappear.bind(this),this.rowShouldSticky=this.rowShouldSticky.bind(this),this.onScroll=this.onScroll.bind(this)}onDelete({index:e}){const{dataSource:t}=this.state,n=t.filter((t,n)=>e!==n);this.setState({dataSource:n})}async onEndReached(){const{dataSource:e,fetchingDataFlag:t}=this.state;if(t)return;this.setState({fetchingDataFlag:!0,dataSource:e.concat([{style:100}])});const n=await this.mockFetchData(),o=e.concat(n);this.setState({dataSource:o,fetchingDataFlag:!1})}onAppear(e){console.log("onAppear",e)}onScroll(e){console.log("onScroll",e.contentOffset.y),e.contentOffset.y<=0?this.topReached||(this.topReached=!0,console.log("onTopReached")):this.topReached=!1}onDisappear(e){console.log("onDisappear",e)}onWillAppear(e){console.log("onWillAppear",e)}onWillDisappear(e){console.log("onWillDisappear",e)}rowShouldSticky(e){return 2===e}getRowType(e){return this.state.dataSource[e].style}getRowStyle(){const{horizontal:e}=this.state;return e?{width:100,height:50}:{}}getRowKey(e){return"row-"+e}getRenderRow(e){const{dataSource:t}=this.state;let n=null;const o=t[e],r=t.length===e+1;switch(o.style){case 1:n=l.a.createElement(X,{index:e});break;case 2:n=l.a.createElement(J,{index:e});break;case 5:n=l.a.createElement(Z,{index:e});break;case 100:n=l.a.createElement(s.Text,{style:Y.loading},"Loading now...")}return l.a.createElement(s.View,{style:Y.container,onClickCapture:e=>{console.log("onClickCapture style outer",e.target.nodeId,e.currentTarget.nodeId)},onTouchDown:e=>(console.log("onTouchDown style outer",e.target.nodeId,e.currentTarget.nodeId),!1),onClick:e=>(console.log("click style outer",e.target.nodeId,e.currentTarget.nodeId),!1)},l.a.createElement(s.View,{style:Y.itemContainer},n),r?null:l.a.createElement(s.View,{style:Y.separatorLine}))}mockFetchData(){return new Promise(e=>{setTimeout(()=>e(Q),600)})}changeDirection(){this.setState({horizontal:void 0===this.state.horizontal||void 0})}render(){const{dataSource:e,horizontal:t}=this.state;return l.a.createElement(s.View,{style:{flex:1,collapsable:!1}},l.a.createElement(s.ListView,{onTouchDown:e=>{console.log("onTouchDown ListView",e.target.nodeId,e.currentTarget.nodeId)},onClickCapture:e=>{console.log("onClickCapture listview",e.target.nodeId,e.currentTarget.nodeId)},onClick:e=>(console.log("click listview",e.target.nodeId,e.currentTarget.nodeId),!0),bounces:!0,horizontal:t,style:[{backgroundColor:"#ffffff"},t?{height:50}:{flex:1}],numberOfRows:e.length,renderRow:this.getRenderRow,onEndReached:this.onEndReached,getRowType:this.getRowType,onDelete:this.onDelete,onMomentumScrollBegin:e=>console.log("onMomentumScrollBegin",e),onMomentumScrollEnd:e=>console.log("onMomentumScrollEnd",e),onScrollBeginDrag:e=>console.log("onScrollBeginDrag",e),onScrollEndDrag:e=>console.log("onScrollEndDrag",e),delText:this.delText,editable:!0,getRowStyle:this.getRowStyle,getRowKey:this.getRowKey,initialListSize:15,rowShouldSticky:this.rowShouldSticky,onAppear:this.onAppear,onDisappear:this.onDisappear,onWillAppear:this.onWillAppear,onWillDisappear:this.onWillDisappear,onScroll:this.onScroll,scrollEventThrottle:1e3}),l.a.createElement(s.View,{onClick:()=>this.changeDirection(),style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#4c9afa"}},l.a.createElement(s.View,{style:{width:60,height:60,borderRadius:30,backgroundColor:"#4c9afa",display:"flex",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{color:"white"}},"切换方向"))))}}const ee="#4c9afa",te="#4c9afa",ne="white",oe=s.StyleSheet.create({container:{flex:1,flexDirection:"column",justifyContent:"flex-start",alignItems:"center"},buttonView:{borderColor:ee,borderWidth:2,borderStyle:"solid",borderRadius:8,justifyContent:"center",alignItems:"center",width:250,height:50,marginTop:30},buttonText:{fontSize:20,color:ee,textAlign:"center",textAlignVertical:"center"},selectionText:{fontSize:20,textAlign:"center",textAlignVertical:"center",marginLeft:10,marginRight:10,padding:5,borderRadius:5,borderWidth:2}});class re extends l.a.Component{constructor(e){super(e),this.state={visible:!1,press:!1,animationType:"fade",immerseStatusBar:!1,hideStatusBar:!1,hideNavigationBar:!1},this.show=this.show.bind(this),this.hide=this.hide.bind(this)}feedback(e){this.setState({press:"in"===e})}show(){this.setState({visible:!0})}hide(){this.setState({visible:!1})}render(){const{press:e,visible:t}=this.state;return l.a.createElement(s.ScrollView,null,l.a.createElement(s.View,{style:oe.container},l.a.createElement(s.View,{onPressIn:()=>this.feedback("in"),onPressOut:()=>this.feedback("out"),onClick:this.show,style:[oe.buttonView,{borderColor:ee,opacity:e?.5:1}]},l.a.createElement(s.Text,{style:[oe.buttonText,{color:ee}]},"点击弹出浮层"))),l.a.createElement(s.View,{style:{flexDirection:"row",justifyContent:"center",marginTop:20}},l.a.createElement(s.Text,{onClick:()=>{this.setState({animationType:"fade"})},style:[oe.selectionText,{borderColor:"fade"===this.state.animationType?"red":ee},{color:"fade"===this.state.animationType?"red":ee}]},"fade"),l.a.createElement(s.Text,{onClick:()=>{this.setState({animationType:"slide"})},style:[oe.selectionText,{borderColor:"slide"===this.state.animationType?"red":ee},{color:"slide"===this.state.animationType?"red":ee}]},"slide"),l.a.createElement(s.Text,{onClick:()=>{this.setState({animationType:"slide_fade"})},style:[oe.selectionText,{borderColor:"slide_fade"===this.state.animationType?"red":ee},{color:"slide_fade"===this.state.animationType?"red":ee}]},"slide_fade")),l.a.createElement(s.View,{style:{flexDirection:"row",justifyContent:"center",marginTop:20}},l.a.createElement(s.Text,{onClick:()=>{this.setState({hideStatusBar:!this.state.hideStatusBar})},style:[oe.selectionText,{borderColor:this.state.hideStatusBar?"red":ee},{color:this.state.hideStatusBar?"red":ee}]},"autoHideStatusBar")),l.a.createElement(s.View,{style:{flexDirection:"row",justifyContent:"center",marginTop:20}},l.a.createElement(s.Text,{onClick:()=>{this.setState({immerseStatusBar:!this.state.immerseStatusBar})},style:[oe.selectionText,{borderColor:this.state.immerseStatusBar?"red":ee},{color:this.state.immerseStatusBar?"red":ee}]},"immersionStatusBar")),l.a.createElement(s.View,{style:{flexDirection:"row",justifyContent:"center",marginTop:20}},l.a.createElement(s.Text,{onClick:()=>{this.setState({hideNavigationBar:!this.state.hideNavigationBar})},style:[oe.selectionText,{borderColor:this.state.hideNavigationBar?"red":ee},{color:this.state.hideNavigationBar?"red":ee}]},"autoHideNavigationBar")),l.a.createElement(s.Modal,{transparent:!0,animationType:this.state.animationType,visible:t,onShow:()=>{console.log("modal show")},requestClose:()=>{},orientationChange:e=>{console.log("orientation changed",e.orientation)},supportedOrientations:["portrait"],immersionStatusBar:this.state.immerseStatusBar,autoHideStatusBar:this.state.hideStatusBar,autoHideNavigationBar:this.state.hideNavigationBar},l.a.createElement(s.View,{style:{flex:1,flexDirection:"row",justifyContent:"center",backgroundColor:"#4c9afa88"}},l.a.createElement(s.View,{onClick:this.hide,style:{width:200,height:200,backgroundColor:te,marginTop:300,flexDirection:"row",justifyContent:"center"}},l.a.createElement(s.Text,{style:{color:ne,fontSize:22,marginTop:80}},"点击关闭浮层")))))}}const ie="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",ae={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[ie,ie,ie],subInfo:["三图评论","11评"]}},le={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},se={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}};var ce=[se,ae,le,ae,le,ae,le,se,ae],he=n("./node_modules/@babel/runtime/helpers/extends.js"),ue=n.n(he);var de={getScreenWidth(){const e=s.Dimensions.get("screen").width,t=s.Dimensions.get("screen").height,n=e>t?t:e;return Math.floor(n)},uniqueArray(e){const t=[];for(let n=0;n=812&&s.PixelRatio.get()>=2&&(e=!0),e}};const me=(de.getScreenWidth()-24-12)/3,ge=Math.floor(me/1.35),fe=s.StyleSheet.create({imageContainer:{flexDirection:"row",justifyContent:"center",height:ge,marginTop:8},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},image:{width:me,height:ge},title:{fontSize:"android"===s.Platform.OS?17:18,lineHeight:24,color:"#242424"},tagLine:{marginTop:8,height:20,flexDirection:"row",justifyContent:"flex-start"}});function ye(e){const{itemBean:{title:t,picList:n}}=e;let{itemBean:{subInfo:o}}=e,r=null;if(o&&o.length){o=de.uniqueArray(o);const e=o.join(" ");r=l.a.createElement(s.Text,{style:fe.normalText,numberOfLines:1},e)}return l.a.createElement(s.View,ue()({},e,{style:{collapsable:!1}}),l.a.createElement(s.Text,{style:[fe.title],numberOfLines:2,enableScale:!0},t),l.a.createElement(s.View,{style:fe.imageContainer},l.a.createElement(s.Image,{style:fe.image,source:{uri:n[0]},resizeMode:s.Image.resizeMode.cover}),l.a.createElement(s.Image,{style:[fe.image,{marginLeft:6,marginRight:6}],source:{uri:n[1]},resizeMode:s.Image.resizeMode.cover}),l.a.createElement(s.Image,{style:fe.image,source:{uri:n[2]},resizeMode:s.Image.resizeMode.cover})),r?l.a.createElement(s.View,{style:fe.tagLine},r):null)}const pe=de.getScreenWidth()-24,be=Math.floor(pe-12)/3,we=Math.floor(be/1.35),xe=s.StyleSheet.create({container:{flexDirection:"row",justifyContent:"space-between",height:we},leftContainer:{flex:1,flexDirection:"column",justifyContent:"center",marginRight:8},imageContainer:{width:be,height:we},image:{width:be,height:we},title:{fontSize:"android"===s.Platform.OS?17:18,lineHeight:24},tagLine:{marginTop:8,height:20,flexDirection:"row",justifyContent:"flex-start"},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}});function Se(e){if("undefined"===e)return null;const{itemBean:t}=e;if(!t)return null;let n=null;const{title:o,picUrl:r}=t;let{subInfo:i}=t;if(i&&i.length){i=de.uniqueArray(i);const e=i.join(" ");n=l.a.createElement(s.Text,{style:xe.normalText,numberOfLines:1},e)}return l.a.createElement(s.View,ue()({},e,{style:xe.container}),l.a.createElement(s.View,{style:xe.leftContainer},l.a.createElement(s.Text,{style:xe.title,numberOfLines:2,enableScale:!0},o),n?l.a.createElement(s.View,{style:xe.tagLine},n):null),l.a.createElement(s.View,{style:xe.imageContainer},l.a.createElement(s.Image,{resizeMode:s.Image.resizeMode.cover,style:xe.image,source:{uri:r}})))}const Ee=de.getScreenWidth()-24,Te=Math.floor(188*Ee/336),Ce=s.StyleSheet.create({text:{fontSize:"android"===s.Platform.OS?17:18,lineHeight:24,color:"#242424"},playerView:{marginTop:8,alignItems:"center",width:Ee,height:Te,alignSelf:"center"},image:{width:Ee,height:Te},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},tagLine:{marginTop:8,flexDirection:"row",justifyContent:"space-between",alignItems:"center"}});function Ae(e){if("undefined"===e)return null;const{itemBean:t}=e;if(!t)return null;const{title:n,picUrl:o}=t;let{subInfo:r}=t,i=null;if(r&&r.length){r=de.uniqueArray(r);const e=r.join(" ");i=l.a.createElement(s.Text,{style:Ce.normalText,numberOfLines:1},e)}return l.a.createElement(s.View,e,l.a.createElement(s.Text,{style:Ce.text,numberOfLines:2,enableScale:!0},n),l.a.createElement(s.View,{style:Ce.playerView},l.a.createElement(s.Image,{style:Ce.image,source:{uri:o},resizeMode:s.Image.resizeMode.cover})),i?l.a.createElement(s.View,{style:Ce.tagLine},i):null)}const ve=s.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},spliter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}});class Re extends l.a.Component{constructor(e){super(e),this.state={dataSource:[],loadingState:"正在加载..."},this.fetchTimes=0,this.mockFetchData=this.mockFetchData.bind(this),this.onRefresh=this.onRefresh.bind(this),this.getRefresh=this.getRefresh.bind(this),this.getRenderRow=this.getRenderRow.bind(this),this.onEndReached=this.onEndReached.bind(this),this.getRowType=this.getRowType.bind(this),this.getRowKey=this.getRowKey.bind(this)}async componentDidMount(){const e=await this.mockFetchData();this.setState({dataSource:e})}async onEndReached(){const{dataSource:e,fetchingDataFlag:t}=this.state;if(t)return;this.setState({fetchingDataFlag:!0,dataSource:e.concat([{style:100}])});const n=await this.mockFetchData(),o=e[e.length-1];o&&100===o.style&&e.pop();const r=e.concat(n);this.setState({dataSource:r})}onRefresh(){setTimeout(async()=>{const e=await this.mockFetchData();this.setState({dataSource:e}),this.refresh.refreshComplected()},1e3)}onClickItem(e){console.log(`item: ${e} is clicked..`)}getRenderRow(e){const{dataSource:t,loadingState:n}=this.state;let o=null;const r=t[e],i=t.length===e+1;switch(r.style){case 1:o=l.a.createElement(ye,{itemBean:r.itemBean,onClick:()=>this.onClickItem(e)});break;case 2:o=l.a.createElement(Se,{itemBean:r.itemBean,onClick:()=>this.onClickItem(e)});break;case 5:o=l.a.createElement(Ae,{itemBean:r.itemBean,onClick:()=>this.onClickItem(e)});break;case 100:o=l.a.createElement(s.Text,{style:ve.loading},n)}return l.a.createElement(s.View,{style:ve.container},l.a.createElement(s.View,{style:ve.itemContainer},o),i?null:l.a.createElement(s.View,{style:ve.spliter}))}getRowType(e){return this.state.dataSource[e].style}getRowKey(e){return"row-"+e}getRefresh(){return l.a.createElement(s.View,{style:{flex:1,height:30}},l.a.createElement(s.Text,{style:{flex:1,textAlign:"center"}},"下拉刷新中..."))}mockFetchData(){return new Promise(e=>{setTimeout(()=>(this.setState({fetchingDataFlag:!1}),this.fetchTimes+=1,this.fetchTimes>=50?e([]):e(ce)),600)})}render(){const{dataSource:e}=this.state;return l.a.createElement(s.RefreshWrapper,{ref:e=>{this.refresh=e},style:{flex:1},onRefresh:this.onRefresh,bounceTime:100,getRefresh:this.getRefresh},l.a.createElement(s.ListView,{style:{flex:1,backgroundColor:"#ffffff"},numberOfRows:e.length,renderRow:this.getRenderRow,onEndReached:this.onEndReached,getRowType:this.getRowType,getRowKey:this.getRowKey}))}}const Ve=s.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},splitter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},pullContainer:{flex:1,height:50,backgroundColor:"#4c9afa"},pullContent:{lineHeight:50,color:"white",height:50,textAlign:"center"},pullFooter:{height:40,flex:1,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}});class ke extends l.a.Component{constructor(e){super(e),this.state={dataSource:[],headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",horizontal:void 0},this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.mockFetchData=this.mockFetchData.bind(this),this.renderRow=this.renderRow.bind(this),this.getRowType=this.getRowType.bind(this),this.getRowKey=this.getRowKey.bind(this),this.getHeaderStyle=this.getHeaderStyle.bind(this),this.getFooterStyle=this.getFooterStyle.bind(this),this.getRowStyle=this.getRowStyle.bind(this),this.renderPullHeader=this.renderPullHeader.bind(this),this.renderPullFooter=this.renderPullFooter.bind(this),this.onEndReached=this.onEndReached.bind(this),this.onHeaderReleased=this.onHeaderReleased.bind(this),this.onHeaderPulling=this.onHeaderPulling.bind(this),this.onFooterPulling=this.onFooterPulling.bind(this)}async componentDidMount(){const e=await this.mockFetchData();this.setState({dataSource:e}),this.listView.collapsePullHeader()}mockFetchData(){return new Promise(e=>{setTimeout(()=>e(ce),800)})}async onEndReached(){const{dataSource:e}=this.state;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.setState({footerRefreshText:"加载更多..."});let t=[];try{t=await this.mockFetchData()}catch(e){}0===t.length&&this.setState({footerRefreshText:"没有更多数据"});const n=[...e,...t];this.setState({dataSource:n}),this.loadMoreDataFlag=!1,this.listView.collapsePullFooter()}async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.setState({headerRefreshText:"刷新数据中,请稍等"});let e=[];try{e=await this.mockFetchData(),e=e.reverse()}catch(e){}this.fetchingDataFlag=!1,this.setState({dataSource:e,headerRefreshText:"2秒后收起"},()=>{this.listView.collapsePullHeader({time:2e3})})}onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>Ve.pullContent.height?this.setState({headerRefreshText:"松手,即可触发刷新"}):this.setState({headerRefreshText:"继续下拉,触发刷新"}))}onFooterPulling(e){console.log("onFooterPulling",e)}onClickItem(e,t){console.log(`item: ${e} is clicked..`,t.target.nodeId,t.currentTarget.nodeId)}getRowType(e){return this.state.dataSource[e].style}getRowKey(e){return"row-"+e}getHeaderStyle(){const{horizontal:e}=this.state;return e?{width:50}:{}}renderPullHeader(){const{headerRefreshText:e,horizontal:t}=this.state;return t?l.a.createElement(s.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{lineHeight:25,color:"white",width:40,paddingHorizontal:15}},e)):l.a.createElement(s.View,{style:Ve.pullContainer},l.a.createElement(s.Text,{style:Ve.pullContent},e))}getFooterStyle(){const{horizontal:e}=this.state;return e?{width:40}:{}}renderPullFooter(){const{horizontal:e}=this.state;return e?l.a.createElement(s.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{color:"white",lineHeight:25,width:40,paddingHorizontal:15}},this.state.footerRefreshText)):l.a.createElement(s.View,{style:Ve.pullFooter},l.a.createElement(s.Text,{style:{color:"white"}},this.state.footerRefreshText))}renderRow(e){const{dataSource:t}=this.state;let n=null;const o=t[e],r=t.length===e+1;switch(o.style){case 1:n=l.a.createElement(ye,{itemBean:o.itemBean,onClick:t=>this.onClickItem(e,t)});break;case 2:n=l.a.createElement(Se,{itemBean:o.itemBean,onClick:t=>this.onClickItem(e,t)});break;case 5:n=l.a.createElement(Ae,{itemBean:o.itemBean,onClick:t=>this.onClickItem(e,t)})}return l.a.createElement(s.View,{style:Ve.container},l.a.createElement(s.View,{style:Ve.itemContainer},n),r?null:l.a.createElement(s.View,{style:Ve.splitter}))}getRowStyle(){const{horizontal:e}=this.state;return e?{height:300,justifyContent:"center",alignItems:"center"}:{}}changeDirection(){this.setState({horizontal:void 0===this.state.horizontal||void 0})}render(){const{dataSource:e,horizontal:t}=this.state;return l.a.createElement(s.View,{style:{flex:1,collapsable:!1}},l.a.createElement(s.ListView,{horizontal:t,onClick:e=>console.log("ListView",e.target.nodeId,e.currentTarget.nodeId),ref:e=>{this.listView=e},style:[{backgroundColor:"#ffffff"},t?{height:300}:{flex:1}],numberOfRows:e.length,getRowType:this.getRowType,getRowKey:this.getRowKey,getHeaderStyle:this.getHeaderStyle,getFooterStyle:this.getFooterStyle,getRowStyle:this.getRowStyle,renderRow:this.renderRow,renderPullHeader:this.renderPullHeader,renderPullFooter:this.renderPullFooter,onHeaderReleased:this.onHeaderReleased,onHeaderPulling:this.onHeaderPulling,onFooterReleased:this.onEndReached,onFooterPulling:this.onFooterPulling,rowShouldSticky:e=>0===e}),"android"===s.Platform.OS?l.a.createElement(s.View,{onClick:()=>this.changeDirection(),style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#4c9afa"}},l.a.createElement(s.View,{style:{width:60,height:60,borderRadius:30,backgroundColor:"#4c9afa",display:"flex",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{color:"white"}},"切换方向"))):null)}}const Ie=s.StyleSheet.create({itemStyle:{width:100,height:100,lineHeight:100,borderWidth:1,borderStyle:"solid",borderColor:"#4c9afa",fontSize:80,margin:20,color:"#4c9afa",textAlign:"center"},verticalScrollView:{height:300,width:140,margin:20,borderColor:"#eee",borderWidth:1,borderStyle:"solid"},itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10}});function Oe(){return l.a.createElement(s.ScrollView,null,l.a.createElement(s.View,{style:Ie.itemTitle},l.a.createElement(s.Text,null,"Horizontal ScrollView")),l.a.createElement(s.View,null,l.a.createElement(s.ScrollView,{horizontal:!0,bounces:!0,showsHorizontalScrollIndicator:!1,showScrollIndicator:!1,onScroll:e=>console.log("onScroll",e),onMomentumScrollBegin:e=>console.log("onMomentumScrollBegin",e),onMomentumScrollEnd:e=>console.log("onMomentumScrollEnd",e),onScrollBeginDrag:e=>console.log("onScrollBeginDrag",e),onScrollEndDrag:e=>console.log("onScrollEndDrag",e)},l.a.createElement(s.Text,{style:Ie.itemStyle},"A"),l.a.createElement(s.Text,{style:Ie.itemStyle},"B"),l.a.createElement(s.Text,{style:Ie.itemStyle},"C"),l.a.createElement(s.Text,{style:Ie.itemStyle},"D"),l.a.createElement(s.Text,{style:Ie.itemStyle},"E"),l.a.createElement(s.Text,{style:Ie.itemStyle},"F"),l.a.createElement(s.Text,{style:Ie.itemStyle},"A"))),l.a.createElement(s.View,{style:Ie.itemTitle},l.a.createElement(s.Text,null,"Vertical ScrollView")),l.a.createElement(s.ScrollView,{bounces:!0,horizontal:!1,style:Ie.verticalScrollView,showScrollIndicator:!1,showsVerticalScrollIndicator:!1},l.a.createElement(s.Text,{style:Ie.itemStyle},"A"),l.a.createElement(s.Text,{style:Ie.itemStyle},"B"),l.a.createElement(s.Text,{style:Ie.itemStyle},"C"),l.a.createElement(s.Text,{style:Ie.itemStyle},"D"),l.a.createElement(s.Text,{style:Ie.itemStyle},"E"),l.a.createElement(s.Text,{style:Ie.itemStyle},"F"),l.a.createElement(s.Text,{style:Ie.itemStyle},"A")))}const De="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEXRSTlMA9QlZEMPc2Mmmj2VkLEJ4Rsx+pEgAAAChSURBVCjPjVLtEsMgCDOAdbbaNu//sttVPes+zvGD8wgQCLp/TORbUGMAQtQ3UBeSAMlF7/GV9Cmb5eTJ9R7H1t4bOqLE3rN2UCvvwpLfarhILfDjJL6WRKaXfzxc84nxAgLzCGSGiwKwsZUB8hPorZwUV1s1cnGKw+yAOrnI+7hatNIybl9Q3OkBfzopCw6SmDVJJiJ+yD451OS0/TNM7QnuAAbvCG0TSAAAAABJRU5ErkJggg==",Pe="https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",je=s.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},itemContent:{alignItems:"flex-start",justifyContent:"center",borderWidth:1,borderStyle:"solid",borderRadius:2,borderColor:"#e0e0e0",backgroundColor:"#ffffff",padding:10},normalText:{fontSize:14,lineHeight:18,color:"black",fontWeight:"normal"},buttonBar:{flexDirection:"row",marginTop:10,flexGrow:1},button:{height:24,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",flexGrow:1,flexShrink:1,justifyContent:"center"},buttonText:{lineHeight:24,textAlign:"center",paddingHorizontal:20},customFont:{color:"#0052d9",fontSize:32,fontFamily:"TTTGB"}});let Le=0;class Be extends l.a.Component{constructor(e){super(e),this.state={fontSize:16,fontWeight:"400",textShadowColor:"grey",textShadowOffset:{x:1,y:1},scrollColor:"gray",numberOfLines:2,ellipsizeMode:void 0},this.incrementFontSize=this.incrementFontSize.bind(this),this.decrementFontSize=this.decrementFontSize.bind(this),this.incrementFontWeight=this.incrementFontWeight.bind(this),this.decrementFontWeight=this.decrementFontWeight.bind(this),this.incrementLine=this.incrementLine.bind(this),this.decrementLine=this.decrementLine.bind(this),this.changeMode=this.changeMode.bind(this),this.changeColor=this.changeColor.bind(this)}incrementFontWeight(){const{fontWeight:e}=this.state;if("1000"!=e){var t=parseInt(e,10);t+=100,this.setState({fontWeight:t.toString()})}}decrementFontWeight(){const{fontWeight:e}=this.state;if("100"!==e){var t=parseInt(e,10);t-=100,this.setState({fontWeight:t.toString()})}}incrementFontSize(){const{fontSize:e}=this.state;24!==e&&this.setState({fontSize:e+1})}decrementFontSize(){const{fontSize:e}=this.state;6!==e&&this.setState({fontSize:e-1})}incrementLine(){const{numberOfLines:e}=this.state;e<6&&this.setState({numberOfLines:e+1})}decrementLine(){const{numberOfLines:e}=this.state;e>1&&this.setState({numberOfLines:e-1})}changeMode(e){this.setState({ellipsizeMode:e})}changeColor(){this.setState({scrollColor:"red"})}changeBreakStrategy(e){this.setState({breakStrategy:e})}render(){const{fontSize:e,fontWeight:t,textShadowColor:n,textShadowOffset:o,numberOfLines:r,ellipsizeMode:i,breakStrategy:a,scrollColor:c}=this.state,h=e=>l.a.createElement(s.View,{style:je.itemTitle},l.a.createElement(s.Text,{style:!0},e));return l.a.createElement(s.ScrollView,{style:{padding:10,color:c,fontFamily:"TTTGB"}},h("shadow"),l.a.createElement(s.View,{style:[je.itemContent,{height:60}],onClick:()=>{let e="red",t={x:10,y:1};Le%2==1&&(e="grey",t={x:1,y:1}),Le+=1,this.setState({textShadowColor:e,textShadowOffset:t})}},l.a.createElement(s.Text,{style:[je.normalText,{color:"#242424",textShadowOffset:o,textShadowRadius:3,textShadowColor:n}]},"Text shadow is grey with radius 3 and offset 1")),h("color"),l.a.createElement(s.View,{style:[je.itemContent,{height:80}]},l.a.createElement(s.Text,{style:[je.normalText,{color:"#242424"}]},"Text color is black"),l.a.createElement(s.Text,{style:[je.normalText,{color:"blue"}]},"Text color is blue"),l.a.createElement(s.Text,{style:[je.normalText,{color:"rgb(228,61,36)"}]},"This is red")),h("fontSize"),l.a.createElement(s.View,{style:[je.itemContent,{height:125,color:"blue",fontFamily:"not-support-fontstyle"}]},l.a.createElement(s.Text,{style:[je.normalText,{fontSize:e}]},"Text fontSize is "+e),l.a.createElement(s.View,{style:je.button,onClick:this.changeColor},l.a.createElement(s.Text,{style:je.buttonText},"切换字体颜色")),l.a.createElement(s.View,{style:je.button,onClick:this.incrementFontSize},l.a.createElement(s.Text,{style:je.buttonText},"放大字体")),l.a.createElement(s.View,{style:je.button,onClick:this.decrementFontSize},l.a.createElement(s.Text,{style:je.buttonText},"缩小字体"))),h("fontWeight"),l.a.createElement(s.View,{style:[je.itemContent,{height:125,color:"blue",fontFamily:"not-support-fontstyle"}]},l.a.createElement(s.Text,{style:[je.normalText,{fontWeight:t}]},"Text fontWeight is "+t),l.a.createElement(s.View,{style:je.button,onClick:this.incrementFontWeight},l.a.createElement(s.Text,{style:je.buttonText},"加粗字体")),l.a.createElement(s.View,{style:je.button,onClick:this.decrementFontWeight},l.a.createElement(s.Text,{style:je.buttonText},"减细字体"))),h("fontStyle"),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{style:[je.normalText,{fontStyle:"normal"}]},"Text fontStyle is normal"),l.a.createElement(s.Text,{style:[je.normalText,{fontStyle:"italic"}]},"Text fontStyle is italic")),h("numberOfLines and ellipsizeMode"),l.a.createElement(s.View,{style:[je.itemContent]},l.a.createElement(s.Text,{style:[je.normalText,{marginBottom:10}]},`numberOfLines=${r} | ellipsizeMode=${i}`),l.a.createElement(s.Text,{numberOfLines:r,ellipsizeMode:i,style:[je.normalText,{lineHeight:void 0,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Text,{style:{fontSize:19,color:"white"}},"先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。"),l.a.createElement(s.Text,null,"然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")),l.a.createElement(s.Text,{numberOfLines:r,ellipsizeMode:i,style:[je.normalText,{backgroundColor:"#4c9afa",marginBottom:10,color:"white",paddingHorizontal:10,paddingVertical:5}]},"line 1\n\nline 3\n\nline 5"),l.a.createElement(s.Text,{numberOfLines:r,ellipsizeMode:i,style:[je.normalText,{lineHeight:void 0,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5,verticalAlign:"middle"}]},l.a.createElement(s.Image,{style:{width:24,height:24},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24},source:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEnRSTlMA/QpX7WQU2m27pi3Ej9KEQXaD5HhjAAAAqklEQVQoz41SWxLDIAh0RcFXTHL/yzZSO01LMpP9WJEVUNA9gfdXTioCSKE/kQQTQmf/ArRYva+xAcuPP37seFII2L7FN4BmXdHzlEPIpDHiZ0A7eIViPcw2QwqipkvMSdNEFBUE1bmMNOyE7FyFaIkAP4jHhhG80lvgkzBODTKpwhRMcexuR7fXzcp08UDq6GRbootp4oRtO3NNpd4NKtnR9hB6oaefweIFQU0EfnGDRoQAAAAASUVORK5CYII="}}),l.a.createElement(s.Text,null,"Text + Attachment")),l.a.createElement(s.View,{style:je.buttonBar},l.a.createElement(s.View,{style:je.button,onClick:this.incrementLine},l.a.createElement(s.Text,{style:je.buttonText},"加一行")),l.a.createElement(s.View,{style:je.button,onClick:this.decrementLine},l.a.createElement(s.Text,{style:je.buttonText},"减一行"))),l.a.createElement(s.View,{style:je.buttonBar},l.a.createElement(s.View,{style:je.button,onClick:()=>this.changeMode("clip")},l.a.createElement(s.Text,{style:je.buttonText},"clip")),l.a.createElement(s.View,{style:je.button,onClick:()=>this.changeMode("head")},l.a.createElement(s.Text,{style:je.buttonText},"head")),l.a.createElement(s.View,{style:je.button,onClick:()=>this.changeMode("middle")},l.a.createElement(s.Text,{style:je.buttonText},"middle")),l.a.createElement(s.View,{style:je.button,onClick:()=>this.changeMode("tail")},l.a.createElement(s.Text,{style:je.buttonText},"tail")))),h("textDecoration"),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[je.normalText,{textDecorationLine:"underline",textDecorationStyle:"dotted"}]},"underline"),l.a.createElement(s.Text,{numberOfLines:1,style:[je.normalText,{textDecorationLine:"line-through",textDecorationColor:"red"}]},"line-through")),h("LetterSpacing"),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[je.normalText,{letterSpacing:-1}]},"Text width letter-spacing -1"),l.a.createElement(s.Text,{numberOfLines:1,style:[je.normalText,{letterSpacing:5}]},"Text width letter-spacing 5")),h("Nest Text"),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:3},l.a.createElement(s.Text,{numberOfLines:3,style:[je.normalText,{color:"#4c9afa"}]},"#SpiderMan#"),l.a.createElement(s.Text,{numberOfLines:3,style:je.normalText},"Hello world, I am a spider man and I have five friends in other universe."))),h("Custom font"),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:je.customFont},"Hippy 跨端框架")),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[je.customFont,{fontWeight:"bold"}]},"Hippy 跨端框架 粗体")),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[je.customFont,{fontStyle:"italic"}]},"Hippy 跨端框架 斜体")),l.a.createElement(s.View,{style:[je.itemContent,{height:100}]},l.a.createElement(s.Text,{numberOfLines:1,style:[je.customFont,{fontWeight:"bold",fontStyle:"italic"}]},"Hippy 跨端框架 粗斜体")),h("Text Nested"),l.a.createElement(s.View,{style:[je.itemContent,{height:150}]},l.a.createElement(s.Text,{style:{height:100,lineHeight:50}},l.a.createElement(s.Text,{numberOfLines:1,style:je.normalText},"后面有张图片"),l.a.createElement(s.Image,{style:{width:70,height:35},source:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAAtCAMAAABmgJ64AAAAOVBMVEX/Rx8AAAD/QiL/Tif/QyH/RR//QiH/QiP/RCD/QSL/Qxz/QyH/QiL/QiD/QyL/QiL/QiH/QyH/QiLwirLUAAAAEnRSTlMZAF4OTC7DrWzjI4iietrRk0EEv/0YAAAB0UlEQVRYw72Y0Y6sIAxAKwUFlFH7/x97izNXF2lN1pU5D800jD2hJAJCdwYZuAUyVbmToKh903IhQHgErAVH+ccV0KI+G2oBPMxJgPA4WAigAT8F0IRDgNAE3ARyfeMFDGSc3YHVFkTBAHKDAgkEyHjacae/GTjxFqAo8NbakXrL9DRy9B+BCQwRcXR9OBKmEuAmAFFgcy0agBnIc1xZsMPOI5loAoUsQFmQjDEL9YbpaeGYBMGRKKAuqFEFL/JXApCw/zFEZk9qgbLGBx0gXLISxT25IUBREEgh1II1fph/IViGnZnCcDDVAgfgVg6gCy6ZaClySbDQpAl04vCGaB4+xGcFRK8CLvW0IBb5bQGqAlNwU4C6oEIVTLTcmoEr0AWcpKsZ/H0NAtkLQffnFjkOqiC/TTWBL9AFCwXQBHgI7rXImMgjCZwFa50s6DRBXyALmIECuMASiWNPFgRTgSJwM+XW8PDCmbwndzdaNL8FMYXPNjASDVChnIvWlBI/MKadPV952HszbmXtRERhhQ0vGFA52SVSSVt7MjHvxfRK8cdTpqovn02dUcltMrwiKf+wQ1FxXKCk9en6e/eDNnP44h2thQEb35O/etNv/q3iHza+KuhqqhZAAAAAAElFTkSuQmCC"}}),l.a.createElement(s.Text,{numberOfLines:1,style:je.customFont},"前面有张图片")),l.a.createElement(s.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"center",paddingHorizontal:10,paddingVertical:5,backgroundColor:"#4c9afa"}},l.a.createElement(s.Image,{style:{width:24,height:24,alignSelf:"center"},source:{uri:De}}),l.a.createElement(s.Text,{style:{fontSize:15,alignItems:"center",justifyContent:"center"}},"Image+Text"))),"android"===s.Platform.OS&&h("breakStrategy"),"android"===s.Platform.OS&&l.a.createElement(s.View,{style:je.itemContent},l.a.createElement(s.Text,{style:[je.normalText,{borderWidth:1,borderColor:"gray"}],breakStrategy:a},"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales."),l.a.createElement(s.Text,{style:je.normalText},"breakStrategy: "+a),l.a.createElement(s.View,{style:je.buttonBar},l.a.createElement(s.View,{style:je.button,onClick:()=>this.changeBreakStrategy("simple")},l.a.createElement(s.Text,{style:je.buttonText},"simple")),l.a.createElement(s.View,{style:je.button,onClick:()=>this.changeBreakStrategy("high_quality")},l.a.createElement(s.Text,{style:je.buttonText},"high_quality")),l.a.createElement(s.View,{style:je.button,onClick:()=>this.changeBreakStrategy("balanced")},l.a.createElement(s.Text,{style:je.buttonText},"balanced")))),h("verticalAlign"),l.a.createElement(s.View,{style:[je.itemContent,{height:"android"===s.Platform.OS?160:70}]},l.a.createElement(s.Text,{style:[je.normalText,{lineHeight:50,backgroundColor:"#4c9afa",paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"top"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:18,height:12,verticalAlign:"middle"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:12,verticalAlign:"baseline"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:36,height:24,verticalAlign:"bottom"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"top"},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:18,height:12,verticalAlign:"middle"},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:24,height:12,verticalAlign:"baseline"},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:36,height:24,verticalAlign:"bottom"},source:{uri:Pe}}),l.a.createElement(s.Text,{style:{fontSize:16,verticalAlign:"top"}},"字"),l.a.createElement(s.Text,{style:{fontSize:16,verticalAlign:"middle"}},"字"),l.a.createElement(s.Text,{style:{fontSize:16,verticalAlign:"baseline"}},"字"),l.a.createElement(s.Text,{style:{fontSize:16,verticalAlign:"bottom"}},"字")),"android"===s.Platform.OS&&l.a.createElement(l.a.Fragment,null,l.a.createElement(s.Text,null,"legacy mode:"),l.a.createElement(s.Text,{style:[je.normalText,{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:0},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:18,height:12,verticalAlignment:1},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:12,verticalAlignment:2},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:36,height:24,verticalAlignment:3},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,top:-10},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:18,height:12,top:-5},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:24,height:12},source:{uri:Pe}}),l.a.createElement(s.Image,{style:{width:36,height:24,top:3},source:{uri:Pe}}),l.a.createElement(s.Text,{style:{fontSize:16}},"字"),l.a.createElement(s.Text,{style:{fontSize:16}},"字"),l.a.createElement(s.Text,{style:{fontSize:16}},"字"),l.a.createElement(s.Text,{style:{fontSize:16}},"字")))),h("tintColor & backgroundColor"),l.a.createElement(s.View,{style:[je.itemContent]},l.a.createElement(s.Text,{style:[je.normalText,{lineHeight:30,backgroundColor:"#4c9afa",paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"middle",tintColor:"orange"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"middle",tintColor:"orange",backgroundColor:"#ccc"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"middle",backgroundColor:"#ccc"},source:{uri:De}}),l.a.createElement(s.Text,{style:{verticalAlign:"middle",backgroundColor:"#090"}},"text")),"android"===s.Platform.OS&&l.a.createElement(l.a.Fragment,null,l.a.createElement(s.Text,null,"legacy mode:"),l.a.createElement(s.Text,{style:[je.normalText,{lineHeight:30,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,tintColor:"orange"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,tintColor:"orange",backgroundColor:"#ccc"},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,backgroundColor:"#ccc"},source:{uri:De}})))),h("margin"),l.a.createElement(s.View,{style:[je.itemContent]},l.a.createElement(s.Text,{style:[{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"top",backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"middle",backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"baseline",backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlign:"bottom",backgroundColor:"#ccc",margin:5},source:{uri:De}})),"android"===s.Platform.OS&&l.a.createElement(l.a.Fragment,null,l.a.createElement(s.Text,null,"legacy mode:"),l.a.createElement(s.Text,{style:[je.normalText,{lineHeight:50,backgroundColor:"#4c9afa",marginBottom:10,paddingHorizontal:10,paddingVertical:5}]},l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:0,backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:1,backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:2,backgroundColor:"#ccc",margin:5},source:{uri:De}}),l.a.createElement(s.Image,{style:{width:24,height:24,verticalAlignment:3,backgroundColor:"#ccc",margin:5},source:{uri:De}})))))}}const Me=s.StyleSheet.create({container_style:{padding:10},input_style:{width:300,marginVertical:10,fontSize:16,color:"#242424",height:30,lineHeight:30},input_style_block:{height:100,lineHeight:20,fontSize:15,borderWidth:1,borderColor:"gray",underlineColorAndroid:"transparent"},itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},itemContent:{marginTop:10},buttonBar:{flexDirection:"row",marginTop:10,flexGrow:1},button:{width:200,height:24,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",marginTop:5,marginBottom:5,flexGrow:1,flexShrink:1}});class Fe extends a.Component{constructor(e){super(e),this.state={textContent:""},this.changeInputContent=this.changeInputContent.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this)}changeInputContent(){this.setState({textContent:"当前时间毫秒:"+Date.now()})}focus(){this.input.focus()}blur(){this.input.blur()}async onFocus(){const e=await this.input.isFocused();this.setState({event:"onFocus",isFocused:e})}async onBlur(){const e=await this.input.isFocused();this.setState({event:"onBlur",isFocused:e})}changeBreakStrategy(e){this.setState({breakStrategy:e})}render(){const{textContent:e,event:t,isFocused:n,breakStrategy:o}=this.state,r=e=>l.a.createElement(s.View,{style:Me.itemTitle},l.a.createElement(s.Text,null,e));return l.a.createElement(s.ScrollView,{style:Me.container_style},r("text"),l.a.createElement(s.TextInput,{ref:e=>{this.input=e},style:Me.input_style,caretColor:"yellow",underlineColorAndroid:"grey",placeholderTextColor:"#4c9afa",placeholder:"text",defaultValue:e,onBlur:()=>this.onBlur(),onFocus:()=>this.onFocus()}),l.a.createElement(s.Text,{style:Me.itemContent},`事件: ${t} | isFocused: ${n}`),l.a.createElement(s.View,{style:Me.button,onClick:this.changeInputContent},l.a.createElement(s.Text,null,"点击改变输入框内容")),l.a.createElement(s.View,{style:Me.button,onClick:this.focus},l.a.createElement(s.Text,null,"Focus")),l.a.createElement(s.View,{style:Me.button,onClick:this.blur},l.a.createElement(s.Text,null,"Blur")),r("numeric"),l.a.createElement(s.TextInput,{style:Me.input_style,keyboardType:"numeric",placeholder:"numeric"}),r("phone-pad"),l.a.createElement(s.TextInput,{style:Me.input_style,keyboardType:"phone-pad",placeholder:"phone-pad"}),r("password"),l.a.createElement(s.TextInput,{style:Me.input_style,keyboardType:"password",placeholder:"Password",multiline:!1}),r("maxLength"),l.a.createElement(s.TextInput,{caretColor:"yellow",style:Me.input_style,placeholder:"maxLength=5",maxLength:5}),"android"===s.Platform.OS&&r("breakStrategy"),"android"===s.Platform.OS&&l.a.createElement(l.a.Fragment,null,l.a.createElement(s.TextInput,{style:Me.input_style_block,breakStrategy:o,defaultValue:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales."}),l.a.createElement(s.Text,{style:{}},"breakStrategy: "+o),l.a.createElement(s.View,{style:Me.buttonBar},l.a.createElement(s.View,{style:Me.button,onClick:()=>this.changeBreakStrategy("simple")},l.a.createElement(s.Text,{style:Me.buttonText},"simple")),l.a.createElement(s.View,{style:Me.button,onClick:()=>this.changeBreakStrategy("high_quality")},l.a.createElement(s.Text,{style:Me.buttonText},"high_quality")),l.a.createElement(s.View,{style:Me.button,onClick:()=>this.changeBreakStrategy("balanced")},l.a.createElement(s.Text,{style:Me.buttonText},"balanced")))))}}var ze=n.p+"assets/defaultSource.jpg";const He=s.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},rectangle:{width:160,height:80,marginVertical:10},bigRectangle:{width:200,height:100,borderColor:"#eee",borderWidth:1,borderStyle:"solid",padding:10,marginVertical:10},smallRectangle:{width:40,height:40,borderRadius:10}});function _e(){const e=e=>l.a.createElement(s.View,{style:He.itemTitle},l.a.createElement(s.Text,null,e));return l.a.createElement(s.ScrollView,{style:{paddingHorizontal:10}},e("backgroundColor"),l.a.createElement(s.View,{style:[He.rectangle,{backgroundColor:"#4c9afa"}]}),e("backgroundImage"),l.a.createElement(s.View,{style:[He.rectangle,{alignItems:"center",justifyContent:"center",marginTop:20,backgroundImage:ze}],accessible:!0,accessibilityLabel:"背景图",accessibilityRole:"image",accessibilityState:{disabled:!1,selected:!0,checked:!1,expanded:!1,busy:!0},accessibilityValue:{min:1,max:10,now:5,text:"middle"}},l.a.createElement(s.Text,{style:{color:"white"}},"背景图")),e("backgroundImage linear-gradient"),l.a.createElement(s.View,{style:[He.rectangle,{alignItems:"center",justifyContent:"center",marginTop:20,borderWidth:2,borderStyle:"solid",borderColor:"black",borderRadius:2,backgroundImage:"linear-gradient(30deg, blue 10%, yellow 40%, red 50%);"}]},l.a.createElement(s.Text,{style:{color:"white"}},"渐变色")),e("border props"),l.a.createElement(s.View,{style:[He.rectangle,{borderColor:"#242424",borderRadius:4,borderWidth:1,borderStyle:"solid"}]}),e("flex props"),l.a.createElement(s.View,{style:[He.bigRectangle,{flexDirection:"row",alignItems:"center",justifyContent:"space-between"}]},l.a.createElement(s.View,{style:[He.smallRectangle,{backgroundColor:"yellow"}]}),l.a.createElement(s.View,{style:[He.smallRectangle,{backgroundColor:"blue"}]}),l.a.createElement(s.View,{style:[He.smallRectangle,{backgroundColor:"green"}]})))}const We=s.StyleSheet.create({pageContainer:{alignItems:"center",justifyContent:"center",flex:1,paddingTop:20},mainRec:{backgroundColor:"#4c9afaAA",width:256,height:48,marginBottom:10,marginTop:156},title:{verticalAlign:"middle",lineHeight:48,height:48,fontSize:16,color:"white",alignSelf:"center"},shapeBase:{width:128,height:128,backgroundColor:"#4c9afa"},square:{},circle:{borderRadius:64},triangle:{borderStyle:"solid",borderTopWidth:0,borderRightWidth:70,borderBottomWidth:128,borderLeftWidth:70,borderTopColor:"transparent",borderRightColor:"transparent",borderLeftColor:"transparent",borderBottomColor:"#4c9afa",backgroundColor:"transparent",width:140}}),Ne="SquarePagerView",Ke="TrianglePagerView",Ue="CirclePagerView";function Ge(e,t){const n=t=>l.a.createElement(s.View,{style:We.pageContainer,key:t},l.a.createElement(s.View,{style:[We.shapeBase,e],key:"shape"}),l.a.createElement(s.View,{style:We.mainRec,key:"title"},t?l.a.createElement(s.Text,{style:We.title},t):null));return n.displayName=t,n}const qe=Ge(We.square,Ne),Qe=Ge(We.triangle,Ke),Ye=Ge(We.circle,Ue),Xe=s.StyleSheet.create({dotContainer:{position:"absolute",bottom:10,left:0,right:0,flexDirection:"row",alignItems:"center",justifyContent:"center"},dot:{width:6,height:6,borderRadius:3,margin:3,backgroundColor:"#BBBBBB"},selectDot:{backgroundColor:"#000000"},container:{height:500},buttonContainer:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12},button:{width:120,height:36,backgroundColor:"#4c9afa",borderRadius:18,alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,color:"#fff"}});class Je extends l.a.Component{constructor(e){super(e),_()(this,"state",{selectedIndex:0}),this.onPageSelected=this.onPageSelected.bind(this),this.onPageScrollStateChanged=this.onPageScrollStateChanged.bind(this)}onPageSelected(e){console.log("onPageSelected",e.position),this.setState({selectedIndex:e.position})}onPageScrollStateChanged(e){console.log("onPageScrollStateChanged",e)}onPageScroll({offset:e,position:t}){console.log("onPageScroll",e,t)}render(){const{selectedIndex:e}=this.state;return l.a.createElement(s.View,{style:{flex:1,backgroundColor:"#ffffff"}},l.a.createElement(s.View,{style:Xe.buttonContainer},l.a.createElement(s.View,{style:Xe.button,onClick:()=>{this.viewpager.setPage(2)}},l.a.createElement(s.Text,{style:Xe.buttonText},"动效滑到第3页")),l.a.createElement(s.View,{style:Xe.button,onClick:()=>this.viewpager.setPageWithoutAnimation(0)},l.a.createElement(s.Text,{style:Xe.buttonText},"直接滑到第1页"))),l.a.createElement(s.ViewPager,{ref:e=>{this.viewpager=e},style:Xe.container,initialPage:0,keyboardDismissMode:"none",scrollEnabled:!0,onPageSelected:this.onPageSelected,onPageScrollStateChanged:this.onPageScrollStateChanged,onPageScroll:this.onPageScroll},[qe("squarePager"),Qe("TrianglePager"),Ye("CirclePager")]),l.a.createElement(s.View,{style:Xe.dotContainer},new Array(3).fill(0).map((t,n)=>{const o=n===e;return l.a.createElement(s.View,{style:[Xe.dot,o?Xe.selectDot:null],key:"dot_"+n})})))}}const Ze=s.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},webViewStyle:{padding:10,flex:1,flexGrow:1,borderRadius:10}});function $e(){return l.a.createElement(s.View,{style:{paddingHorizontal:10,flex:1}},l.a.createElement(s.View,{style:Ze.itemTitle},l.a.createElement(s.Text,null,"WebView 示例")),l.a.createElement(s.WebView,{source:{uri:"https://hippyjs.org"},method:"get",userAgent:"Mozilla/5.0 (Linux; U; Android 5.1.1; zh-cn; vivo X7 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko)Version/4.0 Chrome/37.0.0.0 MQQBrowser/8.2 Mobile Safari/537.36",style:Ze.webViewStyle,onLoad:({url:e})=>console.log("webview onload",e),onLoadStart:({url:e})=>console.log("webview onLoadStart",e),onLoadEnd:({url:e,success:t,error:n})=>console.log("webview onLoadEnd",e,t,n)}))}const et=s.StyleSheet.create({shadowDemo:{flex:1,overflowY:"scroll"},shadowDemoCubeAndroid:{position:"absolute",left:50,top:50,width:170,height:170,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowColor:"#4c9afa",borderRadius:5},shadowDemoContentAndroid:{position:"absolute",left:5,top:5,width:160,height:160,backgroundColor:"grey",borderRadius:5,display:"flex",justifyContent:"center",alignItems:"center"},shadowDemoCubeIos:{position:"absolute",left:50,top:50,width:160,height:160,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowSpread:1,boxShadowColor:"#4c9afa",borderRadius:5},shadowDemoContentIos:{width:160,height:160,backgroundColor:"grey",borderRadius:5,display:"flex",justifyContent:"center",alignItems:"center"},text:{color:"white"}}),tt=s.StyleSheet.create({shadowDemoCubeAndroid:{position:"absolute",left:50,top:300,width:175,height:175,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:15,boxShadowOffsetY:15,boxShadowColor:"#4c9afa"},shadowDemoContentAndroid:{width:160,height:160,backgroundColor:"grey",display:"flex",justifyContent:"center",alignItems:"center"},shadowDemoCubeIos:{position:"absolute",left:50,top:300,width:160,height:160,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:10,boxShadowOffsetY:10,boxShadowSpread:1,boxShadowColor:"#4c9afa"},shadowDemoContentIos:{width:160,height:160,backgroundColor:"grey",display:"flex",justifyContent:"center",alignItems:"center"},text:{color:"white"}});function nt(){return l.a.createElement(s.View,{style:et.shadowDemo},"android"===s.Platform.OS?l.a.createElement(s.View,{style:et.shadowDemoCubeAndroid},l.a.createElement(s.View,{style:et.shadowDemoContentAndroid},l.a.createElement(s.Text,{style:et.text},"没有偏移阴影样式"))):l.a.createElement(s.View,{style:et.shadowDemoCubeIos},l.a.createElement(s.View,{style:et.shadowDemoContentIos},l.a.createElement(s.Text,{style:et.text},"没有偏移阴影样式"))),"android"===s.Platform.OS?l.a.createElement(s.View,{style:tt.shadowDemoCubeAndroid},l.a.createElement(s.View,{style:tt.shadowDemoContentAndroid},l.a.createElement(s.Text,{style:tt.text},"偏移阴影样式"))):l.a.createElement(s.View,{style:tt.shadowDemoCubeIos},l.a.createElement(s.View,{style:tt.shadowDemoContentIos},l.a.createElement(s.Text,{style:tt.text},"偏移阴影样式"))))}const ot=ce.filter(e=>2!==e.style),rt=s.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},splitter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},pullContainer:{height:50,backgroundColor:"#4c9afa"},pullContent:{lineHeight:50,color:"white",height:50,textAlign:"center"},pullFooter:{flex:1,height:40,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}});class it extends l.a.Component{constructor(e){super(e),this.state={dataSource:[],headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",horizontal:void 0},this.numberOfColumns=2,this.columnSpacing=6,this.interItemSpacing=6,this.mockFetchData=this.mockFetchData.bind(this),this.renderItem=this.renderItem.bind(this),this.getItemType=this.getItemType.bind(this),this.getItemKey=this.getItemKey.bind(this),this.onEndReached=this.onEndReached.bind(this),this.onRefresh=this.onRefresh.bind(this),this.getRefresh=this.getRefresh.bind(this),this.renderPullFooter=this.renderPullFooter.bind(this),this.renderPullHeader=this.renderPullHeader.bind(this),this.onHeaderReleased=this.onHeaderReleased.bind(this),this.onHeaderPulling=this.onHeaderPulling.bind(this),this.onFooterPulling=this.onFooterPulling.bind(this),this.renderBanner=this.renderBanner.bind(this),this.renderFooter=this.renderFooter.bind(this),this.getItemStyle=this.getItemStyle.bind(this),this.getHeaderStyle=this.getHeaderStyle.bind(this),this.onScroll=this.onScroll.bind(this)}async componentDidMount(){const e=await this.mockFetchData();this.setState({dataSource:e})}async onEndReached(){const{dataSource:e}=this.state;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.setState({footerRefreshText:"加载更多..."});let t=[];try{t=await this.mockFetchData()}catch(e){}0===t.length&&this.setState({footerRefreshText:"没有更多数据"});const n=[...e,...t];this.setState({dataSource:n}),this.loadMoreDataFlag=!1,this.listView.collapsePullFooter()}async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.setState({headerRefreshText:"刷新数据中,请稍等"});let e=[];try{e=await this.mockFetchData()}catch(e){}this.fetchingDataFlag=!1,this.setState({dataSource:e,headerRefreshText:"2秒后收起"},()=>{this.listView.collapsePullHeader({time:2e3})})}onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>rt.pullContent.height?this.setState({headerRefreshText:"松手,即可触发刷新"}):this.setState({headerRefreshText:"继续下拉,触发刷新"}))}onFooterPulling(e){console.log("onFooterPulling",e)}renderPullFooter(){const{horizontal:e}=this.state;return e?l.a.createElement(s.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{color:"white",lineHeight:25,width:40,paddingHorizontal:15}},this.state.footerRefreshText)):l.a.createElement(s.View,{style:rt.pullFooter},l.a.createElement(s.Text,{style:{color:"white"}},this.state.footerRefreshText))}async onRefresh(){setTimeout(async()=>{const e=await this.mockFetchData();this.setState({dataSource:e}),this.refresh.refreshComplected()},1e3)}getRefresh(){return l.a.createElement(s.View,{style:{flex:1,height:40,justifyContent:"center",alignItems:"center",backgroundColor:"#4c9afa"}},l.a.createElement(s.Text,{style:{height:40,lineHeight:40,textAlign:"center",color:"white"}},"下拉刷新中..."))}onClickItem(e){console.log(`item: ${e} is clicked..`)}getItemType(e){return this.state.dataSource[e].style}getItemKey(e){return"row-"+e}onItemClick(e){console.log("onItemClick",e),this.listView.scrollToIndex({index:e,animation:!0})}onScroll(e){console.log("onScroll",e)}renderBanner(){return 0===this.state.dataSource.length?null:l.a.createElement(s.View,{style:{backgroundColor:"grey",height:100,justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{fontSize:20,color:"white",lineHeight:100,height:100}},"Banner View"))}renderFooter(){return 0===this.state.dataSource.length?null:l.a.createElement(s.View,{style:{backgroundColor:"grey",height:100,justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{fontSize:20,color:"white",lineHeight:100,height:100}},"Footer View"))}renderItem(e){const{dataSource:t}=this.state;let n=null;const o=t[e];switch(o.style){case 1:n=l.a.createElement(ye,{itemBean:o.itemBean});break;case 2:n=l.a.createElement(Se,{itemBean:o.itemBean});break;case 5:n=l.a.createElement(Ae,{itemBean:o.itemBean})}return l.a.createElement(s.View,{onClick:()=>this.onItemClick(e),style:rt.container},l.a.createElement(s.View,{style:rt.itemContainer},n),l.a.createElement(s.View,{style:rt.splitter}))}mockFetchData(){return new Promise(e=>{setTimeout(()=>{const t=[...ot,...ot];return e(t)},600)})}getWaterfallContentInset(){return{top:12,left:12,bottom:12,right:12}}getItemStyle(){const{numberOfColumns:e,columnSpacing:t}=this,n=s.Dimensions.get("screen").width-32,o=this.getWaterfallContentInset();return{width:(n-o.left-o.right-(e-1)*t)/e}}getHeaderStyle(){const{horizontal:e}=this.state;return e?{width:50}:{}}renderPullHeader(){const{headerRefreshText:e,horizontal:t}=this.state;return t?l.a.createElement(s.View,{style:{width:40,height:300,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}},l.a.createElement(s.Text,{style:{lineHeight:25,color:"white",width:40,paddingHorizontal:15}},e)):l.a.createElement(s.View,{style:rt.pullContainer},l.a.createElement(s.Text,{style:rt.pullContent},e))}render(){const{dataSource:e}=this.state,{numberOfColumns:t,columnSpacing:n,interItemSpacing:o}=this,r=this.getWaterfallContentInset();return l.a.createElement(s.WaterfallView,{ref:e=>{this.listView=e},numberOfColumns:t,columnSpacing:n,interItemSpacing:o,numberOfItems:e.length,contentInset:r,preloadItemNumber:12,style:{flex:1},onScroll:this.onScroll,renderBanner:this.renderBanner,renderFooter:this.renderFooter,renderPullHeader:this.renderPullHeader,renderPullFooter:this.renderPullFooter,onEndReached:this.onEndReached,onFooterReleased:this.onEndReached,onHeaderReleased:this.onHeaderReleased,onHeaderPulling:this.onHeaderPulling,renderItem:this.renderItem,getItemType:this.getItemType,getItemKey:this.getItemKey,getItemStyle:this.getItemStyle,getHeaderStyle:this.getHeaderStyle})}}var at=n.p+"assets/defaultSource.jpg";function lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function st(e){for(var t=1;t{i.current.setPressed(!1)},{nativeBackgroundAndroid:h,style:u}=e;return l.a.createElement(s.View,{onLayout:()=>{s.UIManagerModule.measureInAppWindow(i.current,e=>{n(e.x),r(e.y)})},style:u,onTouchDown:e=>{i.current.setHotspot(e.page_x-t,e.page_y-o),i.current.setPressed(!0)},onTouchEnd:c,onTouchCancel:c,ref:i,nativeBackgroundAndroid:st(st({},ct),h)},e.children)}const ut=s.StyleSheet.create({imgRectangle:{width:260,height:56,alignItems:"center",justifyContent:"center"},circleRipple:{marginTop:30,width:150,height:56,alignItems:"center",justifyContent:"center",borderWidth:3,borderStyle:"solid",borderColor:"#4c9afa"},squareRipple:{alignItems:"center",justifyContent:"center",width:150,height:150,backgroundColor:"#4c9afa",marginTop:30,borderRadius:12,overflow:"hidden"},squareRippleWrapper:{alignItems:"flex-start",justifyContent:"center",height:150,marginTop:30},squareRipple1:{alignItems:"center",justifyContent:"center",width:150,height:150,borderWidth:5,borderStyle:"solid",backgroundSize:"cover",borderColor:"#4c9afa",backgroundImage:at,paddingHorizontal:10},squareRipple2:{alignItems:"center",justifyContent:"center",width:150,height:150,paddingHorizontal:10,backgroundSize:"cover",backgroundImage:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}});function dt(){return"ios"===s.Platform.OS?l.a.createElement(s.Text,null,"iOS暂未支持水波纹效果"):l.a.createElement(s.ScrollView,{style:{margin:10,flex:1}},l.a.createElement(s.View,{style:[ut.imgRectangle,{marginTop:20,backgroundImage:at,backgroundSize:"cover"}]},l.a.createElement(ht,{style:[ut.imgRectangle],nativeBackgroundAndroid:{borderless:!0,color:"#666666"}},l.a.createElement(s.Text,{style:{color:"white",maxWidth:200}},"外层背景图,内层无边框水波纹,受外层影响始终有边框"))),l.a.createElement(ht,{style:[ut.circleRipple],nativeBackgroundAndroid:{borderless:!0,color:"#666666",rippleRadius:100}},l.a.createElement(s.Text,{style:{color:"black",textAlign:"center"}},"无边框圆形水波纹")),l.a.createElement(ht,{style:[ut.squareRipple],nativeBackgroundAndroid:{borderless:!1,color:"#666666"}},l.a.createElement(s.Text,{style:{color:"#fff"}},"带背景色水波纹")),l.a.createElement(s.View,{style:[ut.squareRippleWrapper]},l.a.createElement(ht,{style:[ut.squareRipple1],nativeBackgroundAndroid:{borderless:!1,color:"#666666"}},l.a.createElement(s.Text,{style:{color:"white"}},"有边框水波纹,带本地底图效果"))),l.a.createElement(s.View,{style:[ut.squareRippleWrapper]},l.a.createElement(ht,{style:[ut.squareRipple2],nativeBackgroundAndroid:{borderless:!1,color:"#666666"}},l.a.createElement(s.Text,{style:{color:"black"}},"有边框水波纹,带网络底图效果"))))}const mt="#4c9afa",gt="#f44837",ft=s.StyleSheet.create({container:{paddingHorizontal:10},square:{width:80,height:80,backgroundColor:gt},showArea:{height:150,marginVertical:10},button:{borderColor:mt,borderWidth:2,borderStyle:"solid",justifyContent:"center",alignItems:"center",width:70,borderRadius:8,height:50,marginTop:20,marginRight:8},buttonText:{fontSize:20,color:mt,textAlign:"center",textAlignVertical:"center"},colorText:{fontSize:14,color:"white",textAlign:"center",textAlignVertical:"center"},buttonContainer:{flexDirection:"row",alignItems:"center"},title:{fontSize:24,marginTop:8}});class yt extends l.a.Component{constructor(e){super(e),this.state={}}componentWillMount(){this.horizonAnimation=new s.Animation({startValue:150,toValue:20,duration:1e3,delay:500,mode:"timing",timingFunction:"linear",repeatCount:"loop"}),this.verticalAnimation=new s.Animation({startValue:80,toValue:40,duration:1e3,delay:0,mode:"timing",timingFunction:"linear",repeatCount:"loop"}),this.scaleAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:1,toValue:1.2,duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:1.2,toValue:.2,duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.rotateAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:0,toValue:180,duration:2e3,delay:0,valueType:"deg",mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:180,toValue:360,duration:2e3,delay:0,valueType:"deg",mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.skewXAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:0,toValue:20,duration:2e3,delay:0,mode:"timing",valueType:"deg",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:20,toValue:0,duration:2e3,delay:0,mode:"timing",valueType:"deg",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.skewYAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:0,toValue:20,duration:2e3,delay:0,mode:"timing",valueType:"deg",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:20,toValue:0,duration:2e3,delay:0,mode:"timing",valueType:"deg",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.bgColorAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:"red",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:"yellow",toValue:"blue",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.txtColorAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:"white",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new s.Animation({startValue:"yellow",toValue:"white",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.cubicBezierScaleAnimationSet=new s.AnimationSet({children:[{animation:new s.Animation({startValue:0,toValue:1,duration:1e3,delay:0,mode:"timing",timingFunction:"cubic-bezier(.45,2.84,.38,.5)"}),follow:!1},{animation:new s.Animation({startValue:1,toValue:0,duration:1e3,mode:"timing",timingFunction:"cubic-bezier(.17,1.45,.78,.14)"}),follow:!0}],repeatCount:"loop"})}componentDidMount(){"web"===s.Platform.OS&&(this.verticalAnimation.setRef(this.verticalRef),this.horizonAnimation.setRef(this.horizonRef),this.scaleAnimationSet.setRef(this.scaleRef),this.bgColorAnimationSet.setRef(this.bgColorRef),this.txtColorAnimationSet.setRef(this.textColorRef),this.txtColorAnimationSet.setRef(this.textColorRef),this.cubicBezierScaleAnimationSet.setRef(this.cubicBezierScaleRef),this.rotateAnimationSet.setRef(this.rotateRef),this.skewXAnimationSet.setRef(this.skewRef),this.skewYAnimationSet.setRef(this.skewRef)),this.horizonAnimation.onAnimationStart(()=>{console.log("on animation start!!!")}),this.horizonAnimation.onAnimationEnd(()=>{console.log("on animation end!!!")}),this.horizonAnimation.onAnimationCancel(()=>{console.log("on animation cancel!!!")}),this.horizonAnimation.onAnimationRepeat(()=>{console.log("on animation repeat!!!")})}componentWillUnmount(){this.horizonAnimation&&this.horizonAnimation.destroy(),this.verticalAnimation&&this.verticalAnimation.destroy(),this.scaleAnimationSet&&this.scaleAnimationSet.destroy(),this.bgColorAnimationSet&&this.bgColorAnimationSet.destroy(),this.txtColorAnimationSet&&this.txtColorAnimationSet.destroy(),this.cubicBezierScaleAnimationSet&&this.cubicBezierScaleAnimationSet.destroy(),this.rotateAnimationSet&&this.rotateAnimationSet.destroy(),this.skewXAnimationSet&&this.skewXAnimationSet.destroy(),this.skewYAnimationSet&&this.skewYAnimationSet.destroy()}render(){return l.a.createElement(s.ScrollView,{style:ft.container},l.a.createElement(s.Text,{style:ft.title},"水平位移动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.horizonAnimation.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.horizonAnimation.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.horizonAnimation.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.horizonAnimation.updateAnimation({startValue:50,toValue:100})}},l.a.createElement(s.Text,{style:ft.buttonText},"更新"))),l.a.createElement(s.View,{style:ft.showArea},l.a.createElement(s.View,{ref:e=>{this.horizonRef=e},style:[ft.square,{transform:[{translateX:this.horizonAnimation}]}]})),l.a.createElement(s.Text,{style:ft.title},"高度形变动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.verticalAnimation.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.verticalAnimation.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.verticalAnimation.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:ft.showArea},l.a.createElement(s.View,{ref:e=>{this.verticalRef=e},style:[ft.square,{height:this.verticalAnimation}]})),l.a.createElement(s.Text,{style:ft.title},"旋转动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.rotateAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.rotateAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.rotateAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:ft.showArea},l.a.createElement(s.View,{ref:e=>{this.rotateRef=e},style:[ft.square,{transform:[{rotate:this.rotateAnimationSet}]}]})),l.a.createElement(s.Text,{style:ft.title},"倾斜动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.skewXAnimationSet.start(),this.skewYAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.skewXAnimationSet.pause(),this.skewYAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.skewXAnimationSet.resume(),this.skewYAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:ft.showArea},l.a.createElement(s.View,{ref:e=>{this.skewRef=e},style:[ft.square,{transform:[{skewX:this.skewXAnimationSet},{skewY:this.skewYAnimationSet}]}]})),l.a.createElement(s.Text,{style:ft.title},"缩放动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.scaleAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.scaleAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.scaleAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:[ft.showArea,{marginVertical:20}]},l.a.createElement(s.View,{ref:e=>{this.scaleRef=e},style:[ft.square,{transform:[{scale:this.scaleAnimationSet}]}]})),l.a.createElement(s.Text,{style:ft.title},"颜色渐变动画(文字渐变仅Android支持)"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.bgColorAnimationSet.start(),this.txtColorAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.bgColorAnimationSet.pause(),this.txtColorAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.bgColorAnimationSet.resume(),this.txtColorAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:[ft.showArea,{marginVertical:20}]},l.a.createElement(s.View,{ref:e=>{this.bgColorRef=e},style:[ft.square,{justifyContent:"center",alignItems:"center"},{backgroundColor:this.bgColorAnimationSet}]},l.a.createElement(s.Text,{ref:e=>{this.textColorRef=e},style:[ft.colorText,{color:"android"===s.Platform.OS?this.txtColorAnimationSet:"white"}]},"颜色渐变背景和文字"))),l.a.createElement(s.Text,{style:ft.title},"贝塞尔曲线动画"),l.a.createElement(s.View,{style:ft.buttonContainer},l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.cubicBezierScaleAnimationSet.start()}},l.a.createElement(s.Text,{style:ft.buttonText},"开始")),l.a.createElement(s.View,{style:[ft.button],onClick:()=>{this.cubicBezierScaleAnimationSet.pause()}},l.a.createElement(s.Text,{style:ft.buttonText},"暂停")),l.a.createElement(s.View,{style:ft.button,onClick:()=>{this.cubicBezierScaleAnimationSet.resume()}},l.a.createElement(s.Text,{style:ft.buttonText},"继续"))),l.a.createElement(s.View,{style:[ft.showArea,{marginVertical:20}]},l.a.createElement(s.View,{ref:e=>{this.cubicBezierScaleRef=e},style:[ft.square,{transform:[{scale:this.cubicBezierScaleAnimationSet}]}]})))}}const pt=s.StyleSheet.create({containerStyle:{margin:20,alignItems:"center",flexDirection:"column"},itemGroupStyle:{flexDirection:"row",marginTop:10,borderColor:"#4c9afa",borderWidth:1,borderStyle:"solid",width:100,height:40,justifyContent:"center",alignItems:"center"},viewGroupStyle:{flexDirection:"row",marginTop:10},infoStyle:{width:60,height:40,fontSize:16,color:"#4c9afa",textAlign:"center"},inputStyle:{width:200,height:40,placeholderTextColor:"#aaaaaa",underlineColorAndroid:"#4c9afa",fontSize:16,color:"#242424",textAlign:"left"},buttonStyle:{textAlign:"center",fontSize:16,color:"#4c9afa",backgroundColor:"#4c9afa11",marginLeft:10,marginRight:10}});class bt extends l.a.Component{constructor(e){super(e),this.state={result:""},this.onTextChangeKey=this.onTextChangeKey.bind(this),this.onTextChangeValue=this.onTextChangeValue.bind(this),this.onClickSet=this.onClickSet.bind(this),this.onTextChangeKey=this.onTextChangeKey.bind(this),this.onClickGet=this.onClickGet.bind(this)}onClickSet(){const{key:e,value:t}=this.state;e&&s.AsyncStorage.setItem(e,t)}onClickGet(){const{key:e}=this.state;e&&s.AsyncStorage.getItem(e).then(e=>{this.setState({result:e})})}onTextChangeKey(e){this.setState({key:e})}onTextChangeValue(e){this.setState({value:e})}render(){const{result:e}=this.state;return l.a.createElement(s.ScrollView,{style:pt.containerStyle},l.a.createElement(s.View,{style:pt.viewGroupStyle},l.a.createElement(s.Text,{style:pt.infoStyle},"Key:"),l.a.createElement(s.TextInput,{style:pt.inputStyle,onChangeText:this.onTextChangeKey})),l.a.createElement(s.View,{style:pt.viewGroupStyle},l.a.createElement(s.Text,{style:pt.infoStyle},"Value:"),l.a.createElement(s.TextInput,{style:pt.inputStyle,onChangeText:this.onTextChangeValue})),l.a.createElement(s.View,{style:pt.itemGroupStyle,onClick:this.onClickSet},l.a.createElement(s.Text,{style:pt.buttonStyle},"Set")),l.a.createElement(s.View,{style:[pt.viewGroupStyle,{marginTop:60}]},l.a.createElement(s.Text,{style:pt.infoStyle},"Key:"),l.a.createElement(s.TextInput,{style:pt.inputStyle,onChangeText:this.onTextChangeKey})),l.a.createElement(s.View,{style:[pt.viewGroupStyle,{display:"none"}]},l.a.createElement(s.Text,{style:pt.infoStyle},"Value:"),l.a.createElement(s.Text,{style:[pt.infoStyle,{width:200}]},e)),l.a.createElement(s.View,{style:pt.itemGroupStyle,onClick:this.onClickGet},l.a.createElement(s.Text,{style:pt.buttonStyle},"Get")))}}const wt=s.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderStyle:"solid",borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},wrapper:{borderColor:"#eee",borderWidth:1,borderStyle:"solid",paddingHorizontal:10,paddingVertical:5,marginVertical:10,flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start"},infoContainer:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",marginTop:5,marginBottom:5,flexWrap:"wrap"},infoText:{collapsable:!1,marginVertical:5}});class xt extends l.a.Component{constructor(e){super(e),this.state={netInfoStatusTxt:"",netInfoChangeTxt:"",fetchInfoTxt:"",cookies:""},this.listener=null}async fetchNetInfoStatus(){this.setState({netInfoStatusTxt:await s.NetInfo.fetch()})}fetchUrl(){fetch("https://hippyjs.org",{mode:"no-cors"}).then(e=>(this.setState({fetchInfoTxt:"成功状态: "+e.status}),e)).catch(e=>{this.setState({fetchInfoTxt:"收到错误: "+e})})}setCookies(){s.NetworkModule.setCookie("https://hippyjs.org","name=hippy;network=mobile")}getCookies(){s.NetworkModule.getCookies("https://hippyjs.org").then(e=>{this.setState({cookies:e})})}async componentWillMount(){const e=this;this.listener=s.NetInfo.addEventListener("change",t=>{e.setState({netInfoChangeTxt:""+t.network_info})})}componentWillUnmount(){this.listener&&s.NetInfo.removeEventListener("change",this.listener)}componentDidMount(){this.fetchUrl(),this.fetchNetInfoStatus()}render(){const{netInfoStatusTxt:e,fetchInfoTxt:t,netInfoChangeTxt:n,cookies:o}=this.state,r=e=>l.a.createElement(s.View,{style:wt.itemTitle},l.a.createElement(s.Text,null,e));return l.a.createElement(s.ScrollView,{style:{paddingHorizontal:10}},r("Fetch"),l.a.createElement(s.View,{style:[wt.wrapper]},l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10},onClick:()=>this.fetchUrl()},l.a.createElement(s.Text,{style:{color:"white"}},"请求 hippy 网址:")),l.a.createElement(s.Text,{style:wt.infoText},t))),r("NetInfo"),l.a.createElement(s.View,{style:[wt.wrapper]},l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10},onClick:()=>this.fetchNetInfoStatus()},l.a.createElement(s.Text,{style:{color:"white"}},"获取网络状态:")),l.a.createElement(s.Text,{style:wt.infoText},e)),l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10}},l.a.createElement(s.Text,{style:{color:"white"}},"监听网络变化:")),l.a.createElement(s.Text,{style:wt.infoText},n))),r("NetworkModule"),l.a.createElement(s.View,{style:[wt.wrapper]},l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10},onClick:()=>this.setCookies()},l.a.createElement(s.Text,{style:{color:"white"}},"设置Cookies:")),l.a.createElement(s.Text,{style:wt.infoText},"name=hippy;network=mobile")),l.a.createElement(s.View,{style:[wt.infoContainer]},l.a.createElement(s.View,{style:{backgroundColor:"grey",padding:10,borderRadius:10,marginRight:10},onClick:()=>this.getCookies()},l.a.createElement(s.Text,{style:{color:"white"}},"获取Cookies:")),l.a.createElement(s.Text,{style:wt.infoText},o))))}}const St=s.StyleSheet.create({fullScreen:{flex:1},row:{flexDirection:"row"},title:{color:"#ccc"},button:{height:56,backgroundColor:"#4c9afa",borderColor:"#5dabfb",borderStyle:"solid",borderWidth:1,paddingHorizontal:20,fontSize:16,textAlign:"center",lineHeight:56,color:"#fff",margin:10},input:{color:"black",flex:1,height:36,lineHeight:36,fontSize:14,borderBottomColor:"#4c9afa",borderBottomStyle:"solid",borderBottomWidth:1,padding:0},output:{color:"black"}}),Et="wss://echo.websocket.org",Tt="Rock it with Hippy WebSocket";let Ct;var At=function(){const e=Object(a.useRef)(null),t=Object(a.useRef)(null),[n,o]=Object(a.useState)([]),r=e=>{o(t=>[e,...t])};return l.a.createElement(s.View,{style:St.fullScreen},l.a.createElement(s.View,null,l.a.createElement(s.Text,{style:St.title},"Url:"),l.a.createElement(s.TextInput,{ref:e,value:Et,style:St.input}),l.a.createElement(s.View,{style:St.row},l.a.createElement(s.Text,{onClick:()=>{e.current.getValue().then(e=>{Ct&&1===Ct.readyState&&Ct.close(),Ct=new WebSocket(e),Ct.onopen=()=>r("[Opened] "+Ct.url),Ct.onclose=()=>r("[Closed] "+Ct.url),Ct.onerror=e=>r("[Error] "+e.reason),Ct.onmessage=e=>r("[Received] "+e.data)})},style:St.button},"Connect"),l.a.createElement(s.Text,{onClick:()=>Ct.close(),style:St.button},"Disconnect"))),l.a.createElement(s.View,null,l.a.createElement(s.Text,{style:St.title},"Message:"),l.a.createElement(s.TextInput,{ref:t,value:Tt,style:St.input}),l.a.createElement(s.Text,{onClick:()=>t.current.getValue().then(e=>{r("[Sent] "+e),Ct.send(e)}),style:St.button},"Send")),l.a.createElement(s.View,null,l.a.createElement(s.Text,{style:St.title},"Log:"),l.a.createElement(s.ScrollView,{style:St.fullScreen},n.map((e,t)=>l.a.createElement(s.Text,{key:t,style:St.output},e)))))};function vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Rt(e){for(var t=1;t{const e=s.Dimensions.get("screen");({width:t,height:n}=e)});const[o,r]=Object(a.useState)({width:100,height:100,top:10,left:10}),[i,c]=Object(a.useState)({width:0,height:0,x:0,y:0}),h=async(t=!1)=>{try{const n=await s.UIManagerModule.getBoundingClientRect(e.current,{relToContainer:t});c(n)}catch(e){console.error("getBoxPosition error",e)}},u=Rt(Rt({},Vt.box),o);return l.a.createElement(s.View,{style:Vt.full},l.a.createElement(s.View,{style:Vt.demoContent},l.a.createElement(s.View,{ref:e,style:u},l.a.createElement(s.Text,{style:Vt.text,numberOfLines:2},"I am the box"))),l.a.createElement(s.View,{style:Vt.buttonContainer},l.a.createElement(s.View,{onClick:()=>{const e=kt(0,t-100),o=kt(0,n-450),i=kt(80,120);r({left:e,top:o,width:i,height:i})},style:Vt.button},l.a.createElement(s.Text,{style:Vt.buttonText},"Move position")),l.a.createElement(s.View,{onClick:()=>h(!1),style:Vt.button},l.a.createElement(s.Text,{style:Vt.buttonText},"Measure in App Window")),l.a.createElement(s.View,{onClick:()=>h(!0),style:Vt.button},l.a.createElement(s.Text,{style:Vt.buttonText},"Measure in Container(RootView)"))),l.a.createElement(s.View,{style:Vt.row},l.a.createElement(s.View,null,l.a.createElement(s.Text,null,"Box style:"),l.a.createElement(s.Text,{style:Vt.black},"Width: "+u.width),l.a.createElement(s.Text,{style:Vt.black},"Height: "+u.height),l.a.createElement(s.Text,{style:Vt.black},"Left: "+u.left),l.a.createElement(s.Text,{style:Vt.black},"Top: "+u.top)),l.a.createElement(s.View,null,l.a.createElement(s.Text,null,"getBoundingClientRect output:"),l.a.createElement(s.Text,{style:Vt.black},"Width: "+i.width),l.a.createElement(s.Text,{style:Vt.black},"Height: "+i.height),l.a.createElement(s.Text,{style:Vt.black},"X: "+i.x),l.a.createElement(s.Text,{style:Vt.black},"Y: "+i.y))))};const Ot=s.StyleSheet.create({style_indicator_item:{width:4,height:4,marginLeft:2.5,marginRight:2.5,borderRadius:2},style_indicator:{position:"absolute",bottom:6,left:0,right:0,marginLeft:0,marginRight:0,alignItems:"center",justifyContent:"center",flexDirection:"row",pointerEvents:"none"}});class Dt extends l.a.Component{constructor(e){super(e),this.state={current:e.current||0}}update(e){const{current:t}=this.state;t!==e&&this.setState({current:e})}render(){const{count:e}=this.props,{current:t}=this.state,n=[];for(let o=0;o=r||(this.indicator&&this.indicator.update(o),this.currentIndex=o)}onScrollBeginDrag(){this.touchStartOffset=this.scrollOffset,this.doClearTimer()}onScrollEndDrag(){this.doCreateTimer()}onLayout(e){this.width=e.layout.width}doSwitchPage(e){this.scrollView.scrollTo({x:this.imgWidth*e,y:0,animated:!0})}doCreateTimer(){this.doClearTimer(),this.duration<=0||(this.interval=setInterval(()=>{this.doSwitchPage((this.currentIndex+1)%this.itemCount)},this.duration))}doClearTimer(){this.interval&&clearInterval(this.interval),this.interval=null}render(){const{images:e}=this.props,t=[];for(let n=0;n{this.scrollView=e}},t),l.a.createElement(Dt,{ref:e=>{this.indicator=e},count:this.itemCount}))}}_()(Pt,"defaultProps",{duration:0,currentPage:0,images:[]});const jt=["https://user-images.githubusercontent.com/12878546/148736627-bca54707-6939-45b3-84f7-74e6c2c09c88.jpg","https://user-images.githubusercontent.com/12878546/148736679-0521fdff-09f5-40e3-a36a-55c8f714be16.jpg","https://user-images.githubusercontent.com/12878546/148736685-a4c226ad-f64a-4fe0-b3df-ce0d8fcd7a01.jpg"],Lt=s.StyleSheet.create({sliderStyle:{width:400,height:180},infoStyle:{height:40,fontSize:16,color:"#4c9afa",marginTop:15}});function Bt(){return l.a.createElement(s.ScrollView,null,l.a.createElement(s.Text,{style:Lt.infoStyle},"Auto:"),l.a.createElement(Pt,{style:Lt.sliderStyle,images:jt,duration:1e3}),l.a.createElement(s.Text,{style:Lt.infoStyle},"Manual:"),l.a.createElement(Pt,{style:Lt.sliderStyle,images:jt,duration:0}))}const Mt=s.StyleSheet.create({container:{height:45,paddingLeft:4,flexDirection:"row",backgroundColor:"#ffffff",borderBottomColor:"#E5E5E5",borderBottomWidth:1,borderStyle:"solid"},scroll:{flex:1,height:44},navItem:{width:60,height:44,paddingTop:13},navItemText:{fontSize:16,lineHeight:17,textAlign:"center",backgroundColor:"#ffffff"},navItemTextNormal:{color:"#666666"},navItemTextBlue:{color:"#2D73FF"}});class Ft extends l.a.Component{constructor(e){super(e),this.state={curIndex:0,navList:["头条","推荐","圈子","NBA","中超","英超","西甲","CBA","澳网","电影","本地","娱乐","小说","生活","直播","游戏"]},this.navScrollView=null,this.viewPager=null,this.onViewPagerChange=this.onViewPagerChange.bind(this),this.pressNavItem=this.pressNavItem.bind(this),this.scrollSV=this.scrollSV.bind(this)}static getPage(e,t){switch(t%3){case 0:return qe(e);case 1:return Ye(e);case 2:return Qe(e);default:return null}}componentDidUpdate(){this.scrollSV()}onViewPagerChange({position:e}){this.setState({curIndex:e})}scrollSV(){if(this.navScrollView){const{curIndex:e,navList:t}=this.state,n=t.length,o=de.getScreenWidth(),r=o/2/60,i=60*nn-r?60*n-o:60*e-60*r+30,this.navScrollView.scrollTo({x:a,y:0,animated:!0})}}pressNavItem(e){this.setState({curIndex:e}),this.viewPager&&this.viewPager.setPage(e)}renderNav(){const{navList:e,curIndex:t}=this.state;return l.a.createElement(s.View,{style:Mt.container},l.a.createElement(s.ScrollView,{style:Mt.scroll,horizontal:!0,showsHorizontalScrollIndicator:!1,ref:e=>{this.navScrollView=e}},e.map((e,n)=>l.a.createElement(s.View,{style:Mt.navItem,key:"nav_"+e,activeOpacity:.5,onClick:()=>this.pressNavItem(n)},l.a.createElement(s.Text,{style:[Mt.navItemText,t===n?Mt.navItemTextBlue:Mt.navItemTextNormal],numberOfLines:1},e)))))}render(){const{navList:e}=this.state;return l.a.createElement(s.View,{style:{flex:1,backgroundColor:"#ffffff"}},this.renderNav(),l.a.createElement(s.ViewPager,{ref:e=>{this.viewPager=e},style:{flex:1},initialPage:0,onPageSelected:this.onViewPagerChange},e.map((e,t)=>Ft.getPage(e,t))))}}const{width:zt}=s.Dimensions.get("window"),Ht=s.StyleSheet.create({setNativePropsDemo:{display:"flex",alignItems:"center",position:"relative"},nativeDemo1Drag:{height:80,width:zt,backgroundColor:"#4c9afa",position:"relative",marginTop:10},nativeDemo1Point:{height:80,width:80,color:"#4cccfa",backgroundColor:"#4cccfa",position:"absolute",left:0},nativeDemo2Drag:{height:80,width:zt,backgroundColor:"#4c9afa",position:"relative",marginTop:10},nativeDemo2Point:{height:80,width:80,color:"#4cccfa",backgroundColor:"#4cccfa",position:"absolute",left:0},splitter:{marginTop:50}});class _t extends l.a.Component{constructor(e){super(e),this.demon1Point=l.a.createRef(),this.demo1PointDom=null,this.state={demo2Left:0},this.isDemon1Layouted=!1,this.idDemon2Layouted=!1,this.onTouchDown1=this.onTouchDown1.bind(this),this.onDemon1Layout=this.onDemon1Layout.bind(this),this.onTouchMove1=this.onTouchMove1.bind(this),this.onTouchDown2=this.onTouchDown2.bind(this),this.onTouchMove2=this.onTouchMove2.bind(this)}componentDidMount(){}onDemon1Layout(){this.isDemon1Layouted||(this.isDemon1Layouted=!0,this.demo1PointDom=s.UIManagerModule.getElementFromFiberRef(this.demon1Point.current))}onTouchDown1(e){const{page_x:t}=e,n=t-40;console.log("touchdown x",t,n,zt),this.demo1PointDom&&this.demo1PointDom.setNativeProps({style:{left:n}})}onTouchMove1(e){const{page_x:t}=e,n=t-40;console.log("touchmove x",t,n,zt),this.demo1PointDom&&this.demo1PointDom.setNativeProps({style:{left:n}})}onTouchDown2(e){const{page_x:t}=e,n=t-40;console.log("touchdown x",t,n,zt),this.setState({demo2Left:n})}onTouchMove2(e){const{page_x:t}=e,n=t-40;console.log("touchmove x",t,n,zt),this.setState({demo2Left:n})}render(){const{demo2Left:e}=this.state;return l.a.createElement(s.View,{style:Ht.setNativePropsDemo},l.a.createElement(s.Text,null,"setNativeProps实现拖动效果"),l.a.createElement(s.View,{style:Ht.nativeDemo1Drag,onTouchDown:this.onTouchDown1,onTouchMove:this.onTouchMove1},l.a.createElement(s.View,{onLayout:this.onDemon1Layout,style:Ht.nativeDemo1Point,ref:this.demon1Point})),l.a.createElement(s.View,{style:Ht.splitter}),l.a.createElement(s.Text,null,"普通渲染实现拖动效果"),l.a.createElement(s.View,{style:Ht.nativeDemo2Drag,onTouchDown:this.onTouchDown2,onTouchMove:this.onTouchMove2},l.a.createElement(s.View,{style:[Ht.nativeDemo2Point,{left:e}]})))}}const Wt=s.StyleSheet.create({dynamicImportDemo:{marginTop:20,display:"flex",flex:1,alignItems:"center",position:"relative",flexDirection:"column"}});class Nt extends l.a.Component{constructor(e){super(e),this.state={AsyncComponentFromLocal:null,AsyncComponentFromHttp:null},this.onAsyncComponentLoad=this.onAsyncComponentLoad.bind(this)}onAsyncComponentLoad(){console.log("load async component"),n.e(1).then(n.bind(null,"./src/externals/DyanmicImport/AsyncComponentLocal.jsx")).then(e=>{this.setState({AsyncComponentFromLocal:e.default||e})}).catch(e=>console.error("import async local component error",e)),n.e(0).then(n.bind(null,"./src/externals/DyanmicImport/AsyncComponentHttp.jsx")).then(e=>{this.setState({AsyncComponentFromHttp:e.default||e})}).catch(e=>console.error("import async remote component error",e))}render(){const{AsyncComponentFromLocal:e,AsyncComponentFromHttp:t}=this.state;return l.a.createElement(s.View,{style:Wt.dynamicImportDemo},l.a.createElement(s.View,{style:{width:130,height:40,textAlign:"center",backgroundColor:"#4c9afa",borderRadius:5},onTouchDown:this.onAsyncComponentLoad},l.a.createElement(s.Text,{style:{height:40,lineHeight:40,textAlign:"center"}},"点我异步加载")),l.a.createElement(s.View,{style:{marginTop:20}},e?l.a.createElement(e,null):null,t?l.a.createElement(t,null):null))}}const Kt=s.StyleSheet.create({LocalizationDemo:{marginTop:20,display:"flex",flex:1,alignItems:"center",position:"relative",flexDirection:"column"}});class Ut extends l.a.Component{render(){const{country:e,language:t,direction:n}=s.Platform.Localization||{};return l.a.createElement(s.View,{style:Kt.LocalizationDemo},l.a.createElement(s.View,{style:{height:40,textAlign:"center",backgroundColor:"#4c9afa",borderRadius:5},onTouchDown:this.onAsyncComponentLoad},l.a.createElement(s.Text,{style:{color:"white",marginHorizontal:30,height:40,lineHeight:40,textAlign:"center"}},`国际化相关信息:国家 ${e} | 语言 ${t} | 方向 ${1===n?"RTL":"LTR"}`)))}}const Gt=()=>getTurboModule("demoTurbo").getTurboConfig(),qt=s.StyleSheet.create({container:{flex:1},cellContentView:{flexDirection:"row",justifyContent:"space-between",backgroundColor:"#ccc",marginBottom:1},funcInfo:{justifyContent:"center",paddingLeft:15,paddingRight:15},actionButton:{backgroundColor:"#4c9afa",color:"#fff",height:44,lineHeight:44,textAlign:"center",width:80,borderRadius:6},resultView:{backgroundColor:"darkseagreen",minHeight:150,padding:15}});class Qt extends l.a.Component{constructor(e){super(e),this.state={config:null,result:"",funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"]},this.onTurboFunc=this.onTurboFunc.bind(this),this.getRenderRow=this.getRenderRow.bind(this),this.getRowKey=this.getRowKey.bind(this)}async onTurboFunc(e){let t;if("nativeWithPromise"===e)t=await(async e=>turboPromise(getTurboModule("demoTurbo").nativeWithPromise)(e))("aaa");else if("getTurboConfig"===e)this.config=Gt(),t="获取到config对象";else if("printTurboConfig"===e)n=this.config||Gt(),t=getTurboModule("demoTurbo").printTurboConfig(n);else if("getInfo"===e)t=(this.config||Gt()).getInfo();else if("setInfo"===e)(this.config||Gt()).setInfo("Hello World"),t="设置config信息成功";else{t={getString:()=>{return e="123",getTurboModule("demoTurbo").getString(e);var e},getNum:()=>{return e=1024,getTurboModule("demoTurbo").getNum(e);var e},getBoolean:()=>{return e=!0,getTurboModule("demoTurbo").getBoolean(e);var e},getMap:()=>{return e=new Map([["a","1"],["b",2]]),getTurboModule("demoTurbo").getMap(e);var e},getObject:()=>{return e={c:"3",d:"4"},getTurboModule("demoTurbo").getObject(e);var e},getArray:()=>{return e=["a","b","c"],getTurboModule("demoTurbo").getArray(e);var e}}[e]()}var n;this.setState({result:t})}renderResultView(){return l.a.createElement(s.View,{style:qt.resultView},l.a.createElement(s.Text,{style:{backgroundColor:"darkseagreen"}},""+this.state.result))}getRenderRow(e){const{funList:t}=this.state;return l.a.createElement(s.View,{style:qt.cellContentView},l.a.createElement(s.View,{style:qt.funcInfo},l.a.createElement(s.Text,{numberofLines:0},"函数名:",t[e])),l.a.createElement(s.Text,{style:qt.actionButton,onClick:()=>this.onTurboFunc(t[e])},"执行"))}getRowKey(e){const{funList:t}=this.state;return t[e]}render(){const{funList:e}=this.state;return l.a.createElement(s.View,{style:qt.container},this.renderResultView(),l.a.createElement(s.ListView,{numberOfRows:e.length,renderRow:this.getRenderRow,getRowKey:this.getRowKey,style:{flex:1}}))}}const Yt=s.StyleSheet.create({demoWrap:{horizontal:!1,flex:1,flexDirection:"column"},banner:{backgroundImage:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",backgroundSize:"cover",height:150,justifyContent:"flex-end"},bannerText:{color:"coral",textAlign:"center"},tabs:{flexDirection:"row",height:30},tabText:{flex:1,textAlign:"center",backgroundColor:"#eee",color:"#999"},tabSelected:{flex:1,textAlign:"center",color:"#4c9afa",backgroundColor:"#fff"},itemEven:{height:40,backgroundColor:"gray"},itemEvenText:{lineHeight:40,color:"white",fontSize:20,textAlign:"center"},itemOdd:{height:40},itemOddText:{lineHeight:40,fontSize:20,textAlign:"center"}});class Xt extends l.a.Component{constructor(e){super(e),this.state={layoutHeight:0,currentSlide:0}}selectPage(e){var t;this.setState({currentSlide:e}),null===(t=this.viewPager)||void 0===t||t.setPage(e)}render(){const{layoutHeight:e,currentSlide:t}=this.state;return l.a.createElement(s.ScrollView,{style:Yt.demoWrap,scrollEventThrottle:50,onLayout:e=>this.setState({layoutHeight:e.layout.height})},l.a.createElement(s.View,{style:Yt.banner}),l.a.createElement(s.View,{style:Yt.tabs},l.a.createElement(s.Text,{key:"tab1",style:0===t?Yt.tabSelected:Yt.tabText,onClick:()=>this.selectPage(0)},"tab 1 (parent first)"),l.a.createElement(s.Text,{key:"tab2",style:1===t?Yt.tabSelected:Yt.tabText,onClick:()=>this.selectPage(1)},"tab 2 (self first)")),l.a.createElement(s.ViewPager,{ref:e=>this.viewPager=e,initialPage:t,style:{height:e-80},onPageSelected:e=>this.setState({currentSlide:e.position})},l.a.createElement(s.ListView,{nestedScrollTopPriority:"parent",key:"slide1",numberOfRows:30,getRowKey:e=>"item"+e,initialListSize:30,renderRow:e=>l.a.createElement(s.Text,{style:e%2?Yt.itemEvenText:Yt.itemOddText},"Item ",e),getRowStyle:e=>e%2?Yt.itemEven:Yt.itemOdd}),l.a.createElement(s.ListView,{nestedScrollTopPriority:"self",key:"slide2",numberOfRows:30,getRowKey:e=>"item"+e,initialListSize:30,renderRow:e=>l.a.createElement(s.Text,{style:e%2?Yt.itemEvenText:Yt.itemOddText},"Item ",e),getRowStyle:e=>e%2?Yt.itemEven:Yt.itemOdd})))}}function Jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Zt(e){for(var t=1;t 组件",component:$t.View,meta:{type:en.COMPONENT}},{path:"/Text",name:" 组件",component:$t.Text,meta:{type:en.COMPONENT}},{path:"/Image",name:" 组件",component:$t.Image,meta:{type:en.COMPONENT}},{path:"/ListView",name:" 组件",component:$t.ListView,meta:{type:en.COMPONENT}},{path:"/WaterfallView",name:" 组件",component:$t.WaterfallView,meta:{type:en.COMPONENT}},{path:"/PullHeader",name:" 组件",component:$t.PullHeaderFooter,meta:{type:en.COMPONENT}},{path:"/RefreshWrapper",name:" 组件",component:$t.RefreshWrapper,meta:{type:en.COMPONENT}},{path:"/ScrollView",name:" 组件",component:$t.ScrollView,meta:{type:en.COMPONENT}},{path:"/ViewPager",name:" 组件",component:$t.ViewPager,meta:{type:en.COMPONENT}},{path:"/TextInput",name:" 组件",component:$t.TextInput,meta:{type:en.COMPONENT}},{path:"/Modal",name:" 组件",component:$t.Modal,meta:{type:en.COMPONENT}},{path:"/Slider",name:" 组件",component:$t.Slider,meta:{type:en.COMPONENT}},{path:"/TabHost",name:" 组件",component:$t.TabHost,meta:{type:en.COMPONENT}},{path:"/WebView",name:" 组件",component:$t.WebView,meta:{type:en.COMPONENT}},{path:"/RippleViewAndroid",name:" 组件",component:$t.RippleViewAndroid,meta:{type:en.COMPONENT}},{path:"/Moduels",name:"Modules",meta:{type:en.TITLE,mapType:en.MODULE}},{path:"/Animation",name:"Animation 模块",component:$t.Animation,meta:{type:en.MODULE}},{path:"/WebSocket",name:"WebSocket 模块",component:$t.WebSocket,meta:{type:en.MODULE}},{path:"/NetInfo",name:"Network 模块",component:$t.NetInfo,meta:{type:en.MODULE}},{path:"/UIManagerModule",name:"UIManagerModule 模块",component:$t.UIManagerModule,meta:{type:en.MODULE}},{path:"/Others",name:"Others",meta:{type:en.TITLE,mapType:en.OTHER}},{path:"/NestedScroll",name:"NestedScroll 范例",component:$t.NestedScroll,meta:{type:en.OTHER}},{path:"/BoxShadow",name:"BoxShadow 范例",component:$t.BoxShadow,meta:{type:en.OTHER}},{path:"/SetNativeProps",name:"setNativeProps 范例",component:$t.SetNativeProps,meta:{type:en.OTHER}},{path:"/DynamicImport",name:"DynamicImport 范例",component:$t.DynamicImport,meta:{type:en.OTHER}},{path:"/Localization",name:"Localization 范例",component:$t.Localization,meta:{type:en.OTHER}},{path:"/Turbo",name:"Turbo 范例",component:$t.Turbo,meta:{type:en.OTHER}}],nn="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";const on="#1E304A",rn=s.StyleSheet.create({container:{marginTop:20,marginBottom:12,height:24,flexDirection:"row",alignItems:"center",justifyContent:"space-between"},backIcon:{tintColor:on,width:15,height:15},headerButton:{height:24,alignItems:"center",justifyContent:"center"},title:{fontSize:16,color:on,lineHeight:16}});var an=z(({history:e,route:t})=>0===e.index?l.a.createElement(s.View,{style:[rn.container]},l.a.createElement(s.View,null,l.a.createElement(s.Text,{numberOfLines:1,style:[rn.title]},t.name)),l.a.createElement(s.View,{style:rn.headerButton},l.a.createElement(s.Text,{numberOfLines:1,style:rn.title},"unspecified"!==s.default.version?""+s.default.version:"master"))):l.a.createElement(s.View,{style:[rn.container]},l.a.createElement(s.View,{onClick:()=>e.goBack(),style:[rn.headerButton]},l.a.createElement(s.Image,{style:rn.backIcon,source:{uri:nn}})),l.a.createElement(s.View,{style:rn.headerButton},l.a.createElement(s.Text,{numberOfLines:1,style:rn.title},t.name))));function ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function sn(e){for(var t=1;t{t[en[e]]=!1}),this.state={pressItem:"",dataSource:[...tn],typeVisibleState:t},this.renderRow=this.renderRow.bind(this),this.getRowType=this.getRowType.bind(this),this.getRowKey=this.getRowKey.bind(this),this.clickTo=this.clickTo.bind(this),this.clickToggle=this.clickToggle.bind(this)}componentDidMount(){const{history:e}=this.props;"android"===s.Platform.OS&&s.BackAndroid.addListener(()=>(console.log("BackAndroid"),0!==e.index&&(e.goBack(),!0)))}getRowType(e){const{dataSource:t}=this.state;return t[e].meta.type}getRowKey(e){const{dataSource:t}=this.state;return t[e].path||""+e}feedback(e){const t=e||"";this.setState({pressItem:t})}clickTo(e){const{history:t}=this.props;t.push(e)}clickToggle(e){this.setState({typeVisibleState:sn(sn({},this.state.typeVisibleState),{},{[e]:!this.state.typeVisibleState[e]})})}renderRow(e){const{dataSource:t,pressItem:n,typeVisibleState:o}=this.state,r=t[e],{type:i}=r.meta;if(i===en.TITLE){const{mapType:e}=r.meta;return l.a.createElement(s.View,{style:[cn.typeContainer,o[e]?{borderBottomLeftRadius:0,borderBottomRightRadius:0}:{borderBottomLeftRadius:4,borderBottomRightRadius:4}],onClick:()=>this.clickToggle(e)},l.a.createElement(s.Text,{style:cn.typeText},r.name),l.a.createElement(s.Image,{style:[cn.arrowIcon,o[e]?{transform:[{rotate:"-90deg"}]}:{transform:[{rotate:"180deg"}]}],source:{uri:nn}}))}let a=!1;const c=t[e+1],h=t.length-1;return(c&&c.meta.type===en.TITLE||e===h)&&(a=!0),l.a.createElement(s.View,{style:o[i]?{display:"flex"}:{display:"none"}},l.a.createElement(s.View,{onPressIn:()=>this.feedback(r.path),onPressOut:()=>this.feedback(),onClick:()=>this.clickTo(r.path),style:[cn.buttonView,{opacity:n===r.path?.5:1}]},l.a.createElement(s.Text,{style:cn.buttonText},r.name)),a?null:l.a.createElement(s.View,{style:cn.separatorLine}))}render(){const{dataSource:e}=this.state;return l.a.createElement(s.ListView,{style:{flex:1},numberOfRows:e.length,renderRow:this.renderRow,getRowType:this.getRowType,getRowKey:this.getRowKey,paintType:"fcp"})}}const un=[{path:"/Gallery",name:"Hippy React",component:z(hn)},...tn];var dn=()=>l.a.createElement(s.View,{style:{flex:1}},l.a.createElement(k,{initialEntries:["/Gallery"]},un.map(e=>{const t=e.component;return l.a.createElement(P,{key:e.path,exact:!0,path:""+e.path},l.a.createElement(s.View,{style:{flex:1}},l.a.createElement(an,{route:e}),l.a.createElement(t,null)))})));const mn={container:{flex:1,paddingHorizontal:16,backgroundColor:"#E5E5E5"}};class gn extends a.Component{render(){const{children:e}=this.props;return l.a.createElement(s.View,{style:mn.container,onLayout:this.onLayout},e)}}class fn extends a.Component{componentDidMount(){s.ConsoleModule.log("~~~~~~~~~~~~~~~~~ This is a log from ConsoleModule ~~~~~~~~~~~~~~~~~")}render(){return l.a.createElement(gn,null,l.a.createElement(dn,null))}}},"./src/main.js":function(e,t,n){"use strict";n.r(t),function(e){var t=n("../../packages/hippy-react/dist/index.js"),o=n("./src/app.jsx");e.Hippy.on("uncaughtException",e=>{console.error("uncaughtException error",e.stack,e.message)}),e.Hippy.on("unhandledRejection",e=>{console.error("unhandledRejection reason",e)}),new t.Hippy({appName:"Demo",entryPage:o.a,bubbles:!1,silent:!1}).start()}.call(this,n("./node_modules/webpack/buildin/global.js"))},0:function(e,t,n){n("./node_modules/regenerator-runtime/runtime.js"),e.exports=n("./src/main.js")},"dll-reference hippyReactBase":function(e,t){e.exports=hippyReactBase}}); \ No newline at end of file diff --git a/framework/voltron/example/assets/jsbundle/react/vendor.android.js b/framework/voltron/example/assets/jsbundle/react/vendor.android.js index b05f15601d9..f359e4c3d7d 100644 --- a/framework/voltron/example/assets/jsbundle/react/vendor.android.js +++ b/framework/voltron/example/assets/jsbundle/react/vendor.android.js @@ -1,7 +1,7 @@ -var hippyReactBase=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-react/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e,r){n.d(t,"Animated",(function(){return Cn})),n.d(t,"Animation",(function(){return Qe})),n.d(t,"AnimationSet",(function(){return Xe})),n.d(t,"AppRegistry",(function(){return vn})),n.d(t,"AsyncStorage",(function(){return Jn})),n.d(t,"BackAndroid",(function(){return Zn})),n.d(t,"Clipboard",(function(){return tr})),n.d(t,"ConsoleModule",(function(){return hr})),n.d(t,"Dimensions",(function(){return vr})),n.d(t,"Easing",(function(){return xn})),n.d(t,"EventBus",(function(){return Pe})),n.d(t,"Focusable",(function(){return Qn})),n.d(t,"Hippy",(function(){return yr})),n.d(t,"HippyEventEmitter",(function(){return Se})),n.d(t,"HippyEventListener",(function(){return Ee})),n.d(t,"HippyRegister",(function(){return ir})),n.d(t,"Image",(function(){return Sn})),n.d(t,"ImageBackground",(function(){return gr})),n.d(t,"ImageLoaderModule",(function(){return or})),n.d(t,"ListView",(function(){return _n})),n.d(t,"ListViewItem",(function(){return Nn})),n.d(t,"Modal",(function(){return $n})),n.d(t,"Navigator",(function(){return An})),n.d(t,"NetInfo",(function(){return ar})),n.d(t,"NetworkModule",(function(){return nr})),n.d(t,"PixelRatio",(function(){return br})),n.d(t,"Platform",(function(){return mr})),n.d(t,"PullFooter",(function(){return In})),n.d(t,"PullHeader",(function(){return Pn})),n.d(t,"RefreshWrapper",(function(){return Ln})),n.d(t,"ScrollView",(function(){return Wn})),n.d(t,"StyleSheet",(function(){return Dn})),n.d(t,"Text",(function(){return En})),n.d(t,"TextInput",(function(){return Fn})),n.d(t,"TimerModule",(function(){return pr})),n.d(t,"UIManagerModule",(function(){return lr})),n.d(t,"View",(function(){return bn})),n.d(t,"ViewPager",(function(){return zn})),n.d(t,"WaterfallView",(function(){return Xn})),n.d(t,"WebSocket",(function(){return Kn})),n.d(t,"WebView",(function(){return qn})),n.d(t,"callNative",(function(){return ur})),n.d(t,"callNativeWithCallbackId",(function(){return fr})),n.d(t,"callNativeWithPromise",(function(){return cr})),n.d(t,"colorParse",(function(){return He})),n.d(t,"default",(function(){return gn})),n.d(t,"flushSync",(function(){return sr})),n.d(t,"removeNativeCallback",(function(){return dr}));var i=n("./node_modules/react/index.js"),o=n.n(i),a=n("./node_modules/@hippy/react-reconciler/index.js"),l=n.n(a);const s=["children"],u=["collapsable","style"],c=["style"],f=["children","style","imageStyle","imageRef","source","sources","src","srcs","tintColor","tintColors"],d=["children"],p=["children"],h=["children","style","renderRow","renderPullHeader","renderPullFooter","getRowType","getRowStyle","getHeaderStyle","getFooterStyle","getRowKey","dataSource","initialListSize","rowShouldSticky","onRowLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","onAppear","onDisappear","onWillAppear","onWillDisappear"],m=["children"],y=["initialRoute"],g=["component"],v=["children","onPageScrollStateChanged"],b=["style","renderBanner","numberOfColumns","columnSpacing","interItemSpacing","numberOfItems","preloadItemNumber","renderItem","renderPullHeader","renderPullFooter","getItemType","getItemKey","getItemStyle","contentInset","onItemLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","containPullHeader","containPullFooter","containBannerView"];function w(){w=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,i){var o=new RegExp(e,r);return t.set(o,i||t.get(e)),k(o,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var i=r[n];if("number"==typeof i)t[n]=e[i];else{for(var o=0;void 0===e[i[o]]&&o+1]+)>/g,(function(e,t){var n=o[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof i){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,a)),i.apply(this,e)}))}return e[Symbol.replace].call(this,n,i)},w.apply(this,arguments)}function E(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&&k(e,t)}function k(e,t){return(k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t=0||(i[n]=e[n]);return i} +var hippyReactBase=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-react/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e,r){n.d(t,"Animated",(function(){return Nn})),n.d(t,"Animation",(function(){return qe})),n.d(t,"AnimationSet",(function(){return Je})),n.d(t,"AppRegistry",(function(){return wn})),n.d(t,"AsyncStorage",(function(){return er})),n.d(t,"BackAndroid",(function(){return tr})),n.d(t,"Clipboard",(function(){return rr})),n.d(t,"ConsoleModule",(function(){return yr})),n.d(t,"Dimensions",(function(){return wr})),n.d(t,"Easing",(function(){return Pn})),n.d(t,"EventBus",(function(){return Ie})),n.d(t,"Focusable",(function(){return Gn})),n.d(t,"Hippy",(function(){return vr})),n.d(t,"HippyEventEmitter",(function(){return xe})),n.d(t,"HippyEventListener",(function(){return ke})),n.d(t,"HippyRegister",(function(){return ar})),n.d(t,"Image",(function(){return Cn})),n.d(t,"ImageBackground",(function(){return br})),n.d(t,"ImageLoaderModule",(function(){return lr})),n.d(t,"ListView",(function(){return Tn})),n.d(t,"ListViewItem",(function(){return In})),n.d(t,"Modal",(function(){return qn})),n.d(t,"Navigator",(function(){return zn})),n.d(t,"NetInfo",(function(){return sr})),n.d(t,"NetworkModule",(function(){return ir})),n.d(t,"PixelRatio",(function(){return Er})),n.d(t,"Platform",(function(){return gr})),n.d(t,"PullFooter",(function(){return Ln})),n.d(t,"PullHeader",(function(){return _n})),n.d(t,"RefreshWrapper",(function(){return An})),n.d(t,"ScrollView",(function(){return $n})),n.d(t,"StyleSheet",(function(){return Wn})),n.d(t,"Text",(function(){return Sn})),n.d(t,"TextInput",(function(){return Mn})),n.d(t,"TimerModule",(function(){return mr})),n.d(t,"UIManagerModule",(function(){return ur})),n.d(t,"View",(function(){return En})),n.d(t,"ViewPager",(function(){return jn})),n.d(t,"WaterfallView",(function(){return Zn})),n.d(t,"WebSocket",(function(){return Xn})),n.d(t,"WebView",(function(){return Kn})),n.d(t,"callNative",(function(){return fr})),n.d(t,"callNativeWithCallbackId",(function(){return pr})),n.d(t,"callNativeWithPromise",(function(){return dr})),n.d(t,"colorParse",(function(){return Me})),n.d(t,"default",(function(){return bn})),n.d(t,"flushSync",(function(){return cr})),n.d(t,"removeNativeCallback",(function(){return hr}));var i=n("./node_modules/react/index.js"),o=n.n(i),a=n("./node_modules/@hippy/react-reconciler/index.js"),l=n.n(a);const s=["children"],u=["collapsable","style"],c=["style"],f=["children","style","imageStyle","imageRef","source","sources","src","srcs","tintColor","tintColors"],d=["children"],p=["children"],h=["children","style","renderRow","renderPullHeader","renderPullFooter","getRowType","getRowStyle","getHeaderStyle","getFooterStyle","getRowKey","dataSource","initialListSize","rowShouldSticky","onRowLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","onAppear","onDisappear","onWillAppear","onWillDisappear"],m=["children"],y=["initialRoute"],g=["component"],v=["children","onPageScrollStateChanged"],b=["style","renderBanner","renderFooter","numberOfColumns","columnSpacing","interItemSpacing","numberOfItems","preloadItemNumber","renderItem","renderPullHeader","renderPullFooter","getItemType","getItemKey","getItemStyle","contentInset","onItemLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","containPullHeader","containPullFooter","containBannerView"];function w(){w=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,i){var o=RegExp(e,r);return t.set(o,i||t.get(e)),k(o,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var i=r[n];if("number"==typeof i)t[n]=e[i];else{for(var o=0;void 0===e[i[o]]&&o+1]+)>/g,(function(e,t){var n=o[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof i){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,a)),i.apply(this,e)}))}return e[Symbol.replace].call(this,n,i)},w.apply(this,arguments)}function E(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&&k(e,t)}function k(e,t){return(k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t=0)continue;n[r]=e[r]}return n} /*! * @hippy/react vunspecified - * Build at: Fri Apr 12 2024 14:59:31 GMT+0800 (中国标准时间) + * Build at: Thu Nov 14 2024 11:26:33 GMT+0800 (中国标准时间) * * Tencent is pleased to support the open source community by making * Hippy available. @@ -20,7 +20,7 @@ var hippyReactBase=function(e){var t={};function n(r){if(t[r])return t[r].export * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}e.__GLOBAL__||(e.__GLOBAL__={}),e.__GLOBAL__.nodeId=0,e.__GLOBAL__.animationId=0;const{asyncStorage:P,bridge:I,device:_,document:L,register:T,on:A,off:R,emit:z}=e.Hippy;var O=Object.freeze({__proto__:null,addEventListener:A,removeEventListener:R,dispatchEvent:z,AsyncStorage:P,Bridge:I,Device:_,HippyRegister:T,UIManager:L});let j,F;const H=new Map;function M(e,t){F=e,j=t}function B(){if(!F)throw new Error("getRootViewId must execute after setRootContainer");return F}function D(e){if(!j)return null;const{current:t}=j,n=[t];for(;n.length;){const t=n.shift();if(!t)break;if(e(t))return t;t.child&&n.push(t.child),t.sibling&&n.push(t.sibling)}return null}function U(e,t){H.set(t,e)}function W(e){H.delete(e)}function V(e){return(null==e?void 0:e.stateNode)||null}function $(e){return H.get(e)||null}function Q(t){!function(t,n){if(!e.requestIdleCallback)return setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>1/0})},1);e.requestIdleCallback(t,n)}(e=>{(e.timeRemaining()>0||e.didTimeout)&&function e(t){"number"==typeof t?W(t):t&&(W(t.nodeId),Array.isArray(t.childNodes)&&t.childNodes.forEach(t=>e(t)))}(t)},{timeout:50})}const q=0,G=1,K=-1,Y=1,X={onTouchStart:["onTouchStart","onTouchDown"],onPress:["onPress","onClick"]},J={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3},Z={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"};const ee=new RegExp(/^\d+$/);let te=!1,ne=!1;function re(...e){ce()&&console.log(...e)}function ie(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)))}const oe=new RegExp("^on.+Capture$");function ae(e){return oe.test(e)}const le=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function se(e){return"[object Function]"===Object.prototype.toString.call(e)}function ue(e){te=e}function ce(){return!1}function fe(){return ne}function de(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){0;return`${"hpfile://"}./${e}`}return e}class pe{constructor(e){this.handlerContainer={},this.nextIdForHandler=0,this.eventName=e}getEventListeners(){return Object.keys(this.handlerContainer).filter(e=>this.handlerContainer[e]).map(e=>this.handlerContainer[e])}getHandlerSize(){return Object.keys(this.handlerContainer).length}addEventHandler(e,t){if(!e)throw new TypeError("Invalid arguments for addEventHandler");const n=this.nextIdForHandler;this.nextIdForHandler+=1;const r={id:n,eventHandler:e,context:t},i="eventHandler_"+n;return this.handlerContainer[i]=r,n}notifyEvent(...e){Object.keys(this.handlerContainer).forEach(t=>{const n=this.handlerContainer[t];n&&n.eventHandler&&(n.context?n.eventHandler.call(n.context,...e):n.eventHandler(...e))})}removeEventHandler(e){if("number"!=typeof e)throw new TypeError("Invalid arguments for removeEventHandler");const t="eventHandler_"+e;this.handlerContainer[t]&&delete this.handlerContainer[t]}}class he{constructor(e,t,n){this.type=e,this.bubbles=!0,this.currentTarget=t,this.target=n}stopPropagation(){this.bubbles=!1}preventDefault(){}}const me=new Map,ye=["%c[event]%c","color: green","color: auto"];function ge(e,t){return!(!t.memoizedProps||"function"!=typeof t.memoizedProps[e])}function ve(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for getHippyEventHub: "+e);return me.get(e)||null}const be={registerNativeEventHub:function(e){if(re(...ye,"registerNativeEventHub",e),"string"!=typeof e)throw new TypeError("Invalid eventName for registerNativeEventHub: "+e);let t=me.get(e);return t||(t=new pe(e),me.set(e,t)),t},getHippyEventHub:ve,unregisterNativeEventHub:function(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for unregisterNativeEventHub: "+e);me.has(e)&&me.delete(e)},receiveNativeEvent:function(e){if(re(...ye,"receiveNativeEvent",e),!e||!Array.isArray(e)||e.length<2)throw new TypeError("Invalid params for receiveNativeEvent: "+JSON.stringify(e));const[t,n]=e;if("string"!=typeof t)throw new TypeError("Invalid arguments for nativeEvent eventName");const r=ve(t);r&&r.notifyEvent(n)},receiveComponentEvent:function(e,t){if(re(...ye,"receiveComponentEvent",e),!e||!t)return;const{id:n,currentId:r,nativeName:i,originalName:o,params:a={}}=e,l=$(r),s=$(n);l&&s&&(Z[i]?function(e,t,n,r,i,o){try{let t=!1;const a=V(r),l=V(n),{eventPhase:s}=o;if(ge(e,n)&&ae(e)&&[J.AT_TARGET,J.CAPTURING_PHASE].indexOf(s)>-1){const t=new he(e,l,a);Object.assign(t,{eventPhase:s},i),n.memoizedProps[e](t),!t.bubbles&&o&&o.stopPropagation()}if(ge(e,n)&&!ae(e)&&[J.AT_TARGET,J.BUBBLING_PHASE].indexOf(s)>-1){const r=new he(e,l,a);Object.assign(r,{eventPhase:s},i),t=n.memoizedProps[e](r),"boolean"!=typeof t&&(t=!fe()),r.bubbles||(t=!0),t&&o&&o.stopPropagation()}}catch(e){console.error(e)}}(o,0,l,s,a,t):function(e,t,n,r,i,o){let a=!1;const l=V(r),s=V(n);try{const{eventPhase:t}=o;if(ge(e,n)&&!ae(e)&&[J.AT_TARGET,J.BUBBLING_PHASE].indexOf(t)>-1){const r=new he(e,s,l);Object.assign(r,{eventPhase:t},i),n.memoizedProps[e](r),a=!fe(),r.bubbles||(a=!0),a&&o&&o.stopPropagation()}}catch(e){console.error(e)}}(o,0,l,s,a,t))}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=be);class we{constructor(e,t){this.callback=e,this.bindListener=t}remove(){"number"==typeof this.callback&&this.bindListener&&(this.bindListener.removeCallback(this.callback),this.bindListener=void 0)}}class Ee{constructor(e){this.eventName=e,this.listenerIdList=[]}unregister(){const e=be.getHippyEventHub(this.eventName);if(!e)throw new ReferenceError("No listeners for "+this.eventName);const t=this.listenerIdList.length;for(let n=0;n{if("string"!=typeof e&&!Array.isArray(e)||"function"!=typeof t)throw new TypeError("Invalid arguments for EventBus.on()");return Array.isArray(e)?e.forEach(e=>{xe(e,t,n)}):xe(e,t,n),Pe},off:(e,t)=>{if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("The event argument is not string or array for EventBus.off()");return Array.isArray(e)?e.forEach(e=>{Ne(e,t)}):Ne(e,t),Pe},sizeOf(e){if("string"!=typeof e)throw new TypeError("The event argument is not string for EventBus.sizeOf()");const t=Ce[e];return(null==t?void 0:t.eventMap)?t.eventMap.size:0},emit(e,...t){if("string"!=typeof e)throw new TypeError("The event argument is not string for EventBus.emit()");const n=be.getHippyEventHub(e);return n?(n.notifyEvent(...t),Pe):Pe}};function Ie(...e){return`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`}const _e={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Le="[-+]?\\d*\\.?\\d+",Te={rgb:new RegExp("rgb"+Ie(Le,Le,Le)),rgba:new RegExp("rgba"+Ie(Le,Le,Le,Le)),hsl:new RegExp("hsl"+Ie(Le,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+Ie(Le,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",Le)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/};function Ae(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Re(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ze(e,t,n){let r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Oe(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=ze(i,r,e+1/3),a=ze(i,r,e),l=ze(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function je(e){return(parseFloat(e)%360+360)%360/360}function Fe(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function He(e){if(Number.isInteger(e))return e;let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Te.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(_e,e)?_e[e]:(t=Te.rgb.exec(e),Array.isArray(t)?(Ae(t[1])<<24|Ae(t[2])<<16|Ae(t[3])<<8|255)>>>0:(t=Te.rgba.exec(e),t?(Ae(t[1])<<24|Ae(t[2])<<16|Ae(t[3])<<8|Re(t[4]))>>>0:(t=Te.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Te.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=Te.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Te.hsl.exec(e),t?(255|Oe(je(t[1]),Fe(t[2]),Fe(t[3])))>>>0:(t=Te.hsla.exec(e),t?(Oe(je(t[1]),Fe(t[2]),Fe(t[3]))|Re(t[4]))>>>0:null))))))))}(e);return null===t?0:(t=(t<<24|t>>>8)>>>0,t)}function Me(e){return Array.isArray(e)?e.map(e=>He(e)):[0]}function Be(e){return"loop"===e?-1:e}function De(e,t){return"color"===e&&["number","string"].indexOf(typeof t)>=0?He(t):t}const Ue="animationstart",We="animationend",Ve="animationcancel",$e="animationrepeat";class Qe{constructor(t){var n;let r;if((null===(n=t.startValue)||void 0===n?void 0:n.constructor)&&"Animation"===t.startValue.constructor.name)r={animationId:t.startValue.animationId};else{const{startValue:e}=t;r=De(t.valueType,e)}const i=De(t.valueType,t.toValue);this.mode=t.mode||"timing",this.delay=t.delay||0,this.startValue=r||0,this.toValue=i||0,this.valueType=t.valueType||void 0,this.duration=t.duration||0,this.direction=t.direction||"center",this.timingFunction=t.timingFunction||"linear",this.repeatCount=Be(t.repeatCount||0),this.inputRange=t.inputRange||[],this.outputRange=t.outputRange||[],this.animation=new e.Hippy.Animation(Object.assign({mode:this.mode,delay:this.delay,startValue:this.startValue,toValue:this.toValue,duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{})),this.animationId=this.animation.getId(),this.destroy=this.destroy.bind(this),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}removeEventListener(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(Ue),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(We),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(Ve),"function"==typeof this.onAnimationRepeatCallback&&this.animation.removeEventListener($e)}start(){if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(Ue,()=>{"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback()}),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(We,()=>{"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback()}),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener(Ve,()=>{"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback()}),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener($e,()=>{"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()}),this.animation.start()}destroy(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}pause(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}resume(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}updateAnimation(e){if(!this.animation)throw new Error("animation has not been initialized yet");if("object"!=typeof e)throw new TypeError("Invalid arguments");if("string"==typeof e.mode&&e.mode!==this.mode)throw new TypeError("Update animation mode not supported");Object.keys(e).forEach(t=>{const n=e[t];if("startValue"===t){let t;if(e.startValue instanceof Qe)t={animationId:e.startValue.animationId};else{const{startValue:n}=e;t=De(this.valueType,n)}this.startValue=t||0}else"repeatCount"===t?this.repeatCount=Be(e.repeatCount||0):Object.defineProperty(this,t,{value:n})}),this.animation.updateAnimation(Object.assign({mode:this.mode,delay:this.delay,startValue:this.startValue,toValue:De(this.valueType,this.toValue),duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{}))}onAnimationStart(e){this.onAnimationStartCallback=e}onAnimationEnd(e){this.onAnimationEndCallback=e}onAnimationCancel(e){this.onAnimationCancelCallback=e}onAnimationRepeat(e){this.onAnimationRepeatCallback=e}}const qe="animationstart",Ge="animationend",Ke="animationcancel",Ye="animationrepeat";class Xe{constructor(t){this.animationList=[],null==t||t.children.forEach(e=>{this.animationList.push({animationId:e.animation.animationId,follow:e.follow||!1})}),this.animation=new e.Hippy.AnimationSet({repeatCount:Be(t.repeatCount||0),children:this.animationList}),this.animationId=this.animation.getId(),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}removeEventListener(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(qe),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(Ge),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(Ke),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(Ye)}start(){if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(qe,()=>{"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback()}),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(Ge,()=>{"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback()}),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener(Ke,()=>{"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback()}),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener(Ke,()=>{"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()}),this.animation.start()}destory(){this.destroy()}destroy(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}pause(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}resume(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}onAnimationStart(e){this.onAnimationStartCallback=e}onAnimationEnd(e){this.onAnimationEndCallback=e}onAnimationCancel(e){this.onAnimationCancelCallback=e}onAnimationRepeat(e){this.onAnimationRepeatCallback=e}}const Je={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode"),moveNode:Symbol("moveNode")};let Ze=!0,et=[];function tt(e=[],t){e.forEach(e=>{if(e){const{id:n,eventList:r}=e;r.forEach(e=>{const{name:r,type:i,listener:o,isCapture:a}=e;let l;l=function(e){return!!Z[e]}(r)?Z[r]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(r),i===G&&t.removeEventListener(n,l,o),i===q&&t.addEventListener(n,l,o,a)})}})}function nt(e,t){0}function rt(t){const n=function(e){const t=[];for(let n=0;n{switch(e.type){case Je.createNode:nt(e.printedNodes),r.create(e.nodes),tt(e.eventNodes,r);break;case Je.updateNode:nt(e.printedNodes),r.update(e.nodes),tt(e.eventNodes,r);break;case Je.deleteNode:nt(e.printedNodes),r.delete(e.nodes);break;case Je.moveNode:nt(e.printedNodes),r.move(e.nodes)}}),r.build()}function it(e=!1){if(!Ze)return;if(Ze=!1,0===et.length)return void(Ze=!0);const t=B();e?(rt(t),et=[],Ze=!0):Promise.resolve().then(()=>{rt(t),et=[],Ze=!0})}function ot(e){const t=e.attributes,{children:n}=t;return N(t,s)}function at(e,t,n={}){var r;if(!t.nativeName)return[];if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: "+t.tagName);const i={id:t.nodeId,pId:(null===(r=t.parentNode)||void 0===r?void 0:r.nodeId)||e,name:t.nativeName,props:C(C({},ot(t)),{},{style:t.style}),tagName:t.tagName},o=function(e){let t=void 0;const n=e.events;if(n){const r=[];Object.keys(n).forEach(t=>{const{name:i,type:o,isCapture:a,listener:l}=n[t];e.isListenerHandled(t,o)||(e.setListenerHandledType(t,o),r.push({name:i,type:o,isCapture:a,listener:l}))}),t={id:e.nodeId,eventList:r}}return t}(t);let a=void 0;return[[i,n],o,a]}function lt(e,t,n,r={}){const i=[],o=[],a=[];return t.traverseChildren((t,r)=>{const[l,s,u]=at(e,t,r);l&&i.push(l),s&&o.push(s),u&&a.push(u),"function"==typeof n&&n(t)},r),[i,o,a]}function st(e){return!!j&&e instanceof j.containerInfo.constructor}function ut(e,t,n={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;const r=B(),i=st(e)&&!e.isMounted,o=e.isMounted&&!t.isMounted;if(i||o){const[e,i,o]=lt(r,t,e=>{e.isMounted||(e.isMounted=!0)},n);et.push({type:Je.createNode,nodes:e,eventNodes:i,printedNodes:o})}}function ct(e){if(!e.isMounted)return;const t=B(),[n,r,i]=at(t,e);n&&et.push({type:Je.updateNode,nodes:[n],eventNodes:[r],printedNodes:[]})}let ft=0;class dt{constructor(){this.meta={component:{}},this.index=0,this.childNodes=[],this.parentNode=null,this.mounted=!1,this.nodeId=(ft+=1,ft%10==0&&(ft+=1),ft)}toString(){return this.constructor.name}get isMounted(){return this.mounted}set isMounted(e){this.mounted=e}insertBefore(e,t){if(!e)throw new Error("Can't insert child.");if(e.meta.skipAddToDom)return;if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't insert child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't insert child, because it already has a different parent.");const n=this.childNodes.indexOf(t);return e.parentNode=this,this.childNodes.splice(n,0,e),ut(this,e,{refId:t.nodeId,relativeToRef:K})}moveChild(e,t){if(!e)throw new Error("Can't move child.");if(e.meta.skipAddToDom)return;if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't move child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't move child, because it already has a different parent.");const n=this.childNodes.indexOf(e);if(this.childNodes.indexOf(t)===n)return e;this.childNodes.splice(n,1);const r=this.childNodes.indexOf(t);return this.childNodes.splice(r,0,e),function(e,t,n={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;const r=B(),i={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},o=[[i,n]],a=[];et.push({printedNodes:a,type:Je.moveNode,nodes:o,eventNodes:[]})}(this,e,{refId:t.nodeId,relativeToRef:K})}appendChild(e){if(!e)throw new Error("Can't append child.");if(e.meta.skipAddToDom)return;if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");e.parentNode=this;const t=this.childNodes.length-1,n=this.childNodes[t];this.childNodes.push(e),ut(this,e,n&&{refId:n.nodeId,relativeToRef:Y})}removeChild(e){if(!e)throw new Error("Can't remove child.");if(e.meta.skipAddToDom)return;if(!e.parentNode)throw new Error("Can't remove child, because it has no parent.");if(e.parentNode!==this)throw new Error("Can't remove child, because it has a different parent.");const t=this.childNodes.indexOf(e);this.childNodes.splice(t,1),function(e,t){if(!t||t.meta.skipAddToDom)return;t.isMounted=!1;const n=B(),r={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:n},i=[[r,{}]],o=[];et.push({printedNodes:o,type:Je.deleteNode,nodes:i,eventNodes:[]})}(0,e)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(let t=0;t{this.traverseChildren.call(t,e,{})})}}const pt={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},ht={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},mt="turn",yt="rad",gt="deg";function vt(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=w(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(!Array.isArray(n))return;let r="180";const[i,o,a]=n;return o&&a?r=function(e,t=gt){const n=parseFloat(e);let r=e||"";const[,i]=e.split(".");switch(i&&i.length>2&&(r=n.toFixed(2)),t){case mt:r=""+(360*n).toFixed(2);break;case yt:r=""+(180/Math.PI*n).toFixed(2)}return r}(o,a):i&&void 0!==ht[i]&&(r=ht[i]),r}function bt(e){const t=(e||"").replace(/\s+/g," ").trim(),[n,r]=t.split(/\s+(?![^(]*?\))/),i=/^([+-]?\d+\.?\d*)%$/g;return!n||i.exec(n)||r?n&&i.exec(r)?{ratio:parseFloat(r.split("%")[0])/100,color:He(n)}:void 0:{color:He(n)}}class wt extends dt{constructor(e){super(),this.id="",this.style={},this.attributes={},this.events={},this.tagName=e}get nativeName(){return this.meta.component.name}toString(){return`${this.tagName}:(${this.nativeName})`}setListenerHandledType(e,t){this.events[e]&&(this.events[e].handledType=t)}isListenerHandled(e,t){return!this.events[e]||t===this.events[e].handledType}hasAttribute(e){return!!this.attributes[e]}getAttribute(e){return this.attributes[e]}setStyleAttribute(e){this.style={};let t=e;if(!Array.isArray(t)&&Object.hasOwnProperty.call(t,0)){const e=[],n={};Object.keys(t).forEach(r=>{var i;i=r,ee.test(i)?e.push(t[r]):n[r]=t[r]}),t=[...e,n]}Array.isArray(t)||(t=[t]);let n={};t.forEach(e=>{Array.isArray(e)?e.forEach(e=>{n=C(C({},n),e)}):"object"==typeof e&&e&&(n=C(C({},n),e))}),Object.keys(n).forEach(e=>{const t=n[e];if(Object.prototype.hasOwnProperty.call(pt,e)&&(e=pt[e]),"transform"===e){const e={};if(!Array.isArray(t))throw new TypeError("transform only support array args");t.forEach(t=>{Object.keys(t).forEach(n=>{const r=t[n];r instanceof Qe||r instanceof Xe?e[n]={animationId:r.animationId}:null===r?e[n]&&delete e[n]:void 0!==r&&(e[n]=r)})});const n=Object.keys(e);n.length&&(Array.isArray(this.style.transform)||(this.style.transform=[]),n.forEach(t=>this.style.transform.push({[t]:e[t]})))}else if(null===t&&void 0!==this.style[e])this.style[e]=void 0;else if(t instanceof Qe||t instanceof Xe)this.style[e]={animationId:t.animationId};else if(e.toLowerCase().indexOf("colors")>-1)this.style[e]=Me(t);else if(e.toLowerCase().indexOf("color")>-1)this.style[e]=He(t);else if("fontWeight"===e&&t)this.style[e]="string"!=typeof t?t.toString():t;else if("backgroundImage"===e&&t)this.style=function(e,t,n){if(0===t.indexOf("linear-gradient")){const e=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),r=[];n.linearGradient=n.linearGradient||{},e.forEach((e,t)=>{if(0===t){const t=vt(e);if(t)n.linearGradient.angle=t;else{n.linearGradient.angle="180";const t=bt(e);t&&r.push(t)}}else{const t=bt(e);t&&r.push(t)}}),n.linearGradient.colorStopList=r}else n[e]=de(t);return n}(e,t,this.style);else if("textShadowOffset"===e){const{x:n=0,width:r=0,y:i=0,height:o=0}=t||{};this.style[e]={width:n||r,height:i||o}}else["textShadowOffsetX","textShadowOffsetY"].indexOf(e)>=0?this.style=function(e,t,n){return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[{textShadowOffsetX:"width",textShadowOffsetY:"height"}[e]]:t||0}),n}(e,t,this.style):this.style[e]=t})}setAttributes(e=[]){Array.isArray(e)&&e.length>0&&(e.forEach(e=>{if(Array.isArray(e)){const[t,n]=e;this.setAttribute(t,n,{notToNative:!0})}}),ct(this))}parseAnimationStyleProp(e){let t=!1;Object.keys(e).some(n=>{const r=e[n];if(r&&Array.isArray(r)&&"transform"===n)for(let e=0;e["id"].indexOf(e)>=0,action:()=>(t===this.id||(this.id=t,function(e){if(!e.isMounted)return;const t=B(),[n,r,i]=lt(t,e)||{};n&&et.push({type:Je.updateNode,nodes:n,eventNodes:r,printedNodes:i})}(this)),!0)},{match:()=>["value","defaultValue","placeholder"].indexOf(e)>=0,action:()=>(this.attributes[e]=ie(t),!1)},{match:()=>["text"].indexOf(e)>=0,action:()=>(this.attributes[e]=t,!1)},{match:()=>["style"].indexOf(e)>=0,action:()=>"object"!=typeof t||null==t||(this.setStyleAttribute(t),!1)},{match:()=>!0,action:()=>{if("function"==typeof t){const t=function(e){return ae(e)&&(e=e.replace("Capture","")),X[e]?X[e][1]:e}(e);this.events[e]?this.events[e]&&this.events[e].type!==q&&(this.events[e].type=q):this.events[e]={name:t,type:q,isCapture:ae(e),listener:(n=t,r=e,e=>{const{id:t,currentId:i,params:o,eventPhase:a}=e,l={id:t,nativeName:n,originalName:r,params:o,currentId:i,eventPhase:a};be.receiveComponentEvent(l,e)})}}else{if(function(e,t){return void 0!==t&&"object"==typeof t[e]&&!!t[e]}(e,this.events)&&"function"!=typeof t)return this.events[e].type=G,!1;this.attributes[e]=t}var n,r;return!1}}].some(e=>!!e.match()&&(n=e.action(),!0)),n}setAttribute(e,t,n={}){try{if("boolean"==typeof this.attributes[e]&&""===t&&(t=!0),void 0===e)return void(!n.notToNative&&ct(this));if(this.parseAttributeProp(e,t))return;this.parseAnimationStyleProp(this.style),!n.notToNative&&ct(this)}catch(e){}}removeAttribute(e){delete this.attributes[e]}setStyle(e,t,n=!1){if(null===t)return void delete this.style[e];let r=t,i=e;Object.prototype.hasOwnProperty.call(pt,e)&&(i=pt[e]),"string"==typeof r&&(r=t.trim(),r=i.toLowerCase().indexOf("colors")>-1?Me(r):i.toLowerCase().indexOf("color")>-1?He(r):function(e){if("number"==typeof e)return e;if("string"==typeof e&&le.test(e))try{return parseFloat(e)}catch(t){return e}return e}(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||ct(this))}setNativeProps(e){if(e){const{style:t}=e;if(t){const e=t;Object.keys(e).forEach(t=>{this.setStyle(t,e[t],!0)}),ct(this),it(!0)}}}setText(e){if("string"!=typeof e)try{e=e.toString()}catch(e){throw new Error("Only string type is acceptable for setText")}return(e=e.trim())||this.getAttribute("text")?(e=(e=ie(e)).replace(/ /g," ").replace(/Â/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}class Et extends dt{constructor(){super(),this.documentElement=new wt("document")}createElement(e){return new wt(e)}createElementNS(e,t){return new wt(`${e}:${t}`)}}Et.createElement=Et.prototype.createElement,Et.createElementNS=Et.prototype.createElementNS;var kt=Array.isArray,St=Object.keys,Ct=Object.prototype.hasOwnProperty;const xt=setTimeout,Nt=clearTimeout;var Pt=Object.freeze({__proto__:null,commitMutationEffectsBegin:function(){},commitMutationEffectsComplete:function(){it(!0)},getCurrentEventPriority:function(){return 16},scheduleTimeout:xt,cancelTimeout:Nt,noTimeout:-1,afterActiveInstanceBlur:function(){},appendChild:function(e,t){e.childNodes.indexOf(t)>=0&&e.removeChild(t),e.appendChild(t)},appendChildToContainer:function(e,t){e.appendChild(t)},appendInitialChild:function(e,t){e.appendChild(t)},beforeActiveInstanceBlur:function(){},commitMount:function(){},commitTextUpdate:function(){},commitUpdate:function(e,t,n,r,i,o){U(o,e.nodeId);const a=Object.keys(t||{});if(0===a.length)return;const l=a.map(e=>[e,t[e]]);e.setAttributes(l)},clearContainer:function(){},createContainerChildSet:function(){},createInstance:function(e,t,n,r,i){const o=n.createElement(e);return Object.keys(t).forEach(e=>{switch(e){case"children":break;case"nativeName":o.meta.component.name=t.nativeName;break;default:o.setAttribute(e,t[e])}}),[5,7].indexOf(i.tag)<0&&(o.meta.skipAddToDom=!0),U(i,o.nodeId),o},createTextInstance:function(e,t,n,r){const i=t.createElement("p");return i.setAttribute("text",ie(e)),i.meta={component:{name:"Text"}},U(r,i.nodeId),i},detachDeletedInstance:function(){},finalizeContainerChildren:function(){},finalizeInitialChildren:function(){return!0},getChildHostContext:function(){return{}},getPublicInstance:function(e){return e},getInstanceFromNode:function(){throw new Error("Not yet implemented.")},getFundamentalComponentInstance:function(){throw new Error("Not yet implemented.")},getRootHostContext:function(){return{}},hideInstance:function(e){const t={style:{display:"none"}};Object.keys(t).forEach(n=>e.setAttribute(n,t[n]))},hideTextInstance:function(){throw new Error("Not yet implemented.")},insertBefore:function(e,t,n){e.childNodes.indexOf(t)>=0?e.moveChild(t,n):e.insertBefore(t,n)},isOpaqueHydratingObject:function(){throw new Error("Not yet implemented")},makeClientId:function(){throw new Error("Not yet implemented")},makeClientIdInDEV:function(){throw new Error("Not yet implemented")},makeOpaqueHydratingObject:function(){throw new Error("Not yet implemented.")},mountFundamentalComponent:function(){throw new Error("Not yet implemented.")},prepareForCommit:function(){return null},preparePortalMount:function(){},prepareUpdate:function(e,t,n,r){const i={};return Object.keys(n).forEach(e=>{const t=n[e],o=r[e];null!=t&&null==o&&(i[e]=o)}),Object.keys(r).forEach(e=>{const t=n[e],o=r[e];switch(e){case"children":t===o||"number"!=typeof o&&"string"!=typeof o||(i[e]=o);break;default:null!=o&&null==t?i[e]=o:"function"==typeof o||function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,i,o,a=kt(t),l=kt(n);if(a&&l){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=l)return!1;var s=t instanceof Date,u=n instanceof Date;if(s!=u)return!1;if(s&&u)return t.getTime()==n.getTime();var c=t instanceof RegExp,f=n instanceof RegExp;if(c!=f)return!1;if(c&&f)return t.toString()==n.toString();var d=St(t);if((i=d.length)!==St(n).length)return!1;for(r=i;0!=r--;)if(!Ct.call(n,d[r]))return!1;for(r=i;0!=r--;)if(!e(t[o=d[r]],n[o]))return!1;return!0}return t!=t&&n!=n}(t,o)||(i[e]=o)}}),i},replaceContainerChildren:function(){},removeChild:function(e,t){e.removeChild(t),Q(t)},removeChildFromContainer:function(e,t){e.removeChild(t),Q(t)},resetAfterCommit:function(){},resetTextContent:function(){},unmountFundamentalComponent:function(){throw new Error("Not yet implemented.")},updateFundamentalComponent:function(){throw new Error("Not yet implemented.")},unhideTextInstance:function(){throw new Error("Not yet implemented.")},unhideInstance:function(e,t){const n=C(C({},t),{},{style:C(C({},t.style),{},{display:"flex"})});Object.keys(n).forEach(t=>e.setAttribute(t,n[t]))},shouldDeprioritizeSubtree:function(){return!0},shouldUpdateFundamentalComponent:function(){throw new Error("Not yet implemented.")},shouldSetTextContent:function(e,t){if(t&&"Text"===t.nativeName||-1!==["p","span"].indexOf(e)){const{children:e}=t;return"string"==typeof e||"number"==typeof e}return!1}});const It=l()(C(C({},Pt),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:()=>{},cancelDeferredCallback:()=>{}}));var _t=Object.freeze({__proto__:null,getString:function(){return I.callNativeWithPromise("ClipboardModule","getString")},setString:function(e){I.callNative("ClipboardModule","setString",e)}});var Lt=Object.freeze({__proto__:null,getCookies:function(e){return I.callNativeWithPromise("network","getCookie",e)},setCookie:function(e,t,n){let r="";"string"==typeof n&&(r=n),n instanceof Date&&(r=n.toUTCString()),I.callNative("network","setCookie",e,t,r)}});function Tt(e){return I.callNativeWithPromise("ImageLoaderModule","getSize",e)}function At(e){I.callNative("ImageLoaderModule","prefetch",e)}var Rt=Object.freeze({__proto__:null,getSize:Tt,prefetch:At});const zt=new Map,Ot=new Se;class jt{constructor(e,t){this.eventName=e,this.listener=t}remove(){this.eventName&&this.listener&&(Ft(this.eventName,this.listener),this.listener=void 0)}}function Ft(e,t){if(t instanceof jt)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange");const r=zt.get(t);if(!r)return;r.remove(),zt.delete(t);Ot.listenerSize(n)<1&&I.callNative("NetInfo","removeListener",n)}var Ht=Object.freeze({__proto__:null,addEventListener:function(e,t){let n=e;n&&"change"===n&&(n="networkStatusDidChange"),Ot.listenerSize(n)<1&&I.callNative("NetInfo","addListener",n);const r=Ot.addListener(n,e=>{t(e)});return zt.set(t,r),new jt(n,t)},removeEventListener:Ft,fetch:function(){return I.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)}});const{createNode:Mt,updateNode:Bt,deleteNode:Dt,flushBatch:Ut,endBatch:Wt,sendRenderError:Vt}=L,$t=["%c[native]%c","color: red","color: auto"],Qt=function(e){return D(t=>t.stateNode&&t.stateNode.nodeId===e)};function qt(e){if(e instanceof wt)return e;if(!e)return null;const t=e._reactInternalFiber||e._reactInternals;if(null==t?void 0:t.child){let e=t.child;for(;e&&!(e.stateNode instanceof wt);)e=e.child;return e&&e.stateNode?e.stateNode:null}return null}function Gt(e){let t=e;if("string"==typeof e){const n=D(t=>!!(t.return&&t.return.ref&&t.return.ref._stringRef)&&t.return.ref._stringRef===e);if(!n||!n.stateNode)return 0;t=n.stateNode}if(!t.nodeId){const e=qt(t);return e?e.nodeId:0}return t.nodeId}function Kt(e,t,...n){let{nativeName:r,nodeId:i}=e;if(!i||!r){const t=qt(e);t&&({nodeId:i,nativeName:r}=t)}if(!r)throw new Error("callUIFunction is calling a unnamed component");if(!i)throw new Error("callUIFunction is calling a component have no nodeId");let[o=[],a]=n;se(o)&&(a=o,o=[]);null!==B()&&(re(...$t,"callUIFunction",{nodeId:i,funcName:t,paramList:o}),L.callUIFunction(i,t,o,a))}function Yt(e,t,n){const r=Gt(t);return new Promise((t,i)=>r?(re(...$t,"callUIFunction",{nodeId:r,funcName:e,paramList:[]}),L.callUIFunction(r,e,[],e=>(n&&se(n)&&n(e),"this view is null"===e?i(new Error("Android cannot get the node")):t(e)))):(n&&se(n)&&n("this view is null"),i(new Error(e+" cannot get nodeId"))))}var Xt=Object.freeze({__proto__:null,createNode:Mt,updateNode:Bt,deleteNode:Dt,flushBatch:Ut,endBatch:Wt,sendRenderError:Vt,getNodeById:Qt,getNodeIdByRef:Gt,getElementFromFiberRef:qt,callUIFunction:Kt,getBoundingClientRect:function(e,t){const n=Gt(e);return new Promise((r,i)=>n?(re(...$t,"callUIFunction",{nodeId:n,funcName:"getBoundingClientRect",params:t}),L.callUIFunction(n,"getBoundingClientRect",[t],e=>{if(!e||e.errMsg)return i(new Error((null==e?void 0:e.errMsg)||"getBoundingClientRect error with no response"));const{x:t,y:n,width:o,height:a}=e;let l=void 0,s=void 0;return"number"==typeof n&&"number"==typeof a&&(l=n+a),"number"==typeof t&&"number"==typeof o&&(s=t+o),r({x:t,y:n,width:o,height:a,bottom:l,right:s,left:t,top:n})})):i(new Error("getBoundingClientRect cannot get nodeId of "+e)))},measureInWindow:function(e,t){return Yt("measureInWindow",e,t)},measureInAppWindow:function(e,t){return"android"===_.platform.OS?Yt("measureInWindow",e,t):Yt("measureInAppWindow",e,t)}});const Jt=new Se,Zt=new Set,en={exitApp(){I.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(I.callNative("DeviceEventModule","setListenBackPress",!0),Zt.add(e),{remove(){en.removeListener(e)}}),removeListener(e){Zt.delete(e),0===Zt.size&&I.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){Jt.addListener("hardwareBackPress",()=>{let e=!0;[...Zt].reverse().every(t=>"function"!=typeof t||!t()||(e=!1,!1)),e&&en.exitApp()})}},tn=(en.initEventListener(),en),{flushSync:nn}=It,{addEventListener:rn,removeEventListener:on,dispatchEvent:an,AsyncStorage:ln,Bridge:sn,Device:un,HippyRegister:cn}=O;var fn=Object.freeze({__proto__:null,addEventListener:rn,removeEventListener:on,dispatchEvent:an,AsyncStorage:ln,BackAndroid:tn,Bridge:sn,Clipboard:_t,Cookie:Lt,Device:un,HippyRegister:cn,ImageLoader:Rt,NetworkInfo:Ht,UIManager:Xt,flushSync:nn});const{createContainer:dn,updateContainer:pn,getPublicRootInstance:hn,injectIntoDevTools:mn}=It,yn=['%c[Hippy-React "unspecified"]%c',"color: #61dafb","color: auto"];class gn{constructor(e){if(!e.appName||!e.entryPage)throw new TypeError("Invalid arguments");this.config=e,this.regist=this.start,this.render=this.render.bind(this);const t=new Et;this.rootContainer=dn(t,0,!1,null)}static get Native(){return fn}start(){cn.regist(this.config.appName,this.render)}render(e){const{appName:t,entryPage:n,silent:r=!1,bubbles:i=!1,callback:a=(()=>{})}=this.config,{__instanceId__:l}=e;re(...yn,"Start",t,"with rootViewId",l,e),this.rootContainer.containerInfo.nodeId=l,r&&ue(r),i&&function(e=!1){ne=e}(i),M(l,this.rootContainer);const s=o.a.createElement(n,e);return pn(s,this.rootContainer,null,a),hn(this.rootContainer)}}gn.version="unspecified";const vn={registerComponent(e,t){new gn({appName:e,entryPage:t}).start()}};class bn extends o.a.Component{constructor(){super(...arguments),this.instance=null}setPressed(e){Kt(this.instance,"setPressed",[e])}setHotspot(e,t){Kt(this.instance,"setHotspot",[e,t])}render(){const e=this.props,{collapsable:t,style:n={}}=e,r=N(e,u),i=n,{nativeBackgroundAndroid:a}=r;return"boolean"==typeof t&&(i.collapsable=t),void 0!==(null==a?void 0:a.color)&&(a.color=He(a.color)),o.a.createElement("div",C({ref:e=>{this.instance=e},nativeName:"View",style:i},r))}}function wn(e,t){let{style:n}=e,r=N(e,c);const i=n;if(n&&(Array.isArray(n)?-1===n.filter(e=>"object"==typeof e&&e).findIndex(e=>e.color||e.colors)&&(i[0].color="#000"):"object"==typeof n&&void 0===n.color&&void 0===n.colors&&(i.color="#000")),r.text="","string"==typeof r.children)r.text=ie(r.children);else if("number"==typeof r.children)r.text=ie(r.children.toString());else if(Array.isArray(r.children)){const e=r.children.filter(e=>"string"==typeof e||"number"==typeof e).join("");e&&(r.text=ie(e),r.children=r.text)}return o.a.createElement("p",C({ref:t,nativeName:"Text",style:i},r))}wn.displayName="Text";const En=o.a.forwardRef(wn);En.displayName="Text";var kn=Object.freeze({__proto__:null,default:En});class Sn extends o.a.Component{static get resizeMode(){return{contain:"contain",cover:"cover",stretch:"stretch",center:"center",repeat:"repeat"}}static getSize(e,t,n){if("string"!=typeof e)throw new TypeError("Image.getSize first argument must be a string url");const r=Tt(e);return"function"==typeof t&&r.then(e=>t(e.width,e.height)),"function"==typeof n?r.catch(n):r.catch(e=>{}),r}render(){const e=this.props,{children:t,style:n,imageStyle:r,imageRef:i,source:a,sources:l,src:s,srcs:u,tintColor:c,tintColors:d}=e,p=N(e,f),h=this.getImageUrls({src:s,srcs:u,source:a,sources:l});1===h.length?[p.src]=h:h.length>1&&(p.srcs=h),"string"==typeof p.defaultSource&&(p.defaultSource.indexOf("data:image/"),p.defaultSource=de(p.defaultSource));const m=C({},n);return this.handleTintColor(m,c,d),p.style=m,t?o.a.createElement(bn,{style:n},o.a.createElement("img",C(C({},p),{},{nativeName:"Image",alt:"",ref:i,style:[{position:"absolute",left:0,right:0,top:0,bottom:0,width:n.width,height:n.height},r]})),t):o.a.createElement("img",C(C({},p),{},{nativeName:"Image",alt:"",ref:i}))}getImageUrls({src:e,srcs:t,source:n,sources:r}){let i=[];if("string"==typeof e&&i.push(e),Array.isArray(t)&&(i=[...i,...t]),n)if("string"==typeof n)i.push(n);else if("object"==typeof n&&null!==n){const{uri:e}=n;e&&i.push(e)}return r&&Array.isArray(r)&&r.forEach(e=>{"string"==typeof e?i.push(e):"object"==typeof e&&null!==e&&e.uri&&i.push(e.uri)}),i.length&&(i=i.map(e=>de(e))),i}handleTintColor(e,t,n){t&&Object.assign(e,{tintColor:t}),Array.isArray(n)&&Object.assign(e,{tintColors:n})}}Sn.prefetch=At;class Cn{constructor(){this.Value=Cn.Value}static Value(e){return e}static timing(e,t){return new Qe({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}Cn.View=bn,Cn.Text=kn,Cn.Image=Sn;const xn={step0:e=>e>0?1:0,step1:e=>e>=1?1:0,linear:()=>"linear",ease:()=>"ease",quad:e=>e**2,cubic:e=>e**3,poly:e=>t=>t**e,sin:e=>1-Math.cos(e*Math.PI/2),circle:e=>1-Math.sqrt(1-e*e),exp:e=>2**(10*(e-1)),elastic:()=>"elastic",back:(e=1.70158)=>t=>t*t*((e+1)*t-e),bounce(e){let t=e;return t<1/2.75?7.5625*t*t:t<2/2.75?(t-=1.5/2.75,7.5625*t*t+.75):t<2.5/2.75?(t-=2.25/2.75,7.5625*t*t+.9375):(t-=2.625/2.75,7.5625*t*t+.984375)},bezier:()=>"bezier",in:()=>"ease-in",out:()=>"ease-out",inOut:()=>"ease-in-out"};function Nn(e){return o.a.createElement("li",C({nativeName:"ListViewItem"},e))}class Pn extends o.a.Component{constructor(){super(...arguments),this.instance=null}expandPullHeader(){Kt(this.instance,"expandPullHeader",[])}collapsePullHeader(e){void 0!==e?Kt(this.instance,"collapsePullHeaderWithOptions",[e]):Kt(this.instance,"collapsePullHeader",[])}render(){const e=this.props,{children:t}=e,n=N(e,d);return o.a.createElement("div",C({nativeName:"PullHeaderView",ref:e=>{this.instance=e}},n),t)}}class In extends o.a.Component{constructor(){super(...arguments),this.instance=null}expandPullFooter(){Kt(this.instance,"expandPullFooter",[])}collapsePullFooter(){Kt(this.instance,"collapsePullFooter",[])}render(){const e=this.props,{children:t}=e,n=N(e,p);return o.a.createElement("div",C({nativeName:"PullFooterView",ref:e=>{this.instance=e}},n),t)}}class _n extends o.a.Component{constructor(e){super(e),this.instance=null,this.pullHeader=null,this.pullFooter=null,this.handleInitialListReady=this.handleInitialListReady.bind(this),this.state={initialListReady:!1}}componentDidMount(){const{getRowKey:e}=this.props}scrollToIndex(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Kt(this.instance,"scrollToIndex",[e,t,n])}scrollToContentOffset(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Kt(this.instance,"scrollToContentOffset",[e,t,n])}expandPullHeader(){this.pullHeader&&this.pullHeader.expandPullHeader()}collapsePullHeader(e){this.pullHeader&&this.pullHeader.collapsePullHeader(e)}expandPullFooter(){this.pullFooter&&this.pullFooter.expandPullFooter()}collapsePullFooter(){this.pullFooter&&this.pullFooter.collapsePullFooter()}render(){const e=this.props,{children:t,style:n,renderRow:r,renderPullHeader:i,renderPullFooter:a,getRowType:l,getRowStyle:s,getHeaderStyle:u,getFooterStyle:c,getRowKey:f,dataSource:d,initialListSize:p,rowShouldSticky:m,onRowLayout:y,onHeaderPulling:g,onHeaderReleased:v,onFooterPulling:b,onFooterReleased:w,onAppear:E,onDisappear:k,onWillAppear:S,onWillDisappear:x}=e,P=N(e,h),I=[];if("function"==typeof r){const{initialListReady:e}=this.state;let{numberOfRows:t}=this.props;const h=this.getPullHeader(i,g,v,u),N=this.getPullFooter(a,b,w,c);!t&&d&&(t=d.length),e||(t=Math.min(t,p||15));for(let e=0;e{"function"==typeof n&&(t[r]=()=>{n(e)})}),n&&I.push(o.a.createElement(Nn,C({},t),n))}h&&I.unshift(h),N&&I.push(N),"function"==typeof m&&Object.assign(P,{rowShouldSticky:!0});const _=[E,k,S,x];P.exposureEventEnabled=_.some(e=>"function"==typeof e),"ios"===un.platform.OS&&(P.numberOfRows=I.length),void 0!==p&&(P.initialListSize=p),P.style=C({overflow:"scroll"},n)}return o.a.createElement("ul",C({ref:e=>{this.instance=e},nativeName:"ListView",initialListReady:this.handleInitialListReady},P),I.length?I:t)}handleInitialListReady(){this.setState({initialListReady:!0})}getPullHeader(e,t,n,r){let i=null,a={};return"function"==typeof r&&(a=r()),"function"==typeof e&&(i=o.a.createElement(Pn,{style:a,key:"pull-header",ref:e=>{this.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),i}getPullFooter(e,t,n,r){let i=null,a={};return"function"==typeof r&&(a=r()),"function"==typeof e&&(i=o.a.createElement(In,{style:a,key:"pull-footer",ref:e=>{this.pullFooter=e},onFooterPulling:t,onFooterReleased:n},e())),i}handleRowProps(e,t,{getRowKey:n,getRowStyle:r,onRowLayout:i,getRowType:o,rowShouldSticky:a}){if("function"==typeof n&&(e.key=n(t)),"function"==typeof r&&(e.style=r(t)),"function"==typeof i&&(e.onLayout=e=>{i(e,t)}),"function"==typeof o){const n=o(t);Number.isInteger(n),e.type=n}"function"==typeof a&&(e.sticky=a(t))}}_n.defaultProps={numberOfRows:0};class Ln extends o.a.Component{constructor(e){super(e),this.instance=null,this.refreshComplected=this.refreshCompleted.bind(this)}startRefresh(){Kt(this.instance,"startRefresh",null)}refreshCompleted(){Kt(this.instance,"refreshComplected",null)}render(){const e=this.props,{children:t}=e,n=N(e,m);return o.a.createElement("div",C({nativeName:"RefreshWrapper",ref:e=>{this.instance=e}},n),o.a.createElement("div",{nativeName:"RefreshWrapperItemView",style:{left:0,right:0,position:"absolute"}},this.getRefresh()),t)}getRefresh(){const{getRefresh:e}=this.props;return"function"==typeof e&&e()||null}}class Tn{constructor(){this.top=null,this.size=0}push(e){this.top={data:e,next:this.top},this.size+=1}peek(){return null===this.top?null:this.top.data}pop(){if(null===this.top)return null;const e=this.top;return this.top=this.top.next,this.size>0&&(this.size-=1),e.data}clear(){this.top=null,this.size=0}displayAll(){const e=[];if(null===this.top)return e;let t=this.top;for(let n=0,r=this.size;n1&&this.pop({animated:!0})}push(e){if(null==e?void 0:e.component){if(!this.routeList[e.routeName]){new gn({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0}delete e.component}const t=[e];this.stack.push(e),Kt(this.instance,"push",t)}pop(e){if(this.stack.size>1){const t=[e];this.stack.pop(),Kt(this.instance,"pop",t)}}clear(){this.stack.clear()}render(){const e=this.props,{initialRoute:{component:t}}=e,n=N(e.initialRoute,g),r=N(e,y);return r.initialRoute=n,o.a.createElement("div",C({nativeName:"Navigator",ref:e=>{this.instance=e}},r))}}function Rn(e){return o.a.createElement("div",C(C({nativeName:"ViewPagerItem"},e),{},{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}class zn extends o.a.Component{constructor(e){super(e),this.instance=null,this.setPage=this.setPage.bind(this),this.setPageWithoutAnimation=this.setPageWithoutAnimation.bind(this),this.onPageScrollStateChanged=this.onPageScrollStateChanged.bind(this)}onPageScrollStateChanged(e){const{onPageScrollStateChanged:t}=this.props;t&&t(e.pageScrollState)}setPage(e){"number"==typeof e&&Kt(this.instance,"setPage",[e])}setPageWithoutAnimation(e){"number"==typeof e&&Kt(this.instance,"setPageWithoutAnimation",[e])}render(){const e=this.props,{children:t,onPageScrollStateChanged:n}=e,r=N(e,v);let i=[];return Array.isArray(t)?i=t.map(e=>{const t={};return"string"==typeof e.key&&(t.key="viewPager_"+e.key),o.a.createElement(Rn,C({},t),e)}):i.push(o.a.createElement(Rn,null,t)),"function"==typeof n&&(r.onPageScrollStateChanged=this.onPageScrollStateChanged),o.a.createElement("div",C({nativeName:"ViewPager",ref:e=>{this.instance=e}},r),i)}}function On(){const e=_.platform.Localization;return!!e&&1===e.direction}const jn={caretColor:"caret-color"};class Fn extends o.a.Component{constructor(e){super(e),this.instance=null,this._lastNativeText="",this.onChangeText=this.onChangeText.bind(this),this.onKeyboardWillShow=this.onKeyboardWillShow.bind(this)}componentDidMount(){const{value:e,autoFocus:t}=this.props;this._lastNativeText=e,t&&this.focus()}componentWillUnmount(){this.blur()}getValue(){return new Promise(e=>{Kt(this.instance,"getValue",t=>e(t.text))})}setValue(e){return Kt(this.instance,"setValue",[e]),e}focus(){Kt(this.instance,"focusTextInput",[])}blur(){Kt(this.instance,"blurTextInput",[])}isFocused(){return new Promise(e=>{Kt(this.instance,"isFocused",t=>e(t.value))})}showInputMethod(){}hideInputMethod(){}clear(){Kt(this.instance,"clear",[])}render(){const e=C({},this.props);return["underlineColorAndroid","placeholderTextColor","placeholderTextColors","caretColor","caret-color"].forEach(t=>{let n=t;const r=this.props[t];"string"==typeof this.props[t]&&(jn[t]&&(n=jn[t]),Array.isArray(e.style)?e.style.push({[n]:r}):e.style&&"object"==typeof e.style?e.style[n]=r:e.style={[n]:r},delete e[t])}),On()&&(e.style?"object"!=typeof e.style||Array.isArray(e.style)||e.style.textAlign||(e.style.textAlign="right"):e.style={textAlign:"right"}),o.a.createElement("div",C(C({nativeName:"TextInput"},e),{},{ref:e=>{this.instance=e},onChangeText:this.onChangeText,onKeyboardWillShow:this.onKeyboardWillShow}))}onChangeText(e){const{onChangeText:t}=this.props;"function"==typeof t&&t(e.text),this.instance&&(this._lastNativeText=e.text)}onKeyboardWillShow(e){const{onKeyboardWillShow:t}=this.props;"function"==typeof t&&t(e)}}const Hn=un.window.scale;let Mn=Math.round(.4*Hn)/Hn;function Bn(e){return e}0===Mn&&(Mn=1/Hn);var Dn=Object.freeze({__proto__:null,get hairlineWidth(){return Mn},create:Bn});const Un={baseVertical:{flexGrow:1,flexShrink:1,flexDirection:"column",overflow:"scroll"},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:"row",overflow:"scroll"},contentContainerVertical:{collapsable:!1,flexDirection:"column"},contentContainerHorizontal:{collapsable:!1,flexDirection:"row"}};class Wn extends o.a.Component{constructor(){super(...arguments),this.instance=null}scrollTo(e,t,n=!0){let r=e,i=t,o=n;"object"==typeof e&&e&&({x:r,y:i,animated:o}=e),r=r||0,i=i||0,o=!!o,Kt(this.instance,"scrollTo",[r,i,o])}scrollToWithDuration(e=0,t=0,n=1e3){Kt(this.instance,"scrollToWithOptions",[{x:e,y:t,duration:n}])}render(){const{horizontal:e,contentContainerStyle:t,children:n,style:r}=this.props,i=[e?Un.contentContainerHorizontal:Un.contentContainerVertical,t],a=e?Object.assign({},Un.baseHorizontal,r):Object.assign({},Un.baseVertical,r);return e&&(a.flexDirection=On()?"row-reverse":"row"),o.a.createElement("div",C(C({nativeName:"ScrollView",ref:e=>{this.instance=e}},this.props),{},{style:a}),o.a.createElement(bn,{style:i},n))}}const Vn={modal:{position:"absolute",collapsable:!1}};class $n extends o.a.Component{constructor(e){super(e),this.eventSubscription=null}componentDidMount(){"ios"===un.platform.OS&&(this.eventSubscription=new Ee("modalDismissed"),this.eventSubscription.addCallback(e=>{const{primaryKey:t,onDismiss:n}=this.props;e.primaryKey===t&&"function"==typeof n&&n()}))}componentWillUnmount(){"ios"===un.platform.OS&&this.eventSubscription&&this.eventSubscription.unregister()}render(){const{children:e,visible:t,transparent:n,animated:r}=this.props;let{animationType:i}=this.props;if(!1===t)return null;const a={backgroundColor:n?"transparent":"white"};return i||(i="none",r&&(i="slide")),o.a.createElement("div",C({nativeName:"Modal",animationType:i,transparent:n,style:[Vn.modal,a]},this.props),e)}}$n.defaultProps={visible:!0};class Qn extends o.a.Component{constructor(e){super(e);const{requestFocus:t}=this.props;this.state={isFocus:!!t},this.handleFocus=this.handleFocus.bind(this)}render(){var e,t,n;const{requestFocus:r,children:i,nextFocusDownId:a,nextFocusUpId:l,nextFocusLeftId:s,nextFocusRightId:u,style:c,noFocusStyle:f,focusStyle:d,onClick:p}=this.props,{isFocus:h}=this.state,m=o.a.Children.only(i);let y;(null===(t=null===(e=null==m?void 0:m.child)||void 0===e?void 0:e.memoizedProps)||void 0===t?void 0:t.nativeName)?y=m.child.memoizedProps.nativeName:(null===(n=null==m?void 0:m.type)||void 0===n?void 0:n.displayName)&&(y=m.type.displayName);const g=a&&Gt(a),v=l&&Gt(l),b=s&&Gt(s),w=u&&Gt(u);let E=c;if("Text"!==y){const e=m.memoizedProps.style;E=C(C({},E),e)}if(Object.assign(E,h?d:f),"Text"===y)return o.a.createElement(bn,{focusable:!0,nextFocusDownId:g,nextFocusUpId:v,nextFocusLeftId:b,nextFocusRightId:w,requestFocus:r,style:E,onClick:p,onFocus:this.handleFocus},m);const{children:k}=m.memoizedProps;return o.a.cloneElement(m,{nextFocusDownId:a,nextFocusUpId:l,nextFocusLeftId:s,nextFocusRightId:u,requestFocus:r,onClick:p,focusable:!0,children:k,style:E,onFocus:this.handleFocus})}handleFocus(e){const{onFocus:t}=this.props;"function"==typeof t&&t(e);const{isFocus:n}=this.state;n!==e.focus&&this.setState({isFocus:e.focus})}}function qn(e){return o.a.createElement("iframe",C({title:"hippy",nativeName:"WebView"},e))}let Gn;class Kn{constructor(e,t,n){if(this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),Gn||(Gn=new Ee("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!e||"string"!=typeof e)throw new TypeError("Invalid WebSocket url");const r=C({},n);if(void 0!==t)if(Array.isArray(t)&&t.length>0)r["Sec-WebSocket-Protocol"]=t.join(",");else{if("string"!=typeof t)throw new TypeError("Invalid WebSocket protocols");r["Sec-WebSocket-Protocol"]=t}const i={headers:r,url:e};this.url=e,this.webSocketCallbackId=Gn.addCallback(this.onWebSocketEvent),I.callNativeWithPromise("websocket","connect",i).then(e=>{e&&0===e.code&&"number"==typeof e.id&&(this.webSocketId=e.id)})}close(e,t){1===this.readyState&&(this.readyState=2,I.callNative("websocket","close",{id:this.webSocketId,code:e,reason:t}))}send(e){if(1===this.readyState){if("string"!=typeof e)throw new TypeError("Unsupported websocket data type: "+typeof e);I.callNative("websocket","send",{id:this.webSocketId,data:e})}}set onopen(e){this.webSocketCallbacks.onOpen=e}set onclose(e){this.webSocketCallbacks.onClose=e}set onerror(e){this.webSocketCallbacks.onError=e}set onmessage(e){this.webSocketCallbacks.onMessage=e}onWebSocketEvent(e){if("object"!=typeof e||e.id!==this.webSocketId)return;const{type:t}=e;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,Gn.removeCallback(this.webSocketCallbackId));const n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}function Yn(e){return o.a.createElement("li",C({nativeName:"WaterfallItem"},e))}class Xn extends o.a.Component{constructor(e){super(e),this.instance=null,this.pullHeader=null,this.pullFooter=null,this.handleInitialListReady=this.handleInitialListReady.bind(this)}scrollToIndex({index:e=0,animated:t=!0}){Kt(this.instance,"scrollToIndex",[e,e,t])}scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){Kt(this.instance,"scrollToContentOffset",[e,t,n])}expandPullHeader(){this.pullHeader&&this.pullHeader.expandPullHeader()}collapsePullHeader(e){this.pullHeader&&this.pullHeader.collapsePullHeader(e)}expandPullFooter(){this.pullFooter&&this.pullFooter.expandPullFooter()}collapsePullFooter(){this.pullFooter&&this.pullFooter.collapsePullFooter()}render(){const e=this.props,{style:t={},renderBanner:n,numberOfColumns:r=2,columnSpacing:i=0,interItemSpacing:a=0,numberOfItems:l=0,preloadItemNumber:s=0,renderItem:u,renderPullHeader:c,renderPullFooter:f,getItemType:d,getItemKey:p,getItemStyle:h,contentInset:m={top:0,left:0,bottom:0,right:0},onItemLayout:y,onHeaderPulling:g,onHeaderReleased:v,onFooterPulling:w,onFooterReleased:E,containPullHeader:k=!1,containPullFooter:S=!1,containBannerView:x=!1}=e,P=C(C({},N(e,b)),{},{style:t,numberOfColumns:r,columnSpacing:i,interItemSpacing:a,preloadItemNumber:s,contentInset:m,containPullHeader:k,containPullFooter:S,containBannerView:x}),I=[];if("function"==typeof n){const e=n();if(e)if("ios"===un.platform.OS)I.push(o.a.createElement(bn,{key:"bannerView"},o.a.cloneElement(e))),P.containBannerView=!0;else if("android"===un.platform.OS){const t={key:"bannerView",fullSpan:!0,style:{}};I.push(o.a.createElement(Yn,C({},t),o.a.cloneElement(e)))}}if("function"==typeof u){const e=this.getPullHeader(c,g,v),n=this.getPullFooter(f,w,E);for(let e=0;ethis.instance=e,initialListReady:this.handleInitialListReady.bind(this)},P),I)}componentDidMount(){const{getItemKey:e}=this.props}handleRowProps(e,t,{getItemKey:n,getItemStyle:r,onItemLayout:i,getItemType:o}){if("function"==typeof n&&(e.key=n(t)),"function"==typeof r&&(e.style=r(t)),"function"==typeof i&&(e.onLayout=e=>{i.call(this,e,t)}),"function"==typeof o){const n=o(t);Number.isInteger(n),e.type=n}}getPullHeader(e,t,n){let r=null;return"function"==typeof e&&(r=o.a.createElement(Pn,{key:"PullHeader",ref:e=>{this.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),r}getPullFooter(e,t,n){let r=null;return"function"==typeof e&&(r=o.a.createElement(In,{key:"PullFooter",ref:e=>{this.pullFooter=e},onFooterPulling:t,onFooterReleased:n},e())),r}handleInitialListReady(){const{onInitialListReady:e}=this.props;"function"==typeof e&&e()}}e.WebSocket=Kn;const{AsyncStorage:Jn,BackAndroid:Zn,Bridge:er,Clipboard:tr,Cookie:nr,Device:rr,HippyRegister:ir,ImageLoader:or,NetworkInfo:ar,UIManager:lr,flushSync:sr}=fn,{callNative:ur,callNativeWithPromise:cr,callNativeWithCallbackId:fr,removeNativeCallback:dr}=er,pr=null,hr=e.ConsoleModule||e.console,mr=rr.platform,yr=gn,gr=Sn,vr={get:e=>rr[e]},br={get:()=>rr.screen.scale}}.call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/process/browser.js"))},"./node_modules/@hippy/react-reconciler/cjs/react-reconciler.production.min.js":function(e,t,n){(function(e){ + */(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}e.__GLOBAL__||(e.__GLOBAL__={}),e.__GLOBAL__.nodeId=0,e.__GLOBAL__.animationId=0;const{asyncStorage:P,bridge:I,device:_,document:L,register:T,on:A,off:R,emit:z}=e.Hippy;var O=Object.freeze({__proto__:null,addEventListener:A,removeEventListener:R,dispatchEvent:z,AsyncStorage:P,Bridge:I,Device:_,HippyRegister:T,UIManager:L});let j,F;const H=new Map;function M(e,t){F=e,j=t}function B(){if(!F)throw new Error("getRootViewId must execute after setRootContainer");return F}function D(e){if(!j)return null;const{current:t}=j,n=[t];for(;n.length;){const t=n.shift();if(!t)break;if(e(t))return t;t.child&&n.push(t.child),t.sibling&&n.push(t.sibling)}return null}function U(e,t){H.set(t,e)}function W(e){H.delete(e)}function V(e){return(null==e?void 0:e.stateNode)||null}function $(e){return H.get(e)||null}function Q(t){!function(t,n){if(!e.requestIdleCallback)return setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>1/0})},1);e.requestIdleCallback(t,n)}(e=>{(e.timeRemaining()>0||e.didTimeout)&&function e(t){"number"==typeof t?W(t):t&&(W(t.nodeId),Array.isArray(t.childNodes)&&t.childNodes.forEach(t=>e(t)))}(t)},{timeout:50})}const q=0,G=1,K=-1,Y=1,X={onTouchStart:["onTouchStart","onTouchDown"],onPress:["onPress","onClick"]},J={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3},Z={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"};const ee=new RegExp(/^\d+$/);let te=!1,ne=!1;function re(...e){ce()&&console.log(...e)}function ie(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)))}const oe=new RegExp("^on.+Capture$");function ae(e){return oe.test(e)}const le=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function se(e){return"[object Function]"===Object.prototype.toString.call(e)}function ue(e){te=e}function ce(){return!1}function fe(){return ne}function de(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){0;return`${"hpfile://"}./${e}`}return e}function pe(e){return"string"==typeof e?""!==e.trim():null!=e}class he{constructor(e){this.handlerContainer={},this.nextIdForHandler=0,this.eventName=e}getEventListeners(){return Object.keys(this.handlerContainer).filter(e=>this.handlerContainer[e]).map(e=>this.handlerContainer[e])}getHandlerSize(){return Object.keys(this.handlerContainer).length}addEventHandler(e,t){if(!e)throw new TypeError("Invalid arguments for addEventHandler");const n=this.nextIdForHandler;this.nextIdForHandler+=1;const r={id:n,eventHandler:e,context:t},i="eventHandler_"+n;return this.handlerContainer[i]=r,n}notifyEvent(...e){Object.keys(this.handlerContainer).forEach(t=>{const n=this.handlerContainer[t];n&&n.eventHandler&&(n.context?n.eventHandler.call(n.context,...e):n.eventHandler(...e))})}removeEventHandler(e){if("number"!=typeof e)throw new TypeError("Invalid arguments for removeEventHandler");const t="eventHandler_"+e;this.handlerContainer[t]&&delete this.handlerContainer[t]}}class me{constructor(e,t,n){this.type=e,this.bubbles=!0,this.currentTarget=t,this.target=n}stopPropagation(){this.bubbles=!1}preventDefault(){}}const ye=new Map,ge=["%c[event]%c","color: green","color: auto"];function ve(e,t){return!(!t.memoizedProps||"function"!=typeof t.memoizedProps[e])}function be(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for getHippyEventHub: "+e);return ye.get(e)||null}const we={registerNativeEventHub:function(e){if(re(...ge,"registerNativeEventHub",e),"string"!=typeof e)throw new TypeError("Invalid eventName for registerNativeEventHub: "+e);let t=ye.get(e);return t||(t=new he(e),ye.set(e,t)),t},getHippyEventHub:be,unregisterNativeEventHub:function(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for unregisterNativeEventHub: "+e);ye.has(e)&&ye.delete(e)},receiveNativeEvent:function(e){if(re(...ge,"receiveNativeEvent",e),!e||!Array.isArray(e)||e.length<2)throw new TypeError("Invalid params for receiveNativeEvent: "+JSON.stringify(e));const[t,n]=e;if("string"!=typeof t)throw new TypeError("Invalid arguments for nativeEvent eventName");const r=be(t);r&&r.notifyEvent(n)},receiveComponentEvent:function(e,t){if(re(...ge,"receiveComponentEvent",e),!e||!t)return;const{id:n,currentId:r,nativeName:i,originalName:o,params:a={}}=e,l=$(r),s=$(n);l&&s&&(Z[i]?function(e,t,n,r,i,o){try{let t=!1;const a=V(r),l=V(n),{eventPhase:s}=o;if(ve(e,n)&&ae(e)&&[J.AT_TARGET,J.CAPTURING_PHASE].indexOf(s)>-1){const t=new me(e,l,a);Object.assign(t,{eventPhase:s},i),n.memoizedProps[e](t),!t.bubbles&&o&&o.stopPropagation()}if(ve(e,n)&&!ae(e)&&[J.AT_TARGET,J.BUBBLING_PHASE].indexOf(s)>-1){const r=new me(e,l,a);Object.assign(r,{eventPhase:s},i),t=n.memoizedProps[e](r),"boolean"!=typeof t&&(t=!fe()),r.bubbles||(t=!0),t&&o&&o.stopPropagation()}}catch(e){console.error(e)}}(o,0,l,s,a,t):function(e,t,n,r,i,o){let a=!1;const l=V(r),s=V(n);try{const{eventPhase:t}=o;if(ve(e,n)&&!ae(e)&&[J.AT_TARGET,J.BUBBLING_PHASE].indexOf(t)>-1){const r=new me(e,s,l);Object.assign(r,{eventPhase:t},i),n.memoizedProps[e](r),a=!fe(),r.bubbles||(a=!0),a&&o&&o.stopPropagation()}}catch(e){console.error(e)}}(o,0,l,s,a,t))}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=we);class Ee{constructor(e,t){this.callback=e,this.bindListener=t}remove(){"number"==typeof this.callback&&this.bindListener&&(this.bindListener.removeCallback(this.callback),this.bindListener=void 0)}}class ke{constructor(e){this.eventName=e,this.listenerIdList=[]}unregister(){const e=we.getHippyEventHub(this.eventName);if(!e)throw new ReferenceError("No listeners for "+this.eventName);const t=this.listenerIdList.length;for(let n=0;n{if("string"!=typeof e&&!Array.isArray(e)||"function"!=typeof t)throw new TypeError("Invalid arguments for EventBus.on()");return Array.isArray(e)?e.forEach(e=>{Ne(e,t,n)}):Ne(e,t,n),Ie},off:(e,t)=>{if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("The event argument is not string or array for EventBus.off()");return Array.isArray(e)?e.forEach(e=>{Pe(e,t)}):Pe(e,t),Ie},sizeOf(e){if("string"!=typeof e)throw new TypeError("The event argument is not string for EventBus.sizeOf()");const t=Ce[e];return(null==t?void 0:t.eventMap)?t.eventMap.size:0},emit(e,...t){if("string"!=typeof e)throw new TypeError("The event argument is not string for EventBus.emit()");const n=we.getHippyEventHub(e);return n?(n.notifyEvent(...t),Ie):Ie}};function _e(...e){return`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`}const Le={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Te="[-+]?\\d*\\.?\\d+",Ae={rgb:new RegExp("rgb"+_e(Te,Te,Te)),rgba:new RegExp("rgba"+_e(Te,Te,Te,Te)),hsl:new RegExp("hsl"+_e(Te,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+_e(Te,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",Te)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/};function Re(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function ze(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Oe(e,t,n){let r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function je(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Oe(i,r,e+1/3),a=Oe(i,r,e),l=Oe(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function Fe(e){return(parseFloat(e)%360+360)%360/360}function He(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Me(e){if(Number.isInteger(e))return e;let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Ae.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(Le,e)?Le[e]:(t=Ae.rgb.exec(e),Array.isArray(t)?(Re(t[1])<<24|Re(t[2])<<16|Re(t[3])<<8|255)>>>0:(t=Ae.rgba.exec(e),t?(Re(t[1])<<24|Re(t[2])<<16|Re(t[3])<<8|ze(t[4]))>>>0:(t=Ae.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Ae.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=Ae.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Ae.hsl.exec(e),t?(255|je(Fe(t[1]),He(t[2]),He(t[3])))>>>0:(t=Ae.hsla.exec(e),t?(je(Fe(t[1]),He(t[2]),He(t[3]))|ze(t[4]))>>>0:null))))))))}(e);return null===t?0:(t=(t<<24|t>>>8)>>>0,t)}function Be(e){return Array.isArray(e)?e.map(e=>Me(e)):[0]}function De(e){return"loop"===e?-1:e}function Ue(e,t){return"color"===e&&["number","string"].indexOf(typeof t)>=0?Me(t):t}const We="animationstart",Ve="animationend",$e="animationcancel",Qe="animationrepeat";class qe{constructor(t){var n;let r;if((null===(n=t.startValue)||void 0===n?void 0:n.constructor)&&"Animation"===t.startValue.constructor.name)r={animationId:t.startValue.animationId};else{const{startValue:e}=t;r=Ue(t.valueType,e)}const i=Ue(t.valueType,t.toValue);this.mode=t.mode||"timing",this.delay=t.delay||0,this.startValue=r||0,this.toValue=i||0,this.valueType=t.valueType||void 0,this.duration=t.duration||0,this.direction=t.direction||"center",this.timingFunction=t.timingFunction||"linear",this.repeatCount=De(t.repeatCount||0),this.inputRange=t.inputRange||[],this.outputRange=t.outputRange||[],this.animation=new e.Hippy.Animation(Object.assign({mode:this.mode,delay:this.delay,startValue:this.startValue,toValue:this.toValue,duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{})),this.animationId=this.animation.getId(),this.destroy=this.destroy.bind(this),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}removeEventListener(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(We),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(Ve),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener($e),"function"==typeof this.onAnimationRepeatCallback&&this.animation.removeEventListener(Qe)}start(){if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(We,()=>{"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback()}),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(Ve,()=>{"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback()}),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener($e,()=>{"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback()}),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener(Qe,()=>{"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()}),this.animation.start()}destroy(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}pause(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}resume(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}updateAnimation(e){if(!this.animation)throw new Error("animation has not been initialized yet");if("object"!=typeof e)throw new TypeError("Invalid arguments");if("string"==typeof e.mode&&e.mode!==this.mode)throw new TypeError("Update animation mode not supported");Object.keys(e).forEach(t=>{const n=e[t];if("startValue"===t){let t;if(e.startValue instanceof qe)t={animationId:e.startValue.animationId};else{const{startValue:n}=e;t=Ue(this.valueType,n)}this.startValue=t||0}else"repeatCount"===t?this.repeatCount=De(e.repeatCount||0):Object.defineProperty(this,t,{value:n})}),this.animation.updateAnimation(Object.assign({mode:this.mode,delay:this.delay,startValue:this.startValue,toValue:Ue(this.valueType,this.toValue),duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{}))}onAnimationStart(e){this.onAnimationStartCallback=e}onAnimationEnd(e){this.onAnimationEndCallback=e}onAnimationCancel(e){this.onAnimationCancelCallback=e}onAnimationRepeat(e){this.onAnimationRepeatCallback=e}}const Ge="animationstart",Ke="animationend",Ye="animationcancel",Xe="animationrepeat";class Je{constructor(t){this.animationList=[],null==t||t.children.forEach(e=>{this.animationList.push({animationId:e.animation.animationId,follow:e.follow||!1})}),this.animation=new e.Hippy.AnimationSet({repeatCount:De(t.repeatCount||0),children:this.animationList}),this.animationId=this.animation.getId(),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}removeEventListener(){if(!this.animation)throw new Error("animation has not been initialized yet");"function"==typeof this.onAnimationStartCallback&&this.animation.removeEventListener(Ge),"function"==typeof this.onAnimationEndCallback&&this.animation.removeEventListener(Ke),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(Ye),"function"==typeof this.onAnimationCancelCallback&&this.animation.removeEventListener(Xe)}start(){if(!this.animation)throw new Error("animation has not been initialized yet");this.removeEventListener(),"function"==typeof this.onAnimationStartCallback&&this.animation.addEventListener(Ge,()=>{"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback()}),"function"==typeof this.onAnimationEndCallback&&this.animation.addEventListener(Ke,()=>{"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback()}),"function"==typeof this.onAnimationCancelCallback&&this.animation.addEventListener(Ye,()=>{"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback()}),"function"==typeof this.onAnimationRepeatCallback&&this.animation.addEventListener(Ye,()=>{"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()}),this.animation.start()}destory(){this.destroy()}destroy(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.destroy()}pause(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.pause()}resume(){if(!this.animation)throw new Error("animation has not been initialized yet");this.animation.resume()}onAnimationStart(e){this.onAnimationStartCallback=e}onAnimationEnd(e){this.onAnimationEndCallback=e}onAnimationCancel(e){this.onAnimationCancelCallback=e}onAnimationRepeat(e){this.onAnimationRepeatCallback=e}}const Ze={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode"),moveNode:Symbol("moveNode")};let et=!0,tt=[];function nt(e=[],t){e.forEach(e=>{if(e){const{id:n,eventList:r}=e;r.forEach(e=>{const{name:r,type:i,listener:o,isCapture:a}=e;let l;l=function(e){return!!Z[e]}(r)?Z[r]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(r),i===G&&t.removeEventListener(n,l,o),i===q&&t.addEventListener(n,l,o,a)})}})}function rt(e,t){0}function it(t){const n=function(e){const t=[];for(let n=0;n{switch(e.type){case Ze.createNode:rt(e.printedNodes),r.create(e.nodes),nt(e.eventNodes,r);break;case Ze.updateNode:rt(e.printedNodes),r.update(e.nodes),nt(e.eventNodes,r);break;case Ze.deleteNode:rt(e.printedNodes),r.delete(e.nodes);break;case Ze.moveNode:rt(e.printedNodes),r.move(e.nodes)}}),r.build()}function ot(e=!1){if(!et)return;if(et=!1,0===tt.length)return void(et=!0);const t=B();e?(it(t),tt=[],et=!0):Promise.resolve().then(()=>{it(t),tt=[],et=!0})}function at(e){const t=e.attributes,{children:n}=t;return N(t,s)}function lt(e,t,n={}){var r;if(!t.nativeName)return[];if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: "+t.tagName);let i=t.style;if(t.parentNode instanceof kt){const e=Object.assign({},t.parentNode.inheritStyle,t.parentNode.style),{style:n,inheritStyle:r}=t;["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"].forEach(t=>{!pe(n[t])&&pe(e[t])&&(r[t]=e[t])}),function(e){return e&&"Text"===e.nativeName||-1!==["p","span"].indexOf(e.tagName)}(t)&&(i=Object.assign({},r,n))}const o={id:t.nodeId,pId:(null===(r=t.parentNode)||void 0===r?void 0:r.nodeId)||e,name:t.nativeName,props:x(x({},at(t)),{},{style:i}),tagName:t.tagName},a=function(e){let t=void 0;const n=e.events;if(n){const r=[];Object.keys(n).forEach(t=>{const{name:i,type:o,isCapture:a,listener:l}=n[t];e.isListenerHandled(t,o)||(e.setListenerHandledType(t,o),r.push({name:i,type:o,isCapture:a,listener:l}))}),t={id:e.nodeId,eventList:r}}return t}(t);let l=void 0;return[[o,n],a,l]}function st(e,t,n,r={}){const i=[],o=[],a=[];return t.traverseChildren((t,r)=>{const[l,s,u]=lt(e,t,r);l&&i.push(l),s&&o.push(s),u&&a.push(u),"function"==typeof n&&n(t)},r),[i,o,a]}function ut(e){return!!j&&e instanceof j.containerInfo.constructor}function ct(e,t,n={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;const r=B(),i=ut(e)&&!e.isMounted,o=e.isMounted&&!t.isMounted;if(i||o){const[e,i,o]=st(r,t,e=>{e.isMounted||(e.isMounted=!0)},n);tt.push({type:Ze.createNode,nodes:e,eventNodes:i,printedNodes:o})}}function ft(e){if(!e.isMounted)return;const t=B(),[n,r,i]=lt(t,e);n&&tt.push({type:Ze.updateNode,nodes:[n],eventNodes:[r],printedNodes:[]})}function dt(e){if(!e.isMounted)return;const t=B(),[n,r,i]=st(t,e)||{};n&&tt.push({type:Ze.updateNode,nodes:n,eventNodes:r,printedNodes:i})}let pt=0;class ht{constructor(){this.meta={component:{}},this.index=0,this.childNodes=[],this.parentNode=null,this.mounted=!1,this.nodeId=(pt+=1,pt%10==0&&(pt+=1),pt)}toString(){return this.constructor.name}get isMounted(){return this.mounted}set isMounted(e){this.mounted=e}insertBefore(e,t){if(!e)throw new Error("Can't insert child.");if(e.meta.skipAddToDom)return;if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't insert child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't insert child, because it already has a different parent.");const n=this.childNodes.indexOf(t);return e.parentNode=this,this.childNodes.splice(n,0,e),ct(this,e,{refId:t.nodeId,relativeToRef:K})}moveChild(e,t){if(!e)throw new Error("Can't move child.");if(e.meta.skipAddToDom)return;if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't move child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't move child, because it already has a different parent.");const n=this.childNodes.indexOf(e);if(this.childNodes.indexOf(t)===n)return e;this.childNodes.splice(n,1);const r=this.childNodes.indexOf(t);return this.childNodes.splice(r,0,e),function(e,t,n={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;const r=B(),i={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},o=[[i,n]],a=[];tt.push({printedNodes:a,type:Ze.moveNode,nodes:o,eventNodes:[]})}(this,e,{refId:t.nodeId,relativeToRef:K})}appendChild(e){if(!e)throw new Error("Can't append child.");if(e.meta.skipAddToDom)return;if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");e.parentNode=this;const t=this.childNodes.length-1,n=this.childNodes[t];this.childNodes.push(e),ct(this,e,n&&{refId:n.nodeId,relativeToRef:Y})}removeChild(e){if(!e)throw new Error("Can't remove child.");if(e.meta.skipAddToDom)return;if(!e.parentNode)throw new Error("Can't remove child, because it has no parent.");if(e.parentNode!==this)throw new Error("Can't remove child, because it has a different parent.");const t=this.childNodes.indexOf(e);this.childNodes.splice(t,1),function(e,t){if(!t||t.meta.skipAddToDom)return;t.isMounted=!1;const n=B(),r={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:n},i=[[r,{}]],o=[];tt.push({printedNodes:o,type:Ze.deleteNode,nodes:i,eventNodes:[]})}(0,e)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(let t=0;t{this.traverseChildren.call(t,e,{})})}}const mt={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},yt={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},gt="turn",vt="rad",bt="deg";function wt(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=w(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(!Array.isArray(n))return;let r="180";const[i,o,a]=n;return o&&a?r=function(e,t=bt){const n=parseFloat(e);let r=e||"";const[,i]=e.split(".");switch(i&&i.length>2&&(r=n.toFixed(2)),t){case gt:r=""+(360*n).toFixed(2);break;case vt:r=""+(180/Math.PI*n).toFixed(2)}return r}(o,a):i&&void 0!==yt[i]&&(r=yt[i]),r}function Et(e){const t=(e||"").replace(/\s+/g," ").trim(),[n,r]=t.split(/\s+(?![^(]*?\))/),i=/^([+-]?\d+\.?\d*)%$/g;return!n||i.exec(n)||r?n&&i.exec(r)?{ratio:parseFloat(r.split("%")[0])/100,color:Me(n)}:void 0:{color:Me(n)}}class kt extends ht{constructor(e){super(),this.id="",this.style={},this.inheritStyle={},this.attributes={},this.events={},this.tagName=e}get nativeName(){return this.meta.component.name}toString(){return`${this.tagName}:(${this.nativeName})`}setListenerHandledType(e,t){this.events[e]&&(this.events[e].handledType=t)}isListenerHandled(e,t){return!this.events[e]||t===this.events[e].handledType}hasAttribute(e){return!!this.attributes[e]}getAttribute(e){return this.attributes[e]}setStyleAttribute(e){this.style={};let t=e;if(!Array.isArray(t)&&Object.hasOwnProperty.call(t,0)){const e=[],n={};Object.keys(t).forEach(r=>{var i;i=r,ee.test(i)?e.push(t[r]):n[r]=t[r]}),t=[...e,n]}Array.isArray(t)||(t=[t]);let n={};t.forEach(e=>{Array.isArray(e)?e.forEach(e=>{n=x(x({},n),e)}):"object"==typeof e&&e&&(n=x(x({},n),e))}),Object.keys(n).forEach(e=>{const t=n[e];if(Object.prototype.hasOwnProperty.call(mt,e)&&(e=mt[e]),"transform"===e){const e={};if(!Array.isArray(t))throw new TypeError("transform only support array args");t.forEach(t=>{Object.keys(t).forEach(n=>{const r=t[n];r instanceof qe||r instanceof Je?e[n]={animationId:r.animationId}:null===r?e[n]&&delete e[n]:void 0!==r&&(e[n]=r)})});const n=Object.keys(e);n.length&&(Array.isArray(this.style.transform)||(this.style.transform=[]),n.forEach(t=>this.style.transform.push({[t]:e[t]})))}else if(null===t&&void 0!==this.style[e])this.style[e]=void 0;else if(t instanceof qe||t instanceof Je)this.style[e]={animationId:t.animationId};else if(e.toLowerCase().indexOf("colors")>-1)this.style[e]=Be(t);else if(e.toLowerCase().indexOf("color")>-1)this.style[e]=Me(t);else if("fontWeight"===e&&t)this.style[e]="string"!=typeof t?t.toString():t;else if("backgroundImage"===e&&t)this.style=function(e,t,n){if(0===t.indexOf("linear-gradient")){const e=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),r=[];n.linearGradient=n.linearGradient||{},e.forEach((e,t)=>{if(0===t){const t=wt(e);if(t)n.linearGradient.angle=t;else{n.linearGradient.angle="180";const t=Et(e);t&&r.push(t)}}else{const t=Et(e);t&&r.push(t)}}),n.linearGradient.colorStopList=r}else n[e]=de(t);return n}(e,t,this.style);else if("textShadowOffset"===e){const{x:n=0,width:r=0,y:i=0,height:o=0}=t||{};this.style[e]={width:n||r,height:i||o}}else["textShadowOffsetX","textShadowOffsetY"].indexOf(e)>=0?this.style=function(e,t,n){return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[{textShadowOffsetX:"width",textShadowOffsetY:"height"}[e]]:t||0}),n}(e,t,this.style):this.style[e]=t})}setAttributes(e=[]){Array.isArray(e)&&e.length>0&&(e.forEach(e=>{if(Array.isArray(e)){const[t,n]=e;this.setAttribute(t,n,{notToNative:!0})}}),ft(this))}parseAnimationStyleProp(e){let t=!1;Object.keys(e).some(n=>{const r=e[n];if(r&&Array.isArray(r)&&"transform"===n)for(let e=0;e["id"].indexOf(e)>=0,action:()=>(t===this.id||(this.id=t,dt(this)),!0)},{match:()=>["value","defaultValue","placeholder"].indexOf(e)>=0,action:()=>(this.attributes[e]=ie(t),!1)},{match:()=>["text"].indexOf(e)>=0,action:()=>(this.attributes[e]=t,!1)},{match:()=>["style"].indexOf(e)>=0,action:()=>{if("object"!=typeof t||null==t)return!0;this.setStyleAttribute(t);return["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"].some(e=>Object.prototype.hasOwnProperty.call(t,e))&&dt(this),!1}},{match:()=>!0,action:()=>{if("function"==typeof t){const t=function(e){return ae(e)&&(e=e.replace("Capture","")),X[e]?X[e][1]:e}(e);this.events[e]?this.events[e]&&this.events[e].type!==q&&(this.events[e].type=q):this.events[e]={name:t,type:q,isCapture:ae(e),listener:(n=t,r=e,e=>{const{id:t,currentId:i,params:o,eventPhase:a}=e,l={id:t,nativeName:n,originalName:r,params:o,currentId:i,eventPhase:a};we.receiveComponentEvent(l,e)})}}else{if(function(e,t){return void 0!==t&&"object"==typeof t[e]&&!!t[e]}(e,this.events)&&"function"!=typeof t)return this.events[e].type=G,!1;this.attributes[e]=t}var n,r;return!1}}].some(e=>!!e.match()&&(n=e.action(),!0)),n}setAttribute(e,t,n={}){try{if("boolean"==typeof this.attributes[e]&&""===t&&(t=!0),void 0===e)return void(!n.notToNative&&ft(this));if(this.parseAttributeProp(e,t))return;this.parseAnimationStyleProp(this.style),!n.notToNative&&ft(this)}catch(e){}}removeAttribute(e){delete this.attributes[e]}setStyle(e,t,n=!1){if(null===t)return void delete this.style[e];let r=t,i=e;Object.prototype.hasOwnProperty.call(mt,e)&&(i=mt[e]),"string"==typeof r&&(r=t.trim(),r=i.toLowerCase().indexOf("colors")>-1?Be(r):i.toLowerCase().indexOf("color")>-1?Me(r):function(e){if("number"==typeof e)return e;if("string"==typeof e&&le.test(e))try{return parseFloat(e)}catch(t){return e}return e}(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||ft(this))}setNativeProps(e){if(e){const{style:t}=e;if(t){const e=t;Object.keys(e).forEach(t=>{this.setStyle(t,e[t],!0)}),ft(this),ot(!0)}}}setText(e){if("string"!=typeof e)try{e=e.toString()}catch(e){throw new Error("Only string type is acceptable for setText")}return(e=e.trim())||this.getAttribute("text")?(e=(e=ie(e)).replace(/ /g," ").replace(/Â/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}class St extends ht{constructor(){super(),this.documentElement=new kt("document")}createElement(e){return new kt(e)}createElementNS(e,t){return new kt(`${e}:${t}`)}}St.createElement=St.prototype.createElement,St.createElementNS=St.prototype.createElementNS;var xt=Array.isArray,Ct=Object.keys,Nt=Object.prototype.hasOwnProperty;const Pt=setTimeout,It=clearTimeout;var _t=Object.freeze({__proto__:null,commitMutationEffectsBegin:function(){},commitMutationEffectsComplete:function(){ot(!0)},getCurrentEventPriority:function(){return 16},scheduleTimeout:Pt,cancelTimeout:It,noTimeout:-1,afterActiveInstanceBlur:function(){},appendChild:function(e,t){e.childNodes.indexOf(t)>=0&&e.removeChild(t),e.appendChild(t)},appendChildToContainer:function(e,t){e.appendChild(t)},appendInitialChild:function(e,t){e.appendChild(t)},beforeActiveInstanceBlur:function(){},commitMount:function(){},commitTextUpdate:function(){},commitUpdate:function(e,t,n,r,i,o){U(o,e.nodeId);const a=Object.keys(t||{});if(0===a.length)return;const l=a.map(e=>[e,t[e]]);e.setAttributes(l)},clearContainer:function(){},createContainerChildSet:function(){},createInstance:function(e,t,n,r,i){const o=n.createElement(e);return Object.keys(t).forEach(e=>{switch(e){case"children":break;case"nativeName":o.meta.component.name=t.nativeName;break;default:o.setAttribute(e,t[e])}}),[5,7].indexOf(i.tag)<0&&(o.meta.skipAddToDom=!0),U(i,o.nodeId),o},createTextInstance:function(e,t,n,r){const i=t.createElement("p");return i.setAttribute("text",ie(e)),i.meta={component:{name:"Text"}},U(r,i.nodeId),i},detachDeletedInstance:function(){},finalizeContainerChildren:function(){},finalizeInitialChildren:function(){return!0},getChildHostContext:function(){return{}},getPublicInstance:function(e){return e},getInstanceFromNode:function(){throw new Error("Not yet implemented.")},getFundamentalComponentInstance:function(){throw new Error("Not yet implemented.")},getRootHostContext:function(){return{}},hideInstance:function(e){const t={style:{display:"none"}};Object.keys(t).forEach(n=>e.setAttribute(n,t[n]))},hideTextInstance:function(){throw new Error("Not yet implemented.")},insertBefore:function(e,t,n){e.childNodes.indexOf(t)>=0?e.moveChild(t,n):e.insertBefore(t,n)},isOpaqueHydratingObject:function(){throw new Error("Not yet implemented")},makeClientId:function(){throw new Error("Not yet implemented")},makeClientIdInDEV:function(){throw new Error("Not yet implemented")},makeOpaqueHydratingObject:function(){throw new Error("Not yet implemented.")},mountFundamentalComponent:function(){throw new Error("Not yet implemented.")},prepareForCommit:function(){return null},preparePortalMount:function(){},prepareUpdate:function(e,t,n,r){const i={};return Object.keys(n).forEach(e=>{const t=n[e],o=r[e];null!=t&&null==o&&(i[e]=o)}),Object.keys(r).forEach(e=>{const t=n[e],o=r[e];switch(e){case"children":t===o||"number"!=typeof o&&"string"!=typeof o||(i[e]=o);break;default:null!=o&&null==t?i[e]=o:"function"==typeof o||function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,i,o,a=xt(t),l=xt(n);if(a&&l){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=l)return!1;var s=t instanceof Date,u=n instanceof Date;if(s!=u)return!1;if(s&&u)return t.getTime()==n.getTime();var c=t instanceof RegExp,f=n instanceof RegExp;if(c!=f)return!1;if(c&&f)return t.toString()==n.toString();var d=Ct(t);if((i=d.length)!==Ct(n).length)return!1;for(r=i;0!=r--;)if(!Nt.call(n,d[r]))return!1;for(r=i;0!=r--;)if(!e(t[o=d[r]],n[o]))return!1;return!0}return t!=t&&n!=n}(t,o)||(i[e]=o)}}),i},replaceContainerChildren:function(){},removeChild:function(e,t){e.removeChild(t),Q(t)},removeChildFromContainer:function(e,t){e.removeChild(t),Q(t)},resetAfterCommit:function(){},resetTextContent:function(){},unmountFundamentalComponent:function(){throw new Error("Not yet implemented.")},updateFundamentalComponent:function(){throw new Error("Not yet implemented.")},unhideTextInstance:function(){throw new Error("Not yet implemented.")},unhideInstance:function(e,t){const n=x(x({},t),{},{style:x(x({},t.style),{},{display:"flex"})});Object.keys(n).forEach(t=>e.setAttribute(t,n[t]))},shouldDeprioritizeSubtree:function(){return!0},shouldUpdateFundamentalComponent:function(){throw new Error("Not yet implemented.")},shouldSetTextContent:function(e,t){if(t&&"Text"===t.nativeName||-1!==["p","span"].indexOf(e)){const{children:e}=t;return"string"==typeof e||"number"==typeof e}return!1}});const Lt=l()(x(x({},_t),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:()=>{},cancelDeferredCallback:()=>{}}));var Tt=Object.freeze({__proto__:null,getString:function(){return I.callNativeWithPromise("ClipboardModule","getString")},setString:function(e){I.callNative("ClipboardModule","setString",e)}});var At=Object.freeze({__proto__:null,getCookies:function(e){return I.callNativeWithPromise("network","getCookie",e)},setCookie:function(e,t,n){let r="";"string"==typeof n&&(r=n),n instanceof Date&&(r=n.toUTCString()),I.callNative("network","setCookie",e,t,r)}});function Rt(e){return I.callNativeWithPromise("ImageLoaderModule","getSize",e)}function zt(e){I.callNative("ImageLoaderModule","prefetch",e)}var Ot=Object.freeze({__proto__:null,getSize:Rt,prefetch:zt});const jt=new Map,Ft=new xe;class Ht{constructor(e,t){this.eventName=e,this.listener=t}remove(){this.eventName&&this.listener&&(Mt(this.eventName,this.listener),this.listener=void 0)}}function Mt(e,t){if(t instanceof Ht)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange");const r=jt.get(t);if(!r)return;r.remove(),jt.delete(t);Ft.listenerSize(n)<1&&I.callNative("NetInfo","removeListener",n)}var Bt=Object.freeze({__proto__:null,addEventListener:function(e,t){let n=e;n&&"change"===n&&(n="networkStatusDidChange"),Ft.listenerSize(n)<1&&I.callNative("NetInfo","addListener",n);const r=Ft.addListener(n,e=>{t(e)});return jt.set(t,r),new Ht(n,t)},removeEventListener:Mt,fetch:function(){return I.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)}});const{createNode:Dt,updateNode:Ut,deleteNode:Wt,flushBatch:Vt,endBatch:$t,sendRenderError:Qt}=L,qt=["%c[native]%c","color: red","color: auto"],Gt=function(e){return D(t=>t.stateNode&&t.stateNode.nodeId===e)};function Kt(e){if(e instanceof kt)return e;if(!e)return null;const t=e._reactInternalFiber||e._reactInternals;if(null==t?void 0:t.child){let e=t.child;for(;e&&!(e.stateNode instanceof kt);)e=e.child;return e&&e.stateNode?e.stateNode:null}return null}function Yt(e){let t=e;if("string"==typeof e){const n=D(t=>!!(t.return&&t.return.ref&&t.return.ref._stringRef)&&t.return.ref._stringRef===e);if(!n||!n.stateNode)return 0;t=n.stateNode}if(!t.nodeId){const e=Kt(t);return e?e.nodeId:0}return t.nodeId}function Xt(e,t,...n){let{nativeName:r,nodeId:i}=e;if(!i||!r){const t=Kt(e);t&&({nodeId:i,nativeName:r}=t)}if(!r)throw new Error("callUIFunction is calling a unnamed component");if(!i)throw new Error("callUIFunction is calling a component have no nodeId");let[o=[],a]=n;se(o)&&(a=o,o=[]);null!==B()&&(re(...qt,"callUIFunction",{nodeId:i,funcName:t,paramList:o}),L.callUIFunction(i,t,o,a))}function Jt(e,t,n){const r=Yt(t);return new Promise((t,i)=>r?(re(...qt,"callUIFunction",{nodeId:r,funcName:e,paramList:[]}),L.callUIFunction(r,e,[],e=>(n&&se(n)&&n(e),"this view is null"===e?i(new Error("Android cannot get the node")):t(e)))):(n&&se(n)&&n("this view is null"),i(new Error(e+" cannot get nodeId"))))}var Zt=Object.freeze({__proto__:null,createNode:Dt,updateNode:Ut,deleteNode:Wt,flushBatch:Vt,endBatch:$t,sendRenderError:Qt,getNodeById:Gt,getNodeIdByRef:Yt,getElementFromFiberRef:Kt,callUIFunction:Xt,getBoundingClientRect:function(e,t){const n=Yt(e);return new Promise((r,i)=>n?(re(...qt,"callUIFunction",{nodeId:n,funcName:"getBoundingClientRect",params:t}),L.callUIFunction(n,"getBoundingClientRect",[t],e=>{if(!e||e.errMsg)return i(new Error((null==e?void 0:e.errMsg)||"getBoundingClientRect error with no response"));const{x:t,y:n,width:o,height:a}=e;let l=void 0,s=void 0;return"number"==typeof n&&"number"==typeof a&&(l=n+a),"number"==typeof t&&"number"==typeof o&&(s=t+o),r({x:t,y:n,width:o,height:a,bottom:l,right:s,left:t,top:n})})):i(new Error("getBoundingClientRect cannot get nodeId of "+e)))},measureInWindow:function(e,t){return Jt("measureInWindow",e,t)},measureInAppWindow:function(e,t){return"android"===_.platform.OS?Jt("measureInWindow",e,t):Jt("measureInAppWindow",e,t)}});const en=new xe,tn=new Set,nn={exitApp(){I.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(I.callNative("DeviceEventModule","setListenBackPress",!0),tn.add(e),{remove(){nn.removeListener(e)}}),removeListener(e){tn.delete(e),0===tn.size&&I.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){en.addListener("hardwareBackPress",()=>{let e=!0;[...tn].reverse().every(t=>"function"!=typeof t||!t()||(e=!1,!1)),e&&nn.exitApp()})}},rn=(nn.initEventListener(),nn),{flushSync:on}=Lt,{addEventListener:an,removeEventListener:ln,dispatchEvent:sn,AsyncStorage:un,Bridge:cn,Device:fn,HippyRegister:dn}=O;var pn=Object.freeze({__proto__:null,addEventListener:an,removeEventListener:ln,dispatchEvent:sn,AsyncStorage:un,BackAndroid:rn,Bridge:cn,Clipboard:Tt,Cookie:At,Device:fn,HippyRegister:dn,ImageLoader:Ot,NetworkInfo:Bt,UIManager:Zt,flushSync:on});const{createContainer:hn,updateContainer:mn,getPublicRootInstance:yn,injectIntoDevTools:gn}=Lt,vn=['%c[Hippy-React "unspecified"]%c',"color: #61dafb","color: auto"];class bn{constructor(e){if(!e.appName||!e.entryPage)throw new TypeError("Invalid arguments");this.config=e,this.regist=this.start,this.render=this.render.bind(this);const t=new St;this.rootContainer=hn(t,0,!1,null)}static get Native(){return pn}start(){dn.regist(this.config.appName,this.render)}render(e){const{appName:t,entryPage:n,silent:r=!1,bubbles:i=!1,callback:a=(()=>{})}=this.config,{__instanceId__:l}=e;re(...vn,"Start",t,"with rootViewId",l,e),this.rootContainer.containerInfo.nodeId=l,r&&ue(r),i&&function(e=!1){ne=e}(i),M(l,this.rootContainer);const s=o.a.createElement(n,e);return mn(s,this.rootContainer,null,a),yn(this.rootContainer)}}bn.version="unspecified";const wn={registerComponent(e,t){new bn({appName:e,entryPage:t}).start()}};class En extends o.a.Component{constructor(){super(...arguments),this.instance=null}setPressed(e){Xt(this.instance,"setPressed",[e])}setHotspot(e,t){Xt(this.instance,"setHotspot",[e,t])}render(){const e=this.props,{collapsable:t,style:n={}}=e,r=N(e,u),i=n,{nativeBackgroundAndroid:a}=r;return"boolean"==typeof t&&(i.collapsable=t),void 0!==(null==a?void 0:a.color)&&(a.color=Me(a.color)),o.a.createElement("div",x({ref:e=>{this.instance=e},nativeName:"View",style:i},r))}}function kn(e,t){let{style:n}=e,r=N(e,c);const i=n;if(n&&(Array.isArray(n)?-1===n.filter(e=>"object"==typeof e&&e).findIndex(e=>e.color||e.colors)&&(i[0].color="#000"):"object"==typeof n&&void 0===n.color&&void 0===n.colors&&(i.color="#000")),r.text="","string"==typeof r.children)r.text=ie(r.children);else if("number"==typeof r.children)r.text=ie(r.children.toString());else if(Array.isArray(r.children)){const e=r.children.filter(e=>"string"==typeof e||"number"==typeof e).join("");e&&(r.text=ie(e),r.children=r.text)}return o.a.createElement("p",x({ref:t,nativeName:"Text",style:i},r))}kn.displayName="Text";const Sn=o.a.forwardRef(kn);Sn.displayName="Text";var xn=Object.freeze({__proto__:null,default:Sn});class Cn extends o.a.Component{static get resizeMode(){return{contain:"contain",cover:"cover",stretch:"stretch",center:"center",repeat:"repeat"}}static getSize(e,t,n){if("string"!=typeof e)throw new TypeError("Image.getSize first argument must be a string url");const r=Rt(e);return"function"==typeof t&&r.then(e=>t(e.width,e.height)),"function"==typeof n?r.catch(n):r.catch(e=>{}),r}render(){const e=this.props,{children:t,style:n,imageStyle:r,imageRef:i,source:a,sources:l,src:s,srcs:u,tintColor:c,tintColors:d}=e,p=N(e,f),h=this.getImageUrls({src:s,srcs:u,source:a,sources:l});1===h.length?[p.src]=h:h.length>1&&(p.srcs=h),"string"==typeof p.defaultSource&&(p.defaultSource.indexOf("data:image/"),p.defaultSource=de(p.defaultSource));const m=x({},n);return this.handleTintColor(m,c,d),p.style=m,t?o.a.createElement(En,{style:n},o.a.createElement("img",x(x({},p),{},{nativeName:"Image",alt:"",ref:i,style:[{position:"absolute",left:0,right:0,top:0,bottom:0,width:n.width,height:n.height},r]})),t):o.a.createElement("img",x(x({},p),{},{nativeName:"Image",alt:"",ref:i}))}getImageUrls({src:e,srcs:t,source:n,sources:r}){let i=[];if("string"==typeof e&&i.push(e),Array.isArray(t)&&(i=[...i,...t]),n)if("string"==typeof n)i.push(n);else if("object"==typeof n&&null!==n){const{uri:e}=n;e&&i.push(e)}return r&&Array.isArray(r)&&r.forEach(e=>{"string"==typeof e?i.push(e):"object"==typeof e&&null!==e&&e.uri&&i.push(e.uri)}),i.length&&(i=i.map(e=>de(e))),i}handleTintColor(e,t,n){t&&Object.assign(e,{tintColor:t}),Array.isArray(n)&&Object.assign(e,{tintColors:n})}}Cn.prefetch=zt;class Nn{constructor(){this.Value=Nn.Value}static Value(e){return e}static timing(e,t){return new qe({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}Nn.View=En,Nn.Text=xn,Nn.Image=Cn;const Pn={step0:e=>e>0?1:0,step1:e=>e>=1?1:0,linear:()=>"linear",ease:()=>"ease",quad:e=>e**2,cubic:e=>e**3,poly:e=>t=>t**e,sin:e=>1-Math.cos(e*Math.PI/2),circle:e=>1-Math.sqrt(1-e*e),exp:e=>2**(10*(e-1)),elastic:()=>"elastic",back:(e=1.70158)=>t=>t*t*((e+1)*t-e),bounce(e){let t=e;return t<1/2.75?7.5625*t*t:t<2/2.75?(t-=1.5/2.75,7.5625*t*t+.75):t<2.5/2.75?(t-=2.25/2.75,7.5625*t*t+.9375):(t-=2.625/2.75,7.5625*t*t+.984375)},bezier:()=>"bezier",in:()=>"ease-in",out:()=>"ease-out",inOut:()=>"ease-in-out"};function In(e){return o.a.createElement("li",x({nativeName:"ListViewItem"},e))}class _n extends o.a.Component{constructor(){super(...arguments),this.instance=null}expandPullHeader(){Xt(this.instance,"expandPullHeader",[])}collapsePullHeader(e){void 0!==e?Xt(this.instance,"collapsePullHeaderWithOptions",[e]):Xt(this.instance,"collapsePullHeader",[])}render(){const e=this.props,{children:t}=e,n=N(e,d);return o.a.createElement("div",x({nativeName:"PullHeaderView",ref:e=>{this.instance=e}},n),t)}}class Ln extends o.a.Component{constructor(){super(...arguments),this.instance=null}expandPullFooter(){Xt(this.instance,"expandPullFooter",[])}collapsePullFooter(){Xt(this.instance,"collapsePullFooter",[])}render(){const e=this.props,{children:t}=e,n=N(e,p);return o.a.createElement("div",x({nativeName:"PullFooterView",ref:e=>{this.instance=e}},n),t)}}class Tn extends o.a.Component{constructor(e){super(e),this.instance=null,this.pullHeader=null,this.pullFooter=null,this.handleInitialListReady=this.handleInitialListReady.bind(this),this.state={initialListReady:!1}}componentDidMount(){const{getRowKey:e}=this.props}scrollToIndex(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Xt(this.instance,"scrollToIndex",[e,t,n])}scrollToContentOffset(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Xt(this.instance,"scrollToContentOffset",[e,t,n])}expandPullHeader(){this.pullHeader&&this.pullHeader.expandPullHeader()}collapsePullHeader(e){this.pullHeader&&this.pullHeader.collapsePullHeader(e)}expandPullFooter(){this.pullFooter&&this.pullFooter.expandPullFooter()}collapsePullFooter(){this.pullFooter&&this.pullFooter.collapsePullFooter()}render(){const e=this.props,{children:t,style:n,renderRow:r,renderPullHeader:i,renderPullFooter:a,getRowType:l,getRowStyle:s,getHeaderStyle:u,getFooterStyle:c,getRowKey:f,dataSource:d,initialListSize:p,rowShouldSticky:m,onRowLayout:y,onHeaderPulling:g,onHeaderReleased:v,onFooterPulling:b,onFooterReleased:w,onAppear:E,onDisappear:k,onWillAppear:S,onWillDisappear:C}=e,P=N(e,h),I=[];if("function"==typeof r){const{initialListReady:e}=this.state;let{numberOfRows:t}=this.props;const h=this.getPullHeader(i,g,v,u),N=this.getPullFooter(a,b,w,c);!t&&d&&(t=d.length),e||(t=Math.min(t,p||15));for(let e=0;e{"function"==typeof n&&(t[r]=()=>{n(e)})}),n&&I.push(o.a.createElement(In,x({},t),n))}h&&I.unshift(h),N&&I.push(N),"function"==typeof m&&Object.assign(P,{rowShouldSticky:!0});const _=[E,k,S,C];P.exposureEventEnabled=_.some(e=>"function"==typeof e),"ios"===fn.platform.OS&&(P.numberOfRows=I.length),void 0!==p&&(P.initialListSize=p),P.style=x({overflow:"scroll"},n)}return o.a.createElement("ul",x({ref:e=>{this.instance=e},nativeName:"ListView",initialListReady:this.handleInitialListReady},P),I.length?I:t)}handleInitialListReady(){this.setState({initialListReady:!0})}getPullHeader(e,t,n,r){let i=null,a={};return"function"==typeof r&&(a=r()),"function"==typeof e&&(i=o.a.createElement(_n,{style:a,key:"pull-header",ref:e=>{this.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),i}getPullFooter(e,t,n,r){let i=null,a={};if("function"==typeof r&&(a=r()),"function"==typeof e){const r={style:a,key:"pull-footer",ref:e=>{this.pullFooter=e}};"function"==typeof t&&(r.onFooterPulling=t),"function"==typeof t&&(r.onFooterReleased=n),i=o.a.createElement(Ln,x({},r),e())}return i}handleRowProps(e,t,{getRowKey:n,getRowStyle:r,onRowLayout:i,getRowType:o,rowShouldSticky:a}){if("function"==typeof n&&(e.key=n(t)),"function"==typeof r&&(e.style=r(t)),"function"==typeof i&&(e.onLayout=e=>{i(e,t)}),"function"==typeof o){const n=o(t);Number.isInteger(n),e.type=n}"function"==typeof a&&(e.sticky=a(t))}}Tn.defaultProps={numberOfRows:0};class An extends o.a.Component{constructor(e){super(e),this.instance=null,this.refreshComplected=this.refreshCompleted.bind(this)}startRefresh(){Xt(this.instance,"startRefresh",null)}refreshCompleted(){Xt(this.instance,"refreshComplected",null)}render(){const e=this.props,{children:t}=e,n=N(e,m);return o.a.createElement("div",x({nativeName:"RefreshWrapper",ref:e=>{this.instance=e}},n),o.a.createElement("div",{nativeName:"RefreshWrapperItemView",style:{left:0,right:0,position:"absolute"}},this.getRefresh()),t)}getRefresh(){const{getRefresh:e}=this.props;return"function"==typeof e&&e()||null}}class Rn{constructor(){this.top=null,this.size=0}push(e){this.top={data:e,next:this.top},this.size+=1}peek(){return null===this.top?null:this.top.data}pop(){if(null===this.top)return null;const e=this.top;return this.top=this.top.next,this.size>0&&(this.size-=1),e.data}clear(){this.top=null,this.size=0}displayAll(){const e=[];if(null===this.top)return e;let t=this.top;for(let n=0,r=this.size;n1&&this.pop({animated:!0})}push(e){if(null==e?void 0:e.component){if(!this.routeList[e.routeName]){new bn({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0}delete e.component}const t=[e];this.stack.push(e),Xt(this.instance,"push",t)}pop(e){if(this.stack.size>1){const t=[e];this.stack.pop(),Xt(this.instance,"pop",t)}}clear(){this.stack.clear()}render(){const e=this.props,{initialRoute:{component:t}}=e,n=N(e.initialRoute,g),r=N(e,y);return r.initialRoute=n,o.a.createElement("div",x({nativeName:"Navigator",ref:e=>{this.instance=e}},r))}}function On(e){return o.a.createElement("div",x(x({nativeName:"ViewPagerItem"},e),{},{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}class jn extends o.a.Component{constructor(e){super(e),this.instance=null,this.setPage=this.setPage.bind(this),this.setPageWithoutAnimation=this.setPageWithoutAnimation.bind(this),this.onPageScrollStateChanged=this.onPageScrollStateChanged.bind(this)}onPageScrollStateChanged(e){const{onPageScrollStateChanged:t}=this.props;t&&t(e.pageScrollState)}setPage(e){"number"==typeof e&&Xt(this.instance,"setPage",[e])}setPageWithoutAnimation(e){"number"==typeof e&&Xt(this.instance,"setPageWithoutAnimation",[e])}render(){const e=this.props,{children:t,onPageScrollStateChanged:n}=e,r=N(e,v);let i=[];return Array.isArray(t)?i=t.map(e=>{const t={};return"string"==typeof e.key&&(t.key="viewPager_"+e.key),o.a.createElement(On,x({},t),e)}):i.push(o.a.createElement(On,null,t)),"function"==typeof n&&(r.onPageScrollStateChanged=this.onPageScrollStateChanged),o.a.createElement("div",x({nativeName:"ViewPager",ref:e=>{this.instance=e}},r),i)}}function Fn(){const e=_.platform.Localization;return!!e&&1===e.direction}const Hn={caretColor:"caret-color"};class Mn extends o.a.Component{constructor(e){super(e),this.instance=null,this._lastNativeText="",this.onChangeText=this.onChangeText.bind(this),this.onKeyboardWillShow=this.onKeyboardWillShow.bind(this)}componentDidMount(){const{value:e,autoFocus:t}=this.props;this._lastNativeText=e,t&&this.focus()}componentWillUnmount(){this.blur()}getValue(){return new Promise(e=>{Xt(this.instance,"getValue",t=>e(t.text))})}setValue(e){return Xt(this.instance,"setValue",[e]),e}focus(){Xt(this.instance,"focusTextInput",[])}blur(){Xt(this.instance,"blurTextInput",[])}isFocused(){return new Promise(e=>{Xt(this.instance,"isFocused",t=>e(t.value))})}showInputMethod(){}hideInputMethod(){}clear(){Xt(this.instance,"clear",[])}render(){const e=x({},this.props);return["underlineColorAndroid","placeholderTextColor","placeholderTextColors","caretColor","caret-color"].forEach(t=>{let n=t;const r=this.props[t];"string"==typeof this.props[t]&&(Hn[t]&&(n=Hn[t]),Array.isArray(e.style)?e.style.push({[n]:r}):e.style&&"object"==typeof e.style?e.style[n]=r:e.style={[n]:r},delete e[t])}),Fn()&&(e.style?"object"!=typeof e.style||Array.isArray(e.style)||e.style.textAlign||(e.style.textAlign="right"):e.style={textAlign:"right"}),o.a.createElement("div",x(x({nativeName:"TextInput"},e),{},{ref:e=>{this.instance=e},onChangeText:this.onChangeText,onKeyboardWillShow:this.onKeyboardWillShow}))}onChangeText(e){const{onChangeText:t}=this.props;"function"==typeof t&&t(e.text),this.instance&&(this._lastNativeText=e.text)}onKeyboardWillShow(e){const{onKeyboardWillShow:t}=this.props;"function"==typeof t&&t(e)}}const Bn=fn.window.scale;let Dn=Math.round(.4*Bn)/Bn;function Un(e){return e}0===Dn&&(Dn=1/Bn);var Wn=Object.freeze({__proto__:null,get hairlineWidth(){return Dn},create:Un});const Vn={baseVertical:{flexGrow:1,flexShrink:1,flexDirection:"column",overflow:"scroll"},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:"row",overflow:"scroll"},contentContainerVertical:{collapsable:!1,flexDirection:"column"},contentContainerHorizontal:{collapsable:!1,flexDirection:"row"}};class $n extends o.a.Component{constructor(){super(...arguments),this.instance=null}scrollTo(e,t,n=!0){let r=e,i=t,o=n;"object"==typeof e&&e&&({x:r,y:i,animated:o}=e),r=r||0,i=i||0,o=!!o,Xt(this.instance,"scrollTo",[r,i,o])}scrollToWithDuration(e=0,t=0,n=1e3){Xt(this.instance,"scrollToWithOptions",[{x:e,y:t,duration:n}])}render(){const{horizontal:e,contentContainerStyle:t,children:n,style:r}=this.props,i=[e?Vn.contentContainerHorizontal:Vn.contentContainerVertical,t],a=e?Object.assign({},Vn.baseHorizontal,r):Object.assign({},Vn.baseVertical,r);return e&&(a.flexDirection=Fn()?"row-reverse":"row"),o.a.createElement("div",x(x({nativeName:"ScrollView",ref:e=>{this.instance=e}},this.props),{},{style:a}),o.a.createElement(En,{style:i},n))}}const Qn={modal:{position:"absolute",collapsable:!1}};class qn extends o.a.Component{constructor(e){super(e),this.eventSubscription=null}componentDidMount(){"ios"===fn.platform.OS&&(this.eventSubscription=new ke("modalDismissed"),this.eventSubscription.addCallback(e=>{const{primaryKey:t,onDismiss:n}=this.props;e.primaryKey===t&&"function"==typeof n&&n()}))}componentWillUnmount(){"ios"===fn.platform.OS&&this.eventSubscription&&this.eventSubscription.unregister()}render(){const{children:e,visible:t,transparent:n,animated:r}=this.props;let{animationType:i}=this.props;if(!1===t)return null;const a={backgroundColor:n?"transparent":"white"};return i||(i="none",r&&(i="slide")),o.a.createElement("div",x({nativeName:"Modal",animationType:i,transparent:n,style:[Qn.modal,a]},this.props),e)}}qn.defaultProps={visible:!0};class Gn extends o.a.Component{constructor(e){super(e);const{requestFocus:t}=this.props;this.state={isFocus:!!t},this.handleFocus=this.handleFocus.bind(this)}render(){var e,t,n;const{requestFocus:r,children:i,nextFocusDownId:a,nextFocusUpId:l,nextFocusLeftId:s,nextFocusRightId:u,style:c,noFocusStyle:f,focusStyle:d,onClick:p}=this.props,{isFocus:h}=this.state,m=o.a.Children.only(i);let y;(null===(t=null===(e=null==m?void 0:m.child)||void 0===e?void 0:e.memoizedProps)||void 0===t?void 0:t.nativeName)?y=m.child.memoizedProps.nativeName:(null===(n=null==m?void 0:m.type)||void 0===n?void 0:n.displayName)&&(y=m.type.displayName);const g=a&&Yt(a),v=l&&Yt(l),b=s&&Yt(s),w=u&&Yt(u);let E=c;if("Text"!==y){const e=m.memoizedProps.style;E=x(x({},E),e)}if(Object.assign(E,h?d:f),"Text"===y)return o.a.createElement(En,{focusable:!0,nextFocusDownId:g,nextFocusUpId:v,nextFocusLeftId:b,nextFocusRightId:w,requestFocus:r,style:E,onClick:p,onFocus:this.handleFocus},m);const{children:k}=m.memoizedProps;return o.a.cloneElement(m,{nextFocusDownId:a,nextFocusUpId:l,nextFocusLeftId:s,nextFocusRightId:u,requestFocus:r,onClick:p,focusable:!0,children:k,style:E,onFocus:this.handleFocus})}handleFocus(e){const{onFocus:t}=this.props;"function"==typeof t&&t(e);const{isFocus:n}=this.state;n!==e.focus&&this.setState({isFocus:e.focus})}}function Kn(e){return o.a.createElement("iframe",x({title:"hippy",nativeName:"WebView"},e))}let Yn;class Xn{constructor(e,t,n){if(this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),Yn||(Yn=new ke("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!e||"string"!=typeof e)throw new TypeError("Invalid WebSocket url");const r=x({},n);if(void 0!==t)if(Array.isArray(t)&&t.length>0)r["Sec-WebSocket-Protocol"]=t.join(",");else{if("string"!=typeof t)throw new TypeError("Invalid WebSocket protocols");r["Sec-WebSocket-Protocol"]=t}const i={headers:r,url:e};this.url=e,this.webSocketCallbackId=Yn.addCallback(this.onWebSocketEvent),I.callNativeWithPromise("websocket","connect",i).then(e=>{e&&0===e.code&&"number"==typeof e.id&&(this.webSocketId=e.id)})}close(e,t){1===this.readyState&&(this.readyState=2,I.callNative("websocket","close",{id:this.webSocketId,code:e,reason:t}))}send(e){if(1===this.readyState){if("string"!=typeof e)throw new TypeError("Unsupported websocket data type: "+typeof e);I.callNative("websocket","send",{id:this.webSocketId,data:e})}}set onopen(e){this.webSocketCallbacks.onOpen=e}set onclose(e){this.webSocketCallbacks.onClose=e}set onerror(e){this.webSocketCallbacks.onError=e}set onmessage(e){this.webSocketCallbacks.onMessage=e}onWebSocketEvent(e){if("object"!=typeof e||e.id!==this.webSocketId)return;const{type:t}=e;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,Yn.removeCallback(this.webSocketCallbackId));const n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}function Jn(e){return o.a.createElement("li",x({nativeName:"WaterfallItem"},e))}class Zn extends o.a.Component{constructor(e){super(e),this.instance=null,this.pullHeader=null,this.pullFooter=null,this.handleInitialListReady=this.handleInitialListReady.bind(this)}scrollToIndex({index:e=0,animated:t=!0}){Xt(this.instance,"scrollToIndex",[e,e,t])}scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){Xt(this.instance,"scrollToContentOffset",[e,t,n])}expandPullHeader(){this.pullHeader&&this.pullHeader.expandPullHeader()}collapsePullHeader(e){this.pullHeader&&this.pullHeader.collapsePullHeader(e)}expandPullFooter(){this.pullFooter&&this.pullFooter.expandPullFooter()}collapsePullFooter(){this.pullFooter&&this.pullFooter.collapsePullFooter()}render(){const e=this.props,{style:t={},renderBanner:n,renderFooter:r,numberOfColumns:i=2,columnSpacing:a=0,interItemSpacing:l=0,numberOfItems:s=0,preloadItemNumber:u=0,renderItem:c,renderPullHeader:f,renderPullFooter:d,getItemType:p,getItemKey:h,getItemStyle:m,contentInset:y={top:0,left:0,bottom:0,right:0},onItemLayout:g,onHeaderPulling:v,onHeaderReleased:w,onFooterPulling:E,onFooterReleased:k,containPullHeader:S=!1,containPullFooter:C=!1,containBannerView:P=!1}=e,I=x(x({},N(e,b)),{},{style:t,numberOfColumns:i,columnSpacing:a,interItemSpacing:l,preloadItemNumber:u,contentInset:y,containPullHeader:S,containPullFooter:C,containBannerView:P}),_=[];if("function"==typeof n){const e=n();if(e)if("ohos"===fn.platform.OS)_.push(o.a.createElement(En,{key:"bannerView"},o.a.cloneElement(e))),I.containBannerView=!0;else{const t={key:"bannerView",isHeader:!0,fullSpan:!0,style:{}};_.push(o.a.createElement(Jn,x({},t),o.a.cloneElement(e)))}}if("function"==typeof c){const e=this.getPullHeader(f,v,w),n=this.getPullFooter(d,E,k);for(let e=0;ethis.instance=e,initialListReady:this.handleInitialListReady.bind(this)},I),_)}componentDidMount(){const{getItemKey:e}=this.props}handleRowProps(e,t,{getItemKey:n,getItemStyle:r,onItemLayout:i,getItemType:o}){if("function"==typeof n&&(e.key=n(t)),"function"==typeof r&&(e.style=r(t)),"function"==typeof i&&(e.onLayout=e=>{i.call(this,e,t)}),"function"==typeof o){const n=o(t);Number.isInteger(n),e.type=n}}getPullHeader(e,t,n){let r=null;return"function"==typeof e&&(r=o.a.createElement(_n,{key:"PullHeader",ref:e=>{this.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),r}getPullFooter(e,t,n){let r=null;if("function"==typeof e){const i={key:"PullFooter",ref:e=>{this.pullFooter=e},onFooterReleased:n};"function"==typeof t&&(i.onFooterPulling=t),r=o.a.createElement(Ln,x({},i),e())}return r}handleInitialListReady(){const{onInitialListReady:e}=this.props;"function"==typeof e&&e()}}e.WebSocket=Xn;const{AsyncStorage:er,BackAndroid:tr,Bridge:nr,Clipboard:rr,Cookie:ir,Device:or,HippyRegister:ar,ImageLoader:lr,NetworkInfo:sr,UIManager:ur,flushSync:cr}=pn,{callNative:fr,callNativeWithPromise:dr,callNativeWithCallbackId:pr,removeNativeCallback:hr}=nr,mr=null,yr=e.ConsoleModule||e.console,gr=or.platform,vr=bn,br=Cn,wr={get:e=>or[e]},Er={get:()=>or.screen.scale}}.call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/process/browser.js"))},"./node_modules/@hippy/react-reconciler/cjs/react-reconciler.production.min.js":function(e,t,n){(function(e){ /** @license React v0.26.2 * react-reconciler.production.min.js * @@ -29,7 +29,7 @@ var hippyReactBase=function(e){var t={};function n(r){if(t[r])return t[r].export * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -e.exports=function(t){var r={},i=n("./node_modules/object-assign/index.js"),o=n("./node_modules/react/index.js"),a=n("./node_modules/scheduler/index.js");function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n--l||i[a]!==o[l])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=l);break}}}finally{et=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ze(e):""}var nt=[],rt=-1;function it(e){return{current:e}}function ot(e){0>rt||(e.current=nt[rt],nt[rt]=null,rt--)}function at(e,t){rt++,nt[rt]=e.current,e.current=t}var lt={},st=it(lt),ut=it(!1),ct=lt;function ft(e,t){var n=e.type.contextTypes;if(!n)return lt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function dt(e){return null!=(e=e.childContextTypes)}function pt(){ot(ut),ot(st)}function ht(e,t,n){if(st.current!==lt)throw Error(l(168));at(st,t),at(ut,n)}function mt(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(l(108,I(t)||"Unknown",o));return i({},n,r)}function yt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||lt,ct=st.current,at(st,e),at(ut,ut.current),!0}function gt(e,t,n){var r=e.stateNode;if(!r)throw Error(l(169));n?(e=mt(e,t,ct),r.__reactInternalMemoizedMergedChildContext=e,ot(ut),ot(st),at(st,e)):ot(ut),at(ut,n)}var vt=null,bt=null;(0,a.unstable_now)();var wt=0,Et=8;function kt(e){if(0!=(1&e))return Et=15,1;if(0!=(2&e))return Et=14,2;if(0!=(4&e))return Et=13,4;var t=24&e;return 0!==t?(Et=12,t):0!=(32&e)?(Et=11,32):0!==(t=192&e)?(Et=10,t):0!=(256&e)?(Et=9,256):0!==(t=3584&e)?(Et=8,t):0!=(4096&e)?(Et=7,4096):0!==(t=4186112&e)?(Et=6,t):0!==(t=62914560&e)?(Et=5,t):67108864&e?(Et=4,67108864):0!=(134217728&e)?(Et=3,134217728):0!==(t=805306368&e)?(Et=2,t):0!=(1073741824&e)?(Et=1,1073741824):(Et=8,e)}function St(e,t){var n=e.pendingLanes;if(0===n)return Et=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==o)r=o,i=Et=15;else if(0!==(o=134217727&n)){var s=o&~a;0!==s?(r=kt(s),i=Et):0!==(l&=o)&&(r=kt(l),i=Et)}else 0!==(o=n&~a)?(r=kt(o),i=Et):0!==l&&(r=kt(l),i=Et);if(0===r)return 0;if(r=n&((0>(r=31-_t(r))?0:1<n;n++)t.push(e);return t}function It(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-_t(t)]=n}var _t=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Lt(e)/Tt|0)|0},Lt=Math.log,Tt=Math.LN2;var At=a.unstable_runWithPriority,Rt=a.unstable_scheduleCallback,zt=a.unstable_cancelCallback,Ot=a.unstable_shouldYield,jt=a.unstable_requestPaint,Ft=a.unstable_now,Ht=a.unstable_getCurrentPriorityLevel,Mt=a.unstable_ImmediatePriority,Bt=a.unstable_UserBlockingPriority,Dt=a.unstable_NormalPriority,Ut=a.unstable_LowPriority,Wt=a.unstable_IdlePriority,Vt={},$t=void 0!==jt?jt:function(){},Qt=null,qt=null,Gt=!1,Kt=Ft(),Yt=1e4>Kt?Ft:function(){return Ft()-Kt};function Xt(){switch(Ht()){case Mt:return 99;case Bt:return 98;case Dt:return 97;case Ut:return 96;case Wt:return 95;default:throw Error(l(332))}}function Jt(e){switch(e){case 99:return Mt;case 98:return Bt;case 97:return Dt;case 96:return Ut;case 95:return Wt;default:throw Error(l(332))}}function Zt(e,t){return e=Jt(e),At(e,t)}function en(e,t,n){return e=Jt(e),Rt(e,t,n)}function tn(){if(null!==qt){var e=qt;qt=null,zt(e)}nn()}function nn(){if(!Gt&&null!==Qt){Gt=!0;var e=0;try{var t=Qt;Zt(99,(function(){for(;ed?(p=f,f=null):p=f.sibling;var h=y(i,f,l[d],s);if(null===h){null===f&&(f=p);break}e&&f&&null===h.alternate&&t(i,f),a=o(h,a,d),null===c?u=h:c.sibling=h,c=h,f=p}if(d===l.length)return n(i,f),u;if(null===f){for(;dp?(h=d,d=null):h=d.sibling;var b=y(i,d,v.value,u);if(null===b){null===d&&(d=h);break}e&&d&&null===b.alternate&&t(i,d),a=o(b,a,p),null===f?c=b:f.sibling=b,f=b,d=h}if(v.done)return n(i,d),c;if(null===d){for(;!v.done;p++,v=s.next())null!==(v=m(i,v.value,u))&&(a=o(v,a,p),null===f?c=v:f.sibling=v,f=v);return c}for(d=r(i,d);!v.done;p++,v=s.next())null!==(v=g(d,i,p,v.value,u))&&(e&&null!==v.alternate&&d.delete(null===v.key?p:v.key),a=o(v,a,p),null===f?c=v:f.sibling=v,f=v);return e&&d.forEach((function(e){return t(i,e)})),c}return function e(r,o,s,d){var p="object"==typeof s&&null!==s&&s.type===f&&null===s.key;p&&(s=s.props.children);var h="object"==typeof s&&null!==s;if(h)switch(s.$$typeof){case u:e:{for(h=s.key,p=o;null!==p;){if(p.key===h){switch(p.tag){case 7:if(s.type===f){n(r,p.sibling),(o=i(p,s.props.children)).return=r,r=o;break e}break;case 22:if((h=s.type).$$typeof===w&&(h=Hn(h)),h.$$typeof===E&&h._render===p.type._render){n(r,p.sibling),(o=i(p,s.props)).type=h,o.return=r,r=o;break e}default:if(p.elementType===s.type){n(r,p.sibling),(o=i(p,s.props)).ref=jn(r,p,s),o.return=r,r=o;break e}}n(r,p);break}t(r,p),p=p.sibling}s.type===f?((o=Ma(s.props.children,r.mode,d,s.key)).return=r,r=o):((d=Ha(s.type,s.key,s.props,null,r.mode,d)).ref=jn(r,o,s),d.return=r,r=d)}return a(r);case c:e:{for(p=s.key;null!==o;){if(o.key===p){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=i(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Ua(s,r.mode,d)).return=r,r=o}return a(r);case w:return e(r,o,(p=s._init)(s._payload),d)}if("string"==typeof s||"number"==typeof s)return s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,s)).return=r,r=o):(n(r,o),(o=Da(s,r.mode,d)).return=r,r=o),a(r);if(On(s))return v(r,o,s,d);if(P(s))return b(r,o,s,d);if(h&&Fn(r,s),void 0===s&&!p)switch(r.tag){case 1:case 22:case 0:case 11:case 15:throw Error(l(152,I(r.type)||"Component"))}return n(r,o)}}var Bn=Mn(!0),Dn=Mn(!1),Un={},Wn=it(Un),Vn=it(Un),$n=it(Un);function Qn(e){if(e===Un)throw Error(l(174));return e}function qn(e,t){at($n,t),at(Vn,e),at(Wn,Un),e=j(t),ot(Wn),at(Wn,e)}function Gn(){ot(Wn),ot(Vn),ot($n)}function Kn(e){var t=Qn($n.current),n=Qn(Wn.current);n!==(t=F(n,e.type,t))&&(at(Vn,e),at(Wn,t))}function Yn(e){Vn.current===e&&(ot(Wn),ot(Vn))}var Xn=it(0);function Jn(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Be(n)||De(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Zn=null,er=null,tr=!1;function nr(e,t){var n=Oa(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function rr(e,t){switch(e.tag){case 5:return null!==(t=Fe(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=He(t,e.pendingProps))&&(e.stateNode=t,!0);case 13:if(null!==(t=Me(t))){e.memoizedState={dehydrated:t,retryLane:1073741824};var n=Oa(18,null,null,0);return n.stateNode=t,n.return=e,e.child=n,!0}return!1;default:return!1}}function ir(e){if(tr){var t=er;if(t){var n=t;if(!rr(e,t)){if(!(t=We(n))||!rr(e,t))return e.flags=-1025&e.flags|2,tr=!1,void(Zn=e);nr(Zn,n)}Zn=e,er=Ve(t)}else e.flags=-1025&e.flags|2,tr=!1,Zn=e}}function or(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Zn=e}function ar(e){if(!J||e!==Zn)return!1;if(!tr)return or(e),tr=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!V(t,e.memoizedProps))for(t=er;t;)nr(e,t),t=We(t);if(or(e),13===e.tag){if(!J)throw Error(l(316));if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(l(317));er=Ge(e)}else er=Zn?We(e.stateNode):null;return!0}function lr(){J&&(er=Zn=null,tr=!1)}var sr=[];function ur(){for(var e=0;eo))throw Error(l(301));o+=1,mr=hr=null,t.updateQueue=null,cr.current=Kr,e=n(r,i)}while(gr)}if(cr.current=Qr,t=null!==hr&&null!==hr.next,dr=0,mr=hr=pr=null,yr=!1,t)throw Error(l(300));return e}function Er(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~n}function kr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===mr?pr.memoizedState=mr=e:mr=mr.next=e,mr}function Sr(){if(null===hr){var e=pr.alternate;e=null!==e?e.memoizedState:null}else e=hr.next;var t=null===mr?pr.memoizedState:mr.next;if(null!==t)mr=t,hr=e;else{if(null===e)throw Error(l(310));e={memoizedState:(hr=e).memoizedState,baseState:hr.baseState,baseQueue:hr.baseQueue,queue:hr.queue,next:null},null===mr?pr.memoizedState=mr=e:mr=mr.next=e}return mr}function Cr(e,t){return"function"==typeof t?t(e):t}function xr(e){var t=Sr(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=hr,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=a=o=null,u=i;do{var c=u.lane;if((dr&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===s?(a=s=f,o=r):s=s.next=f,pr.lanes|=c,ko|=c}u=u.next}while(null!==u&&u!==i);null===s?o=r:s.next=a,on(r,t.memoizedState)||(Xr=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Nr(e){var t=Sr(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);on(o,t.memoizedState)||(Xr=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Pr(e,t,n){var r=t._getVersion;r=r(t._source);var i=K?t._workInProgressVersionPrimary:t._workInProgressVersionSecondary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(dr&e)===e)&&(K?t._workInProgressVersionPrimary=r:t._workInProgressVersionSecondary=r,sr.push(t))),e)return n(t._source);throw sr.push(t),Error(l(350))}function Ir(e,t,n,r){var i=ho;if(null===i)throw Error(l(349));var o=t._getVersion,a=o(t._source),s=cr.current,u=s.useState((function(){return Pr(i,t,n)})),c=u[1],f=u[0];u=mr;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var y=pr;return e.memoizedState={refs:p,source:t,subscribe:r},s.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=o(t._source);if(!on(a,e)){e=n(t._source),on(f,e)||(c(e),e=Go(y),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,l=e;0n?98:n,(function(){e(!0)})),Zt(97Po&&(t.flags|=64,i=!0,Ni(r,!1),t.lanes=33554432)}else{if(!i)if(null!==(e=Jn(o))){if(t.flags|=64,i=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),Ni(r,!0),null===r.tail&&"hidden"===r.tailMode&&!o.alternate&&!tr)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Yt()-r.renderingStartTime>Po&&1073741824!==n&&(t.flags|=64,i=!0,Ni(r,!1),t.lanes=33554432);r.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=r.last)?e.sibling=o:t.child=o,r.last=o)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Yt(),e.sibling=null,t=Xn.current,at(Xn,i?1&t|2:1&t),e):null;case 22:return null;case 23:case 24:return ia(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(l(156,t.tag))}function Ii(e){switch(e.tag){case 1:dt(e.type)&&pt();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Gn(),ot(ut),ot(st),ur(),0!=(64&(t=e.flags)))throw Error(l(285));return e.flags=-4097&t|64,e;case 5:return Yn(e),null;case 13:if(ot(Xn),null!==(t=e.memoizedState)&&null!==t.dehydrated){if(null===e.alternate)throw Error(l(340));lr()}return 4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ot(Xn),null;case 4:return Gn(),null;case 10:return yn(e),null;case 23:case 24:return ia(),null;default:return null}}function _i(e,t){try{var n="",r=t;do{n+=sn(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function Li(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Ti="function"==typeof WeakMap?WeakMap:Map;function Ai(e,t,n){(n=Sn(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){To||(To=!0,Ao=r),Li(0,t)},n}function Ri(e,t,n){(n=Sn(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return Li(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ro?Ro=new Set([this]):Ro.add(this),Li(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var zi="function"==typeof WeakSet?WeakSet:Set;function Oi(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){ka(e,t)}else t.current=null}function ji(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:un(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(Y&&256&t.flags&&Pe(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(l(163))}function Fi(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function Hi(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(ba(n,e),va(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:un(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&Pn(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=O(n.child.stateNode);break;case 1:e=n.child.stateNode}Pn(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&ye(e,n.type,n.memoizedProps,n));case 6:case 4:case 12:return;case 13:return void(J&&null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Ye(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(l(163))}function Mi(e,t){if(Y)for(var n=e;;){if(5===n.tag){var r=n.stateNode;t?Se(r):xe(n.stateNode,n.memoizedProps)}else if(6===n.tag)r=n.stateNode,t?Ce(r):Ne(r,n.memoizedProps);else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Bi(e,t){if(bt&&"function"==typeof bt.onCommitFiberUnmount)try{bt.onCommitFiberUnmount(vt,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))ba(t,n);else{r=t;try{i()}catch(e){ka(r,e)}}n=n.next}while(n!==e)}break;case 1:if(Oi(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){ka(t,e)}break;case 5:Oi(t);break;case 4:Y?$i(e,t):X&&X&&(t=t.stateNode.containerInfo,e=Te(t),ze(t,e))}}function Di(e,t){for(var n=t;;)if(Bi(e,n),null===n.child||Y&&4===n.tag){if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}else n.child.return=n,n=n.child}function Ui(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Wi(e){return 5===e.tag||3===e.tag||4===e.tag}function Vi(e){if(Y){e:{for(var t=e.return;null!==t;){if(Wi(t))break e;t=t.return}throw Error(l(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(l(161))}16&n.flags&&(ke(t),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Wi(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?be(r,t,n):he(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?ve(r,t,n):pe(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}}function $i(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(l(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag)Di(e,i),r?Ee(n,i.stateNode):we(n,i.stateNode);else if(18===i.tag)r?Je(n,i.stateNode):Xe(n,i.stateNode);else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(Bi(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function Qi(e,t){if(Y){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Fi(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var i=t.type,o=t.updateQueue;t.updateQueue=null,null!==o&&ge(n,o,i,e,r,t)}return;case 6:if(null===t.stateNode)throw Error(l(162));return n=t.memoizedProps,void me(t.stateNode,null!==e?e.memoizedProps:n,n);case 3:return void(J&&(t=t.stateNode,t.hydrate&&(t.hydrate=!1,Ke(t.containerInfo))));case 12:return;case 13:return qi(t),void Gi(t);case 19:return void Gi(t);case 17:return;case 23:case 24:return void Mi(t,null!==t.memoizedState)}throw Error(l(163))}switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Fi(3,t);case 12:return;case 13:return qi(t),void Gi(t);case 19:return void Gi(t);case 3:J&&((n=t.stateNode).hydrate&&(n.hydrate=!1,Ke(n.containerInfo)));break;case 23:case 24:return}e:if(X){switch(t.tag){case 1:case 5:case 6:case 20:break e;case 3:case 4:t=t.stateNode,ze(t.containerInfo,t.pendingChildren);break e}throw Error(l(163))}}function qi(e){null!==e.memoizedState&&(No=Yt(),Y&&Mi(e.child,!0))}function Gi(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new zi),t.forEach((function(t){var r=Na.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ki(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Yi=0,Xi=1,Ji=2,Zi=3,eo=4;if("function"==typeof Symbol&&Symbol.for){var to=Symbol.for;Yi=to("selector.component"),Xi=to("selector.has_pseudo_class"),Ji=to("selector.role"),Zi=to("selector.test_id"),eo=to("selector.text")}function no(e){var t=Z(e);if(null!=t){if("string"!=typeof t.memoizedProps["data-testname"])throw Error(l(364));return t}if(null===(e=ae(e)))throw Error(l(362));return e.stateNode.current}function ro(e,t){switch(t.$$typeof){case Yi:if(e.type===t.value)return!0;break;case Xi:e:{t=t.value,e=[e,0];for(var n=0;n";case Xi:return":has("+(io(e)||"")+")";case Ji:return'[role="'+e.value+'"]';case eo:return'"'+e.value+'"';case Zi:return'[data-testname="'+e.value+'"]';default:throw Error(l(365,e))}}function oo(e,t){var n=[];e=[e,0];for(var r=0;ri&&(i=a),n&=~o}if(n=i,10<(n=(120>(n=Yt()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*so(n/1960))-n)){e.timeoutHandle=Q(ha.bind(null,e),n);break}ha(e);break;case 5:ha(e);break;default:throw Error(l(329))}}return Xo(e,Yt()),e.callbackNode===t?Jo.bind(null,e):null}function Zo(e,t){for(t&=~Co,t&=~So,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==bo&&(bo=2),s=_i(s,l),d=a;do{switch(d.tag){case 3:o=s,d.flags|=4096,t&=-t,d.lanes|=t,xn(d,Ai(0,o,t));break e;case 1:o=s;var E=d.type,k=d.stateNode;if(0==(64&d.flags)&&("function"==typeof E.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===Ro||!Ro.has(k)))){d.flags|=4096,t&=-t,d.lanes|=t,xn(d,Ri(d,o,t));break e}}d=d.return}while(null!==d)}pa(n)}catch(e){t=e,mo===n&&null!==n&&(mo=n=n.return);continue}break}}function la(){var e=uo.current;return uo.current=Qr,null===e?Qr:e}function sa(){0!==bo&&3!==bo||(bo=4),null===ho||0==(134217727&ko)&&0==(134217727&So)||Zo(ho,yo)}function ua(e,t){var n=po;po|=16;var r=la();for(ho===e&&yo===t||oa(e,t);;)try{ca();break}catch(t){aa(e,t)}if(hn(),po=n,uo.current=r,null!==mo)throw Error(l(261));return ho=null,yo=0,bo}function ca(){for(;null!==mo;)da(mo)}function fa(){for(;null!==mo&&!Ot();)da(mo)}function da(e){var t=_o(e.alternate,e,go);e.memoizedProps=e.pendingProps,null===t?pa(e):mo=t,co.current=null}function pa(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=Pi(n,t,go)))return void(mo=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&go)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1Yt()-No?oa(e,0):Co|=n),Xo(e,t)}function Ca(e,t){0===t&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Xt()?1:2:(0===Wo&&(Wo=Eo),0===(t=Nt(62914560&~Wo))&&(t=4194304)));var n=qo();null!==(e=Yo(e,t))&&(It(e,t,n),Xo(e,n))}function xa(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ca(e,n)}function Na(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(l(314))}null!==r&&r.delete(t),Ca(e,n)}_o=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ut.current)Xr=!0;else{if(0==(n&r)){switch(Xr=!1,t.tag){case 3:si(t),lr();break;case 5:Kn(t);break;case 1:dt(t.type)&&yt(t);break;case 4:qn(t,t.stateNode.containerInfo);break;case 10:mn(t,t.memoizedProps.value);break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(at(Xn,1&Xn.current),t.flags|=64,null):0!=(n&t.child.childLanes)?hi(e,t,n):(at(Xn,1&Xn.current),null!==(t=Si(e,t,n))?t.sibling:null);at(Xn,1&Xn.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return ki(e,t,n);t.flags|=64}var i=t.memoizedState;if(null!==i&&(i.rendering=null,i.tail=null,i.lastEffect=null),at(Xn,Xn.current),r)break;return null;case 23:case 24:return t.lanes=0,ni(e,t,n)}return Si(e,t,n)}Xr=0!=(16384&e.flags)}else Xr=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=ft(t,st.current),vn(t,n),i=wr(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,dt(r)){var o=!0;yt(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,En(t);var a=r.getDerivedStateFromProps;"function"==typeof a&&_n(t,r,a,e),i.updater=Ln,t.stateNode=i,i._reactInternals=t,zn(t,r,e,n),t=li(null,t,r,!0,o,n)}else t.tag=0,Jr(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return ja(e)?1:0;if(null!=e){if((e=e.$$typeof)===y)return 11;if(e===b)return 14;if(e===E)return 22}return 2}(i),a=un(i,e),o){case 0:t=ii(null,t,i,a,n);break e;case 1:t=ai(null,t,i,a,n);break e;case 11:t=Zr(null,t,i,a,n);break e;case 14:t=ei(null,t,i,un(i.type,a),r,n);break e;case 22:t=oi(null,t,i,e,n);break e}throw Error(l(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,ii(e,t,r,i=t.elementType===r?i:un(r,i),n);case 1:return r=t.type,i=t.pendingProps,ai(e,t,r,i=t.elementType===r?i:un(r,i),n);case 3:if(si(t),r=t.updateQueue,null===e||null===r)throw Error(l(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,kn(e,t),Nn(t,r,null,n),(r=t.memoizedState.element)===i)lr(),t=Si(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(J?(er=Ve(t.stateNode.containerInfo),Zn=t,o=tr=!0):o=!1),o){if(J&&null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i=c&&o>=d&&i<=f&&a<=p){e.splice(t,1);break}if(!(r!==c||n.width!==u.width||pa)){d>o&&(u.height+=d-o,u.y=o),pi)){c>r&&(u.width+=c-r,u.x=r),fn&&(n=a)),a ")+"\n\nNo matching component was found for:\n "+e.join(" > ")}return null},r.getPublicRootInstance=function(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:return O(e.child.stateNode);default:return e.child.stateNode}},r.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:qa,findFiberByHostInstance:e.findFiberByHostInstance||Ga,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null},"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t.isDisabled&&t.supportsFiber)try{vt=t.inject(e),bt=t}catch(e){}e=!0}return e},r.observeVisibleRects=function(e,t,n,r){if(!oe)throw Error(l(363));e=ao(e,t);var i=de(e,n,r).disconnect;return{disconnect:function(){i()}}},r.registerMutableSourceForHydration=function(e,t){var n=t._getVersion;n=n(t._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},r.runWithPriority=function(e,t){var n=wt;try{return wt=e,t()}finally{wt=n}},r.shouldSuspend=function(){return!1},r.unbatchedUpdates=function(e,t){var n=po;po&=-2,po|=8;try{return e(t)}finally{0===(po=n)&&(Io(),tn())}},r.updateContainer=function(e,t,n,r){var i=t.current,o=qo(),a=Go(i);e:if(n){t:{if(_(n=n._reactInternals)!==n||1!==n.tag)throw Error(l(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(dt(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(l(171))}if(1===n.tag){var u=n.type;if(dt(u)){n=mt(n,u,s);break e}}n=s}else n=lt;return null===t.context?t.context=n:t.pendingContext=n,(t=Sn(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),Cn(i,t),Ko(i,a,o),a},r}}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/@hippy/react-reconciler/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/@hippy/react-reconciler/cjs/react-reconciler.production.min.js")},"./node_modules/object-assign/index.js":function(e,t,n){"use strict"; +e.exports=function(t){var r={},i=n("./node_modules/object-assign/index.js"),o=n("./node_modules/react/index.js"),a=n("./node_modules/scheduler/index.js");function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n--l||i[a]!==o[l])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=l);break}}}finally{et=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ze(e):""}var nt=[],rt=-1;function it(e){return{current:e}}function ot(e){0>rt||(e.current=nt[rt],nt[rt]=null,rt--)}function at(e,t){rt++,nt[rt]=e.current,e.current=t}var lt={},st=it(lt),ut=it(!1),ct=lt;function ft(e,t){var n=e.type.contextTypes;if(!n)return lt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function dt(e){return null!=(e=e.childContextTypes)}function pt(){ot(ut),ot(st)}function ht(e,t,n){if(st.current!==lt)throw Error(l(168));at(st,t),at(ut,n)}function mt(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(l(108,I(t)||"Unknown",o));return i({},n,r)}function yt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||lt,ct=st.current,at(st,e),at(ut,ut.current),!0}function gt(e,t,n){var r=e.stateNode;if(!r)throw Error(l(169));n?(e=mt(e,t,ct),r.__reactInternalMemoizedMergedChildContext=e,ot(ut),ot(st),at(st,e)):ot(ut),at(ut,n)}var vt=null,bt=null;(0,a.unstable_now)();var wt=0,Et=8;function kt(e){if(0!=(1&e))return Et=15,1;if(0!=(2&e))return Et=14,2;if(0!=(4&e))return Et=13,4;var t=24&e;return 0!==t?(Et=12,t):0!=(32&e)?(Et=11,32):0!==(t=192&e)?(Et=10,t):0!=(256&e)?(Et=9,256):0!==(t=3584&e)?(Et=8,t):0!=(4096&e)?(Et=7,4096):0!==(t=4186112&e)?(Et=6,t):0!==(t=62914560&e)?(Et=5,t):67108864&e?(Et=4,67108864):0!=(134217728&e)?(Et=3,134217728):0!==(t=805306368&e)?(Et=2,t):0!=(1073741824&e)?(Et=1,1073741824):(Et=8,e)}function St(e,t){var n=e.pendingLanes;if(0===n)return Et=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==o)r=o,i=Et=15;else if(0!==(o=134217727&n)){var s=o&~a;0!==s?(r=kt(s),i=Et):0!==(l&=o)&&(r=kt(l),i=Et)}else 0!==(o=n&~a)?(r=kt(o),i=Et):0!==l&&(r=kt(l),i=Et);if(0===r)return 0;if(r=n&((0>(r=31-_t(r))?0:1<n;n++)t.push(e);return t}function It(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-_t(t)]=n}var _t=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Lt(e)/Tt|0)|0},Lt=Math.log,Tt=Math.LN2;var At=a.unstable_runWithPriority,Rt=a.unstable_scheduleCallback,zt=a.unstable_cancelCallback,Ot=a.unstable_shouldYield,jt=a.unstable_requestPaint,Ft=a.unstable_now,Ht=a.unstable_getCurrentPriorityLevel,Mt=a.unstable_ImmediatePriority,Bt=a.unstable_UserBlockingPriority,Dt=a.unstable_NormalPriority,Ut=a.unstable_LowPriority,Wt=a.unstable_IdlePriority,Vt={},$t=void 0!==jt?jt:function(){},Qt=null,qt=null,Gt=!1,Kt=Ft(),Yt=1e4>Kt?Ft:function(){return Ft()-Kt};function Xt(){switch(Ht()){case Mt:return 99;case Bt:return 98;case Dt:return 97;case Ut:return 96;case Wt:return 95;default:throw Error(l(332))}}function Jt(e){switch(e){case 99:return Mt;case 98:return Bt;case 97:return Dt;case 96:return Ut;case 95:return Wt;default:throw Error(l(332))}}function Zt(e,t){return e=Jt(e),At(e,t)}function en(e,t,n){return e=Jt(e),Rt(e,t,n)}function tn(){if(null!==qt){var e=qt;qt=null,zt(e)}nn()}function nn(){if(!Gt&&null!==Qt){Gt=!0;var e=0;try{var t=Qt;Zt(99,(function(){for(;ed?(p=f,f=null):p=f.sibling;var h=y(i,f,l[d],s);if(null===h){null===f&&(f=p);break}e&&f&&null===h.alternate&&t(i,f),a=o(h,a,d),null===c?u=h:c.sibling=h,c=h,f=p}if(d===l.length)return n(i,f),u;if(null===f){for(;dp?(h=d,d=null):h=d.sibling;var b=y(i,d,v.value,u);if(null===b){null===d&&(d=h);break}e&&d&&null===b.alternate&&t(i,d),a=o(b,a,p),null===f?c=b:f.sibling=b,f=b,d=h}if(v.done)return n(i,d),c;if(null===d){for(;!v.done;p++,v=s.next())null!==(v=m(i,v.value,u))&&(a=o(v,a,p),null===f?c=v:f.sibling=v,f=v);return c}for(d=r(i,d);!v.done;p++,v=s.next())null!==(v=g(d,i,p,v.value,u))&&(e&&null!==v.alternate&&d.delete(null===v.key?p:v.key),a=o(v,a,p),null===f?c=v:f.sibling=v,f=v);return e&&d.forEach((function(e){return t(i,e)})),c}return function e(r,o,s,d){var p="object"==typeof s&&null!==s&&s.type===f&&null===s.key;p&&(s=s.props.children);var h="object"==typeof s&&null!==s;if(h)switch(s.$$typeof){case u:e:{for(h=s.key,p=o;null!==p;){if(p.key===h){switch(p.tag){case 7:if(s.type===f){n(r,p.sibling),(o=i(p,s.props.children)).return=r,r=o;break e}break;case 22:if((h=s.type).$$typeof===w&&(h=Hn(h)),h.$$typeof===E&&h._render===p.type._render){n(r,p.sibling),(o=i(p,s.props)).type=h,o.return=r,r=o;break e}default:if(p.elementType===s.type){n(r,p.sibling),(o=i(p,s.props)).ref=jn(r,p,s),o.return=r,r=o;break e}}n(r,p);break}t(r,p),p=p.sibling}s.type===f?((o=Ma(s.props.children,r.mode,d,s.key)).return=r,r=o):((d=Ha(s.type,s.key,s.props,null,r.mode,d)).ref=jn(r,o,s),d.return=r,r=d)}return a(r);case c:e:{for(p=s.key;null!==o;){if(o.key===p){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=i(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Ua(s,r.mode,d)).return=r,r=o}return a(r);case w:return e(r,o,(p=s._init)(s._payload),d)}if("string"==typeof s||"number"==typeof s)return s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,s)).return=r,r=o):(n(r,o),(o=Da(s,r.mode,d)).return=r,r=o),a(r);if(On(s))return v(r,o,s,d);if(P(s))return b(r,o,s,d);if(h&&Fn(r,s),void 0===s&&!p)switch(r.tag){case 1:case 22:case 0:case 11:case 15:throw Error(l(152,I(r.type)||"Component"))}return n(r,o)}}var Bn=Mn(!0),Dn=Mn(!1),Un={},Wn=it(Un),Vn=it(Un),$n=it(Un);function Qn(e){if(e===Un)throw Error(l(174));return e}function qn(e,t){at($n,t),at(Vn,e),at(Wn,Un),e=j(t),ot(Wn),at(Wn,e)}function Gn(){ot(Wn),ot(Vn),ot($n)}function Kn(e){var t=Qn($n.current),n=Qn(Wn.current);n!==(t=F(n,e.type,t))&&(at(Vn,e),at(Wn,t))}function Yn(e){Vn.current===e&&(ot(Wn),ot(Vn))}var Xn=it(0);function Jn(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Be(n)||De(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Zn=null,er=null,tr=!1;function nr(e,t){var n=Oa(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function rr(e,t){switch(e.tag){case 5:return null!==(t=Fe(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=He(t,e.pendingProps))&&(e.stateNode=t,!0);case 13:if(null!==(t=Me(t))){e.memoizedState={dehydrated:t,retryLane:1073741824};var n=Oa(18,null,null,0);return n.stateNode=t,n.return=e,e.child=n,!0}return!1;default:return!1}}function ir(e){if(tr){var t=er;if(t){var n=t;if(!rr(e,t)){if(!(t=We(n))||!rr(e,t))return e.flags=-1025&e.flags|2,tr=!1,void(Zn=e);nr(Zn,n)}Zn=e,er=Ve(t)}else e.flags=-1025&e.flags|2,tr=!1,Zn=e}}function or(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Zn=e}function ar(e){if(!J||e!==Zn)return!1;if(!tr)return or(e),tr=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!V(t,e.memoizedProps))for(t=er;t;)nr(e,t),t=We(t);if(or(e),13===e.tag){if(!J)throw Error(l(316));if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(l(317));er=Ge(e)}else er=Zn?We(e.stateNode):null;return!0}function lr(){J&&(er=Zn=null,tr=!1)}var sr=[];function ur(){for(var e=0;eo))throw Error(l(301));o+=1,mr=hr=null,t.updateQueue=null,cr.current=Kr,e=n(r,i)}while(gr)}if(cr.current=Qr,t=null!==hr&&null!==hr.next,dr=0,mr=hr=pr=null,yr=!1,t)throw Error(l(300));return e}function Er(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~n}function kr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===mr?pr.memoizedState=mr=e:mr=mr.next=e,mr}function Sr(){if(null===hr){var e=pr.alternate;e=null!==e?e.memoizedState:null}else e=hr.next;var t=null===mr?pr.memoizedState:mr.next;if(null!==t)mr=t,hr=e;else{if(null===e)throw Error(l(310));e={memoizedState:(hr=e).memoizedState,baseState:hr.baseState,baseQueue:hr.baseQueue,queue:hr.queue,next:null},null===mr?pr.memoizedState=mr=e:mr=mr.next=e}return mr}function xr(e,t){return"function"==typeof t?t(e):t}function Cr(e){var t=Sr(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=hr,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=a=o=null,u=i;do{var c=u.lane;if((dr&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===s?(a=s=f,o=r):s=s.next=f,pr.lanes|=c,ko|=c}u=u.next}while(null!==u&&u!==i);null===s?o=r:s.next=a,on(r,t.memoizedState)||(Xr=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Nr(e){var t=Sr(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);on(o,t.memoizedState)||(Xr=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Pr(e,t,n){var r=t._getVersion;r=r(t._source);var i=K?t._workInProgressVersionPrimary:t._workInProgressVersionSecondary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(dr&e)===e)&&(K?t._workInProgressVersionPrimary=r:t._workInProgressVersionSecondary=r,sr.push(t))),e)return n(t._source);throw sr.push(t),Error(l(350))}function Ir(e,t,n,r){var i=ho;if(null===i)throw Error(l(349));var o=t._getVersion,a=o(t._source),s=cr.current,u=s.useState((function(){return Pr(i,t,n)})),c=u[1],f=u[0];u=mr;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var y=pr;return e.memoizedState={refs:p,source:t,subscribe:r},s.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=o(t._source);if(!on(a,e)){e=n(t._source),on(f,e)||(c(e),e=Go(y),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,l=e;0n?98:n,(function(){e(!0)})),Zt(97Po&&(t.flags|=64,i=!0,Ni(r,!1),t.lanes=33554432)}else{if(!i)if(null!==(e=Jn(o))){if(t.flags|=64,i=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),Ni(r,!0),null===r.tail&&"hidden"===r.tailMode&&!o.alternate&&!tr)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Yt()-r.renderingStartTime>Po&&1073741824!==n&&(t.flags|=64,i=!0,Ni(r,!1),t.lanes=33554432);r.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=r.last)?e.sibling=o:t.child=o,r.last=o)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Yt(),e.sibling=null,t=Xn.current,at(Xn,i?1&t|2:1&t),e):null;case 22:return null;case 23:case 24:return ia(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(l(156,t.tag))}function Ii(e){switch(e.tag){case 1:dt(e.type)&&pt();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Gn(),ot(ut),ot(st),ur(),0!=(64&(t=e.flags)))throw Error(l(285));return e.flags=-4097&t|64,e;case 5:return Yn(e),null;case 13:if(ot(Xn),null!==(t=e.memoizedState)&&null!==t.dehydrated){if(null===e.alternate)throw Error(l(340));lr()}return 4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ot(Xn),null;case 4:return Gn(),null;case 10:return yn(e),null;case 23:case 24:return ia(),null;default:return null}}function _i(e,t){try{var n="",r=t;do{n+=sn(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function Li(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Ti="function"==typeof WeakMap?WeakMap:Map;function Ai(e,t,n){(n=Sn(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){To||(To=!0,Ao=r),Li(0,t)},n}function Ri(e,t,n){(n=Sn(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return Li(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ro?Ro=new Set([this]):Ro.add(this),Li(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var zi="function"==typeof WeakSet?WeakSet:Set;function Oi(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){ka(e,t)}else t.current=null}function ji(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:un(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(Y&&256&t.flags&&Pe(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(l(163))}function Fi(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function Hi(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(ba(n,e),va(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:un(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&Pn(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=O(n.child.stateNode);break;case 1:e=n.child.stateNode}Pn(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&ye(e,n.type,n.memoizedProps,n));case 6:case 4:case 12:return;case 13:return void(J&&null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Ye(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(l(163))}function Mi(e,t){if(Y)for(var n=e;;){if(5===n.tag){var r=n.stateNode;t?Se(r):Ce(n.stateNode,n.memoizedProps)}else if(6===n.tag)r=n.stateNode,t?xe(r):Ne(r,n.memoizedProps);else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Bi(e,t){if(bt&&"function"==typeof bt.onCommitFiberUnmount)try{bt.onCommitFiberUnmount(vt,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))ba(t,n);else{r=t;try{i()}catch(e){ka(r,e)}}n=n.next}while(n!==e)}break;case 1:if(Oi(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){ka(t,e)}break;case 5:Oi(t);break;case 4:Y?$i(e,t):X&&X&&(t=t.stateNode.containerInfo,e=Te(t),ze(t,e))}}function Di(e,t){for(var n=t;;)if(Bi(e,n),null===n.child||Y&&4===n.tag){if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}else n.child.return=n,n=n.child}function Ui(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Wi(e){return 5===e.tag||3===e.tag||4===e.tag}function Vi(e){if(Y){e:{for(var t=e.return;null!==t;){if(Wi(t))break e;t=t.return}throw Error(l(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(l(161))}16&n.flags&&(ke(t),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Wi(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?be(r,t,n):he(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?ve(r,t,n):pe(r,t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}}function $i(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(l(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag)Di(e,i),r?Ee(n,i.stateNode):we(n,i.stateNode);else if(18===i.tag)r?Je(n,i.stateNode):Xe(n,i.stateNode);else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(Bi(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function Qi(e,t){if(Y){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Fi(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var i=t.type,o=t.updateQueue;t.updateQueue=null,null!==o&&ge(n,o,i,e,r,t)}return;case 6:if(null===t.stateNode)throw Error(l(162));return n=t.memoizedProps,void me(t.stateNode,null!==e?e.memoizedProps:n,n);case 3:return void(J&&(t=t.stateNode,t.hydrate&&(t.hydrate=!1,Ke(t.containerInfo))));case 12:return;case 13:return qi(t),void Gi(t);case 19:return void Gi(t);case 17:return;case 23:case 24:return void Mi(t,null!==t.memoizedState)}throw Error(l(163))}switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Fi(3,t);case 12:return;case 13:return qi(t),void Gi(t);case 19:return void Gi(t);case 3:J&&((n=t.stateNode).hydrate&&(n.hydrate=!1,Ke(n.containerInfo)));break;case 23:case 24:return}e:if(X){switch(t.tag){case 1:case 5:case 6:case 20:break e;case 3:case 4:t=t.stateNode,ze(t.containerInfo,t.pendingChildren);break e}throw Error(l(163))}}function qi(e){null!==e.memoizedState&&(No=Yt(),Y&&Mi(e.child,!0))}function Gi(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new zi),t.forEach((function(t){var r=Na.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ki(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Yi=0,Xi=1,Ji=2,Zi=3,eo=4;if("function"==typeof Symbol&&Symbol.for){var to=Symbol.for;Yi=to("selector.component"),Xi=to("selector.has_pseudo_class"),Ji=to("selector.role"),Zi=to("selector.test_id"),eo=to("selector.text")}function no(e){var t=Z(e);if(null!=t){if("string"!=typeof t.memoizedProps["data-testname"])throw Error(l(364));return t}if(null===(e=ae(e)))throw Error(l(362));return e.stateNode.current}function ro(e,t){switch(t.$$typeof){case Yi:if(e.type===t.value)return!0;break;case Xi:e:{t=t.value,e=[e,0];for(var n=0;n";case Xi:return":has("+(io(e)||"")+")";case Ji:return'[role="'+e.value+'"]';case eo:return'"'+e.value+'"';case Zi:return'[data-testname="'+e.value+'"]';default:throw Error(l(365,e))}}function oo(e,t){var n=[];e=[e,0];for(var r=0;ri&&(i=a),n&=~o}if(n=i,10<(n=(120>(n=Yt()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*so(n/1960))-n)){e.timeoutHandle=Q(ha.bind(null,e),n);break}ha(e);break;case 5:ha(e);break;default:throw Error(l(329))}}return Xo(e,Yt()),e.callbackNode===t?Jo.bind(null,e):null}function Zo(e,t){for(t&=~xo,t&=~So,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==bo&&(bo=2),s=_i(s,l),d=a;do{switch(d.tag){case 3:o=s,d.flags|=4096,t&=-t,d.lanes|=t,Cn(d,Ai(0,o,t));break e;case 1:o=s;var E=d.type,k=d.stateNode;if(0==(64&d.flags)&&("function"==typeof E.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===Ro||!Ro.has(k)))){d.flags|=4096,t&=-t,d.lanes|=t,Cn(d,Ri(d,o,t));break e}}d=d.return}while(null!==d)}pa(n)}catch(e){t=e,mo===n&&null!==n&&(mo=n=n.return);continue}break}}function la(){var e=uo.current;return uo.current=Qr,null===e?Qr:e}function sa(){0!==bo&&3!==bo||(bo=4),null===ho||0==(134217727&ko)&&0==(134217727&So)||Zo(ho,yo)}function ua(e,t){var n=po;po|=16;var r=la();for(ho===e&&yo===t||oa(e,t);;)try{ca();break}catch(t){aa(e,t)}if(hn(),po=n,uo.current=r,null!==mo)throw Error(l(261));return ho=null,yo=0,bo}function ca(){for(;null!==mo;)da(mo)}function fa(){for(;null!==mo&&!Ot();)da(mo)}function da(e){var t=_o(e.alternate,e,go);e.memoizedProps=e.pendingProps,null===t?pa(e):mo=t,co.current=null}function pa(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=Pi(n,t,go)))return void(mo=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&go)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1Yt()-No?oa(e,0):xo|=n),Xo(e,t)}function xa(e,t){0===t&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Xt()?1:2:(0===Wo&&(Wo=Eo),0===(t=Nt(62914560&~Wo))&&(t=4194304)));var n=qo();null!==(e=Yo(e,t))&&(It(e,t,n),Xo(e,n))}function Ca(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),xa(e,n)}function Na(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(l(314))}null!==r&&r.delete(t),xa(e,n)}_o=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ut.current)Xr=!0;else{if(0==(n&r)){switch(Xr=!1,t.tag){case 3:si(t),lr();break;case 5:Kn(t);break;case 1:dt(t.type)&&yt(t);break;case 4:qn(t,t.stateNode.containerInfo);break;case 10:mn(t,t.memoizedProps.value);break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(at(Xn,1&Xn.current),t.flags|=64,null):0!=(n&t.child.childLanes)?hi(e,t,n):(at(Xn,1&Xn.current),null!==(t=Si(e,t,n))?t.sibling:null);at(Xn,1&Xn.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return ki(e,t,n);t.flags|=64}var i=t.memoizedState;if(null!==i&&(i.rendering=null,i.tail=null,i.lastEffect=null),at(Xn,Xn.current),r)break;return null;case 23:case 24:return t.lanes=0,ni(e,t,n)}return Si(e,t,n)}Xr=0!=(16384&e.flags)}else Xr=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=ft(t,st.current),vn(t,n),i=wr(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,dt(r)){var o=!0;yt(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,En(t);var a=r.getDerivedStateFromProps;"function"==typeof a&&_n(t,r,a,e),i.updater=Ln,t.stateNode=i,i._reactInternals=t,zn(t,r,e,n),t=li(null,t,r,!0,o,n)}else t.tag=0,Jr(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return ja(e)?1:0;if(null!=e){if((e=e.$$typeof)===y)return 11;if(e===b)return 14;if(e===E)return 22}return 2}(i),a=un(i,e),o){case 0:t=ii(null,t,i,a,n);break e;case 1:t=ai(null,t,i,a,n);break e;case 11:t=Zr(null,t,i,a,n);break e;case 14:t=ei(null,t,i,un(i.type,a),r,n);break e;case 22:t=oi(null,t,i,e,n);break e}throw Error(l(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,ii(e,t,r,i=t.elementType===r?i:un(r,i),n);case 1:return r=t.type,i=t.pendingProps,ai(e,t,r,i=t.elementType===r?i:un(r,i),n);case 3:if(si(t),r=t.updateQueue,null===e||null===r)throw Error(l(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,kn(e,t),Nn(t,r,null,n),(r=t.memoizedState.element)===i)lr(),t=Si(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(J?(er=Ve(t.stateNode.containerInfo),Zn=t,o=tr=!0):o=!1),o){if(J&&null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i=c&&o>=d&&i<=f&&a<=p){e.splice(t,1);break}if(!(r!==c||n.width!==u.width||pa)){d>o&&(u.height+=d-o,u.y=o),pi)){c>r&&(u.width+=c-r,u.x=r),fn&&(n=a)),a ")+"\n\nNo matching component was found for:\n "+e.join(" > ")}return null},r.getPublicRootInstance=function(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:return O(e.child.stateNode);default:return e.child.stateNode}},r.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:qa,findFiberByHostInstance:e.findFiberByHostInstance||Ga,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null},"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t.isDisabled&&t.supportsFiber)try{vt=t.inject(e),bt=t}catch(e){}e=!0}return e},r.observeVisibleRects=function(e,t,n,r){if(!oe)throw Error(l(363));e=ao(e,t);var i=de(e,n,r).disconnect;return{disconnect:function(){i()}}},r.registerMutableSourceForHydration=function(e,t){var n=t._getVersion;n=n(t._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},r.runWithPriority=function(e,t){var n=wt;try{return wt=e,t()}finally{wt=n}},r.shouldSuspend=function(){return!1},r.unbatchedUpdates=function(e,t){var n=po;po&=-2,po|=8;try{return e(t)}finally{0===(po=n)&&(Io(),tn())}},r.updateContainer=function(e,t,n,r){var i=t.current,o=qo(),a=Go(i);e:if(n){t:{if(_(n=n._reactInternals)!==n||1!==n.tag)throw Error(l(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(dt(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(l(171))}if(1===n.tag){var u=n.type;if(dt(u)){n=mt(n,u,s);break e}}n=s}else n=lt;return null===t.context?t.context=n:t.pendingContext=n,(t=Sn(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),xn(i,t),Ko(i,a,o),a},r}}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/@hippy/react-reconciler/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/@hippy/react-reconciler/cjs/react-reconciler.production.min.js")},"./node_modules/object-assign/index.js":function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus @@ -42,7 +42,7 @@ object-assign * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var r=n("./node_modules/object-assign/index.js"),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,l=60110,s=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),o=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),l=f("react.context"),s=f("react.forward_ref"),t.Suspense=f("react.suspense"),u=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n=w},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,i=e[r];if(!(void 0!==i&&0N(a,n))void 0!==s&&0>N(s,a)?(e[r]=s,e[l]=n,r=l):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==s&&0>N(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function N(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],I=[],_=1,L=null,T=3,A=!1,R=!1,z=!1;function O(e){for(var t=C(I);null!==t;){if(null===t.callback)x(I);else{if(!(t.startTime<=e))break;x(I),t.sortIndex=t.expirationTime,S(P,t)}t=C(I)}}function j(e){if(z=!1,O(e),!R)if(null!==C(P))R=!0,r(F);else{var t=C(I);null!==t&&i(j,t.startTime-e)}}function F(e,n){R=!1,z&&(z=!1,o()),A=!0;var r=T;try{for(O(n),L=C(P);null!==L&&(!(L.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=L.callback;if("function"==typeof a){L.callback=null,T=L.priorityLevel;var l=a(L.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?L.callback=l:L===C(P)&&x(P),O(n)}else x(P);L=C(P)}if(null!==L)var s=!0;else{var u=C(I);null!==u&&i(j,u.startTime-n),s=!1}return s}finally{L=null,T=r,A=!1}}var H=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){R||A||(R=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_getFirstCallbackNode=function(){return C(P)},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var n=T;T=t;try{return e()}finally{T=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=H,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=T;T=e;try{return t()}finally{T=n}},t.unstable_scheduleCallback=function(e,n,a){var l=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0l?(e.sortIndex=a,S(I,e),null===C(P)&&e===C(I)&&(z?o():z=!0,i(j,a-l))):(e.sortIndex=s,S(P,e),R||A||(R=!0,r(F))),e},t.unstable_wrapCallback=function(e){var t=T;return function(){var n=T;T=t;try{return e.apply(this,arguments)}finally{T=n}}}},"./node_modules/scheduler/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/scheduler/cjs/scheduler.production.min.js")},"./node_modules/webpack/buildin/global.js":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},"./node_modules/webpack/buildin/module.js":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"./scripts/vendor.js":function(e,t,n){n("../../packages/hippy-react/dist/index.js")},0:function(e,t,n){e.exports=n}}); \ No newline at end of file + */var r,i,o,a;if("object"==typeof performance&&"function"==typeof performance.now){var l=performance;t.unstable_now=function(){return l.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,f=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(d,0),e}};r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(d,0))},i=function(e,t){f=setTimeout(e,t)},o=function(){clearTimeout(f)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var y=!1,g=null,v=-1,b=5,w=0;t.unstable_shouldYield=function(){return t.unstable_now()>=w},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,i=e[r];if(!(void 0!==i&&0N(a,n))void 0!==s&&0>N(s,a)?(e[r]=s,e[l]=n,r=l):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==s&&0>N(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function N(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],I=[],_=1,L=null,T=3,A=!1,R=!1,z=!1;function O(e){for(var t=x(I);null!==t;){if(null===t.callback)C(I);else{if(!(t.startTime<=e))break;C(I),t.sortIndex=t.expirationTime,S(P,t)}t=x(I)}}function j(e){if(z=!1,O(e),!R)if(null!==x(P))R=!0,r(F);else{var t=x(I);null!==t&&i(j,t.startTime-e)}}function F(e,n){R=!1,z&&(z=!1,o()),A=!0;var r=T;try{for(O(n),L=x(P);null!==L&&(!(L.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=L.callback;if("function"==typeof a){L.callback=null,T=L.priorityLevel;var l=a(L.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?L.callback=l:L===x(P)&&C(P),O(n)}else C(P);L=x(P)}if(null!==L)var s=!0;else{var u=x(I);null!==u&&i(j,u.startTime-n),s=!1}return s}finally{L=null,T=r,A=!1}}var H=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){R||A||(R=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_getFirstCallbackNode=function(){return x(P)},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var n=T;T=t;try{return e()}finally{T=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=H,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=T;T=e;try{return t()}finally{T=n}},t.unstable_scheduleCallback=function(e,n,a){var l=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0l?(e.sortIndex=a,S(I,e),null===x(P)&&e===x(I)&&(z?o():z=!0,i(j,a-l))):(e.sortIndex=s,S(P,e),R||A||(R=!0,r(F))),e},t.unstable_wrapCallback=function(e){var t=T;return function(){var n=T;T=t;try{return e.apply(this,arguments)}finally{T=n}}}},"./node_modules/scheduler/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/scheduler/cjs/scheduler.production.min.js")},"./node_modules/webpack/buildin/global.js":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},"./node_modules/webpack/buildin/module.js":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"./scripts/vendor.js":function(e,t,n){n("../../packages/hippy-react/dist/index.js")},0:function(e,t,n){e.exports=n}}); \ No newline at end of file diff --git a/framework/voltron/example/assets/jsbundle/vue2/index.android.js b/framework/voltron/example/assets/jsbundle/vue2/index.android.js index d8291b9fa68..4f5696350c1 100644 --- a/framework/voltron/example/assets/jsbundle/vue2/index.android.js +++ b/framework/voltron/example/assets/jsbundle/vue2/index.android.js @@ -1,8 +1,8 @@ -!function(e){function t(t){for(var a,r,s=t[0],i=t[1],n=0,c=[];n0===n.indexOf(e))){var l=n.split("/"),c=l[l.length-1],d=c.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(n=p+c)}else{var p;d=n.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(n=p+n)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+n;var a=o[e];0!==a&&a&&a[1](t),o[e]=void 0}},global.dynamicLoad(n,onScriptComplete)}return Promise.all(t)},r.m=e,r.c=a,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(a,o,function(t){return e[t]}.bind(null,o));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var s=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],i=s.push.bind(s);s.push=t,s=s.slice();for(var n=0;na[e.toLowerCase()]:e=>a[e]}function s(e){let t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}let i;function n(){return i}function l(e){return"[object Function]"===Object.prototype.toString.call(e)}function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a.d(t,"a",(function(){return fe})), +!function(e){function t(t){for(var a,r,s=t[0],i=t[1],n=0,c=[];n0===n.indexOf(e))){var l=n.split("/"),c=l[l.length-1],d=c.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(n=p+c)}else{var p;d=n.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(n=p+n)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+n;var a=o[e];0!==a&&a&&a[1](t),o[e]=void 0}},global.dynamicLoad(n,onScriptComplete)}return Promise.all(t)},r.m=e,r.c=a,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(a,o,function(t){return e[t]}.bind(null,o));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var s=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],i=s.push.bind(s);s.push=t,s=s.slice();for(var n=0;na[e.toLowerCase()]:e=>a[e]}function s(e){let t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}let i;function n(){return i}function l(e){return"[object Function]"===Object.prototype.toString.call(e)}function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a.d(t,"a",(function(){return fe})), /*! * @hippy/vue-router vunspecified * (Using Vue v2.6.14 and Hippy-Vue vunspecified) - * Build at: Sun Apr 07 2024 19:11:31 GMT+0800 (中国标准时间) + * Build at: Thu Nov 14 2024 11:26:33 GMT+0800 (中国标准时间) * * Tencent is pleased to support the open source community by making * Hippy available. @@ -22,4 +22,4 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -Object.freeze({}),r("slot,component",!0),r("key,ref,slot,slot-scope,is"),e.env.PORT;var d={exports:{}},p={exports:{}},u={exports:{}};!function(e){function t(a){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(a)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(u);var v={exports:{}};!function(e){var t=u.exports.default;e.exports=function(e,a){if("object"!==t(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,a||"default");if("object"!==t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(v),function(e){var t=u.exports.default,a=v.exports;e.exports=function(e){var o=a(e,"string");return"symbol"===t(o)?o:String(o)},e.exports.__esModule=!0,e.exports.default=e.exports}(p),function(e){var t=p.exports;e.exports=function(e,a,o){return(a=t(a))in e?Object.defineProperty(e,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[a]=o,e},e.exports.__esModule=!0,e.exports.default=e.exports}(d);var y=c(d.exports);function h(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function b(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}var m={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render(e,{props:t,children:a,parent:o,data:r}){r.routerView=!0;const s=o.$createElement,{name:i}=t,n=o.$route,l=o._routerViewCache||(o._routerViewCache={});let c=0,d=!1;for(;o&&o._routerRoot!==o;)o.$vnode&&o.$vnode.data.routerView&&(c+=1),o._inactive&&(d=!0),o=o.$parent;if(r.routerViewDepth=c,d)return s(l[i],r,a);const p=n.matched[c];if(!p)return l[i]=null,s();const u=p.components[i];l[i]=u,r.registerRouteInstance=(e,t)=>{const a=p.instances[i];(t&&a!==e||!t&&a===e)&&(p.instances[i]=t)},r.hook||(r.hook={}),r.hook.prepatch=(e,t)=>{p.instances[i]=t.componentInstance};let v=function(e,t){switch(typeof t){case"undefined":return null;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:return null}}(n,p.props&&p.props[i]);if(r.props=v,v){v=function(e){for(var t=1;t{u.props&&t in u.props||(e[t]=v[t],delete v[t])})}return s(u,r,a)}};const f=/[!'()*]/g,g=e=>"%"+e.charCodeAt(0).toString(16),_=/%2C/g,C=e=>encodeURIComponent(e).replace(f,g).replace(_,","),x=decodeURIComponent;function S(e){const t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(e=>{const a=e.replace(/\+/g," ").split("="),o=x(a.shift()),r=a.length>0?x(a.join("=")):null;void 0===t[o]?t[o]=r:Array.isArray(t[o])?t[o].push(r):t[o]=[t[o],r]}),t):t}function w(e){const t=e?Object.keys(e).map(t=>{const a=e[t];if(void 0===a)return"";if(null===a)return C(t);if(Array.isArray(a)){const e=[];return a.forEach(a=>{void 0!==a&&(null===a?e.push(C(t)):e.push(`${C(t)}=${C(a)}`))}),e.join("&")}return`${C(t)}=${C(a)}`}).filter(e=>e.length>0).join("&"):null;return t?"?"+t:""}const k=/\/?$/;function A(e){if(Array.isArray(e))return e.map(A);if(e&&"object"==typeof e){const t={};return Object.keys(e).forEach(a=>{t[a]=A(e[a])}),t}return e}function P(e){const t=[];for(;e;)t.unshift(e),e=e.parent;return t}function E({path:e,query:t={},hash:a=""},o){return(e||"/")+(o||w)(t)+a}function j(e={},t={}){if(!e||!t)return e===t;const a=Object.keys(e),o=Object.keys(t);return a.length===o.length&&a.every(a=>{const o=e[a],r=t[a];return"object"==typeof o&&"object"==typeof r?j(o,r):String(o)===String(r)})}function T(e,t,a,o){let r;o&&({stringifyQuery:r}=o.options);let s=t.query||{};try{s=A(s)}catch(e){}const i={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:s,params:t.params||{},fullPath:E(t,r),matched:e?P(e):[]};return a&&(i.redirectedFrom=E(a,r)),Object.freeze(i)}const V=T(null,{path:"/"});function I(e,t){return t===V?e===t:!!t&&(e.path&&t.path?e.path.replace(k,"")===t.path.replace(k,"")&&e.hash===t.hash&&j(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&j(e.query,t.query)&&j(e.params,t.params)))}function L(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}function Y(e){for(var t=1;t{O(e)&&(this.replace?t.replace(o):t.push(o))},h={click:O};Array.isArray(this.event)?this.event.forEach(e=>{h[e]=y}):h[this.event]=y;const b={class:i};if("a"===this.tag)b.on=h,b.attrs={href:s};else{const e=function e(t){return t?t.find(t=>{if("a"===t.tag)return!0;if(t.children){return!!e(t.children)}return!1}):null}(this.$slots.default);if(e){e.isStatic=!1;const t=Y({},e.data);e.data=t,t.on=h;const a=Y({},e.data.attrs);e.data.attrs=a,a.href=s}else b.on=h}return e(this.tag,b,this.$slots.default)}};var D={exports:{}},R=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)};D.exports=G,D.exports.parse=U,D.exports.compile=function(e,t){return M(U(e,t),t)},D.exports.tokensToFunction=M,D.exports.tokensToRegExp=K;var B=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function U(e,t){for(var a,o=[],r=0,s=0,i="",n=t&&t.delimiter||"/";null!=(a=B.exec(e));){var l=a[0],c=a[1],d=a.index;if(i+=e.slice(s,d),s=d+l.length,c)i+=c[1];else{var p=e[s],u=a[2],v=a[3],y=a[4],h=a[5],b=a[6],m=a[7];i&&(o.push(i),i="");var f=null!=u&&null!=p&&p!==u,g="+"===b||"*"===b,_="?"===b||"*"===b,C=a[2]||n,x=y||h;o.push({name:v||r++,prefix:u||"",delimiter:C,optional:_,repeat:g,partial:f,asterisk:!!m,pattern:x?z(x):m?".*":"[^"+F(C)+"]+?"})}}return s=0&&(t=e.slice(o),e=e.slice(0,o));const r=e.indexOf("?");return r>=0&&(a=e.slice(r+1),e=e.slice(0,r)),{path:e,query:a,hash:t}}(r.path||""),i=t&&t.path||"/",n=s.path?J(s.path,i,a||r.append):i,l=function(e,t={},a){const o=a||S;let r;try{r=o(e||"")}catch(e){0,r={}}return Object.keys(t).forEach(e=>{r[e]=t[e]}),r}(s.query,r.query,o&&o.options.parseQuery);let c=r.hash||s.hash;return c&&"#"!==c.charAt(0)&&(c="#"+c),{_normalized:!0,path:n,query:l,hash:c}}function oe(e,t){return q(e,[],t)}function re(e,t,a,o,r,s){const{path:i,name:n}=o;const l=o.pathToRegexpOptions||{},c=function(e,t,a){return a||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:Z(`${t.path}/${e}`)}(i,r,l.strict);"boolean"==typeof o.caseSensitive&&(l.sensitive=o.caseSensitive);const d={path:c,regex:oe(c,l),components:o.components||{default:o.component},instances:{},name:n,parent:r,matchAs:s,redirect:o.redirect,beforeEnter:o.beforeEnter,meta:o.meta||{},props:null==o.props?{}:o.components?o.props:{default:o.props}};if(o.children&&o.children.forEach(o=>{const r=s?Z(`${s}/${o.path}`):void 0;re(e,t,a,o,d,r)}),void 0!==o.alias){(Array.isArray(o.alias)?o.alias:[o.alias]).forEach(s=>{const i={path:s,children:o.children};re(e,t,a,i,r,d.path||"/")})}t[d.path]||(e.push(d.path),t[d.path]=d),n&&(a[n]||(a[n]=d))}function se(e,t,a,o){const r=t||[],s=a||Object.create(null),i=o||Object.create(null);e.forEach(e=>{re(r,s,i,e)});for(let e=0,t=r.length;e!e.optional).map(e=>e.name);if("object"!=typeof l.params&&(l.params={}),s&&"object"==typeof s.params&&Object.keys(s.params).forEach(e=>{!(e in l.params)&&t.indexOf(e)>-1&&(l.params[e]=s.params[e])}),e)return l.path=X(e.path,l.params),n(e,l,i)}else if(l.path){l.params={};for(let e=0;eo[e])}}}function ne(e,t,a){const o=t.match(e);if(!o)return!1;if(!a)return!0;for(let t=1,r=o.length;t{r>=e.length?a():e[r]?t(e[r],()=>{o(r+1)}):o(r+1)};o(0)}const ce="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function de(e){return Array.prototype.concat.apply([],e)}function pe(e,t){return de(e.map(e=>Object.keys(e.components).map(a=>t(e.components[a],e.instances[a],e,a))))}function ue(e){return(t,a,o)=>{let r=!1,i=0,l=null;pe(e,(e,t,a,c)=>{if("function"==typeof e&&void 0===e.cid){r=!0,i+=1;const t=s(t=>{const r=n();var s;((s=t).__esModule||ce&&"Module"===s[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:r.extend(t),a.components[c]=t,i-=1,i<=0&&o()}),d=s(e=>{const t=`Failed to resolve async component ${c}: ${e}`;l||(l=h(e)?e:new Error(t),o(l))});let p;try{p=e(t,d)}catch(e){d(e)}if(p)if("function"==typeof p.then)p.then(t,d);else{const e=p.component;e&&"function"==typeof e.then&&e.then(t,d)}}}),r||o()}}function ve(e,t,a,o){const r=pe(e,(e,o,r,s)=>{const i=function(e,t){if("function"!=typeof e){e=n().extend(e)}return e.options[t]}(e,t);return i?Array.isArray(i)?i.map(e=>a(e,o,r,s)):a(i,o,r,s):null});return de(o?r.reverse():r)}function ye(e,t){return t?function(...a){return e.apply(t,a)}:null}function he(e,t,a,o,r){return function(s,i,n){return e(s,i,e=>{n(e),"function"==typeof e&&o.push(()=>{!function e(t,a,o,r){a[o]&&!a[o]._isBeingDestroyed?t(a[o]):r()&&setTimeout(()=>{e(t,a,o,r)},16)}(e,t.instances,a,r)})})}}class be{constructor(e,t="/"){this.router=e,this.base=function(e){return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}(t),this.current=V,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[];const a=this.router.match("/",this.current);if(!a)throw new Error("Root router path with / is required");this.stack=[a],this.index=0}push(e,t,a){this.transitionTo(e,e=>{this.stack=this.stack.slice(0,this.index+1).concat(e),this.index+=1,l(t)&&t(e)},a)}replace(e,t,a){this.transitionTo(e,e=>{this.stack=this.stack.slice(0,this.index).concat(e),l(t)&&t(e)},a)}go(e){const t=this.index+e;if(t<0||t>=this.stack.length)return;const a=this.stack[t];this.confirmTransition(a,()=>{this.index=t,this.updateRoute(a),this.stack=this.stack.slice(0,t+1)})}getCurrentLocation(){const e=this.stack[this.stack.length-1];return e?e.fullPath:"/"}ensureURL(){}listen(e){this.cb=e}onReady(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))}onError(e){this.errorCbs.push(e)}transitionTo(e,t,a){const o=this.router.match(e,this.current);this.confirmTransition(o,()=>{this.updateRoute(o),l(t)&&t(o),this.ensureURL(),this.ready||(this.ready=!0,this.readyCbs.forEach(e=>{e(o)}))},e=>{a&&a(e),e&&!this.ready&&(this.ready=!0,this.readyErrorCbs.forEach(t=>{t(e)}))})}confirmTransition(e,t,a){const{current:o}=this,r=e=>{h(e)&&this.errorCbs.length&&this.errorCbs.forEach(t=>{t(e)}),l(a)&&a(e)};if(I(e,o)&&e.matched.length===o.matched.length)return this.ensureURL(),r();const{updated:s,deactivated:i,activated:n}=function(e,t){let a;const o=Math.max(e.length,t.length);for(a=0;ae.beforeEnter),ue(n));this.pending=e;const d=(t,a)=>{if(this.pending!==e)return r();try{return t(e,o,e=>{!1===e||h(e)?(this.ensureURL(!0),r(e)):"string"==typeof e||"object"==typeof e&&("string"==typeof e.path||"string"==typeof e.name)?(r(),"object"==typeof e&&e.replace?this.replace(e):this.push(e)):a(e)})}catch(e){return r(e)}};return le(c,d,()=>{const a=[];le(function(e,t,a){return ve(e,"beforeRouteEnter",(e,o,r,s)=>he(e,r,s,t,a))}(n,a,()=>this.current===e).concat(this.router.resolveHooks),d,()=>this.pending!==e?r():(this.pending=null,t(e),this.router.app?this.router.app.$nextTick(()=>{a.forEach(e=>{e()})}):null))})}updateRoute(e){const t=this.current;this.current=e,l(this.cb)&&this.cb(e),this.router.afterHooks.forEach(a=>{l(a)&&a(e,t)})}hardwareBackPress(){if(this.stack.length>1)return this.go(-1);const{matched:e}=this.stack[0];if(e.length){const{components:t,instances:a}=e[0];if(t&&t.default&&l(t.default.beforeAppExit))return t.default.beforeAppExit.call(a.default,this.exitApp)}return this.exitApp()}exitApp(){n().Native.callNative("DeviceEventModule","invokeDefaultBackPressHandler")}}function me(e,t){return e.push(t),()=>{const a=e.indexOf(t);a>-1&&e.splice(a,1)}}class fe{constructor(e={}){if(this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=ie(e.routes||[],this),!o.__GLOBAL__||!o.__GLOBAL__.appRegister)throw new Error("Hippy-Vue-Router can\t work without Native environment");this.history=new be(this,e.base)}match(e,t,a){return this.matcher.match(e,t,a)}get currentRoute(){return this.history&&this.history.current}init(e,t){if(this.apps.push(e),this.app)return;this.app=e;const{history:a}=this;a instanceof be&&a.transitionTo(a.getCurrentLocation()),a.listen(e=>{this.apps.forEach(t=>{t._route=e})}),"android"===t.Native.Platform&&l(a.hardwareBackPress)&&!this.options.disableAutoBack&&(setTimeout(()=>t.Native.callNative("DeviceEventModule","setListenBackPress",!0),300),e.$on("hardwareBackPress",()=>a.hardwareBackPress()))}beforeEach(e){return me(this.beforeHooks,e)}beforeResolve(e){return me(this.resolveHooks,e)}afterEach(e){return me(this.afterHooks,e)}onReady(e,t){this.history.onReady(e,t)}onError(e){this.history.onError(e)}push(e,t,a){this.history.push(e,t,a)}replace(e,t,a){this.history.replace(e,t,a)}go(e){this.history.go(e)}back(){this.go(-1)}forward(){this.go(1)}getMatchedComponents(e){const t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?t.matched.map(e=>Object.keys(e.components).map(t=>e.components[t])):[]}resolve(e,t,a){const o=ae(e,t||this.history.current,a,this),r=this.match(o,t),s=r.redirectedFrom||r.fullPath,{base:i}=this.history;return{location:o,route:r,href:function(e,t){return e?Z(`${e}/${t}`):t}(i,s),normalizedTo:o,resolved:r}}addRoutes(e){this.matcher.addRoutes(e),this.history.current!==V&&this.history.transitionTo(this.history.getCurrentLocation())}}fe.install=function e(t){if(e.installed&&n()===t)return;e.installed=!0,function(e){i=e}(t);const a=e=>void 0!==e,o=(e,t)=>{let o=e.$options._parentVnode;a(o)&&a(o=o.data)&&a(o=o.registerRouteInstance)&&o(e,t)};t.mixin({beforeCreate(){a(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this,t),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,o(this,this)},destroyed(){o(this)}}),Object.defineProperty(t.prototype,"$router",{get(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get(){return this._routerRoot._route}}),t.component("RouterView",m),t.component("RouterLink",H);const r=t.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created},fe.version="2.6.14"}).call(this,a("./node_modules/process/browser.js"),a("./node_modules/webpack/buildin/global.js"))},"../../packages/hippy-vue/dist/index.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("../../packages/hippy-vue/dist/index.js")},"./node_modules/process/browser.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("./node_modules/process/browser.js")},"./node_modules/webpack/buildin/global.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("./node_modules/webpack/buildin/global.js")},"./src/app.vue":function(e,t,a){"use strict";var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"root"}},[a("div",{attrs:{id:"header"}},[a("div",{staticClass:"left-title"},[a("img",{directives:[{name:"show",rawName:"v-show",value:!["/","/debug","/remote-debug"].includes(e.$router.history.current.path),expression:"!['/', '/debug', '/remote-debug'].includes($router.history.current.path)"}],attrs:{id:"back-btn",src:e.imgs.backButtonImg},on:{click:e.goToHome}}),e._v(" "),["/","/debug","/remote-debug"].includes(e.$router.history.current.path)?a("label",{staticClass:"title"},[e._v("Hippy Vue")]):e._e()]),e._v(" "),a("label",{staticClass:"title"},[e._v(e._s(e.subtitle))])]),e._v(" "),a("div",{staticClass:"body-container",on:{click:function(e){return e.stopPropagation()}}},[a("keep-alive",[a("router-view",{staticClass:"feature-content"})],1)],1),e._v(" "),a("div",{staticClass:"bottom-tabs"},e._l(e.tabs,(function(t,o){return a("div",{key:"tab-"+o,class:["bottom-tab",o===e.activatedTab?"activated":""],on:{click:function(a){return e.navigateTo(a,t,o)}}},[a("span",{staticClass:"bottom-tab-text"},[e._v("\n "+e._s(t.text)+"\n ")])])})),0)])};o._withStripped=!0;var r={name:"App",data:()=>({imgs:{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"},subtitle:"",activatedTab:0,tabs:[{text:"API",path:"/"},{text:"调试",path:"/remote-debug"}]}),watch:{$route(e){void 0!==e.name?this.subtitle=e.name:this.subtitle=""}},methods:{navigateTo(e,t,a){a!==this.activatedTab&&(e.stopPropagation(),console.log(t),this.activatedTab=a,this.$router.replace({path:t.path}))},goToHome(){this.$router.back()}}},s=(a("./src/app.vue?vue&type=style&index=0&lang=css&"),a("../../packages/hippy-vue-loader/lib/runtime/componentNormalizer.js")),i=Object(s.a)(r,o,[],!1,null,null,null);i.options.__file="src/app.vue";t.a=i.exports},"./src/app.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/app.vue?vue&type=style&index=0&lang=css&")},"./src/assets/defaultSource.jpg":function(e,t,a){e.exports=a.p+"assets/defaultSource.jpg"},"./src/assets/hippyLogoWhite.png":function(e,t,a){e.exports=a.p+"assets/hippyLogoWhite.png"},"./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&")},"./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&")},"./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&")},"./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&")},"./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&")},"./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&")},"./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&")},"./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&")},"./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&")},"./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&")},"./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&")},"./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&")},"./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&")},"./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&")},"./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&")},"./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&")},"./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&")},"./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&")},"./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&")},"./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&")},"./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&")},"./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&")},"./src/components/native-demos/demo-swiper.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-swiper.vue?vue&type=style&index=0&lang=css&")},"./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&")},"./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&")},"./src/main-native.js":function(e,t,a){"use strict";a.r(t),function(e){var t=a("../../packages/hippy-vue/dist/index.js"),o=a("../../packages/hippy-vue-router/dist/index.js"),r=a("../../packages/hippy-vue-native-components/dist/index.js"),s=a("./src/app.vue"),i=a("./src/routes.js"),n=a("./src/util.js");t.default.config.productionTip=!1,t.default.config.trimWhitespace=!0,t.default.use(r.default),t.default.use(o.a);const l=new o.a(i.a);e.Hippy.on("uncaughtException",e=>{console.error("uncaughtException error",e.stack,e.message)}),e.Hippy.on("unhandledRejection",e=>{console.error("unhandledRejection reason",e)});const c=new t.default({appName:"Demo",rootView:"#root",render:e=>e(s.a),iPhone:{statusBar:{backgroundColor:4283416717}},router:l});c.$start((e,a)=>{console.log("instance",e,"initialProps",a),t.default.Native.BackAndroid.addListener(()=>(console.log("backAndroid"),!0))}),Object(n.b)(c)}.call(this,a("./node_modules/webpack/buildin/global.js"))},"./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&")},"./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&")},"./src/routes.js":function(e,t,a){"use strict";var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{staticClass:"v4fb46863 feature-list"},[a("li",[a("div",{staticClass:"v4fb46863",attrs:{id:"version-info"}},[a("p",{staticClass:"v4fb46863 feature-title"},[e._v("\n Vue: "+e._s(e.Vue.version)+"\n ")]),e._v(" "),e.Vue.Native?a("p",{staticClass:"v4fb46863 feature-title"},[e._v("\n Hippy-Vue: "+e._s("unspecified"!==e.Vue.Native.version?e.Vue.Native.version:"master")+"\n ")]):e._e()])]),e._v(" "),e._m(0),e._v(" "),e._l(e.featureList,(function(t){return a("li",{key:t.id,staticClass:"v4fb46863 feature-item"},[a("router-link",{staticClass:"v4fb46863 button",attrs:{to:{path:"/demo/"+t.id}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)})),e._v(" "),e.nativeFeatureList.length?a("li",[a("p",{staticClass:"v4fb46863 feature-title",attrs:{paintType:"fcp"}},[e._v("\n 终端组件 Demos\n ")])]):e._e(),e._v(" "),e._l(e.nativeFeatureList,(function(t){return a("li",{key:t.id,staticClass:"v4fb46863 feature-item"},[a("router-link",{staticClass:"v4fb46863 button",attrs:{to:{path:"/demo/"+t.id}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)}))],2)};o._withStripped=!0;var r=a("../../packages/hippy-vue/dist/index.js"),s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v26278b5d button-demo"},[a("label",{staticClass:"v26278b5d button-label"},[e._v("按钮和状态绑定")]),e._v(" "),a("button",{staticClass:"v26278b5d button-demo-1",class:{"is-active":e.isClicked,"is-pressing":e.isPressing},on:{touchstart:e.onTouchBtnStart,touchmove:e.onTouchBtnMove,touchend:e.onTouchBtnEnd,click:e.clickView}},[e.isClicked?a("span",{staticClass:"v26278b5d button-text"},[e._v("视图已经被点击了,再点一下恢复")]):a("span",{staticClass:"v26278b5d button-text"},[e._v("视图尚未点击")])]),e._v(" "),a("img",{directives:[{name:"show",rawName:"v-show",value:e.isClicked,expression:"isClicked"}],staticClass:"v26278b5d button-demo-1-image",attrs:{alt:"demo1-image",src:"https://user-images.githubusercontent.com/12878546/148737148-d0b227cb-69c8-4b21-bf92-739fb0c3f3aa.png"}})])};s._withStripped=!0;var i={data:()=>({isClicked:!1,isPressing:!1}),methods:{clickView(){this.isClicked=!this.isClicked},onTouchBtnStart(e){console.log("onBtnTouchDown",e),e.stopPropagation()},onTouchBtnMove(e){console.log("onBtnTouchMove",e),e.stopPropagation(),console.log(e)},onTouchBtnEnd(e){console.log("onBtnTouchEnd",e),e.stopPropagation(),console.log(e)}}},n=(a("./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&"),a("../../packages/hippy-vue-loader/lib/runtime/componentNormalizer.js")),l=Object(n.a)(i,s,[],!1,null,"26278b5d",null);l.options.__file="src/components/demos/demo-button.vue";var c=l.exports,d=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614",attrs:{id:"div-demo"},on:{scroll:e.onOuterScroll}},[a("div",["ios"!==e.Vue.Native.Platform?a("div",[a("label",[e._v("水波纹效果: ")]),e._v(" "),a("div",{staticClass:"ve3dda614",style:Object.assign({},e.imgRectangle,e.imgRectangleExtra)},[a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.imgRectangle,"native-background-android":{borderless:!0,color:"#666666"}}},[a("p",{staticClass:"ve3dda614",style:{color:"white",maxWidth:200}},[e._v("\n 外层背景图,内层无边框水波纹,受外层影响始终有边框\n ")])])],1),e._v(" "),a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.circleRipple,"native-background-android":{borderless:!0,color:"#666666",rippleRadius:100}}},[a("p",{staticClass:"ve3dda614",style:{color:"black",textAlign:"center"}},[e._v("\n 无边框圆形水波纹\n ")])]),e._v(" "),a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.squareRipple,"native-background-android":{borderless:!1,color:"#666666"}}},[a("p",{staticClass:"ve3dda614",style:{color:"#fff"}},[e._v("\n 带背景色水波纹\n ")])])],1):e._e(),e._v(" "),a("label",[e._v("背景图效果:")]),e._v(" "),a("div",{staticClass:"ve3dda614",style:e.demo1Style,attrs:{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"}},[a("p",{staticClass:"ve3dda614 div-demo-1-text"},[e._v("\n Hippy 背景图展示\n ")])]),e._v(" "),a("label",[e._v("渐变色效果:")]),e._v(" "),e._m(0),e._v(" "),a("label",[e._v("Transform")]),e._v(" "),e._m(1),e._v(" "),a("label",[e._v("水平滚动:")]),e._v(" "),a("div",{ref:"demo-2",staticClass:"ve3dda614 div-demo-2",attrs:{bounces:!0,scrollEnabled:!0,pagingEnabled:!1,showsHorizontalScrollIndicator:!1},on:{scroll:e.onScroll,momentumScrollBegin:e.onMomentumScrollBegin,momentumScrollEnd:e.onMomentumScrollEnd,scrollBeginDrag:e.onScrollBeginDrag,scrollEndDrag:e.onScrollEndDrag}},[e._m(2)]),e._v(" "),a("label",[e._v("垂直滚动:")]),e._v(" "),a("div",{staticClass:"ve3dda614 div-demo-3",attrs:{showsVerticalScrollIndicator:!1}},[e._m(3)])])])};d._withStripped=!0;var p=a("./src/assets/defaultSource.jpg"),u=a.n(p),v=function(){var e=this.$createElement;return(this._self._c||e)("div",{ref:"ripple1",style:this.wrapperStyle,attrs:{nativeBackgroundAndroid:Object.assign({},this.nativeBackgroundAndroid)},on:{layout:this.onLayout,touchstart:this.onTouchStart,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[this._t("default")],2)};v._withStripped=!0;const y={display:"flex",height:"40px",width:"200px",backgroundImage:""+u.a,backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"};var h={name:"DemoRippleDiv",props:{nativeBackgroundAndroid:{default:{borderless:!1}},wrapperStyle:{type:Object,default:()=>y},positionY:{default:0}},data(){return{scrollOffsetY:this.positionY,viewX:0,viewY:0,demo1Style:y}},watch:{positionY(e){this.scrollOffsetY=e}},mounted(){this.rippleRef=this.$refs.ripple1},methods:{async onLayout(){const e=await r.default.Native.measureInAppWindow(this.rippleRef);this.viewX=e.left,this.viewY=e.top},onTouchStart(e){const t=e.touches[0];this.rippleRef.setHotspot(t.clientX-this.viewX,t.clientY+this.scrollOffsetY-this.viewY),this.rippleRef.setPressed(!0)},onTouchEnd(){this.rippleRef.setPressed(!1)}}},b=Object(n.a)(h,v,[],!1,null,null,null);b.options.__file="src/components/demos/demo-ripple-div.vue";var m={components:{"demo-ripple-div":b.exports},data:()=>({Vue:r.default,offsetY:0,demo1Style:{display:"flex",height:"40px",width:"200px",backgroundImage:""+u.a,backgroundSize:"cover",backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"},imgRectangle:{width:"260px",height:"56px",alignItems:"center",justifyContent:"center"},imgRectangleExtra:{marginTop:"20px",backgroundImage:""+u.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"}}),mounted(){this.demon2=this.$refs["demo-2"],setTimeout(()=>{this.demon2.scrollTo(50,0,1e3)},1e3)},methods:{onOuterScroll(e){this.offsetY=e.offsetY},onScroll(e){console.log("onScroll",e)},onMomentumScrollBegin(e){console.log("onMomentumScrollBegin",e)},onMomentumScrollEnd(e){console.log("onMomentumScrollEnd",e)},onScrollBeginDrag(e){console.log("onScrollBeginDrag",e)},onScrollEndDrag(e){console.log("onScrollEndDrag",e)}}},f=(a("./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&"),Object(n.a)(m,d,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ve3dda614 div-demo-1-1"},[t("p",{staticClass:"ve3dda614 div-demo-1-text"},[this._v("\n Hippy 背景渐变色展示\n ")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ve3dda614 div-demo-transform"},[t("p",{staticClass:"ve3dda614 div-demo-transform-text"},[this._v("\n Transform\n ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614 display-flex flex-row"},[a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n A\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n B\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n C\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n D\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n E\n ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614 display-flex flex-column"},[a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n A\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n B\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n C\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n D\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n E\n ")])])}],!1,null,"e3dda614",null));f.options.__file="src/components/demos/demo-div.vue";var g=f.exports,_=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vc6df51b0",attrs:{id:"demo-img"}},[a("div",{staticClass:"vc6df51b0",attrs:{id:"demo-img-container"}},[a("label",[e._v("Contain:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image contain",attrs:{src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",placeholder:e.defaultImage},on:{touchstart:e.onTouchStart,touchmove:e.onTouchMove,touchend:e.onTouchEnd}}),e._v(" "),a("label",[e._v("Cover:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}}),e._v(" "),a("label",[e._v("Center:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image center",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}}),e._v(" "),a("label",[e._v("CapInsets:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",capInsets:{top:50,left:50,bottom:50,right:50}}}),e._v(" "),a("label",[e._v("TintColor:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image center tint-color",attrs:{src:e.hippyLogoImage}}),e._v(" "),a("label",[e._v("Gif:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif"},on:{load:e.onLoad}}),e._v(" "),a("div",{staticClass:"vc6df51b0 img-result"},[a("p",[e._v("Load Result: "+e._s(e.gifLoadResult))])])])])};_._withStripped=!0;var C=a("./src/assets/hippyLogoWhite.png"),x=a.n(C),S={data:()=>({defaultImage:u.a,hippyLogoImage:x.a,gifLoadResult:{}}),methods:{onTouchStart(e){console.log("onTouchDown",e),e.stopPropagation()},onTouchMove(e){console.log("onTouchMove",e),e.stopPropagation(),console.log(e)},onTouchEnd(e){console.log("onTouchEnd",e),e.stopPropagation(),console.log(e)},onLoad(e){console.log("onLoad",e);const{width:t,height:a,url:o}=e;this.gifLoadResult={width:t,height:a,url:o}}}},w=(a("./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&"),Object(n.a)(S,_,[],!1,null,"c6df51b0",null));w.options.__file="src/components/demos/demo-img.vue";var k=w.exports,A=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"inputDemo",staticClass:"v76bc5c6f demo-input",on:{click:e.blurAllInput}},[a("label",[e._v("文本:")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.text,expression:"text"}],ref:"input",staticClass:"v76bc5c6f input",attrs:{placeholder:"Text","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",editable:!0},domProps:{value:e.text},on:{click:e.stopPropagation,keyboardWillShow:e.onKeyboardWillShow,keyboardWillHide:e.onKeyboardWillHide,blur:e.onBlur,focus:e.onFocus,input:function(t){t.target.composing||(e.text=t.target.value)}}}),e._v(" "),a("div",[a("span",[e._v("文本内容为:")]),e._v(" "),a("span",[e._v(e._s(e.text))])]),e._v(" "),a("div",[a("span",[e._v(e._s("事件: "+e.event+" | isFocused: "+e.isFocused))])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.clearTextContent}},[a("span",[e._v("清空文本内容")])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.focus}},[a("span",[e._v("Focus")])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.blur}},[a("span",[e._v("Blur")])]),e._v(" "),a("label",[e._v("数字:")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{type:"number","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Number"},on:{change:e.textChange,click:e.stopPropagation}}),e._v(" "),a("label",[e._v("密码:")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{type:"password","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Password"},on:{change:e.textChange,click:e.stopPropagation}}),e._v(" "),a("label",[e._v("文本(限制5个字符):")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{maxlength:5,"caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"5 个字符"},on:{change:e.textChange,click:e.stopPropagation}})])};A._withStripped=!0;var P={data:()=>({text:"",event:void 0,isFocused:void 0}),mounted(){this.getChildNodes(this.$refs.inputDemo.childNodes).find(e=>"input"===e.tagName).focus()},methods:{textChange(e){console.log(e.value)},blurAllInput(){this.getChildNodes(this.$refs.inputDemo.childNodes).filter(e=>"input"===e.tagName).forEach(e=>e.blur())},stopPropagation(e){e.stopPropagation()},clearTextContent(){this.text=""},onKeyboardWillHide(){console.log("onKeyboardWillHide")},onKeyboardWillShow(e){console.log("onKeyboardWillShow",e)},getChildNodes:e=>r.default.Native?e:Array.from(e),focus(e){e.stopPropagation(),this.$refs.input.focus()},blur(e){e.stopPropagation(),this.$refs.input.blur()},async onFocus(){this.isFocused=await this.$refs.input.isFocused(),this.event="onFocus"},async onBlur(){this.isFocused=await this.$refs.input.isFocused(),this.event="onBlur"}}},E=(a("./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&"),Object(n.a)(P,A,[],!1,null,"76bc5c6f",null));E.options.__file="src/components/demos/demo-input.vue";var j=E.exports,T=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v36005ed6 p-demo"},[a("div",[a("label",[e._v("不带样式:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-content",on:{touchstart:e.onTouchTextStart,touchmove:e.onTouchTextMove,touchend:e.onTouchTextEnd}},[e._v("\n 这是最普通的一行可点击文字\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-content-status"},[e._v("\n 当前touch状态: "+e._s(e.labelTouchStatus)+"\n ")]),e._v(" "),a("label",[e._v("颜色:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-1 p-demo-content"},[e._v("\n 这行文字改变了颜色\n ")]),e._v(" "),a("label",[e._v("尺寸:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-2 p-demo-content"},[e._v("\n 这行改变了大小\n ")]),e._v(" "),a("label",[e._v("粗体:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-3 p-demo-content"},[e._v("\n 这行加粗了\n ")]),e._v(" "),a("label",[e._v("下划线:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-4 p-demo-content"},[e._v("\n 这里有条下划线\n ")]),e._v(" "),a("label",[e._v("删除线:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-5 p-demo-content"},[e._v("\n 这里有条删除线\n ")]),e._v(" "),a("label",[e._v("自定义字体:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content"},[e._v("\n 腾讯字体 Hippy\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-weight":"bold"}},[e._v("\n 腾讯字体 Hippy 粗体\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-style":"italic"}},[e._v("\n 腾讯字体 Hippy 斜体\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-weight":"bold","font-style":"italic"}},[e._v("\n 腾讯字体 Hippy 粗斜体\n ")]),e._v(" "),a("label",[e._v("文字阴影:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-7 p-demo-content",style:e.textShadow,on:{click:e.changeTextShadow}},[e._v("\n 这里是文字灰色阴影,点击可改变颜色\n ")]),e._v(" "),a("label",[e._v("文本字符间距")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-8 p-demo-content",staticStyle:{"margin-bottom":"5px"}},[e._v("\n Text width letter-spacing -1\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-9 p-demo-content",staticStyle:{"margin-top":"5px"}},[e._v("\n Text width letter-spacing 5\n ")]),e._v(" "),a("label",[e._v("字体 style:")]),e._v(" "),e._m(0),e._v(" "),a("label",[e._v("numberOfLines="+e._s(e.textMode.numberOfLines)+" | ellipsizeMode="+e._s(e.textMode.ellipsizeMode))]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"19px",color:"white"}},[e._v("先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。")]),e._v(" "),a("span",[e._v("然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")])]),e._v(" "),a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[e._v("\n "+e._s("line 1\n\nline 3\n\nline 5")+"\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5,fontSize:14},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[a("img",{staticClass:"v36005ed6",style:{width:24,height:24},attrs:{src:e.img1}}),e._v(" "),a("img",{staticClass:"v36005ed6",style:{width:24,height:24},attrs:{src:e.img2}})]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:e.incrementLine}},[a("span",[e._v("加一行")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:e.decrementLine}},[a("span",[e._v("减一行")])])]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("clip")}}},[a("span",[e._v("clip")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("head")}}},[a("span",[e._v("head")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("middle")}}},[a("span",[e._v("middle")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("tail")}}},[a("span",[e._v("tail")])])])]),e._v(" "),"android"===e.Platform?a("label",[e._v("break-strategy="+e._s(e.breakStrategy))]):e._e(),e._v(" "),"android"===e.Platform?a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"border-width":"1","border-color":"gray"},attrs:{"break-strategy":e.breakStrategy}},[e._v("\n "+e._s(e.longText)+"\n ")]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("simple")}}},[a("span",[e._v("simple")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("high_quality")}}},[a("span",[e._v("high_quality")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("balanced")}}},[a("span",[e._v("balanced")])])])]):e._e(),e._v(" "),a("label",[e._v("vertical-align")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-align":"middle"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-align":"baseline"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-align":"bottom"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-align":"middle"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-align":"baseline"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-align":"bottom"},attrs:{src:e.img3}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"top"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"middle"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"baseline"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"bottom"}},[e._v("字")])]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{lineHeight:"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"0"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-alignment":"1"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-alignment":"2"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-alignment":"3"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24",top:"-10"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12",top:"-5"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24",top:"5"},attrs:{src:e.img3}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")])]):e._e()]),e._v(" "),a("label",[e._v("tint-color & background-color")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"vertical-align":"middle","background-color":"#99f"}},[e._v("text")])]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","tint-color":"orange"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","tint-color":"orange","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","background-color":"#ccc"},attrs:{src:e.img2}})]):e._e()]),e._v(" "),a("label",[e._v("margin")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"baseline","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"bottom","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}})]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"0","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"1","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"2","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"3","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}})]):e._e()])])])};T._withStripped=!0;var V={data:()=>({Platform:r.default.Native.Platform,textShadowIndex:0,isClicked:!1,isPressing:!1,labelTouchStatus:"",textShadow:{textShadowOffset:{x:1,y:1},textShadowRadius:3,textShadowColor:"grey"},textMode:{numberOfLines:2,ellipsizeMode:"tail"},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.",breakStrategy:"simple"}),methods:{changeTextShadow(){this.textShadow={textShadowOffsetX:this.textShadowIndex%2==1?10:1,textShadowOffsetY:1,textShadowRadius:3,textShadowColor:this.textShadowIndex%2==1?"red":"grey"},this.textShadowIndex+=1},onTouchTextStart(e){this.labelTouchStatus="touch start",console.log("onTextTouchDown",e),e.stopPropagation()},onTouchTextMove(e){this.labelTouchStatus="touch move",console.log("onTextTouchMove",e),e.stopPropagation(),console.log(e)},onTouchTextEnd(e){this.labelTouchStatus="touch end",console.log("onTextTouchEnd",e),e.stopPropagation(),console.log(e)},incrementLine(){this.textMode.numberOfLines<6&&(this.textMode.numberOfLines+=1)},decrementLine(){this.textMode.numberOfLines>1&&(this.textMode.numberOfLines-=1)},changeMode(e){this.textMode.ellipsizeMode=e},changeBreakStrategy(e){this.breakStrategy=e}}},I=(a("./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&"),Object(n.a)(V,T,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v36005ed6 p-demo-content"},[t("p",{staticClass:"v36005ed6",staticStyle:{"font-style":"normal"}},[this._v("\n font-style: normal\n ")]),this._v(" "),t("p",{staticClass:"v36005ed6",staticStyle:{"font-style":"italic"}},[this._v("\n font-style: italic\n ")]),this._v(" "),t("p",[this._v("font-style: [not set]")])])}],!1,null,"36005ed6",null));I.options.__file="src/components/demos/demo-p.vue";var L=I.exports,Y=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v5819936a",attrs:{id:"shadow-demo"}},["android"===e.Platform?a("div",{staticClass:"v5819936a no-offset-shadow-demo-cube-android"},[e._m(0)]):e._e(),e._v(" "),"ios"===e.Platform?a("div",{staticClass:"v5819936a no-offset-shadow-demo-cube-ios"},[e._m(1)]):e._e(),e._v(" "),"android"===e.Platform?a("div",{staticClass:"v5819936a offset-shadow-demo-cube-android"},[e._m(2)]):e._e(),e._v(" "),"ios"===e.Platform?a("div",{staticClass:"v5819936a offset-shadow-demo-cube-ios"},[e._m(3)]):e._e()])};Y._withStripped=!0;var O={data:()=>({Platform:r.default.Native.Platform}),mounted(){this.Platform=r.default.Native.Platform}},H=(a("./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&"),Object(n.a)(O,Y,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a no-offset-shadow-demo-content-android"},[t("p",[this._v("没有偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a no-offset-shadow-demo-content-ios"},[t("p",[this._v("没有偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a offset-shadow-demo-content-android"},[t("p",[this._v("偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a offset-shadow-demo-content-ios"},[t("p",[this._v("偏移阴影样式")])])}],!1,null,"5819936a",null));H.options.__file="src/components/demos/demo-shadow.vue";var D=H.exports,R=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v6cb502b6",attrs:{id:"demo-textarea"}},[a("label",[e._v("多行文本:")]),e._v(" "),a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],staticClass:"v6cb502b6 textarea",attrs:{rows:10,placeholder:"多行文本编辑器"},domProps:{value:e.content},on:{contentSizeChange:e.contentSizeChange,input:function(t){t.target.composing||(e.content=t.target.value)}}}),e._v(" "),a("div",{staticClass:"v6cb502b6 output-container"},[a("p",{staticClass:"v6cb502b6 output"},[e._v("\n 输入的文本为:"+e._s(e.content)+"\n ")])]),e._v(" "),"android"===e.Platform?a("label",[e._v("break-strategy="+e._s(e.breakStrategy))]):e._e(),e._v(" "),"android"===e.Platform?a("div",[a("textarea",{staticClass:"v6cb502b6 textarea",attrs:{defaultValue:e.longText,"break-strategy":e.breakStrategy}}),e._v(" "),a("div",{staticClass:"v6cb502b6 button-bar"},[a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("simple")}}},[a("span",[e._v("simple")])]),e._v(" "),a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("high_quality")}}},[a("span",[e._v("high_quality")])]),e._v(" "),a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("balanced")}}},[a("span",[e._v("balanced")])])])]):e._e()])};R._withStripped=!0;var B={data:()=>({Platform:r.default.Native.Platform,content:"The quick brown fox jumps over the lazy dog,快灰狐狸跳过了懒 🐕。",longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",breakStrategy:"simple"}),methods:{contentSizeChange(e){console.log(e)},changeBreakStrategy(e){this.breakStrategy=e}}},U=(a("./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&"),Object(n.a)(B,R,[],!1,null,"6cb502b6",null));U.options.__file="src/components/demos/demo-textarea.vue";var N=U.exports,M=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v71b90789",attrs:{id:"demo-list"}},[a("ul",{ref:"list",staticClass:"v71b90789",style:e.horizontal&&{height:50,flex:0},attrs:{id:"list",horizontal:e.horizontal,exposureEventEnabled:!0,delText:e.delText,editable:!0,bounces:!0,rowShouldSticky:!0,overScrollEnabled:!0,scrollEventThrottle:1e3},on:{endReached:e.onEndReached,delete:e.onDelete,scroll:e.onScroll,momentumScrollBegin:e.onMomentumScrollBegin,momentumScrollEnd:e.onMomentumScrollEnd,scrollBeginDrag:e.onScrollBeginDrag,scrollEndDrag:e.onScrollEndDrag}},e._l(e.dataSource,(function(t,o){return a("li",{key:o+"_"+t.style,staticClass:"v71b90789",class:e.horizontal&&"item-horizontal-style",attrs:{type:t.style,sticky:1===o},on:{appear:function(t){return e.onAppear(o)},disappear:function(t){return e.onDisappear(o)},willAppear:function(t){return e.onWillAppear(o)},willDisappear:function(t){return e.onWillDisappear(o)}}},[1===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 1 UI")+"\n ")])])]):2===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 2 UI")+"\n ")])])]):5===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 5 UI")+"\n ")])])]):a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{id:"loading"}},[e._v("\n "+e._s(e.loadingState)+"\n ")])])]),e._v(" "),o!==e.dataSource.length-1?a("div",{staticClass:"v71b90789 separator-line"}):e._e()])})),0),e._v(" "),"android"===e.Vue.Native.Platform?a("div",{staticClass:"v71b90789",style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#40b883"},on:{click:e.changeDirection}},[a("div",{staticClass:"v71b90789",style:{width:60,height:60,borderRadius:30,backgroundColor:"#40b883",display:"flex",justifyContent:"center",alignItems:"center"}},[a("p",{staticClass:"v71b90789",style:{color:"white"}},[e._v("\n 切换方向\n ")])])]):e._e()])};M._withStripped=!0;const F=[{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}];var z={data:()=>({Vue:r.default,loadingState:"Loading now...",dataSource:[],delText:"Delete",horizontal:void 0}),mounted(){this.isLoading=!1,this.dataSource=F},methods:{changeDirection(){this.horizontal=void 0===this.horizontal||void 0},onAppear(e){console.log("onAppear",e)},onDisappear(e){console.log("onDisappear",e)},onWillAppear(e){console.log("onWillAppear",e)},onWillDisappear(e){console.log("onWillDisappear",e)},mockFetchData:()=>new Promise(e=>{setTimeout(()=>e(F),600)}),onDelete(e){this.dataSource.splice(e.index,1)},async onEndReached(){const{dataSource:e,isLoading:t}=this;if(t)return;this.isLoading=!0,this.dataSource=e.concat([{style:100}]);const a=await this.mockFetchData();this.dataSource=e.concat(a),this.isLoading=!1},onScroll(e){console.log("onScroll",e.offsetY),e.offsetY<=0?this.topReached||(this.topReached=!0,console.log("onTopReached")):this.topReached=!1},onMomentumScrollBegin(e){console.log("momentumScrollBegin",e)},onMomentumScrollEnd(e){console.log("momentumScrollEnd",e)},onScrollBeginDrag(e){console.log("onScrollBeginDrag",e)},onScrollEndDrag(e){console.log("onScrollEndDrag",e)}}},$=(a("./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&"),Object(n.a)(z,M,[],!1,null,"71b90789",null));$.options.__file="src/components/demos/demo-list.vue";var W=$.exports,K=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{style:e.iframeStyle,attrs:{id:"iframe-demo"}},[a("label",[e._v("地址栏:")]),e._v(" "),a("input",{ref:"input",attrs:{id:"address",name:"url",returnKeyType:"go"},domProps:{value:e.displayUrl},on:{endEditing:e.goToUrl,keyup:e.onKeyUp}}),e._v(" "),a("iframe",{ref:"iframe",attrs:{id:"iframe",src:e.url,method:"get"},on:{load:e.onLoad,loadStart:e.onLoadStart,loadEnd:e.onLoadEnd}})])};K._withStripped=!0;var G={data:()=>({url:"https://hippyjs.org",displayUrl:"https://hippyjs.org",iframeStyle:{"min-height":r.default.Native?100:"100vh"}}),methods:{onLoad(e){let{url:t}=e;void 0===t&&(t=this.$refs.iframe.src),t!==this.url&&(this.displayUrl=t)},onLoadStart(e){const{url:t}=e;console.log("onLoadStart",t)},onLoadEnd(e){const{url:t,success:a,error:o}=e;console.log("onLoadEnd",t,a,o)},onKeyUp(e){13===e.keyCode&&(e.preventDefault(),this.goToUrl({value:this.$refs.input.value}))},goToUrl(e){this.url=e.value}}},q=(a("./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&"),Object(n.a)(G,K,[],!1,null,null,null));q.options.__file="src/components/demos/demo-iframe.vue";var Q=q.exports,X=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v77bce928",attrs:{id:"websocket-demo"}},[a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Url:\n ")]),e._v(" "),a("input",{ref:"inputUrl",staticClass:"v77bce928",attrs:{value:"wss://echo.websocket.org"}}),e._v(" "),a("div",{staticClass:"v77bce928 row"},[a("button",{staticClass:"v77bce928",on:{click:e.connect}},[a("span",[e._v("Connect")])]),e._v(" "),a("button",{staticClass:"v77bce928",on:{click:e.disconnect}},[a("span",[e._v("Disconnect")])])])]),e._v(" "),a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Message:\n ")]),e._v(" "),a("input",{ref:"inputMessage",staticClass:"v77bce928",attrs:{value:"Rock it with Hippy WebSocket"}}),e._v(" "),a("button",{staticClass:"v77bce928",on:{click:e.sendMessage}},[a("span",[e._v("Send")])])]),e._v(" "),a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Log:\n ")]),e._v(" "),a("div",{staticClass:"v77bce928 output fullscreen"},[a("div",e._l(e.output,(function(t,o){return a("p",{key:o,staticClass:"v77bce928"},[e._v("\n "+e._s(t)+"\n ")])})),0)])])])};X._withStripped=!0;var J={data:()=>({output:[]}),methods:{connect(){this.$refs.inputUrl.getValue().then(e=>{this.disconnect();const t=new WebSocket(e);t.onopen=()=>this.appendOutput("[Opened] "+t.url),t.onclose=()=>this.appendOutput("[Closed] "+t.url),t.onerror=e=>this.appendOutput("[Error] "+e.reason),t.onmessage=e=>this.appendOutput("[Received] "+e.data),this.ws=t})},disconnect(){this.ws&&1===this.ws.readyState&&this.ws.close()},appendOutput(e){this.output.unshift(e)},sendMessage(){this.$refs.inputMessage.getValue().then(e=>{this.appendOutput("[Sent] "+e),this.ws.send(e)})}}},Z=(a("./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&"),Object(n.a)(J,X,[],!1,null,"77bce928",null));Z.options.__file="src/components/demos/demo-websocket.vue";var ee=Z.exports,te=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v2ea31349",attrs:{id:"demo-dynamicimport"},on:{click:this.onAsyncComponentLoad}},[this._m(0),this._v(" "),this.loaded?t("div",{staticClass:"v2ea31349 async-com-wrapper"},[t("AsyncComponentFromLocal",{staticClass:"v2ea31349 async-component-outer-local"}),this._v(" "),t("AsyncComponentFromHttp")],1):this._e()])};te._withStripped=!0;var ae={components:{AsyncComponentFromLocal:()=>a.e(1).then(a.bind(null,"./src/components/demos/dynamicImport/async-component-local.vue")).then(e=>e).catch(e=>console.error("import async local component error",e)),AsyncComponentFromHttp:()=>a.e(0).then(a.bind(null,"./src/components/demos/dynamicImport/async-component-http.vue")).then(e=>e).catch(e=>console.error("import async remote component error",e))},data:()=>({loaded:!1}),methods:{onAsyncComponentLoad(){this.loaded=!0}}},oe=(a("./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&"),Object(n.a)(ae,te,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v2ea31349 import-btn"},[t("p",[this._v("点我异步加载")])])}],!1,null,"2ea31349",null));oe.options.__file="src/components/demos/demo-dynamicimport.vue";var re=oe.exports,se=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v14216e7a demo-turbo"},[a("span",{staticClass:"v14216e7a result"},[e._v(" "+e._s(e.result)+" ")]),e._v(" "),a("ul",{staticClass:"v14216e7a",staticStyle:{flex:"1"}},e._l(e.funList,(function(t){return a("li",{key:t,staticClass:"v14216e7a cell"},[a("div",{staticClass:"v14216e7a contentView"},[a("div",{staticClass:"v14216e7a func-info"},[a("span",{staticClass:"v14216e7a",attrs:{numberOfLines:0}},[e._v("函数名:"+e._s(t))])]),e._v(" "),a("span",{staticClass:"v14216e7a action-button",on:{click:function(a){return a.stopPropagation(),function(){return e.onTurboFunc(t)}.apply(null,arguments)}}},[e._v("运行")])])])})),0)])};se._withStripped=!0;const ie=()=>getTurboModule("demoTurbo").getTurboConfig();var ne={data:()=>({config:null,result:"",funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"]}),methods:{async onTurboFunc(e){if("nativeWithPromise"===e)this.result=await(async e=>turboPromise(getTurboModule("demoTurbo").nativeWithPromise)(e))("aaa");else if("getTurboConfig"===e)this.config=ie(),this.result="获取到config对象";else if("printTurboConfig"===e)this.result=(t=this.config||ie(),getTurboModule("demoTurbo").printTurboConfig(t));else if("getInfo"===e)this.result=(this.config||ie()).getInfo();else if("setInfo"===e)(this.config||ie()).setInfo("Hello World"),this.result="设置config信息成功";else{const t={getString:()=>{return e="123",getTurboModule("demoTurbo").getString(e);var e},getNum:()=>{return e=1024,getTurboModule("demoTurbo").getNum(e);var e},getBoolean:()=>{return e=!0,getTurboModule("demoTurbo").getBoolean(e);var e},getMap:()=>{return e=new Map([["a","1"],["b",2]]),getTurboModule("demoTurbo").getMap(e);var e},getObject:()=>{return e={c:"3",d:"4"},getTurboModule("demoTurbo").getObject(e);var e},getArray:()=>{return e=["a","b","c"],getTurboModule("demoTurbo").getArray(e);var e}};this.result=t[e]()}var t}}},le=(a("./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&"),Object(n.a)(ne,se,[],!1,null,"14216e7a",null));le.options.__file="src/components/demos/demo-turbo.vue";var ce={demoDiv:{name:"div 组件",component:g},demoShadow:{name:"box-shadow",component:D},demoP:{name:"p 组件",component:L},demoButton:{name:"button 组件",component:c},demoImg:{name:"img 组件",component:k},demoInput:{name:"input 组件",component:j},demoTextarea:{name:"textarea 组件",component:N},demoUl:{name:"ul/li 组件",component:W},demoIFrame:{name:"iframe 组件",component:Q},demoWebSocket:{name:"WebSocket",component:ee},demoDynamicImport:{name:"DynamicImport",component:re},demoTurbo:{name:"Turbo",component:le.exports}},de=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v4ffd9eb0 set-native-props-demo"},[a("label",[e._v("setNativeProps实现拖动效果")]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 native-demo-1-drag",style:{width:e.screenWidth},on:{touchstart:e.onTouchDown1,touchmove:e.onTouchMove1}},[a("div",{ref:"demo-1-point",staticClass:"v4ffd9eb0 native-demo-1-point"})]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 splitter"}),e._v(" "),a("label",[e._v("普通渲染实现拖动效果")]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 native-demo-2-drag",style:{width:e.screenWidth},on:{touchstart:e.onTouchDown2,touchmove:e.onTouchMove2}},[a("div",{ref:"demo-2-point",staticClass:"v4ffd9eb0 native-demo-2-point",style:{left:e.demon2Left+"px"}})])])};de._withStripped=!0;var pe={data:()=>({demon2Left:0,screenWidth:0}),mounted(){this.screenWidth=r.default.Native.Dimensions.screen.width,this.demon1Point=this.$refs["demo-1-point"]},methods:{onTouchDown1(e){e.stopPropagation();const t=e.touches[0].clientX-40;console.log("touchdown x",t,this.screenWidth),this.demon1Point.setNativeProps({style:{left:t}})},onTouchMove1(e){e.stopPropagation();const t=e.touches[0].clientX-40;console.log("touchmove x",t,this.screenWidth),this.demon1Point.setNativeProps({style:{left:t}})},onTouchDown2(e){e.stopPropagation(),this.demon2Left=e.touches[0].clientX-40,console.log("touchdown x",this.demon2Left,this.screenWidth)},onTouchMove2(e){e.stopPropagation(),this.demon2Left=e.touches[0].clientX-40,console.log("touchmove x",this.demon2Left,this.screenWidth)}}},ue=(a("./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&"),Object(n.a)(pe,de,[],!1,null,"4ffd9eb0",null));ue.options.__file="src/components/demos/demo-set-native-props.vue";var ve=ue.exports,ye=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"rect",staticClass:"v864846ba",attrs:{id:"demo-vue-native"}},[a("div",[e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Platform")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Platform))])]):e._e(),e._v(" "),e.Vue.Native.Device?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Device")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Device))])]):e._e(),e._v(" "),"ios"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.isIPhoneX")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.isIPhoneX))])]):e._e(),e._v(" "),"ios"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.OSVersion")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.OSVersion||"null"))])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Localization")]),e._v(" "),a("p",[e._v(e._s("国际化相关信息"))]),e._v(" "),a("p",[e._v(e._s("国家 "+e.Vue.Native.Localization.country))]),e._v(" "),a("p",[e._v(e._s("语言 "+e.Vue.Native.Localization.language))]),e._v(" "),a("p",[e._v(e._s("方向 "+(1===e.Vue.Native.Localization.direction?"RTL":"LTR")))])]),e._v(" "),"android"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.APILevel")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.APILevel||"null"))])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block",on:{layout:e.refreshScreenStatus}},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.screenIsVertical")]),e._v(" "),a("p",[e._v(e._s(e.screenIsVertical))])]),e._v(" "),e.Vue.Native.Dimensions.window.width?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.window.width")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.window.width))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.window.height?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.window.height")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.window.height))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.width?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.width")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.width))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.height?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.height")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.height))])]):e._e(),e._v(" "),e.Vue.Native.OnePixel?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.OnePixel")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.OnePixel))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.navigatorBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.navigatorBarHeight")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.navigatorBarHeight))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.statusBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.statusBarHeight")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.statusBarHeight))])]):e._e(),e._v(" "),"android"===e.Vue.Native.Platform&&void 0!==e.Vue.Native.Dimensions.screen.navigatorBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.navigatorBarHeight(Android only)")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.navigatorBarHeight))])]):e._e(),e._v(" "),e.app?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("App.$options.$superProps")]),e._v(" "),a("p",[e._v(e._s(JSON.stringify(e.app.$options.$superProps)))])]):e._e(),e._v(" "),e.app?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("App event")]),e._v(" "),a("div",[a("button",{staticClass:"v864846ba event-btn",on:{click:e.triggerAppEvent}},[a("span",{staticClass:"v864846ba event-btn-text"},[e._v("Trigger app event")])]),e._v(" "),a("div",{staticClass:"v864846ba event-btn-result"},[a("p",[e._v("Event triggered times: "+e._s(e.eventTriggeredTimes))])])])]):e._e(),e._v(" "),e.Vue.Native.getBoundingClientRect?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.getBoundingClientRect")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:function(){return e.getBoundingClientRect(!1)}}},[a("span",[e._v("relative to App")])]),e._v(" "),a("span",{staticClass:"v864846ba",staticStyle:{"max-width":"200px"}},[e._v(e._s(e.rect1))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:function(){return e.getBoundingClientRect(!0)}}},[a("span",[e._v("relative to container")])]),e._v(" "),a("span",{staticClass:"v864846ba",staticStyle:{"max-width":"200px"}},[e._v(e._s(e.rect2))])])]):e._e(),e._v(" "),e.Vue.Native.AsyncStorage?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("AsyncStorage 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setItem}},[a("span",[e._v("setItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageSetStatus))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.removeItem}},[a("span",[e._v("removeItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageSetStatus))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getItem}},[a("span",[e._v("getItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageValue))])])]):e._e(),e._v(" "),e.Vue.Native.ImageLoader?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("ImageLoader 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getSize}},[a("span",[e._v("getSize")])]),e._v(" "),a("span",[e._v(e._s(e.imageSize))])])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Fetch 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("span",[e._v(e._s(e.fetchText))])])]),e._v(" "),e.Vue.Native.NetInfo?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("NetInfo 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("span",[e._v(e._s(e.netInfoText))])])]):e._e(),e._v(" "),e.Vue.Native.Cookie?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Cookie 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setCookie}},[a("span",[e._v("setCookie")])]),e._v(" "),a("span",[e._v(e._s(e.cookieString))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getCookie}},[a("span",[e._v("getCookie")])]),e._v(" "),a("span",[e._v(e._s(e.cookiesValue))])])]):e._e(),e._v(" "),e.Vue.Native.Clipboard?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Clipboard 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setString}},[a("span",[e._v("setString")])]),e._v(" "),a("span",[e._v(e._s(e.clipboardString))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getString}},[a("span",[e._v("getString")])]),e._v(" "),a("span",[e._v(e._s(e.clipboardValue))])])]):e._e()])])};ye._withStripped=!0;var he=a("./src/util.js");var be={data(){const{screenIsVertical:e}=r.default.Native;return{app:this.app,eventTriggeredTimes:0,rect1:null,rect2:null,Vue:r.default,screenIsVertical:e,storageValue:"",storageSetStatus:"ready to set",clipboardString:"ready to set",clipboardValue:"",imageSize:"",netInfoText:"正在获取...",fetchText:"请求网址中...",cookieString:"ready to set",cookiesValue:"",hasLayout:!1}},async created(){this.storageValue="",this.imageSize="",this.netInfoText="",this.netInfoText=await r.default.Native.NetInfo.fetch(),this.netInfoListener=r.default.Native.NetInfo.addEventListener("change",e=>{this.netInfoText="收到通知: "+e.network_info}),fetch("https://hippyjs.org",{mode:"no-cors"}).then(e=>{this.fetchText="成功状态: "+e.status}).catch(e=>{this.fetchText="收到错误: "+e})},async mounted(){this.app=Object(he.a)(),this.app.$on("testEvent",()=>{this.eventTriggeredTimes+=1})},beforeDestroy(){this.netInfoListener&&r.default.Native.NetInfo.remove("change",this.netInfoListener),this.app.$off("testEvent"),delete this.app},methods:{async getBoundingClientRect(e=!1){try{const t=await r.default.Native.getBoundingClientRect(this.$refs.rect,{relToContainer:e});e?this.rect2=""+JSON.stringify(t):this.rect1=""+JSON.stringify(t)}catch(e){console.error("getBoundingClientRect error",e)}},triggerAppEvent(){this.app.$emit("testEvent")},refreshScreenStatus(){this.screenIsVertical=r.default.Native.screenIsVertical},setItem(){r.default.Native.AsyncStorage.setItem("itemKey","hippy"),this.storageSetStatus='set "hippy" value succeed'},removeItem(){r.default.Native.AsyncStorage.removeItem("itemKey"),this.storageSetStatus='remove "hippy" value succeed'},async getItem(){const e=await r.default.Native.AsyncStorage.getItem("itemKey");this.storageValue=e||"undefined"},async getSize(){const e=await r.default.Native.ImageLoader.getSize("https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png");console.log("ImageLoader getSize",e),this.imageSize=`${e.width}x${e.height}`},setCookie(){r.default.Native.Cookie.set("https://hippyjs.org","name=hippy;network=mobile"),this.cookieString="'name=hippy;network=mobile' is set"},getCookie(){r.default.Native.Cookie.getAll("https://hippyjs.org").then(e=>{this.cookiesValue=e})},setString(){r.default.Native.Clipboard.setString("hippy"),this.clipboardString='copy "hippy" value succeed'},async getString(){const e=await r.default.Native.Clipboard.getString();this.clipboardValue=e||"undefined"}}},me=(a("./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&"),Object(n.a)(be,ye,[],!1,null,"864846ba",null));me.options.__file="src/components/native-demos/demo-vue-native.vue";var fe=me.exports,ge=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{staticClass:"v1b9933af",attrs:{id:"animation-demo"}},[a("li",[a("label",[e._v("控制动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleLoopPlaying}},[e.loopPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])]),e._v(" "),a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleDirection}},["horizon"===e.direction?a("span",[e._v("切换为纵向")]):a("span",[e._v("切换为横向")])])]),e._v(" "),a("div",{staticClass:"v1b9933af",staticStyle:{height:"150px"}},[a("loop",{staticClass:"v1b9933af",attrs:{playing:e.loopPlaying,direction:e.direction,"on-ref":e.onRef},on:{actionsDidUpdate:e.actionsDidUpdate}},[a("p",[e._v("I'm a looping animation")])])],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("点赞笑脸动画:")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.voteUp}},[a("span",[e._v("点赞 👍")])]),e._v(" "),a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.voteDown}},[a("span",[e._v("踩 👎")])])]),e._v(" "),a("div",{staticClass:"v1b9933af vote-face-container center"},[a(e.voteComponent,{tag:"component",staticClass:"v1b9933af vote-icon",attrs:{"is-changed":e.isChanged}})],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("渐变色动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleColorPlaying}},[e.colorPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])])]),e._v(" "),a("div",[a("color-component",{staticClass:"v1b9933af",attrs:{playing:e.colorPlaying}},[a("p",[e._v("背景色渐变")])])],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("贝塞尔曲线动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleCubicPlaying}},[e.cubicPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])])]),e._v(" "),a("div",[a("cubic-bezier",{staticClass:"v1b9933af",attrs:{playing:e.cubicPlaying}},[a("p",[e._v("cubic-bezier(.45,2.84,.38,.5)")])])],1)])])};ge._withStripped=!0;var _e=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("animation",{ref:"animationLoop",staticClass:"v63fc9d7f loop-green",style:{backgroundColor:"grey"},attrs:{playing:e.playing,actions:e.loopActions},on:{actionsDidUpdate:function(t){return e.$emit("actionsDidUpdate")}}},[a("div",{staticClass:"v63fc9d7f loop-white"},[e._t("default")],2)])],1)};_e._withStripped=!0;const Ce={transform:{translateX:{startValue:0,toValue:200,duration:2e3,repeatCount:-1}}},xe={transform:{translateY:{startValue:0,toValue:50,duration:2e3,repeatCount:-1}}};var Se={props:{playing:Boolean,direction:{validator:e=>["horizon","vertical"].indexOf(e)>-1},onRef:Function},data(){let e;switch(this.$props.direction){case"horizon":e=Ce;break;case"vertical":e=xe;break;default:throw new Error("direction must be defined in props")}return{loopActions:e}},watch:{direction(e){switch(e){case"horizon":this.loopActions=Ce;break;case"vertical":this.loopActions=xe}}},mounted(){this.$props.onRef&&this.$props.onRef(this.$refs.animationLoop)}},we=(a("./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&"),Object(n.a)(Se,_e,[],!1,null,"63fc9d7f",null));we.options.__file="src/components/native-demos/animations/loop.vue";var ke=we.exports,Ae=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{ref:"animationView",staticClass:"v44bf239d loop-green",attrs:{playing:this.playing,actions:this.loopActions}},[t("div",{staticClass:"v44bf239d loop-white"},[this._t("default")],2)])],1)};Ae._withStripped=!0;const Pe={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 Ee={props:{playing:Boolean,onRef:Function},data:()=>({loopActions:Pe}),mounted(){this.$props.onRef&&this.$props.onRef(this.$refs.animationView)}},je=(a("./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&"),Object(n.a)(Ee,Ae,[],!1,null,"44bf239d",null));je.options.__file="src/components/native-demos/animations/cubic-bezier.vue";var Te=je.exports,Ve=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{staticClass:"vca89125a vote-face",attrs:{actions:this.animations.face,playing:""}}),this._v(" "),t("animation",{staticClass:"vca89125a vote-up-eye",attrs:{tag:"img",playing:"",props:{src:this.imgs.upVoteEye},actions:this.animations.upVoteEye}}),this._v(" "),t("animation",{staticClass:"vca89125a vote-up-mouth",attrs:{tag:"img",playing:"",props:{src:this.imgs.upVoteMouth},actions:this.animations.upVoteMouth}})],1)};Ve._withStripped=!0;var Ie={data:()=>({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}]}}}})},Le=(a("./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&"),Object(n.a)(Ie,Ve,[],!1,null,"ca89125a",null));Le.options.__file="src/components/native-demos/animations/vote-up.vue";var Ye=Le.exports,Oe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("animation",{ref:"animationRef",staticClass:"v3adfe95a vote-face",attrs:{actions:e.animations.face,playing:""},on:{start:e.animationStart,end:e.animationEnd,repeat:e.animationRepeat,cancel:e.animationCancel}}),e._v(" "),a("animation",{staticClass:"v3adfe95a vote-down-face",attrs:{tag:"img",playing:"",props:{src:e.imgs.downVoteFace},actions:e.animations.downVoteFace}})],1)};Oe._withStripped=!0;const He={transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},De={transform:{translateX:[{startValue:10,toValue:1,duration:250,timingFunction:"linear"},{startValue:1,toValue:10,duration:250,delay:750,timingFunction:"linear",repeatCount:-1}]}};var Re={props:["isChanged"],data:()=>({imgs:{downVoteFace:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAAAXVBMVEUAAACmaCCoaSKlZyCmaCCoaiG0byOlZyCmaCGnaSKmaCCmZyClZyCmaCCmaSCybyymZyClaCGlaCGnaCCnaSGnaiOlZyKocCXMmTOmaCKnaCKmaSClZyGoZyClZyDPYmTmAAAAHnRSTlMA6S/QtjYO+FdJ4tyZbWYH7cewgTw5JRQFkHFfXk8vbZ09AAAAiUlEQVQY07WQRxLDMAhFPyq21dxLKvc/ZoSiySTZ+y3g8YcFA5wFcOkHYEi5QDkknparH5EZKS6GExQLs0RzUQUY6VYiK2ayNIapQ6EjNk2xd616Bi5qIh2fn8BqroS1XtPmgYKXxo+y07LuDrH95pm3LBM5FMpHWg2osOOLjRR6hR/WOw780bwASN0IT3NosMcAAAAASUVORK5CYII="},animations:{face:He,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"}]}}}}),watch:{isChanged(e,t){!t&&e?(console.log("changed to face2"),this.animations.face=De):t&&!e&&(console.log("changed to face1"),this.animations.face=He),setTimeout(()=>{this.animationRef.start()},10)}},mounted(){this.animationRef=this.$refs.animationRef},methods:{animationStart(){console.log("animation-start callback")},animationEnd(){console.log("animation-end callback")},animationRepeat(){console.log("animation-repeat callback")},animationCancel(){console.log("animation-cancel callback")}}},Be=(a("./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&"),Object(n.a)(Re,Oe,[],!1,null,"3adfe95a",null));Be.options.__file="src/components/native-demos/animations/vote-down.vue";var Ue=Be.exports,Ne=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{ref:"animationView",staticClass:"vc3eb3b96 color-green",attrs:{playing:this.playing,actions:this.colorActions}},[t("div",{staticClass:"vc3eb3b96 color-white"},[this._t("default")],2)])],1)};Ne._withStripped=!0;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 Fe={props:{playing:Boolean,onRef:Function},data:()=>({colorActions:Me})},ze=(a("./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&"),Object(n.a)(Fe,Ne,[],!1,null,"c3eb3b96",null));ze.options.__file="src/components/native-demos/animations/color-change.vue";var $e=ze.exports,We={components:{Loop:ke,colorComponent:$e,CubicBezier:Te},data:()=>({loopPlaying:!0,colorPlaying:!0,cubicPlaying:!0,direction:"horizon",voteComponent:Ye,colorComponent:$e,isChanged:!0}),methods:{onRef(e){this.animationRef=e},voteUp(){this.voteComponent=Ye},voteDown(){this.voteComponent=Ue,this.isChanged=!this.isChanged},toggleLoopPlaying(){this.loopPlaying=!this.loopPlaying},toggleColorPlaying(){this.colorPlaying=!this.colorPlaying},toggleCubicPlaying(){this.cubicPlaying=!this.cubicPlaying},toggleDirection(){this.direction="horizon"===this.direction?"vertical":"horizon"},actionsDidUpdate(){console.log("actions updated & startAnimation"),this.animationRef.start()}}},Ke=(a("./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&"),Object(n.a)(We,ge,[],!1,null,"1b9933af",null));Ke.options.__file="src/components/native-demos/demo-animation.vue";var Ge=Ke.exports,qe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vbdcf35a6",attrs:{id:"dialog-demo"}},[a("label",[e._v("显示或者隐藏对话框:")]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("slide")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--slide")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("fade")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--fade")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("slide_fade")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--slide_fade")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.autoHideStatusBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("hideStatusBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("隐藏状态栏")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.immersionStatusBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("immerseStatusBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("沉浸式状态栏")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.autoHideNavigationBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("hideNavigationBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("隐藏导航栏")])]),e._v(" "),e.dialogIsVisible?a("dialog",{staticClass:"vbdcf35a6",attrs:{animationType:e.dialogAnimationType,transparent:!0,supportedOrientations:e.supportedOrientations,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar},on:{show:e.onShow,requestClose:e.onClose}},[a("div",{staticClass:"vbdcf35a6 dialog-demo-wrapper"},[a("div",{staticClass:"vbdcf35a6 fullscreen center row",on:{click:e.clickView}},[a("div",{staticClass:"vbdcf35a6 dialog-demo-close-btn center column",on:{click:e.stopPropagation}},[a("p",{staticClass:"vbdcf35a6 dialog-demo-close-btn-text"},[e._v("\n 点击空白区域关闭\n ")]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-2",on:{click:e.clickOpenSecond}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("点击打开二级全屏弹窗")])])]),e._v(" "),e.dialog2IsVisible?a("dialog",{staticClass:"vbdcf35a6",attrs:{animationType:e.dialogAnimationType,transparent:!0,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar},on:{requestClose:e.onClose}},[a("div",{staticClass:"vbdcf35a6 dialog-2-demo-wrapper center column row",on:{click:e.clickOpenSecond}},[a("p",{staticClass:"vbdcf35a6 dialog-demo-close-btn-text",staticStyle:{color:"white"}},[e._v("\n Hello 我是二级全屏弹窗,点击任意位置关闭。\n ")])])]):e._e()])])]):e._e()])};qe._withStripped=!0;var Qe={beforeRouteLeave(e,t,a){this.dialogIsVisible||a()},data:()=>({supportedOrientations:["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"],dialogIsVisible:!1,dialog2IsVisible:!1,dialogAnimationType:"",immersionStatusBar:!1,autoHideStatusBar:!1,autoHideNavigationBar:!1}),methods:{clickView(e=""){this.dialogIsVisible=!this.dialogIsVisible,this.dialogIsVisible&&(this.dialogAnimationType=e)},clickOpenSecond(e){e.stopPropagation(),this.dialog2IsVisible=!this.dialog2IsVisible},clickDialogConfig(e){switch(e){case"hideStatusBar":this.autoHideStatusBar=!this.autoHideStatusBar;break;case"immerseStatusBar":this.immersionStatusBar=!this.immersionStatusBar;break;case"hideNavigationBar":this.autoHideNavigationBar=!this.autoHideNavigationBar}},onShow(){console.log("Dialog is opening")},onClose(e){e.stopPropagation(),this.dialog2IsVisible?this.dialog2IsVisible=!1:this.dialogIsVisible=!1,console.log("Dialog is closing")},stopPropagation(e){e.stopPropagation()}}},Xe=(a("./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&"),Object(n.a)(Qe,qe,[],!1,null,"bdcf35a6",null));Xe.options.__file="src/components/native-demos/demo-dialog.vue";var Je=Xe.exports,Ze=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"demo-swiper"}},[a("div",{staticClass:"toolbar"},[a("button",{staticClass:"toolbar-btn",on:{click:e.scrollToPrevPage}},[a("span",[e._v("翻到上一页")])]),e._v(" "),a("button",{staticClass:"toolbar-btn",on:{click:e.scrollToNextPage}},[a("span",[e._v("翻到下一页")])]),e._v(" "),a("p",{staticClass:"toolbar-text"},[e._v("\n 当前第 "+e._s(e.currentSlideNum+1)+" 页\n ")])]),e._v(" "),a("swiper",{ref:"swiper",attrs:{id:"swiper","need-animation":"",current:e.currentSlide},on:{dragging:e.onDragging,dropped:e.onDropped,stateChanged:e.onStateChanged}},e._l(e.dataSource,(function(t){return a("swiper-slide",{key:t,style:{backgroundColor:4278222848+100*t}},[a("p",[e._v("I'm Slide "+e._s(t+1))])])})),1),e._v(" "),a("div",{attrs:{id:"swiper-dots"}},e._l(e.dataSource,(function(t){return a("div",{key:t,staticClass:"dot",class:{hightlight:e.currentSlideNum===t}})})),0)],1)};Ze._withStripped=!0;var et={data:()=>({dataSource:new Array(7).fill(0).map((e,t)=>t),currentSlide:2,currentSlideNum:2,state:"idle"}),mounted(){this.$maxSlideIndex=this.$refs.swiper.$el.childNodes.length-1},methods:{scrollToNextPage(){this.currentSlide 如果不需要显示加载情况,可以直接使用 ul 的 onEndReached 实现一直加载\n *\n * 事件:\n * idle: 滑动距离在 pull-footer 区域内触发一次,参数 contentOffset,滑动距离\n * pulling: 滑动距离超出 pull-footer 后触发一次,参数 contentOffset,滑动距离\n * released: 滑动超出距离,松手后触发一次\n */\n "),a("pull-footer",{ref:"pullFooter",staticClass:"v44ac5390 pull-footer",on:{idle:e.onFooterIdle,pulling:e.onFooterPulling,released:e.onEndReached}},[a("p",{staticClass:"v44ac5390 pull-footer-text"},[e._v("\n "+e._s(e.footerRefreshText)+"\n ")])])],2)])};ot._withStripped=!0;const rt="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",st={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[rt,rt,rt],subInfo:["三图评论","11评"]}},it={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},nt={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}};var lt=[nt,st,it,st,it,st,it,nt,st],ct=(r.default.component("StyleOne",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n

\n {{ itemBean.title }}\n

\n
\n \n
\n
\n

\n {{ itemBean.subInfo.join(\'\') }}\n

\n
\n
\n '}),r.default.component("StyleTwo",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n
\n

\n {{ itemBean.title }}\n

\n
\n

\n {{ itemBean.subInfo.join(\'\') }}\n

\n
\n
\n
\n \n
\n
\n '}),r.default.component("StyleFive",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n

\n {{ itemBean.title }}\n

\n
\n \n
\n
\n

\n {{ itemBean.subInfo.join(\' \') }}\n

\n
\n
\n '}),{data:()=>({headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",dataSource:[],scrollPos:{top:0,left:0},Vue:r.default}),mounted(){this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.dataSource=[...lt],r.default.Native?(this.$windowHeight=r.default.Native.Dimensions.window.height,console.log("Vue.Native.Dimensions.window",r.default.Native.Dimensions)):this.$windowHeight=window.innerHeight,this.$refs.pullHeader.collapsePullHeader({time:2e3})},methods:{mockFetchData:()=>new Promise(e=>{setTimeout(()=>e(lt),800)}),onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?this.headerRefreshText="松手,即可触发刷新":this.headerRefreshText="继续下拉,触发刷新")},onFooterPulling(e){console.log("onFooterPulling",e)},onHeaderIdle(){},onFooterIdle(){},onScroll(e){e.stopPropagation(),this.scrollPos={top:e.offsetY,left:e.offsetX}},async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.headerRefreshText="刷新数据中,请稍等";const e=await this.mockFetchData();this.dataSource=e.reverse(),this.fetchingDataFlag=!1,this.headerRefreshText="2秒后收起",this.$refs.pullHeader.collapsePullHeader({time:2e3})},async onEndReached(){const{dataSource:e}=this;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.footerRefreshText="加载更多...";const t=await this.mockFetchData();0===t.length&&(this.footerRefreshText="没有更多数据"),this.dataSource=[...e,...t],this.loadMoreDataFlag=!1,this.$refs.pullFooter.collapsePullFooter()},scrollToNextPage(){if(!r.default.Native)return void alert("This method is only supported in Native environment.");const{list:e}=this.$refs,{scrollPos:t}=this,a=t.top+this.$windowHeight-200;e.scrollTo({left:t.left,top:a})},scrollToBottom(){if(!r.default.Native)return void alert("This method is only supported in Native environment.");const{list:e}=this.$refs;e.scrollToIndex(0,e.childNodes.length-1)}}}),dt=(a("./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&"),Object(n.a)(ct,ot,[],!1,null,"44ac5390",null));dt.options.__file="src/components/native-demos/demo-pull-header-footer.vue";var pt=dt.exports,ut=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v782cda3d",attrs:{id:"demo-waterfall"}},[a("waterfall",{ref:"gridView",staticClass:"v782cda3d",style:{flex:1},attrs:{"content-inset":e.contentInset,"column-spacing":e.columnSpacing,"contain-banner-view":e.isIos,"contain-pull-footer":!0,"inter-item-spacing":e.interItemSpacing,"number-of-columns":e.numberOfColumns,"preload-item-number":4},on:{endReached:e.onEndReached,scroll:e.onScroll}},[a("pull-header",{ref:"pullHeader",staticClass:"v782cda3d ul-refresh",on:{idle:e.onHeaderIdle,pulling:e.onHeaderPulling,released:e.onHeaderReleased}},[a("p",{staticClass:"v782cda3d ul-refresh-text"},[e._v("\n "+e._s(e.headerRefreshText)+"\n ")])]),e._v(" "),e.isIos?a("div",{staticClass:"v782cda3d banner-view"},[a("span",[e._v("BannerView")])]):e._e(),e._v(" "),a("waterfall-item",{staticClass:"v782cda3d banner-view",attrs:{fullSpan:!0,",":""}},[a("span",[e._v("BannerView")])]),e._v(" "),e._l(e.dataSource,(function(t,o){return a("waterfall-item",{key:o,staticClass:"v782cda3d",style:{width:e.itemWidth},attrs:{type:t.style},on:{click:function(t){return t.stopPropagation(),function(){return e.onItemClick(o)}.apply(null,arguments)}}},[1===t.style?a("style-one",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e(),e._v(" "),2===t.style?a("style-two",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e(),e._v(" "),5===t.style?a("style-five",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e()],1)})),e._v(" "),a("pull-footer",{ref:"pullFooter",staticClass:"v782cda3d pull-footer",on:{idle:e.onFooterIdle,pulling:e.onFooterPulling,released:e.onEndReached}},[a("p",{staticClass:"v782cda3d pull-footer-text"},[e._v("\n "+e._s(e.footerRefreshText)+"\n ")])])],2)],1)};ut._withStripped=!0;var vt={data:()=>({dataSource:[...lt,...lt,...lt,...lt],isRefreshing:!1,Vue:r.default,STYLE_LOADING:100,headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",isLoading:!1,isIos:"ios"===r.default.Native.Platform}),mounted(){this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.dataSource=[...lt],r.default.Native?(this.$windowHeight=r.default.Native.Dimensions.window.height,console.log("Vue.Native.Dimensions.window",r.default.Native.Dimensions)):this.$windowHeight=window.innerHeight,this.$refs.pullHeader.collapsePullHeader({time:2e3})},computed:{refreshText(){return this.isRefreshing?"正在刷新":"下拉刷新"},itemWidth(){return(r.default.Native.Dimensions.screen.width-this.contentInset.left-this.contentInset.right-(this.numberOfColumns-1)*this.columnSpacing)/this.numberOfColumns},listMargin:()=>5,columnSpacing:()=>6,interItemSpacing:()=>6,numberOfColumns:()=>2,contentInset:()=>({top:0,left:5,bottom:0,right:5})},methods:{mockFetchData(){return new Promise(e=>{setTimeout(()=>(this.fetchTimes+=1,this.fetchTimes>=50?e([]):e([...lt,...lt])),600)})},onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?this.headerRefreshText="松手,即可触发刷新":this.headerRefreshText="继续下拉,触发刷新")},onFooterPulling(e){console.log("onFooterPulling",e)},onHeaderIdle(){},onFooterIdle(){},async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.headerRefreshText="刷新数据中,请稍等";await this.mockFetchData();this.fetchingDataFlag=!1,this.headerRefreshText="2秒后收起",this.$refs.pullHeader.collapsePullHeader({time:2e3})},async onRefresh(){this.isRefreshing=!0;const e=await this.mockFetchData();this.isRefreshing=!1,this.dataSource=e.reverse(),this.$refs.header.refreshCompleted()},onScroll(e){console.log("waterfall onScroll",e)},async onEndReached(){const{dataSource:e}=this;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.footerRefreshText="加载更多...";const t=await this.mockFetchData();0===t.length&&(this.footerRefreshText="没有更多数据"),this.dataSource=[...e,...t],this.loadMoreDataFlag=!1,this.$refs.pullFooter.collapsePullFooter()},onItemClick(e){this.$refs.gridView.scrollToIndex({index:e,animation:!0})}}},yt=(a("./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&"),Object(n.a)(vt,ut,[],!1,null,"782cda3d",null));yt.options.__file="src/components/native-demos/demo-waterfall.vue";var ht=yt.exports,bt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v3bbacb8e",attrs:{id:"demo-wrap"},on:{layout:e.onLayout}},[a("div",{staticClass:"v3bbacb8e",attrs:{id:"demo-content"}},[a("div",{staticClass:"v3bbacb8e",attrs:{id:"banner"}}),e._v(" "),a("div",{staticClass:"v3bbacb8e",attrs:{id:"tabs"}},e._l(2,(function(t){return a("p",{key:"tab"+t,staticClass:"v3bbacb8e",class:e.currentSlide===t-1?"selected":"",on:{click:function(a){return e.onTabClick(t)}}},[e._v("\n tab "+e._s(t)+" "+e._s(1===t?"(parent first)":"(self first)")+"\n ")])})),0),e._v(" "),a("swiper",{ref:"swiper",staticClass:"v3bbacb8e",style:{height:e.layoutHeight-80},attrs:{id:"swiper","need-animation":"",current:e.currentSlide},on:{dropped:e.onDropped}},[a("swiper-slide",{key:"slide1",staticClass:"v3bbacb8e"},[a("ul",{staticClass:"v3bbacb8e",attrs:{nestedScrollTopPriority:"parent"}},e._l(30,(function(t){return a("li",{key:"item"+t,staticClass:"v3bbacb8e",class:t%2?"item-even":"item-odd"},[a("p",[e._v("Item "+e._s(t))])])})),0)]),e._v(" "),a("swiper-slide",{key:"slide2",staticClass:"v3bbacb8e"},[a("ul",{staticClass:"v3bbacb8e",attrs:{nestedScrollTopPriority:"self"}},e._l(30,(function(t){return a("li",{key:"item"+t,staticClass:"v3bbacb8e",class:t%2?"item-even":"item-odd"},[a("p",[e._v("Item "+e._s(t))])])})),0)])],1)],1)])};bt._withStripped=!0;var mt={data:()=>({layoutHeight:0,currentSlide:0}),methods:{onLayout(e){this.layoutHeight=e.height},onTabClick(e){console.log("onclick",e),this.currentSlide=e-1},onDropped(e){this.currentSlide=e.currentSlide}}},ft=(a("./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&"),Object(n.a)(mt,bt,[],!1,null,"3bbacb8e",null));ft.options.__file="src/components/native-demos/demo-nested-scroll.vue";var gt=ft.exports;const _t={};r.default.Native&&Object.assign(_t,{demoVueNative:{name:"Vue.Native 能力",component:fe},demoAnimation:{name:"animation 组件",component:Ge},demoModal:{name:"dialog 组件",component:Je},demoSwiper:{name:"swiper 组件",component:at},demoPullHeaderFooter:{name:"pull-header/footer 组件",component:pt},demoWaterfall:{name:"waterfall 组件",component:ht},demoNestedScroll:{name:"nested scroll 示例",component:gt},demoSetNativeProps:{name:"setNativeProps",component:ve}});var Ct=_t,xt={name:"App",data:()=>({featureList:Object.keys(ce).map(e=>({id:e,name:ce[e].name})),nativeFeatureList:Object.keys(Ct).map(e=>({id:e,name:Ct[e].name})),Vue:r.default}),beforeAppExit(){}},St=(a("./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&"),Object(n.a)(xt,o,[function(){var e=this.$createElement,t=this._self._c||e;return t("li",[t("p",{staticClass:"v4fb46863 feature-title"},[this._v("\n 浏览器组件 Demos\n ")])])}],!1,null,"4fb46863",null));St.options.__file="src/pages/menu.vue";var wt=St.exports,kt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"inputDemo",staticClass:"v66065e90 demo-remote-input",on:{click:e.blurInput}},[a("div",{staticClass:"v66065e90 tips-wrap"},e._l(e.tips,(function(t,o){return a("p",{key:o,staticClass:"v66065e90 tips-item",style:e.styles.tipText},[e._v("\n "+e._s(o+1)+". "+e._s(t)+"\n ")])})),0),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.bundleUrl,expression:"bundleUrl"}],ref:"input",staticClass:"v66065e90 remote-input",attrs:{"caret-color":"yellow",placeholder:"please input bundleUrl",multiple:!0,numberOfLines:"4"},domProps:{value:e.bundleUrl},on:{click:e.stopPropagation,input:function(t){t.target.composing||(e.bundleUrl=t.target.value)}}}),e._v(" "),a("div",{staticClass:"v66065e90 buttonContainer",style:e.styles.buttonContainer},[a("button",{staticClass:"v66065e90 input-button",style:e.styles.button,on:{click:e.openBundle}},[a("span",{staticClass:"v66065e90",style:e.styles.buttonText},[e._v("开始")])])])])};kt._withStripped=!0;var At={data:()=>({bundleUrl:"http://127.0.0.1:38989/index.bundle?debugUrl=ws%3A%2F%2F127.0.0.1%3A38989%2Fdebugger-proxy",tips:["安装远程调试依赖: npm i -D @hippy/debug-server-next@latest","修改 webpack 配置,添加远程调试地址","运行 npm run hippy:dev 开始编译,编译结束后打印出 bundleUrl 及调试首页地址","粘贴 bundleUrl 并点击开始按钮","访问调试首页开始远程调试,远程调试支持热更新(HMR)"],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"}}}),methods:{blurInput(e){e.stopPropagation(),this.$refs.input.blur()},openBundle(){this.bundleUrl&&r.default.Native.callNative("TestModule","remoteDebug",this.$root.$options.rootViewId,this.bundleUrl)},stopPropagation(e){e.stopPropagation()},clearTextContent(){this.bundleUrl=""},getChildNodes:e=>r.default.Native?e:Array.from(e)}},Pt=(a("./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&"),Object(n.a)(At,kt,[],!1,null,"66065e90",null));Pt.options.__file="src/pages/remote-debug.vue";var Et=Pt.exports;t.a={disableAutoBack:!1,routes:[{path:"/",component:wt},{path:"/remote-debug",component:Et,name:"调试"},...Object.keys(ce).map(e=>({path:"/demo/"+e,name:ce[e].name,component:ce[e].component})),...Object.keys(Ct).map(e=>({path:"/demo/"+e,name:Ct[e].name,component:Ct[e].component}))]}},"./src/util.js":function(e,t,a){"use strict";let o;function r(e){o=e}function s(){return o}a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return s}))},0:function(e,t,a){e.exports=a("./src/main-native.js")},"dll-reference hippyVueBase":function(e,t){e.exports=hippyVueBase}}); \ No newline at end of file +Object.freeze({}),r("slot,component",!0),r("key,ref,slot,slot-scope,is"),e.env.PORT;var d={exports:{}},p={exports:{}},u={exports:{}};!function(e){function t(a){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(a)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(u);var v={exports:{}};!function(e){var t=u.exports.default;e.exports=function(e,a){if("object"!=t(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,a||"default");if("object"!=t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(v),function(e){var t=u.exports.default,a=v.exports;e.exports=function(e){var o=a(e,"string");return"symbol"==t(o)?o:o+""},e.exports.__esModule=!0,e.exports.default=e.exports}(p),function(e){var t=p.exports;e.exports=function(e,a,o){return(a=t(a))in e?Object.defineProperty(e,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[a]=o,e},e.exports.__esModule=!0,e.exports.default=e.exports}(d);var y=c(d.exports);function h(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function b(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}var m={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render(e,{props:t,children:a,parent:o,data:r}){r.routerView=!0;const s=o.$createElement,{name:i}=t,n=o.$route,l=o._routerViewCache||(o._routerViewCache={});let c=0,d=!1;for(;o&&o._routerRoot!==o;)o.$vnode&&o.$vnode.data.routerView&&(c+=1),o._inactive&&(d=!0),o=o.$parent;if(r.routerViewDepth=c,d)return s(l[i],r,a);const p=n.matched[c];if(!p)return l[i]=null,s();const u=p.components[i];l[i]=u,r.registerRouteInstance=(e,t)=>{const a=p.instances[i];(t&&a!==e||!t&&a===e)&&(p.instances[i]=t)},r.hook||(r.hook={}),r.hook.prepatch=(e,t)=>{p.instances[i]=t.componentInstance};let v=function(e,t){switch(typeof t){case"undefined":return null;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:return null}}(n,p.props&&p.props[i]);if(r.props=v,v){v=function(e){for(var t=1;t{u.props&&t in u.props||(e[t]=v[t],delete v[t])})}return s(u,r,a)}};const f=/[!'()*]/g,g=e=>"%"+e.charCodeAt(0).toString(16),_=/%2C/g,C=e=>encodeURIComponent(e).replace(f,g).replace(_,","),x=decodeURIComponent;function S(e){const t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(e=>{const a=e.replace(/\+/g," ").split("="),o=x(a.shift()),r=a.length>0?x(a.join("=")):null;void 0===t[o]?t[o]=r:Array.isArray(t[o])?t[o].push(r):t[o]=[t[o],r]}),t):t}function w(e){const t=e?Object.keys(e).map(t=>{const a=e[t];if(void 0===a)return"";if(null===a)return C(t);if(Array.isArray(a)){const e=[];return a.forEach(a=>{void 0!==a&&(null===a?e.push(C(t)):e.push(`${C(t)}=${C(a)}`))}),e.join("&")}return`${C(t)}=${C(a)}`}).filter(e=>e.length>0).join("&"):null;return t?"?"+t:""}const k=/\/?$/;function A(e){if(Array.isArray(e))return e.map(A);if(e&&"object"==typeof e){const t={};return Object.keys(e).forEach(a=>{t[a]=A(e[a])}),t}return e}function P(e){const t=[];for(;e;)t.unshift(e),e=e.parent;return t}function E({path:e,query:t={},hash:a=""},o){return(e||"/")+(o||w)(t)+a}function j(e={},t={}){if(!e||!t)return e===t;const a=Object.keys(e),o=Object.keys(t);return a.length===o.length&&a.every(a=>{const o=e[a],r=t[a];return"object"==typeof o&&"object"==typeof r?j(o,r):String(o)===String(r)})}function T(e,t,a,o){let r;o&&({stringifyQuery:r}=o.options);let s=t.query||{};try{s=A(s)}catch(e){}const i={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:s,params:t.params||{},fullPath:E(t,r),matched:e?P(e):[]};return a&&(i.redirectedFrom=E(a,r)),Object.freeze(i)}const V=T(null,{path:"/"});function L(e,t){return t===V?e===t:!!t&&(e.path&&t.path?e.path.replace(k,"")===t.path.replace(k,"")&&e.hash===t.hash&&j(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&j(e.query,t.query)&&j(e.params,t.params)))}function I(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}function Y(e){for(var t=1;t{O(e)&&(this.replace?t.replace(o):t.push(o))},h={click:O};Array.isArray(this.event)?this.event.forEach(e=>{h[e]=y}):h[this.event]=y;const b={class:i};if("a"===this.tag)b.on=h,b.attrs={href:s};else{const e=function e(t){return t?t.find(t=>{if("a"===t.tag)return!0;if(t.children){return!!e(t.children)}return!1}):null}(this.$slots.default);if(e){e.isStatic=!1;const t=Y({},e.data);e.data=t,t.on=h;const a=Y({},e.data.attrs);e.data.attrs=a,a.href=s}else b.on=h}return e(this.tag,b,this.$slots.default)}};var D={exports:{}},R=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)};D.exports=G,D.exports.parse=U,D.exports.compile=function(e,t){return M(U(e,t),t)},D.exports.tokensToFunction=M,D.exports.tokensToRegExp=K;var B=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function U(e,t){for(var a,o=[],r=0,s=0,i="",n=t&&t.delimiter||"/";null!=(a=B.exec(e));){var l=a[0],c=a[1],d=a.index;if(i+=e.slice(s,d),s=d+l.length,c)i+=c[1];else{var p=e[s],u=a[2],v=a[3],y=a[4],h=a[5],b=a[6],m=a[7];i&&(o.push(i),i="");var f=null!=u&&null!=p&&p!==u,g="+"===b||"*"===b,_="?"===b||"*"===b,C=a[2]||n,x=y||h;o.push({name:v||r++,prefix:u||"",delimiter:C,optional:_,repeat:g,partial:f,asterisk:!!m,pattern:x?z(x):m?".*":"[^"+F(C)+"]+?"})}}return s=0&&(t=e.slice(o),e=e.slice(0,o));const r=e.indexOf("?");return r>=0&&(a=e.slice(r+1),e=e.slice(0,r)),{path:e,query:a,hash:t}}(r.path||""),i=t&&t.path||"/",n=s.path?J(s.path,i,a||r.append):i,l=function(e,t={},a){const o=a||S;let r;try{r=o(e||"")}catch(e){0,r={}}return Object.keys(t).forEach(e=>{r[e]=t[e]}),r}(s.query,r.query,o&&o.options.parseQuery);let c=r.hash||s.hash;return c&&"#"!==c.charAt(0)&&(c="#"+c),{_normalized:!0,path:n,query:l,hash:c}}function oe(e,t){return q(e,[],t)}function re(e,t,a,o,r,s){const{path:i,name:n}=o;const l=o.pathToRegexpOptions||{},c=function(e,t,a){return a||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:Z(`${t.path}/${e}`)}(i,r,l.strict);"boolean"==typeof o.caseSensitive&&(l.sensitive=o.caseSensitive);const d={path:c,regex:oe(c,l),components:o.components||{default:o.component},instances:{},name:n,parent:r,matchAs:s,redirect:o.redirect,beforeEnter:o.beforeEnter,meta:o.meta||{},props:null==o.props?{}:o.components?o.props:{default:o.props}};if(o.children&&o.children.forEach(o=>{const r=s?Z(`${s}/${o.path}`):void 0;re(e,t,a,o,d,r)}),void 0!==o.alias){(Array.isArray(o.alias)?o.alias:[o.alias]).forEach(s=>{const i={path:s,children:o.children};re(e,t,a,i,r,d.path||"/")})}t[d.path]||(e.push(d.path),t[d.path]=d),n&&(a[n]||(a[n]=d))}function se(e,t,a,o){const r=t||[],s=a||Object.create(null),i=o||Object.create(null);e.forEach(e=>{re(r,s,i,e)});for(let e=0,t=r.length;e!e.optional).map(e=>e.name);if("object"!=typeof l.params&&(l.params={}),s&&"object"==typeof s.params&&Object.keys(s.params).forEach(e=>{!(e in l.params)&&t.indexOf(e)>-1&&(l.params[e]=s.params[e])}),e)return l.path=X(e.path,l.params),n(e,l,i)}else if(l.path){l.params={};for(let e=0;eo[e])}}}function ne(e,t,a){const o=t.match(e);if(!o)return!1;if(!a)return!0;for(let t=1,r=o.length;t{r>=e.length?a():e[r]?t(e[r],()=>{o(r+1)}):o(r+1)};o(0)}const ce="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function de(e){return Array.prototype.concat.apply([],e)}function pe(e,t){return de(e.map(e=>Object.keys(e.components).map(a=>t(e.components[a],e.instances[a],e,a))))}function ue(e){return(t,a,o)=>{let r=!1,i=0,l=null;pe(e,(e,t,a,c)=>{if("function"==typeof e&&void 0===e.cid){r=!0,i+=1;const t=s(t=>{const r=n();var s;((s=t).__esModule||ce&&"Module"===s[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:r.extend(t),a.components[c]=t,i-=1,i<=0&&o()}),d=s(e=>{const t=`Failed to resolve async component ${c}: ${e}`;l||(l=h(e)?e:new Error(t),o(l))});let p;try{p=e(t,d)}catch(e){d(e)}if(p)if("function"==typeof p.then)p.then(t,d);else{const e=p.component;e&&"function"==typeof e.then&&e.then(t,d)}}}),r||o()}}function ve(e,t,a,o){const r=pe(e,(e,o,r,s)=>{const i=function(e,t){if("function"!=typeof e){e=n().extend(e)}return e.options[t]}(e,t);return i?Array.isArray(i)?i.map(e=>a(e,o,r,s)):a(i,o,r,s):null});return de(o?r.reverse():r)}function ye(e,t){return t?function(...a){return e.apply(t,a)}:null}function he(e,t,a,o,r){return function(s,i,n){return e(s,i,e=>{n(e),"function"==typeof e&&o.push(()=>{!function e(t,a,o,r){a[o]&&!a[o]._isBeingDestroyed?t(a[o]):r()&&setTimeout(()=>{e(t,a,o,r)},16)}(e,t.instances,a,r)})})}}class be{constructor(e,t="/"){this.router=e,this.base=function(e){return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}(t),this.current=V,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[];const a=this.router.match("/",this.current);if(!a)throw new Error("Root router path with / is required");this.stack=[a],this.index=0}push(e,t,a){this.transitionTo(e,e=>{this.stack=this.stack.slice(0,this.index+1).concat(e),this.index+=1,l(t)&&t(e)},a)}replace(e,t,a){this.transitionTo(e,e=>{this.stack=this.stack.slice(0,this.index).concat(e),l(t)&&t(e)},a)}go(e){const t=this.index+e;if(t<0||t>=this.stack.length)return;const a=this.stack[t];this.confirmTransition(a,()=>{this.index=t,this.updateRoute(a),this.stack=this.stack.slice(0,t+1)})}getCurrentLocation(){const e=this.stack[this.stack.length-1];return e?e.fullPath:"/"}ensureURL(){}listen(e){this.cb=e}onReady(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))}onError(e){this.errorCbs.push(e)}transitionTo(e,t,a){const o=this.router.match(e,this.current);this.confirmTransition(o,()=>{this.updateRoute(o),l(t)&&t(o),this.ensureURL(),this.ready||(this.ready=!0,this.readyCbs.forEach(e=>{e(o)}))},e=>{a&&a(e),e&&!this.ready&&(this.ready=!0,this.readyErrorCbs.forEach(t=>{t(e)}))})}confirmTransition(e,t,a){const{current:o}=this,r=e=>{h(e)&&this.errorCbs.length&&this.errorCbs.forEach(t=>{t(e)}),l(a)&&a(e)};if(L(e,o)&&e.matched.length===o.matched.length)return this.ensureURL(),r();const{updated:s,deactivated:i,activated:n}=function(e,t){let a;const o=Math.max(e.length,t.length);for(a=0;ae.beforeEnter),ue(n));this.pending=e;const d=(t,a)=>{if(this.pending!==e)return r();try{return t(e,o,e=>{!1===e||h(e)?(this.ensureURL(!0),r(e)):"string"==typeof e||"object"==typeof e&&("string"==typeof e.path||"string"==typeof e.name)?(r(),"object"==typeof e&&e.replace?this.replace(e):this.push(e)):a(e)})}catch(e){return r(e)}};return le(c,d,()=>{const a=[];le(function(e,t,a){return ve(e,"beforeRouteEnter",(e,o,r,s)=>he(e,r,s,t,a))}(n,a,()=>this.current===e).concat(this.router.resolveHooks),d,()=>this.pending!==e?r():(this.pending=null,t(e),this.router.app?this.router.app.$nextTick(()=>{a.forEach(e=>{e()})}):null))})}updateRoute(e){const t=this.current;this.current=e,l(this.cb)&&this.cb(e),this.router.afterHooks.forEach(a=>{l(a)&&a(e,t)})}hardwareBackPress(){if(this.stack.length>1)return this.go(-1);const{matched:e}=this.stack[0];if(e.length){const{components:t,instances:a}=e[0];if(t&&t.default&&l(t.default.beforeAppExit))return t.default.beforeAppExit.call(a.default,this.exitApp)}return this.exitApp()}exitApp(){n().Native.callNative("DeviceEventModule","invokeDefaultBackPressHandler")}}function me(e,t){return e.push(t),()=>{const a=e.indexOf(t);a>-1&&e.splice(a,1)}}class fe{constructor(e={}){if(this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=ie(e.routes||[],this),!o.__GLOBAL__||!o.__GLOBAL__.appRegister)throw new Error("Hippy-Vue-Router can\t work without Native environment");this.history=new be(this,e.base)}match(e,t,a){return this.matcher.match(e,t,a)}get currentRoute(){return this.history&&this.history.current}init(e,t){if(this.apps.push(e),this.app)return;this.app=e;const{history:a}=this;a instanceof be&&a.transitionTo(a.getCurrentLocation()),a.listen(e=>{this.apps.forEach(t=>{t._route=e})}),"android"===t.Native.Platform&&l(a.hardwareBackPress)&&!this.options.disableAutoBack&&(setTimeout(()=>t.Native.callNative("DeviceEventModule","setListenBackPress",!0),300),e.$on("hardwareBackPress",()=>a.hardwareBackPress()))}beforeEach(e){return me(this.beforeHooks,e)}beforeResolve(e){return me(this.resolveHooks,e)}afterEach(e){return me(this.afterHooks,e)}onReady(e,t){this.history.onReady(e,t)}onError(e){this.history.onError(e)}push(e,t,a){this.history.push(e,t,a)}replace(e,t,a){this.history.replace(e,t,a)}go(e){this.history.go(e)}back(){this.go(-1)}forward(){this.go(1)}getMatchedComponents(e){const t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?t.matched.map(e=>Object.keys(e.components).map(t=>e.components[t])):[]}resolve(e,t,a){const o=ae(e,t||this.history.current,a,this),r=this.match(o,t),s=r.redirectedFrom||r.fullPath,{base:i}=this.history;return{location:o,route:r,href:function(e,t){return e?Z(`${e}/${t}`):t}(i,s),normalizedTo:o,resolved:r}}addRoutes(e){this.matcher.addRoutes(e),this.history.current!==V&&this.history.transitionTo(this.history.getCurrentLocation())}}fe.install=function e(t){if(e.installed&&n()===t)return;e.installed=!0,function(e){i=e}(t);const a=e=>void 0!==e,o=(e,t)=>{let o=e.$options._parentVnode;a(o)&&a(o=o.data)&&a(o=o.registerRouteInstance)&&o(e,t)};t.mixin({beforeCreate(){a(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this,t),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,o(this,this)},destroyed(){o(this)}}),Object.defineProperty(t.prototype,"$router",{get(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get(){return this._routerRoot._route}}),t.component("RouterView",m),t.component("RouterLink",H);const r=t.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created},fe.version="2.6.14"}).call(this,a("./node_modules/process/browser.js"),a("./node_modules/webpack/buildin/global.js"))},"../../packages/hippy-vue/dist/index.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("../../packages/hippy-vue/dist/index.js")},"./node_modules/process/browser.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("./node_modules/process/browser.js")},"./node_modules/webpack/buildin/global.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("./node_modules/webpack/buildin/global.js")},"./src/app.vue":function(e,t,a){"use strict";var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"root"}},[a("div",{attrs:{id:"header"}},[a("div",{staticClass:"left-title"},[a("img",{directives:[{name:"show",rawName:"v-show",value:!["/","/debug","/remote-debug"].includes(e.$router.history.current.path),expression:"!['/', '/debug', '/remote-debug'].includes($router.history.current.path)"}],attrs:{id:"back-btn",src:e.imgs.backButtonImg},on:{click:e.goToHome}}),e._v(" "),["/","/debug","/remote-debug"].includes(e.$router.history.current.path)?a("label",{staticClass:"title"},[e._v("Hippy Vue")]):e._e()]),e._v(" "),a("label",{staticClass:"title"},[e._v(e._s(e.subtitle))])]),e._v(" "),a("div",{staticClass:"body-container",on:{click:function(e){return e.stopPropagation()}}},[a("keep-alive",[a("router-view",{staticClass:"feature-content"})],1)],1),e._v(" "),a("div",{staticClass:"bottom-tabs"},e._l(e.tabs,(function(t,o){return a("div",{key:"tab-"+o,class:["bottom-tab",o===e.activatedTab?"activated":""],on:{click:function(a){return e.navigateTo(a,t,o)}}},[a("span",{staticClass:"bottom-tab-text"},[e._v("\n "+e._s(t.text)+"\n ")])])})),0)])};o._withStripped=!0;var r={name:"App",data:()=>({imgs:{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"},subtitle:"",activatedTab:0,tabs:[{text:"API",path:"/"},{text:"调试",path:"/remote-debug"}]}),watch:{$route(e){void 0!==e.name?this.subtitle=e.name:this.subtitle=""}},methods:{navigateTo(e,t,a){a!==this.activatedTab&&(e.stopPropagation(),console.log(t),this.activatedTab=a,this.$router.replace({path:t.path}))},goToHome(){this.$router.back()}}},s=(a("./src/app.vue?vue&type=style&index=0&lang=css&"),a("../../packages/hippy-vue-loader/lib/runtime/componentNormalizer.js")),i=Object(s.a)(r,o,[],!1,null,null,null);i.options.__file="src/app.vue";t.a=i.exports},"./src/app.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/app.vue?vue&type=style&index=0&lang=css&")},"./src/assets/defaultSource.jpg":function(e,t,a){e.exports=a.p+"assets/defaultSource.jpg"},"./src/assets/hippyLogoWhite.png":function(e,t,a){e.exports=a.p+"assets/hippyLogoWhite.png"},"./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&")},"./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&")},"./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&")},"./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&")},"./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&")},"./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&")},"./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&")},"./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&")},"./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&")},"./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&")},"./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&")},"./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&")},"./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&")},"./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&")},"./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&")},"./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&")},"./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&")},"./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&")},"./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&")},"./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&")},"./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&")},"./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&")},"./src/components/native-demos/demo-swiper.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-swiper.vue?vue&type=style&index=0&lang=css&")},"./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&")},"./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&")},"./src/main-native.js":function(e,t,a){"use strict";a.r(t),function(e){var t=a("../../packages/hippy-vue/dist/index.js"),o=a("../../packages/hippy-vue-router/dist/index.js"),r=a("../../packages/hippy-vue-native-components/dist/index.js"),s=a("./src/app.vue"),i=a("./src/routes.js"),n=a("./src/util.js");t.default.config.productionTip=!1,t.default.config.trimWhitespace=!0,t.default.use(r.default),t.default.use(o.a);const l=new o.a(i.a);e.Hippy.on("uncaughtException",e=>{console.error("uncaughtException error",e.stack,e.message)}),e.Hippy.on("unhandledRejection",e=>{console.error("unhandledRejection reason",e)});const c=new t.default({appName:"Demo",rootView:"#root",render:e=>e(s.a),iPhone:{statusBar:{backgroundColor:4283416717}},router:l});c.$start((e,a)=>{console.log("instance",e,"initialProps",a),t.default.Native.BackAndroid.addListener(()=>(console.log("backAndroid"),!0))}),Object(n.b)(c)}.call(this,a("./node_modules/webpack/buildin/global.js"))},"./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&")},"./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&")},"./src/routes.js":function(e,t,a){"use strict";var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{staticClass:"v4fb46863 feature-list"},[a("li",[a("div",{staticClass:"v4fb46863",attrs:{id:"version-info"}},[a("p",{staticClass:"v4fb46863 feature-title"},[e._v("\n Vue: "+e._s(e.Vue.version)+"\n ")]),e._v(" "),e.Vue.Native?a("p",{staticClass:"v4fb46863 feature-title"},[e._v("\n Hippy-Vue: "+e._s("unspecified"!==e.Vue.Native.version?e.Vue.Native.version:"master")+"\n ")]):e._e()])]),e._v(" "),e._m(0),e._v(" "),e._l(e.featureList,(function(t){return a("li",{key:t.id,staticClass:"v4fb46863 feature-item"},[a("router-link",{staticClass:"v4fb46863 button",attrs:{to:{path:"/demo/"+t.id}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)})),e._v(" "),e.nativeFeatureList.length?a("li",[a("p",{staticClass:"v4fb46863 feature-title",attrs:{paintType:"fcp"}},[e._v("\n 终端组件 Demos\n ")])]):e._e(),e._v(" "),e._l(e.nativeFeatureList,(function(t){return a("li",{key:t.id,staticClass:"v4fb46863 feature-item"},[a("router-link",{staticClass:"v4fb46863 button",attrs:{to:{path:"/demo/"+t.id}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)}))],2)};o._withStripped=!0;var r=a("../../packages/hippy-vue/dist/index.js"),s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v26278b5d button-demo"},[a("label",{staticClass:"v26278b5d button-label"},[e._v("按钮和状态绑定")]),e._v(" "),a("button",{staticClass:"v26278b5d button-demo-1",class:{"is-active":e.isClicked,"is-pressing":e.isPressing},on:{touchstart:e.onTouchBtnStart,touchmove:e.onTouchBtnMove,touchend:e.onTouchBtnEnd,click:e.clickView}},[e.isClicked?a("span",{staticClass:"v26278b5d button-text"},[e._v("视图已经被点击了,再点一下恢复")]):a("span",{staticClass:"v26278b5d button-text"},[e._v("视图尚未点击")])]),e._v(" "),a("img",{directives:[{name:"show",rawName:"v-show",value:e.isClicked,expression:"isClicked"}],staticClass:"v26278b5d button-demo-1-image",attrs:{alt:"demo1-image",src:"https://user-images.githubusercontent.com/12878546/148737148-d0b227cb-69c8-4b21-bf92-739fb0c3f3aa.png"}})])};s._withStripped=!0;var i={data:()=>({isClicked:!1,isPressing:!1}),methods:{clickView(){this.isClicked=!this.isClicked},onTouchBtnStart(e){console.log("onBtnTouchDown",e),e.stopPropagation()},onTouchBtnMove(e){console.log("onBtnTouchMove",e),e.stopPropagation(),console.log(e)},onTouchBtnEnd(e){console.log("onBtnTouchEnd",e),e.stopPropagation(),console.log(e)}}},n=(a("./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&"),a("../../packages/hippy-vue-loader/lib/runtime/componentNormalizer.js")),l=Object(n.a)(i,s,[],!1,null,"26278b5d",null);l.options.__file="src/components/demos/demo-button.vue";var c=l.exports,d=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614",attrs:{id:"div-demo"},on:{scroll:e.onOuterScroll}},[a("div",["ios"!==e.Vue.Native.Platform?a("div",[a("label",[e._v("水波纹效果: ")]),e._v(" "),a("div",{staticClass:"ve3dda614",style:Object.assign({},e.imgRectangle,e.imgRectangleExtra)},[a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.imgRectangle,"native-background-android":{borderless:!0,color:"#666666"}}},[a("p",{staticClass:"ve3dda614",style:{color:"white",maxWidth:200}},[e._v("\n 外层背景图,内层无边框水波纹,受外层影响始终有边框\n ")])])],1),e._v(" "),a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.circleRipple,"native-background-android":{borderless:!0,color:"#666666",rippleRadius:100}}},[a("p",{staticClass:"ve3dda614",style:{color:"black",textAlign:"center"}},[e._v("\n 无边框圆形水波纹\n ")])]),e._v(" "),a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.squareRipple,"native-background-android":{borderless:!1,color:"#666666"}}},[a("p",{staticClass:"ve3dda614",style:{color:"#fff"}},[e._v("\n 带背景色水波纹\n ")])])],1):e._e(),e._v(" "),a("label",[e._v("背景图效果:")]),e._v(" "),a("div",{staticClass:"ve3dda614",style:e.demo1Style,attrs:{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"}},[a("p",{staticClass:"ve3dda614 div-demo-1-text"},[e._v("\n Hippy 背景图展示\n ")])]),e._v(" "),a("label",[e._v("渐变色效果:")]),e._v(" "),e._m(0),e._v(" "),a("label",[e._v("Transform")]),e._v(" "),e._m(1),e._v(" "),a("label",[e._v("水平滚动:")]),e._v(" "),a("div",{ref:"demo-2",staticClass:"ve3dda614 div-demo-2",attrs:{bounces:!0,scrollEnabled:!0,pagingEnabled:!1,showsHorizontalScrollIndicator:!1},on:{scroll:e.onScroll,momentumScrollBegin:e.onMomentumScrollBegin,momentumScrollEnd:e.onMomentumScrollEnd,scrollBeginDrag:e.onScrollBeginDrag,scrollEndDrag:e.onScrollEndDrag}},[e._m(2)]),e._v(" "),a("label",[e._v("垂直滚动:")]),e._v(" "),a("div",{staticClass:"ve3dda614 div-demo-3",attrs:{showsVerticalScrollIndicator:!1}},[e._m(3)])])])};d._withStripped=!0;var p=a("./src/assets/defaultSource.jpg"),u=a.n(p),v=function(){var e=this.$createElement;return(this._self._c||e)("div",{ref:"ripple1",style:this.wrapperStyle,attrs:{nativeBackgroundAndroid:Object.assign({},this.nativeBackgroundAndroid)},on:{layout:this.onLayout,touchstart:this.onTouchStart,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[this._t("default")],2)};v._withStripped=!0;const y={display:"flex",height:"40px",width:"200px",backgroundImage:""+u.a,backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"};var h={name:"DemoRippleDiv",props:{nativeBackgroundAndroid:{default:{borderless:!1}},wrapperStyle:{type:Object,default:()=>y},positionY:{default:0}},data(){return{scrollOffsetY:this.positionY,viewX:0,viewY:0,demo1Style:y}},watch:{positionY(e){this.scrollOffsetY=e}},mounted(){this.rippleRef=this.$refs.ripple1},methods:{async onLayout(){const e=await r.default.Native.measureInAppWindow(this.rippleRef);this.viewX=e.left,this.viewY=e.top},onTouchStart(e){const t=e.touches[0];this.rippleRef.setHotspot(t.clientX-this.viewX,t.clientY+this.scrollOffsetY-this.viewY),this.rippleRef.setPressed(!0)},onTouchEnd(){this.rippleRef.setPressed(!1)}}},b=Object(n.a)(h,v,[],!1,null,null,null);b.options.__file="src/components/demos/demo-ripple-div.vue";var m={components:{"demo-ripple-div":b.exports},data:()=>({Vue:r.default,offsetY:0,demo1Style:{display:"flex",height:"40px",width:"200px",backgroundImage:""+u.a,backgroundSize:"cover",backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"},imgRectangle:{width:"260px",height:"56px",alignItems:"center",justifyContent:"center"},imgRectangleExtra:{marginTop:"20px",backgroundImage:""+u.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"}}),mounted(){this.demon2=this.$refs["demo-2"],setTimeout(()=>{this.demon2.scrollTo(50,0,1e3)},1e3)},methods:{onOuterScroll(e){this.offsetY=e.offsetY},onScroll(e){console.log("onScroll",e)},onMomentumScrollBegin(e){console.log("onMomentumScrollBegin",e)},onMomentumScrollEnd(e){console.log("onMomentumScrollEnd",e)},onScrollBeginDrag(e){console.log("onScrollBeginDrag",e)},onScrollEndDrag(e){console.log("onScrollEndDrag",e)}}},f=(a("./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&"),Object(n.a)(m,d,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ve3dda614 div-demo-1-1"},[t("p",{staticClass:"ve3dda614 div-demo-1-text"},[this._v("\n Hippy 背景渐变色展示\n ")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ve3dda614 div-demo-transform"},[t("p",{staticClass:"ve3dda614 div-demo-transform-text"},[this._v("\n Transform\n ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614 display-flex flex-row"},[a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n A\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n B\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n C\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n D\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n E\n ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614 display-flex flex-column"},[a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n A\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n B\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n C\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n D\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n E\n ")])])}],!1,null,"e3dda614",null));f.options.__file="src/components/demos/demo-div.vue";var g=f.exports,_=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vc6df51b0",attrs:{id:"demo-img"}},[a("div",{staticClass:"vc6df51b0",attrs:{id:"demo-img-container"}},[a("label",[e._v("Contain:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image contain",attrs:{src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",placeholder:e.defaultImage},on:{touchstart:e.onTouchStart,touchmove:e.onTouchMove,touchend:e.onTouchEnd}}),e._v(" "),a("label",[e._v("Cover:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}}),e._v(" "),a("label",[e._v("Center:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image center",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}}),e._v(" "),a("label",[e._v("CapInsets:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",capInsets:{top:50,left:50,bottom:50,right:50}}}),e._v(" "),a("label",[e._v("TintColor:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image center tint-color",attrs:{src:e.hippyLogoImage}}),e._v(" "),a("label",[e._v("Gif:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif"},on:{load:e.onLoad}}),e._v(" "),a("div",{staticClass:"vc6df51b0 img-result"},[a("p",[e._v("Load Result: "+e._s(e.gifLoadResult))])])])])};_._withStripped=!0;var C=a("./src/assets/hippyLogoWhite.png"),x=a.n(C),S={data:()=>({defaultImage:u.a,hippyLogoImage:x.a,gifLoadResult:{}}),methods:{onTouchStart(e){console.log("onTouchDown",e),e.stopPropagation()},onTouchMove(e){console.log("onTouchMove",e),e.stopPropagation(),console.log(e)},onTouchEnd(e){console.log("onTouchEnd",e),e.stopPropagation(),console.log(e)},onLoad(e){console.log("onLoad",e);const{width:t,height:a,url:o}=e;this.gifLoadResult={width:t,height:a,url:o}}}},w=(a("./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&"),Object(n.a)(S,_,[],!1,null,"c6df51b0",null));w.options.__file="src/components/demos/demo-img.vue";var k=w.exports,A=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"inputDemo",staticClass:"v76bc5c6f demo-input",on:{click:e.blurAllInput}},[a("label",[e._v("文本:")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.text,expression:"text"}],ref:"input",staticClass:"v76bc5c6f input",attrs:{placeholder:"Text","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",editable:!0},domProps:{value:e.text},on:{click:e.stopPropagation,keyboardWillShow:e.onKeyboardWillShow,keyboardWillHide:e.onKeyboardWillHide,blur:e.onBlur,focus:e.onFocus,input:function(t){t.target.composing||(e.text=t.target.value)}}}),e._v(" "),a("div",[a("span",[e._v("文本内容为:")]),e._v(" "),a("span",[e._v(e._s(e.text))])]),e._v(" "),a("div",[a("span",[e._v(e._s("事件: "+e.event+" | isFocused: "+e.isFocused))])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.clearTextContent}},[a("span",[e._v("清空文本内容")])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.focus}},[a("span",[e._v("Focus")])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.blur}},[a("span",[e._v("Blur")])]),e._v(" "),a("label",[e._v("数字:")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{type:"number","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Number"},on:{change:e.textChange,click:e.stopPropagation}}),e._v(" "),a("label",[e._v("密码:")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{type:"password","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Password"},on:{change:e.textChange,click:e.stopPropagation}}),e._v(" "),a("label",[e._v("文本(限制5个字符):")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{maxlength:5,"caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"5 个字符"},on:{change:e.textChange,click:e.stopPropagation}})])};A._withStripped=!0;var P={data:()=>({text:"",event:void 0,isFocused:void 0}),mounted(){this.getChildNodes(this.$refs.inputDemo.childNodes).find(e=>"input"===e.tagName).focus()},methods:{textChange(e){console.log(e.value)},blurAllInput(){this.getChildNodes(this.$refs.inputDemo.childNodes).filter(e=>"input"===e.tagName).forEach(e=>e.blur())},stopPropagation(e){e.stopPropagation()},clearTextContent(){this.text=""},onKeyboardWillHide(){console.log("onKeyboardWillHide")},onKeyboardWillShow(e){console.log("onKeyboardWillShow",e)},getChildNodes:e=>r.default.Native?e:Array.from(e),focus(e){e.stopPropagation(),this.$refs.input.focus()},blur(e){e.stopPropagation(),this.$refs.input.blur()},async onFocus(){this.isFocused=await this.$refs.input.isFocused(),this.event="onFocus"},async onBlur(){this.isFocused=await this.$refs.input.isFocused(),this.event="onBlur"}}},E=(a("./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&"),Object(n.a)(P,A,[],!1,null,"76bc5c6f",null));E.options.__file="src/components/demos/demo-input.vue";var j=E.exports,T=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v36005ed6 p-demo",style:{color:e.topColor}},[a("div",[a("label",[e._v("不带样式:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-content",on:{touchstart:e.onTouchTextStart,touchmove:e.onTouchTextMove,touchend:e.onTouchTextEnd}},[e._v("\n 这是最普通的一行可点击文字\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-content-status"},[e._v("\n 当前touch状态: "+e._s(e.labelTouchStatus)+"\n ")]),e._v(" "),a("label",[e._v("颜色:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-1 p-demo-content"},[e._v("\n 这行文字改变了颜色\n ")]),e._v(" "),a("label",[e._v("尺寸:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-2 p-demo-content"},[e._v("\n 这行改变了大小\n ")]),e._v(" "),a("label",[e._v("粗体:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-3 p-demo-content"},[e._v("\n 这行加粗了\n ")]),e._v(" "),a("label",[e._v("下划线:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-4 p-demo-content"},[e._v("\n 这里有条下划线\n ")]),e._v(" "),a("label",[e._v("删除线:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-5 p-demo-content"},[e._v("\n 这里有条删除线\n ")]),e._v(" "),a("label",[e._v("自定义字体:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content"},[e._v("\n 腾讯字体 Hippy\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-weight":"bold"}},[e._v("\n 腾讯字体 Hippy 粗体\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-style":"italic"}},[e._v("\n 腾讯字体 Hippy 斜体\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-weight":"bold","font-style":"italic"}},[e._v("\n 腾讯字体 Hippy 粗斜体\n ")]),e._v(" "),a("label",[e._v("文字阴影:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-7 p-demo-content",style:e.textShadow,on:{click:e.changeTextShadow}},[e._v("\n 这里是文字灰色阴影,点击可改变颜色\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-7 p-demo-content",style:e.textShadow,on:{click:e.changeTextColor}},[e._v("\n 验证属性继承更改效果,点击可改变整体颜色\n ")]),e._v(" "),a("label",[e._v("文本字符间距")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-8 p-demo-content",staticStyle:{"margin-bottom":"5px"}},[e._v("\n Text width letter-spacing -1\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-9 p-demo-content",staticStyle:{"margin-top":"5px"}},[e._v("\n Text width letter-spacing 5\n ")]),e._v(" "),a("label",[e._v("字体 style:")]),e._v(" "),e._m(0),e._v(" "),a("label",[e._v("numberOfLines="+e._s(e.textMode.numberOfLines)+" | ellipsizeMode="+e._s(e.textMode.ellipsizeMode))]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"19px",color:"white"}},[e._v("先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。")]),e._v(" "),a("span",[e._v("然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")])]),e._v(" "),a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[e._v("\n "+e._s("line 1\n\nline 3\n\nline 5")+"\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5,fontSize:14},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[a("img",{staticClass:"v36005ed6",style:{width:24,height:24},attrs:{src:e.img1}}),e._v(" "),a("img",{staticClass:"v36005ed6",style:{width:24,height:24},attrs:{src:e.img2}})]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:e.incrementLine}},[a("span",[e._v("加一行")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:e.decrementLine}},[a("span",[e._v("减一行")])])]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("clip")}}},[a("span",[e._v("clip")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("head")}}},[a("span",[e._v("head")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("middle")}}},[a("span",[e._v("middle")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("tail")}}},[a("span",[e._v("tail")])])])]),e._v(" "),"android"===e.Platform?a("label",[e._v("break-strategy="+e._s(e.breakStrategy))]):e._e(),e._v(" "),"android"===e.Platform?a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"border-width":"1","border-color":"gray"},attrs:{"break-strategy":e.breakStrategy}},[e._v("\n "+e._s(e.longText)+"\n ")]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("simple")}}},[a("span",[e._v("simple")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("high_quality")}}},[a("span",[e._v("high_quality")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("balanced")}}},[a("span",[e._v("balanced")])])])]):e._e(),e._v(" "),a("label",[e._v("vertical-align")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-align":"middle"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-align":"baseline"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-align":"bottom"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-align":"middle"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-align":"baseline"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-align":"bottom"},attrs:{src:e.img3}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"top"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"middle"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"baseline"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"bottom"}},[e._v("字")])]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{lineHeight:"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"0"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-alignment":"1"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-alignment":"2"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-alignment":"3"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24",top:"-10"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12",top:"-5"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24",top:"5"},attrs:{src:e.img3}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")])]):e._e()]),e._v(" "),a("label",[e._v("tint-color & background-color")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"vertical-align":"middle","background-color":"#99f"}},[e._v("text")])]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","tint-color":"orange"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","tint-color":"orange","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","background-color":"#ccc"},attrs:{src:e.img2}})]):e._e()]),e._v(" "),a("label",[e._v("margin")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"baseline","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"bottom","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}})]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"0","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"1","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"2","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"3","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}})]):e._e()])])])};T._withStripped=!0;var V={data:()=>({topColor:"grey",Platform:r.default.Native.Platform,textShadowIndex:0,isClicked:!1,isPressing:!1,labelTouchStatus:"",textShadow:{textShadowOffset:{x:1,y:1},textShadowRadius:3,textShadowColor:"grey"},textMode:{numberOfLines:2,ellipsizeMode:"tail"},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.",breakStrategy:"simple"}),methods:{changeTextShadow(){this.textShadow={textShadowOffsetX:this.textShadowIndex%2==1?10:1,textShadowOffsetY:1,textShadowRadius:3,textShadowColor:this.textShadowIndex%2==1?"red":"grey"},this.textShadowIndex+=1},changeTextColor(){this.topColor=this.textShadowIndex%2==1?"red":"grey",this.textShadowIndex+=1},onTouchTextStart(e){this.labelTouchStatus="touch start",console.log("onTextTouchDown",e),e.stopPropagation()},onTouchTextMove(e){this.labelTouchStatus="touch move",console.log("onTextTouchMove",e),e.stopPropagation(),console.log(e)},onTouchTextEnd(e){this.labelTouchStatus="touch end",console.log("onTextTouchEnd",e),e.stopPropagation(),console.log(e)},incrementLine(){this.textMode.numberOfLines<6&&(this.textMode.numberOfLines+=1)},decrementLine(){this.textMode.numberOfLines>1&&(this.textMode.numberOfLines-=1)},changeMode(e){this.textMode.ellipsizeMode=e},changeBreakStrategy(e){this.breakStrategy=e}}},L=(a("./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&"),Object(n.a)(V,T,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v36005ed6 p-demo-content"},[t("p",{staticClass:"v36005ed6",staticStyle:{"font-style":"normal"}},[this._v("\n font-style: normal\n ")]),this._v(" "),t("p",{staticClass:"v36005ed6",staticStyle:{"font-style":"italic"}},[this._v("\n font-style: italic\n ")]),this._v(" "),t("p",[this._v("font-style: [not set]")])])}],!1,null,"36005ed6",null));L.options.__file="src/components/demos/demo-p.vue";var I=L.exports,Y=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v5819936a",attrs:{id:"shadow-demo"}},["android"===e.Platform?a("div",{staticClass:"v5819936a no-offset-shadow-demo-cube-android"},[e._m(0)]):e._e(),e._v(" "),"ios"===e.Platform?a("div",{staticClass:"v5819936a no-offset-shadow-demo-cube-ios"},[e._m(1)]):e._e(),e._v(" "),"android"===e.Platform?a("div",{staticClass:"v5819936a offset-shadow-demo-cube-android"},[e._m(2)]):e._e(),e._v(" "),"ios"===e.Platform?a("div",{staticClass:"v5819936a offset-shadow-demo-cube-ios"},[e._m(3)]):e._e()])};Y._withStripped=!0;var O={data:()=>({Platform:r.default.Native.Platform}),mounted(){this.Platform=r.default.Native.Platform}},H=(a("./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&"),Object(n.a)(O,Y,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a no-offset-shadow-demo-content-android"},[t("p",[this._v("没有偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a no-offset-shadow-demo-content-ios"},[t("p",[this._v("没有偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a offset-shadow-demo-content-android"},[t("p",[this._v("偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a offset-shadow-demo-content-ios"},[t("p",[this._v("偏移阴影样式")])])}],!1,null,"5819936a",null));H.options.__file="src/components/demos/demo-shadow.vue";var D=H.exports,R=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v6cb502b6",attrs:{id:"demo-textarea"}},[a("label",[e._v("多行文本:")]),e._v(" "),a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],staticClass:"v6cb502b6 textarea",attrs:{rows:10,placeholder:"多行文本编辑器"},domProps:{value:e.content},on:{contentSizeChange:e.contentSizeChange,input:function(t){t.target.composing||(e.content=t.target.value)}}}),e._v(" "),a("div",{staticClass:"v6cb502b6 output-container"},[a("p",{staticClass:"v6cb502b6 output"},[e._v("\n 输入的文本为:"+e._s(e.content)+"\n ")])]),e._v(" "),"android"===e.Platform?a("label",[e._v("break-strategy="+e._s(e.breakStrategy))]):e._e(),e._v(" "),"android"===e.Platform?a("div",[a("textarea",{staticClass:"v6cb502b6 textarea",attrs:{defaultValue:e.longText,"break-strategy":e.breakStrategy}}),e._v(" "),a("div",{staticClass:"v6cb502b6 button-bar"},[a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("simple")}}},[a("span",[e._v("simple")])]),e._v(" "),a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("high_quality")}}},[a("span",[e._v("high_quality")])]),e._v(" "),a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("balanced")}}},[a("span",[e._v("balanced")])])])]):e._e()])};R._withStripped=!0;var B={data:()=>({Platform:r.default.Native.Platform,content:"The quick brown fox jumps over the lazy dog,快灰狐狸跳过了懒 🐕。",longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",breakStrategy:"simple"}),methods:{contentSizeChange(e){console.log(e)},changeBreakStrategy(e){this.breakStrategy=e}}},U=(a("./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&"),Object(n.a)(B,R,[],!1,null,"6cb502b6",null));U.options.__file="src/components/demos/demo-textarea.vue";var N=U.exports,M=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v71b90789",attrs:{id:"demo-list"}},[a("ul",{ref:"list",staticClass:"v71b90789",style:e.horizontal&&{height:50,flex:0},attrs:{id:"list",horizontal:e.horizontal,exposureEventEnabled:!0,delText:e.delText,editable:!0,bounces:!0,rowShouldSticky:!0,overScrollEnabled:!0,scrollEventThrottle:1e3},on:{endReached:e.onEndReached,delete:e.onDelete,scroll:e.onScroll,momentumScrollBegin:e.onMomentumScrollBegin,momentumScrollEnd:e.onMomentumScrollEnd,scrollBeginDrag:e.onScrollBeginDrag,scrollEndDrag:e.onScrollEndDrag}},e._l(e.dataSource,(function(t,o){return a("li",{key:o+"_"+t.style,staticClass:"v71b90789",class:e.horizontal&&"item-horizontal-style",attrs:{type:t.style,sticky:1===o},on:{appear:function(t){return e.onAppear(o)},disappear:function(t){return e.onDisappear(o)},willAppear:function(t){return e.onWillAppear(o)},willDisappear:function(t){return e.onWillDisappear(o)}}},[1===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 1 UI")+"\n ")])])]):2===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 2 UI")+"\n ")])])]):5===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 5 UI")+"\n ")])])]):a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{id:"loading"}},[e._v("\n "+e._s(e.loadingState)+"\n ")])])]),e._v(" "),o!==e.dataSource.length-1?a("div",{staticClass:"v71b90789 separator-line"}):e._e()])})),0),e._v(" "),a("div",{staticClass:"v71b90789",style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#40b883"},on:{click:e.changeDirection}},[a("div",{staticClass:"v71b90789",style:{width:60,height:60,borderRadius:30,backgroundColor:"#40b883",display:"flex",justifyContent:"center",alignItems:"center"}},[a("p",{staticClass:"v71b90789",style:{color:"white"}},[e._v("\n 切换方向\n ")])])])])};M._withStripped=!0;const F=[{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}];var z={data:()=>({Vue:r.default,loadingState:"Loading now...",dataSource:[],delText:"Delete",horizontal:void 0}),mounted(){this.isLoading=!1,this.dataSource=F},methods:{changeDirection(){this.horizontal=void 0===this.horizontal||void 0},onAppear(e){console.log("onAppear",e)},onDisappear(e){console.log("onDisappear",e)},onWillAppear(e){console.log("onWillAppear",e)},onWillDisappear(e){console.log("onWillDisappear",e)},mockFetchData:()=>new Promise(e=>{setTimeout(()=>e(F),600)}),onDelete(e){this.dataSource.splice(e.index,1)},async onEndReached(){const{dataSource:e,isLoading:t}=this;if(t)return;this.isLoading=!0,this.dataSource=e.concat([{style:100}]);const a=await this.mockFetchData();this.dataSource=e.concat(a),this.isLoading=!1},onScroll(e){console.log("onScroll",e.offsetY),e.offsetY<=0?this.topReached||(this.topReached=!0,console.log("onTopReached")):this.topReached=!1},onMomentumScrollBegin(e){console.log("momentumScrollBegin",e)},onMomentumScrollEnd(e){console.log("momentumScrollEnd",e)},onScrollBeginDrag(e){console.log("onScrollBeginDrag",e)},onScrollEndDrag(e){console.log("onScrollEndDrag",e)}}},$=(a("./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&"),Object(n.a)(z,M,[],!1,null,"71b90789",null));$.options.__file="src/components/demos/demo-list.vue";var W=$.exports,K=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{style:e.iframeStyle,attrs:{id:"iframe-demo"}},[a("label",[e._v("地址栏:")]),e._v(" "),a("input",{ref:"input",attrs:{id:"address",name:"url",returnKeyType:"go"},domProps:{value:e.displayUrl},on:{endEditing:e.goToUrl,keyup:e.onKeyUp}}),e._v(" "),a("iframe",{ref:"iframe",attrs:{id:"iframe",src:e.url,method:"get"},on:{load:e.onLoad,loadStart:e.onLoadStart,loadEnd:e.onLoadEnd}})])};K._withStripped=!0;var G={data:()=>({url:"https://hippyjs.org",displayUrl:"https://hippyjs.org",iframeStyle:{"min-height":r.default.Native?100:"100vh"}}),methods:{onLoad(e){let{url:t}=e;void 0===t&&(t=this.$refs.iframe.src),t!==this.url&&(this.displayUrl=t)},onLoadStart(e){const{url:t}=e;console.log("onLoadStart",t)},onLoadEnd(e){const{url:t,success:a,error:o}=e;console.log("onLoadEnd",t,a,o)},onKeyUp(e){13===e.keyCode&&(e.preventDefault(),this.goToUrl({value:this.$refs.input.value}))},goToUrl(e){this.url=e.value}}},q=(a("./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&"),Object(n.a)(G,K,[],!1,null,null,null));q.options.__file="src/components/demos/demo-iframe.vue";var Q=q.exports,X=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v77bce928",attrs:{id:"websocket-demo"}},[a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Url:\n ")]),e._v(" "),a("input",{ref:"inputUrl",staticClass:"v77bce928",attrs:{value:"wss://echo.websocket.org"}}),e._v(" "),a("div",{staticClass:"v77bce928 row"},[a("button",{staticClass:"v77bce928",on:{click:e.connect}},[a("span",[e._v("Connect")])]),e._v(" "),a("button",{staticClass:"v77bce928",on:{click:e.disconnect}},[a("span",[e._v("Disconnect")])])])]),e._v(" "),a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Message:\n ")]),e._v(" "),a("input",{ref:"inputMessage",staticClass:"v77bce928",attrs:{value:"Rock it with Hippy WebSocket"}}),e._v(" "),a("button",{staticClass:"v77bce928",on:{click:e.sendMessage}},[a("span",[e._v("Send")])])]),e._v(" "),a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Log:\n ")]),e._v(" "),a("div",{staticClass:"v77bce928 output fullscreen"},[a("div",e._l(e.output,(function(t,o){return a("p",{key:o,staticClass:"v77bce928"},[e._v("\n "+e._s(t)+"\n ")])})),0)])])])};X._withStripped=!0;var J={data:()=>({output:[]}),methods:{connect(){this.$refs.inputUrl.getValue().then(e=>{this.disconnect();const t=new WebSocket(e);t.onopen=()=>this.appendOutput("[Opened] "+t.url),t.onclose=()=>this.appendOutput("[Closed] "+t.url),t.onerror=e=>this.appendOutput("[Error] "+e.reason),t.onmessage=e=>this.appendOutput("[Received] "+e.data),this.ws=t})},disconnect(){this.ws&&1===this.ws.readyState&&this.ws.close()},appendOutput(e){this.output.unshift(e)},sendMessage(){this.$refs.inputMessage.getValue().then(e=>{this.appendOutput("[Sent] "+e),this.ws.send(e)})}}},Z=(a("./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&"),Object(n.a)(J,X,[],!1,null,"77bce928",null));Z.options.__file="src/components/demos/demo-websocket.vue";var ee=Z.exports,te=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v2ea31349",attrs:{id:"demo-dynamicimport"},on:{click:this.onAsyncComponentLoad}},[this._m(0),this._v(" "),this.loaded?t("div",{staticClass:"v2ea31349 async-com-wrapper"},[t("AsyncComponentFromLocal",{staticClass:"v2ea31349 async-component-outer-local"}),this._v(" "),t("AsyncComponentFromHttp")],1):this._e()])};te._withStripped=!0;var ae={components:{AsyncComponentFromLocal:()=>a.e(1).then(a.bind(null,"./src/components/demos/dynamicImport/async-component-local.vue")).then(e=>e).catch(e=>console.error("import async local component error",e)),AsyncComponentFromHttp:()=>a.e(0).then(a.bind(null,"./src/components/demos/dynamicImport/async-component-http.vue")).then(e=>e).catch(e=>console.error("import async remote component error",e))},data:()=>({loaded:!1}),methods:{onAsyncComponentLoad(){this.loaded=!0}}},oe=(a("./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&"),Object(n.a)(ae,te,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v2ea31349 import-btn"},[t("p",[this._v("点我异步加载")])])}],!1,null,"2ea31349",null));oe.options.__file="src/components/demos/demo-dynamicimport.vue";var re=oe.exports,se=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v14216e7a demo-turbo"},[a("span",{staticClass:"v14216e7a result"},[e._v(" "+e._s(e.result)+" ")]),e._v(" "),a("ul",{staticClass:"v14216e7a",staticStyle:{flex:"1"}},e._l(e.funList,(function(t){return a("li",{key:t,staticClass:"v14216e7a cell"},[a("div",{staticClass:"v14216e7a contentView"},[a("div",{staticClass:"v14216e7a func-info"},[a("span",{staticClass:"v14216e7a",attrs:{numberOfLines:0}},[e._v("函数名:"+e._s(t))])]),e._v(" "),a("span",{staticClass:"v14216e7a action-button",on:{click:function(a){return a.stopPropagation(),function(){return e.onTurboFunc(t)}.apply(null,arguments)}}},[e._v("运行")])])])})),0)])};se._withStripped=!0;const ie=()=>getTurboModule("demoTurbo").getTurboConfig();var ne={data:()=>({config:null,result:"",funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"]}),methods:{async onTurboFunc(e){if("nativeWithPromise"===e)this.result=await(async e=>turboPromise(getTurboModule("demoTurbo").nativeWithPromise)(e))("aaa");else if("getTurboConfig"===e)this.config=ie(),this.result="获取到config对象";else if("printTurboConfig"===e)this.result=(t=this.config||ie(),getTurboModule("demoTurbo").printTurboConfig(t));else if("getInfo"===e)this.result=(this.config||ie()).getInfo();else if("setInfo"===e)(this.config||ie()).setInfo("Hello World"),this.result="设置config信息成功";else{const t={getString:()=>{return e="123",getTurboModule("demoTurbo").getString(e);var e},getNum:()=>{return e=1024,getTurboModule("demoTurbo").getNum(e);var e},getBoolean:()=>{return e=!0,getTurboModule("demoTurbo").getBoolean(e);var e},getMap:()=>{return e=new Map([["a","1"],["b",2]]),getTurboModule("demoTurbo").getMap(e);var e},getObject:()=>{return e={c:"3",d:"4"},getTurboModule("demoTurbo").getObject(e);var e},getArray:()=>{return e=["a","b","c"],getTurboModule("demoTurbo").getArray(e);var e}};this.result=t[e]()}var t}}},le=(a("./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&"),Object(n.a)(ne,se,[],!1,null,"14216e7a",null));le.options.__file="src/components/demos/demo-turbo.vue";var ce={demoDiv:{name:"div 组件",component:g},demoShadow:{name:"box-shadow",component:D},demoP:{name:"p 组件",component:I},demoButton:{name:"button 组件",component:c},demoImg:{name:"img 组件",component:k},demoInput:{name:"input 组件",component:j},demoTextarea:{name:"textarea 组件",component:N},demoUl:{name:"ul/li 组件",component:W},demoIFrame:{name:"iframe 组件",component:Q},demoWebSocket:{name:"WebSocket",component:ee},demoDynamicImport:{name:"DynamicImport",component:re},demoTurbo:{name:"Turbo",component:le.exports}},de=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v4ffd9eb0 set-native-props-demo"},[a("label",[e._v("setNativeProps实现拖动效果")]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 native-demo-1-drag",style:{width:e.screenWidth},on:{touchstart:e.onTouchDown1,touchmove:e.onTouchMove1}},[a("div",{ref:"demo-1-point",staticClass:"v4ffd9eb0 native-demo-1-point"})]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 splitter"}),e._v(" "),a("label",[e._v("普通渲染实现拖动效果")]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 native-demo-2-drag",style:{width:e.screenWidth},on:{touchstart:e.onTouchDown2,touchmove:e.onTouchMove2}},[a("div",{ref:"demo-2-point",staticClass:"v4ffd9eb0 native-demo-2-point",style:{left:e.demon2Left+"px"}})])])};de._withStripped=!0;var pe={data:()=>({demon2Left:0,screenWidth:0}),mounted(){this.screenWidth=r.default.Native.Dimensions.screen.width,this.demon1Point=this.$refs["demo-1-point"]},methods:{onTouchDown1(e){e.stopPropagation();const t=e.touches[0].clientX-40;console.log("touchdown x",t,this.screenWidth),this.demon1Point.setNativeProps({style:{left:t}})},onTouchMove1(e){e.stopPropagation();const t=e.touches[0].clientX-40;console.log("touchmove x",t,this.screenWidth),this.demon1Point.setNativeProps({style:{left:t}})},onTouchDown2(e){e.stopPropagation(),this.demon2Left=e.touches[0].clientX-40,console.log("touchdown x",this.demon2Left,this.screenWidth)},onTouchMove2(e){e.stopPropagation(),this.demon2Left=e.touches[0].clientX-40,console.log("touchmove x",this.demon2Left,this.screenWidth)}}},ue=(a("./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&"),Object(n.a)(pe,de,[],!1,null,"4ffd9eb0",null));ue.options.__file="src/components/demos/demo-set-native-props.vue";var ve=ue.exports,ye=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"rect",staticClass:"v864846ba",attrs:{id:"demo-vue-native"}},[a("div",[e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Platform")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Platform))])]):e._e(),e._v(" "),e.Vue.Native.Device?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Device")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Device))])]):e._e(),e._v(" "),"ios"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.isIPhoneX")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.isIPhoneX))])]):e._e(),e._v(" "),"ios"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.OSVersion")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.OSVersion||"null"))])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Localization")]),e._v(" "),a("p",[e._v(e._s("国际化相关信息"))]),e._v(" "),a("p",[e._v(e._s("国家 "+e.Vue.Native.Localization.country))]),e._v(" "),a("p",[e._v(e._s("语言 "+e.Vue.Native.Localization.language))]),e._v(" "),a("p",[e._v(e._s("方向 "+(1===e.Vue.Native.Localization.direction?"RTL":"LTR")))])]),e._v(" "),"android"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.APILevel")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.APILevel||"null"))])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block",on:{layout:e.refreshScreenStatus}},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.screenIsVertical")]),e._v(" "),a("p",[e._v(e._s(e.screenIsVertical))])]),e._v(" "),e.Vue.Native.Dimensions.window.width?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.window.width")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.window.width))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.window.height?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.window.height")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.window.height))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.width?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.width")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.width))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.height?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.height")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.height))])]):e._e(),e._v(" "),e.Vue.Native.OnePixel?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.OnePixel")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.OnePixel))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.navigatorBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.navigatorBarHeight")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.navigatorBarHeight))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.statusBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.statusBarHeight")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.statusBarHeight))])]):e._e(),e._v(" "),"android"===e.Vue.Native.Platform&&void 0!==e.Vue.Native.Dimensions.screen.navigatorBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.navigatorBarHeight(Android only)")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.navigatorBarHeight))])]):e._e(),e._v(" "),e.app?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("App.$options.$superProps")]),e._v(" "),a("p",[e._v(e._s(JSON.stringify(e.app.$options.$superProps)))])]):e._e(),e._v(" "),e.app?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("App event")]),e._v(" "),a("div",[a("button",{staticClass:"v864846ba event-btn",on:{click:e.triggerAppEvent}},[a("span",{staticClass:"v864846ba event-btn-text"},[e._v("Trigger app event")])]),e._v(" "),a("div",{staticClass:"v864846ba event-btn-result"},[a("p",[e._v("Event triggered times: "+e._s(e.eventTriggeredTimes))])])])]):e._e(),e._v(" "),e.Vue.Native.getBoundingClientRect?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.getBoundingClientRect")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:function(){return e.getBoundingClientRect(!1)}}},[a("span",[e._v("relative to App")])]),e._v(" "),a("span",{staticClass:"v864846ba",staticStyle:{"max-width":"200px"}},[e._v(e._s(e.rect1))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:function(){return e.getBoundingClientRect(!0)}}},[a("span",[e._v("relative to container")])]),e._v(" "),a("span",{staticClass:"v864846ba",staticStyle:{"max-width":"200px"}},[e._v(e._s(e.rect2))])])]):e._e(),e._v(" "),e.Vue.Native.AsyncStorage?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("AsyncStorage 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setItem}},[a("span",[e._v("setItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageSetStatus))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.removeItem}},[a("span",[e._v("removeItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageSetStatus))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getItem}},[a("span",[e._v("getItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageValue))])])]):e._e(),e._v(" "),e.Vue.Native.ImageLoader?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("ImageLoader 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getSize}},[a("span",[e._v("getSize")])]),e._v(" "),a("span",[e._v(e._s(e.imageSize))])])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Fetch 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("span",[e._v(e._s(e.fetchText))])])]),e._v(" "),e.Vue.Native.NetInfo?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("NetInfo 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("span",[e._v(e._s(e.netInfoText))])])]):e._e(),e._v(" "),e.Vue.Native.Cookie?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Cookie 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setCookie}},[a("span",[e._v("setCookie")])]),e._v(" "),a("span",[e._v(e._s(e.cookieString))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getCookie}},[a("span",[e._v("getCookie")])]),e._v(" "),a("span",[e._v(e._s(e.cookiesValue))])])]):e._e()])])};ye._withStripped=!0;var he=a("./src/util.js");var be={data(){const{screenIsVertical:e}=r.default.Native;return{app:this.app,eventTriggeredTimes:0,rect1:null,rect2:null,Vue:r.default,screenIsVertical:e,storageValue:"",storageSetStatus:"ready to set",imageSize:"",netInfoText:"正在获取...",fetchText:"请求网址中...",cookieString:"ready to set",cookiesValue:"",hasLayout:!1}},async created(){this.storageValue="",this.imageSize="",this.netInfoText="",this.netInfoText=await r.default.Native.NetInfo.fetch(),this.netInfoListener=r.default.Native.NetInfo.addEventListener("change",e=>{this.netInfoText="收到通知: "+e.network_info}),fetch("https://hippyjs.org",{mode:"no-cors"}).then(e=>{this.fetchText="成功状态: "+e.status}).catch(e=>{this.fetchText="收到错误: "+e})},async mounted(){this.app=Object(he.a)(),this.app.$on("testEvent",()=>{this.eventTriggeredTimes+=1})},beforeDestroy(){this.netInfoListener&&r.default.Native.NetInfo.remove("change",this.netInfoListener),this.app.$off("testEvent"),delete this.app},methods:{async getBoundingClientRect(e=!1){try{const t=await r.default.Native.getBoundingClientRect(this.$refs.rect,{relToContainer:e});e?this.rect2=""+JSON.stringify(t):this.rect1=""+JSON.stringify(t)}catch(e){console.error("getBoundingClientRect error",e)}},triggerAppEvent(){this.app.$emit("testEvent")},refreshScreenStatus(){this.screenIsVertical=r.default.Native.screenIsVertical},setItem(){r.default.Native.AsyncStorage.setItem("itemKey","hippy"),this.storageSetStatus='set "hippy" value succeed'},removeItem(){r.default.Native.AsyncStorage.removeItem("itemKey"),this.storageSetStatus='remove "hippy" value succeed'},async getItem(){const e=await r.default.Native.AsyncStorage.getItem("itemKey");this.storageValue=e||"undefined"},async getSize(){const e=await r.default.Native.ImageLoader.getSize("https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png");console.log("ImageLoader getSize",e),this.imageSize=`${e.width}x${e.height}`},setCookie(){r.default.Native.Cookie.set("https://hippyjs.org","name=hippy;network=mobile"),this.cookieString="'name=hippy;network=mobile' is set"},getCookie(){r.default.Native.Cookie.getAll("https://hippyjs.org").then(e=>{this.cookiesValue=e})}}},me=(a("./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&"),Object(n.a)(be,ye,[],!1,null,"864846ba",null));me.options.__file="src/components/native-demos/demo-vue-native.vue";var fe=me.exports,ge=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{staticClass:"v1b9933af",attrs:{id:"animation-demo"}},[a("li",[a("label",[e._v("控制动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleLoopPlaying}},[e.loopPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])]),e._v(" "),a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleDirection}},["horizon"===e.direction?a("span",[e._v("切换为纵向")]):a("span",[e._v("切换为横向")])])]),e._v(" "),a("div",{staticClass:"v1b9933af",staticStyle:{height:"150px"}},[a("loop",{staticClass:"v1b9933af",attrs:{playing:e.loopPlaying,direction:e.direction,"on-ref":e.onRef},on:{actionsDidUpdate:e.actionsDidUpdate}},[a("p",[e._v("I'm a looping animation")])])],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("点赞笑脸动画:")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.voteUp}},[a("span",[e._v("点赞 👍")])]),e._v(" "),a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.voteDown}},[a("span",[e._v("踩 👎")])])]),e._v(" "),a("div",{staticClass:"v1b9933af vote-face-container center"},[a(e.voteComponent,{tag:"component",staticClass:"v1b9933af vote-icon",attrs:{"is-changed":e.isChanged}})],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("渐变色动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleColorPlaying}},[e.colorPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])])]),e._v(" "),a("div",[a("color-component",{staticClass:"v1b9933af",attrs:{playing:e.colorPlaying}},[a("p",[e._v("背景色渐变")])])],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("贝塞尔曲线动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleCubicPlaying}},[e.cubicPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])])]),e._v(" "),a("div",[a("cubic-bezier",{staticClass:"v1b9933af",attrs:{playing:e.cubicPlaying}},[a("p",[e._v("cubic-bezier(.45,2.84,.38,.5)")])])],1)])])};ge._withStripped=!0;var _e=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("animation",{ref:"animationLoop",staticClass:"v63fc9d7f loop-green",style:{backgroundColor:"grey"},attrs:{playing:e.playing,actions:e.loopActions},on:{actionsDidUpdate:function(t){return e.$emit("actionsDidUpdate")}}},[a("div",{staticClass:"v63fc9d7f loop-white"},[e._t("default")],2)])],1)};_e._withStripped=!0;const Ce={transform:{translateX:{startValue:0,toValue:200,duration:2e3,repeatCount:-1}}},xe={transform:{translateY:{startValue:0,toValue:50,duration:2e3,repeatCount:-1}}};var Se={props:{playing:Boolean,direction:{validator:e=>["horizon","vertical"].indexOf(e)>-1},onRef:Function},data(){let e;switch(this.$props.direction){case"horizon":e=Ce;break;case"vertical":e=xe;break;default:throw new Error("direction must be defined in props")}return{loopActions:e}},watch:{direction(e){switch(e){case"horizon":this.loopActions=Ce;break;case"vertical":this.loopActions=xe}}},mounted(){this.$props.onRef&&this.$props.onRef(this.$refs.animationLoop)}},we=(a("./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&"),Object(n.a)(Se,_e,[],!1,null,"63fc9d7f",null));we.options.__file="src/components/native-demos/animations/loop.vue";var ke=we.exports,Ae=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{ref:"animationView",staticClass:"v44bf239d loop-green",attrs:{playing:this.playing,actions:this.loopActions}},[t("div",{staticClass:"v44bf239d loop-white"},[this._t("default")],2)])],1)};Ae._withStripped=!0;const Pe={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 Ee={props:{playing:Boolean,onRef:Function},data:()=>({loopActions:Pe}),mounted(){this.$props.onRef&&this.$props.onRef(this.$refs.animationView)}},je=(a("./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&"),Object(n.a)(Ee,Ae,[],!1,null,"44bf239d",null));je.options.__file="src/components/native-demos/animations/cubic-bezier.vue";var Te=je.exports,Ve=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{staticClass:"vca89125a vote-face",attrs:{actions:this.animations.face,playing:""}}),this._v(" "),t("animation",{staticClass:"vca89125a vote-up-eye",attrs:{tag:"img",playing:"",props:{src:this.imgs.upVoteEye},actions:this.animations.upVoteEye}}),this._v(" "),t("animation",{staticClass:"vca89125a vote-up-mouth",attrs:{tag:"img",playing:"",props:{src:this.imgs.upVoteMouth},actions:this.animations.upVoteMouth}})],1)};Ve._withStripped=!0;var Le={data:()=>({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}]}}}})},Ie=(a("./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&"),Object(n.a)(Le,Ve,[],!1,null,"ca89125a",null));Ie.options.__file="src/components/native-demos/animations/vote-up.vue";var Ye=Ie.exports,Oe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("animation",{ref:"animationRef",staticClass:"v3adfe95a vote-face",attrs:{actions:e.animations.face,playing:""},on:{start:e.animationStart,end:e.animationEnd,repeat:e.animationRepeat,cancel:e.animationCancel}}),e._v(" "),a("animation",{staticClass:"v3adfe95a vote-down-face",attrs:{tag:"img",playing:"",props:{src:e.imgs.downVoteFace},actions:e.animations.downVoteFace}})],1)};Oe._withStripped=!0;const He={transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},De={transform:{translateX:[{startValue:10,toValue:1,duration:250,timingFunction:"linear"},{startValue:1,toValue:10,duration:250,delay:750,timingFunction:"linear",repeatCount:-1}]}};var Re={props:["isChanged"],data:()=>({imgs:{downVoteFace:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAAAXVBMVEUAAACmaCCoaSKlZyCmaCCoaiG0byOlZyCmaCGnaSKmaCCmZyClZyCmaCCmaSCybyymZyClaCGlaCGnaCCnaSGnaiOlZyKocCXMmTOmaCKnaCKmaSClZyGoZyClZyDPYmTmAAAAHnRSTlMA6S/QtjYO+FdJ4tyZbWYH7cewgTw5JRQFkHFfXk8vbZ09AAAAiUlEQVQY07WQRxLDMAhFPyq21dxLKvc/ZoSiySTZ+y3g8YcFA5wFcOkHYEi5QDkknparH5EZKS6GExQLs0RzUQUY6VYiK2ayNIapQ6EjNk2xd616Bi5qIh2fn8BqroS1XtPmgYKXxo+y07LuDrH95pm3LBM5FMpHWg2osOOLjRR6hR/WOw780bwASN0IT3NosMcAAAAASUVORK5CYII="},animations:{face:He,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"}]}}}}),watch:{isChanged(e,t){!t&&e?(console.log("changed to face2"),this.animations.face=De):t&&!e&&(console.log("changed to face1"),this.animations.face=He),setTimeout(()=>{this.animationRef.start()},10)}},mounted(){this.animationRef=this.$refs.animationRef},methods:{animationStart(){console.log("animation-start callback")},animationEnd(){console.log("animation-end callback")},animationRepeat(){console.log("animation-repeat callback")},animationCancel(){console.log("animation-cancel callback")}}},Be=(a("./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&"),Object(n.a)(Re,Oe,[],!1,null,"3adfe95a",null));Be.options.__file="src/components/native-demos/animations/vote-down.vue";var Ue=Be.exports,Ne=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{ref:"animationView",staticClass:"vc3eb3b96 color-green",attrs:{playing:this.playing,actions:this.colorActions}},[t("div",{staticClass:"vc3eb3b96 color-white"},[this._t("default")],2)])],1)};Ne._withStripped=!0;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 Fe={props:{playing:Boolean,onRef:Function},data:()=>({colorActions:Me})},ze=(a("./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&"),Object(n.a)(Fe,Ne,[],!1,null,"c3eb3b96",null));ze.options.__file="src/components/native-demos/animations/color-change.vue";var $e=ze.exports,We={components:{Loop:ke,colorComponent:$e,CubicBezier:Te},data:()=>({loopPlaying:!0,colorPlaying:!0,cubicPlaying:!0,direction:"horizon",voteComponent:Ye,colorComponent:$e,isChanged:!0}),methods:{onRef(e){this.animationRef=e},voteUp(){this.voteComponent=Ye},voteDown(){this.voteComponent=Ue,this.isChanged=!this.isChanged},toggleLoopPlaying(){this.loopPlaying=!this.loopPlaying},toggleColorPlaying(){this.colorPlaying=!this.colorPlaying},toggleCubicPlaying(){this.cubicPlaying=!this.cubicPlaying},toggleDirection(){this.direction="horizon"===this.direction?"vertical":"horizon"},actionsDidUpdate(){console.log("actions updated & startAnimation"),this.animationRef.start()}}},Ke=(a("./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&"),Object(n.a)(We,ge,[],!1,null,"1b9933af",null));Ke.options.__file="src/components/native-demos/demo-animation.vue";var Ge=Ke.exports,qe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vbdcf35a6",attrs:{id:"dialog-demo"}},[a("label",[e._v("显示或者隐藏对话框:")]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("slide")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--slide")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("fade")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--fade")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("slide_fade")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--slide_fade")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.autoHideStatusBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("hideStatusBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("隐藏状态栏")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.immersionStatusBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("immerseStatusBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("沉浸式状态栏")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.autoHideNavigationBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("hideNavigationBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("隐藏导航栏")])]),e._v(" "),e.dialogIsVisible?a("dialog",{staticClass:"vbdcf35a6",attrs:{animationType:e.dialogAnimationType,transparent:!0,supportedOrientations:e.supportedOrientations,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar},on:{show:e.onShow,requestClose:e.onClose,orientationChange:e.onOrientationChange}},[a("div",{staticClass:"vbdcf35a6 dialog-demo-wrapper"},[a("div",{staticClass:"vbdcf35a6 fullscreen center row",on:{click:e.clickView}},[a("div",{staticClass:"vbdcf35a6 dialog-demo-close-btn center column",on:{click:e.stopPropagation}},[a("p",{staticClass:"vbdcf35a6 dialog-demo-close-btn-text"},[e._v("\n 点击空白区域关闭\n ")]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-2",on:{click:e.clickOpenSecond}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("点击打开二级全屏弹窗")])])]),e._v(" "),e.dialog2IsVisible?a("dialog",{staticClass:"vbdcf35a6",attrs:{animationType:e.dialogAnimationType,transparent:!0,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar},on:{requestClose:e.onClose,orientationChange:e.onOrientationChange}},[a("div",{staticClass:"vbdcf35a6 dialog-2-demo-wrapper center column row",on:{click:e.clickOpenSecond}},[a("p",{staticClass:"vbdcf35a6 dialog-demo-close-btn-text",staticStyle:{color:"white"}},[e._v("\n Hello 我是二级全屏弹窗,点击任意位置关闭。\n ")])])]):e._e()])])]):e._e()])};qe._withStripped=!0;var Qe={beforeRouteLeave(e,t,a){this.dialogIsVisible||a()},data:()=>({supportedOrientations:["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"],dialogIsVisible:!1,dialog2IsVisible:!1,dialogAnimationType:"",immersionStatusBar:!1,autoHideStatusBar:!1,autoHideNavigationBar:!1}),methods:{clickView(e=""){this.dialogIsVisible=!this.dialogIsVisible,this.dialogIsVisible&&(this.dialogAnimationType=e)},clickOpenSecond(e){e.stopPropagation(),this.dialog2IsVisible=!this.dialog2IsVisible},clickDialogConfig(e){switch(e){case"hideStatusBar":this.autoHideStatusBar=!this.autoHideStatusBar;break;case"immerseStatusBar":this.immersionStatusBar=!this.immersionStatusBar;break;case"hideNavigationBar":this.autoHideNavigationBar=!this.autoHideNavigationBar}},onShow(){console.log("Dialog is opening")},onOrientationChange(e){console.log("orientation changed",e.nativeParams)},onClose(e){e.stopPropagation(),this.dialog2IsVisible?this.dialog2IsVisible=!1:this.dialogIsVisible=!1,console.log("Dialog is closing")},stopPropagation(e){e.stopPropagation()}}},Xe=(a("./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&"),Object(n.a)(Qe,qe,[],!1,null,"bdcf35a6",null));Xe.options.__file="src/components/native-demos/demo-dialog.vue";var Je=Xe.exports,Ze=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"demo-swiper"}},[a("div",{staticClass:"toolbar"},[a("button",{staticClass:"toolbar-btn",on:{click:e.scrollToPrevPage}},[a("span",[e._v("翻到上一页")])]),e._v(" "),a("button",{staticClass:"toolbar-btn",on:{click:e.scrollToNextPage}},[a("span",[e._v("翻到下一页")])]),e._v(" "),a("p",{staticClass:"toolbar-text"},[e._v("\n 当前第 "+e._s(e.currentSlideNum+1)+" 页\n ")])]),e._v(" "),a("swiper",{ref:"swiper",attrs:{id:"swiper","need-animation":"",current:e.currentSlide},on:{dragging:e.onDragging,dropped:e.onDropped,stateChanged:e.onStateChanged}},e._l(e.dataSource,(function(t){return a("swiper-slide",{key:t,style:{backgroundColor:4278222848+100*t}},[a("p",[e._v("I'm Slide "+e._s(t+1))])])})),1),e._v(" "),a("div",{attrs:{id:"swiper-dots"}},e._l(e.dataSource,(function(t){return a("div",{key:t,staticClass:"dot",class:{hightlight:e.currentSlideNum===t}})})),0)],1)};Ze._withStripped=!0;var et={data:()=>({dataSource:new Array(7).fill(0).map((e,t)=>t),currentSlide:2,currentSlideNum:2,state:"idle"}),mounted(){this.$maxSlideIndex=this.$refs.swiper.$el.childNodes.length-1},methods:{scrollToNextPage(){this.currentSlide 如果不需要显示加载情况,可以直接使用 ul 的 onEndReached 实现一直加载\n *\n * 事件:\n * idle: 滑动距离在 pull-footer 区域内触发一次,参数 contentOffset,滑动距离\n * pulling: 滑动距离超出 pull-footer 后触发一次,参数 contentOffset,滑动距离\n * released: 滑动超出距离,松手后触发一次\n */\n "),a("pull-footer",{ref:"pullFooter",staticClass:"v44ac5390 pull-footer",on:{idle:e.onFooterIdle,pulling:e.onFooterPulling,released:e.onEndReached}},[a("p",{staticClass:"v44ac5390 pull-footer-text"},[e._v("\n "+e._s(e.footerRefreshText)+"\n ")])])],2)])};ot._withStripped=!0;const rt="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",st={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[rt,rt,rt],subInfo:["三图评论","11评"]}},it={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},nt={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}};var lt=[nt,st,it,st,it,st,it,nt,st],ct=(r.default.component("StyleOne",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n

\n {{ itemBean.title }}\n

\n
\n \n
\n
\n

\n {{ itemBean.subInfo.join(\'\') }}\n

\n
\n
\n '}),r.default.component("StyleTwo",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n
\n

\n {{ itemBean.title }}\n

\n
\n

\n {{ itemBean.subInfo.join(\'\') }}\n

\n
\n
\n
\n \n
\n
\n '}),r.default.component("StyleFive",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n

\n {{ itemBean.title }}\n

\n
\n \n
\n
\n

\n {{ itemBean.subInfo.join(\' \') }}\n

\n
\n
\n '}),{data:()=>({headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",dataSource:[],scrollPos:{top:0,left:0},Vue:r.default}),mounted(){this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.dataSource=[...lt],r.default.Native?(this.$windowHeight=r.default.Native.Dimensions.window.height,console.log("Vue.Native.Dimensions.window",r.default.Native.Dimensions)):this.$windowHeight=window.innerHeight,this.$refs.pullHeader.collapsePullHeader({time:2e3})},methods:{mockFetchData:()=>new Promise(e=>{setTimeout(()=>e(lt),800)}),onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?this.headerRefreshText="松手,即可触发刷新":this.headerRefreshText="继续下拉,触发刷新")},onFooterPulling(e){console.log("onFooterPulling",e)},onHeaderIdle(){},onFooterIdle(){},onScroll(e){e.stopPropagation(),this.scrollPos={top:e.offsetY,left:e.offsetX}},async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.headerRefreshText="刷新数据中,请稍等";const e=await this.mockFetchData();this.dataSource=e.reverse(),this.fetchingDataFlag=!1,this.headerRefreshText="2秒后收起",this.$refs.pullHeader.collapsePullHeader({time:2e3})},async onEndReached(){const{dataSource:e}=this;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.footerRefreshText="加载更多...";const t=await this.mockFetchData();0===t.length&&(this.footerRefreshText="没有更多数据"),this.dataSource=[...e,...t],this.loadMoreDataFlag=!1,this.$refs.pullFooter.collapsePullFooter()},scrollToNextPage(){if(!r.default.Native)return void alert("This method is only supported in Native environment.");const{list:e}=this.$refs,{scrollPos:t}=this,a=t.top+this.$windowHeight-200;e.scrollTo({left:t.left,top:a})},scrollToBottom(){if(!r.default.Native)return void alert("This method is only supported in Native environment.");const{list:e}=this.$refs;e.scrollToIndex(0,e.childNodes.length-1)}}}),dt=(a("./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&"),Object(n.a)(ct,ot,[],!1,null,"44ac5390",null));dt.options.__file="src/components/native-demos/demo-pull-header-footer.vue";var pt=dt.exports,ut=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v782cda3d",attrs:{id:"demo-waterfall"}},[a("waterfall",{ref:"gridView",staticClass:"v782cda3d",style:{flex:1},attrs:{"content-inset":e.contentInset,"column-spacing":e.columnSpacing,"contain-banner-view":!e.isAndroid,"contain-pull-footer":!0,"inter-item-spacing":e.interItemSpacing,"number-of-columns":e.numberOfColumns,"preload-item-number":4},on:{endReached:e.onEndReached,scroll:e.onScroll}},[a("pull-header",{ref:"pullHeader",staticClass:"v782cda3d ul-refresh",on:{idle:e.onHeaderIdle,pulling:e.onHeaderPulling,released:e.onHeaderReleased}},[a("p",{staticClass:"v782cda3d ul-refresh-text"},[e._v("\n "+e._s(e.headerRefreshText)+"\n ")])]),e._v(" "),e.isAndroid||e.isiOS?a("waterfall-item",{staticClass:"v782cda3d banner-view",attrs:{fullSpan:!0,",":"",isHeader:!0,",":""}},[a("span",[e._v("Banner View")])]):a("div",{staticClass:"v782cda3d banner-view"},[a("span",[e._v("BannerView")])]),e._v(" "),e._l(e.dataSource,(function(t,o){return a("waterfall-item",{key:o,staticClass:"v782cda3d",style:{width:e.itemWidth},attrs:{type:t.style},on:{click:function(t){return t.stopPropagation(),function(){return e.onItemClick(o)}.apply(null,arguments)}}},[1===t.style?a("style-one",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e(),e._v(" "),2===t.style?a("style-two",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e(),e._v(" "),5===t.style?a("style-five",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e()],1)})),e._v(" "),a("waterfall-item",{staticClass:"v782cda3d banner-view",attrs:{fullSpan:!0,",":"",isFooter:!0,",":""}},[a("span",[e._v("Footer View")])]),e._v(" "),a("pull-footer",{ref:"pullFooter",staticClass:"v782cda3d pull-footer",on:{idle:e.onFooterIdle,pulling:e.onFooterPulling,released:e.onEndReached}},[a("p",{staticClass:"v782cda3d pull-footer-text"},[e._v("\n "+e._s(e.footerRefreshText)+"\n ")])])],2)],1)};ut._withStripped=!0;var vt={data:()=>({dataSource:[...lt,...lt,...lt,...lt],isRefreshing:!1,Vue:r.default,STYLE_LOADING:100,headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",isLoading:!1,isAndroid:"android"===r.default.Native.Platform,isiOS:"android"===r.default.Native.Platform}),mounted(){this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.dataSource=[...lt],r.default.Native?(this.$windowHeight=r.default.Native.Dimensions.window.height,console.log("Vue.Native.Dimensions.window",r.default.Native.Dimensions)):this.$windowHeight=window.innerHeight,this.$refs.pullHeader.collapsePullHeader({time:2e3})},computed:{refreshText(){return this.isRefreshing?"正在刷新":"下拉刷新"},itemWidth(){return(r.default.Native.Dimensions.screen.width-this.contentInset.left-this.contentInset.right-(this.numberOfColumns-1)*this.columnSpacing)/this.numberOfColumns},listMargin:()=>5,columnSpacing:()=>6,interItemSpacing:()=>6,numberOfColumns:()=>2,contentInset:()=>({top:0,left:5,bottom:0,right:5})},methods:{mockFetchData(){return new Promise(e=>{setTimeout(()=>(this.fetchTimes+=1,this.fetchTimes>=50?e([]):e([...lt,...lt])),600)})},onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?this.headerRefreshText="松手,即可触发刷新":this.headerRefreshText="继续下拉,触发刷新")},onFooterPulling(e){console.log("onFooterPulling",e)},onHeaderIdle(){},onFooterIdle(){},async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.headerRefreshText="刷新数据中,请稍等";await this.mockFetchData();this.fetchingDataFlag=!1,this.headerRefreshText="2秒后收起",this.$refs.pullHeader.collapsePullHeader({time:2e3})},async onRefresh(){this.isRefreshing=!0;const e=await this.mockFetchData();this.isRefreshing=!1,this.dataSource=e.reverse(),this.$refs.header.refreshCompleted()},onScroll(e){console.log("waterfall onScroll",e)},async onEndReached(){const{dataSource:e}=this;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.footerRefreshText="加载更多...";const t=await this.mockFetchData();0===t.length&&(this.footerRefreshText="没有更多数据"),this.dataSource=[...e,...t],this.loadMoreDataFlag=!1,this.$refs.pullFooter.collapsePullFooter()},onItemClick(e){this.$refs.gridView.scrollToIndex({index:e,animation:!0})}}},yt=(a("./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&"),Object(n.a)(vt,ut,[],!1,null,"782cda3d",null));yt.options.__file="src/components/native-demos/demo-waterfall.vue";var ht=yt.exports,bt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v3bbacb8e",attrs:{id:"demo-wrap"},on:{layout:e.onLayout}},[a("div",{staticClass:"v3bbacb8e",attrs:{id:"demo-content"}},[a("div",{staticClass:"v3bbacb8e",attrs:{id:"banner"}}),e._v(" "),a("div",{staticClass:"v3bbacb8e",attrs:{id:"tabs"}},e._l(2,(function(t){return a("p",{key:"tab"+t,staticClass:"v3bbacb8e",class:e.currentSlide===t-1?"selected":"",on:{click:function(a){return e.onTabClick(t)}}},[e._v("\n tab "+e._s(t)+" "+e._s(1===t?"(parent first)":"(self first)")+"\n ")])})),0),e._v(" "),a("swiper",{ref:"swiper",staticClass:"v3bbacb8e",style:{height:e.layoutHeight-80},attrs:{id:"swiper","need-animation":"",current:e.currentSlide},on:{dropped:e.onDropped}},[a("swiper-slide",{key:"slide1",staticClass:"v3bbacb8e"},[a("ul",{staticClass:"v3bbacb8e",attrs:{nestedScrollTopPriority:"parent"}},e._l(30,(function(t){return a("li",{key:"item"+t,staticClass:"v3bbacb8e",class:t%2?"item-even":"item-odd"},[a("p",[e._v("Item "+e._s(t))])])})),0)]),e._v(" "),a("swiper-slide",{key:"slide2",staticClass:"v3bbacb8e"},[a("ul",{staticClass:"v3bbacb8e",attrs:{nestedScrollTopPriority:"self"}},e._l(30,(function(t){return a("li",{key:"item"+t,staticClass:"v3bbacb8e",class:t%2?"item-even":"item-odd"},[a("p",[e._v("Item "+e._s(t))])])})),0)])],1)],1)])};bt._withStripped=!0;var mt={data:()=>({layoutHeight:0,currentSlide:0}),methods:{onLayout(e){this.layoutHeight=e.height},onTabClick(e){console.log("onclick",e),this.currentSlide=e-1},onDropped(e){this.currentSlide=e.currentSlide}}},ft=(a("./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&"),Object(n.a)(mt,bt,[],!1,null,"3bbacb8e",null));ft.options.__file="src/components/native-demos/demo-nested-scroll.vue";var gt=ft.exports;const _t={};r.default.Native&&Object.assign(_t,{demoVueNative:{name:"Vue.Native 能力",component:fe},demoAnimation:{name:"animation 组件",component:Ge},demoModal:{name:"dialog 组件",component:Je},demoSwiper:{name:"swiper 组件",component:at},demoPullHeaderFooter:{name:"pull-header/footer 组件",component:pt},demoWaterfall:{name:"waterfall 组件",component:ht},demoNestedScroll:{name:"nested scroll 示例",component:gt},demoSetNativeProps:{name:"setNativeProps",component:ve}});var Ct=_t,xt={name:"App",data:()=>({featureList:Object.keys(ce).map(e=>({id:e,name:ce[e].name})),nativeFeatureList:Object.keys(Ct).map(e=>({id:e,name:Ct[e].name})),Vue:r.default}),beforeAppExit(){}},St=(a("./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&"),Object(n.a)(xt,o,[function(){var e=this.$createElement,t=this._self._c||e;return t("li",[t("p",{staticClass:"v4fb46863 feature-title"},[this._v("\n 浏览器组件 Demos\n ")])])}],!1,null,"4fb46863",null));St.options.__file="src/pages/menu.vue";var wt=St.exports,kt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"inputDemo",staticClass:"v66065e90 demo-remote-input",on:{click:e.blurInput}},[a("div",{staticClass:"v66065e90 tips-wrap"},e._l(e.tips,(function(t,o){return a("p",{key:o,staticClass:"v66065e90 tips-item",style:e.styles.tipText},[e._v("\n "+e._s(o+1)+". "+e._s(t)+"\n ")])})),0),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.bundleUrl,expression:"bundleUrl"}],ref:"input",staticClass:"v66065e90 remote-input",attrs:{"caret-color":"yellow",placeholder:"please input bundleUrl",multiple:!0,numberOfLines:"4"},domProps:{value:e.bundleUrl},on:{click:e.stopPropagation,input:function(t){t.target.composing||(e.bundleUrl=t.target.value)}}}),e._v(" "),a("div",{staticClass:"v66065e90 buttonContainer",style:e.styles.buttonContainer},[a("button",{staticClass:"v66065e90 input-button",style:e.styles.button,on:{click:e.openBundle}},[a("span",{staticClass:"v66065e90",style:e.styles.buttonText},[e._v("开始")])])])])};kt._withStripped=!0;var At={data:()=>({bundleUrl:"http://127.0.0.1:38989/index.bundle?debugUrl=ws%3A%2F%2F127.0.0.1%3A38989%2Fdebugger-proxy",tips:["安装远程调试依赖: npm i -D @hippy/debug-server-next@latest","修改 webpack 配置,添加远程调试地址","运行 npm run hippy:dev 开始编译,编译结束后打印出 bundleUrl 及调试首页地址","粘贴 bundleUrl 并点击开始按钮","访问调试首页开始远程调试,远程调试支持热更新(HMR)"],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"}}}),methods:{blurInput(e){e.stopPropagation(),this.$refs.input.blur()},openBundle(){this.bundleUrl&&r.default.Native.callNative("TestModule","remoteDebug",this.$root.$options.rootViewId,this.bundleUrl)},stopPropagation(e){e.stopPropagation()},clearTextContent(){this.bundleUrl=""},getChildNodes:e=>r.default.Native?e:Array.from(e)}},Pt=(a("./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&"),Object(n.a)(At,kt,[],!1,null,"66065e90",null));Pt.options.__file="src/pages/remote-debug.vue";var Et=Pt.exports;t.a={disableAutoBack:!1,routes:[{path:"/",component:wt},{path:"/remote-debug",component:Et,name:"调试"},...Object.keys(ce).map(e=>({path:"/demo/"+e,name:ce[e].name,component:ce[e].component})),...Object.keys(Ct).map(e=>({path:"/demo/"+e,name:Ct[e].name,component:Ct[e].component}))]}},"./src/util.js":function(e,t,a){"use strict";let o;function r(e){o=e}function s(){return o}a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return s}))},0:function(e,t,a){e.exports=a("./src/main-native.js")},"dll-reference hippyVueBase":function(e,t){e.exports=hippyVueBase}}); \ No newline at end of file diff --git a/framework/voltron/example/assets/jsbundle/vue2/vendor.android.js b/framework/voltron/example/assets/jsbundle/vue2/vendor.android.js index 8d1bf466091..4ebb85124a2 100644 --- a/framework/voltron/example/assets/jsbundle/vue2/vendor.android.js +++ b/framework/voltron/example/assets/jsbundle/vue2/vendor.android.js @@ -1,8 +1,8 @@ -var hippyVueBase=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},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-native-components/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"AnimationComponent",(function(){return u})),n.d(t,"DialogComponent",(function(){return d})),n.d(t,"ListRefreshComponent",(function(){return h})),n.d(t,"PullsComponents",(function(){return y})),n.d(t,"SwiperComponent",(function(){return m})),n.d(t,"WaterfallComponent",(function(){return g})),n.d(t,"default",(function(){return v}));const o=["mode","valueType","startValue","toValue"],r=["transform"],i=["transform"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(e){for(var t=1;t=0||(r[n]=e[n]);return r} +var hippyVueBase=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},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-native-components/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"AnimationComponent",(function(){return u})),n.d(t,"DialogComponent",(function(){return d})),n.d(t,"ListRefreshComponent",(function(){return h})),n.d(t,"PullsComponents",(function(){return y})),n.d(t,"SwiperComponent",(function(){return m})),n.d(t,"WaterfallComponent",(function(){return g})),n.d(t,"default",(function(){return v}));const o=["mode","valueType","startValue","toValue"],r=["transform"],i=["transform"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function u(t){const n={valueType:void 0,delay:0,startValue:0,toValue:0,duration:0,direction:"center",timingFunction:"linear",repeatCount:0,inputRange:[],outputRange:[]};function s(e,n){return"color"===e&&["number","string"].indexOf(typeof n)>=0?t.Native.parseColor(n):n}function c(t){const{mode:r="timing",valueType:i,startValue:c,toValue:d}=t,f=l(t,o),p=a(a({},n),f);void 0!==i&&(p.valueType=t.valueType),p.startValue=s(p.valueType,c),p.toValue=s(p.valueType,d),p.repeatCount=u(p.repeatCount),p.mode=r;const h=new e.Hippy.Animation(p),m=h.getId();return{animation:h,animationId:m}}function u(e){return"loop"===e?-1:e}function d(t,n={}){const o={};return Object.keys(t).forEach(r=>{if(Array.isArray(t[r])){const i=t[r],{repeatCount:s}=i[i.length-1],a=i.map(e=>{const{animationId:t,animation:o}=c(Object.assign({},e,{repeatCount:0}));return Object.assign(n,{[t]:o}),{animationId:t,follow:!0}}),{animationId:l,animation:d}=function(t,n=0){const o=new e.Hippy.AnimationSet({children:t,repeatCount:n}),r=o.getId();return{animation:o,animationId:r}}(a,u(s));o[r]={animationId:l},Object.assign(n,{[l]:d})}else{const e=t[r],{animationId:i,animation:s}=c(e);Object.assign(n,{[i]:s}),o[r]={animationId:i}}}),o}function f(e){const{transform:t}=e,n=l(e,r);let o=Object.keys(n).map(t=>e[t].animationId);if(Array.isArray(t)&&t.length>0){const e=[];t.forEach(t=>Object.keys(t).forEach(n=>{if(t[n]){const{animationId:o}=t[n];"number"==typeof o&&o%1==0&&e.push(o)}})),o=[...o,...e]}return o}t.component("Animation",{inheritAttrs:!1,props:{tag:{type:String,default:"div"},playing:{type:Boolean,default:!1},actions:{type:Object,required:!0},props:Object},data:()=>({style:{},animationIds:[],animationIdsMap:{},animationEventMap:{}}),watch:{playing(e,t){!t&&e?this.start():t&&!e&&this.pause()},actions(){this.destroy(),this.create(),setTimeout(()=>{"function"==typeof this.$listeners.actionsDidUpdate&&this.$listeners.actionsDidUpdate()})}},created(){this.animationEventMap={start:"animationstart",end:"animationend",repeat:"animationrepeat",cancel:"animationcancel"}},beforeMount(){this.create()},mounted(){const{playing:e}=this.$props;e&&setTimeout(()=>{this.start()},0)},beforeDestroy(){this.destroy()},methods:{create(){const e=this.$props,{actions:{transform:t}}=e,n=l(e.actions,i);this.animationIdsMap={};const o=d(n,this.animationIdsMap);if(t){const e=d(t,this.animationIdsMap);o.transform=Object.keys(e).map(t=>({[t]:e[t]}))}this.$alreadyStarted=!1,this.style=o},removeAnimationEvent(){this.animationIds.forEach(e=>{const t=this.animationIdsMap[e];t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$listeners[e])return;const n=this.animationEventMap[e];n&&t.removeEventListener(n)})})},addAnimationEvent(){this.animationIds.forEach(e=>{const t=this.animationIdsMap[e];t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$listeners[e])return;const n=this.animationEventMap[e];n&&t.addEventListener(n,()=>{this.$emit(e)})})})},reset(){this.$alreadyStarted=!1},start(){this.$alreadyStarted?this.resume():(this.animationIds=f(this.style),this.$alreadyStarted=!0,this.removeAnimationEvent(),this.addAnimationEvent(),this.animationIds.forEach(e=>{const t=this.animationIdsMap[e];null==t||t.start()}))},resume(){f(this.style).forEach(e=>{const t=this.animationIdsMap[e];null==t||t.resume()})},pause(){if(!this.$alreadyStarted)return;f(this.style).forEach(e=>{const t=this.animationIdsMap[e];null==t||t.pause()})},destroy(){this.removeAnimationEvent(),this.$alreadyStarted=!1;f(this.style).forEach(e=>{const t=this.animationIdsMap[e];null==t||t.destroy()})}},template:'\n \n \n \n '})}function d(e){e.registerElement("hi-dialog",{component:{name:"Modal",defaultNativeStyle:{position:"absolute"}}}),e.component("Dialog",{inheritAttrs:!1,props:{collapsable:{type:Boolean,default:!1},transparent:{type:Boolean,default:!0},immersionStatusBar:{type:Boolean,default:!0},autoHideStatusBar:{type:Boolean,default:!1},autoHideNavigationBar:{type:Boolean,default:!1}},render(e){const t=(n=this.$slots.default)?Array.isArray(n)?n[0]:n||void 0:null;var n;t&&(t.data.attrs?Object.assign(t.data.attrs,{__modalFirstChild__:!0}):t.data.attrs={__modalFirstChild__:!0});const{collapsable:o,transparent:r,immersionStatusBar:i,autoHideStatusBar:s,autoHideNavigationBar:c}=this;return e("hi-dialog",{on:a({},this.$listeners),attrs:{collapsable:o,transparent:r,immersionStatusBar:i,autoHideStatusBar:s,autoHideNavigationBar:c}},this.$slots.default)}})}function f(e){return"string"!=typeof e?"":`${e.charAt(0).toUpperCase()}${e.slice(1)}`}function p(e){const t={};return e.forEach(e=>{if(Array.isArray(e)){const[n,o]=e;Object.prototype.hasOwnProperty.call(this.$listeners,n)&&(this["on"+f(o)]?t[e]=this["on"+f(o)]:t[e]=e=>this.$emit(n,e))}else Object.prototype.hasOwnProperty.call(this.$listeners,e)&&(this["on"+f(e)]?t[e]=this["on"+f(e)]:t[e]=t=>this.$emit(e,t))}),t}function h(e){e.registerElement("hi-ul-refresh-wrapper",{component:{name:"RefreshWrapper"}}),e.registerElement("hi-refresh-wrapper-item",{component:{name:"RefreshWrapperItemView"}}),e.component("UlRefreshWrapper",{inheritAttrs:!1,props:{bounceTime:{type:Number,defaultValue:100}},methods:{startRefresh(){e.Native.callUIFunction(this.$refs.refreshWrapper,"startRefresh",null)},refreshCompleted(){e.Native.callUIFunction(this.$refs.refreshWrapper,"refreshComplected",null)}},render(e){return e("hi-ul-refresh-wrapper",{on:p.call(this,["refresh"]),ref:"refreshWrapper"},this.$slots.default)}}),e.component("UlRefresh",{inheritAttrs:!1,template:"\n \n
\n \n
\n
\n "})}function m(e){e.registerElement("hi-swiper",{component:{name:"ViewPager",processEventData(e,t,n){switch(t){case"onPageSelected":e.currentSlide=n.position;break;case"onPageScroll":e.nextSlide=n.position,e.offset=n.offset;break;case"onPageScrollStateChanged":e.state=n.pageScrollState}return e}}}),e.registerElement("swiper-slide",{component:{name:"ViewPagerItem",defaultNativeStyle:{position:"absolute",top:0,right:0,bottom:0,left:0}}}),e.component("Swiper",{inheritAttrs:!1,props:{current:{type:Number,defaultValue:0},needAnimation:{type:Boolean,defaultValue:!0}},watch:{current(e){this.$props.needAnimation?this.setSlide(e):this.setSlideWithoutAnimation(e)}},beforeMount(){this.$initialSlide=this.$props.current},methods:{setSlide(t){e.Native.callUIFunction(this.$refs.swiper,"setPage",[t])},setSlideWithoutAnimation(t){e.Native.callUIFunction(this.$refs.swiper,"setPageWithoutAnimation",[t])}},render(e){return e("hi-swiper",{on:p.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]),ref:"swiper",attrs:{initialPage:this.$initialSlide}},this.$slots.default)}})}function y(e){const{callUIFunction:t}=e.Native;[["Header","header"],["Footer","footer"]].forEach(([n,o])=>{e.registerElement("hi-pull-"+o,{component:{name:`Pull${n}View`,processEventData(e,t,o){switch(t){case`on${n}Released`:case`on${n}Pulling`:Object.assign(e,o)}return e}}}),e.component("pull-"+o,{methods:{["expandPull"+n](){t(this.$refs.instance,"expandPull"+n)},["collapsePull"+n](e){"Header"===n&&void 0!==e?t(this.$refs.instance,`collapsePull${n}WithOptions`,[e]):t(this.$refs.instance,"collapsePull"+n)},onLayout(e){this.$contentHeight=e.height},[`on${n}Released`](e){this.$emit("released",e)},[`on${n}Pulling`](e){e.contentOffset>this.$contentHeight?"pulling"!==this.$lastEvent&&(this.$lastEvent="pulling",this.$emit("pulling",e)):"idle"!==this.$lastEvent&&(this.$lastEvent="idle",this.$emit("idle",e))}},render(e){const{released:t,pulling:r,idle:i}=this.$listeners,s={layout:this.onLayout};return"function"==typeof t&&(s[o+"Released"]=this[`on${n}Released`]),"function"!=typeof r&&"function"!=typeof i||(s[o+"Pulling"]=this[`on${n}Pulling`]),e("hi-pull-"+o,{on:s,ref:"instance"},this.$slots.default)}})})}function g(e){e.registerElement("hi-waterfall",{component:{name:"WaterfallView",processEventData(e,t,n){switch(t){case"onExposureReport":e.exposureInfo=n.exposureInfo;break;case"onScroll":{const{startEdgePos:t,endEdgePos:o,firstVisibleRowIndex:r,lastVisibleRowIndex:i,visibleRowFrames:s}=n;Object.assign(e,{startEdgePos:t,endEdgePos:o,firstVisibleRowIndex:r,lastVisibleRowIndex:i,visibleRowFrames:s});break}}return e}}}),e.registerElement("hi-waterfall-item",{component:{name:"WaterfallItem"}}),e.component("Waterfall",{inheritAttrs:!1,props:{numberOfColumns:{type:Number,default:2},contentInset:{type:Object,default:()=>({top:0,left:0,bottom:0,right:0})},columnSpacing:{type:Number,default:0},interItemSpacing:{type:Number,default:0},preloadItemNumber:{type:Number,default:0},containBannerView:{type:Boolean,default:!1},containPullHeader:{type:Boolean,default:!1},containPullFooter:{type:Boolean,default:!1}},methods:{call(t,n){e.Native.callUIFunction(this.$refs.waterfall,t,n)},startRefresh(){this.call("startRefresh")},startRefreshWithType(e){this.call("startRefreshWithType",[e])},callExposureReport(){this.call("callExposureReport",[])},scrollToIndex({index:e=0,animated:t=!0}){"number"==typeof e&&"boolean"==typeof t&&this.call("scrollToIndex",[e,e,t])},scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&this.call("scrollToContentOffset",[e,t,n])},startLoadMore(){this.call("startLoadMore")}},render(e){return e("hi-waterfall",{on:p.call(this,["headerReleased","headerPulling","endReached","exposureReport","initialListReady","scroll"]),ref:"waterfall",attrs:{numberOfColumns:this.numberOfColumns,contentInset:this.contentInset,columnSpacing:this.columnSpacing,interItemSpacing:this.interItemSpacing,preloadItemNumber:this.preloadItemNumber,containBannerView:this.containBannerView,containPullHeader:this.containPullHeader,containPullFooter:this.containPullFooter}},this.$slots.default)}}),e.component("WaterfallItem",{inheritAttrs:!1,props:{type:{type:[String,Number],default:""}},render(e){return e("hi-waterfall-item",{on:a({},this.$listeners),attrs:{type:this.type}},this.$slots.default)}})}const v={install(e){u(e),d(e),h(e),m(e),y(e),g(e)}}}.call(this,n("./node_modules/webpack/buildin/global.js"))},"../../packages/hippy-vue/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e,o,r){function i(){i=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,o,r){var i=new RegExp(e,o);return t.set(i,r||t.get(e)),a(i,n.prototype)}function o(e,n){var o=t.get(n);return Object.keys(o).reduce((function(t,n){var r=o[n];if("number"==typeof r)t[n]=e[r];else{for(var i=0;void 0===e[r[i]]&&i+1]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof r){var s=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(o(e,s)),r.apply(this,e)}))}return e[Symbol.replace].call(this,n,r)},i.apply(this,arguments)}function s(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&&a(e,t)}function a(e,t){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function l(e){for(var t=1;t=0?t.Native.parseColor(n):n}function c(t){const{mode:r="timing",valueType:i,startValue:c,toValue:d}=t,f=l(t,o),p=a(a({},n),f);void 0!==i&&(p.valueType=t.valueType),p.startValue=s(p.valueType,c),p.toValue=s(p.valueType,d),p.repeatCount=u(p.repeatCount),p.mode=r;const h=new e.Hippy.Animation(p),m=h.getId();return{animation:h,animationId:m}}function u(e){return"loop"===e?-1:e}function d(t,n={}){const o={};return Object.keys(t).forEach(r=>{if(Array.isArray(t[r])){const i=t[r],{repeatCount:s}=i[i.length-1],a=i.map(e=>{const{animationId:t,animation:o}=c(Object.assign({},e,{repeatCount:0}));return Object.assign(n,{[t]:o}),{animationId:t,follow:!0}}),{animationId:l,animation:d}=function(t,n=0){const o=new e.Hippy.AnimationSet({children:t,repeatCount:n}),r=o.getId();return{animation:o,animationId:r}}(a,u(s));o[r]={animationId:l},Object.assign(n,{[l]:d})}else{const e=t[r],{animationId:i,animation:s}=c(e);Object.assign(n,{[i]:s}),o[r]={animationId:i}}}),o}function f(e){const{transform:t}=e,n=l(e,r);let o=Object.keys(n).map(t=>e[t].animationId);if(Array.isArray(t)&&t.length>0){const e=[];t.forEach(t=>Object.keys(t).forEach(n=>{if(t[n]){const{animationId:o}=t[n];"number"==typeof o&&o%1==0&&e.push(o)}})),o=[...o,...e]}return o}t.component("Animation",{inheritAttrs:!1,props:{tag:{type:String,default:"div"},playing:{type:Boolean,default:!1},actions:{type:Object,required:!0},props:Object},data:()=>({style:{},animationIds:[],animationIdsMap:{},animationEventMap:{}}),watch:{playing(e,t){!t&&e?this.start():t&&!e&&this.pause()},actions(){this.destroy(),this.create(),setTimeout(()=>{"function"==typeof this.$listeners.actionsDidUpdate&&this.$listeners.actionsDidUpdate()})}},created(){this.animationEventMap={start:"animationstart",end:"animationend",repeat:"animationrepeat",cancel:"animationcancel"}},beforeMount(){this.create()},mounted(){const{playing:e}=this.$props;e&&setTimeout(()=>{this.start()},0)},beforeDestroy(){this.destroy()},methods:{create(){const e=this.$props,{actions:{transform:t}}=e,n=l(e.actions,i);this.animationIdsMap={};const o=d(n,this.animationIdsMap);if(t){const e=d(t,this.animationIdsMap);o.transform=Object.keys(e).map(t=>({[t]:e[t]}))}this.$alreadyStarted=!1,this.style=o},removeAnimationEvent(){this.animationIds.forEach(e=>{const t=this.animationIdsMap[e];t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$listeners[e])return;const n=this.animationEventMap[e];n&&t.removeEventListener(n)})})},addAnimationEvent(){this.animationIds.forEach(e=>{const t=this.animationIdsMap[e];t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$listeners[e])return;const n=this.animationEventMap[e];n&&t.addEventListener(n,()=>{this.$emit(e)})})})},reset(){this.$alreadyStarted=!1},start(){this.$alreadyStarted?this.resume():(this.animationIds=f(this.style),this.$alreadyStarted=!0,this.removeAnimationEvent(),this.addAnimationEvent(),this.animationIds.forEach(e=>{const t=this.animationIdsMap[e];null==t||t.start()}))},resume(){f(this.style).forEach(e=>{const t=this.animationIdsMap[e];null==t||t.resume()})},pause(){if(!this.$alreadyStarted)return;f(this.style).forEach(e=>{const t=this.animationIdsMap[e];null==t||t.pause()})},destroy(){this.removeAnimationEvent(),this.$alreadyStarted=!1;f(this.style).forEach(e=>{const t=this.animationIdsMap[e];null==t||t.destroy()})}},template:'\n \n \n \n '})}function d(e){e.registerElement("hi-dialog",{component:{name:"Modal",defaultNativeStyle:{position:"absolute"}}}),e.component("Dialog",{inheritAttrs:!1,props:{collapsable:{type:Boolean,default:!1},transparent:{type:Boolean,default:!0},immersionStatusBar:{type:Boolean,default:!0},autoHideStatusBar:{type:Boolean,default:!1},autoHideNavigationBar:{type:Boolean,default:!1}},render(e){const t=(n=this.$slots.default)?Array.isArray(n)?n[0]:n||void 0:null;var n;t&&(t.data.attrs?Object.assign(t.data.attrs,{__modalFirstChild__:!0}):t.data.attrs={__modalFirstChild__:!0});const{collapsable:o,transparent:r,immersionStatusBar:i,autoHideStatusBar:s,autoHideNavigationBar:c}=this;return e("hi-dialog",{on:a({},this.$listeners),attrs:{collapsable:o,transparent:r,immersionStatusBar:i,autoHideStatusBar:s,autoHideNavigationBar:c}},this.$slots.default)}})}function f(e){return"string"!=typeof e?"":`${e.charAt(0).toUpperCase()}${e.slice(1)}`}function p(e){const t={};return e.forEach(e=>{if(Array.isArray(e)){const[n,o]=e;Object.prototype.hasOwnProperty.call(this.$listeners,n)&&(this["on"+f(o)]?t[e]=this["on"+f(o)]:t[e]=e=>this.$emit(n,e))}else Object.prototype.hasOwnProperty.call(this.$listeners,e)&&(this["on"+f(e)]?t[e]=this["on"+f(e)]:t[e]=t=>this.$emit(e,t))}),t}function h(e){e.registerElement("hi-ul-refresh-wrapper",{component:{name:"RefreshWrapper",processEventData(e,t,n){switch(t){case"onScroll":e.offsetX=n.contentOffset.x,e.offsetY=n.contentOffset.y}return e}}}),e.registerElement("hi-refresh-wrapper-item",{component:{name:"RefreshWrapperItemView"}}),e.component("UlRefreshWrapper",{inheritAttrs:!1,props:{bounceTime:{type:Number,defaultValue:100}},methods:{startRefresh(){e.Native.callUIFunction(this.$refs.refreshWrapper,"startRefresh",null)},refreshCompleted(){e.Native.callUIFunction(this.$refs.refreshWrapper,"refreshComplected",null)}},render(e){return e("hi-ul-refresh-wrapper",{on:p.call(this,["refresh","scroll"]),ref:"refreshWrapper"},this.$slots.default)}}),e.component("UlRefresh",{inheritAttrs:!1,template:"\n \n
\n \n
\n
\n "})}function m(e){e.registerElement("hi-swiper",{component:{name:"ViewPager",processEventData(e,t,n){switch(t){case"onPageSelected":e.currentSlide=n.position;break;case"onPageScroll":e.nextSlide=n.position,e.offset=n.offset;break;case"onPageScrollStateChanged":e.state=n.pageScrollState}return e}}}),e.registerElement("swiper-slide",{component:{name:"ViewPagerItem",defaultNativeStyle:{position:"absolute",top:0,right:0,bottom:0,left:0}}}),e.component("Swiper",{inheritAttrs:!1,props:{current:{type:Number,defaultValue:0},needAnimation:{type:Boolean,defaultValue:!0}},watch:{current(e){this.$props.needAnimation?this.setSlide(e):this.setSlideWithoutAnimation(e)}},beforeMount(){this.$initialSlide=this.$props.current},methods:{setSlide(t){e.Native.callUIFunction(this.$refs.swiper,"setPage",[t])},setSlideWithoutAnimation(t){e.Native.callUIFunction(this.$refs.swiper,"setPageWithoutAnimation",[t])}},render(e){return e("hi-swiper",{on:p.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]),ref:"swiper",attrs:{initialPage:this.$initialSlide}},this.$slots.default)}})}function y(e){const{callUIFunction:t}=e.Native;[["Header","header"],["Footer","footer"]].forEach(([n,o])=>{e.registerElement("hi-pull-"+o,{component:{name:`Pull${n}View`,processEventData(e,t,o){switch(t){case`on${n}Released`:case`on${n}Pulling`:Object.assign(e,o)}return e}}}),e.component("pull-"+o,{methods:{["expandPull"+n](){t(this.$refs.instance,"expandPull"+n)},["collapsePull"+n](e){"Header"===n&&void 0!==e?t(this.$refs.instance,`collapsePull${n}WithOptions`,[e]):t(this.$refs.instance,"collapsePull"+n)},onLayout(e){this.$contentHeight=e.height},[`on${n}Released`](e){this.$emit("released",e)},[`on${n}Pulling`](e){e.contentOffset>this.$contentHeight?"pulling"!==this.$lastEvent&&(this.$lastEvent="pulling",this.$emit("pulling",e)):"idle"!==this.$lastEvent&&(this.$lastEvent="idle",this.$emit("idle",e))}},render(e){const{released:t,pulling:r,idle:i}=this.$listeners,s={layout:this.onLayout};return"function"==typeof t&&(s[o+"Released"]=this[`on${n}Released`]),"function"!=typeof r&&"function"!=typeof i||(s[o+"Pulling"]=this[`on${n}Pulling`]),e("hi-pull-"+o,{on:s,ref:"instance"},this.$slots.default)}})})}function g(e){e.registerElement("hi-waterfall",{component:{name:"WaterfallView",processEventData(e,t,n){switch(t){case"onExposureReport":e.exposureInfo=n.exposureInfo;break;case"onScroll":{const{startEdgePos:t,endEdgePos:o,firstVisibleRowIndex:r,lastVisibleRowIndex:i,visibleRowFrames:s}=n;Object.assign(e,{startEdgePos:t,endEdgePos:o,firstVisibleRowIndex:r,lastVisibleRowIndex:i,visibleRowFrames:s});break}}return e}}}),e.registerElement("hi-waterfall-item",{component:{name:"WaterfallItem"}}),e.component("Waterfall",{inheritAttrs:!1,props:{numberOfColumns:{type:Number,default:2},contentInset:{type:Object,default:()=>({top:0,left:0,bottom:0,right:0})},columnSpacing:{type:Number,default:0},interItemSpacing:{type:Number,default:0},preloadItemNumber:{type:Number,default:0},containBannerView:{type:Boolean,default:!1},containPullHeader:{type:Boolean,default:!1},containPullFooter:{type:Boolean,default:!1}},methods:{call(t,n){e.Native.callUIFunction(this.$refs.waterfall,t,n)},startRefresh(){this.call("startRefresh")},startRefreshWithType(e){this.call("startRefreshWithType",[e])},callExposureReport(){this.call("callExposureReport",[])},scrollToIndex({index:e=0,animated:t=!0}){"number"==typeof e&&"boolean"==typeof t&&this.call("scrollToIndex",[e,e,t])},scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&this.call("scrollToContentOffset",[e,t,n])},startLoadMore(){this.call("startLoadMore")}},render(e){return e("hi-waterfall",{on:p.call(this,["headerReleased","headerPulling","endReached","exposureReport","initialListReady","scroll"]),ref:"waterfall",attrs:{numberOfColumns:this.numberOfColumns,contentInset:this.contentInset,columnSpacing:this.columnSpacing,interItemSpacing:this.interItemSpacing,preloadItemNumber:this.preloadItemNumber,containBannerView:this.containBannerView,containPullHeader:this.containPullHeader,containPullFooter:this.containPullFooter}},this.$slots.default)}}),e.component("WaterfallItem",{inheritAttrs:!1,props:{type:{type:[String,Number],default:""}},render(e){return e("hi-waterfall-item",{on:a({},this.$listeners),attrs:{type:this.type}},this.$slots.default)}})}const v={install(e){u(e),d(e),h(e),m(e),y(e),g(e)}}}.call(this,n("./node_modules/webpack/buildin/global.js"))},"../../packages/hippy-vue/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e,o,r){function i(){i=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,o,r){var i=RegExp(e,o);return t.set(i,r||t.get(e)),a(i,n.prototype)}function o(e,n){var o=t.get(n);return Object.keys(o).reduce((function(t,n){var r=o[n];if("number"==typeof r)t[n]=e[r];else{for(var i=0;void 0===e[r[i]]&&i+1]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof r){var s=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(o(e,s)),r.apply(this,e)}))}return e[Symbol.replace].call(this,n,r)},i.apply(this,arguments)}function s(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&&a(e,t)}function a(e,t){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function l(e){for(var t=1;t=0&&Math.floor(t)===t&&isFinite(e)}function w(e){return p(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function $(e){return null==e?"":Array.isArray(e)||v(e)&&e.toString===g?JSON.stringify(e,null,2):String(e)}function S(e){const t=parseFloat(e);return isNaN(t)?e:t}function x(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;en[e.toLowerCase()]:e=>n[e]}const k=x("slot,component",!0),O=x("key,ref,slot,slot-scope,is");function N(e,t){if(e.length){const n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}const C=Object.prototype.hasOwnProperty;function E(e,t){return C.call(e,t)}function I(e){const t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}const A=/-(\w)/g,T=I(e=>e.replace(A,(e,t)=>t?t.toUpperCase():"")),P=I(e=>e.charAt(0).toUpperCase()+e.slice(1)),j=/\B([A-Z])/g,L=I(e=>e.replace(j,"-$1").toLowerCase());const M=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){const o=arguments.length;return o?o>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function D(e,t){t=t||0;let n=e.length-t;const o=new Array(n);for(;n--;)o[n]=e[n+t];return o}function F(e,t){for(const n in t)e[n]=t[n];return e}function R(e,t,n){}const V=(e,t,n)=>!1,B=e=>e;function U(e,t){if(e===t)return!0;const n=y(e),o=y(t);if(!n||!o)return!n&&!o&&String(e)===String(t);try{const n=Array.isArray(e),o=Array.isArray(t);if(n&&o)return e.length===t.length&&e.every((e,n)=>U(e,t[n]));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(n||o)return!1;{const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every(n=>U(e[n],t[n]))}}catch(e){return!1}}function H(e,t){for(let n=0;n!1,ce=e.__VUE_DEVTOOLS_GLOBAL_HOOK__;function le(e){return"function"==typeof e&&/native code/.test(e.toString())}const ue="undefined"!=typeof Symbol&&le(Symbol)&&"undefined"!=typeof Reflect&&le(Reflect.ownKeys);let de;de="undefined"!=typeof Set&&le(Set)?Set:class{constructor(){this.set=Object.create(null)}has(e){return!0===this.set[e]}add(e){this.set[e]=!0}clear(){this.set=Object.create(null)}};let fe=R;let pe=0;class he{constructor(){this.id=pe++,this.subs=[]}addSub(e){this.subs.push(e)}removeSub(e){N(this.subs,e)}depend(){he.target&&he.target.addDep(this)}notify(){const e=this.subs.slice();for(let t=0,n=e.length;t{const t=new ve;return t.text=e,t.isComment=!0,t};function _e(e){return new ve(void 0,void 0,void 0,String(e))}function we(e){const t=new ve(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}const $e=Array.prototype,Se=Object.create($e);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){const t=$e[e];X(Se,e,(function(...n){const o=t.apply(this,n),r=this.__ob__;let i;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&r.observeArray(i),r.dep.notify(),o}))}));const xe=Object.getOwnPropertyNames(Se);let ke=!0;function Oe(e){ke=e}class Ne{constructor(e){this.value=e,this.dep=new he,this.vmCount=0,X(e,"__ob__",this),Array.isArray(e)?(Z?function(e,t){e.__proto__=t}(e,Se):function(e,t,n){for(let o=0,r=n.length;o{Pe[e]=Me}),z.forEach((function(e){Pe[e+"s"]=De})),Pe.watch=function(e,t,n,o){if(e===ie&&(e=void 0),t===ie&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;const r={};F(r,e);for(const e in t){let n=r[e];const o=t[e];n&&!Array.isArray(n)&&(n=[n]),r[e]=n?n.concat(o):Array.isArray(o)?o:[o]}return r},Pe.props=Pe.methods=Pe.inject=Pe.computed=function(e,t,n,o){if(!e)return t;const r=Object.create(null);return F(r,e),t&&F(r,t),r},Pe.provide=Le;const Fe=function(e,t){return void 0===t?e:t};function Re(e,t,n){if("function"==typeof t&&(t=t.options),function(e,t){const n=e.props;if(!n)return;const o={};let r,i,s;if(Array.isArray(n))for(r=n.length;r--;)i=n[r],"string"==typeof i&&(s=T(i),o[s]={type:null});else if(v(n))for(const e in n)i=n[e],s=T(e),o[s]=v(i)?i:{type:i};else 0;e.props=o}(t),function(e,t){const n=e.inject;if(!n)return;const o=e.inject={};if(Array.isArray(n))for(let e=0;e-1)if(i&&!E(r,"default"))s=!1;else if(""===s||s===L(e)){const e=ze(String,r.type);(e<0||aYe(e,o,r+" (Promise/async)")),i._handled=!0)}catch(e){Ye(e,o,r)}return i}function Ge(e,t,n){if(K.errorHandler)try{return K.errorHandler.call(null,e,t,n)}catch(t){t!==e&&qe(t,null,"config.errorHandler")}qe(e,t,n)}function qe(e,t,n){if(!Q&&!ee||"undefined"==typeof console)throw e;console.error(e)}const Xe=[];let Je,Ze=!1;function Qe(){Ze=!1;const e=Xe.slice(0);Xe.length=0;for(let t=0;t{e.then(Qe),re&&setTimeout(R)}}else if(oe||"undefined"==typeof MutationObserver||!le(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Je=void 0!==o&&le(o)?()=>{o(Qe)}:()=>{setTimeout(Qe,0)};else{let e=1;const t=new MutationObserver(Qe),n=document.createTextNode(String(e));t.observe(n,{characterData:!0}),Je=()=>{e=(e+1)%2,n.data=String(e)}}function et(e,t){let n;if(Xe.push(()=>{if(e)try{e.call(t)}catch(e){Ye(e,t,"nextTick")}else n&&n(t)}),Ze||(Ze=!0,Je()),!e&&"undefined"!=typeof Promise)return new Promise(e=>{n=e})}const tt=new de;function nt(e){!function e(t,n){let o,r;const i=Array.isArray(t);if(!i&&!y(t)||Object.isFrozen(t)||t instanceof ve)return;if(t.__ob__){const e=t.__ob__.dep.id;if(n.has(e))return;n.add(e)}if(i)for(o=t.length;o--;)e(t[o],n);else for(r=Object.keys(t),o=r.length;o--;)e(t[r[o]],n)}(e,tt),tt.clear()}const ot=I(e=>{const t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),o="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=o?e.slice(1):e,once:n,capture:o,passive:t}});function rt(e,t){function n(){const e=n.fns;if(!Array.isArray(e))return Ke(e,null,arguments,t,"v-on handler");{const n=e.slice();for(let e=0;e0&&(i=e(i,`${n||""}_${r}`),lt(i[0])&<(a)&&(o[s]=_e(a.text+i[0].text),i.shift()),o.push.apply(o,i)):m(i)?lt(a)?o[s]=_e(a.text+i):""!==i&&o.push(_e(i)):lt(i)&<(a)?o[s]=_e(a.text+i.text):(h(t._isVList)&&p(i.tag)&&f(i.key)&&p(n)&&(i.key=`__vlist${n}_${r}__`),o.push(i)));return o}(e):void 0}function lt(e){return p(e)&&p(e.text)&&!1===e.isComment}function ut(e,t){if(e){const n=Object.create(null),o=ue?Reflect.ownKeys(e):Object.keys(e);for(let r=0;r0,i=e?!!e.$stable:!r,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(i&&n&&n!==d&&s===n.$key&&!r&&!n.$hasNormal)return n;o={};for(const n in e)e[n]&&"$"!==n[0]&&(o[n]=mt(t,n,e[n]))}else o={};for(const e in t)e in o||(o[e]=yt(t,e));return e&&Object.isExtensible(e)&&(e._normalized=o),X(o,"$stable",i),X(o,"$key",s),X(o,"$hasNormal",r),o}function mt(e,t,n){const o=function(){let e=arguments.length?n.apply(null,arguments):n({});e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:ct(e);let t=e&&e[0];return e&&(!t||1===e.length&&t.isComment&&!pt(t))?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:o,enumerable:!0,configurable:!0}),o}function yt(e,t){return()=>e[t]}function gt(e,t){let n,o,r,i,s;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),o=0,r=e.length;o(this.$slots||ht(e.scopedSlots,this.$slots=dt(n,o)),this.$slots),Object.defineProperty(this,"scopedSlots",{enumerable:!0,get(){return ht(e.scopedSlots,this.slots())}}),a&&(this.$options=i,this.$slots=this.slots(),this.$scopedSlots=ht(e.scopedSlots,this.$slots)),i._scopeId?this._c=(e,t,n,r)=>{const a=Rt(s,e,t,n,r,c);return a&&!Array.isArray(a)&&(a.fnScopeId=i._scopeId,a.fnContext=o),a}:this._c=(e,t,n,o)=>Rt(s,e,t,n,o,c)}function Pt(e,t,n,o,r){const i=we(e);return i.fnContext=n,i.fnOptions=o,t.slot&&((i.data||(i.data={})).slot=t.slot),i}function jt(e,t){for(const n in t)e[T(n)]=t[n]}At(Tt.prototype);const Lt={init(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){const t=e;Lt.prepatch(t,t)}else{(e.componentInstance=function(e,t){const n={_isComponent:!0,_parentVnode:e,parent:t},o=e.data.inlineTemplate;p(o)&&(n.render=o.render,n.staticRenderFns=o.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,Kt)).$mount(t?e.elm:void 0,t)}},prepatch(e,t){const n=t.componentOptions;!function(e,t,n,o,r){0;const i=o.data.scopedSlots,s=e.$scopedSlots,a=!!(i&&!i.$stable||s!==d&&!s.$stable||i&&e.$scopedSlots.$key!==i.$key||!i&&e.$scopedSlots.$key),c=!!(r||e.$options._renderChildren||a);e.$options._parentVnode=o,e.$vnode=o,e._vnode&&(e._vnode.parent=o);if(e.$options._renderChildren=r,e.$attrs=o.data.attrs||d,e.$listeners=n||d,t&&e.$options.props){Oe(!1);const n=e._props,o=e.$options._propKeys||[];for(let r=0;rN(o,n));const a=e=>{for(let e=0,t=o.length;e{e.resolved=Ut(n,t),r?o.length=0:a(!0)}),l=W(t=>{p(e.errorComp)&&(e.error=!0,a(!0))}),u=e(c,l);return y(u)&&(w(u)?f(e.resolved)&&u.then(c,l):w(u.component)&&(u.component.then(c,l),p(u.error)&&(e.errorComp=Ut(u.error,t)),p(u.loading)&&(e.loadingComp=Ut(u.loading,t),0===u.delay?e.loading=!0:i=setTimeout(()=>{i=null,f(e.resolved)&&f(e.error)&&(e.loading=!0,a(!1))},u.delay||200)),p(u.timeout)&&(s=setTimeout(()=>{s=null,f(e.resolved)&&l(null)},u.timeout)))),r=!1,e.loading?e.loadingComp:e.resolved}}(s,i))))return function(e,t,n,o,r){const i=be();return i.asyncFactory=e,i.asyncMeta={data:t,context:n,children:o,tag:r},i}(s,t,n,o,r);t=t||{},yn(e),p(t.model)&&function(e,t){const n=e.model&&e.model.prop||"value",o=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;const r=t.on||(t.on={}),i=r[o],s=t.model.callback;p(i)?(Array.isArray(i)?-1===i.indexOf(s):i!==s)&&(r[o]=[s].concat(i)):r[o]=s}(e.options,t);const a=function(e,t,n){const o=t.options.props;if(f(o))return;const r={},{attrs:i,props:s}=e;if(p(i)||p(s))for(const e in o){const t=L(e);0,at(r,s,e,t,!0)||at(r,i,e,t,!1)}return r}(t,e);if(h(e.options.functional))return function(e,t,n,o,r){const i=e.options,s={},a=i.props;if(p(a))for(const e in a)s[e]=Be(e,a,t||d);else p(n.attrs)&&jt(s,n.attrs),p(n.props)&&jt(s,n.props);const c=new Tt(n,s,r,o,e),l=i.render.call(null,c._c,c);if(l instanceof ve)return Pt(l,n,c.parent,i,c);if(Array.isArray(l)){const e=ct(l)||[],t=new Array(e.length);for(let o=0;o{e(n,o),t(n,o)};return n._merged=!0,n}function Rt(e,t,n,o,r,i){return(Array.isArray(n)||m(n))&&(r=o,o=n,n=void 0),h(i)&&(r=2),function(e,t,n,o,r){if(p(n)&&p(n.__ob__))return be();p(n)&&p(n.is)&&(t=n.is);if(!t)return be();0;Array.isArray(o)&&"function"==typeof o[0]&&((n=n||{}).scopedSlots={default:o[0]},o.length=0);2===r?o=ct(o):1===r&&(o=function(e){for(let t=0;tdocument.createEvent("Event").timeStamp&&(on=()=>e.now())}function rn(){let e,t;for(on(),tn=!0,Jt.sort((e,t)=>e.id-t.id),nn=0;nnnn&&Jt[t].id>e.id;)t--;Jt.splice(t+1,0,e)}else Jt.push(e);en||(en=!0,et(rn))}}(this)}run(){if(this.active){const e=this.get();if(e!==this.value||y(e)||this.deep){const t=this.value;if(this.value=e,this.user){const n=`callback for watcher "${this.expression}"`;Ke(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}}evaluate(){this.value=this.get(),this.dirty=!1}depend(){let e=this.deps.length;for(;e--;)this.deps[e].depend()}teardown(){if(this.active){this.vm._isBeingDestroyed||N(this.vm._watchers,this);let e=this.deps.length;for(;e--;)this.deps[e].removeSub(this);this.active=!1}}}const cn={enumerable:!0,configurable:!0,get:R,set:R};function ln(e,t,n){cn.get=function(){return this[t][n]},cn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,cn)}function un(e){e._watchers=[];const t=e.$options;t.props&&function(e,t){const n=e.$options.propsData||{},o=e._props={},r=e.$options._propKeys=[];e.$parent&&Oe(!1);for(const i in t){r.push(i);const s=Be(i,t,n,e);Ee(o,i,s),i in e||ln(e,"_props",i)}Oe(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(const n in t)e[n]="function"!=typeof t[n]?R:M(t[n],e)}(e,t.methods),t.data?function(e){let t=e.$options.data;t=e._data="function"==typeof t?function(e,t){ye();try{return e.call(t,t)}catch(e){return Ye(e,t,"data()"),{}}finally{ge()}}(t,e):t||{},v(t)||(t={});const n=Object.keys(t),o=e.$options.props;e.$options.methods;let r=n.length;for(;r--;){const t=n[r];0,o&&E(o,t)||q(t)||ln(e,"_data",t)}Ce(t,!0)}(e):Ce(e._data={},!0),t.computed&&function(e,t){const n=e._computedWatchers=Object.create(null);for(const o in t){const r=t[o],i="function"==typeof r?r:r.get;0,n[o]=new an(e,i||R,R,dn),o in e||fn(e,o,r)}}(e,t.computed),t.watch&&t.watch!==ie&&function(e,t){for(const n in t){const o=t[n];if(Array.isArray(o))for(let t=0;t-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!b(e)&&e.test(t)}function wn(e,t){const{cache:n,keys:o,_vnode:r}=e;for(const e in n){const i=n[e];if(i){const s=i.name;s&&!t(s)&&$n(n,e,o,r)}}}function $n(e,t,n,o){const r=e[t];!r||o&&r.tag===o.tag||r.componentInstance.$destroy(),e[t]=null,N(n,t)}!function(e){e.prototype._init=function(e){const t=this;t._uid=mn++,t._isVue=!0,e&&e._isComponent?function(e,t){const n=e.$options=Object.create(e.constructor.options),o=t._parentVnode;n.parent=t.parent,n._parentVnode=o;const r=o.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Re(yn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){const t=e.$options;let n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;const t=e.$options._parentListeners;t&&Yt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;const t=e.$options,n=e.$vnode=t._parentVnode,o=n&&n.context;e.$slots=dt(t._renderChildren,o),e.$scopedSlots=d,e._c=(t,n,o,r)=>Rt(e,t,n,o,r,!1),e.$createElement=(t,n,o,r)=>Rt(e,t,n,o,r,!0);const r=n&&n.data;Ee(e,"$attrs",r&&r.attrs||d,null,!0),Ee(e,"$listeners",t._parentListeners||d,null,!0)}(t),Xt(t,"beforeCreate"),function(e){const t=ut(e.$options.inject,e);t&&(Oe(!1),Object.keys(t).forEach(n=>{Ee(e,n,t[n])}),Oe(!0))}(t),un(t),function(e){const t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),Xt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(gn),function(e){const t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Ie,e.prototype.$delete=Ae,e.prototype.$watch=function(e,t,n){const o=this;if(v(t))return hn(o,e,t,n);(n=n||{}).user=!0;const r=new an(o,e,t,n);if(n.immediate){const e=`callback for immediate watcher "${r.expression}"`;ye(),Ke(t,o,[r.value],o,e),ge()}return function(){r.teardown()}}}(gn),function(e){const t=/^hook:/;e.prototype.$on=function(e,n){const o=this;if(Array.isArray(e))for(let t=0,r=e.length;t1?D(n):n;const o=D(arguments,1),r=`event handler for "${e}"`;for(let e=0,i=n.length;e{Kt=t}}(n);n._vnode=e,n.$el=r?n.__patch__(r,e):n.__patch__(n.$el,e,t,!1),i(),o&&(o.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){const e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){const e=this;if(e._isBeingDestroyed)return;Xt(e,"beforeDestroy"),e._isBeingDestroyed=!0;const t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||N(t.$children,e),e._watcher&&e._watcher.teardown();let n=e._watchers.length;for(;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Xt(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}(gn),function(e){At(e.prototype),e.prototype.$nextTick=function(e){return et(e,this)},e.prototype._render=function(){const e=this,{render:t,_parentVnode:n}=e.$options;let o;n&&(e.$scopedSlots=ht(n.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=n;try{Bt=e,o=t.call(e._renderProxy,e.$createElement)}catch(t){Ye(t,e,"render"),o=e._vnode}finally{Bt=null}return Array.isArray(o)&&1===o.length&&(o=o[0]),o instanceof ve||(o=be()),o.parent=n,o}}(gn);const Sn=[String,RegExp,Array];var xn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Sn,exclude:Sn,max:[String,Number]},methods:{cacheVNode(){const{cache:e,keys:t,vnodeToCache:n,keyToCache:o}=this;if(n){const{tag:r,componentInstance:i,componentOptions:s}=n;e[o]={name:bn(s),tag:r,componentInstance:i},t.push(o),this.max&&t.length>parseInt(this.max)&&$n(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created(){this.cache=Object.create(null),this.keys=[]},destroyed(){for(const e in this.cache)$n(this.cache,e,this.keys)},mounted(){this.cacheVNode(),this.$watch("include",e=>{wn(this,t=>_n(e,t))}),this.$watch("exclude",e=>{wn(this,t=>!_n(e,t))})},updated(){this.cacheVNode()},render(){const e=this.$slots.default,t=function(e){if(Array.isArray(e))for(let t=0;tK};Object.defineProperty(e,"config",t),e.util={warn:fe,extend:F,mergeOptions:Re,defineReactive:Ee},e.set=Ie,e.delete=Ae,e.nextTick=et,e.observable=e=>(Ce(e),e),e.options=Object.create(null),z.forEach(t=>{e.options[t+"s"]=Object.create(null)}),e.options._base=e,F(e.options.components,xn),function(e){e.use=function(e){const t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;const n=D(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Re(this.options,e),this}}(e),vn(e),function(e){z.forEach(t=>{e[t]=function(e,n){return n?("component"===t&&v(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(gn),Object.defineProperty(gn.prototype,"$isServer",{get:ae}),Object.defineProperty(gn.prototype,"$ssrContext",{get(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(gn,"FunctionalRenderContext",{value:Tt}),gn.version="2.6.14",x("style,class");const kn=x("input,textarea,option,select,progress");function On(e){let t=e.data,n=e,o=e;for(;p(o.componentInstance);)o=o.componentInstance._vnode,o&&o.data&&(t=Nn(o.data,t));for(;p(n=n.parent);)n&&n.data&&(t=Nn(t,n.data));return function(e,t){if(p(e)||p(t))return Cn(e,En(t));return""}(t.staticClass,t.class)}function Nn(e,t){return{staticClass:Cn(e.staticClass,t.staticClass),class:p(e.class)?[e.class,t.class]:t.class}}function Cn(e,t){return e?t?e+" "+t:e:t||""}function En(e){return Array.isArray(e)?function(e){let t,n="";for(let o=0,r=e.length;o=0&&(t=e.charAt(n)," "===t);n--);t&&Pn.test(t)||(l=!0)}}else void 0===r?(p=o+1,r=e.slice(0,o).trim()):h();function h(){(i||(i=[])).push(e.slice(p,o).trim()),p=o+1}if(void 0===r?r=e.slice(0,o).trim():0!==p&&h(),i)for(o=0;o{const t=e[0].replace(Dn,"\\$&"),n=e[1].replace(Dn,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});function Rn(e,t){console.error("[Vue compiler]: "+e)}function Vn(e,t){return e?e.map(e=>e[t]).filter(e=>e):[]}function Bn(e,t,n,o,r){(e.props||(e.props=[])).push(Xn({name:t,value:n,dynamic:r},o)),e.plain=!1}function Un(e,t,n,o,r){(r?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Xn({name:t,value:n,dynamic:r},o)),e.plain=!1}function Hn(e,t,n,o){e.attrsMap[t]=n,e.attrsList.push(Xn({name:t,value:n},o))}function Wn(e,t,n,o,r,i,s,a){(e.directives||(e.directives=[])).push(Xn({name:t,rawName:n,value:o,arg:r,isDynamicArg:i,modifiers:s},a)),e.plain=!1}function zn(e,t,n){return n?`_p(${t},"${e}")`:e+t}function Yn(e,t,n,o,r,i,s,a){let c;(o=o||d).right?a?t=`(${t})==='click'?'contextmenu':(${t})`:"click"===t&&(t="contextmenu",delete o.right):o.middle&&(a?t=`(${t})==='click'?'mouseup':(${t})`:"click"===t&&(t="mouseup")),o.capture&&(delete o.capture,t=zn("!",t,a)),o.once&&(delete o.once,t=zn("~",t,a)),o.passive&&(delete o.passive,t=zn("&",t,a)),o.native?(delete o.native,c=e.nativeEvents||(e.nativeEvents={})):c=e.events||(e.events={});const l=Xn({value:n.trim(),dynamic:a},s);o!==d&&(l.modifiers=o);const u=c[t];Array.isArray(u)?r?u.unshift(l):u.push(l):c[t]=u?r?[l,u]:[u,l]:l,e.plain=!1}function Kn(e,t,n){const o=Gn(e,":"+t)||Gn(e,"v-bind:"+t);if(null!=o)return jn(o);if(!1!==n){const n=Gn(e,t);if(null!=n)return JSON.stringify(n)}}function Gn(e,t,n){let o;if(null!=(o=e.attrsMap[t])){const n=e.attrsList;for(let e=0,o=n.length;e1&&(t[o[0].trim()]=o[1].trim())}})),t}));var Qn={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;const n=Gn(e,"style");n&&(e.staticStyle=JSON.stringify(Zn(n)));const o=Kn(e,"style",!1);o&&(e.styleBinding=o)},genData:function(e){let t="";return e.staticStyle&&(t+=`staticStyle:${e.staticStyle},`),e.styleBinding&&(t+=`style:(${e.styleBinding}),`),t}};var eo=function(e){return e};const to=x("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),no=x("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),oo=x("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),ro=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,io=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,so=`[a-zA-Z_][\\-\\.0-9_a-zA-Z${G.source}]*`,ao=`((?:${so}\\:)?${so})`,co=new RegExp("^<"+ao),lo=/^\s*(\/?)>/,uo=new RegExp(`^<\\/${ao}[^>]*>`),fo=/^]+>/i,po=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},vo=/&(?:lt|gt|quot|amp|#39);/g,bo=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,_o=x("pre,textarea",!0),wo=(e,t)=>e&&_o(e)&&"\n"===t[0];function $o(e,t){const n=t?bo:vo;return e.replace(n,e=>go[e])}function So(e,t,n){const{number:o,trim:r}=n||{};let i="$$v";r&&(i="(typeof $$v === 'string'? $$v.trim(): $$v)"),o&&(i=`_n(${i})`);const s=xo(t,i);e.model={value:`(${t})`,expression:JSON.stringify(t),callback:`function ($$v) {${s}}`}}function xo(e,t){const n=function(e){if(e=e.trim(),ko=e.length,e.indexOf("[")<0||e.lastIndexOf("]")-1?{exp:e.slice(0,Co),key:'"'+e.slice(Co+1)+'"'}:{exp:e,key:null};Oo=e,Co=Eo=Io=0;for(;!To();)No=Ao(),Po(No)?Lo(No):91===No&&jo(No);return{exp:e.slice(0,Eo),key:e.slice(Eo+1,Io)}}(e);return null===n.key?`${e}=${t}`:`$set(${n.exp}, ${n.key}, ${t})`}let ko,Oo,No,Co,Eo,Io;function Ao(){return Oo.charCodeAt(++Co)}function To(){return Co>=ko}function Po(e){return 34===e||39===e}function jo(e){let t=1;for(Eo=Co;!To();)if(Po(e=Ao()))Lo(e);else if(91===e&&t++,93===e&&t--,0===t){Io=Co;break}}function Lo(e){const t=e;for(;!To()&&(e=Ao())!==t;);}const Mo=/^@|^v-on:/,Do=r.env.VBIND_PROP_SHORTHAND?/^v-|^@|^:|^\.|^#/:/^v-|^@|^:|^#/,Fo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Ro=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Vo=/^\(|\)$/g,Bo=/^\[.*\]$/,Uo=/:(.*)$/,Ho=/^:|^\.|^v-bind:/,Wo=/^\./,zo=/\.[^.\]]+(?=[^\]]*$)/g,Yo=/^v-slot(:|$)|^#/,Ko=/[\r\n]/,Go=/[ \f\t\r\n]+/g,qo=I(eo);let Xo,Jo,Zo,Qo,er,tr,nr,or,rr;function ir(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:fr(t),rawAttrsMap:{},parent:n,children:[]}}function sr(e,t){Xo=t.warn||Rn,tr=t.isPreTag||V,nr=t.mustUseProp||V,or=t.getTagNamespace||V;const n=t.isReservedTag||V;rr=e=>!(!(e.component||e.attrsMap[":is"]||e.attrsMap["v-bind:is"])&&(e.attrsMap.is?n(e.attrsMap.is):n(e.tag))),Zo=Vn(t.modules,"transformNode"),Qo=Vn(t.modules,"preTransformNode"),er=Vn(t.modules,"postTransformNode"),Jo=t.delimiters;const o=[],r=!1!==t.preserveWhitespace,i=t.whitespace;let s,a,c=!1,l=!1;function u(e){if(d(e),c||e.processed||(e=ar(e,t)),o.length||e===s||s.if&&(e.elseif||e.else)&&lr(s,{exp:e.elseif,block:e}),a&&!e.forbidden)if(e.elseif||e.else)!function(e,t){const n=function(e){let t=e.length;for(;t--;){if(1===e[t].type)return e[t];e.pop()}}(t.children);n&&n.if&&lr(n,{exp:e.elseif,block:e})}(e,a);else{if(e.slotScope){const t=e.slotTarget||'"default"';(a.scopedSlots||(a.scopedSlots={}))[t]=e}a.children.push(e),e.parent=a}e.children=e.children.filter(e=>!e.slotScope),d(e),e.pre&&(c=!1),tr(e.tag)&&(l=!1);for(let n=0;n]*>)","i")),i=e.replace(r,(function(e,r,i){return n=i.length,mo(o)||"noscript"===o||(r=r.replace(//g,"$1").replace(//g,"$1")),wo(o,r)&&(r=r.slice(1)),t.chars&&t.chars(r),""}));c+=e.length-i.length,e=i,f(o,c-n,c)}else{let n,o,r,i=e.indexOf("<");if(0===i){if(po.test(e)){const n=e.indexOf("--\x3e");if(n>=0){t.shouldKeepComment&&t.comment(e.substring(4,n),c,c+n+3),l(n+3);continue}}if(ho.test(e)){const t=e.indexOf("]>");if(t>=0){l(t+2);continue}}const n=e.match(fo);if(n){l(n[0].length);continue}const o=e.match(uo);if(o){const e=c;l(o[0].length),f(o[1],e,c);continue}const r=u();if(r){d(r),wo(r.tagName,e)&&l(1);continue}}if(i>=0){for(o=e.slice(i);!(uo.test(o)||co.test(o)||po.test(o)||ho.test(o)||(r=o.indexOf("<",1),r<0));)i+=r,o=e.slice(i);n=e.substring(0,i)}i<0&&(n=e),n&&l(n.length),t.chars&&n&&t.chars(n,c-n.length,c)}if(e===s){t.chars&&t.chars(e);break}}function l(t){c+=t,e=e.substring(t)}function u(){const t=e.match(co);if(t){const n={tagName:t[1],attrs:[],start:c};let o,r;for(l(t[0].length);!(o=e.match(lo))&&(r=e.match(io)||e.match(ro));)r.start=c,l(r[0].length),r.end=c,n.attrs.push(r);if(o)return n.unarySlash=o[1],l(o[0].length),n.end=c,n}}function d(e){const s=e.tagName,c=e.unarySlash;o&&("p"===a&&oo(s)&&f(a),i(s)&&a===s&&f(s));const l=r(s)||!!c,u=e.attrs.length,d=new Array(u);for(let n=0;n=0&&n[i].lowerCasedTag!==s;i--);else i=0;if(i>=0){for(let e=n.length-1;e>=i;e--)t.end&&t.end(n[e].tag,o,r);n.length=i,a=i&&n[i-1].tag}else"br"===s?t.start&&t.start(e,[],!0,o,r):"p"===s&&(t.start&&t.start(e,[],!1,o,r),t.end&&t.end(e,o,r))}f()}(e,{warn:Xo,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start(e,n,r,i,d){const f=a&&a.ns||or(e);oe&&"svg"===f&&(n=function(e){const t=[];for(let n=0;nc&&(r.push(a=e.slice(c,s)),o.push(JSON.stringify(a)));const t=jn(i[1].trim());o.push(`_s(${t})`),r.push({"@binding":t}),c=s+i[0].length}return c{if(!e.slotScope)return e.parent=i,!0}),i.slotScope=t.value||"_empty_",e.children=[],e.plain=!1}}}(e),"slot"===(n=e).tag&&(n.slotName=Kn(n,"name")),function(e){let t;(t=Kn(e,"is"))&&(e.component=t);null!=Gn(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(let n=0;n{e[t.slice(1)]=!0}),e}}function fr(e){const t={};for(let n=0,o=e.length;n-1`+("true"===i?`:(${t})`:`:_q(${t},${i})`)),Yn(e,"change",`var $$a=${t},$$el=$event.target,$$c=$$el.checked?(${i}):(${s});if(Array.isArray($$a)){var $$v=${o?"_n("+r+")":r},$$i=_i($$a,$$v);if($$el.checked){$$i<0&&(${xo(t,"$$a.concat([$$v])")})}else{$$i>-1&&(${xo(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")})}}else{${xo(t,"$$c")}}`,null,!0)}(e,o,r);else if("input"===i&&"radio"===s)!function(e,t,n){const o=n&&n.number;let r=Kn(e,"value")||"null";r=o?`_n(${r})`:r,Bn(e,"checked",`_q(${t},${r})`),Yn(e,"change",xo(t,r),null,!0)}(e,o,r);else if("input"===i||"textarea"===i)!function(e,t,n){const o=e.attrsMap.type;0;const{lazy:r,number:i,trim:s}=n||{},a=!r&&"range"!==o,c=r?"change":"range"===o?"__r":"input";let l="$event.target.value";s&&(l="$event.target.value.trim()");i&&(l=`_n(${l})`);let u=xo(t,l);a&&(u="if($event.target.composing)return;"+u);Bn(e,"value",`(${t})`),Yn(e,c,u,null,!0),(s||i)&&Yn(e,"blur","$forceUpdate()")}(e,o,r);else{if(!K.isReservedTag(i))return So(e,o,r),!1}return!0},text:function(e,t){t.value&&Bn(e,"textContent",`_s(${t.value})`,t)},html:function(e,t){t.value&&Bn(e,"innerHTML",`_s(${t.value})`,t)}},isPreTag:e=>"pre"===e,isUnaryTag:to,mustUseProp:(e,t,n)=>"value"===n&&kn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e,canBeLeftOpenTag:no,isReservedTag:e=>In(e)||An(e),getTagNamespace:function(e){return An(e)?"svg":"math"===e?"math":void 0},staticKeys:function(e){return e.reduce((e,t)=>e.concat(t.staticKeys||[]),[]).join(",")}(yr)};let br,_r;const wr=I((function(e){return x("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function $r(e,t){e&&(br=wr(t.staticKeys||""),_r=t.isReservedTag||V,function e(t){if(t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||k(e.tag)||!_r(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(br)))}(t),1===t.type){if(!_r(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(let n=0,o=t.children.length;n|^function(?:\s+[\w$]+)?\s*\(/,xr=/\([^)]*?\);*$/,kr=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Or={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Nr={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Cr=e=>`if(${e})return null;`,Er={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Cr("$event.target !== $event.currentTarget"),ctrl:Cr("!$event.ctrlKey"),shift:Cr("!$event.shiftKey"),alt:Cr("!$event.altKey"),meta:Cr("!$event.metaKey"),left:Cr("'button' in $event && $event.button !== 0"),middle:Cr("'button' in $event && $event.button !== 1"),right:Cr("'button' in $event && $event.button !== 2")};function Ir(e,t){const n=t?"nativeOn:":"on:";let o="",r="";for(const t in e){const n=Ar(e[t]);e[t]&&e[t].dynamic?r+=`${t},${n},`:o+=`"${t}":${n},`}return o=`{${o.slice(0,-1)}}`,r?n+`_d(${o},[${r.slice(0,-1)}])`:n+o}function Ar(e){if(!e)return"function(){}";if(Array.isArray(e))return`[${e.map(e=>Ar(e)).join(",")}]`;const t=kr.test(e.value),n=Sr.test(e.value),o=kr.test(e.value.replace(xr,""));if(e.modifiers){let r="",i="";const s=[];for(const t in e.modifiers)if(Er[t])i+=Er[t],Or[t]&&s.push(t);else if("exact"===t){const t=e.modifiers;i+=Cr(["ctrl","shift","alt","meta"].filter(e=>!t[e]).map(e=>`$event.${e}Key`).join("||"))}else s.push(t);s.length&&(r+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Tr).join("&&")+")return null;"}(s)),i&&(r+=i);return`function($event){${r}${t?`return ${e.value}.apply(null, arguments)`:n?`return (${e.value}).apply(null, arguments)`:o?"return "+e.value:e.value}}`}return t||n?e.value:`function($event){${o?"return "+e.value:e.value}}`}function Tr(e){const t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;const n=Or[e],o=Nr[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(o)+")"}var Pr={on:function(e,t){e.wrapListeners=e=>`_g(${e},${t.value})`},bind:function(e,t){e.wrapData=n=>`_b(${n},'${e.tag}',${t.value},${t.modifiers&&t.modifiers.prop?"true":"false"}${t.modifiers&&t.modifiers.sync?",true":""})`},cloak:R};class jr{constructor(e){this.options=e,this.warn=e.warn||Rn,this.transforms=Vn(e.modules,"transformCode"),this.dataGenFns=Vn(e.modules,"genData"),this.directives=F(F({},Pr),e.directives);const t=e.isReservedTag||V;this.maybeComponent=e=>!!e.component||!t(e.tag),this.onceId=0,this.staticRenderFns=[],this.pre=!1}}function Lr(e,t){const n=new jr(t);return{render:`with(this){return ${e?"script"===e.tag?"null":Mr(e,n):'_c("div")'}}`,staticRenderFns:n.staticRenderFns}}function Mr(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Dr(e,t);if(e.once&&!e.onceProcessed)return Fr(e,t);if(e.for&&!e.forProcessed)return Vr(e,t);if(e.if&&!e.ifProcessed)return Rr(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){const n=e.slotName||'"default"',o=Wr(e,t);let r=`_t(${n}${o?`,function(){return ${o}}`:""}`;const i=e.attrs||e.dynamicAttrs?Kr((e.attrs||[]).concat(e.dynamicAttrs||[]).map(e=>({name:T(e.name),value:e.value,dynamic:e.dynamic}))):null,s=e.attrsMap["v-bind"];!i&&!s||o||(r+=",null");i&&(r+=","+i);s&&(r+=`${i?"":",null"},${s}`);return r+")"}(e,t);{let n;if(e.component)n=function(e,t,n){const o=t.inlineTemplate?null:Wr(t,n,!0);return`_c(${e},${Br(t,n)}${o?","+o:""})`}(e.component,e,t);else{let o;(!e.plain||e.pre&&t.maybeComponent(e))&&(o=Br(e,t));const r=e.inlineTemplate?null:Wr(e,t,!0);n=`_c('${e.tag}'${o?","+o:""}${r?","+r:""})`}for(let o=0;o{const n=t[e];return n.slotTargetDynamic||n.if||n.for||Ur(n)}),r=!!e.if;if(!o){let t=e.parent;for(;t;){if(t.slotScope&&"_empty_"!==t.slotScope||t.for){o=!0;break}t.if&&(r=!0),t=t.parent}}const i=Object.keys(t).map(e=>Hr(t[e],n)).join(",");return`scopedSlots:_u([${i}]${o?",null,true":""}${!o&&r?",null,false,"+function(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return t>>>0}(i):""})`}(e,e.scopedSlots,t)+","),e.model&&(n+=`model:{value:${e.model.value},callback:${e.model.callback},expression:${e.model.expression}},`),e.inlineTemplate){const o=function(e,t){const n=e.children[0];0;if(n&&1===n.type){const e=Lr(n,t.options);return`inlineTemplate:{render:function(){${e.render}},staticRenderFns:[${e.staticRenderFns.map(e=>`function(){${e}}`).join(",")}]}`}}(e,t);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n=`_b(${n},"${e.tag}",${Kr(e.dynamicAttrs)})`),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Ur(e){return 1===e.type&&("slot"===e.tag||e.children.some(Ur))}function Hr(e,t){const n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Rr(e,t,Hr,"null");if(e.for&&!e.forProcessed)return Vr(e,t,Hr);const o="_empty_"===e.slotScope?"":String(e.slotScope),r=`function(${o}){return ${"template"===e.tag?e.if&&n?`(${e.if})?${Wr(e,t)||"undefined"}:undefined`:Wr(e,t)||"undefined":Mr(e,t)}}`,i=o?"":",proxy:true";return`{key:${e.slotTarget||'"default"'},fn:${r}${i}}`}function Wr(e,t,n,o,r){const i=e.children;if(i.length){const e=i[0];if(1===i.length&&e.for&&"template"!==e.tag&&"slot"!==e.tag){const r=n?t.maybeComponent(e)?",1":",0":"";return`${(o||Mr)(e,t)}${r}`}const s=n?function(e,t){let n=0;for(let o=0;ozr(e.block))){n=2;break}(t(r)||r.ifConditions&&r.ifConditions.some(e=>t(e.block)))&&(n=1)}}return n}(i,t.maybeComponent):0,a=r||Yr;return`[${i.map(e=>a(e,t)).join(",")}]${s?","+s:""}`}}function zr(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function Yr(e,t){return 1===e.type?Mr(e,t):3===e.type&&e.isComment?function(e){return`_e(${JSON.stringify(e.text)})`}(e):function(e){return`_v(${2===e.type?e.expression:Gr(JSON.stringify(e.text))})`}(e)}function Kr(e){let t="",n="";for(let o=0;oqr(e,c)),t[i]=a}}const Jr=(Zr=function(e,t){const n=sr(e.trim(),t);!1!==t.optimize&&$r(n,t);const o=Lr(n,t);return{ast:n,render:o.render,staticRenderFns:o.staticRenderFns}},function(e){function t(t,n){const o=Object.create(e),r=[],i=[];if(n){n.modules&&(o.modules=(e.modules||[]).concat(n.modules)),n.directives&&(o.directives=F(Object.create(e.directives||null),n.directives));for(const e in n)"modules"!==e&&"directives"!==e&&(o[e]=n[e])}o.warn=(e,t,n)=>{(n?i:r).push(e)};const s=Zr(t.trim(),o);return s.errors=r,s.tips=i,s}return{compile:t,compileToFunctions:Xr(t)}});var Zr;const{compile:Qr,compileToFunctions:ei}=Jr(vr),ti=`http://127.0.0.1:${r.env.PORT}/`;let ni,oi,ri=e=>e,ii=()=>{};function si(e){ni=e}function ai(){return ni}function ci(){return ri}const li=W(()=>{console.log('Hippy-Vue has "Vue.config.silent" to control trace log output, to see output logs if set it to false.')});function ui(...e){(null==oi?void 0:oi.config.silent)&&li()}function di(e){return e.charAt(0).toUpperCase()+e.slice(1)}const fi=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function pi(e){return"[object Function]"===Object.prototype.toString.call(e)}function hi(e){let t=e;return/^assets/.test(t)&&(t="hpfile://./"+t),t}function mi(e){return null==e}const yi=Symbol.for("View"),gi=Symbol.for("Image"),vi=Symbol.for("ListView"),bi=Symbol.for("ListViewItem"),_i=Symbol.for("Text"),wi=Symbol.for("TextInput"),$i=Symbol.for("WebView"),Si=Symbol.for("VideoPlayer"),xi={[yi]:"View",[gi]:"Image",[vi]:"ListView",[bi]:"ListViewItem",[_i]:"Text",[wi]:"TextInput",[$i]:"WebView",[Si]:"VideoPlayer"};function ki(...e){const t={};if(Array.isArray(e[0]))e[0].forEach(([e,n])=>{t[t[e]=n]=e});else{const[n,o]=e;t[t[n]=o]=n}return t}const Oi={number:"numeric",text:"default",search:"web-search"},Ni={role:"accessibilityRole","aria-label":"accessibilityLabel","aria-disabled":{jointKey:"accessibilityState",name:"disabled"},"aria-selected":{jointKey:"accessibilityState",name:"selected"},"aria-checked":{jointKey:"accessibilityState",name:"checked"},"aria-busy":{jointKey:"accessibilityState",name:"busy"},"aria-expanded":{jointKey:"accessibilityState",name:"expanded"},"aria-valuemin":{jointKey:"accessibilityValue",name:"min"},"aria-valuemax":{jointKey:"accessibilityValue",name:"max"},"aria-valuenow":{jointKey:"accessibilityValue",name:"now"},"aria-valuetext":{jointKey:"accessibilityValue",name:"text"}},Ci={symbol:yi,component:{name:xi[yi],eventNamesMap:ki([["touchStart","onTouchDown"],["touchstart","onTouchDown"],["touchmove","onTouchMove"],["touchend","onTouchEnd"],["touchcancel","onTouchCancel"]]),attributeMaps:l({},Ni),processEventData(e,t,n){var o,r;switch(t){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":e.offsetX=null===(o=n.contentOffset)||void 0===o?void 0:o.x,e.offsetY=null===(r=n.contentOffset)||void 0===r?void 0:r.y;break;case"onTouchDown":case"onTouchMove":case"onTouchEnd":case"onTouchCancel":e.touches={0:{clientX:n.page_x,clientY:n.page_y},length:1};break;case"onFocus":e.isFocused=t.focus}return e}}},Ei={symbol:yi,component:l(l({},Ci.component),{},{name:xi[yi],defaultNativeStyle:{}})},Ii={symbol:yi,component:{name:xi[yi]}},Ai={symbol:gi,component:l(l({},Ci.component),{},{name:xi[gi],defaultNativeStyle:{backgroundColor:0},attributeMaps:l({placeholder:{name:"defaultSource",propsValue(e){const t=hi(e);return t&&t.indexOf(ti)<0&&["https://","http://"].some(e=>0===t.indexOf(e)),t}},src:e=>hi(e)},Ni),processEventData(e,t,n){switch(t){case"onTouchDown":case"onTouchMove":case"onTouchEnd":case"onTouchCancel":e.touches={0:{clientX:n.page_x,clientY:n.page_y},length:1};break;case"onFocus":e.isFocused=t.focus;break;case"onLoad":{const{width:t,height:o,url:r}=n;e.width=t,e.height=o,e.url=r;break}}return e}})},Ti={symbol:vi,component:{name:xi[vi],defaultNativeStyle:{flex:1},attributeMaps:l({},Ni),eventNamesMap:ki("listReady","initialListReady"),processEventData(e,t,n){var o,r;switch(t){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":e.offsetX=null===(o=n.contentOffset)||void 0===o?void 0:o.x,e.offsetY=null===(r=n.contentOffset)||void 0===r?void 0:r.y;break;case"onDelete":e.index=n.index}return e}}},Pi={symbol:bi,component:{name:xi[bi],attributeMaps:l({},Ni),eventNamesMap:ki([["disappear","onDisappear"]])}},ji={symbol:yi,component:l(l({},Ci.component),{},{name:xi[_i],defaultNativeProps:{text:""},defaultNativeStyle:{color:4278190080}})},Li=ji,Mi=ji,Di={component:l(l({},ji.component),{},{defaultNativeStyle:{color:4278190318},attributeMaps:{href:{name:"href",propsValue:e=>["//","http://","https://"].filter(t=>0===e.indexOf(t)).length?"":e}}})},Fi={symbol:wi,component:{name:xi[wi],attributeMaps:l({type:{name:"keyboardType",propsValue(e){const t=Oi[e];return t||e}},disabled:{name:"editable",propsValue:e=>!e},value:"defaultValue",maxlength:"maxLength"},Ni),nativeProps:{numberOfLines:1,multiline:!1},defaultNativeProps:{underlineColorAndroid:0},defaultNativeStyle:{padding:0,color:4278190080},eventNamesMap:ki([["change","onChangeText"],["select","onSelectionChange"]]),processEventData(e,t,n){switch(t){case"onChangeText":case"onEndEditing":e.value=n.text;break;case"onSelectionChange":e.start=n.selection.start,e.end=n.selection.end;break;case"onKeyboardWillShow":e.keyboardHeight=n.keyboardHeight;break;case"onContentSizeChange":e.width=n.contentSize.width,e.height=n.contentSize.height}return e}}},Ri={symbol:wi,component:{name:xi[wi],defaultNativeProps:l(l({},Fi.component.defaultNativeProps),{},{numberOfLines:5}),attributeMaps:l(l({},Fi.component.attributeMaps),{},{rows:"numberOfLines"}),nativeProps:{multiline:!0},defaultNativeStyle:Fi.component.defaultNativeStyle,eventNamesMap:Fi.component.eventNamesMap,processEventData:Fi.component.processEventData}},Vi={symbol:$i,component:{name:xi[$i],defaultNativeProps:{method:"get",userAgent:""},attributeMaps:{src:{name:"source",propsValue:e=>({uri:e})}},processEventData(e,t,n){switch(t){case"onLoad":case"onLoadStart":e.url=n.url;break;case"onLoadEnd":e.url=n.url,e.success=n.success,e.error=n.error}return e}}};var Bi=Object.freeze({__proto__:null,button:Ei,div:Ci,form:Ii,img:Ai,input:Fi,label:Li,li:Pi,p:Mi,span:ji,a:Di,textarea:Ri,ul:Ti,iframe:Vi});const Ui=x("template,script,style,element,content,slot,button,div,form,img,input,label,li,p,span,textarea,ul",!0),Hi=new Map,Wi={skipAddToDom:!1,isUnaryTag:!1,tagNamespace:"",canBeLeftOpenTag:!1,mustUseProp:!1,model:null,component:null};function zi(e){return e.toLowerCase()}function Yi(e,t){if(!e)throw new Error("RegisterElement cannot set empty name");const n=zi(e),o=l(l({},Wi),t);if(Hi.has(n))throw new Error(`Element for ${e} already registered.`);o.component=l(l({},function(e,t,n){return{name:e,functional:!0,model:t.model,render:(e,{data:t,children:o})=>e(n,t,o)}}(e,o,n)),o.component),o.component.name&&o.component.name===di(T(e))&&o.component.name;const r={meta:o};return Hi.set(n,r),r}function Ki(e){const t=zi(e);let n=Wi;const o=Hi.get(t);return(null==o?void 0:o.meta)&&(n=o.meta),n}class Gi{constructor(e){this.value="",this.target=null,this.currentTarget=null,this.originalTarget=null,this.bubbles=!0,this.cancelable=!0,this.eventPhase=0,this.isCanceled=!1,this.type=e,this.bubbles=!0,this.cancelable=!0,this.eventPhase=0,this.originalTarget=null,this.currentTarget=null,this.target=null,this.isCanceled=!1}get canceled(){return this.isCanceled}stopPropagation(){this.bubbles=!1}preventDefault(){this.cancelable&&(this.isCanceled=!0)}initEvent(e,t=!0,n=!0){return this.type=e,!1===t&&(this.bubbles=!1),!1===n&&(this.cancelable=!1),this}}class qi{constructor(e){this.element=e,this.observers={}}getEventListeners(){return this.observers}addEventListener(e,t,n){if("string"!=typeof e)throw new TypeError("Events name(s) must be string.");if(t&&!pi(t))throw new TypeError("callback must be function.");const o=e.split(",");for(let e=0,r=o.length;e=0&&e.splice(o,1),0===e.length&&(this.observers[r]=void 0)}}else this.observers[r]=void 0}return this.observers}emit(e){var t,n;const{type:o}=e,r=this.observers[o];if(r)for(let o=r.length-1;o>=0;o-=1){const i=r[o];(null===(t=i.options)||void 0===t?void 0:t.once)&&r.splice(o,1),(null===(n=i.options)||void 0===n?void 0:n.thisArg)?i.callback.apply(i.options.thisArg,[e]):i.callback(e)}}getEventList(e,t){let n=this.observers[e];return!n&&t&&(n=[],this.observers[e]=n),n}indexOfListener(e,t,n){return e.findIndex(e=>n?e.callback===t&&U(e.options,n):e.callback===t)}}const Xi=new Map;function Ji(e){return Xi.get(e)||null}function Zi(t){!function(t,n){if(!e.requestIdleCallback)return setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>1/0})},1);e.requestIdleCallback(t,n)}(e=>{(e.timeRemaining()>0||e.didTimeout)&&function e(t){var n;o=t.nodeId,Xi.delete(o),null===(n=t.childNodes)||void 0===n||n.forEach(t=>e(t));var o}(t)},{timeout:50})}function Qi(e=[],t=0){let n=e[t];for(let o=t;o-1){const e=new as(i);if(Object.assign(e,{eventPhase:a,nativeParams:s||{}}),"onLayout"===r){const{layout:{x:t,y:n,height:o,width:r}}=s;e.top=n,e.left=t,e.bottom=n+o,e.right=t+r,e.width=r,e.height=o}else{const{processEventData:t}=c._meta.component;t&&t(e,r,s)}c.dispatchEvent(function(e,t,n){return function(e){return["onTouchDown","onTouchMove","onTouchEnd","onTouchCancel"].indexOf(e)>=0}(e)&&Object.assign(t,{touches:{0:{clientX:n.page_x,clientY:n.page_y},length:1}}),t}(r,e,s),l,t)}}catch(e){console.error("receiveComponentEvent error",e)}}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=ls);const us={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},ds=(...e)=>`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`,fs="[-+]?\\d*\\.?\\d+",ps={rgb:new RegExp("rgb"+ds(fs,fs,fs)),rgba:new RegExp("rgba"+ds(fs,fs,fs,fs)),hsl:new RegExp("hsl"+ds(fs,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+ds(fs,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",fs)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/},hs=e=>{const t=parseInt(e,10);return t<0?0:t>255?255:t},ms=e=>{const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},ys=(e,t,n)=>{let o=n;return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+6*(t-e)*o:o<.5?t:o<2/3?e+(t-e)*(2/3-o)*6:e},gs=(e,t,n)=>{const o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,i=ys(r,o,e+1/3),s=ys(r,o,e),a=ys(r,o,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*a)<<8},vs=e=>(parseFloat(e)%360+360)%360/360,bs=e=>{const t=parseFloat(e);return t<0?0:t>100?1:t/100};function _s(e){if("string"==typeof e&&-1!==e.indexOf("var("))return e;let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ps.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(us,e)?us[e]:(t=ps.rgb.exec(e),Array.isArray(t)?(hs(t[1])<<24|hs(t[2])<<16|hs(t[3])<<8|255)>>>0:(t=ps.rgba.exec(e),t?(hs(t[1])<<24|hs(t[2])<<16|hs(t[3])<<8|ms(t[4]))>>>0:(t=ps.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ps.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=ps.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ps.hsl.exec(e),t?(255|gs(vs(t[1]),bs(t[2]),bs(t[3])))>>>0:(t=ps.hsla.exec(e),t?(gs(vs(t[1]),bs(t[2]),bs(t[3]))|ms(t[4]))>>>0:null))))))))}(e);if(null===t)throw new Error("Bad color value: "+e);return t=(t<<24|t>>>8)>>>0,t}const ws={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor",caretColor:"caret-color"};var $s;function Ss(){const e=Wa.Localization;return!!e&&e.direction===$s.RTL}!function(e){e[e.RTL=1]="RTL"}($s||($s={}));const xs=new Map;function ks(e){return xs.get(e)||{}}class Os{constructor(){this.specificity=0}lookupSort(e,t){e.sortAsUniversal(t||this)}removeSort(e,t){e.removeAsUniversal(t||this)}trackChanges(e,t){this.dynamic&&t.addAttribute(e,"")}}class Ns extends Os{constructor(){super(...arguments),this.rarity=0}accumulateChanges(e,t){return this.dynamic?!!this.mayMatch(e)&&(this.trackChanges(e,t),!0):this.match(e)}mayMatch(e){return this.match(e)}match(e){return!1}}function Cs(e){return e?` ${e} `:""}const Es=(e,t)=>{const n=e.attributes[t];return void 0!==n?n:Array.isArray(e.styleScopeId)&&e.styleScopeId.includes(t)?t:void 0};class Is extends Ns{constructor(e){super(),this.specificity=e.reduce((e,t)=>t.specificity+e,0),this.head=e.reduce((e,t)=>!e||e instanceof Ns&&t.rarity>e.rarity?t:e,null),this.dynamic=e.some(e=>e.dynamic),this.selectors=e}toString(){return`${this.selectors.join("")}${Cs(this.combinator||"")}`}match(e){return!!e&&this.selectors.every(t=>t.match(e))}mayMatch(e){return!!e&&this.selectors.every(t=>t.mayMatch(e))}trackChanges(e,t){this.selectors.forEach(n=>n.trackChanges(e,t))}lookupSort(e,t){this.head&&this.head instanceof Ns&&this.head.lookupSort(e,t||this)}removeSort(e,t){this.head&&this.head instanceof Ns&&this.head.removeSort(e,t||this)}}const As=(()=>{try{return!!new RegExp("foo","y")}catch(e){return!1}})(),Ts={whiteSpaceRegEx:"\\s*",universalSelectorRegEx:"\\*",simpleIdentifierSelectorRegEx:"(#|\\.|:|\\b)([_-\\w][_-\\w\\d]*)",attributeSelectorRegEx:"\\[\\s*([_-\\w][_-\\w\\d]*)\\s*(?:(=|\\^=|\\$=|\\*=|\\~=|\\|=)\\s*(?:([_-\\w][_-\\w\\d]*)|\"((?:[^\\\\\"]|\\\\(?:\"|n|r|f|\\\\|0-9a-f))*)\"|'((?:[^\\\\']|\\\\(?:'|n|r|f|\\\\|0-9a-f))*)')\\s*)?\\]",combinatorRegEx:"\\s*(\\+|~|>)?\\s*"},Ps={};function js(e,t,n){let o="";As&&(o="gy"),Ps[e]||(Ps[e]=new RegExp(Ts[e],o));const r=Ps[e];let i;if(As)r.lastIndex=n||0,i=r.exec(t);else{if(t=t.slice(n,t.length),i=r.exec(t),!i)return{result:null,regexp:r};r.lastIndex=n||0+i[0].length}return{result:i,regexp:r}}function Ls(e,t){return function(e,t){const{result:n,regexp:o}=js("universalSelectorRegEx",e,t);return n?{value:{type:"*"},start:t,end:o.lastIndex}:null}(e,t)||function(e,t){const{result:n,regexp:o}=js("simpleIdentifierSelectorRegEx",e,t);if(!n)return null;const r=o.lastIndex;return{value:{type:n[1],identifier:n[2]},start:t,end:r}}(e,t)||function(e,t){const{result:n,regexp:o}=js("attributeSelectorRegEx",e,t);if(!n)return null;const r=o.lastIndex,i=n[1];if(n[2]){return{value:{type:"[]",property:i,test:n[2],value:n[3]||n[4]||n[5]},start:t,end:r}}return{value:{type:"[]",property:i},start:t,end:r}}(e,t)}function Ms(e,t){let n=Ls(e,t);if(!n)return null;let{end:o}=n;const r=[];for(;n;)r.push(n.value),({end:o}=n),n=Ls(e,o);return{start:t,end:o,value:r}}function Ds(e,t){const{result:n,regexp:o}=js("combinatorRegEx",e,t);if(!n)return null;let r;r=As?o.lastIndex:t;return{start:t,end:r,value:n[1]||" "}}class Fs{constructor(e,t,n){e.forEach(e=>(e.ruleSet=this,null)),this.hash=n,this.selectors=e,this.declarations=t}toString(){return`${this.selectors.join(", ")} {${this.declarations.map((e,t)=>`${0===t?" ":""}${e.property}: ${e.value}`).join("; ")}}`}lookupSort(e){this.selectors.forEach(t=>t.lookupSort(e))}removeSort(e){this.selectors.forEach(t=>t.removeSort(e))}}class Rs extends Ns{constructor(e,t="",n=""){super(),this.attribute="",this.test="",this.value="",this.specificity=256,this.rarity=0,this.dynamic=!0,this.attribute=e,this.test=t,this.value=n}match(e){if(!this.test)return!(!e||!e.attributes)&&!mi(Es(e,this.attribute));if(!this.value)return!1;if(!e||!e.attributes)return!1;const t=""+Es(e,this.attribute);if("="===this.test)return t===this.value;if("^="===this.test)return t.startsWith(this.value);if("$="===this.test)return t.endsWith(this.value);if("*="===this.test)return-1!==t.indexOf(this.value);if("~="===this.test){const e=t.split(" ");return e&&-1!==e.indexOf(this.value)}return"|="===this.test&&(t===this.value||t.startsWith(this.value+"-"))}toString(){return`[${this.attribute}${Cs(this.test)}${this.test&&this.value||""}]${Cs(this.combinator||"")}`}mayMatch(){return!0}trackChanges(e,t){t.addAttribute(e,this.attribute)}}class Vs extends Ns{constructor(e){super(),this.specificity=256,this.rarity=2,this.dynamic=!1,this.className=e}toString(){return`.${this.className}${Cs(this.combinator||"")}`}match(e){var t;return!!e&&(!!(null===(t=e.classList)||void 0===t?void 0:t.size)&&e.classList.has(this.className))}lookupSort(e,t){e.sortByClass(this.className,t||this)}removeSort(e,t){e.removeByClass(this.className,t||this)}}class Bs extends Ns{constructor(e){super(),this.specificity=65536,this.rarity=3,this.dynamic=!1,this.id=e}toString(){return`#${this.id}${Cs(this.combinator||"")}`}match(e){return!!e&&e.id===this.id}lookupSort(e,t){e.sortById(this.id,null!=t?t:this)}removeSort(e,t){e.removeById(this.id,null!=t?t:this)}}class Us extends Ns{constructor(e){super(),this.specificity=0,this.rarity=4,this.dynamic=!1,this.combinator=void 0,this.err=e}toString(){return``}match(){return!1}}class Hs extends Ns{constructor(e){super(),this.specificity=256,this.rarity=0,this.dynamic=!0,this.cssPseudoClass=e}toString(){return`:${this.cssPseudoClass}${Cs(this.combinator||"")}`}match(e){return!!e}mayMatch(){return!0}trackChanges(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}class Ws{constructor(e){this.selectors=e,this.dynamic=e.some(e=>e.dynamic)}match(e){let t=e;if(!t)return;return this.selectors.every((e,n)=>(0!==n&&(t=null==t?void 0:t.parentNode),!!t&&!!e.match(t)))?t:void 0}mayMatch(e){let t=e;if(!t)return;return this.selectors.every((e,n)=>(0!==n&&(t=null==t?void 0:t.parentNode),!!t&&!!e.mayMatch(t)))?t:void 0}trackChanges(e,t){let n=e;this.selectors.forEach((e,o)=>{0!==o&&(n=null==n?void 0:n.parentNode),n&&e.trackChanges(n,t)})}}class zs{constructor(e){this.selectors=e,this.dynamic=e.some(e=>e.dynamic)}match(e){let t=e;if(!t)return;return this.selectors.every((e,n)=>(0!==n&&(t=null==t?void 0:t.nextSibling),!!t&&!!e.match(t)))?t:void 0}mayMatch(e){let t=e;if(!t)return;return this.selectors.every((e,n)=>(0!==n&&(t=null==t?void 0:t.nextSibling),!!t&&!!e.mayMatch(t)))?t:void 0}trackChanges(e,t){let n=e;this.selectors.forEach((e,o)=>{0!==o&&(n=null==n?void 0:n.nextSibling),n&&e.trackChanges(n,t)})}}class Ys extends Os{constructor(e){super();const t=[void 0," ",">","+"];let n=[],o=[];const r=[];this.selectors=e,this.selectors.reverse().forEach(e=>{if(-1===t.indexOf(e.combinator))throw new Error(`Unsupported combinator "${e.combinator}".`);void 0!==e.combinator&&" "!==e.combinator||r.push(o=[n=[]]),">"===e.combinator&&o.push(n=[]),n.push(e)}),this.groups=r.map(e=>new Ws(e.map(e=>new zs(e))));const[i]=e;this.last=i,this.specificity=e.reduce((e,t)=>t.specificity+e,0),this.dynamic=e.some(e=>e.dynamic)}toString(){return this.selectors.join("")}match(e){let t=e;return this.groups.every((n,o)=>{if(0===o)return t=n.match(e),!!t;let r=t;for(;r=null==r?void 0:r.parentNode;)if(t=n.match(r))return!0;return!1})}lookupSort(e){this.last.lookupSort(e,this)}removeSort(e){this.last.removeSort(e,this)}accumulateChanges(e,t){let n=e;if(!this.dynamic)return this.match(n);const o=[],r=this.groups.every((t,r)=>{if(0===r){const r=t.mayMatch(e);return o.push({left:e,right:e}),n=r,!!n}let i=e;for(;i=i.parentNode;){const e=t.mayMatch(i);if(e)return o.push({left:i,right:void 0}),n=e,!0}return!1});if(!r)return!1;if(!t)return r;for(let e=0;e{if(!As){if(""===e)return;n=0}do{const t=Ms(e,n);if(!t){if(c)return null;break}({end:n}=t),s&&(l[1]=s.value),l=[t.value,void 0],i.push(l),s=Ds(e,n),s&&({end:n}=s),c=!(!s||" "===s.value)}while(s)}),{start:t,end:n,value:i}}(e);return t?function(e){if(0===e.length)return new Us(new Error("Empty selector."));if(1===e.length)return Js(e[0][0]);const t=[];for(let n=0;ne.lookupSort(this))}append(e){this.ruleSets=this.ruleSets.concat(e),e.forEach(e=>e.lookupSort(this))}delete(e){const t=[];this.ruleSets=this.ruleSets.filter(n=>n.hash!==e||(t.push(n),!1)),t.forEach(e=>e.removeSort(this))}query(e){const{tagName:t,id:n,classList:o}=e,r=[this.universal,this.id[n],this.type[t]];o.size&&o.forEach(e=>r.push(this.class[e]));const i=r.filter(e=>!!e).reduce((e,t)=>e.concat(t||[]),[]),s=new Qs;return s.selectors=i.filter(t=>t.sel.accumulateChanges(e,s)).sort((e,t)=>e.sel.specificity-t.sel.specificity||e.pos-t.pos).map(e=>e.sel),s}sortById(e,t){this.addToMap(this.id,e,t)}sortByClass(e,t){this.addToMap(this.class,e,t)}sortByType(e,t){this.addToMap(this.type,e,t)}removeById(e,t){this.removeFromMap(this.id,e,t)}removeByClass(e,t){this.removeFromMap(this.class,e,t)}removeByType(e,t){this.removeFromMap(this.type,e,t)}sortAsUniversal(e){this.universal.push(this.makeDocSelector(e))}removeAsUniversal(e){const t=this.universal.findIndex(t=>{var n,o;return(null===(n=t.sel.ruleSet)||void 0===n?void 0:n.hash)===(null===(o=e.ruleSet)||void 0===o?void 0:o.hash)});-1!==t&&this.universal.splice(t)}addToMap(e,t,n){const o=e;this.position+=1;const r=o[t];r?r.push(this.makeDocSelector(n)):o[t]=[this.makeDocSelector(n)]}removeFromMap(e,t,n){const o=e[t],r=o.findIndex(e=>{var t,o;return(null===(t=e.sel.ruleSet)||void 0===t?void 0:t.hash)===(null===(o=n.ruleSet)||void 0===o?void 0:o.hash)});-1!==r&&o.splice(r,1)}makeDocSelector(e){return this.position+=1,{sel:e,pos:this.position}}}const ta={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode"),moveNode:Symbol("moveNode"),updateEvent:Symbol("updateEvent")};let na,oa=!0,ra=[];function ia(e=[],t){e.forEach(e=>{if(e){const{id:n,eventList:o}=e;o.forEach(e=>{const{name:o,type:r,listener:i}=e;let s;s=function(e){return!!os[e]}(o)?os[o]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(o),r===ns&&t.removeEventListener(n,s,i),r===ts&&(t.removeEventListener(n,s,i),t.addEventListener(n,s,i))})}})}function sa(e,t){0}function aa(t){if(!oa)return;if(oa=!1,0===ra.length)return void(oa=!0);const{$nextTick:n,$options:{rootViewId:o}}=t;n(()=>{const t=function(e){const t=[];for(let n=0;n{switch(e.type){case ta.createNode:sa(e.printedNodes),n.create(e.nodes),ia(e.eventNodes,n);break;case ta.updateNode:sa(e.printedNodes),n.update(e.nodes),ia(e.eventNodes,n);break;case ta.deleteNode:sa(e.printedNodes),n.delete(e.nodes);break;case ta.moveNode:sa(e.printedNodes),n.move(e.nodes);break;case ta.updateEvent:ia(e.eventNodes,n)}}),n.build(),oa=!0,ra=[]})}function ca(){if(!na||e.__HIPPY_VUE_STYLES__){const t=function(e=[]){const t=ci();return e.map(e=>{const n=e.declarations.filter(qs).map(function(e){return t=>{const n=e(t);return n}}(t)),o=e.selectors.map(Zs);return new Fs(o,n,e.hash)})}(e.__HIPPY_VUE_STYLES__);na?na.append(t):na=new ea(t),e.__HIPPY_VUE_STYLES__=void 0}return e.__HIPPY_VUE_DISPOSE_STYLES__&&(e.__HIPPY_VUE_DISPOSE_STYLES__.forEach(e=>{na.delete(e)}),e.__HIPPY_VUE_DISPOSE_STYLES__=void 0),na}function la(e){const t={};return e.meta.component.defaultNativeProps&&Object.keys(e.meta.component.defaultNativeProps).forEach(n=>{if(void 0!==e.getAttribute(n))return;const o=e.meta.component.defaultNativeProps[n];pi(o)?t[n]=o(e):t[n]=o}),Object.keys(e.attributes).forEach(n=>{let o=e.getAttribute(n);if(!e.meta.component.attributeMaps||!e.meta.component.attributeMaps[n])return void(t[n]=o);const r=e.meta.component.attributeMaps[n];if("string"==typeof r)return void(t[r]=o);if(pi(r))return void(t[n]=r(o));const{name:i,propsValue:s,jointKey:a}=r;pi(s)&&(o=s(o)),a?(t[a]=t[a]||{},Object.assign(t[a],{[i]:o})):t[i]=o}),e.meta.component.nativeProps&&Object.assign(t,e.meta.component.nativeProps),t}function ua(e){const t=Object.create(null);try{ca().query(e).selectors.forEach(n=>{(function(e,t){return!(!t||!e)&&e.match(t)})(n,e)&&n.ruleSet.declarations.forEach(e=>{t[e.property]=e.value})})}catch(e){console.error("getDomCss Error:",e)}return t}function da(e){let t=void 0;const n=e.events;if(n){const o=[];Object.keys(n).forEach(e=>{const{name:t,type:r,isCapture:i,listener:s}=n[e];o.push({name:t,type:r,isCapture:i,listener:s})}),t={id:e.nodeId,eventList:o}}return t}function fa(e,t,n={},o=!1){var r;if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: "+t.tagName);let i;if(o)i=ks(t.nodeId);else{if(i=ua(t),i=l(l({},i),t.style),ii(),t.parentNode){const e=ks(t.parentNode.nodeId);["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"].forEach(t=>{!i[t]&&e[t]&&(i[t]=e[t])})}t.meta.component.defaultNativeStyle&&(i=l(l({},t.meta.component.defaultNativeStyle),i)),function(e,t){xs.set(e,t)}(t.nodeId,i)}const s={id:t.nodeId,pId:(null===(r=t.parentNode)||void 0===r?void 0:r.nodeId)||e,name:t.meta.component.name,props:l(l({},la(t)),{},{style:i}),tagName:t.tagName};!function(e){if(e.props.__modalFirstChild__){const t=e.props.style;Object.keys(t).some(e=>"position"===e&&"absolute"===t[e]&&(["position","left","right","top","bottom"].forEach(e=>delete t[e]),!0))}}(s),function(e,t,n){"View"===e.meta.component.name&&("scroll"===n.overflowX&&n.overflowY,"scroll"===n.overflowY?t.name="ScrollView":"scroll"===n.overflowX&&(t.name="ScrollView",t.props.horizontal=!0,n.flexDirection=Ss()?"row-reverse":"row"),"ScrollView"===t.name&&(e.childNodes.length,e.childNodes.length&&e.childNodes[0].setStyle("collapsable",!1)),n.backgroundImage&&(n.backgroundImage=hi(n.backgroundImage)))}(t,s,i),function(e,t){"TextInput"===e.meta.component.name&&Ss()&&(t.textAlign||(t.textAlign="right"))}(t,i);const a=da(t);let c=void 0;return[[s,n],a,c]}function pa(e,t,n,o={}){const r=[],i=[],s=[];return t.traverseChildren((t,o)=>{const[a,c,l]=fa(e,t,o);a&&r.push(a),c&&i.push(c),l&&s.push(l),"function"==typeof n&&n(t)},o),[r,i,s]}function ha(e,t,n={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;const o=ai();if(!o)return;const{$options:{rootViewId:r,rootView:i}}=o,s=function(e,t){return 3===e.nodeId||e.id===t.slice(1-t.length)}(e,i)&&!e.isMounted,a=e.isMounted&&!t.isMounted;if(s||a){const[i,a,c]=pa(r,s?e:t,e=>{var t,n;e.isMounted||(e.isMounted=!0),t=e,n=e.nodeId,Xi.set(n,t)},n);ra.push({type:ta.createNode,nodes:i,eventNodes:a,printedNodes:c}),aa(o)}}function ma(e){if(!e.isMounted)return;const t=ai(),n=da(e);ra.push({type:ta.updateEvent,nodes:[],eventNodes:[n],printedNodes:[]}),aa(t)}function ya(e,t=!1){if(!e.isMounted)return;const n=ai(),{$options:{rootViewId:o}}=n,[r,i,s]=fa(o,e,{},t);r&&(ra.push({type:ta.updateNode,nodes:r?[r]:[],eventNodes:i?[i]:[],printedNodes:[]}),aa(n))}function ga(e){if(!e.isMounted)return;const t=ai(),{$options:{rootViewId:n}}=t,[o,r,i]=pa(n,e);ra.push({type:ta.updateNode,nodes:o,eventNodes:r,printedNodes:i}),aa(t)}const va=new Set;let ba,_a=!1;const wa={exitApp(){Wa.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(_a||(_a=!0,wa.initEventListener()),Wa.callNative("DeviceEventModule","setListenBackPress",!0),va.add(e),{remove(){wa.removeListener(e)}}),removeListener(e){va.delete(e),0===va.size&&Wa.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){ba||(ba=ai()),ba.$on("hardwareBackPress",()=>{let e=!0;Array.from(va).reverse().every(t=>"function"!=typeof t||!t()||(e=!1,!1)),e&&wa.exitApp()})}},$a={exitApp(){},addListener:()=>({remove(){}}),removeListener(){},initEventListener(){}},Sa="android"===Hippy.device.platform.OS?wa:$a;let xa;const ka=new Map;class Oa{constructor(e,t){this.eventName=e,this.listener=t}remove(){this.eventName&&this.listener&&(Na(this.eventName,this.listener),this.listener=void 0)}}function Na(e,t){if(t instanceof Oa)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange");const o=ka.get(t);o&&(xa||(xa=ai()),xa.$off(n,o),ka.delete(t),ka.size<1&&Wa.callNative("NetInfo","removeListener",n))}var Ca=Object.freeze({__proto__:null,addEventListener:function(e,t){if("function"!=typeof t)return;let n=e;return"change"===n&&(n="networkStatusDidChange"),0===ka.size&&Wa.callNative("NetInfo","addListener",n),xa||(xa=ai()),xa.$on(n,t),ka.set(t,t),new Oa(n,t)},removeEventListener:Na,fetch:function(){return Wa.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)},NetInfoRevoker:Oa});const{on:Ea,off:Ia,emit:Aa,bridge:{callNative:Ta,callNativeWithPromise:Pa,callNativeWithCallbackId:ja},device:{platform:{OS:La,Localization:Ma={}},screen:{scale:Da}},device:Fa,document:Ra,register:Va}=Hippy,Ba={},Ua=["%c[native]%c","color: red","color: auto"],Ha=function(e,t){const n={top:-1,left:-1,bottom:-1,right:-1,width:-1,height:-1};if(!e.isMounted||!e.nodeId)return Promise.resolve(n);const{nodeId:o}=e;return ui(...Ua,"callUIFunction",{nodeId:o,funcName:t,params:[]}),new Promise(e=>Ra.callUIFunction(o,t,[],t=>{if(!t||"object"!=typeof t||void 0===o)return e(n);const{x:r,y:i,height:s,width:a}=t;return e({top:i,left:r,width:a,height:s,bottom:i+s,right:r+a})}))},Wa={callNative:Ta,callNativeWithPromise:Pa,callNativeWithCallbackId:ja,UIManagerModule:Ra,ConsoleModule:e.ConsoleModule||e.console,on:Ea,off:Ia,emit:Aa,PixelRatio:Da,Platform:La,Localization:Ma,version:"unspecified",Cookie:{getAll(e){if(!e)throw new TypeError("Vue.Native.Cookie.getAll() must have url argument");return Pa.call(this,"network","getCookie",e)},set(e,t,n){if(!e)throw new TypeError("Vue.Native.Cookie.getAll() must have url argument");if("string"!=typeof t)throw new TypeError("Vue.Native.Cookie.getAll() only receive string type of keyValue");let o="";if(n){if(!(n instanceof Date))throw new TypeError("Vue.Native.Cookie.getAll() only receive Date type of expires");o=n.toUTCString()}Ta.call(this,"network","setCookie",e,t,o)}},Clipboard:{getString(){return Pa.call(this,"ClipboardModule","getString")},setString(e){Ta.call(this,"ClipboardModule","setString",e)}},get isIPhoneX(){if(!p(Ba.isIPhoneX)){let e=!1;"ios"===Wa.Platform&&(e=20!==Wa.Dimensions.screen.statusBarHeight),Ba.isIPhoneX=e}return Ba.isIPhoneX},get screenIsVertical(){return Wa.Dimensions.window.widthHa(e,"measureInWindow"),measureInAppWindow:e=>"android"===Wa.Platform?Ha(e,"measureInWindow"):Ha(e,"measureInAppWindow"),getBoundingClientRect(e,t){const{nodeId:n}=e;return new Promise((o,r)=>{if(!e.isMounted||!n)return r(new Error(`getBoundingClientRect cannot get nodeId of ${e} or ${e} is not mounted`));ui(...Ua,"UIManagerModule",{nodeId:n,funcName:"getBoundingClientRect",params:t}),Ra.callUIFunction(n,"getBoundingClientRect",[t],e=>{if(!e||e.errMsg)return r(new Error((null==e?void 0:e.errMsg)||"getBoundingClientRect error with no response"));const{x:t,y:n,width:i,height:s}=e;let a=0,c=0;return"number"==typeof n&&"number"==typeof s&&(a=n+s),"number"==typeof t&&"number"==typeof i&&(c=t+i),o({x:t,y:n,width:i,height:s,bottom:a,right:c,left:t,top:n})})})},parseColor(e,t={platform:Wa.Platform}){if(Number.isInteger(e))return e;const n=Ba.COLOR_PARSER||(Ba.COLOR_PARSER=Object.create(null));return n[e]||(n[e]=_s(e)),n[e]},AsyncStorage:e.Hippy.asyncStorage,BackAndroid:Sa,ImageLoader:{getSize(e){return Pa.call(this,"ImageLoaderModule","getSize",e)},prefetch(e){Ta.call(this,"ImageLoaderModule","prefetch",e)}},NetInfo:Ca,getElemCss:ua};let za=0;e.__GLOBAL__&&Number.isInteger(e.__GLOBAL__.nodeId)&&(za=e.__GLOBAL__.nodeId);class Ya{constructor(){this._ownerDocument=null,this._isMounted=!1,this.nodeId=(za+=1,za%10==0&&(za+=1),za%10==0&&(za+=1),za),this.index=0,this.childNodes=[]}toString(){return this.constructor.name}get firstChild(){return this.childNodes.length?this.childNodes[0]:null}get lastChild(){const e=this.childNodes.length;return e?this.childNodes[e-1]:null}get meta(){return this._meta?this._meta:{}}get ownerDocument(){if(this._ownerDocument)return this._ownerDocument;let e=this;for(;"DocumentNode"!==e.constructor.name&&(e=e.parentNode,e););return this._ownerDocument=e,e}get isMounted(){return this._isMounted}set isMounted(e){this._isMounted=e}insertBefore(e,t){if(!e)throw new Error("Can't insert child.");if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't insert child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't insert child, because it already has a different parent.");const n=this.childNodes.indexOf(t);let o=t;return t.meta.skipAddToDom&&(o=Qi(this.childNodes,n)),e.parentNode=this,e.nextSibling=t,e.prevSibling=this.childNodes[n-1],this.childNodes[n-1]&&(this.childNodes[n-1].nextSibling=e),t.prevSibling=e,this.childNodes.splice(n,0,e),o.meta.skipAddToDom?ha(this,e):ha(this,e,{refId:o.nodeId,relativeToRef:es})}moveChild(e,t){if(!e)throw new Error("Can't move child.");if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't move child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't move child, because it already has a different parent.");const n=this.childNodes.indexOf(e),o=this.childNodes.indexOf(t);let r=t;if(t.meta.skipAddToDom&&(r=Qi(this.childNodes,o)),o===n)return e;e.nextSibling=t,e.prevSibling=t.prevSibling,t.prevSibling=e,this.childNodes[o-1]&&(this.childNodes[o-1].nextSibling=e),this.childNodes[o+1]&&(this.childNodes[o+1].prevSibling=e),this.childNodes[n-1]&&(this.childNodes[n-1].nextSibling=this.childNodes[n+1]),this.childNodes[n+1]&&(this.childNodes[n+1].prevSibling=this.childNodes[n-1]),this.childNodes.splice(n,1);const i=this.childNodes.indexOf(t);return this.childNodes.splice(i,0,e),r.meta.skipAddToDom?ha(this,e):function(e,t,n={}){if((null==e?void 0:e.meta)&&pi(e.meta.removeChild)&&e.meta.removeChild(e,t),!t||t.meta.skipAddToDom)return;if(n&&n.refId===t.nodeId)return;const o=ai(),{$options:{rootViewId:r}}=o,i={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},s=[[i,n]],a=[];ra.push({printedNodes:a,type:ta.moveNode,nodes:s,eventNodes:[]}),aa(o)}(this,e,{refId:r.nodeId,relativeToRef:es})}appendChild(e){if(!e)throw new Error("Can't append child.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");this.lastChild!==e&&(e.isMounted&&this.removeChild(e),e.parentNode=this,this.lastChild&&(e.prevSibling=this.lastChild,this.lastChild.nextSibling=e),this.childNodes.push(e),ha(this,e))}removeChild(e){if(!e)throw new Error("Can't remove child.");if(!e.parentNode)throw new Error("Can't remove child, because it has no parent.");if(e.parentNode!==this)throw new Error("Can't remove child, because it has a different parent.");if(e.meta.skipAddToDom)return;e.prevSibling&&(e.prevSibling.nextSibling=e.nextSibling),e.nextSibling&&(e.nextSibling.prevSibling=e.prevSibling),e.prevSibling=void 0,e.nextSibling=void 0;const t=this.childNodes.indexOf(e);this.childNodes.splice(t,1),function(e,t){if(!t||t.meta.skipAddToDom)return;t.isMounted=!1;const n=ai(),{$options:{rootViewId:o}}=n,r={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:o},i=[[r,{}]],s=[];ra.push({printedNodes:s,type:ta.deleteNode,nodes:i,eventNodes:[]}),aa(n)}(0,e)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(let t=0;t{this.traverseChildren.call(t,e,{})})}}class Ka extends Ya{constructor(e){super(),this.text=e,this._meta={symbol:_i,skipAddToDom:!0}}setText(e){this.text=e,"function"==typeof this.parentNode.setText&&this.parentNode.setText(e)}}const Ga={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},qa="turn",Xa="rad",Ja="deg",Za="beforeLoadStyleDisabled",Qa="class",ec="id",tc="text",nc="value",oc="defaultValue",rc="placeholder",ic="numberOfRows",sc="caretColor",ac="caret-color",cc="break-strategy",lc="placeholderTextColor",uc="placeholder-text-color",dc="underlineColorAndroid",fc="underline-color-android",pc="nativeBackgroundAndroid",hc={textShadowOffsetX:"width",textShadowOffsetY:"height"};function mc(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=i(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(!Array.isArray(n))return;let o="180";const[r,s,a]=n;return s&&a?o=function(e,t=Ja){const n=parseFloat(e);let o=e||"";const[,r]=e.split(".");switch(r&&r.length>2&&(o=n.toFixed(2)),t){case qa:o=""+(360*n).toFixed(2);break;case Xa:o=""+(180/Math.PI*n).toFixed(2)}return o}(s,a):r&&void 0!==Ga[r]&&(o=Ga[r]),o}function yc(e){const t=(e||"").replace(/\s+/g," ").trim(),[n,o]=t.split(/\s+(?![^(]*?\))/),r=/^([+-]?\d+\.?\d*)%$/g;return!n||r.exec(n)||o?n&&r.exec(o)?{ratio:parseFloat(o.split("%")[0])/100,color:Wa.parseColor(n)}:void 0:{color:Wa.parseColor(n)}}function gc(e,t,n){"backgroundImage"===e&&n.linearGradient&&delete n.linearGradient}function vc(e,t,n){void 0===t&&(delete n[e],gc(e,0,n),function(e,t,n){"textShadowOffsetX"!==e&&"textShadowOffsetY"!==e||!n.textShadowOffset||(delete n.textShadowOffset[hc[e]],0===Object.keys(n.textShadowOffset).length&&delete n.textShadowOffset)}(e,0,n))}function bc(e,t){if("string"!=typeof e)return;const n=e.split(",");for(let e=0,o=n.length;ee.trim()));if(function(e,t){if(e.size!==t.size)return!1;const n=e.values();let o=n.next().value;for(;o;){if(!t.has(o))return!1;o=n.next().value}return!0}(this.classList,e))return;return this.classList=e,void(!n.notToNative&&ga(this))}case ec:if(r===this.id)return;return this.id=r,void(!n.notToNative&&ga(this));case tc:case nc:case oc:case rc:if("string"!=typeof r)try{r=r.toString()}catch(e){e.message}n&&n.textUpdate||(r=function(e){return"string"!=typeof e?e:!oi||void 0===oi.config.trimWhitespace||oi.config.trimWhitespace?e.trim().replace(/Â/g," "):e.replace(/Â/g," ")}(r)),r=function(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)))}(r);break;case ic:if("ios"!==Wa.Platform)return;break;case sc:case ac:o="caret-color",r=Wa.parseColor(r);break;case cc:o="breakStrategy";break;case lc:case uc:o="placeholderTextColor",r=Wa.parseColor(r);break;case dc:case fc:o="underlineColorAndroid",r=Wa.parseColor(r);break;case pc:{const e=r;void 0!==e.color&&(e.color=Wa.parseColor(e.color)),o="nativeBackgroundAndroid",r=e;break}}if(this.attributes[o]===r)return;this.attributes[o]=r,"function"==typeof this.filterAttribute&&this.filterAttribute(this.attributes),!n.notToNative&&ya(this,n.notUpdateStyle)}catch(e){0}}removeAttribute(e){delete this.attributes[e]}setStyles(e){e&&"object"==typeof e&&0!==Object.keys(e).length&&(Object.keys(e).forEach(t=>{const n=e[t];this.setStyle(t,n,!0)}),ya(this))}setStyle(e,t,n=!1){let o=e,r=t;if(this.getAttribute(Za)||({value:r,property:o}=this.beforeLoadStyle({property:e,value:t})),void 0===t)return vc(o,r,this.style),void(n||ya(this));switch(o){case"fontWeight":"string"!=typeof r&&(r=r.toString());break;case"backgroundImage":[o,r]=function(e,t,n){delete n[e],gc(e,t,n);let o=t,r=e;if(0===t.indexOf("linear-gradient")){r="linearGradient";const e=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),n=[];o={},e.forEach((e,t)=>{if(0===t){const t=mc(e);if(t)o.angle=t;else{o.angle="180";const t=yc(e);t&&n.push(t)}}else{const t=yc(e);t&&n.push(t)}}),o.colorStopList=n}else{const e=/(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t);e&&e.length>1&&([,o]=e)}return[r,o]}(o,r,this.style);break;case"textShadowOffsetX":case"textShadowOffsetY":[o,r]=function(e,t=0,n){return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[hc[e]]:t}),["textShadowOffset",n.textShadowOffset]}(o,r,this.style);break;case"textShadowOffset":{const{x:e=0,width:t=0,y:n=0,height:o=0}=r||{};r={width:e||t,height:n||o};break}default:Object.prototype.hasOwnProperty.call(ws,o)&&(o=ws[o]),"string"==typeof r&&(r=r.trim(),r=o.toLowerCase().indexOf("color")>=0?Wa.parseColor(r):function(e,t,n){if(e.endsWith)return e.endsWith(t,n);let o=n;return(void 0===o||o>e.length)&&(o=e.length),e.slice(o-t.length,o)===t}(r,"px")?parseFloat(r.slice(0,r.length-2)):function(e){if("number"==typeof e)return e;if("string"==typeof e&&fi.test(e))try{return parseFloat(e)}catch(e){}return e}(r))}null!=r&&this.style[o]!==r&&(this.style[o]=r,n||ya(this))}setNativeProps(e){if(e){const{style:t}=e;this.setStyles(t)}}repaintWithChildren(){ga(this)}setStyleScope(e){"string"!=typeof e&&(e=e.toString()),e&&!this.scopeIdList.includes(e)&&this.scopeIdList.push(e)}get styleScopeId(){return this.scopeIdList}isTextNode(e){return(null==e?void 0:e.meta.symbol)===_i}appendChild(e){(null==e?void 0:e.meta.symbol)===_i&&e instanceof Ka&&this.setText(e.text,{notToNative:!0}),super.appendChild(e)}insertBefore(e,t){this.isTextNode(e)&&e instanceof Ka&&this.setText(e.text,{notToNative:!0}),super.insertBefore(e,t)}moveChild(e,t){this.isTextNode(e)&&e instanceof Ka&&this.setText(e.text,{notToNative:!0}),super.moveChild(e,t)}removeChild(e){this.isTextNode(e)&&e instanceof Ka&&this.setText("",{notToNative:!0}),super.removeChild(e)}setText(e,t={}){return"textarea"===this.tagName?this.setAttribute("value",e,{notToNative:!!t.notToNative}):this.setAttribute("text",e,{notToNative:!!t.notToNative})}setListenerHandledType(e,t){this.events[e]&&(this.events[e].handledType=t)}isListenerHandled(e,t){return!this.events[e]||t===this.events[e].handledType}getNativeEventName(e){let t="on"+di(e);if(this.meta.component){const{eventNamesMap:n}=this.meta.component;(null==n?void 0:n[e])&&(t=n[e])}return t}addEventListener(e,t,n){if(this._emitter||(this._emitter=new qi(this)),"scroll"===e&&!(this.getAttribute("scrollEventThrottle")>0)){const e=200;this.attributes.scrollEventThrottle=e}"function"==typeof this.polyfillNativeEvents&&({eventNames:e,callback:t,options:n}=this.polyfillNativeEvents(is,e,t,n)),this._emitter.addEventListener(e,t,n),bc(e,e=>{const t=this.getNativeEventName(e);var n,o;this.events[t]?this.events[t]&&this.events[t].type!==ts&&(this.events[t].type=ts):this.events[t]={name:t,type:ts,listener:(n=t,o=e,e=>{const{id:t,currentId:r,params:i,eventPhase:s}=e,a={id:t,nativeName:n,originalName:o,currentId:r,params:i,eventPhase:s};ls.receiveComponentEvent(a,e)}),isCapture:!1}}),ma(this)}removeEventListener(e,t,n){if(!this._emitter)return null;"function"==typeof this.polyfillNativeEvents&&({eventNames:e,callback:t,options:n}=this.polyfillNativeEvents(ss,e,t,n));const o=this._emitter.removeEventListener(e,t,n);return bc(e,e=>{const t=this.getNativeEventName(e);this.events[t]&&(this.events[t].type=ns)}),ma(this),o}dispatchEvent(e,t,n){if(!(e instanceof Gi))throw new Error("dispatchEvent method only accept Event instance");e.currentTarget=this,e.target||(e.target=t||this,"string"==typeof e.value&&e.target&&(e.target.value=e.value)),this._emitter&&this._emitter.emit(e),!e.bubbles&&n&&n.stopPropagation()}getBoundingClientRect(){return Wa.measureInWindow(this)}scrollToPosition(e=0,t=0,n=1e3){if("number"!=typeof e||"number"!=typeof t)return;let o=n;!1===o&&(o=0),Wa.callUIFunction(this,"scrollToWithOptions",[{x:e,y:t,duration:o}])}scrollTo(e,t,n){let o=n;if("object"==typeof e&&e){const{left:t,top:n,behavior:r="auto"}=e;({duration:o}=e),this.scrollToPosition(t,n,"none"===r?0:o)}else this.scrollToPosition(e,t,n)}setPressed(e){Wa.callUIFunction(this,"setPressed",[e])}setHotspot(e,t){Wa.callUIFunction(this,"setHotspot",[e,t])}}class wc extends _c{constructor(e){super("comment"),this.text=e,this._meta={symbol:_i,skipAddToDom:!0}}}class $c extends _c{getValue(){return new Promise(e=>Wa.callUIFunction(this,"getValue",t=>e(t.text)))}setValue(e){Wa.callUIFunction(this,"setValue",[e])}focus(){Wa.callUIFunction(this,"focusTextInput",[])}blur(){Wa.callUIFunction(this,"blurTextInput",[])}isFocused(){return new Promise(e=>Wa.callUIFunction(this,"isFocused",t=>e(t.value)))}clear(){Wa.callUIFunction(this,"clear",[])}showInputMethod(){}hideInputMethod(){}}class Sc extends _c{scrollToIndex(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&Wa.callUIFunction(this,"scrollToIndex",[e,t,n])}scrollToPosition(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&Wa.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}class xc extends Ya{constructor(){super(),this.documentElement=new _c("document")}static createComment(e){return new wc(e)}static createElement(e){switch(e){case"input":case"textarea":return new $c(e);case"ul":return new Sc(e);default:return new _c(e)}}static createElementNS(e,t){return new _c(`${e}:${t}`)}static createTextNode(e){return new Ka(e)}static createEvent(e){return new Gi(e)}}var kc={create(e,t){Oc(t)},update(e,t){e.data.ref!==t.data.ref&&(Oc(e,!0),Oc(t))},destroy(e){Oc(e,!0)}};function Oc(e,t){const n=e.data.ref;if(!p(n))return;const o=e.context,r=e.componentInstance||e.elm,i=o.$refs;t?Array.isArray(i[n])?N(i[n],r):i[n]===r&&(i[n]=void 0):e.data.refInFor?Array.isArray(i[n])?i[n].indexOf(r)<0&&i[n].push(r):i[n]=[r]:i[n]=r}const Nc=new ve("",{},[]),Cc=["create","activate","update","remove","destroy"];function Ec(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&p(e.data)===p(t.data)&&function(e,t){if("input"!==e.tag)return!0;let n;const o=p(n=e.data)&&p(n=n.attrs)&&n.type,r=p(n=t.data)&&p(n=n.attrs)&&n.type;return o===r||Tn(o)&&Tn(r)}(e,t)||h(e.isAsyncPlaceholder)&&f(t.asyncFactory.error))}function Ic(e,t,n){let o,r;const i={};for(o=t;o<=n;++o)r=e[o].key,p(r)&&(i[r]=o);return i}var Ac={create:Tc,update:Tc,destroy:function(e){Tc(e,Nc)}};function Tc(e,t){(e.data.directives||t.data.directives)&&function(e,t){const n=e===Nc,o=t===Nc,r=jc(e.data.directives,e.context),i=jc(t.data.directives,t.context),s=[],a=[];let c,l,u;for(c in i)l=r[c],u=i[c],l?(u.oldValue=l.value,u.oldArg=l.arg,Mc(u,"update",t,e),u.def&&u.def.componentUpdated&&a.push(u)):(Mc(u,"bind",t,e),u.def&&u.def.inserted&&s.push(u));if(s.length){const o=()=>{for(let n=0;n{for(let n=0;n{const t=r[e],o=i[e];null!=t&&null==o&&(n[e]=void 0)}),Object.keys(i).forEach(e=>{const t=r[e],o=i[e];t!==o&&(n[e]=o)}),Object.keys(n).forEach(e=>{o.setAttribute(e,n[e])})}var Rc={create:Fc,update:Fc};function Vc(e,t){const{elm:n,data:o}=t,r=e.data;if(!(o.staticClass||o.class||r&&(r.staticClass||r.class)))return;let i=On(t);const s=n._transitionClasses;s&&(i=Cn(i,En(s))),i!==n._prevClass&&(n.setAttribute("class",i),n._prevClass=i)}var Bc={create:Vc,update:Vc};let Uc;function Hc(e,t,n,o){(o||Uc).removeEventListener(e)}function Wc(e,t,n,o,r){n||Uc.addEventListener(e,t)}function zc(e,t,n){const o=Uc;return function(){const n=t(...arguments);null!==n&&Hc(e,0,0,o)}}function Yc(e,t){if(!e.data.on&&!t.data.on)return;const n=t.data.on||{},o=e.data.on||{};Uc=t.elm,it(n,o,Wc,Hc,zc,t.context)}var Kc={create:Yc,update:Yc};const Gc=I(T);function qc(e){const t={};for(let n=0;n{const r=e[o],i=t[o];!mi(r)&&mi(i)&&(n[Gc(o)]=void 0)}),Object.keys(t).forEach(o=>{const r=e[o],i=t[o];mi(i)||i===r||(n[Gc(o)]=i)}),n}function Jc(e,t){if(!t.elm||!function(e,t){return!(!e.data&&!t.data)&&!!(e.data.style||t.data.style||e.data.staticStyle||t.data.staticStyle)}(e,t))return;const n=Xc(e.data.staticStyle||{},t.data.staticStyle||{}),o=e.data.style||{};let r=t.data.style||{};const i=r.__ob__;Array.isArray(r)&&(r=qc(r),t.data.style=r),i&&(r=F({},r),t.data.style=r);const s=Xc(o,r);t.elm.setStyles(l(l({},n),s))}var Zc=[Rc,Bc,Kc,{create:Jc,update:Jc}];function Qc(e,t){let n=!1;3===e.nodeId&&(n=!0),n&&(function(e,t,n={}){var o;if(!e||!e.data)return;let{elm:r}=e;if(t&&(r=t),!r)return;let i=(null===(o=e.data)||void 0===o?void 0:o.attrs)||{};i.__ob__&&(i=F({},i),e.data.attrs=i),Object.keys(i).forEach(e=>{r.setAttribute(e,i[e],{notToNative:!!n.notToNative})})}(t,e,{notToNative:!0}),function(e,t,n={}){if(!e||!e.data)return;let{elm:o}=e;if(t&&(o=t),!o)return;const{staticStyle:r}=e.data;r&&Object.keys(r).forEach(e=>{const t=r[e];t&&o.setStyle(Gc(e),t,!!n.notToNative)});let{style:i}=e.data;if(i){const t=i.__ob__;Array.isArray(i)&&(i=qc(i),e.data.style=i),t&&(i=F({},i),e.data.style=i),Object.keys(i).forEach(e=>{o.setStyle(Gc(e),i[e],!!n.notToNative)})}}(t,e,{notToNative:!0}),function(e,t,n={}){if(!e||!e.data)return;const{data:o}=e;if(!o.staticClass&&!o.class)return;let{elm:r}=e;if(t&&(r=t),!r)return;let i=On(e);const s=r._transitionClasses;s&&(i=Cn(i,En(s))),i!==r._prevClass&&(r.setAttribute("class",i,{notToNative:!!n.notToNative}),r._prevClass=i)}(t,e,{notToNative:!0}))}const el=function(e){let t,n;const o={},{modules:r,nodeOps:i}=e;for(t=0;tm?(u=f(n[b+1])?null:n[b+1].elm,v(e,u,n,h,b,o)):h>b&&_(t,d,m)}(l,y,g,n,c):p(g)?(p(e.text)&&i.setTextContent(l,""),v(l,null,g,0,g.length-1,n)):p(y)?_(y,0,y.length-1):p(e.text)&&i.setTextContent(l,""):e.text!==t.text&&i.setTextContent(l,t.text),p(m)&&p(u=m.hook)&&p(u=u.postpatch)&&u(e,t)}function k(e,t,n){if(h(n)&&p(e.parent))e.parent.data.pendingInsert=t;else for(let e=0;e=0?e.moveChild(t,n):e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t),Zi(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.setText(t)},setAttribute:function(e,t,n){e.setAttribute(t,n)},setStyleScope:function(e,t){e.setStyleScope(t)}}),modules:Zc.concat(Dc)});function tl(e,t){t!==e.attributes.defaultValue&&(e.attributes.defaultValue=t,e.setAttribute("text",t,{textUpdate:!0}))}let nl=function(e,t,n){t!==n&&e.setAttribute("defaultValue",t,{textUpdate:!0})};const ol={inserted(e,t){"ios"===Wa.Platform&&nl!==tl&&(nl=tl),"TextInput"===e.meta.component.name&&(e._vModifiers=t.modifiers,e.attributes.defaultValue=t.value,t.modifiers.lazy||e.addEventListener("change",({value:t})=>{const n=new Gi("input");n.value=t,e.dispatchEvent(n)}))},update(e,{value:t,oldValue:n}){e.value=t,nl(e,t,n)}};function rl(e,t,n,o){t?(n.data.show=!0,e.setStyle("display",o)):e.setStyle("display","none")}const il={bind(e,{value:t},n){void 0===e.style.display&&(e.style.display="block");const o="none"===e.style.display?"":e.style.display;e.__vOriginalDisplay=o,rl(e,t,n,o)},update(e,{value:t,oldValue:n},o){!t!=!n&&rl(e,t,o,e.__vOriginalDisplay)},unbind(e,t,n,o,r){r||(e.style.display=e.__vOriginalDisplay)}};var sl=Object.freeze({__proto__:null,model:ol,show:il});const al=['%c[Hippy-Vue "unspecified"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"],cl=new xc;gn.$document=cl,gn.prototype.$document=cl,gn.$Document=xc,gn.$Event=Gi,gn.config.mustUseProp=function(e,t,n){const o=Ki(e);return!!o.mustUseProp&&o.mustUseProp(t,n)},gn.config.isReservedTag=Ui,gn.config.isUnknownElement=function(e){return t=e,!Hi.has(zi(t));var t},gn.compile=ei,gn.registerElement=Yi,F(gn.options.directives,sl),gn.prototype.__patch__=el,gn.prototype.$mount=function(e,t){const n=this.$options;if(!n.render){const{template:e}=n;if(e&&"string"!=typeof e)return fe("invalid template option: "+e,this),this;if(e){const{render:t,staticRenderFns:o}=ei(e,{delimiters:n.delimiters,comments:n.comments},this);n.render=t,n.staticRenderFns=o}}return function(e,t,n){let o;return e.$el=t,e.$options.render||(e.$options.render=be),Xt(e,"beforeMount"),o=()=>{e._update(e._render(),n)},new an(e,o,R,{before(){e._isMounted&&!e._isDestroyed&&Xt(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Xt(e,"mounted")),e}(this,e,t)},gn.prototype.$start=function(e,t){var n;si(this),pi(this.$options.beforeLoadStyle)&&(n=this.$options.beforeLoadStyle,ri=n),Hi.forEach(e=>{gn.component(e.meta.component.name,e.meta.component)}),Va.regist(this.$options.appName,n=>{const{__instanceId__:o}=n;if(this.$options.$superProps=n,this.$options.rootViewId=o,ui(...al,"Start",this.$options.appName,"with rootViewId",o,n),this.$el){this.$destroy();si(new(gn.extend(this.$options))(this.$options))}if(pi(t)&&t(this,n),this.$mount(),"ios"===Wa.Platform){const e=function(e={}){const{iPhone:t}=e;let n={};if((null==t?void 0:t.statusBar)&&(n=t.statusBar),n.disabled)return null;const o=new _c("div"),{statusBarHeight:r}=Wa.Dimensions.screen;Wa.screenIsVertical?o.setStyle("height",r):o.setStyle("height",0);let i=4282431619;if("number"==typeof n.backgroundColor&&({backgroundColor:i}=n),o.setStyle("backgroundColor",i),"string"==typeof n.backgroundImage){const t=new _c("img");t.setStyle("width",Wa.Dimensions.screen.width),t.setStyle("height",r),t.setAttribute("src",e.statusBarOpts.backgroundImage),o.appendChild(t)}return o.addEventListener("layout",()=>{Wa.screenIsVertical?o.setStyle("height",r):o.setStyle("height",0)}),o}(this.$options);e&&(this.$el.childNodes.length?this.$el.insertBefore(e,this.$el.childNodes[0]):this.$el.appendChild(e))}pi(e)&&e(this,n)})};let ll=1;gn.component=function(e,t){return t?(v(t)&&(t.name=t.name||e,t=this.options._base.extend(t)),this.options.components[e]=t,t):this.options.components[e]},gn.extend=function(e){e=e||{};const t=this,n=t.cid,o=e._Ctor||(e._Ctor={});if(o[n])return o[n];const r=e.name||t.options.name,i=function(e){this._init(e)};return(i.prototype=Object.create(t.prototype)).constructor=i,ll+=1,i.cid=ll,i.options=Re(t.options,e),i.super=t,i.options.props&&function(e){const{props:t}=e.options;Object.keys(t).forEach(t=>ln(e.prototype,"_props",t))}(i),i.options.computed&&function(e){const{computed:t}=e.options;Object.keys(t).forEach(n=>fn(e.prototype,n,t[n]))}(i),i.extend=t.extend,i.mixin=t.mixin,i.use=t.use,z.forEach(e=>{i[e]=t[e]}),r&&(i.options.components[r]=i),i.superOptions=t.options,i.extendOptions=e,i.sealedOptions=F({},i.options),o[n]=i,i},gn.Native=Wa,gn.getApp=ai,gn.use((function(){Object.keys(Bi).forEach(e=>{Yi(e,Bi[e])})})),K.devtools&&ce&&ce.emit("init",gn);gn.config._setBeforeRenderToNative=(e,t)=>{pi(e)&&(1===t?ii=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))};const ul=new Proxy(gn,{construct(e,t){const n=new e(...t);return n}});let dl;e.process=e.process||{},e.process.env=e.process.env||{},e.WebSocket=class{constructor(e,t,n){this.webSocketId=-1,dl=ai(),this.url=e,this.readyState=0,this.webSocketCallbacks={},this.onWebSocketEvent=this.onWebSocketEvent.bind(this);const o=l({},n);if(dl.$on("hippyWebsocketEvents",this.onWebSocketEvent),!e||"string"!=typeof e)throw new TypeError("Invalid WebSocket url");Array.isArray(t)&&t.length>0?o["Sec-WebSocket-Protocol"]=t.join(","):"string"==typeof t&&(o["Sec-WebSocket-Protocol"]=t);const r={headers:o,url:e};Wa.callNativeWithPromise("websocket","connect",r).then(e=>{e&&0===e.code&&"number"==typeof e.id&&(this.webSocketId=e.id)})}close(e,t){1===this.readyState&&(this.readyState=2,Wa.callNative("websocket","close",{id:this.webSocketId,code:e,reason:t}))}send(e){if(1===this.readyState){if("string"!=typeof e)throw new TypeError("Unsupported websocket data type: "+typeof e);Wa.callNative("websocket","send",{id:this.webSocketId,data:e})}}set onopen(e){this.webSocketCallbacks.onOpen=e}set onclose(e){this.webSocketCallbacks.onClose=e}set onerror(e){this.webSocketCallbacks.onError=e}set onmessage(e){this.webSocketCallbacks.onMessage=e}onWebSocketEvent(e){if("object"!=typeof e||e.id!==this.webSocketId)return;const t=e.type;if("string"!=typeof t)return;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,dl.$off("hippyWebsocketEvents",this.onWebSocketEvent));const n=this.webSocketCallbacks[t];pi(n)&&n(e.data)}},ul.config.silent=!1,ul.config.trimWhitespace=!0,function(e){oi=e}(ul)}.call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/timers-browserify/main.js").setImmediate,n("./node_modules/process/browser.js"))},"./node_modules/process/browser.js":function(e,t){var n,o,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(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{o="function"==typeof clearTimeout?clearTimeout:s}catch(e){o=s}}();var c,l=[],u=!1,d=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&p())}function p(){if(!u){var e=a(f);u=!0;for(var t=l.length;t;){for(c=l,l=[];++d1)for(var n=1;n=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n("./node_modules/setimmediate/setImmediate.js"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/webpack/buildin/global.js":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},"./scripts/vendor.js":function(e,t,n){n("../../packages/hippy-vue/dist/index.js"),n("../../packages/hippy-vue-native-components/dist/index.js")},0:function(e,t,n){e.exports=n}}); \ No newline at end of file + */(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"default",(function(){return fl}));const d=Object.freeze({});function f(e){return null==e}function p(e){return null!=e}function h(e){return!0===e}function m(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function y(e){return null!==e&&"object"==typeof e}const g=Object.prototype.toString;function v(e){return"[object Object]"===g.call(e)}function b(e){return"[object RegExp]"===g.call(e)}function _(e){const t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function w(e){return p(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function $(e){return null==e?"":Array.isArray(e)||v(e)&&e.toString===g?JSON.stringify(e,null,2):String(e)}function S(e){const t=parseFloat(e);return isNaN(t)?e:t}function x(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;en[e.toLowerCase()]:e=>n[e]}const k=x("slot,component",!0),O=x("key,ref,slot,slot-scope,is");function N(e,t){if(e.length){const n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}const E=Object.prototype.hasOwnProperty;function C(e,t){return E.call(e,t)}function I(e){const t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}const A=/-(\w)/g,T=I(e=>e.replace(A,(e,t)=>t?t.toUpperCase():"")),P=I(e=>e.charAt(0).toUpperCase()+e.slice(1)),j=/\B([A-Z])/g,L=I(e=>e.replace(j,"-$1").toLowerCase());const M=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){const o=arguments.length;return o?o>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function D(e,t){t=t||0;let n=e.length-t;const o=new Array(n);for(;n--;)o[n]=e[n+t];return o}function F(e,t){for(const n in t)e[n]=t[n];return e}function R(e,t,n){}const V=(e,t,n)=>!1,B=e=>e;function H(e,t){if(e===t)return!0;const n=y(e),o=y(t);if(!n||!o)return!n&&!o&&String(e)===String(t);try{const n=Array.isArray(e),o=Array.isArray(t);if(n&&o)return e.length===t.length&&e.every((e,n)=>H(e,t[n]));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(n||o)return!1;{const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every(n=>H(e[n],t[n]))}}catch(e){return!1}}function U(e,t){for(let n=0;n!1,ce=e.__VUE_DEVTOOLS_GLOBAL_HOOK__;function le(e){return"function"==typeof e&&/native code/.test(e.toString())}const ue="undefined"!=typeof Symbol&&le(Symbol)&&"undefined"!=typeof Reflect&&le(Reflect.ownKeys);let de;de="undefined"!=typeof Set&&le(Set)?Set:class{constructor(){this.set=Object.create(null)}has(e){return!0===this.set[e]}add(e){this.set[e]=!0}clear(){this.set=Object.create(null)}};let fe=R;let pe=0;class he{constructor(){this.id=pe++,this.subs=[]}addSub(e){this.subs.push(e)}removeSub(e){N(this.subs,e)}depend(){he.target&&he.target.addDep(this)}notify(){const e=this.subs.slice();for(let t=0,n=e.length;t{const t=new ve;return t.text=e,t.isComment=!0,t};function _e(e){return new ve(void 0,void 0,void 0,String(e))}function we(e){const t=new ve(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}const $e=Array.prototype,Se=Object.create($e);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){const t=$e[e];X(Se,e,(function(...n){const o=t.apply(this,n),r=this.__ob__;let i;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&r.observeArray(i),r.dep.notify(),o}))}));const xe=Object.getOwnPropertyNames(Se);let ke=!0;function Oe(e){ke=e}class Ne{constructor(e){this.value=e,this.dep=new he,this.vmCount=0,X(e,"__ob__",this),Array.isArray(e)?(Z?function(e,t){e.__proto__=t}(e,Se):function(e,t,n){for(let o=0,r=n.length;o{Pe[e]=Me}),z.forEach((function(e){Pe[e+"s"]=De})),Pe.watch=function(e,t,n,o){if(e===ie&&(e=void 0),t===ie&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;const r={};F(r,e);for(const e in t){let n=r[e];const o=t[e];n&&!Array.isArray(n)&&(n=[n]),r[e]=n?n.concat(o):Array.isArray(o)?o:[o]}return r},Pe.props=Pe.methods=Pe.inject=Pe.computed=function(e,t,n,o){if(!e)return t;const r=Object.create(null);return F(r,e),t&&F(r,t),r},Pe.provide=Le;const Fe=function(e,t){return void 0===t?e:t};function Re(e,t,n){if("function"==typeof t&&(t=t.options),function(e,t){const n=e.props;if(!n)return;const o={};let r,i,s;if(Array.isArray(n))for(r=n.length;r--;)i=n[r],"string"==typeof i&&(s=T(i),o[s]={type:null});else if(v(n))for(const e in n)i=n[e],s=T(e),o[s]=v(i)?i:{type:i};else 0;e.props=o}(t),function(e,t){const n=e.inject;if(!n)return;const o=e.inject={};if(Array.isArray(n))for(let e=0;e-1)if(i&&!C(r,"default"))s=!1;else if(""===s||s===L(e)){const e=ze(String,r.type);(e<0||aYe(e,o,r+" (Promise/async)")),i._handled=!0)}catch(e){Ye(e,o,r)}return i}function Ge(e,t,n){if(K.errorHandler)try{return K.errorHandler.call(null,e,t,n)}catch(t){t!==e&&qe(t,null,"config.errorHandler")}qe(e,t,n)}function qe(e,t,n){if(!Q&&!ee||"undefined"==typeof console)throw e;console.error(e)}const Xe=[];let Je,Ze=!1;function Qe(){Ze=!1;const e=Xe.slice(0);Xe.length=0;for(let t=0;t{e.then(Qe),re&&setTimeout(R)}}else if(oe||"undefined"==typeof MutationObserver||!le(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Je=void 0!==o&&le(o)?()=>{o(Qe)}:()=>{setTimeout(Qe,0)};else{let e=1;const t=new MutationObserver(Qe),n=document.createTextNode(String(e));t.observe(n,{characterData:!0}),Je=()=>{e=(e+1)%2,n.data=String(e)}}function et(e,t){let n;if(Xe.push(()=>{if(e)try{e.call(t)}catch(e){Ye(e,t,"nextTick")}else n&&n(t)}),Ze||(Ze=!0,Je()),!e&&"undefined"!=typeof Promise)return new Promise(e=>{n=e})}const tt=new de;function nt(e){!function e(t,n){let o,r;const i=Array.isArray(t);if(!i&&!y(t)||Object.isFrozen(t)||t instanceof ve)return;if(t.__ob__){const e=t.__ob__.dep.id;if(n.has(e))return;n.add(e)}if(i)for(o=t.length;o--;)e(t[o],n);else for(r=Object.keys(t),o=r.length;o--;)e(t[r[o]],n)}(e,tt),tt.clear()}const ot=I(e=>{const t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),o="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=o?e.slice(1):e,once:n,capture:o,passive:t}});function rt(e,t){function n(){const e=n.fns;if(!Array.isArray(e))return Ke(e,null,arguments,t,"v-on handler");{const n=e.slice();for(let e=0;e0&&(i=e(i,`${n||""}_${r}`),lt(i[0])&<(a)&&(o[s]=_e(a.text+i[0].text),i.shift()),o.push.apply(o,i)):m(i)?lt(a)?o[s]=_e(a.text+i):""!==i&&o.push(_e(i)):lt(i)&<(a)?o[s]=_e(a.text+i.text):(h(t._isVList)&&p(i.tag)&&f(i.key)&&p(n)&&(i.key=`__vlist${n}_${r}__`),o.push(i)));return o}(e):void 0}function lt(e){return p(e)&&p(e.text)&&!1===e.isComment}function ut(e,t){if(e){const n=Object.create(null),o=ue?Reflect.ownKeys(e):Object.keys(e);for(let r=0;r0,i=e?!!e.$stable:!r,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(i&&n&&n!==d&&s===n.$key&&!r&&!n.$hasNormal)return n;o={};for(const n in e)e[n]&&"$"!==n[0]&&(o[n]=mt(t,n,e[n]))}else o={};for(const e in t)e in o||(o[e]=yt(t,e));return e&&Object.isExtensible(e)&&(e._normalized=o),X(o,"$stable",i),X(o,"$key",s),X(o,"$hasNormal",r),o}function mt(e,t,n){const o=function(){let e=arguments.length?n.apply(null,arguments):n({});e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:ct(e);let t=e&&e[0];return e&&(!t||1===e.length&&t.isComment&&!pt(t))?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:o,enumerable:!0,configurable:!0}),o}function yt(e,t){return()=>e[t]}function gt(e,t){let n,o,r,i,s;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),o=0,r=e.length;o(this.$slots||ht(e.scopedSlots,this.$slots=dt(n,o)),this.$slots),Object.defineProperty(this,"scopedSlots",{enumerable:!0,get(){return ht(e.scopedSlots,this.slots())}}),a&&(this.$options=i,this.$slots=this.slots(),this.$scopedSlots=ht(e.scopedSlots,this.$slots)),i._scopeId?this._c=(e,t,n,r)=>{const a=Rt(s,e,t,n,r,c);return a&&!Array.isArray(a)&&(a.fnScopeId=i._scopeId,a.fnContext=o),a}:this._c=(e,t,n,o)=>Rt(s,e,t,n,o,c)}function Pt(e,t,n,o,r){const i=we(e);return i.fnContext=n,i.fnOptions=o,t.slot&&((i.data||(i.data={})).slot=t.slot),i}function jt(e,t){for(const n in t)e[T(n)]=t[n]}At(Tt.prototype);const Lt={init(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){const t=e;Lt.prepatch(t,t)}else{(e.componentInstance=function(e,t){const n={_isComponent:!0,_parentVnode:e,parent:t},o=e.data.inlineTemplate;p(o)&&(n.render=o.render,n.staticRenderFns=o.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,Kt)).$mount(t?e.elm:void 0,t)}},prepatch(e,t){const n=t.componentOptions;!function(e,t,n,o,r){0;const i=o.data.scopedSlots,s=e.$scopedSlots,a=!!(i&&!i.$stable||s!==d&&!s.$stable||i&&e.$scopedSlots.$key!==i.$key||!i&&e.$scopedSlots.$key),c=!!(r||e.$options._renderChildren||a);e.$options._parentVnode=o,e.$vnode=o,e._vnode&&(e._vnode.parent=o);if(e.$options._renderChildren=r,e.$attrs=o.data.attrs||d,e.$listeners=n||d,t&&e.$options.props){Oe(!1);const n=e._props,o=e.$options._propKeys||[];for(let r=0;rN(o,n));const a=e=>{for(let e=0,t=o.length;e{e.resolved=Ht(n,t),r?o.length=0:a(!0)}),l=W(t=>{p(e.errorComp)&&(e.error=!0,a(!0))}),u=e(c,l);return y(u)&&(w(u)?f(e.resolved)&&u.then(c,l):w(u.component)&&(u.component.then(c,l),p(u.error)&&(e.errorComp=Ht(u.error,t)),p(u.loading)&&(e.loadingComp=Ht(u.loading,t),0===u.delay?e.loading=!0:i=setTimeout(()=>{i=null,f(e.resolved)&&f(e.error)&&(e.loading=!0,a(!1))},u.delay||200)),p(u.timeout)&&(s=setTimeout(()=>{s=null,f(e.resolved)&&l(null)},u.timeout)))),r=!1,e.loading?e.loadingComp:e.resolved}}(s,i))))return function(e,t,n,o,r){const i=be();return i.asyncFactory=e,i.asyncMeta={data:t,context:n,children:o,tag:r},i}(s,t,n,o,r);t=t||{},yn(e),p(t.model)&&function(e,t){const n=e.model&&e.model.prop||"value",o=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;const r=t.on||(t.on={}),i=r[o],s=t.model.callback;p(i)?(Array.isArray(i)?-1===i.indexOf(s):i!==s)&&(r[o]=[s].concat(i)):r[o]=s}(e.options,t);const a=function(e,t,n){const o=t.options.props;if(f(o))return;const r={},{attrs:i,props:s}=e;if(p(i)||p(s))for(const e in o){const t=L(e);0,at(r,s,e,t,!0)||at(r,i,e,t,!1)}return r}(t,e);if(h(e.options.functional))return function(e,t,n,o,r){const i=e.options,s={},a=i.props;if(p(a))for(const e in a)s[e]=Be(e,a,t||d);else p(n.attrs)&&jt(s,n.attrs),p(n.props)&&jt(s,n.props);const c=new Tt(n,s,r,o,e),l=i.render.call(null,c._c,c);if(l instanceof ve)return Pt(l,n,c.parent,i,c);if(Array.isArray(l)){const e=ct(l)||[],t=new Array(e.length);for(let o=0;o{e(n,o),t(n,o)};return n._merged=!0,n}function Rt(e,t,n,o,r,i){return(Array.isArray(n)||m(n))&&(r=o,o=n,n=void 0),h(i)&&(r=2),function(e,t,n,o,r){if(p(n)&&p(n.__ob__))return be();p(n)&&p(n.is)&&(t=n.is);if(!t)return be();0;Array.isArray(o)&&"function"==typeof o[0]&&((n=n||{}).scopedSlots={default:o[0]},o.length=0);2===r?o=ct(o):1===r&&(o=function(e){for(let t=0;tdocument.createEvent("Event").timeStamp&&(on=()=>e.now())}function rn(){let e,t;for(on(),tn=!0,Jt.sort((e,t)=>e.id-t.id),nn=0;nnnn&&Jt[t].id>e.id;)t--;Jt.splice(t+1,0,e)}else Jt.push(e);en||(en=!0,et(rn))}}(this)}run(){if(this.active){const e=this.get();if(e!==this.value||y(e)||this.deep){const t=this.value;if(this.value=e,this.user){const n=`callback for watcher "${this.expression}"`;Ke(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}}evaluate(){this.value=this.get(),this.dirty=!1}depend(){let e=this.deps.length;for(;e--;)this.deps[e].depend()}teardown(){if(this.active){this.vm._isBeingDestroyed||N(this.vm._watchers,this);let e=this.deps.length;for(;e--;)this.deps[e].removeSub(this);this.active=!1}}}const cn={enumerable:!0,configurable:!0,get:R,set:R};function ln(e,t,n){cn.get=function(){return this[t][n]},cn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,cn)}function un(e){e._watchers=[];const t=e.$options;t.props&&function(e,t){const n=e.$options.propsData||{},o=e._props={},r=e.$options._propKeys=[];e.$parent&&Oe(!1);for(const i in t){r.push(i);const s=Be(i,t,n,e);Ce(o,i,s),i in e||ln(e,"_props",i)}Oe(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(const n in t)e[n]="function"!=typeof t[n]?R:M(t[n],e)}(e,t.methods),t.data?function(e){let t=e.$options.data;t=e._data="function"==typeof t?function(e,t){ye();try{return e.call(t,t)}catch(e){return Ye(e,t,"data()"),{}}finally{ge()}}(t,e):t||{},v(t)||(t={});const n=Object.keys(t),o=e.$options.props;e.$options.methods;let r=n.length;for(;r--;){const t=n[r];0,o&&C(o,t)||q(t)||ln(e,"_data",t)}Ee(t,!0)}(e):Ee(e._data={},!0),t.computed&&function(e,t){const n=e._computedWatchers=Object.create(null);for(const o in t){const r=t[o],i="function"==typeof r?r:r.get;0,n[o]=new an(e,i||R,R,dn),o in e||fn(e,o,r)}}(e,t.computed),t.watch&&t.watch!==ie&&function(e,t){for(const n in t){const o=t[n];if(Array.isArray(o))for(let t=0;t-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!b(e)&&e.test(t)}function wn(e,t){const{cache:n,keys:o,_vnode:r}=e;for(const e in n){const i=n[e];if(i){const s=i.name;s&&!t(s)&&$n(n,e,o,r)}}}function $n(e,t,n,o){const r=e[t];!r||o&&r.tag===o.tag||r.componentInstance.$destroy(),e[t]=null,N(n,t)}!function(e){e.prototype._init=function(e){const t=this;t._uid=mn++,t._isVue=!0,e&&e._isComponent?function(e,t){const n=e.$options=Object.create(e.constructor.options),o=t._parentVnode;n.parent=t.parent,n._parentVnode=o;const r=o.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Re(yn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){const t=e.$options;let n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;const t=e.$options._parentListeners;t&&Yt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;const t=e.$options,n=e.$vnode=t._parentVnode,o=n&&n.context;e.$slots=dt(t._renderChildren,o),e.$scopedSlots=d,e._c=(t,n,o,r)=>Rt(e,t,n,o,r,!1),e.$createElement=(t,n,o,r)=>Rt(e,t,n,o,r,!0);const r=n&&n.data;Ce(e,"$attrs",r&&r.attrs||d,null,!0),Ce(e,"$listeners",t._parentListeners||d,null,!0)}(t),Xt(t,"beforeCreate"),function(e){const t=ut(e.$options.inject,e);t&&(Oe(!1),Object.keys(t).forEach(n=>{Ce(e,n,t[n])}),Oe(!0))}(t),un(t),function(e){const t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),Xt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(gn),function(e){const t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Ie,e.prototype.$delete=Ae,e.prototype.$watch=function(e,t,n){const o=this;if(v(t))return hn(o,e,t,n);(n=n||{}).user=!0;const r=new an(o,e,t,n);if(n.immediate){const e=`callback for immediate watcher "${r.expression}"`;ye(),Ke(t,o,[r.value],o,e),ge()}return function(){r.teardown()}}}(gn),function(e){const t=/^hook:/;e.prototype.$on=function(e,n){const o=this;if(Array.isArray(e))for(let t=0,r=e.length;t1?D(n):n;const o=D(arguments,1),r=`event handler for "${e}"`;for(let e=0,i=n.length;e{Kt=t}}(n);n._vnode=e,n.$el=r?n.__patch__(r,e):n.__patch__(n.$el,e,t,!1),i(),o&&(o.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){const e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){const e=this;if(e._isBeingDestroyed)return;Xt(e,"beforeDestroy"),e._isBeingDestroyed=!0;const t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||N(t.$children,e),e._watcher&&e._watcher.teardown();let n=e._watchers.length;for(;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Xt(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}(gn),function(e){At(e.prototype),e.prototype.$nextTick=function(e){return et(e,this)},e.prototype._render=function(){const e=this,{render:t,_parentVnode:n}=e.$options;let o;n&&(e.$scopedSlots=ht(n.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=n;try{Bt=e,o=t.call(e._renderProxy,e.$createElement)}catch(t){Ye(t,e,"render"),o=e._vnode}finally{Bt=null}return Array.isArray(o)&&1===o.length&&(o=o[0]),o instanceof ve||(o=be()),o.parent=n,o}}(gn);const Sn=[String,RegExp,Array];var xn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Sn,exclude:Sn,max:[String,Number]},methods:{cacheVNode(){const{cache:e,keys:t,vnodeToCache:n,keyToCache:o}=this;if(n){const{tag:r,componentInstance:i,componentOptions:s}=n;e[o]={name:bn(s),tag:r,componentInstance:i},t.push(o),this.max&&t.length>parseInt(this.max)&&$n(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created(){this.cache=Object.create(null),this.keys=[]},destroyed(){for(const e in this.cache)$n(this.cache,e,this.keys)},mounted(){this.cacheVNode(),this.$watch("include",e=>{wn(this,t=>_n(e,t))}),this.$watch("exclude",e=>{wn(this,t=>!_n(e,t))})},updated(){this.cacheVNode()},render(){const e=this.$slots.default,t=function(e){if(Array.isArray(e))for(let t=0;tK};Object.defineProperty(e,"config",t),e.util={warn:fe,extend:F,mergeOptions:Re,defineReactive:Ce},e.set=Ie,e.delete=Ae,e.nextTick=et,e.observable=e=>(Ee(e),e),e.options=Object.create(null),z.forEach(t=>{e.options[t+"s"]=Object.create(null)}),e.options._base=e,F(e.options.components,xn),function(e){e.use=function(e){const t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;const n=D(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Re(this.options,e),this}}(e),vn(e),function(e){z.forEach(t=>{e[t]=function(e,n){return n?("component"===t&&v(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(gn),Object.defineProperty(gn.prototype,"$isServer",{get:ae}),Object.defineProperty(gn.prototype,"$ssrContext",{get(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(gn,"FunctionalRenderContext",{value:Tt}),gn.version="2.6.14",x("style,class");const kn=x("input,textarea,option,select,progress");function On(e){let t=e.data,n=e,o=e;for(;p(o.componentInstance);)o=o.componentInstance._vnode,o&&o.data&&(t=Nn(o.data,t));for(;p(n=n.parent);)n&&n.data&&(t=Nn(t,n.data));return function(e,t){if(p(e)||p(t))return En(e,Cn(t));return""}(t.staticClass,t.class)}function Nn(e,t){return{staticClass:En(e.staticClass,t.staticClass),class:p(e.class)?[e.class,t.class]:t.class}}function En(e,t){return e?t?e+" "+t:e:t||""}function Cn(e){return Array.isArray(e)?function(e){let t,n="";for(let o=0,r=e.length;o=0&&(t=e.charAt(n)," "===t);n--);t&&Pn.test(t)||(l=!0)}}else void 0===r?(p=o+1,r=e.slice(0,o).trim()):h();function h(){(i||(i=[])).push(e.slice(p,o).trim()),p=o+1}if(void 0===r?r=e.slice(0,o).trim():0!==p&&h(),i)for(o=0;o{const t=e[0].replace(Dn,"\\$&"),n=e[1].replace(Dn,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});function Rn(e,t){console.error("[Vue compiler]: "+e)}function Vn(e,t){return e?e.map(e=>e[t]).filter(e=>e):[]}function Bn(e,t,n,o,r){(e.props||(e.props=[])).push(Xn({name:t,value:n,dynamic:r},o)),e.plain=!1}function Hn(e,t,n,o,r){(r?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Xn({name:t,value:n,dynamic:r},o)),e.plain=!1}function Un(e,t,n,o){e.attrsMap[t]=n,e.attrsList.push(Xn({name:t,value:n},o))}function Wn(e,t,n,o,r,i,s,a){(e.directives||(e.directives=[])).push(Xn({name:t,rawName:n,value:o,arg:r,isDynamicArg:i,modifiers:s},a)),e.plain=!1}function zn(e,t,n){return n?`_p(${t},"${e}")`:e+t}function Yn(e,t,n,o,r,i,s,a){let c;(o=o||d).right?a?t=`(${t})==='click'?'contextmenu':(${t})`:"click"===t&&(t="contextmenu",delete o.right):o.middle&&(a?t=`(${t})==='click'?'mouseup':(${t})`:"click"===t&&(t="mouseup")),o.capture&&(delete o.capture,t=zn("!",t,a)),o.once&&(delete o.once,t=zn("~",t,a)),o.passive&&(delete o.passive,t=zn("&",t,a)),o.native?(delete o.native,c=e.nativeEvents||(e.nativeEvents={})):c=e.events||(e.events={});const l=Xn({value:n.trim(),dynamic:a},s);o!==d&&(l.modifiers=o);const u=c[t];Array.isArray(u)?r?u.unshift(l):u.push(l):c[t]=u?r?[l,u]:[u,l]:l,e.plain=!1}function Kn(e,t,n){const o=Gn(e,":"+t)||Gn(e,"v-bind:"+t);if(null!=o)return jn(o);if(!1!==n){const n=Gn(e,t);if(null!=n)return JSON.stringify(n)}}function Gn(e,t,n){let o;if(null!=(o=e.attrsMap[t])){const n=e.attrsList;for(let e=0,o=n.length;e1&&(t[o[0].trim()]=o[1].trim())}})),t}));var Qn={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;const n=Gn(e,"style");n&&(e.staticStyle=JSON.stringify(Zn(n)));const o=Kn(e,"style",!1);o&&(e.styleBinding=o)},genData:function(e){let t="";return e.staticStyle&&(t+=`staticStyle:${e.staticStyle},`),e.styleBinding&&(t+=`style:(${e.styleBinding}),`),t}};var eo=function(e){return e};const to=x("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),no=x("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),oo=x("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),ro=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,io=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,so=`[a-zA-Z_][\\-\\.0-9_a-zA-Z${G.source}]*`,ao=`((?:${so}\\:)?${so})`,co=new RegExp("^<"+ao),lo=/^\s*(\/?)>/,uo=new RegExp(`^<\\/${ao}[^>]*>`),fo=/^]+>/i,po=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},vo=/&(?:lt|gt|quot|amp|#39);/g,bo=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,_o=x("pre,textarea",!0),wo=(e,t)=>e&&_o(e)&&"\n"===t[0];function $o(e,t){const n=t?bo:vo;return e.replace(n,e=>go[e])}function So(e,t,n){const{number:o,trim:r}=n||{};let i="$$v";r&&(i="(typeof $$v === 'string'? $$v.trim(): $$v)"),o&&(i=`_n(${i})`);const s=xo(t,i);e.model={value:`(${t})`,expression:JSON.stringify(t),callback:`function ($$v) {${s}}`}}function xo(e,t){const n=function(e){if(e=e.trim(),ko=e.length,e.indexOf("[")<0||e.lastIndexOf("]")-1?{exp:e.slice(0,Eo),key:'"'+e.slice(Eo+1)+'"'}:{exp:e,key:null};Oo=e,Eo=Co=Io=0;for(;!To();)No=Ao(),Po(No)?Lo(No):91===No&&jo(No);return{exp:e.slice(0,Co),key:e.slice(Co+1,Io)}}(e);return null===n.key?`${e}=${t}`:`$set(${n.exp}, ${n.key}, ${t})`}let ko,Oo,No,Eo,Co,Io;function Ao(){return Oo.charCodeAt(++Eo)}function To(){return Eo>=ko}function Po(e){return 34===e||39===e}function jo(e){let t=1;for(Co=Eo;!To();)if(Po(e=Ao()))Lo(e);else if(91===e&&t++,93===e&&t--,0===t){Io=Eo;break}}function Lo(e){const t=e;for(;!To()&&(e=Ao())!==t;);}const Mo=/^@|^v-on:/,Do=r.env.VBIND_PROP_SHORTHAND?/^v-|^@|^:|^\.|^#/:/^v-|^@|^:|^#/,Fo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Ro=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Vo=/^\(|\)$/g,Bo=/^\[.*\]$/,Ho=/:(.*)$/,Uo=/^:|^\.|^v-bind:/,Wo=/^\./,zo=/\.[^.\]]+(?=[^\]]*$)/g,Yo=/^v-slot(:|$)|^#/,Ko=/[\r\n]/,Go=/[ \f\t\r\n]+/g,qo=I(eo);let Xo,Jo,Zo,Qo,er,tr,nr,or,rr;function ir(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:fr(t),rawAttrsMap:{},parent:n,children:[]}}function sr(e,t){Xo=t.warn||Rn,tr=t.isPreTag||V,nr=t.mustUseProp||V,or=t.getTagNamespace||V;const n=t.isReservedTag||V;rr=e=>!(!(e.component||e.attrsMap[":is"]||e.attrsMap["v-bind:is"])&&(e.attrsMap.is?n(e.attrsMap.is):n(e.tag))),Zo=Vn(t.modules,"transformNode"),Qo=Vn(t.modules,"preTransformNode"),er=Vn(t.modules,"postTransformNode"),Jo=t.delimiters;const o=[],r=!1!==t.preserveWhitespace,i=t.whitespace;let s,a,c=!1,l=!1;function u(e){if(d(e),c||e.processed||(e=ar(e,t)),o.length||e===s||s.if&&(e.elseif||e.else)&&lr(s,{exp:e.elseif,block:e}),a&&!e.forbidden)if(e.elseif||e.else)!function(e,t){const n=function(e){let t=e.length;for(;t--;){if(1===e[t].type)return e[t];e.pop()}}(t.children);n&&n.if&&lr(n,{exp:e.elseif,block:e})}(e,a);else{if(e.slotScope){const t=e.slotTarget||'"default"';(a.scopedSlots||(a.scopedSlots={}))[t]=e}a.children.push(e),e.parent=a}e.children=e.children.filter(e=>!e.slotScope),d(e),e.pre&&(c=!1),tr(e.tag)&&(l=!1);for(let n=0;n]*>)","i")),i=e.replace(r,(function(e,r,i){return n=i.length,mo(o)||"noscript"===o||(r=r.replace(//g,"$1").replace(//g,"$1")),wo(o,r)&&(r=r.slice(1)),t.chars&&t.chars(r),""}));c+=e.length-i.length,e=i,f(o,c-n,c)}else{let n,o,r,i=e.indexOf("<");if(0===i){if(po.test(e)){const n=e.indexOf("--\x3e");if(n>=0){t.shouldKeepComment&&t.comment(e.substring(4,n),c,c+n+3),l(n+3);continue}}if(ho.test(e)){const t=e.indexOf("]>");if(t>=0){l(t+2);continue}}const n=e.match(fo);if(n){l(n[0].length);continue}const o=e.match(uo);if(o){const e=c;l(o[0].length),f(o[1],e,c);continue}const r=u();if(r){d(r),wo(r.tagName,e)&&l(1);continue}}if(i>=0){for(o=e.slice(i);!(uo.test(o)||co.test(o)||po.test(o)||ho.test(o)||(r=o.indexOf("<",1),r<0));)i+=r,o=e.slice(i);n=e.substring(0,i)}i<0&&(n=e),n&&l(n.length),t.chars&&n&&t.chars(n,c-n.length,c)}if(e===s){t.chars&&t.chars(e);break}}function l(t){c+=t,e=e.substring(t)}function u(){const t=e.match(co);if(t){const n={tagName:t[1],attrs:[],start:c};let o,r;for(l(t[0].length);!(o=e.match(lo))&&(r=e.match(io)||e.match(ro));)r.start=c,l(r[0].length),r.end=c,n.attrs.push(r);if(o)return n.unarySlash=o[1],l(o[0].length),n.end=c,n}}function d(e){const s=e.tagName,c=e.unarySlash;o&&("p"===a&&oo(s)&&f(a),i(s)&&a===s&&f(s));const l=r(s)||!!c,u=e.attrs.length,d=new Array(u);for(let n=0;n=0&&n[i].lowerCasedTag!==s;i--);else i=0;if(i>=0){for(let e=n.length-1;e>=i;e--)t.end&&t.end(n[e].tag,o,r);n.length=i,a=i&&n[i-1].tag}else"br"===s?t.start&&t.start(e,[],!0,o,r):"p"===s&&(t.start&&t.start(e,[],!1,o,r),t.end&&t.end(e,o,r))}f()}(e,{warn:Xo,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start(e,n,r,i,d){const f=a&&a.ns||or(e);oe&&"svg"===f&&(n=function(e){const t=[];for(let n=0;nc&&(r.push(a=e.slice(c,s)),o.push(JSON.stringify(a)));const t=jn(i[1].trim());o.push(`_s(${t})`),r.push({"@binding":t}),c=s+i[0].length}return c{if(!e.slotScope)return e.parent=i,!0}),i.slotScope=t.value||"_empty_",e.children=[],e.plain=!1}}}(e),"slot"===(n=e).tag&&(n.slotName=Kn(n,"name")),function(e){let t;(t=Kn(e,"is"))&&(e.component=t);null!=Gn(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(let n=0;n{e[t.slice(1)]=!0}),e}}function fr(e){const t={};for(let n=0,o=e.length;n-1`+("true"===i?`:(${t})`:`:_q(${t},${i})`)),Yn(e,"change",`var $$a=${t},$$el=$event.target,$$c=$$el.checked?(${i}):(${s});if(Array.isArray($$a)){var $$v=${o?"_n("+r+")":r},$$i=_i($$a,$$v);if($$el.checked){$$i<0&&(${xo(t,"$$a.concat([$$v])")})}else{$$i>-1&&(${xo(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")})}}else{${xo(t,"$$c")}}`,null,!0)}(e,o,r);else if("input"===i&&"radio"===s)!function(e,t,n){const o=n&&n.number;let r=Kn(e,"value")||"null";r=o?`_n(${r})`:r,Bn(e,"checked",`_q(${t},${r})`),Yn(e,"change",xo(t,r),null,!0)}(e,o,r);else if("input"===i||"textarea"===i)!function(e,t,n){const o=e.attrsMap.type;0;const{lazy:r,number:i,trim:s}=n||{},a=!r&&"range"!==o,c=r?"change":"range"===o?"__r":"input";let l="$event.target.value";s&&(l="$event.target.value.trim()");i&&(l=`_n(${l})`);let u=xo(t,l);a&&(u="if($event.target.composing)return;"+u);Bn(e,"value",`(${t})`),Yn(e,c,u,null,!0),(s||i)&&Yn(e,"blur","$forceUpdate()")}(e,o,r);else{if(!K.isReservedTag(i))return So(e,o,r),!1}return!0},text:function(e,t){t.value&&Bn(e,"textContent",`_s(${t.value})`,t)},html:function(e,t){t.value&&Bn(e,"innerHTML",`_s(${t.value})`,t)}},isPreTag:e=>"pre"===e,isUnaryTag:to,mustUseProp:(e,t,n)=>"value"===n&&kn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e,canBeLeftOpenTag:no,isReservedTag:e=>In(e)||An(e),getTagNamespace:function(e){return An(e)?"svg":"math"===e?"math":void 0},staticKeys:function(e){return e.reduce((e,t)=>e.concat(t.staticKeys||[]),[]).join(",")}(yr)};let br,_r;const wr=I((function(e){return x("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function $r(e,t){e&&(br=wr(t.staticKeys||""),_r=t.isReservedTag||V,function e(t){if(t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||k(e.tag)||!_r(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(br)))}(t),1===t.type){if(!_r(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(let n=0,o=t.children.length;n|^function(?:\s+[\w$]+)?\s*\(/,xr=/\([^)]*?\);*$/,kr=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Or={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Nr={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Er=e=>`if(${e})return null;`,Cr={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Er("$event.target !== $event.currentTarget"),ctrl:Er("!$event.ctrlKey"),shift:Er("!$event.shiftKey"),alt:Er("!$event.altKey"),meta:Er("!$event.metaKey"),left:Er("'button' in $event && $event.button !== 0"),middle:Er("'button' in $event && $event.button !== 1"),right:Er("'button' in $event && $event.button !== 2")};function Ir(e,t){const n=t?"nativeOn:":"on:";let o="",r="";for(const t in e){const n=Ar(e[t]);e[t]&&e[t].dynamic?r+=`${t},${n},`:o+=`"${t}":${n},`}return o=`{${o.slice(0,-1)}}`,r?n+`_d(${o},[${r.slice(0,-1)}])`:n+o}function Ar(e){if(!e)return"function(){}";if(Array.isArray(e))return`[${e.map(e=>Ar(e)).join(",")}]`;const t=kr.test(e.value),n=Sr.test(e.value),o=kr.test(e.value.replace(xr,""));if(e.modifiers){let r="",i="";const s=[];for(const t in e.modifiers)if(Cr[t])i+=Cr[t],Or[t]&&s.push(t);else if("exact"===t){const t=e.modifiers;i+=Er(["ctrl","shift","alt","meta"].filter(e=>!t[e]).map(e=>`$event.${e}Key`).join("||"))}else s.push(t);s.length&&(r+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Tr).join("&&")+")return null;"}(s)),i&&(r+=i);return`function($event){${r}${t?`return ${e.value}.apply(null, arguments)`:n?`return (${e.value}).apply(null, arguments)`:o?"return "+e.value:e.value}}`}return t||n?e.value:`function($event){${o?"return "+e.value:e.value}}`}function Tr(e){const t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;const n=Or[e],o=Nr[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(o)+")"}var Pr={on:function(e,t){e.wrapListeners=e=>`_g(${e},${t.value})`},bind:function(e,t){e.wrapData=n=>`_b(${n},'${e.tag}',${t.value},${t.modifiers&&t.modifiers.prop?"true":"false"}${t.modifiers&&t.modifiers.sync?",true":""})`},cloak:R};class jr{constructor(e){this.options=e,this.warn=e.warn||Rn,this.transforms=Vn(e.modules,"transformCode"),this.dataGenFns=Vn(e.modules,"genData"),this.directives=F(F({},Pr),e.directives);const t=e.isReservedTag||V;this.maybeComponent=e=>!!e.component||!t(e.tag),this.onceId=0,this.staticRenderFns=[],this.pre=!1}}function Lr(e,t){const n=new jr(t);return{render:`with(this){return ${e?"script"===e.tag?"null":Mr(e,n):'_c("div")'}}`,staticRenderFns:n.staticRenderFns}}function Mr(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Dr(e,t);if(e.once&&!e.onceProcessed)return Fr(e,t);if(e.for&&!e.forProcessed)return Vr(e,t);if(e.if&&!e.ifProcessed)return Rr(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){const n=e.slotName||'"default"',o=Wr(e,t);let r=`_t(${n}${o?`,function(){return ${o}}`:""}`;const i=e.attrs||e.dynamicAttrs?Kr((e.attrs||[]).concat(e.dynamicAttrs||[]).map(e=>({name:T(e.name),value:e.value,dynamic:e.dynamic}))):null,s=e.attrsMap["v-bind"];!i&&!s||o||(r+=",null");i&&(r+=","+i);s&&(r+=`${i?"":",null"},${s}`);return r+")"}(e,t);{let n;if(e.component)n=function(e,t,n){const o=t.inlineTemplate?null:Wr(t,n,!0);return`_c(${e},${Br(t,n)}${o?","+o:""})`}(e.component,e,t);else{let o;(!e.plain||e.pre&&t.maybeComponent(e))&&(o=Br(e,t));const r=e.inlineTemplate?null:Wr(e,t,!0);n=`_c('${e.tag}'${o?","+o:""}${r?","+r:""})`}for(let o=0;o{const n=t[e];return n.slotTargetDynamic||n.if||n.for||Hr(n)}),r=!!e.if;if(!o){let t=e.parent;for(;t;){if(t.slotScope&&"_empty_"!==t.slotScope||t.for){o=!0;break}t.if&&(r=!0),t=t.parent}}const i=Object.keys(t).map(e=>Ur(t[e],n)).join(",");return`scopedSlots:_u([${i}]${o?",null,true":""}${!o&&r?",null,false,"+function(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return t>>>0}(i):""})`}(e,e.scopedSlots,t)+","),e.model&&(n+=`model:{value:${e.model.value},callback:${e.model.callback},expression:${e.model.expression}},`),e.inlineTemplate){const o=function(e,t){const n=e.children[0];0;if(n&&1===n.type){const e=Lr(n,t.options);return`inlineTemplate:{render:function(){${e.render}},staticRenderFns:[${e.staticRenderFns.map(e=>`function(){${e}}`).join(",")}]}`}}(e,t);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n=`_b(${n},"${e.tag}",${Kr(e.dynamicAttrs)})`),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Hr(e){return 1===e.type&&("slot"===e.tag||e.children.some(Hr))}function Ur(e,t){const n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Rr(e,t,Ur,"null");if(e.for&&!e.forProcessed)return Vr(e,t,Ur);const o="_empty_"===e.slotScope?"":String(e.slotScope),r=`function(${o}){return ${"template"===e.tag?e.if&&n?`(${e.if})?${Wr(e,t)||"undefined"}:undefined`:Wr(e,t)||"undefined":Mr(e,t)}}`,i=o?"":",proxy:true";return`{key:${e.slotTarget||'"default"'},fn:${r}${i}}`}function Wr(e,t,n,o,r){const i=e.children;if(i.length){const e=i[0];if(1===i.length&&e.for&&"template"!==e.tag&&"slot"!==e.tag){const r=n?t.maybeComponent(e)?",1":",0":"";return`${(o||Mr)(e,t)}${r}`}const s=n?function(e,t){let n=0;for(let o=0;ozr(e.block))){n=2;break}(t(r)||r.ifConditions&&r.ifConditions.some(e=>t(e.block)))&&(n=1)}}return n}(i,t.maybeComponent):0,a=r||Yr;return`[${i.map(e=>a(e,t)).join(",")}]${s?","+s:""}`}}function zr(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function Yr(e,t){return 1===e.type?Mr(e,t):3===e.type&&e.isComment?function(e){return`_e(${JSON.stringify(e.text)})`}(e):function(e){return`_v(${2===e.type?e.expression:Gr(JSON.stringify(e.text))})`}(e)}function Kr(e){let t="",n="";for(let o=0;oqr(e,c)),t[i]=a}}const Jr=(Zr=function(e,t){const n=sr(e.trim(),t);!1!==t.optimize&&$r(n,t);const o=Lr(n,t);return{ast:n,render:o.render,staticRenderFns:o.staticRenderFns}},function(e){function t(t,n){const o=Object.create(e),r=[],i=[];if(n){n.modules&&(o.modules=(e.modules||[]).concat(n.modules)),n.directives&&(o.directives=F(Object.create(e.directives||null),n.directives));for(const e in n)"modules"!==e&&"directives"!==e&&(o[e]=n[e])}o.warn=(e,t,n)=>{(n?i:r).push(e)};const s=Zr(t.trim(),o);return s.errors=r,s.tips=i,s}return{compile:t,compileToFunctions:Xr(t)}});var Zr;const{compile:Qr,compileToFunctions:ei}=Jr(vr),ti=`http://127.0.0.1:${r.env.PORT}/`;let ni,oi,ri=e=>e,ii=()=>{};function si(e){ni=e}function ai(){return ni}function ci(){return ri}const li=W(()=>{console.log('Hippy-Vue has "Vue.config.silent" to control trace log output, to see output logs if set it to false.')});function ui(...e){(null==oi?void 0:oi.config.silent)&&li()}function di(e){return e.charAt(0).toUpperCase()+e.slice(1)}const fi=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function pi(e){return"[object Function]"===Object.prototype.toString.call(e)}function hi(e){let t=e;return/^assets/.test(t)&&(t="hpfile://./"+t),t}function mi(e){return null==e}function yi(e){return"string"==typeof e?""!==e.trim():null!=e}const gi=Symbol.for("View"),vi=Symbol.for("Image"),bi=Symbol.for("ListView"),_i=Symbol.for("ListViewItem"),wi=Symbol.for("Text"),$i=Symbol.for("TextInput"),Si=Symbol.for("WebView"),xi=Symbol.for("VideoPlayer"),ki={[gi]:"View",[vi]:"Image",[bi]:"ListView",[_i]:"ListViewItem",[wi]:"Text",[$i]:"TextInput",[Si]:"WebView",[xi]:"VideoPlayer"};function Oi(...e){const t={};if(Array.isArray(e[0]))e[0].forEach(([e,n])=>{t[t[e]=n]=e});else{const[n,o]=e;t[t[n]=o]=n}return t}const Ni={number:"numeric",text:"default",search:"web-search"},Ei={role:"accessibilityRole","aria-label":"accessibilityLabel","aria-disabled":{jointKey:"accessibilityState",name:"disabled"},"aria-selected":{jointKey:"accessibilityState",name:"selected"},"aria-checked":{jointKey:"accessibilityState",name:"checked"},"aria-busy":{jointKey:"accessibilityState",name:"busy"},"aria-expanded":{jointKey:"accessibilityState",name:"expanded"},"aria-valuemin":{jointKey:"accessibilityValue",name:"min"},"aria-valuemax":{jointKey:"accessibilityValue",name:"max"},"aria-valuenow":{jointKey:"accessibilityValue",name:"now"},"aria-valuetext":{jointKey:"accessibilityValue",name:"text"}},Ci={symbol:gi,component:{name:ki[gi],eventNamesMap:Oi([["touchStart","onTouchDown"],["touchstart","onTouchDown"],["touchmove","onTouchMove"],["touchend","onTouchEnd"],["touchcancel","onTouchCancel"]]),attributeMaps:l({},Ei),processEventData(e,t,n){var o,r;switch(t){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":e.offsetX=null===(o=n.contentOffset)||void 0===o?void 0:o.x,e.offsetY=null===(r=n.contentOffset)||void 0===r?void 0:r.y;break;case"onTouchDown":case"onTouchMove":case"onTouchEnd":case"onTouchCancel":e.touches={0:{clientX:n.page_x,clientY:n.page_y},length:1};break;case"onFocus":e.isFocused=t.focus}return e}}},Ii={symbol:gi,component:l(l({},Ci.component),{},{name:ki[gi],defaultNativeStyle:{}})},Ai={symbol:gi,component:{name:ki[gi]}},Ti={symbol:vi,component:l(l({},Ci.component),{},{name:ki[vi],defaultNativeStyle:{backgroundColor:0},attributeMaps:l({placeholder:{name:"defaultSource",propsValue(e){const t=hi(e);return t&&t.indexOf(ti)<0&&["https://","http://"].some(e=>0===t.indexOf(e)),t}},src:e=>hi(e)},Ei),processEventData(e,t,n){switch(t){case"onTouchDown":case"onTouchMove":case"onTouchEnd":case"onTouchCancel":e.touches={0:{clientX:n.page_x,clientY:n.page_y},length:1};break;case"onFocus":e.isFocused=t.focus;break;case"onLoad":{const{width:t,height:o,url:r}=n;e.width=t,e.height=o,e.url=r;break}}return e}})},Pi={symbol:bi,component:{name:ki[bi],defaultNativeStyle:{flex:1},attributeMaps:l({},Ei),eventNamesMap:Oi("listReady","initialListReady"),processEventData(e,t,n){var o,r;switch(t){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":e.offsetX=null===(o=n.contentOffset)||void 0===o?void 0:o.x,e.offsetY=null===(r=n.contentOffset)||void 0===r?void 0:r.y;break;case"onDelete":e.index=n.index}return e}}},ji={symbol:_i,component:{name:ki[_i],attributeMaps:l({},Ei),eventNamesMap:Oi([["disappear","onDisappear"]])}},Li={symbol:gi,component:l(l({},Ci.component),{},{name:ki[wi],defaultNativeProps:{text:""},defaultNativeStyle:{color:4278190080}})},Mi=Li,Di=Li,Fi={component:l(l({},Li.component),{},{defaultNativeStyle:{color:4278190318},attributeMaps:{href:{name:"href",propsValue:e=>["//","http://","https://"].filter(t=>0===e.indexOf(t)).length?"":e}}})},Ri={symbol:$i,component:{name:ki[$i],attributeMaps:l({type:{name:"keyboardType",propsValue(e){const t=Ni[e];return t||e}},disabled:{name:"editable",propsValue:e=>!e},value:"defaultValue",maxlength:"maxLength"},Ei),nativeProps:{numberOfLines:1,multiline:!1},defaultNativeProps:{underlineColorAndroid:0},defaultNativeStyle:{padding:0,color:4278190080},eventNamesMap:Oi([["change","onChangeText"],["select","onSelectionChange"]]),processEventData(e,t,n){switch(t){case"onChangeText":case"onEndEditing":e.value=n.text;break;case"onSelectionChange":e.start=n.selection.start,e.end=n.selection.end;break;case"onKeyboardWillShow":e.keyboardHeight=n.keyboardHeight;break;case"onContentSizeChange":e.width=n.contentSize.width,e.height=n.contentSize.height}return e}}},Vi={symbol:$i,component:{name:ki[$i],defaultNativeProps:l(l({},Ri.component.defaultNativeProps),{},{numberOfLines:5}),attributeMaps:l(l({},Ri.component.attributeMaps),{},{rows:"numberOfLines"}),nativeProps:{multiline:!0},defaultNativeStyle:Ri.component.defaultNativeStyle,eventNamesMap:Ri.component.eventNamesMap,processEventData:Ri.component.processEventData}},Bi={symbol:Si,component:{name:ki[Si],defaultNativeProps:{method:"get",userAgent:""},attributeMaps:{src:{name:"source",propsValue:e=>({uri:e})}},processEventData(e,t,n){switch(t){case"onLoad":case"onLoadStart":e.url=n.url;break;case"onLoadEnd":e.url=n.url,e.success=n.success,e.error=n.error}return e}}};var Hi=Object.freeze({__proto__:null,button:Ii,div:Ci,form:Ai,img:Ti,input:Ri,label:Mi,li:ji,p:Di,span:Li,a:Fi,textarea:Vi,ul:Pi,iframe:Bi});const Ui=x("template,script,style,element,content,slot,button,div,form,img,input,label,li,p,span,textarea,ul",!0),Wi=new Map,zi={skipAddToDom:!1,isUnaryTag:!1,tagNamespace:"",canBeLeftOpenTag:!1,mustUseProp:!1,model:null,component:null};function Yi(e){return e.toLowerCase()}function Ki(e,t){if(!e)throw new Error("RegisterElement cannot set empty name");const n=Yi(e),o=l(l({},zi),t);if(Wi.has(n))throw new Error(`Element for ${e} already registered.`);o.component=l(l({},function(e,t,n){return{name:e,functional:!0,model:t.model,render:(e,{data:t,children:o})=>e(n,t,o)}}(e,o,n)),o.component),o.component.name&&o.component.name===di(T(e))&&o.component.name;const r={meta:o};return Wi.set(n,r),r}function Gi(e){const t=Yi(e);let n=zi;const o=Wi.get(t);return(null==o?void 0:o.meta)&&(n=o.meta),n}class qi{constructor(e){this.value="",this.target=null,this.currentTarget=null,this.originalTarget=null,this.bubbles=!0,this.cancelable=!0,this.eventPhase=0,this.isCanceled=!1,this.type=e,this.bubbles=!0,this.cancelable=!0,this.eventPhase=0,this.originalTarget=null,this.currentTarget=null,this.target=null,this.isCanceled=!1}get canceled(){return this.isCanceled}stopPropagation(){this.bubbles=!1}preventDefault(){this.cancelable&&(this.isCanceled=!0)}initEvent(e,t=!0,n=!0){return this.type=e,!1===t&&(this.bubbles=!1),!1===n&&(this.cancelable=!1),this}}class Xi{constructor(e){this.element=e,this.observers={}}getEventListeners(){return this.observers}addEventListener(e,t,n){if("string"!=typeof e)throw new TypeError("Events name(s) must be string.");if(t&&!pi(t))throw new TypeError("callback must be function.");const o=e.split(",");for(let e=0,r=o.length;e=0&&e.splice(o,1),0===e.length&&(this.observers[r]=void 0)}}else this.observers[r]=void 0}return this.observers}emit(e){var t,n;const{type:o}=e,r=this.observers[o];if(r)for(let o=r.length-1;o>=0;o-=1){const i=r[o];(null===(t=i.options)||void 0===t?void 0:t.once)&&r.splice(o,1),(null===(n=i.options)||void 0===n?void 0:n.thisArg)?i.callback.apply(i.options.thisArg,[e]):i.callback(e)}}getEventList(e,t){let n=this.observers[e];return!n&&t&&(n=[],this.observers[e]=n),n}indexOfListener(e,t,n){return e.findIndex(e=>n?e.callback===t&&H(e.options,n):e.callback===t)}}const Ji=new Map;function Zi(e){return Ji.get(e)||null}function Qi(t){!function(t,n){if(!e.requestIdleCallback)return setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>1/0})},1);e.requestIdleCallback(t,n)}(e=>{(e.timeRemaining()>0||e.didTimeout)&&function e(t){var n;o=t.nodeId,Ji.delete(o),null===(n=t.childNodes)||void 0===n||n.forEach(t=>e(t));var o}(t)},{timeout:50})}function es(e=[],t=0){let n=e[t];for(let o=t;o-1){const e=new cs(i);if(Object.assign(e,{eventPhase:a,nativeParams:s||{}}),"onLayout"===r){const{layout:{x:t,y:n,height:o,width:r}}=s;e.top=n,e.left=t,e.bottom=n+o,e.right=t+r,e.width=r,e.height=o}else{const{processEventData:t}=c._meta.component;t&&t(e,r,s)}c.dispatchEvent(function(e,t,n){return function(e){return["onTouchDown","onTouchMove","onTouchEnd","onTouchCancel"].indexOf(e)>=0}(e)&&Object.assign(t,{touches:{0:{clientX:n.page_x,clientY:n.page_y},length:1}}),t}(r,e,s),l,t)}}catch(e){console.error("receiveComponentEvent error",e)}}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=us);const ds={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},fs=(...e)=>`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`,ps="[-+]?\\d*\\.?\\d+",hs={rgb:new RegExp("rgb"+fs(ps,ps,ps)),rgba:new RegExp("rgba"+fs(ps,ps,ps,ps)),hsl:new RegExp("hsl"+fs(ps,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+fs(ps,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",ps)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/},ms=e=>{const t=parseInt(e,10);return t<0?0:t>255?255:t},ys=e=>{const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},gs=(e,t,n)=>{let o=n;return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+6*(t-e)*o:o<.5?t:o<2/3?e+(t-e)*(2/3-o)*6:e},vs=(e,t,n)=>{const o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,i=gs(r,o,e+1/3),s=gs(r,o,e),a=gs(r,o,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*a)<<8},bs=e=>(parseFloat(e)%360+360)%360/360,_s=e=>{const t=parseFloat(e);return t<0?0:t>100?1:t/100};function ws(e){if("string"==typeof e&&-1!==e.indexOf("var("))return e;let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=hs.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(ds,e)?ds[e]:(t=hs.rgb.exec(e),Array.isArray(t)?(ms(t[1])<<24|ms(t[2])<<16|ms(t[3])<<8|255)>>>0:(t=hs.rgba.exec(e),t?(ms(t[1])<<24|ms(t[2])<<16|ms(t[3])<<8|ys(t[4]))>>>0:(t=hs.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=hs.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=hs.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=hs.hsl.exec(e),t?(255|vs(bs(t[1]),_s(t[2]),_s(t[3])))>>>0:(t=hs.hsla.exec(e),t?(vs(bs(t[1]),_s(t[2]),_s(t[3]))|ys(t[4]))>>>0:null))))))))}(e);if(null===t)throw new Error("Bad color value: "+e);return t=(t<<24|t>>>8)>>>0,t}const $s={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor",caretColor:"caret-color"};var Ss;function xs(){const e=za.Localization;return!!e&&e.direction===Ss.RTL}!function(e){e[e.RTL=1]="RTL"}(Ss||(Ss={}));const ks=new Map;function Os(e){return ks.get(e)||{}}class Ns{constructor(){this.specificity=0}lookupSort(e,t){e.sortAsUniversal(t||this)}removeSort(e,t){e.removeAsUniversal(t||this)}trackChanges(e,t){this.dynamic&&t.addAttribute(e,"")}}class Es extends Ns{constructor(){super(...arguments),this.rarity=0}accumulateChanges(e,t){return this.dynamic?!!this.mayMatch(e)&&(this.trackChanges(e,t),!0):this.match(e)}mayMatch(e){return this.match(e)}match(e){return!1}}function Cs(e){return e?` ${e} `:""}const Is=(e,t)=>{const n=e.attributes[t];return void 0!==n?n:Array.isArray(e.styleScopeId)&&e.styleScopeId.includes(t)?t:void 0};class As extends Es{constructor(e){super(),this.specificity=e.reduce((e,t)=>t.specificity+e,0),this.head=e.reduce((e,t)=>!e||e instanceof Es&&t.rarity>e.rarity?t:e,null),this.dynamic=e.some(e=>e.dynamic),this.selectors=e}toString(){return`${this.selectors.join("")}${Cs(this.combinator||"")}`}match(e){return!!e&&this.selectors.every(t=>t.match(e))}mayMatch(e){return!!e&&this.selectors.every(t=>t.mayMatch(e))}trackChanges(e,t){this.selectors.forEach(n=>n.trackChanges(e,t))}lookupSort(e,t){this.head&&this.head instanceof Es&&this.head.lookupSort(e,t||this)}removeSort(e,t){this.head&&this.head instanceof Es&&this.head.removeSort(e,t||this)}}const Ts=(()=>{try{return!!new RegExp("foo","y")}catch(e){return!1}})(),Ps={whiteSpaceRegEx:"\\s*",universalSelectorRegEx:"\\*",simpleIdentifierSelectorRegEx:"(#|\\.|:|\\b)([_-\\w][_-\\w\\d]*)",attributeSelectorRegEx:"\\[\\s*([_-\\w][_-\\w\\d]*)\\s*(?:(=|\\^=|\\$=|\\*=|\\~=|\\|=)\\s*(?:([_-\\w][_-\\w\\d]*)|\"((?:[^\\\\\"]|\\\\(?:\"|n|r|f|\\\\|0-9a-f))*)\"|'((?:[^\\\\']|\\\\(?:'|n|r|f|\\\\|0-9a-f))*)')\\s*)?\\]",combinatorRegEx:"\\s*(\\+|~|>)?\\s*"},js={};function Ls(e,t,n){let o="";Ts&&(o="gy"),js[e]||(js[e]=new RegExp(Ps[e],o));const r=js[e];let i;if(Ts)r.lastIndex=n||0,i=r.exec(t);else{if(t=t.slice(n,t.length),i=r.exec(t),!i)return{result:null,regexp:r};r.lastIndex=n||0+i[0].length}return{result:i,regexp:r}}function Ms(e,t){return function(e,t){const{result:n,regexp:o}=Ls("universalSelectorRegEx",e,t);return n?{value:{type:"*"},start:t,end:o.lastIndex}:null}(e,t)||function(e,t){const{result:n,regexp:o}=Ls("simpleIdentifierSelectorRegEx",e,t);if(!n)return null;const r=o.lastIndex;return{value:{type:n[1],identifier:n[2]},start:t,end:r}}(e,t)||function(e,t){const{result:n,regexp:o}=Ls("attributeSelectorRegEx",e,t);if(!n)return null;const r=o.lastIndex,i=n[1];if(n[2]){return{value:{type:"[]",property:i,test:n[2],value:n[3]||n[4]||n[5]},start:t,end:r}}return{value:{type:"[]",property:i},start:t,end:r}}(e,t)}function Ds(e,t){let n=Ms(e,t);if(!n)return null;let{end:o}=n;const r=[];for(;n;)r.push(n.value),({end:o}=n),n=Ms(e,o);return{start:t,end:o,value:r}}function Fs(e,t){const{result:n,regexp:o}=Ls("combinatorRegEx",e,t);if(!n)return null;let r;r=Ts?o.lastIndex:t;return{start:t,end:r,value:n[1]||" "}}class Rs{constructor(e,t,n){e.forEach(e=>(e.ruleSet=this,null)),this.hash=n,this.selectors=e,this.declarations=t}toString(){return`${this.selectors.join(", ")} {${this.declarations.map((e,t)=>`${0===t?" ":""}${e.property}: ${e.value}`).join("; ")}}`}lookupSort(e){this.selectors.forEach(t=>t.lookupSort(e))}removeSort(e){this.selectors.forEach(t=>t.removeSort(e))}}class Vs extends Es{constructor(e,t="",n=""){super(),this.attribute="",this.test="",this.value="",this.specificity=256,this.rarity=0,this.dynamic=!0,this.attribute=e,this.test=t,this.value=n}match(e){if(!this.test)return!(!e||!e.attributes)&&!mi(Is(e,this.attribute));if(!this.value)return!1;if(!e||!e.attributes)return!1;const t=""+Is(e,this.attribute);if("="===this.test)return t===this.value;if("^="===this.test)return t.startsWith(this.value);if("$="===this.test)return t.endsWith(this.value);if("*="===this.test)return-1!==t.indexOf(this.value);if("~="===this.test){const e=t.split(" ");return e&&-1!==e.indexOf(this.value)}return"|="===this.test&&(t===this.value||t.startsWith(this.value+"-"))}toString(){return`[${this.attribute}${Cs(this.test)}${this.test&&this.value||""}]${Cs(this.combinator||"")}`}mayMatch(){return!0}trackChanges(e,t){t.addAttribute(e,this.attribute)}}class Bs extends Es{constructor(e){super(),this.specificity=256,this.rarity=2,this.dynamic=!1,this.className=e}toString(){return`.${this.className}${Cs(this.combinator||"")}`}match(e){var t;return!!e&&(!!(null===(t=e.classList)||void 0===t?void 0:t.size)&&e.classList.has(this.className))}lookupSort(e,t){e.sortByClass(this.className,t||this)}removeSort(e,t){e.removeByClass(this.className,t||this)}}class Hs extends Es{constructor(e){super(),this.specificity=65536,this.rarity=3,this.dynamic=!1,this.id=e}toString(){return`#${this.id}${Cs(this.combinator||"")}`}match(e){return!!e&&e.id===this.id}lookupSort(e,t){e.sortById(this.id,null!=t?t:this)}removeSort(e,t){e.removeById(this.id,null!=t?t:this)}}class Us extends Es{constructor(e){super(),this.specificity=0,this.rarity=4,this.dynamic=!1,this.combinator=void 0,this.err=e}toString(){return``}match(){return!1}}class Ws extends Es{constructor(e){super(),this.specificity=256,this.rarity=0,this.dynamic=!0,this.cssPseudoClass=e}toString(){return`:${this.cssPseudoClass}${Cs(this.combinator||"")}`}match(e){return!!e}mayMatch(){return!0}trackChanges(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}class zs{constructor(e){this.selectors=e,this.dynamic=e.some(e=>e.dynamic)}match(e){let t=e;if(!t)return;return this.selectors.every((e,n)=>(0!==n&&(t=null==t?void 0:t.parentNode),!!t&&!!e.match(t)))?t:void 0}mayMatch(e){let t=e;if(!t)return;return this.selectors.every((e,n)=>(0!==n&&(t=null==t?void 0:t.parentNode),!!t&&!!e.mayMatch(t)))?t:void 0}trackChanges(e,t){let n=e;this.selectors.forEach((e,o)=>{0!==o&&(n=null==n?void 0:n.parentNode),n&&e.trackChanges(n,t)})}}class Ys{constructor(e){this.selectors=e,this.dynamic=e.some(e=>e.dynamic)}match(e){let t=e;if(!t)return;return this.selectors.every((e,n)=>(0!==n&&(t=null==t?void 0:t.nextSibling),!!t&&!!e.match(t)))?t:void 0}mayMatch(e){let t=e;if(!t)return;return this.selectors.every((e,n)=>(0!==n&&(t=null==t?void 0:t.nextSibling),!!t&&!!e.mayMatch(t)))?t:void 0}trackChanges(e,t){let n=e;this.selectors.forEach((e,o)=>{0!==o&&(n=null==n?void 0:n.nextSibling),n&&e.trackChanges(n,t)})}}class Ks extends Ns{constructor(e){super();const t=[void 0," ",">","+"];let n=[],o=[];const r=[];this.selectors=e,this.selectors.reverse().forEach(e=>{if(-1===t.indexOf(e.combinator))throw new Error(`Unsupported combinator "${e.combinator}".`);void 0!==e.combinator&&" "!==e.combinator||r.push(o=[n=[]]),">"===e.combinator&&o.push(n=[]),n.push(e)}),this.groups=r.map(e=>new zs(e.map(e=>new Ys(e))));const[i]=e;this.last=i,this.specificity=e.reduce((e,t)=>t.specificity+e,0),this.dynamic=e.some(e=>e.dynamic)}toString(){return this.selectors.join("")}match(e){let t=e;return this.groups.every((n,o)=>{if(0===o)return t=n.match(e),!!t;let r=t;for(;r=null==r?void 0:r.parentNode;)if(t=n.match(r))return!0;return!1})}lookupSort(e){this.last.lookupSort(e,this)}removeSort(e){this.last.removeSort(e,this)}accumulateChanges(e,t){let n=e;if(!this.dynamic)return this.match(n);const o=[],r=this.groups.every((t,r)=>{if(0===r){const r=t.mayMatch(e);return o.push({left:e,right:e}),n=r,!!n}let i=e;for(;i=i.parentNode;){const e=t.mayMatch(i);if(e)return o.push({left:i,right:void 0}),n=e,!0}return!1});if(!r)return!1;if(!t)return r;for(let e=0;e{if(!Ts){if(""===e)return;n=0}do{const t=Ds(e,n);if(!t){if(c)return null;break}({end:n}=t),s&&(l[1]=s.value),l=[t.value,void 0],i.push(l),s=Fs(e,n),s&&({end:n}=s),c=!(!s||" "===s.value)}while(s)}),{start:t,end:n,value:i}}(e);return t?function(e){if(0===e.length)return new Us(new Error("Empty selector."));if(1===e.length)return Zs(e[0][0]);const t=[];for(let n=0;ne.lookupSort(this))}append(e){this.ruleSets=this.ruleSets.concat(e),e.forEach(e=>e.lookupSort(this))}delete(e){const t=[];this.ruleSets=this.ruleSets.filter(n=>n.hash!==e||(t.push(n),!1)),t.forEach(e=>e.removeSort(this))}query(e){const{tagName:t,id:n,classList:o}=e,r=[this.universal,this.id[n],this.type[t]];o.size&&o.forEach(e=>r.push(this.class[e]));const i=r.filter(e=>!!e).reduce((e,t)=>e.concat(t||[]),[]),s=new ea;return s.selectors=i.filter(t=>t.sel.accumulateChanges(e,s)).sort((e,t)=>e.sel.specificity-t.sel.specificity||e.pos-t.pos).map(e=>e.sel),s}sortById(e,t){this.addToMap(this.id,e,t)}sortByClass(e,t){this.addToMap(this.class,e,t)}sortByType(e,t){this.addToMap(this.type,e,t)}removeById(e,t){this.removeFromMap(this.id,e,t)}removeByClass(e,t){this.removeFromMap(this.class,e,t)}removeByType(e,t){this.removeFromMap(this.type,e,t)}sortAsUniversal(e){this.universal.push(this.makeDocSelector(e))}removeAsUniversal(e){const t=this.universal.findIndex(t=>{var n,o;return(null===(n=t.sel.ruleSet)||void 0===n?void 0:n.hash)===(null===(o=e.ruleSet)||void 0===o?void 0:o.hash)});-1!==t&&this.universal.splice(t)}addToMap(e,t,n){const o=e;this.position+=1;const r=o[t];r?r.push(this.makeDocSelector(n)):o[t]=[this.makeDocSelector(n)]}removeFromMap(e,t,n){const o=e[t],r=o.findIndex(e=>{var t,o;return(null===(t=e.sel.ruleSet)||void 0===t?void 0:t.hash)===(null===(o=n.ruleSet)||void 0===o?void 0:o.hash)});-1!==r&&o.splice(r,1)}makeDocSelector(e){return this.position+=1,{sel:e,pos:this.position}}}const na={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode"),moveNode:Symbol("moveNode"),updateEvent:Symbol("updateEvent")};let oa,ra=!0,ia=[];function sa(e=[],t){e.forEach(e=>{if(e){const{id:n,eventList:o}=e;o.forEach(e=>{const{name:o,type:r,listener:i}=e;let s;s=function(e){return!!rs[e]}(o)?rs[o]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(o),r===os&&t.removeEventListener(n,s,i),r===ns&&(t.removeEventListener(n,s,i),t.addEventListener(n,s,i))})}})}function aa(e,t){0}function ca(t){if(!ra)return;if(ra=!1,0===ia.length)return void(ra=!0);const{$nextTick:n,$options:{rootViewId:o}}=t;n(()=>{const t=function(e){const t=[];for(let n=0;n{switch(e.type){case na.createNode:aa(e.printedNodes),n.create(e.nodes),sa(e.eventNodes,n);break;case na.updateNode:aa(e.printedNodes),n.update(e.nodes),sa(e.eventNodes,n);break;case na.deleteNode:aa(e.printedNodes),n.delete(e.nodes);break;case na.moveNode:aa(e.printedNodes),n.move(e.nodes);break;case na.updateEvent:sa(e.eventNodes,n)}}),n.build(),ra=!0,ia=[]})}function la(){if(!oa||e.__HIPPY_VUE_STYLES__){const t=function(e=[]){const t=ci();return e.map(e=>{const n=e.declarations.filter(Xs).map(function(e){return t=>{const n=e(t);return n}}(t)),o=e.selectors.map(Qs);return new Rs(o,n,e.hash)})}(e.__HIPPY_VUE_STYLES__);oa?oa.append(t):oa=new ta(t),e.__HIPPY_VUE_STYLES__=void 0}return e.__HIPPY_VUE_DISPOSE_STYLES__&&(e.__HIPPY_VUE_DISPOSE_STYLES__.forEach(e=>{oa.delete(e)}),e.__HIPPY_VUE_DISPOSE_STYLES__=void 0),oa}function ua(e){const t={};return e.meta.component.defaultNativeProps&&Object.keys(e.meta.component.defaultNativeProps).forEach(n=>{if(void 0!==e.getAttribute(n))return;const o=e.meta.component.defaultNativeProps[n];pi(o)?t[n]=o(e):t[n]=o}),Object.keys(e.attributes).forEach(n=>{let o=e.getAttribute(n);if(!e.meta.component.attributeMaps||!e.meta.component.attributeMaps[n])return void(t[n]=o);const r=e.meta.component.attributeMaps[n];if("string"==typeof r)return void(t[r]=o);if(pi(r))return void(t[n]=r(o));const{name:i,propsValue:s,jointKey:a}=r;pi(s)&&(o=s(o)),a?(t[a]=t[a]||{},Object.assign(t[a],{[i]:o})):t[i]=o}),e.meta.component.nativeProps&&Object.assign(t,e.meta.component.nativeProps),t}function da(e){const t=Object.create(null);try{la().query(e).selectors.forEach(n=>{(function(e,t){return!(!t||!e)&&e.match(t)})(n,e)&&n.ruleSet.declarations.forEach(e=>{t[e.property]=e.value})})}catch(e){console.error("getDomCss Error:",e)}return t}function fa(e){let t=void 0;const n=e.events;if(n){const o=[];Object.keys(n).forEach(e=>{const{name:t,type:r,isCapture:i,listener:s}=n[e];o.push({name:t,type:r,isCapture:i,listener:s})}),t={id:e.nodeId,eventList:o}}return t}function pa(e,t,n={},o=!1){var r;if(t.meta.skipAddToDom)return[];if(!t.meta.component)throw new Error("Specific tag is not supported yet: "+t.tagName);let i,s;if(o)i=Os(t.nodeId),s=i;else{i=da(t),i=l(l({},i),t.style),ii();const e=Object.assign({},i);if(t.parentNode){const e=Os(t.parentNode.nodeId);["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"].forEach(t=>{!yi(i[t])&&yi(e[t])&&(i[t]=e[t])})}!function(e,t){ks.set(e,t)}(t.nodeId,i),s=function(e){var t;return(null===(t=e.meta)||void 0===t?void 0:t.component)&&"Text"===e.meta.component.name}(t)?i:e,t.meta.component.defaultNativeStyle&&(s=l(l({},t.meta.component.defaultNativeStyle),s))}const a={id:t.nodeId,pId:(null===(r=t.parentNode)||void 0===r?void 0:r.nodeId)||e,name:t.meta.component.name,props:l(l({},ua(t)),{},{style:s}),tagName:t.tagName};!function(e){if(e.props.__modalFirstChild__){const t=e.props.style;Object.keys(t).some(e=>"position"===e&&"absolute"===t[e]&&(["position","left","right","top","bottom"].forEach(e=>delete t[e]),!0))}}(a),function(e,t,n){"View"===e.meta.component.name&&("scroll"===n.overflowX&&n.overflowY,"scroll"===n.overflowY?t.name="ScrollView":"scroll"===n.overflowX&&(t.name="ScrollView",t.props.horizontal=!0,n.flexDirection=xs()?"row-reverse":"row"),"ScrollView"===t.name&&(e.childNodes.length,e.childNodes.length&&e.childNodes[0].setStyle("collapsable",!1)),n.backgroundImage&&(n.backgroundImage=hi(n.backgroundImage)))}(t,a,s),function(e,t){"TextInput"===e.meta.component.name&&xs()&&(t.textAlign||(t.textAlign="right"))}(t,s);const c=fa(t);let u=void 0;return[[a,n],c,u]}function ha(e,t,n,o={}){const r=[],i=[],s=[];return t.traverseChildren((t,o)=>{const[a,c,l]=pa(e,t,o);a&&r.push(a),c&&i.push(c),l&&s.push(l),"function"==typeof n&&n(t)},o),[r,i,s]}function ma(e,t,n={}){if(!e||!t)return;if(t.meta.skipAddToDom)return;const o=ai();if(!o)return;const{$options:{rootViewId:r,rootView:i}}=o,s=function(e,t){return 3===e.nodeId||e.id===t.slice(1-t.length)}(e,i)&&!e.isMounted,a=e.isMounted&&!t.isMounted;if(s||a){const[i,a,c]=ha(r,s?e:t,e=>{var t,n;e.isMounted||(e.isMounted=!0),t=e,n=e.nodeId,Ji.set(n,t)},n);ia.push({type:na.createNode,nodes:i,eventNodes:a,printedNodes:c}),ca(o)}}function ya(e){if(!e.isMounted)return;const t=ai(),n=fa(e);ia.push({type:na.updateEvent,nodes:[],eventNodes:[n],printedNodes:[]}),ca(t)}function ga(e,t=!1){if(!e.isMounted)return;const n=ai(),{$options:{rootViewId:o}}=n,[r,i,s]=pa(o,e,{},t);r&&(ia.push({type:na.updateNode,nodes:r?[r]:[],eventNodes:i?[i]:[],printedNodes:[]}),ca(n))}function va(e){if(!e.isMounted)return;const t=ai(),{$options:{rootViewId:n}}=t,[o,r,i]=ha(n,e);ia.push({type:na.updateNode,nodes:o,eventNodes:r,printedNodes:i}),ca(t)}const ba=new Set;let _a,wa=!1;const $a={exitApp(){za.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(wa||(wa=!0,$a.initEventListener()),za.callNative("DeviceEventModule","setListenBackPress",!0),ba.add(e),{remove(){$a.removeListener(e)}}),removeListener(e){ba.delete(e),0===ba.size&&za.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){_a||(_a=ai()),_a.$on("hardwareBackPress",()=>{let e=!0;Array.from(ba).reverse().every(t=>"function"!=typeof t||!t()||(e=!1,!1)),e&&$a.exitApp()})}},Sa={exitApp(){},addListener:()=>({remove(){}}),removeListener(){},initEventListener(){}},xa="android"===Hippy.device.platform.OS?$a:Sa;let ka;const Oa=new Map;class Na{constructor(e,t){this.eventName=e,this.listener=t}remove(){this.eventName&&this.listener&&(Ea(this.eventName,this.listener),this.listener=void 0)}}function Ea(e,t){if(t instanceof Na)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange");const o=Oa.get(t);o&&(ka||(ka=ai()),ka.$off(n,o),Oa.delete(t),Oa.size<1&&za.callNative("NetInfo","removeListener",n))}var Ca=Object.freeze({__proto__:null,addEventListener:function(e,t){if("function"!=typeof t)return;let n=e;return"change"===n&&(n="networkStatusDidChange"),0===Oa.size&&za.callNative("NetInfo","addListener",n),ka||(ka=ai()),ka.$on(n,t),Oa.set(t,t),new Na(n,t)},removeEventListener:Ea,fetch:function(){return za.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)},NetInfoRevoker:Na});const{on:Ia,off:Aa,emit:Ta,bridge:{callNative:Pa,callNativeWithPromise:ja,callNativeWithCallbackId:La},device:{platform:{OS:Ma,Localization:Da={}},screen:{scale:Fa}},device:Ra,document:Va,register:Ba}=Hippy,Ha={},Ua=["%c[native]%c","color: red","color: auto"],Wa=function(e,t){const n={top:-1,left:-1,bottom:-1,right:-1,width:-1,height:-1};if(!e.isMounted||!e.nodeId)return Promise.resolve(n);const{nodeId:o}=e;return ui(...Ua,"callUIFunction",{nodeId:o,funcName:t,params:[]}),new Promise(e=>Va.callUIFunction(o,t,[],t=>{if(!t||"object"!=typeof t||void 0===o)return e(n);const{x:r,y:i,height:s,width:a}=t;return e({top:i,left:r,width:a,height:s,bottom:i+s,right:r+a})}))},za={callNative:Pa,callNativeWithPromise:ja,callNativeWithCallbackId:La,UIManagerModule:Va,ConsoleModule:e.ConsoleModule||e.console,on:Ia,off:Aa,emit:Ta,PixelRatio:Fa,Platform:Ma,Localization:Da,version:"unspecified",Cookie:{getAll(e){if(!e)throw new TypeError("Vue.Native.Cookie.getAll() must have url argument");return ja.call(this,"network","getCookie",e)},set(e,t,n){if(!e)throw new TypeError("Vue.Native.Cookie.getAll() must have url argument");if("string"!=typeof t)throw new TypeError("Vue.Native.Cookie.getAll() only receive string type of keyValue");let o="";if(n){if(!(n instanceof Date))throw new TypeError("Vue.Native.Cookie.getAll() only receive Date type of expires");o=n.toUTCString()}Pa.call(this,"network","setCookie",e,t,o)}},Clipboard:{getString(){return ja.call(this,"ClipboardModule","getString")},setString(e){Pa.call(this,"ClipboardModule","setString",e)}},get isIPhoneX(){if(!p(Ha.isIPhoneX)){let e=!1;"ios"===za.Platform&&(e=20!==za.Dimensions.screen.statusBarHeight),Ha.isIPhoneX=e}return Ha.isIPhoneX},get screenIsVertical(){return za.Dimensions.window.widthWa(e,"measureInWindow"),measureInAppWindow:e=>"android"===za.Platform?Wa(e,"measureInWindow"):Wa(e,"measureInAppWindow"),getBoundingClientRect(e,t){const{nodeId:n}=e;return new Promise((o,r)=>{if(!e.isMounted||!n)return r(new Error(`getBoundingClientRect cannot get nodeId of ${e} or ${e} is not mounted`));ui(...Ua,"UIManagerModule",{nodeId:n,funcName:"getBoundingClientRect",params:t}),Va.callUIFunction(n,"getBoundingClientRect",[t],e=>{if(!e||e.errMsg)return r(new Error((null==e?void 0:e.errMsg)||"getBoundingClientRect error with no response"));const{x:t,y:n,width:i,height:s}=e;let a=0,c=0;return"number"==typeof n&&"number"==typeof s&&(a=n+s),"number"==typeof t&&"number"==typeof i&&(c=t+i),o({x:t,y:n,width:i,height:s,bottom:a,right:c,left:t,top:n})})})},parseColor(e,t={platform:za.Platform}){if(Number.isInteger(e))return e;const n=Ha.COLOR_PARSER||(Ha.COLOR_PARSER=Object.create(null));return n[e]||(n[e]=ws(e)),n[e]},AsyncStorage:e.Hippy.asyncStorage,BackAndroid:xa,ImageLoader:{getSize(e){return ja.call(this,"ImageLoaderModule","getSize",e)},prefetch(e){Pa.call(this,"ImageLoaderModule","prefetch",e)}},NetInfo:Ca,getElemCss:da};let Ya=0;e.__GLOBAL__&&Number.isInteger(e.__GLOBAL__.nodeId)&&(Ya=e.__GLOBAL__.nodeId);class Ka{constructor(){this._ownerDocument=null,this._isMounted=!1,this.nodeId=(Ya+=1,Ya%10==0&&(Ya+=1),Ya%10==0&&(Ya+=1),Ya),this.index=0,this.childNodes=[]}toString(){return this.constructor.name}get firstChild(){return this.childNodes.length?this.childNodes[0]:null}get lastChild(){const e=this.childNodes.length;return e?this.childNodes[e-1]:null}get meta(){return this._meta?this._meta:{}}get ownerDocument(){if(this._ownerDocument)return this._ownerDocument;let e=this;for(;"DocumentNode"!==e.constructor.name&&(e=e.parentNode,e););return this._ownerDocument=e,e}get isMounted(){return this._isMounted}set isMounted(e){this._isMounted=e}insertBefore(e,t){if(!e)throw new Error("Can't insert child.");if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't insert child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't insert child, because it already has a different parent.");const n=this.childNodes.indexOf(t);let o=t;return t.meta.skipAddToDom&&(o=es(this.childNodes,n)),e.parentNode=this,e.nextSibling=t,e.prevSibling=this.childNodes[n-1],this.childNodes[n-1]&&(this.childNodes[n-1].nextSibling=e),t.prevSibling=e,this.childNodes.splice(n,0,e),o.meta.skipAddToDom?ma(this,e):ma(this,e,{refId:o.nodeId,relativeToRef:ts})}moveChild(e,t){if(!e)throw new Error("Can't move child.");if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't move child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't move child, because it already has a different parent.");const n=this.childNodes.indexOf(e),o=this.childNodes.indexOf(t);let r=t;if(t.meta.skipAddToDom&&(r=es(this.childNodes,o)),o===n)return e;e.nextSibling=t,e.prevSibling=t.prevSibling,t.prevSibling=e,this.childNodes[o-1]&&(this.childNodes[o-1].nextSibling=e),this.childNodes[o+1]&&(this.childNodes[o+1].prevSibling=e),this.childNodes[n-1]&&(this.childNodes[n-1].nextSibling=this.childNodes[n+1]),this.childNodes[n+1]&&(this.childNodes[n+1].prevSibling=this.childNodes[n-1]),this.childNodes.splice(n,1);const i=this.childNodes.indexOf(t);return this.childNodes.splice(i,0,e),r.meta.skipAddToDom?ma(this,e):function(e,t,n={}){if((null==e?void 0:e.meta)&&pi(e.meta.removeChild)&&e.meta.removeChild(e,t),!t||t.meta.skipAddToDom)return;if(n&&n.refId===t.nodeId)return;const o=ai(),{$options:{rootViewId:r}}=o,i={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r},s=[[i,n]],a=[];ia.push({printedNodes:a,type:na.moveNode,nodes:s,eventNodes:[]}),ca(o)}(this,e,{refId:r.nodeId,relativeToRef:ts})}appendChild(e){if(!e)throw new Error("Can't append child.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");this.lastChild!==e&&(e.isMounted&&this.removeChild(e),e.parentNode=this,this.lastChild&&(e.prevSibling=this.lastChild,this.lastChild.nextSibling=e),this.childNodes.push(e),ma(this,e))}removeChild(e){if(!e)throw new Error("Can't remove child.");if(!e.parentNode)throw new Error("Can't remove child, because it has no parent.");if(e.parentNode!==this)throw new Error("Can't remove child, because it has a different parent.");if(e.meta.skipAddToDom)return;e.prevSibling&&(e.prevSibling.nextSibling=e.nextSibling),e.nextSibling&&(e.nextSibling.prevSibling=e.prevSibling),e.prevSibling=void 0,e.nextSibling=void 0;const t=this.childNodes.indexOf(e);this.childNodes.splice(t,1),function(e,t){if(!t||t.meta.skipAddToDom)return;t.isMounted=!1;const n=ai(),{$options:{rootViewId:o}}=n,r={id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:o},i=[[r,{}]],s=[];ia.push({printedNodes:s,type:na.deleteNode,nodes:i,eventNodes:[]}),ca(n)}(0,e)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(let t=0;t{this.traverseChildren.call(t,e,{})})}}class Ga extends Ka{constructor(e){super(),this.text=e,this._meta={symbol:wi,skipAddToDom:!0}}setText(e){this.text=e,"function"==typeof this.parentNode.setText&&this.parentNode.setText(e)}}const qa={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},Xa="turn",Ja="rad",Za="deg",Qa="beforeLoadStyleDisabled",ec="class",tc="id",nc="text",oc="value",rc="defaultValue",ic="placeholder",sc="numberOfRows",ac="caretColor",cc="caret-color",lc="break-strategy",uc="placeholderTextColor",dc="placeholder-text-color",fc="underlineColorAndroid",pc="underline-color-android",hc="nativeBackgroundAndroid",mc={textShadowOffsetX:"width",textShadowOffsetY:"height"};function yc(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=i(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(!Array.isArray(n))return;let o="180";const[r,s,a]=n;return s&&a?o=function(e,t=Za){const n=parseFloat(e);let o=e||"";const[,r]=e.split(".");switch(r&&r.length>2&&(o=n.toFixed(2)),t){case Xa:o=""+(360*n).toFixed(2);break;case Ja:o=""+(180/Math.PI*n).toFixed(2)}return o}(s,a):r&&void 0!==qa[r]&&(o=qa[r]),o}function gc(e){const t=(e||"").replace(/\s+/g," ").trim(),[n,o]=t.split(/\s+(?![^(]*?\))/),r=/^([+-]?\d+\.?\d*)%$/g;return!n||r.exec(n)||o?n&&r.exec(o)?{ratio:parseFloat(o.split("%")[0])/100,color:za.parseColor(n)}:void 0:{color:za.parseColor(n)}}function vc(e,t,n){"backgroundImage"===e&&n.linearGradient&&delete n.linearGradient}function bc(e,t,n){void 0===t&&(delete n[e],vc(e,0,n),function(e,t,n){"textShadowOffsetX"!==e&&"textShadowOffsetY"!==e||!n.textShadowOffset||(delete n.textShadowOffset[mc[e]],0===Object.keys(n.textShadowOffset).length&&delete n.textShadowOffset)}(e,0,n))}function _c(e,t){if("string"!=typeof e)return;const n=e.split(",");for(let e=0,o=n.length;ee.trim()));if(function(e,t){if(e.size!==t.size)return!1;const n=e.values();let o=n.next().value;for(;o;){if(!t.has(o))return!1;o=n.next().value}return!0}(this.classList,e))return;return this.classList=e,void(!n.notToNative&&va(this))}case tc:if(r===this.id)return;return this.id=r,void(!n.notToNative&&va(this));case nc:case oc:case rc:case ic:if("string"!=typeof r)try{r=r.toString()}catch(e){e.message}n&&n.textUpdate||(r=function(e){return"string"!=typeof e?e:!oi||void 0===oi.config.trimWhitespace||oi.config.trimWhitespace?e.trim().replace(/( |Â)/g," "):e.replace(/( |Â)/g," ")}(r)),r=function(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)))}(r);break;case sc:if("ios"!==za.Platform)return;break;case ac:case cc:o="caret-color",r=za.parseColor(r);break;case lc:o="breakStrategy";break;case uc:case dc:o="placeholderTextColor",r=za.parseColor(r);break;case fc:case pc:o="underlineColorAndroid",r=za.parseColor(r);break;case hc:{const e=r;void 0!==e.color&&(e.color=za.parseColor(e.color)),o="nativeBackgroundAndroid",r=e;break}}if(this.attributes[o]===r)return;this.attributes[o]=r,"function"==typeof this.filterAttribute&&this.filterAttribute(this.attributes),!n.notToNative&&ga(this,n.notUpdateStyle)}catch(e){0}}removeAttribute(e){delete this.attributes[e]}setStyles(e){if(!e||"object"!=typeof e||0===Object.keys(e).length)return;Object.keys(e).forEach(t=>{const n=e[t];this.setStyle(t,n,!0)});wc.some(t=>Object.prototype.hasOwnProperty.call(e,t))?va(this):ga(this)}setStyle(e,t,n=!1){let o=e,r=t;if(this.getAttribute(Qa)||({value:r,property:o}=this.beforeLoadStyle({property:e,value:t})),void 0===t)return bc(o,r,this.style),void(n||ga(this));switch(o){case"fontWeight":"string"!=typeof r&&(r=r.toString());break;case"backgroundImage":[o,r]=function(e,t,n){delete n[e],vc(e,t,n);let o=t,r=e;if(0===t.indexOf("linear-gradient")){r="linearGradient";const e=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),n=[];o={},e.forEach((e,t)=>{if(0===t){const t=yc(e);if(t)o.angle=t;else{o.angle="180";const t=gc(e);t&&n.push(t)}}else{const t=gc(e);t&&n.push(t)}}),o.colorStopList=n}else{const e=/(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t);e&&e.length>1&&([,o]=e)}return[r,o]}(o,r,this.style);break;case"textShadowOffsetX":case"textShadowOffsetY":[o,r]=function(e,t=0,n){return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[mc[e]]:t}),["textShadowOffset",n.textShadowOffset]}(o,r,this.style);break;case"textShadowOffset":{const{x:e=0,width:t=0,y:n=0,height:o=0}=r||{};r={width:e||t,height:n||o};break}default:Object.prototype.hasOwnProperty.call($s,o)&&(o=$s[o]),"string"==typeof r&&(r=r.trim(),r=o.toLowerCase().indexOf("color")>=0?za.parseColor(r):function(e,t,n){if(e.endsWith)return e.endsWith(t,n);let o=n;return(void 0===o||o>e.length)&&(o=e.length),e.slice(o-t.length,o)===t}(r,"px")?parseFloat(r.slice(0,r.length-2)):function(e){if("number"==typeof e)return e;if("string"==typeof e&&fi.test(e))try{return parseFloat(e)}catch(e){}return e}(r))}null!=r&&this.style[o]!==r&&(this.style[o]=r,n||(wc.indexOf(o)>=0?va(this):ga(this)))}setNativeProps(e){if(e){const{style:t}=e;this.setStyles(t)}}repaintWithChildren(){va(this)}setStyleScope(e){"string"!=typeof e&&(e=e.toString()),e&&!this.scopeIdList.includes(e)&&this.scopeIdList.push(e)}get styleScopeId(){return this.scopeIdList}isTextNode(e){return(null==e?void 0:e.meta.symbol)===wi}appendChild(e){(null==e?void 0:e.meta.symbol)===wi&&e instanceof Ga&&this.setText(e.text,{notToNative:!0}),super.appendChild(e)}insertBefore(e,t){this.isTextNode(e)&&e instanceof Ga&&this.setText(e.text,{notToNative:!0}),super.insertBefore(e,t)}moveChild(e,t){this.isTextNode(e)&&e instanceof Ga&&this.setText(e.text,{notToNative:!0}),super.moveChild(e,t)}removeChild(e){this.isTextNode(e)&&e instanceof Ga&&this.setText("",{notToNative:!0}),super.removeChild(e)}setText(e,t={}){return"textarea"===this.tagName?this.setAttribute("value",e,{notToNative:!!t.notToNative}):this.setAttribute("text",e,{notToNative:!!t.notToNative})}setListenerHandledType(e,t){this.events[e]&&(this.events[e].handledType=t)}isListenerHandled(e,t){return!this.events[e]||t===this.events[e].handledType}getNativeEventName(e){let t="on"+di(e);if(this.meta.component){const{eventNamesMap:n}=this.meta.component;(null==n?void 0:n[e])&&(t=n[e])}return t}addEventListener(e,t,n){if(this._emitter||(this._emitter=new Xi(this)),"scroll"===e&&!(this.getAttribute("scrollEventThrottle")>0)){const e=200;this.attributes.scrollEventThrottle=e}"function"==typeof this.polyfillNativeEvents&&({eventNames:e,callback:t,options:n}=this.polyfillNativeEvents(ss,e,t,n)),this._emitter.addEventListener(e,t,n),_c(e,e=>{const t=this.getNativeEventName(e);var n,o;this.events[t]?this.events[t]&&this.events[t].type!==ns&&(this.events[t].type=ns):this.events[t]={name:t,type:ns,listener:(n=t,o=e,e=>{const{id:t,currentId:r,params:i,eventPhase:s}=e,a={id:t,nativeName:n,originalName:o,currentId:r,params:i,eventPhase:s};us.receiveComponentEvent(a,e)}),isCapture:!1}}),ya(this)}removeEventListener(e,t,n){if(!this._emitter)return null;"function"==typeof this.polyfillNativeEvents&&({eventNames:e,callback:t,options:n}=this.polyfillNativeEvents(as,e,t,n));const o=this._emitter.removeEventListener(e,t,n);return _c(e,e=>{const t=this.getNativeEventName(e);this.events[t]&&(this.events[t].type=os)}),ya(this),o}dispatchEvent(e,t,n){if(!(e instanceof qi))throw new Error("dispatchEvent method only accept Event instance");e.currentTarget=this,e.target||(e.target=t||this,"string"==typeof e.value&&e.target&&(e.target.value=e.value)),this._emitter&&this._emitter.emit(e),!e.bubbles&&n&&n.stopPropagation()}getBoundingClientRect(){return za.measureInWindow(this)}scrollToPosition(e=0,t=0,n=1e3){if("number"!=typeof e||"number"!=typeof t)return;let o=n;!1===o&&(o=0),za.callUIFunction(this,"scrollToWithOptions",[{x:e,y:t,duration:o}])}scrollTo(e,t,n){let o=n;if("object"==typeof e&&e){const{left:t,top:n,behavior:r="auto"}=e;({duration:o}=e),this.scrollToPosition(t,n,"none"===r?0:o)}else this.scrollToPosition(e,t,n)}setPressed(e){za.callUIFunction(this,"setPressed",[e])}setHotspot(e,t){za.callUIFunction(this,"setHotspot",[e,t])}}class Sc extends $c{constructor(e){super("comment"),this.text=e,this._meta={symbol:wi,skipAddToDom:!0}}}class xc extends $c{getValue(){return new Promise(e=>za.callUIFunction(this,"getValue",t=>e(t.text)))}setValue(e){za.callUIFunction(this,"setValue",[e])}focus(){za.callUIFunction(this,"focusTextInput",[])}blur(){za.callUIFunction(this,"blurTextInput",[])}isFocused(){return new Promise(e=>za.callUIFunction(this,"isFocused",t=>e(t.value)))}clear(){za.callUIFunction(this,"clear",[])}showInputMethod(){}hideInputMethod(){}}class kc extends $c{scrollToIndex(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&za.callUIFunction(this,"scrollToIndex",[e,t,n])}scrollToPosition(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&za.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}class Oc extends Ka{constructor(){super(),this.documentElement=new $c("document")}static createComment(e){return new Sc(e)}static createElement(e){switch(e){case"input":case"textarea":return new xc(e);case"ul":return new kc(e);default:return new $c(e)}}static createElementNS(e,t){return new $c(`${e}:${t}`)}static createTextNode(e){return new Ga(e)}static createEvent(e){return new qi(e)}}var Nc={create(e,t){Ec(t)},update(e,t){e.data.ref!==t.data.ref&&(Ec(e,!0),Ec(t))},destroy(e){Ec(e,!0)}};function Ec(e,t){const n=e.data.ref;if(!p(n))return;const o=e.context,r=e.componentInstance||e.elm,i=o.$refs;t?Array.isArray(i[n])?N(i[n],r):i[n]===r&&(i[n]=void 0):e.data.refInFor?Array.isArray(i[n])?i[n].indexOf(r)<0&&i[n].push(r):i[n]=[r]:i[n]=r}const Cc=new ve("",{},[]),Ic=["create","activate","update","remove","destroy"];function Ac(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&p(e.data)===p(t.data)&&function(e,t){if("input"!==e.tag)return!0;let n;const o=p(n=e.data)&&p(n=n.attrs)&&n.type,r=p(n=t.data)&&p(n=n.attrs)&&n.type;return o===r||Tn(o)&&Tn(r)}(e,t)||h(e.isAsyncPlaceholder)&&f(t.asyncFactory.error))}function Tc(e,t,n){let o,r;const i={};for(o=t;o<=n;++o)r=e[o].key,p(r)&&(i[r]=o);return i}var Pc={create:jc,update:jc,destroy:function(e){jc(e,Cc)}};function jc(e,t){(e.data.directives||t.data.directives)&&function(e,t){const n=e===Cc,o=t===Cc,r=Mc(e.data.directives,e.context),i=Mc(t.data.directives,t.context),s=[],a=[];let c,l,u;for(c in i)l=r[c],u=i[c],l?(u.oldValue=l.value,u.oldArg=l.arg,Fc(u,"update",t,e),u.def&&u.def.componentUpdated&&a.push(u)):(Fc(u,"bind",t,e),u.def&&u.def.inserted&&s.push(u));if(s.length){const o=()=>{for(let n=0;n{for(let n=0;n{const t=r[e],o=i[e];null!=t&&null==o&&(n[e]=void 0)}),Object.keys(i).forEach(e=>{const t=r[e],o=i[e];t!==o&&(n[e]=o)}),Object.keys(n).forEach(e=>{o.setAttribute(e,n[e])})}var Bc={create:Vc,update:Vc};function Hc(e,t){const{elm:n,data:o}=t,r=e.data;if(!(o.staticClass||o.class||r&&(r.staticClass||r.class)))return;let i=On(t);const s=n._transitionClasses;s&&(i=En(i,Cn(s))),i!==n._prevClass&&(n.setAttribute("class",i),n._prevClass=i)}var Uc={create:Hc,update:Hc};let Wc;function zc(e,t,n,o){(o||Wc).removeEventListener(e)}function Yc(e,t,n,o,r){n||Wc.addEventListener(e,t)}function Kc(e,t,n){const o=Wc;return function(){const n=t(...arguments);null!==n&&zc(e,0,0,o)}}function Gc(e,t){if(!e.data.on&&!t.data.on)return;const n=t.data.on||{},o=e.data.on||{};Wc=t.elm,it(n,o,Yc,zc,Kc,t.context)}var qc={create:Gc,update:Gc};const Xc=I(T);function Jc(e){const t={};for(let n=0;n{const r=e[o],i=t[o];!mi(r)&&mi(i)&&(n[Xc(o)]=void 0)}),Object.keys(t).forEach(o=>{const r=e[o],i=t[o];mi(i)||i===r||(n[Xc(o)]=i)}),n}function Qc(e,t){if(!t.elm||!function(e,t){return!(!e.data&&!t.data)&&!!(e.data.style||t.data.style||e.data.staticStyle||t.data.staticStyle)}(e,t))return;const n=Zc(e.data.staticStyle||{},t.data.staticStyle||{}),o=e.data.style||{};let r=t.data.style||{};const i=r.__ob__;Array.isArray(r)&&(r=Jc(r),t.data.style=r),i&&(r=F({},r),t.data.style=r);const s=Zc(o,r);t.elm.setStyles(l(l({},n),s))}var el=[Bc,Uc,qc,{create:Qc,update:Qc}];function tl(e,t){let n=!1;3===e.nodeId&&(n=!0),n&&(function(e,t,n={}){var o;if(!e||!e.data)return;let{elm:r}=e;if(t&&(r=t),!r)return;let i=(null===(o=e.data)||void 0===o?void 0:o.attrs)||{};i.__ob__&&(i=F({},i),e.data.attrs=i),Object.keys(i).forEach(e=>{r.setAttribute(e,i[e],{notToNative:!!n.notToNative})})}(t,e,{notToNative:!0}),function(e,t,n={}){if(!e||!e.data)return;let{elm:o}=e;if(t&&(o=t),!o)return;const{staticStyle:r}=e.data;r&&Object.keys(r).forEach(e=>{const t=r[e];t&&o.setStyle(Xc(e),t,!!n.notToNative)});let{style:i}=e.data;if(i){const t=i.__ob__;Array.isArray(i)&&(i=Jc(i),e.data.style=i),t&&(i=F({},i),e.data.style=i),Object.keys(i).forEach(e=>{o.setStyle(Xc(e),i[e],!!n.notToNative)})}}(t,e,{notToNative:!0}),function(e,t,n={}){if(!e||!e.data)return;const{data:o}=e;if(!o.staticClass&&!o.class)return;let{elm:r}=e;if(t&&(r=t),!r)return;let i=On(e);const s=r._transitionClasses;s&&(i=En(i,Cn(s))),i!==r._prevClass&&(r.setAttribute("class",i,{notToNative:!!n.notToNative}),r._prevClass=i)}(t,e,{notToNative:!0}))}const nl=function(e){let t,n;const o={},{modules:r,nodeOps:i}=e;for(t=0;tm?(u=f(n[b+1])?null:n[b+1].elm,v(e,u,n,h,b,o)):h>b&&_(t,d,m)}(l,y,g,n,c):p(g)?(p(e.text)&&i.setTextContent(l,""),v(l,null,g,0,g.length-1,n)):p(y)?_(y,0,y.length-1):p(e.text)&&i.setTextContent(l,""):e.text!==t.text&&i.setTextContent(l,t.text),p(m)&&p(u=m.hook)&&p(u=u.postpatch)&&u(e,t)}function k(e,t,n){if(h(n)&&p(e.parent))e.parent.data.pendingInsert=t;else for(let e=0;e=0?e.moveChild(t,n):e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t),Qi(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.setText(t)},setAttribute:function(e,t,n){e.setAttribute(t,n)},setStyleScope:function(e,t){e.setStyleScope(t)}}),modules:el.concat(Rc)});function ol(e,t){t!==e.attributes.defaultValue&&(e.attributes.defaultValue=t,e.setAttribute("text",t,{textUpdate:!0}))}let rl=function(e,t,n){t!==n&&e.setAttribute("defaultValue",t,{textUpdate:!0})};const il={inserted(e,t){"ios"===za.Platform&&rl!==ol&&(rl=ol),"TextInput"===e.meta.component.name&&(e._vModifiers=t.modifiers,e.attributes.defaultValue=t.value,t.modifiers.lazy||e.addEventListener("change",({value:t})=>{const n=new qi("input");n.value=t,e.dispatchEvent(n)}))},update(e,{value:t,oldValue:n}){e.value=t,rl(e,t,n)}};function sl(e,t,n,o){t?(n.data.show=!0,e.setStyle("display",o)):e.setStyle("display","none")}const al={bind(e,{value:t},n){void 0===e.style.display&&(e.style.display="block");const o="none"===e.style.display?"":e.style.display;e.__vOriginalDisplay=o,sl(e,t,n,o)},update(e,{value:t,oldValue:n},o){!t!=!n&&sl(e,t,o,e.__vOriginalDisplay)},unbind(e,t,n,o,r){r||(e.style.display=e.__vOriginalDisplay)}};var cl=Object.freeze({__proto__:null,model:il,show:al});const ll=['%c[Hippy-Vue "unspecified"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"],ul=new Oc;gn.$document=ul,gn.prototype.$document=ul,gn.$Document=Oc,gn.$Event=qi,gn.config.mustUseProp=function(e,t,n){const o=Gi(e);return!!o.mustUseProp&&o.mustUseProp(t,n)},gn.config.isReservedTag=Ui,gn.config.isUnknownElement=function(e){return t=e,!Wi.has(Yi(t));var t},gn.compile=ei,gn.registerElement=Ki,F(gn.options.directives,cl),gn.prototype.__patch__=nl,gn.prototype.$mount=function(e,t){const n=this.$options;if(!n.render){const{template:e}=n;if(e&&"string"!=typeof e)return fe("invalid template option: "+e,this),this;if(e){const{render:t,staticRenderFns:o}=ei(e,{delimiters:n.delimiters,comments:n.comments},this);n.render=t,n.staticRenderFns=o}}return function(e,t,n){let o;return e.$el=t,e.$options.render||(e.$options.render=be),Xt(e,"beforeMount"),o=()=>{e._update(e._render(),n)},new an(e,o,R,{before(){e._isMounted&&!e._isDestroyed&&Xt(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Xt(e,"mounted")),e}(this,e,t)},gn.prototype.$start=function(e,t){var n;si(this),pi(this.$options.beforeLoadStyle)&&(n=this.$options.beforeLoadStyle,ri=n),Wi.forEach(e=>{gn.component(e.meta.component.name,e.meta.component)}),Ba.regist(this.$options.appName,n=>{const{__instanceId__:o}=n;if(this.$options.$superProps=n,this.$options.rootViewId=o,ui(...ll,"Start",this.$options.appName,"with rootViewId",o,n),this.$el){this.$destroy();si(new(gn.extend(this.$options))(this.$options))}if(pi(t)&&t(this,n),this.$mount(),"ios"===za.Platform){const e=function(e={}){const{iPhone:t}=e;let n={};if((null==t?void 0:t.statusBar)&&(n=t.statusBar),n.disabled)return null;const o=new $c("div"),{statusBarHeight:r}=za.Dimensions.screen;za.screenIsVertical?o.setStyle("height",r):o.setStyle("height",0);let i=4282431619;if("number"==typeof n.backgroundColor&&({backgroundColor:i}=n),o.setStyle("backgroundColor",i),"string"==typeof n.backgroundImage){const t=new $c("img");t.setStyle("width",za.Dimensions.screen.width),t.setStyle("height",r),t.setAttribute("src",e.statusBarOpts.backgroundImage),o.appendChild(t)}return o.addEventListener("layout",()=>{za.screenIsVertical?o.setStyle("height",r):o.setStyle("height",0)}),o}(this.$options);e&&(this.$el.childNodes.length?this.$el.insertBefore(e,this.$el.childNodes[0]):this.$el.appendChild(e))}pi(e)&&e(this,n)})};let dl=1;gn.component=function(e,t){return t?(v(t)&&(t.name=t.name||e,t=this.options._base.extend(t)),this.options.components[e]=t,t):this.options.components[e]},gn.extend=function(e){e=e||{};const t=this,n=t.cid,o=e._Ctor||(e._Ctor={});if(o[n])return o[n];const r=e.name||t.options.name,i=function(e){this._init(e)};return(i.prototype=Object.create(t.prototype)).constructor=i,dl+=1,i.cid=dl,i.options=Re(t.options,e),i.super=t,i.options.props&&function(e){const{props:t}=e.options;Object.keys(t).forEach(t=>ln(e.prototype,"_props",t))}(i),i.options.computed&&function(e){const{computed:t}=e.options;Object.keys(t).forEach(n=>fn(e.prototype,n,t[n]))}(i),i.extend=t.extend,i.mixin=t.mixin,i.use=t.use,z.forEach(e=>{i[e]=t[e]}),r&&(i.options.components[r]=i),i.superOptions=t.options,i.extendOptions=e,i.sealedOptions=F({},i.options),o[n]=i,i},gn.Native=za,gn.getApp=ai,gn.use((function(){Object.keys(Hi).forEach(e=>{Ki(e,Hi[e])})})),K.devtools&&ce&&ce.emit("init",gn);gn.config._setBeforeRenderToNative=(e,t)=>{pi(e)&&(1===t?ii=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))};const fl=new Proxy(gn,{construct(e,t){const n=new e(...t);return n}});let pl;e.process=e.process||{},e.process.env=e.process.env||{},e.WebSocket=class{constructor(e,t,n){this.webSocketId=-1,pl=ai(),this.url=e,this.readyState=0,this.webSocketCallbacks={},this.onWebSocketEvent=this.onWebSocketEvent.bind(this);const o=l({},n);if(pl.$on("hippyWebsocketEvents",this.onWebSocketEvent),!e||"string"!=typeof e)throw new TypeError("Invalid WebSocket url");Array.isArray(t)&&t.length>0?o["Sec-WebSocket-Protocol"]=t.join(","):"string"==typeof t&&(o["Sec-WebSocket-Protocol"]=t);const r={headers:o,url:e};za.callNativeWithPromise("websocket","connect",r).then(e=>{e&&0===e.code&&"number"==typeof e.id&&(this.webSocketId=e.id)})}close(e,t){1===this.readyState&&(this.readyState=2,za.callNative("websocket","close",{id:this.webSocketId,code:e,reason:t}))}send(e){if(1===this.readyState){if("string"!=typeof e)throw new TypeError("Unsupported websocket data type: "+typeof e);za.callNative("websocket","send",{id:this.webSocketId,data:e})}}set onopen(e){this.webSocketCallbacks.onOpen=e}set onclose(e){this.webSocketCallbacks.onClose=e}set onerror(e){this.webSocketCallbacks.onError=e}set onmessage(e){this.webSocketCallbacks.onMessage=e}onWebSocketEvent(e){if("object"!=typeof e||e.id!==this.webSocketId)return;const t=e.type;if("string"!=typeof t)return;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,pl.$off("hippyWebsocketEvents",this.onWebSocketEvent));const n=this.webSocketCallbacks[t];pi(n)&&n(e.data)}},fl.config.silent=!1,fl.config.trimWhitespace=!0,function(e){oi=e}(fl)}.call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/timers-browserify/main.js").setImmediate,n("./node_modules/process/browser.js"))},"./node_modules/process/browser.js":function(e,t){var n,o,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(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{o="function"==typeof clearTimeout?clearTimeout:s}catch(e){o=s}}();var c,l=[],u=!1,d=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&p())}function p(){if(!u){var e=a(f);u=!0;for(var t=l.length;t;){for(c=l,l=[];++d1)for(var n=1;n=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n("./node_modules/setimmediate/setImmediate.js"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/webpack/buildin/global.js":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},"./scripts/vendor.js":function(e,t,n){n("../../packages/hippy-vue/dist/index.js"),n("../../packages/hippy-vue-native-components/dist/index.js")},0:function(e,t,n){e.exports=n}}); \ No newline at end of file diff --git a/framework/voltron/example/assets/jsbundle/vue3/asyncComponentFromHttp.android.js b/framework/voltron/example/assets/jsbundle/vue3/asyncComponentFromHttp.android.js index bf62b6edf18..b797fd5968a 100644 --- a/framework/voltron/example/assets/jsbundle/vue3/asyncComponentFromHttp.android.js +++ b/framework/voltron/example/assets/jsbundle/vue3/asyncComponentFromHttp.android.js @@ -1 +1 @@ -((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 +((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 diff --git a/framework/voltron/example/assets/jsbundle/vue3/asyncComponentFromLocal.android.js b/framework/voltron/example/assets/jsbundle/vue3/asyncComponentFromLocal.android.js index ab4053b04f7..fe5ad672f63 100644 --- a/framework/voltron/example/assets/jsbundle/vue3/asyncComponentFromLocal.android.js +++ b/framework/voltron/example/assets/jsbundle/vue3/asyncComponentFromLocal.android.js @@ -1 +1 @@ -((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 +((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 diff --git a/framework/voltron/example/assets/jsbundle/vue3/index.android.js b/framework/voltron/example/assets/jsbundle/vue3/index.android.js index c488e492d6f..85f95ba0f19 100644 --- a/framework/voltron/example/assets/jsbundle/vue3/index.android.js +++ b/framework/voltron/example/assets/jsbundle/vue3/index.android.js @@ -1,22 +1,22 @@ -!function(e){function t(t){for(var o,a,c=t[0],l=t[1],i=0,s=[];i0===i.indexOf(e))){var r=i.split("/"),s=r[r.length-1],u=s.split(".")[0];(d=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[u])&&(i=d+s)}else{var d;u=i.split(".")[0];(d=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[u])&&(i=d+i)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+i;var o=n[e];0!==o&&o&&o[1](t),n[e]=void 0}},global.dynamicLoad(i,onScriptComplete)}return Promise.all(t)},a.m=e,a.c=o,a.d=function(e,t,o){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(a.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(o,n,function(t){return e[t]}.bind(null,n));return o},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a.oe=function(e){throw console.error(e),e};var c=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],l=c.push.bind(c);c.push=t,c=c.slice();for(var i=0;i0===c.indexOf(e))){var i=c.split("/"),s=i[i.length-1],d=s.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(c=p+s)}else{var p;d=c.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(c=p+c)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+c;var o=a[e];0!==o&&o&&o[1](t),a[e]=void 0}},global.dynamicLoad(c,onScriptComplete)}return Promise.all(t)},n.m=e,n.c=o,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(o,a,function(t){return e[t]}.bind(null,a));return o},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.oe=function(e){throw console.error(e),e};var r=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],l=r.push.bind(r);r.push=t,r=r.slice();for(var c=0;c(r.push(e),()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)}),destroy(){r=[],t=[""],o=0},go(e,l=!0){const c=this.location,i=e<0?n.back:n.forward;o=Math.max(0,Math.min(o+e,t.length-1)),l&&function(e,t,{direction:o,delta:n}){const l={direction:o,delta:n,type:a.pop};for(const o of r)o(e,t,l)}(this.location,c,{direction:i,delta:e})},get position(){return o}};return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t[o]}),i}t.createHippyHistory=p,t.createHippyRouter=function(e){var t;const o=r.createRouter({history:null!==(t=e.history)&&void 0!==t?t:p(),routes:e.routes});return e.noInjectAndroidHardwareBackPress||function(e){if(l.Native.isAndroid()){function t(){const{position:t}=e.options.history;if(t>0)return e.back(),!0}e.isReady().then(()=>{l.BackAndroid.addListener(t)})}}(o),o},Object.keys(r).forEach((function(e){"default"===e||t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}))},"./node_modules/@vue/shared/dist/shared.esm-bundler.js":function(e,t,o){"use strict";(function(e){ /** -* @vue/runtime-dom v3.4.34 +* @vue/shared v3.4.32 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ -"undefined"!=typeof document&&document;const c=Symbol("_vtc"),l=(e,{slots:t})=>Object(n.h)(n.BaseTransition,u(e),t);l.displayName="Transition";const i={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},r=(l.props=Object(a.e)({},n.BaseTransitionPropsValidators,i),(e,t=[])=>{Object(a.i)(e)?e.forEach(e=>e(...t)):e&&e(...t)}),s=e=>!!e&&(Object(a.i)(e)?e.some(e=>e.length>1):e.length>1);function u(e){const t={};for(const o in e)o in i||(t[o]=e[o]);if(!1===e.css)return t;const{name:o="v",type:n,duration:c,enterFromClass:l=o+"-enter-from",enterActiveClass:u=o+"-enter-active",enterToClass:p=o+"-enter-to",appearFromClass:h=l,appearActiveClass:v=u,appearToClass:O=p,leaveFromClass:y=o+"-leave-from",leaveActiveClass:w=o+"-leave-active",leaveToClass:A=o+"-leave-to"}=e,C=function(e){if(null==e)return null;if(Object(a.n)(e))return[d(e.enter),d(e.leave)];{const t=d(e);return[t,t]}}(c),x=C&&C[0],S=C&&C[1],{onBeforeEnter:k,onEnter:T,onEnterCancelled:D,onLeave:P,onLeaveCancelled:E,onBeforeAppear:_=k,onAppear:I=T,onAppearCancelled:B=D}=t,R=(e,t,o)=>{g(e,t?O:p),g(e,t?v:u),o&&o()},L=(e,t)=>{e._isLeaving=!1,g(e,y),g(e,A),g(e,w),t&&t()},V=e=>(t,o)=>{const a=e?I:T,c=()=>R(t,e,o);r(a,[t,c]),f(()=>{g(t,e?h:l),b(t,e?O:p),s(a)||m(t,n,x,c)})};return Object(a.e)(t,{onBeforeEnter(e){r(k,[e]),b(e,l),b(e,u)},onBeforeAppear(e){r(_,[e]),b(e,h),b(e,v)},onEnter:V(!1),onAppear:V(!0),onLeave(e,t){e._isLeaving=!0;const o=()=>L(e,t);b(e,y),b(e,w),j(),f(()=>{e._isLeaving&&(g(e,y),b(e,A),s(P)||m(e,n,S,o))}),r(P,[e,o])},onEnterCancelled(e){R(e,!1),r(D,[e])},onAppearCancelled(e){R(e,!0),r(B,[e])},onLeaveCancelled(e){L(e),r(E,[e])}})}function d(e){return Object(a.x)(e)}function b(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[c]||(e[c]=new Set)).add(t)}function g(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));const o=e[c];o&&(o.delete(t),o.size||(e[c]=void 0))}function f(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let p=0;function m(e,t,o,n){const a=e._endId=++p,c=()=>{a===e._endId&&n()};if(o)return setTimeout(c,o);const{type:l,timeout:i,propCount:r}=h(e,t);if(!l)return n();const s=l+"end";let u=0;const d=()=>{e.removeEventListener(s,b),c()},b=t=>{t.target===e&&++u>=r&&d()};setTimeout(()=>{u(o[e]||"").split(", "),a=n("transitionDelay"),c=n("transitionDuration"),l=v(a,c),i=n("animationDelay"),r=n("animationDuration"),s=v(i,r);let u=null,d=0,b=0;"transition"===t?l>0&&(u="transition",d=l,b=c.length):"animation"===t?s>0&&(u="animation",d=s,b=r.length):(d=Math.max(l,s),u=d>0?l>s?"transition":"animation":null,b=u?"transition"===u?c.length:r.length:0);return{type:u,timeout:d,propCount:b,hasTransform:"transition"===u&&/\b(transform|all)(,|$)/.test(n("transitionProperty").toString())}}function v(e,t){for(;e.lengthO(t)+O(e[o])))}function O(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function j(){return document.body.offsetHeight}const y=Symbol("_vod"),w=Symbol("_vsh"),A={beforeMount(e,{value:t},{transition:o}){e[y]="none"===e.style.display?"":e.style.display,o&&t?o.beforeEnter(e):C(e,t)},mounted(e,{value:t},{transition:o}){o&&t&&o.enter(e)},updated(e,{value:t,oldValue:o},{transition:n}){!t!=!o&&(n?t?(n.beforeEnter(e),C(e,!0),n.enter(e)):n.leave(e,()=>{C(e,!1)}):C(e,t))},beforeUnmount(e,{value:t}){C(e,t)}};function C(e,t){e.style.display=t?e[y]:"none",e[w]=!t}Symbol("");Symbol("_vei"); /*! #__NO_SIDE_EFFECTS__ */ -"undefined"!=typeof HTMLElement&&HTMLElement;Symbol("_moveCb"),Symbol("_enterCb");Symbol("_assign");const x=["ctrl","shift","alt","meta"],S={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)=>x.some(o=>e[o+"Key"]&&!t.includes(o))},k=(e,t)=>{const o=e._withMods||(e._withMods={}),n=t.join(".");return o[n]||(o[n]=(o,...n)=>{for(let e=0;eo.has(e.toLowerCase()):e=>o.has(e)}o.d(t,"a",(function(){return n})),o.d(t,"b",(function(){return r})),o.d(t,"c",(function(){return j})),o.d(t,"d",(function(){return w})),o.d(t,"e",(function(){return i})),o.d(t,"f",(function(){return _})),o.d(t,"g",(function(){return L})),o.d(t,"h",(function(){return x})),o.d(t,"i",(function(){return s})),o.d(t,"j",(function(){return u})),o.d(t,"k",(function(){return C})),o.d(t,"l",(function(){return P})),o.d(t,"m",(function(){return c})),o.d(t,"n",(function(){return v})),o.d(t,"o",(function(){return l})),o.d(t,"p",(function(){return k})),o.d(t,"q",(function(){return d})),o.d(t,"r",(function(){return T})),o.d(t,"s",(function(){return b})),o.d(t,"t",(function(){return y})),o.d(t,"u",(function(){return I})),o.d(t,"v",(function(){return D})),o.d(t,"w",(function(){return S})),o.d(t,"x",(function(){return A}));const n={},r=()=>{},l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith("onUpdate:"),i=Object.assign,s=(Object.prototype.hasOwnProperty,Array.isArray),d=e=>"[object Set]"===m(e),p=e=>"[object Date]"===m(e),u=e=>"function"==typeof e,b=e=>"string"==typeof e,y=e=>"symbol"==typeof e,v=e=>null!==e&&"object"==typeof e,f=Object.prototype.toString,m=e=>f.call(e),g=e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))},h=/-(\w)/g,j=g(e=>e.replace(h,(e,t)=>t?t.toUpperCase():"")),O=/\B([A-Z])/g,_=g(e=>e.replace(O,"-$1").toLowerCase()),w=g(e=>e.charAt(0).toUpperCase()+e.slice(1)),x=(g(e=>e?"on"+w(e):""),(e,...t)=>{for(let o=0;o{const t=parseFloat(e);return isNaN(t)?e:t},A=e=>{const t=b(e)?Number(e):NaN;return isNaN(t)?e:t};const C=a("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),k=a("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),P=a("annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics"),E="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",T=a(E);function L(e){return!!e||""===e}function I(e,t){if(e===t)return!0;let o=p(e),a=p(t);if(o||a)return!(!o||!a)&&e.getTime()===t.getTime();if(o=y(e),a=y(t),o||a)return e===t;if(o=s(e),a=s(t),o||a)return!(!o||!a)&&function(e,t){if(e.length!==t.length)return!1;let o=!0;for(let a=0;o&&aI(e,t))}}).call(this,o("./node_modules/webpack/buildin/global.js"))},"./node_modules/vue-loader/dist/exportHelper.js":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t)=>{const o=e.__vccOpts||e;for(const[e,a]of t)o[e]=a;return o}},"./node_modules/vue-router/dist/vue-router.mjs":function(e,t,o){"use strict";o.r(t),o.d(t,"NavigationFailureType",(function(){return $})),o.d(t,"RouterLink",(function(){return Ie})),o.d(t,"RouterView",(function(){return Ye})),o.d(t,"START_LOCATION",(function(){return X})),o.d(t,"createMemoryHistory",(function(){return J})),o.d(t,"createRouter",(function(){return Be})),o.d(t,"createRouterMatcher",(function(){return de})),o.d(t,"createWebHashHistory",(function(){return q})),o.d(t,"createWebHistory",(function(){return G})),o.d(t,"isNavigationFailure",(function(){return te})),o.d(t,"loadRouteLocation",(function(){return Te})),o.d(t,"matchedRouteKey",(function(){return je})),o.d(t,"onBeforeRouteLeave",(function(){return Ce})),o.d(t,"onBeforeRouteUpdate",(function(){return ke})),o.d(t,"parseQuery",(function(){return me})),o.d(t,"routeLocationKey",(function(){return we})),o.d(t,"routerKey",(function(){return _e})),o.d(t,"routerViewLocationKey",(function(){return xe})),o.d(t,"stringifyQuery",(function(){return ge})),o.d(t,"useLink",(function(){return Le})),o.d(t,"useRoute",(function(){return Ne})),o.d(t,"useRouter",(function(){return Re})),o.d(t,"viewDepthKey",(function(){return Oe}));var a=o("./node_modules/vue/dist/vue.runtime.esm-bundler.js"); +/*! + * vue-router v4.3.0 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */ +const n="undefined"!=typeof document;function r(e){return e.__esModule||"Module"===e[Symbol.toStringTag]}const l=Object.assign;function c(e,t){const o={};for(const a in t){const n=t[a];o[a]=s(n)?n.map(e):e(n)}return o}const i=()=>{},s=Array.isArray;const d=/#/g,p=/&/g,u=/\//g,b=/=/g,y=/\?/g,v=/\+/g,f=/%5B/g,m=/%5D/g,g=/%5E/g,h=/%60/g,j=/%7B/g,O=/%7C/g,_=/%7D/g,w=/%20/g;function x(e){return encodeURI(""+e).replace(O,"|").replace(f,"[").replace(m,"]")}function S(e){return x(e).replace(v,"%2B").replace(w,"+").replace(d,"%23").replace(p,"%26").replace(h,"`").replace(j,"{").replace(_,"}").replace(g,"^")}function A(e){return null==e?"":function(e){return x(e).replace(d,"%23").replace(y,"%3F")}(e).replace(u,"%2F")}function C(e){try{return decodeURIComponent(""+e)}catch(e){}return""+e}const k=/\/$/;function P(e,t,o="/"){let a,n={},r="",l="";const c=t.indexOf("#");let i=t.indexOf("?");return c=0&&(i=-1),i>-1&&(a=t.slice(0,i),r=t.slice(i+1,c>-1?c:t.length),n=e(r)),c>-1&&(a=a||t.slice(0,c),l=t.slice(c,t.length)),a=function(e,t){if(e.startsWith("/"))return e;0;if(!e)return t;const o=t.split("/"),a=e.split("/"),n=a[a.length-1];".."!==n&&"."!==n||a.push("");let r,l,c=o.length-1;for(r=0;r1&&c--}return o.slice(0,c).join("/")+"/"+a.slice(r).join("/")}(null!=a?a:t,o),{fullPath:a+(r&&"?")+r+l,path:a,query:n,hash:C(l)}}function E(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function T(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function L(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(!I(e[o],t[o]))return!1;return!0}function I(e,t){return s(e)?D(e,t):s(t)?D(t,e):e===t}function D(e,t){return s(t)?e.length===t.length&&e.every((e,o)=>e===t[o]):1===e.length&&e[0]===t}var V,H;!function(e){e.pop="pop",e.push="push"}(V||(V={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(H||(H={}));function Y(e){if(!e)if(n){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(k,"")}const B=/^[^#]+#/;function R(e,t){return e.replace(B,"#")+t}const N=()=>({left:window.scrollX,top:window.scrollY});function U(e){let t;if("el"in e){const o=e.el,a="string"==typeof o&&o.startsWith("#");0;const n="string"==typeof o?a?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!n)return;t=function(e,t){const o=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:t.behavior,left:a.left-o.left-(t.left||0),top:a.top-o.top-(t.top||0)}}(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function M(e,t){return(history.state?history.state.position-t:-1)+e}const z=new Map;let F=()=>location.protocol+"//"+location.host;function W(e,t){const{pathname:o,search:a,hash:n}=t,r=e.indexOf("#");if(r>-1){let t=n.includes(e.slice(r))?e.slice(r).length:1,o=n.slice(t);return"/"!==o[0]&&(o="/"+o),E(o,"")}return E(o,e)+a+n}function K(e,t,o,a=!1,n=!1){return{back:e,current:t,forward:o,replaced:a,position:window.history.length,scroll:n?N():null}}function G(e){const t=function(e){const{history:t,location:o}=window,a={value:W(e,o)},n={value:t.state};function r(a,r,l){const c=e.indexOf("#"),i=c>-1?(o.host&&document.querySelector("base")?e:e.slice(c))+a:F()+e+a;try{t[l?"replaceState":"pushState"](r,"",i),n.value=r}catch(e){console.error(e),o[l?"replace":"assign"](i)}}return n.value||r(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:a,state:n,push:function(e,o){const c=l({},n.value,t.state,{forward:e,scroll:N()});r(c.current,c,!0),r(e,l({},K(a.value,e,null),{position:c.position+1},o),!1),a.value=e},replace:function(e,o){r(e,l({},t.state,K(n.value.back,e,n.value.forward,!0),o,{position:n.value.position}),!0),a.value=e}}}(e=Y(e)),o=function(e,t,o,a){let n=[],r=[],c=null;const i=({state:r})=>{const l=W(e,location),i=o.value,s=t.value;let d=0;if(r){if(o.value=l,t.value=r,c&&c===i)return void(c=null);d=s?r.position-s.position:0}else a(l);n.forEach(e=>{e(o.value,i,{delta:d,type:V.pop,direction:d?d>0?H.forward:H.back:H.unknown})})};function s(){const{history:e}=window;e.state&&e.replaceState(l({},e.state,{scroll:N()}),"")}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",s,{passive:!0}),{pauseListeners:function(){c=o.value},listen:function(e){n.push(e);const t=()=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)};return r.push(t),t},destroy:function(){for(const e of r)e();r=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",s)}}}(e,t.state,t.location,t.replace);const a=l({location:"",base:e,go:function(e,t=!0){t||o.pauseListeners(),history.go(e)},createHref:R.bind(null,e)},t,o);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function J(e=""){let t=[],o=[""],a=0;function n(e){a++,a!==o.length&&o.splice(a),o.push(e)}const r={location:"",state:{},base:e=Y(e),createHref:R.bind(null,e),replace(e){o.splice(a--,1),n(e)},push(e,t){n(e)},listen:e=>(t.push(e),()=>{const o=t.indexOf(e);o>-1&&t.splice(o,1)}),destroy(){t=[],o=[""],a=0},go(e,n=!0){const r=this.location,l=e<0?H.back:H.forward;a=Math.max(0,Math.min(a+e,o.length-1)),n&&function(e,o,{direction:a,delta:n}){const r={direction:a,delta:n,type:V.pop};for(const a of t)a(e,o,r)}(this.location,r,{direction:l,delta:e})}};return Object.defineProperty(r,"location",{enumerable:!0,get:()=>o[a]}),r}function q(e){return(e=location.host?e||location.pathname+location.search:"").includes("#")||(e+="#"),G(e)}function Q(e){return"string"==typeof e||"symbol"==typeof e}const X={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Z=Symbol("");var $;!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}($||($={}));function ee(e,t){return l(new Error,{type:e,[Z]:!0},t)}function te(e,t){return e instanceof Error&&Z in e&&(null==t||!!(e.type&t))}const oe={sensitive:!1,strict:!1,start:!0,end:!0},ae=/[.+*?^${}()[\]/\\]/g;function ne(e,t){let o=0;for(;ot.length?1===t.length&&80===t[0]?1:-1:0}function re(e,t){let o=0;const a=e.score,n=t.score;for(;o0&&t[t.length-1]<0}const ce={type:0,value:""},ie=/[a-zA-Z0-9_]/;function se(e,t,o){const a=function(e,t){const o=l({},oe,t),a=[];let n=o.start?"^":"";const r=[];for(const t of e){const e=t.length?[]:[90];o.strict&&!t.length&&(n+="/");for(let a=0;a1&&("*"===c||"+"===c)&&t(`A repeatable param (${s}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:s,regexp:d,repeatable:"*"===c||"+"===c,optional:"*"===c||"?"===c})):t("Invalid state to consume buffer"),s="")}function u(){s+=c}for(;i{r(y)}:i}function r(e){if(Q(e)){const t=a.get(e);t&&(a.delete(e),o.splice(o.indexOf(t),1),t.children.forEach(r),t.alias.forEach(r))}else{const t=o.indexOf(e);t>-1&&(o.splice(t,1),e.record.name&&a.delete(e.record.name),e.children.forEach(r),e.alias.forEach(r))}}function c(e){let t=0;for(;t=0&&(e.record.path!==o[t].record.path||!fe(e,o[t]));)t++;o.splice(t,0,e),e.record.name&&!be(e)&&a.set(e.record.name,e)}return t=ve({strict:!1,end:!0,sensitive:!1},t),e.forEach(e=>n(e)),{addRoute:n,resolve:function(e,t){let n,r,c,i={};if("name"in e&&e.name){if(n=a.get(e.name),!n)throw ee(1,{location:e});0,c=n.record.name,i=l(pe(t.params,n.keys.filter(e=>!e.optional).concat(n.parent?n.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&pe(e.params,n.keys.map(e=>e.name))),r=n.stringify(i)}else if(null!=e.path)r=e.path,n=o.find(e=>e.re.test(r)),n&&(i=n.parse(r),c=n.record.name);else{if(n=t.name?a.get(t.name):o.find(e=>e.re.test(t.path)),!n)throw ee(1,{location:e,currentLocation:t});c=n.record.name,i=l({},t.params,e.params),r=n.stringify(i)}const s=[];let d=n;for(;d;)s.unshift(d.record),d=d.parent;return{name:c,path:r,params:i,matched:s,meta:ye(s)}},removeRoute:r,getRoutes:function(){return o},getRecordMatcher:function(e){return a.get(e)}}}function pe(e,t){const o={};for(const a of t)a in e&&(o[a]=e[a]);return o}function ue(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const a in e.components)t[a]="object"==typeof o?o[a]:o;return t}function be(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ye(e){return e.reduce((e,t)=>l(e,t.meta),{})}function ve(e,t){const o={};for(const a in e)o[a]=a in t?t[a]:e[a];return o}function fe(e,t){return t.children.some(t=>t===e||fe(e,t))}function me(e){const t={};if(""===e||"?"===e)return t;const o=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;ee&&S(e)):[a&&S(a)]).forEach(e=>{void 0!==e&&(t+=(t.length?"&":"")+o,null!=e&&(t+="="+e))})}return t}function he(e){const t={};for(const o in e){const a=e[o];void 0!==a&&(t[o]=s(a)?a.map(e=>null==e?null:""+e):null==a?a:""+a)}return t}const je=Symbol(""),Oe=Symbol(""),_e=Symbol(""),we=Symbol(""),xe=Symbol("");function Se(){let e=[];return{add:function(t){return e.push(t),()=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function Ae(e,t,o){const n=()=>{e[t].delete(o)};Object(a.s)(n),Object(a.r)(n),Object(a.q)(()=>{e[t].add(o)}),e[t].add(o)}function Ce(e){const t=Object(a.m)(je,{}).value;t&&Ae(t,"leaveGuards",e)}function ke(e){const t=Object(a.m)(je,{}).value;t&&Ae(t,"updateGuards",e)}function Pe(e,t,o,a,n,r=(e=>e())){const l=a&&(a.enterCallbacks[n]=a.enterCallbacks[n]||[]);return()=>new Promise((c,i)=>{const s=e=>{var r;!1===e?i(ee(4,{from:o,to:t})):e instanceof Error?i(e):"string"==typeof(r=e)||r&&"object"==typeof r?i(ee(2,{from:t,to:e})):(l&&a.enterCallbacks[n]===l&&"function"==typeof e&&l.push(e),c())},d=r(()=>e.call(a&&a.instances[n],t,o,s));let p=Promise.resolve(d);e.length<3&&(p=p.then(s)),p.catch(e=>i(e))})}function Ee(e,t,o,a,n=(e=>e())){const l=[];for(const i of e){0;for(const e in i.components){let s=i.components[e];if("beforeRouteEnter"===t||i.instances[e])if("object"==typeof(c=s)||"displayName"in c||"props"in c||"__vccOpts"in c){const r=(s.__vccOpts||s)[t];r&&l.push(Pe(r,o,a,i,e,n))}else{let c=s();0,l.push(()=>c.then(l=>{if(!l)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${i.path}"`));const c=r(l)?l.default:l;i.components[e]=c;const s=(c.__vccOpts||c)[t];return s&&Pe(s,o,a,i,e,n)()}))}}}var c;return l}function Te(e){return e.matched.every(e=>e.redirect)?Promise.reject(new Error("Cannot load a route that redirects.")):Promise.all(e.matched.map(e=>e.components&&Promise.all(Object.keys(e.components).reduce((t,o)=>{const a=e.components[o];return"function"!=typeof a||"displayName"in a||t.push(a().then(t=>{if(!t)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${e.path}". Ensure you passed a function that returns a promise.`));const a=r(t)?t.default:t;e.components[o]=a})),t},[])))).then(()=>e)}function Le(e){const t=Object(a.m)(_e),o=Object(a.m)(we),n=Object(a.c)(()=>t.resolve(Object(a.E)(e.to))),r=Object(a.c)(()=>{const{matched:e}=n.value,{length:t}=e,a=e[t-1],r=o.matched;if(!a||!r.length)return-1;const l=r.findIndex(T.bind(null,a));if(l>-1)return l;const c=De(e[t-2]);return t>1&&De(a)===c&&r[r.length-1].path!==c?r.findIndex(T.bind(null,e[t-2])):l}),l=Object(a.c)(()=>r.value>-1&&function(e,t){for(const o in t){const a=t[o],n=e[o];if("string"==typeof a){if(a!==n)return!1}else if(!s(n)||n.length!==a.length||a.some((e,t)=>e!==n[t]))return!1}return!0}(o.params,n.value.params)),c=Object(a.c)(()=>r.value>-1&&r.value===o.matched.length-1&&L(o.params,n.value.params));return{route:n,href:Object(a.c)(()=>n.value.href),isActive:l,isExactActive:c,navigate:function(o={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(o)?t[Object(a.E)(e.replace)?"replace":"push"](Object(a.E)(e.to)).catch(i):Promise.resolve()}}}const Ie=Object(a.j)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Le,setup(e,{slots:t}){const o=Object(a.v)(Le(e)),{options:n}=Object(a.m)(_e),r=Object(a.c)(()=>({[Ve(e.activeClass,n.linkActiveClass,"router-link-active")]:o.isActive,[Ve(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const n=t.default&&t.default(o);return e.custom?n:Object(a.l)("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:r.value},n)}}});function De(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ve=(e,t,o)=>null!=e?e:null!=t?t:o;function He(e,t){if(!e)return null;const o=e(t);return 1===o.length?o[0]:o}const Ye=Object(a.j)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const n=Object(a.m)(xe),r=Object(a.c)(()=>e.route||n.value),c=Object(a.m)(Oe,0),i=Object(a.c)(()=>{let e=Object(a.E)(c);const{matched:t}=r.value;let o;for(;(o=t[e])&&!o.components;)e++;return e}),s=Object(a.c)(()=>r.value.matched[i.value]);Object(a.u)(Oe,Object(a.c)(()=>i.value+1)),Object(a.u)(je,s),Object(a.u)(xe,r);const d=Object(a.w)();return Object(a.G)(()=>[d.value,s.value,e.name],([e,t,o],[a,n,r])=>{t&&(t.instances[o]=e,n&&n!==t&&e&&e===a&&(t.leaveGuards.size||(t.leaveGuards=n.leaveGuards),t.updateGuards.size||(t.updateGuards=n.updateGuards))),!e||!t||n&&T(t,n)&&a||(t.enterCallbacks[o]||[]).forEach(t=>t(e))},{flush:"post"}),()=>{const n=r.value,c=e.name,i=s.value,p=i&&i.components[c];if(!p)return He(o.default,{Component:p,route:n});const u=i.props[c],b=u?!0===u?n.params:"function"==typeof u?u(n):u:null,y=Object(a.l)(p,l({},b,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(i.instances[c]=null)},ref:d}));return He(o.default,{Component:y,route:n})||y}}});function Be(e){const t=de(e.routes,e),o=e.parseQuery||me,r=e.stringifyQuery||ge,d=e.history;const p=Se(),u=Se(),b=Se(),y=Object(a.C)(X);let v=X;n&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=c.bind(null,e=>""+e),m=c.bind(null,A),h=c.bind(null,C);function O(e,a){if(a=l({},a||y.value),"string"==typeof e){const n=P(o,e,a.path),r=t.resolve({path:n.path},a),c=d.createHref(n.fullPath);return l(n,r,{params:h(r.params),hash:C(n.hash),redirectedFrom:void 0,href:c})}let n;if(null!=e.path)n=l({},e,{path:P(o,e.path,a.path).path});else{const t=l({},e.params);for(const e in t)null==t[e]&&delete t[e];n=l({},e,{params:m(t)}),a.params=m(a.params)}const c=t.resolve(n,a),i=e.hash||"";c.params=f(h(c.params));const s=function(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}(r,l({},e,{hash:(p=i,x(p).replace(j,"{").replace(_,"}").replace(g,"^")),path:c.path}));var p;const u=d.createHref(s);return l({fullPath:s,hash:i,query:r===ge?he(e.query):e.query||{}},c,{redirectedFrom:void 0,href:u})}function w(e){return"string"==typeof e?P(o,e,y.value.path):l({},e)}function S(e,t){if(v!==e)return ee(8,{from:t,to:e})}function k(e){return I(e)}function E(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:o}=t;let a="function"==typeof o?o(e):o;return"string"==typeof a&&(a=a.includes("?")||a.includes("#")?a=w(a):{path:a},a.params={}),l({query:e.query,hash:e.hash,params:null!=a.path?{}:e.params},a)}}function I(e,t){const o=v=O(e),a=y.value,n=e.state,c=e.force,i=!0===e.replace,s=E(o);if(s)return I(l(w(s),{state:"object"==typeof s?l({},n,s.state):n,force:c,replace:i}),t||o);const d=o;let p;return d.redirectedFrom=t,!c&&function(e,t,o){const a=t.matched.length-1,n=o.matched.length-1;return a>-1&&a===n&&T(t.matched[a],o.matched[n])&&L(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}(r,a,o)&&(p=ee(16,{to:d,from:a}),$(a,a,!0,!1)),(p?Promise.resolve(p):Y(d,a)).catch(e=>te(e)?te(e,2)?e:Z(e):q(e,d,a)).then(e=>{if(e){if(te(e,2))return I(l({replace:i},w(e.to),{state:"object"==typeof e.to?l({},n,e.to.state):n,force:c}),t||d)}else e=R(d,a,!0,i,n);return B(d,a,e),e})}function D(e,t){const o=S(e,t);return o?Promise.reject(o):Promise.resolve()}function H(e){const t=ne.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function Y(e,t){let o;const[a,n,r]=function(e,t){const o=[],a=[],n=[],r=Math.max(t.matched.length,e.matched.length);for(let l=0;lT(e,r))?a.push(r):o.push(r));const c=e.matched[l];c&&(t.matched.find(e=>T(e,c))||n.push(c))}return[o,a,n]}(e,t);o=Ee(a.reverse(),"beforeRouteLeave",e,t);for(const n of a)n.leaveGuards.forEach(a=>{o.push(Pe(a,e,t))});const l=D.bind(null,e,t);return o.push(l),le(o).then(()=>{o=[];for(const a of p.list())o.push(Pe(a,e,t));return o.push(l),le(o)}).then(()=>{o=Ee(n,"beforeRouteUpdate",e,t);for(const a of n)a.updateGuards.forEach(a=>{o.push(Pe(a,e,t))});return o.push(l),le(o)}).then(()=>{o=[];for(const a of r)if(a.beforeEnter)if(s(a.beforeEnter))for(const n of a.beforeEnter)o.push(Pe(n,e,t));else o.push(Pe(a.beforeEnter,e,t));return o.push(l),le(o)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),o=Ee(r,"beforeRouteEnter",e,t,H),o.push(l),le(o))).then(()=>{o=[];for(const a of u.list())o.push(Pe(a,e,t));return o.push(l),le(o)}).catch(e=>te(e,8)?e:Promise.reject(e))}function B(e,t,o){b.list().forEach(a=>H(()=>a(e,t,o)))}function R(e,t,o,a,r){const c=S(e,t);if(c)return c;const i=t===X,s=n?history.state:{};o&&(a||i?d.replace(e.fullPath,l({scroll:i&&s&&s.scroll},r)):d.push(e.fullPath,r)),y.value=e,$(e,t,o,i),Z()}let F;function W(){F||(F=d.listen((e,t,o)=>{if(!re.listening)return;const a=O(e),r=E(a);if(r)return void I(l(r,{replace:!0}),a).catch(i);v=a;const c=y.value;var s,p;n&&(s=M(c.fullPath,o.delta),p=N(),z.set(s,p)),Y(a,c).catch(e=>te(e,12)?e:te(e,2)?(I(e.to,a).then(e=>{te(e,20)&&!o.delta&&o.type===V.pop&&d.go(-1,!1)}).catch(i),Promise.reject()):(o.delta&&d.go(-o.delta,!1),q(e,a,c))).then(e=>{(e=e||R(a,c,!1))&&(o.delta&&!te(e,8)?d.go(-o.delta,!1):o.type===V.pop&&te(e,20)&&d.go(-1,!1)),B(a,c,e)}).catch(i)}))}let K,G=Se(),J=Se();function q(e,t,o){Z(e);const a=J.list();return a.length?a.forEach(a=>a(e,t,o)):console.error(e),Promise.reject(e)}function Z(e){return K||(K=!e,W(),G.list().forEach(([t,o])=>e?o(e):t()),G.reset()),e}function $(t,o,r,l){const{scrollBehavior:c}=e;if(!n||!c)return Promise.resolve();const i=!r&&function(e){const t=z.get(e);return z.delete(e),t}(M(t.fullPath,0))||(l||!r)&&history.state&&history.state.scroll||null;return Object(a.n)().then(()=>c(t,o,i)).then(e=>e&&U(e)).catch(e=>q(e,t,o))}const oe=e=>d.go(e);let ae;const ne=new Set,re={currentRoute:y,listening:!0,addRoute:function(e,o){let a,n;return Q(e)?(a=t.getRecordMatcher(e),n=o):n=e,t.addRoute(n,a)},removeRoute:function(e){const o=t.getRecordMatcher(e);o&&t.removeRoute(o)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map(e=>e.record)},resolve:O,options:e,push:k,replace:function(e){return k(l(w(e),{replace:!0}))},go:oe,back:()=>oe(-1),forward:()=>oe(1),beforeEach:p.add,beforeResolve:u.add,afterEach:b.add,onError:J.add,isReady:function(){return K&&y.value!==X?Promise.resolve():new Promise((e,t)=>{G.add([e,t])})},install(e){e.component("RouterLink",Ie),e.component("RouterView",Ye),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Object(a.E)(y)}),n&&!ae&&y.value===X&&(ae=!0,k(d.location).catch(e=>{0}));const t={};for(const e in X)Object.defineProperty(t,e,{get:()=>y.value[e],enumerable:!0});e.provide(_e,this),e.provide(we,Object(a.B)(t)),e.provide(xe,y);const o=e.unmount;ne.add(e),e.unmount=function(){ne.delete(e),ne.size<1&&(v=X,F&&F(),F=null,y.value=X,ae=!1,K=!1),o()}}};function le(e){return e.reduce((e,t)=>e.then(()=>H(t)),Promise.resolve())}return re}function Re(){return Object(a.m)(_e)}function Ne(){return Object(a.m)(we)}},"./node_modules/vue/dist/vue.runtime.esm-bundler.js":function(e,t,o){"use strict";o.d(t,"v",(function(){return a.reactive})),o.d(t,"w",(function(){return a.ref})),o.d(t,"B",(function(){return a.shallowReactive})),o.d(t,"C",(function(){return a.shallowRef})),o.d(t,"E",(function(){return a.unref})),o.d(t,"o",(function(){return a.normalizeClass})),o.d(t,"p",(function(){return a.normalizeStyle})),o.d(t,"D",(function(){return a.toDisplayString})),o.d(t,"a",(function(){return a.Fragment})),o.d(t,"b",(function(){return a.KeepAlive})),o.d(t,"c",(function(){return a.computed})),o.d(t,"d",(function(){return a.createBlock})),o.d(t,"e",(function(){return a.createCommentVNode})),o.d(t,"f",(function(){return a.createElementBlock})),o.d(t,"g",(function(){return a.createElementVNode})),o.d(t,"h",(function(){return a.createTextVNode})),o.d(t,"i",(function(){return a.createVNode})),o.d(t,"j",(function(){return a.defineComponent})),o.d(t,"k",(function(){return a.getCurrentInstance})),o.d(t,"l",(function(){return a.h})),o.d(t,"m",(function(){return a.inject})),o.d(t,"n",(function(){return a.nextTick})),o.d(t,"q",(function(){return a.onActivated})),o.d(t,"r",(function(){return a.onDeactivated})),o.d(t,"s",(function(){return a.onUnmounted})),o.d(t,"t",(function(){return a.openBlock})),o.d(t,"u",(function(){return a.provide})),o.d(t,"x",(function(){return a.renderList})),o.d(t,"y",(function(){return a.renderSlot})),o.d(t,"z",(function(){return a.resolveComponent})),o.d(t,"A",(function(){return a.resolveDynamicComponent})),o.d(t,"G",(function(){return a.watch})),o.d(t,"H",(function(){return a.withCtx})),o.d(t,"I",(function(){return a.withDirectives})),o.d(t,"F",(function(){return w})),o.d(t,"J",(function(){return C}));var a=o("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),n=o("./node_modules/@vue/shared/dist/shared.esm-bundler.js"); /** -* @vue/shared v3.4.34 +* @vue/runtime-dom v3.4.32 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ +"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},i=(l.props=Object(n.e)({},a.BaseTransitionPropsValidators,c),(e,t=[])=>{Object(n.i)(e)?e.forEach(e=>e(...t)):e&&e(...t)}),s=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()},H=(e,t)=>{e._isLeaving=!1,b(e,O),b(e,w),b(e,_),t&&t()},Y=e=>(t,o)=>{const n=e?I:k,r=()=>V(t,e,o);i(n,[t,r]),y(()=>{b(t,e?m:l),u(t,e?h:v),s(n)||f(t,a,S,r)})};return Object(n.e)(t,{onBeforeEnter(e){i(C,[e]),u(e,l),u(e,d)},onBeforeAppear(e){i(L,[e]),u(e,m),u(e,g)},onEnter:Y(!1),onAppear:Y(!0),onLeave(e,t){e._isLeaving=!0;const o=()=>H(e,t);u(e,O),u(e,_),j(),y(()=>{e._isLeaving&&(b(e,O),u(e,w),s(E)||f(e,a,A,o))}),i(E,[e,o])},onEnterCancelled(e){V(e,!1),i(P,[e])},onAppearCancelled(e){V(e,!0),i(D,[e])},onLeaveCancelled(e){H(e),i(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:i}=m(e,t);if(!l)return a();const s=l+"end";let d=0;const p=()=>{e.removeEventListener(s,u),r()},u=t=>{t.target===e&&++d>=i&&p()};setTimeout(()=>{d(o[e]||"").split(", "),n=a("transitionDelay"),r=a("transitionDuration"),l=g(n,r),c=a("animationDelay"),i=a("animationDuration"),s=g(c,i);let d=null,p=0,u=0;"transition"===t?l>0&&(d="transition",p=l,u=r.length):"animation"===t?s>0&&(d="animation",p=s,u=i.length):(p=Math.max(l,s),d=p>0?l>s?"transition":"animation":null,u=d?"transition"===d?r.length:i.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__ */ -function n(e,t){const o=new Set(e.split(","));return t?e=>o.has(e.toLowerCase()):e=>o.has(e)}o.d(t,"a",(function(){return a})),o.d(t,"b",(function(){return c})),o.d(t,"c",(function(){return j})),o.d(t,"d",(function(){return A})),o.d(t,"e",(function(){return r})),o.d(t,"f",(function(){return w})),o.d(t,"g",(function(){return _})),o.d(t,"h",(function(){return C})),o.d(t,"i",(function(){return s})),o.d(t,"j",(function(){return b})),o.d(t,"k",(function(){return k})),o.d(t,"l",(function(){return D})),o.d(t,"m",(function(){return i})),o.d(t,"n",(function(){return p})),o.d(t,"o",(function(){return l})),o.d(t,"p",(function(){return T})),o.d(t,"q",(function(){return u})),o.d(t,"r",(function(){return E})),o.d(t,"s",(function(){return g})),o.d(t,"t",(function(){return f})),o.d(t,"u",(function(){return I})),o.d(t,"v",(function(){return B})),o.d(t,"w",(function(){return x})),o.d(t,"x",(function(){return S}));const a={},c=()=>{},l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),i=e=>e.startsWith("onUpdate:"),r=Object.assign,s=(Object.prototype.hasOwnProperty,Array.isArray),u=e=>"[object Set]"===h(e),d=e=>"[object Date]"===h(e),b=e=>"function"==typeof e,g=e=>"string"==typeof e,f=e=>"symbol"==typeof e,p=e=>null!==e&&"object"==typeof e,m=Object.prototype.toString,h=e=>m.call(e),v=e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))},O=/-(\w)/g,j=v(e=>e.replace(O,(e,t)=>t?t.toUpperCase():"")),y=/\B([A-Z])/g,w=v(e=>e.replace(y,"-$1").toLowerCase()),A=v(e=>e.charAt(0).toUpperCase()+e.slice(1)),C=(v(e=>e?"on"+A(e):""),(e,...t)=>{for(let o=0;o{const t=parseFloat(e);return isNaN(t)?e:t},S=e=>{const t=g(e)?Number(e):NaN;return isNaN(t)?e:t};const k=n("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),T=n("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),D=n("annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics"),P="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",E=n(P);function _(e){return!!e||""===e}function I(e,t){if(e===t)return!0;let o=d(e),n=d(t);if(o||n)return!(!o||!n)&&e.getTime()===t.getTime();if(o=f(e),n=f(t),o||n)return e===t;if(o=s(e),n=s(t),o||n)return!(!o||!n)&&function(e,t){if(e.length!==t.length)return!1;let o=!0;for(let n=0;o&&nI(e,t))}}).call(this,o(5))},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t)=>{const o=e.__vccOpts||e;for(const[e,n]of t)o[e]=n;return o}},function(e,t,o){e.exports=o(11)(5)},function(e,t,o){e.exports=o(11)(2)},function(e,t,o){"use strict";(function(e){o.d(t,"a",(function(){return r})),o.d(t,"b",(function(){return c})),o.d(t,"d",(function(){return a})),o.d(t,"c",(function(){return l})),o.d(t,"e",(function(){return i})),o.d(t,"f",(function(){return n})),o.d(t,"g",(function(){return u})),o.d(t,"h",(function(){return s})),o.d(t,"i",(function(){return d}));const n=t=>e.getTurboModule("demoTurbo").getString(t),a=t=>e.getTurboModule("demoTurbo").getNum(t),c=t=>e.getTurboModule("demoTurbo").getBoolean(t),l=t=>e.getTurboModule("demoTurbo").getMap(t),i=t=>e.getTurboModule("demoTurbo").getObject(t),r=t=>e.getTurboModule("demoTurbo").getArray(t),s=async t=>e.turboPromise(e.getTurboModule("demoTurbo").nativeWithPromise)(t),u=()=>e.getTurboModule("demoTurbo").getTurboConfig(),d=t=>e.getTurboModule("demoTurbo").printTurboConfig(t)}).call(this,o(5))},function(e,t,o){e.exports=o.p+"assets/defaultSource.jpg"},function(e,t,o){"use strict";let n;function a(e){n=e}function c(){return n}o.d(t,"b",(function(){return a})),o.d(t,"a",(function(){return c}))},function(e,t,o){"use strict";o.r(t),o.d(t,"NavigationFailureType",(function(){return $})),o.d(t,"RouterLink",(function(){return Ie})),o.d(t,"RouterView",(function(){return Ve})),o.d(t,"START_LOCATION",(function(){return R})),o.d(t,"createMemoryHistory",(function(){return q})),o.d(t,"createRouter",(function(){return He})),o.d(t,"createRouterMatcher",(function(){return ue})),o.d(t,"createWebHashHistory",(function(){return Q})),o.d(t,"createWebHistory",(function(){return J})),o.d(t,"isNavigationFailure",(function(){return te})),o.d(t,"loadRouteLocation",(function(){return Ee})),o.d(t,"matchedRouteKey",(function(){return je})),o.d(t,"onBeforeRouteLeave",(function(){return ke})),o.d(t,"onBeforeRouteUpdate",(function(){return Te})),o.d(t,"parseQuery",(function(){return he})),o.d(t,"routeLocationKey",(function(){return Ae})),o.d(t,"routerKey",(function(){return we})),o.d(t,"routerViewLocationKey",(function(){return Ce})),o.d(t,"stringifyQuery",(function(){return ve})),o.d(t,"useLink",(function(){return _e})),o.d(t,"useRoute",(function(){return Me})),o.d(t,"useRouter",(function(){return Ne})),o.d(t,"viewDepthKey",(function(){return ye}));var n=o(0); -/*! - * vue-router v4.4.0 - * (c) 2024 Eduardo San Martin Morote - * @license MIT - */ -const a="undefined"!=typeof document;function c(e){return e.__esModule||"Module"===e[Symbol.toStringTag]}const l=Object.assign;function i(e,t){const o={};for(const n in t){const a=t[n];o[n]=s(a)?a.map(e):e(a)}return o}const r=()=>{},s=Array.isArray;const u=/#/g,d=/&/g,b=/\//g,g=/=/g,f=/\?/g,p=/\+/g,m=/%5B/g,h=/%5D/g,v=/%5E/g,O=/%60/g,j=/%7B/g,y=/%7C/g,w=/%7D/g,A=/%20/g;function C(e){return encodeURI(""+e).replace(y,"|").replace(m,"[").replace(h,"]")}function x(e){return C(e).replace(p,"%2B").replace(A,"+").replace(u,"%23").replace(d,"%26").replace(O,"`").replace(j,"{").replace(w,"}").replace(v,"^")}function S(e){return null==e?"":function(e){return C(e).replace(u,"%23").replace(f,"%3F")}(e).replace(b,"%2F")}function k(e){try{return decodeURIComponent(""+e)}catch(e){}return""+e}const T=/\/$/;function D(e,t,o="/"){let n,a={},c="",l="";const i=t.indexOf("#");let r=t.indexOf("?");return i=0&&(r=-1),r>-1&&(n=t.slice(0,r),c=t.slice(r+1,i>-1?i:t.length),a=e(c)),i>-1&&(n=n||t.slice(0,i),l=t.slice(i,t.length)),n=function(e,t){if(e.startsWith("/"))return e;0;if(!e)return t;const o=t.split("/"),n=e.split("/"),a=n[n.length-1];".."!==a&&"."!==a||n.push("");let c,l,i=o.length-1;for(c=0;c1&&i--}return o.slice(0,i).join("/")+"/"+n.slice(c).join("/")}(null!=n?n:t,o),{fullPath:n+(c&&"?")+c+l,path:n,query:a,hash:k(l)}}function P(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function E(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function _(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(!I(e[o],t[o]))return!1;return!0}function I(e,t){return s(e)?B(e,t):s(t)?B(t,e):e===t}function B(e,t){return s(t)?e.length===t.length&&e.every((e,o)=>e===t[o]):1===e.length&&e[0]===t}const R={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var L,V;!function(e){e.pop="pop",e.push="push"}(L||(L={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(V||(V={}));function H(e){if(!e)if(a){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(T,"")}const N=/^[^#]+#/;function M(e,t){return e.replace(N,"#")+t}const z=()=>({left:window.scrollX,top:window.scrollY});function F(e){let t;if("el"in e){const o=e.el,n="string"==typeof o&&o.startsWith("#");0;const a="string"==typeof o?n?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!a)return;t=function(e,t){const o=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-o.left-(t.left||0),top:n.top-o.top-(t.top||0)}}(a,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function Y(e,t){return(history.state?history.state.position-t:-1)+e}const U=new Map;let W=()=>location.protocol+"//"+location.host;function G(e,t){const{pathname:o,search:n,hash:a}=t,c=e.indexOf("#");if(c>-1){let t=a.includes(e.slice(c))?e.slice(c).length:1,o=a.slice(t);return"/"!==o[0]&&(o="/"+o),P(o,"")}return P(o,e)+n+a}function K(e,t,o,n=!1,a=!1){return{back:e,current:t,forward:o,replaced:n,position:window.history.length,scroll:a?z():null}}function J(e){const t=function(e){const{history:t,location:o}=window,n={value:G(e,o)},a={value:t.state};function c(n,c,l){const i=e.indexOf("#"),r=i>-1?(o.host&&document.querySelector("base")?e:e.slice(i))+n:W()+e+n;try{t[l?"replaceState":"pushState"](c,"",r),a.value=c}catch(e){console.error(e),o[l?"replace":"assign"](r)}}return a.value||c(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:n,state:a,push:function(e,o){const i=l({},a.value,t.state,{forward:e,scroll:z()});c(i.current,i,!0),c(e,l({},K(n.value,e,null),{position:i.position+1},o),!1),n.value=e},replace:function(e,o){c(e,l({},t.state,K(a.value.back,e,a.value.forward,!0),o,{position:a.value.position}),!0),n.value=e}}}(e=H(e)),o=function(e,t,o,n){let a=[],c=[],i=null;const r=({state:c})=>{const l=G(e,location),r=o.value,s=t.value;let u=0;if(c){if(o.value=l,t.value=c,i&&i===r)return void(i=null);u=s?c.position-s.position:0}else n(l);a.forEach(e=>{e(o.value,r,{delta:u,type:L.pop,direction:u?u>0?V.forward:V.back:V.unknown})})};function s(){const{history:e}=window;e.state&&e.replaceState(l({},e.state,{scroll:z()}),"")}return window.addEventListener("popstate",r),window.addEventListener("beforeunload",s,{passive:!0}),{pauseListeners:function(){i=o.value},listen:function(e){a.push(e);const t=()=>{const t=a.indexOf(e);t>-1&&a.splice(t,1)};return c.push(t),t},destroy:function(){for(const e of c)e();c=[],window.removeEventListener("popstate",r),window.removeEventListener("beforeunload",s)}}}(e,t.state,t.location,t.replace);const n=l({location:"",base:e,go:function(e,t=!0){t||o.pauseListeners(),history.go(e)},createHref:M.bind(null,e)},t,o);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>t.state.value}),n}function q(e=""){let t=[],o=[""],n=0;function a(e){n++,n!==o.length&&o.splice(n),o.push(e)}const c={location:"",state:{},base:e=H(e),createHref:M.bind(null,e),replace(e){o.splice(n--,1),a(e)},push(e,t){a(e)},listen:e=>(t.push(e),()=>{const o=t.indexOf(e);o>-1&&t.splice(o,1)}),destroy(){t=[],o=[""],n=0},go(e,a=!0){const c=this.location,l=e<0?V.back:V.forward;n=Math.max(0,Math.min(n+e,o.length-1)),a&&function(e,o,{direction:n,delta:a}){const c={direction:n,delta:a,type:L.pop};for(const n of t)n(e,o,c)}(this.location,c,{direction:l,delta:e})}};return Object.defineProperty(c,"location",{enumerable:!0,get:()=>o[n]}),c}function Q(e){return(e=location.host?e||location.pathname+location.search:"").includes("#")||(e+="#"),J(e)}function X(e){return"string"==typeof e||"symbol"==typeof e}const Z=Symbol("");var $;!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}($||($={}));function ee(e,t){return l(new Error,{type:e,[Z]:!0},t)}function te(e,t){return e instanceof Error&&Z in e&&(null==t||!!(e.type&t))}const oe={sensitive:!1,strict:!1,start:!0,end:!0},ne=/[.+*?^${}()[\]/\\]/g;function ae(e,t){let o=0;for(;ot.length?1===t.length&&80===t[0]?1:-1:0}function ce(e,t){let o=0;const n=e.score,a=t.score;for(;o0&&t[t.length-1]<0}const ie={type:0,value:""},re=/[a-zA-Z0-9_]/;function se(e,t,o){const n=function(e,t){const o=l({},oe,t),n=[];let a=o.start?"^":"";const c=[];for(const t of e){const e=t.length?[]:[90];o.strict&&!t.length&&(a+="/");for(let n=0;n1&&("*"===i||"+"===i)&&t(`A repeatable param (${s}) must be alone in its segment. eg: '/:ids+.`),c.push({type:1,value:s,regexp:u,repeatable:"*"===i||"+"===i,optional:"*"===i||"?"===i})):t("Invalid state to consume buffer"),s="")}function b(){s+=i}for(;r{c(f)}:r}function c(e){if(X(e)){const t=n.get(e);t&&(n.delete(e),o.splice(o.indexOf(t),1),t.children.forEach(c),t.alias.forEach(c))}else{const t=o.indexOf(e);t>-1&&(o.splice(t,1),e.record.name&&n.delete(e.record.name),e.children.forEach(c),e.alias.forEach(c))}}function i(e){const t=function(e,t){let o=0,n=t.length;for(;o!==n;){const a=o+n>>1;ce(e,t[a])<0?n=a:o=a+1}const a=function(e){let t=e;for(;t=t.parent;)if(me(t)&&0===ce(e,t))return t;return}(e);a&&(n=t.lastIndexOf(a,n-1));return n}(e,o);o.splice(t,0,e),e.record.name&&!ge(e)&&n.set(e.record.name,e)}return t=pe({strict:!1,end:!0,sensitive:!1},t),e.forEach(e=>a(e)),{addRoute:a,resolve:function(e,t){let a,c,i,r={};if("name"in e&&e.name){if(a=n.get(e.name),!a)throw ee(1,{location:e});0,i=a.record.name,r=l(de(t.params,a.keys.filter(e=>!e.optional).concat(a.parent?a.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&de(e.params,a.keys.map(e=>e.name))),c=a.stringify(r)}else if(null!=e.path)c=e.path,a=o.find(e=>e.re.test(c)),a&&(r=a.parse(c),i=a.record.name);else{if(a=t.name?n.get(t.name):o.find(e=>e.re.test(t.path)),!a)throw ee(1,{location:e,currentLocation:t});i=a.record.name,r=l({},t.params,e.params),c=a.stringify(r)}const s=[];let u=a;for(;u;)s.unshift(u.record),u=u.parent;return{name:i,path:c,params:r,matched:s,meta:fe(s)}},removeRoute:c,clearRoutes:function(){o.length=0,n.clear()},getRoutes:function(){return o},getRecordMatcher:function(e){return n.get(e)}}}function de(e,t){const o={};for(const n of t)n in e&&(o[n]=e[n]);return o}function be(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const n in e.components)t[n]="object"==typeof o?o[n]:o;return t}function ge(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function fe(e){return e.reduce((e,t)=>l(e,t.meta),{})}function pe(e,t){const o={};for(const n in e)o[n]=n in t?t[n]:e[n];return o}function me({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function he(e){const t={};if(""===e||"?"===e)return t;const o=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;ee&&x(e)):[n&&x(n)]).forEach(e=>{void 0!==e&&(t+=(t.length?"&":"")+o,null!=e&&(t+="="+e))})}return t}function Oe(e){const t={};for(const o in e){const n=e[o];void 0!==n&&(t[o]=s(n)?n.map(e=>null==e?null:""+e):null==n?n:""+n)}return t}const je=Symbol(""),ye=Symbol(""),we=Symbol(""),Ae=Symbol(""),Ce=Symbol("");function xe(){let e=[];return{add:function(t){return e.push(t),()=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function Se(e,t,o){const a=()=>{e[t].delete(o)};Object(n.s)(a),Object(n.r)(a),Object(n.q)(()=>{e[t].add(o)}),e[t].add(o)}function ke(e){const t=Object(n.m)(je,{}).value;t&&Se(t,"leaveGuards",e)}function Te(e){const t=Object(n.m)(je,{}).value;t&&Se(t,"updateGuards",e)}function De(e,t,o,n,a,c=(e=>e())){const l=n&&(n.enterCallbacks[a]=n.enterCallbacks[a]||[]);return()=>new Promise((i,r)=>{const s=e=>{var c;!1===e?r(ee(4,{from:o,to:t})):e instanceof Error?r(e):"string"==typeof(c=e)||c&&"object"==typeof c?r(ee(2,{from:t,to:e})):(l&&n.enterCallbacks[a]===l&&"function"==typeof e&&l.push(e),i())},u=c(()=>e.call(n&&n.instances[a],t,o,s));let d=Promise.resolve(u);e.length<3&&(d=d.then(s)),d.catch(e=>r(e))})}function Pe(e,t,o,n,a=(e=>e())){const l=[];for(const r of e){0;for(const e in r.components){let s=r.components[e];if("beforeRouteEnter"===t||r.instances[e])if("object"==typeof(i=s)||"displayName"in i||"props"in i||"__vccOpts"in i){const c=(s.__vccOpts||s)[t];c&&l.push(De(c,o,n,r,e,a))}else{let i=s();0,l.push(()=>i.then(l=>{if(!l)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${r.path}"`));const i=c(l)?l.default:l;r.components[e]=i;const s=(i.__vccOpts||i)[t];return s&&De(s,o,n,r,e,a)()}))}}}var i;return l}function Ee(e){return e.matched.every(e=>e.redirect)?Promise.reject(new Error("Cannot load a route that redirects.")):Promise.all(e.matched.map(e=>e.components&&Promise.all(Object.keys(e.components).reduce((t,o)=>{const n=e.components[o];return"function"!=typeof n||"displayName"in n||t.push(n().then(t=>{if(!t)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${e.path}". Ensure you passed a function that returns a promise.`));const n=c(t)?t.default:t;e.components[o]=n})),t},[])))).then(()=>e)}function _e(e){const t=Object(n.m)(we),o=Object(n.m)(Ae);const a=Object(n.c)(()=>{const o=Object(n.E)(e.to);return t.resolve(o)}),c=Object(n.c)(()=>{const{matched:e}=a.value,{length:t}=e,n=e[t-1],c=o.matched;if(!n||!c.length)return-1;const l=c.findIndex(E.bind(null,n));if(l>-1)return l;const i=Be(e[t-2]);return t>1&&Be(n)===i&&c[c.length-1].path!==i?c.findIndex(E.bind(null,e[t-2])):l}),l=Object(n.c)(()=>c.value>-1&&function(e,t){for(const o in t){const n=t[o],a=e[o];if("string"==typeof n){if(n!==a)return!1}else if(!s(a)||a.length!==n.length||n.some((e,t)=>e!==a[t]))return!1}return!0}(o.params,a.value.params)),i=Object(n.c)(()=>c.value>-1&&c.value===o.matched.length-1&&_(o.params,a.value.params));return{route:a,href:Object(n.c)(()=>a.value.href),isActive:l,isExactActive:i,navigate:function(o={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(o)?t[Object(n.E)(e.replace)?"replace":"push"](Object(n.E)(e.to)).catch(r):Promise.resolve()}}}const Ie=Object(n.j)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:_e,setup(e,{slots:t}){const o=Object(n.v)(_e(e)),{options:a}=Object(n.m)(we),c=Object(n.c)(()=>({[Re(e.activeClass,a.linkActiveClass,"router-link-active")]:o.isActive,[Re(e.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const a=t.default&&t.default(o);return e.custom?a:Object(n.l)("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:c.value},a)}}});function Be(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Re=(e,t,o)=>null!=e?e:null!=t?t:o;function Le(e,t){if(!e)return null;const o=e(t);return 1===o.length?o[0]:o}const Ve=Object(n.j)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const a=Object(n.m)(Ce),c=Object(n.c)(()=>e.route||a.value),i=Object(n.m)(ye,0),r=Object(n.c)(()=>{let e=Object(n.E)(i);const{matched:t}=c.value;let o;for(;(o=t[e])&&!o.components;)e++;return e}),s=Object(n.c)(()=>c.value.matched[r.value]);Object(n.u)(ye,Object(n.c)(()=>r.value+1)),Object(n.u)(je,s),Object(n.u)(Ce,c);const u=Object(n.w)();return Object(n.G)(()=>[u.value,s.value,e.name],([e,t,o],[n,a,c])=>{t&&(t.instances[o]=e,a&&a!==t&&e&&e===n&&(t.leaveGuards.size||(t.leaveGuards=a.leaveGuards),t.updateGuards.size||(t.updateGuards=a.updateGuards))),!e||!t||a&&E(t,a)&&n||(t.enterCallbacks[o]||[]).forEach(t=>t(e))},{flush:"post"}),()=>{const a=c.value,i=e.name,r=s.value,d=r&&r.components[i];if(!d)return Le(o.default,{Component:d,route:a});const b=r.props[i],g=b?!0===b?a.params:"function"==typeof b?b(a):b:null,f=Object(n.l)(d,l({},g,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(r.instances[i]=null)},ref:u}));return Le(o.default,{Component:f,route:a})||f}}});function He(e){const t=ue(e.routes,e),o=e.parseQuery||he,c=e.stringifyQuery||ve,u=e.history;const d=xe(),b=xe(),g=xe(),f=Object(n.C)(R);let p=R;a&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const m=i.bind(null,e=>""+e),h=i.bind(null,S),O=i.bind(null,k);function y(e,n){if(n=l({},n||f.value),"string"==typeof e){const a=D(o,e,n.path),c=t.resolve({path:a.path},n),i=u.createHref(a.fullPath);return l(a,c,{params:O(c.params),hash:k(a.hash),redirectedFrom:void 0,href:i})}let a;if(null!=e.path)a=l({},e,{path:D(o,e.path,n.path).path});else{const t=l({},e.params);for(const e in t)null==t[e]&&delete t[e];a=l({},e,{params:h(t)}),n.params=h(n.params)}const i=t.resolve(a,n),r=e.hash||"";i.params=m(O(i.params));const s=function(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}(c,l({},e,{hash:(d=r,C(d).replace(j,"{").replace(w,"}").replace(v,"^")),path:i.path}));var d;const b=u.createHref(s);return l({fullPath:s,hash:r,query:c===ve?Oe(e.query):e.query||{}},i,{redirectedFrom:void 0,href:b})}function A(e){return"string"==typeof e?D(o,e,f.value.path):l({},e)}function x(e,t){if(p!==e)return ee(8,{from:t,to:e})}function T(e){return I(e)}function P(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:o}=t;let n="function"==typeof o?o(e):o;return"string"==typeof n&&(n=n.includes("?")||n.includes("#")?n=A(n):{path:n},n.params={}),l({query:e.query,hash:e.hash,params:null!=n.path?{}:e.params},n)}}function I(e,t){const o=p=y(e),n=f.value,a=e.state,i=e.force,r=!0===e.replace,s=P(o);if(s)return I(l(A(s),{state:"object"==typeof s?l({},a,s.state):a,force:i,replace:r}),t||o);const u=o;let d;return u.redirectedFrom=t,!i&&function(e,t,o){const n=t.matched.length-1,a=o.matched.length-1;return n>-1&&n===a&&E(t.matched[n],o.matched[a])&&_(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}(c,n,o)&&(d=ee(16,{to:u,from:n}),$(n,n,!0,!1)),(d?Promise.resolve(d):H(u,n)).catch(e=>te(e)?te(e,2)?e:Z(e):Q(e,u,n)).then(e=>{if(e){if(te(e,2))return I(l({replace:r},A(e.to),{state:"object"==typeof e.to?l({},a,e.to.state):a,force:i}),t||u)}else e=M(u,n,!0,r,a);return N(u,n,e),e})}function B(e,t){const o=x(e,t);return o?Promise.reject(o):Promise.resolve()}function V(e){const t=ae.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function H(e,t){let o;const[n,a,c]=function(e,t){const o=[],n=[],a=[],c=Math.max(t.matched.length,e.matched.length);for(let l=0;lE(e,c))?n.push(c):o.push(c));const i=e.matched[l];i&&(t.matched.find(e=>E(e,i))||a.push(i))}return[o,n,a]}(e,t);o=Pe(n.reverse(),"beforeRouteLeave",e,t);for(const a of n)a.leaveGuards.forEach(n=>{o.push(De(n,e,t))});const l=B.bind(null,e,t);return o.push(l),le(o).then(()=>{o=[];for(const n of d.list())o.push(De(n,e,t));return o.push(l),le(o)}).then(()=>{o=Pe(a,"beforeRouteUpdate",e,t);for(const n of a)n.updateGuards.forEach(n=>{o.push(De(n,e,t))});return o.push(l),le(o)}).then(()=>{o=[];for(const n of c)if(n.beforeEnter)if(s(n.beforeEnter))for(const a of n.beforeEnter)o.push(De(a,e,t));else o.push(De(n.beforeEnter,e,t));return o.push(l),le(o)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),o=Pe(c,"beforeRouteEnter",e,t,V),o.push(l),le(o))).then(()=>{o=[];for(const n of b.list())o.push(De(n,e,t));return o.push(l),le(o)}).catch(e=>te(e,8)?e:Promise.reject(e))}function N(e,t,o){g.list().forEach(n=>V(()=>n(e,t,o)))}function M(e,t,o,n,c){const i=x(e,t);if(i)return i;const r=t===R,s=a?history.state:{};o&&(n||r?u.replace(e.fullPath,l({scroll:r&&s&&s.scroll},c)):u.push(e.fullPath,c)),f.value=e,$(e,t,o,r),Z()}let W;function G(){W||(W=u.listen((e,t,o)=>{if(!ce.listening)return;const n=y(e),c=P(n);if(c)return void I(l(c,{replace:!0}),n).catch(r);p=n;const i=f.value;var s,d;a&&(s=Y(i.fullPath,o.delta),d=z(),U.set(s,d)),H(n,i).catch(e=>te(e,12)?e:te(e,2)?(I(e.to,n).then(e=>{te(e,20)&&!o.delta&&o.type===L.pop&&u.go(-1,!1)}).catch(r),Promise.reject()):(o.delta&&u.go(-o.delta,!1),Q(e,n,i))).then(e=>{(e=e||M(n,i,!1))&&(o.delta&&!te(e,8)?u.go(-o.delta,!1):o.type===L.pop&&te(e,20)&&u.go(-1,!1)),N(n,i,e)}).catch(r)}))}let K,J=xe(),q=xe();function Q(e,t,o){Z(e);const n=q.list();return n.length?n.forEach(n=>n(e,t,o)):console.error(e),Promise.reject(e)}function Z(e){return K||(K=!e,G(),J.list().forEach(([t,o])=>e?o(e):t()),J.reset()),e}function $(t,o,c,l){const{scrollBehavior:i}=e;if(!a||!i)return Promise.resolve();const r=!c&&function(e){const t=U.get(e);return U.delete(e),t}(Y(t.fullPath,0))||(l||!c)&&history.state&&history.state.scroll||null;return Object(n.n)().then(()=>i(t,o,r)).then(e=>e&&F(e)).catch(e=>Q(e,t,o))}const oe=e=>u.go(e);let ne;const ae=new Set,ce={currentRoute:f,listening:!0,addRoute:function(e,o){let n,a;return X(e)?(n=t.getRecordMatcher(e),a=o):a=e,t.addRoute(a,n)},removeRoute:function(e){const o=t.getRecordMatcher(e);o&&t.removeRoute(o)},clearRoutes:t.clearRoutes,hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map(e=>e.record)},resolve:y,options:e,push:T,replace:function(e){return T(l(A(e),{replace:!0}))},go:oe,back:()=>oe(-1),forward:()=>oe(1),beforeEach:d.add,beforeResolve:b.add,afterEach:g.add,onError:q.add,isReady:function(){return K&&f.value!==R?Promise.resolve():new Promise((e,t)=>{J.add([e,t])})},install(e){e.component("RouterLink",Ie),e.component("RouterView",Ve),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Object(n.E)(f)}),a&&!ne&&f.value===R&&(ne=!0,T(u.location).catch(e=>{0}));const t={};for(const e in R)Object.defineProperty(t,e,{get:()=>f.value[e],enumerable:!0});e.provide(we,this),e.provide(Ae,Object(n.B)(t)),e.provide(Ce,f);const o=e.unmount;ae.add(e),e.unmount=function(){ae.delete(e),ae.size<1&&(p=R,W&&W(),W=null,f.value=R,ne=!1,K=!1),o()}}};function le(e){return e.reduce((e,t)=>e.then(()=>V(t)),Promise.resolve())}return ce}function Ne(){return Object(n.m)(we)}function Me(e){return Object(n.m)(Ae)}},function(e,t,o){var n=o(51);e.exports=function(e,t,o){return(t=n(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=hippyVueBase},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["5aa12b",["#root"],[["flex",1],["backgroundColor",4294967295],["display","flex"],["flexDirection","column"]]],["5aa12b",["#header"],[["height",60],["backgroundColor",4282431619],["display","flex"],["flexDirection","row"],["alignItems","center"],["justifyContent","space-between"],["paddingHorizontal",10]]],["5aa12b",["#root .left-title"],[["display","flex"],["flexDirection","row"],["alignItems","center"],["justifyContent","flex-start"]]],["5aa12b",["#root #back-btn"],[["height",20],["width",24],["marginTop",18],["marginBottom",18]]],["5aa12b",["#root .body-container"],[["flex",1]]],["5aa12b",[".row"],[["flexDirection","row"]]],["5aa12b",[".column"],[["flexDirection","column"]]],["5aa12b",[".center"],[["justifyContent","center"],["alignContent","center"]]],["5aa12b",[".fullscreen"],[["flex",1]]],["5aa12b",[".row"],[["flexDirection","row"]]],["5aa12b",[".column"],[["flexDirection","column"]]],["5aa12b",[".center"],[["justifyContent","center"],["alignContent","center"]]],["5aa12b",[".fullscreen"],[["flex",1]]],["5aa12b",[".toolbar"],[["display","flex"],["height",40],["flexDirection","row"]]],["5aa12b",[".toolbar .toolbar-btn"],[["display","flex"],["flexDirection","column"],["flexGrow",1],["justifyContent","center"],["margin",3],["borderStyle","solid"],["borderColor",4278190335],["borderWidth",1]]],["5aa12b",[".toolbar .toolbar-btn p",".toolbar .toolbar-btn span"],[["justifyContent","center"],["textAlign","center"]]],["5aa12b",[".toolbar .toolbar-text"],[["lineHeight",40]]],["5aa12b",[".title"],[["fontSize",20],["lineHeight",60],["marginLeft",5],["marginRight",10],["fontWeight","bold"],["backgroundColor",4282431619],["color",4294967295]]],["5aa12b",[".feature-content"],[["backgroundColor",4294967295]]],["5aa12b",[".bottom-tabs"],[["height",48],["display","flex"],["flexDirection","row"],["alignItems","center"],["justifyContent","center"],["backgroundColor",4294967295],["borderTopWidth",1],["borderStyle","solid"],["borderTopColor",4293848814]]],["5aa12b",[".bottom-tab"],[["height",48],["flex",1],["fontSize",16],["color",4280558628],["display","flex"],["flexDirection","row"],["alignItems","center"],["justifyContent","center"]]],["5aa12b",[".bottom-tab.activated .bottom-tab-text"],[["color",4283210490]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["05bd57",[".button-label[data-v-05797918]"],[["width",220],["height",50],["marginTop",20],["textAlign","center"],["lineHeight",50],["marginBottom",20]]],["05bd57",[".button-demo[data-v-05797918]"],[["display","flex"],["alignItems","center"],["flexDirection","column"]]],["05bd57",[".button-demo-1[data-v-05797918]"],[["height",64],["width",240],["borderStyle","solid"],["borderColor",4282431619],["borderWidth",2],["borderRadius",10],["alignItems","center"]]],["05bd57",[".button-demo-1 .button-text[data-v-05797918]"],[["lineHeight",56],["textAlign","center"]]],["05bd57",[".button-demo-1-image[data-v-05797918]"],[["width",216],["height",58],["backgroundColor",4282431619],["marginTop",20]]]])))}).call(this,o(5))},function(e,t){function o(t){return e.exports=o="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.exports.__esModule=!0,e.exports.default=e.exports,o(t)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["ec719a",["#div-demo[data-v-fe0428e4]"],[["flex",1],["overflowY","scroll"],["margin",7]]],["ec719a",[".display-flex[data-v-fe0428e4]"],[["display","flex"]]],["ec719a",[".flex-row[data-v-fe0428e4]"],[["flexDirection","row"]]],["ec719a",[".flex-column[data-v-fe0428e4]"],[["flexDirection","column"]]],["ec719a",[".text-block[data-v-fe0428e4]"],[["width",100],["height",100],["lineHeight",100],["borderStyle","solid"],["borderWidth",1],["borderColor",4282431619],["fontSize",80],["margin",20],["color",4282431619],["textAlign","center"]]],["ec719a",[".div-demo-1-1[data-v-fe0428e4]"],[["display","flex"],["height",40],["width",200],["linearGradient",{angle:"30",colorStopList:[{ratio:.1,color:4278190335},{ratio:.4,color:4294967040},{ratio:.5,color:4294901760}]}],["borderWidth",2],["borderStyle","solid"],["borderColor",4278190080],["borderRadius",2],["justifyContent","center"],["alignItems","center"],["marginTop",10],["marginBottom",10]]],["ec719a",[".div-demo-1-text[data-v-fe0428e4]"],[["color",4294967295]]],["ec719a",[".div-demo-2[data-v-fe0428e4]"],[["overflowX","scroll"],["margin",10],["flexDirection","row"]]],["ec719a",[".div-demo-3[data-v-fe0428e4]"],[["width",150],["overflowY","scroll"],["margin",10],["height",320]]],["ec719a",[".div-demo-transform[data-v-fe0428e4]"],[["backgroundColor",4282431619],["transform",[{rotate:"30deg"},{scale:.5}]],["width",120],["height",120]]],["ec719a",[".div-demo-transform-text[data-v-fe0428e4]"],[["lineHeight",120],["height",120],["width",120],["textAlign","center"]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["00af4b",[".async-component-outer-local[data-v-0fa9b63f]"],[["height",200],["width",300]]],["00af4b",["#demo-dynamicimport[data-v-0fa9b63f]"],[["flex",1],["display","flex"],["alignItems","center"],["flexDirection","column"],["backgroundColor",4294967295]]],["00af4b",[".import-btn[data-v-0fa9b63f]"],[["marginTop",20],["width",130],["height",40],["textAlign","center"],["backgroundColor",4282431619],["flexDirection","row"],["borderRadius",5],["justifyContent","center"]]],["00af4b",[".import-btn p[data-v-0fa9b63f]"],[["color",4278190080],["textAlign","center"],["height",40],["lineHeight",40]]],["00af4b",[".async-com-wrapper[data-v-0fa9b63f]"],[["marginTop",20]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["0db5bf",["#iframe-demo"],[["display","flex"],["flex",1],["flexDirection","column"],["margin",7]]],["0db5bf",["#iframe-demo #address"],[["height",48],["borderColor",4291611852],["borderWidth",1],["borderStyle","solid"]]],["0db5bf",["#iframe-demo #iframe"],[["flex",1],["flexGrow",1]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["d38885",["#demo-img[data-v-25c66a4a]"],[["overflowY","scroll"],["flex",1],["margin",7]]],["d38885",["#demo-img #demo-img-container[data-v-25c66a4a]"],[["display","flex"],["flexDirection","column"]]],["d38885",["#demo-img .image[data-v-25c66a4a]"],[["width",300],["height",180],["margin",30],["borderWidth",1],["borderStyle","solid"],["borderColor",4282431619]]],["d38885",["#demo-img .img-result[data-v-25c66a4a]"],[["width",300],["height",150],["marginTop",-30],["marginHorizontal",30],["borderWidth",1],["borderStyle","solid"],["borderColor",4282431619]]],["d38885",["#demo-img .contain[data-v-25c66a4a]"],[["resizeMode","contain"]]],["d38885",["#demo-img .cover[data-v-25c66a4a]"],[["resizeMode","cover"]]],["d38885",["#demo-img .center[data-v-25c66a4a]"],[["resizeMode","center"]]],["d38885",["#demo-img .tint-color[data-v-25c66a4a]"],[["tintColor",2571155587]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["939ddb",[".demo-input[data-v-ebfef7c0]"],[["display","flex"],["flex",1],["alignItems","center"],["flexDirection","column"],["margin",7]]],["939ddb",[".demo-input .input[data-v-ebfef7c0]"],[["width",300],["height",48],["color",4280558628],["borderWidth",1],["borderStyle","solid"],["borderColor",4291611852],["fontSize",16],["margin",20]]],["939ddb",[".demo-input .input-button[data-v-ebfef7c0]"],[["borderColor",4283210490],["borderWidth",1],["borderStyle","solid"],["paddingLeft",10],["paddingRight",10],["marginTop",5],["marginBottom",5]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["11992c",["#demo-list[data-v-75193fb0]"],[["collapsable",!1],["flex",1]]],["11992c",["#demo-list #loading[data-v-75193fb0]"],[["fontSize",11],["color",4289374890],["alignSelf","center"]]],["11992c",["#demo-list .container[data-v-75193fb0]"],[["backgroundColor",4294967295],["collapsable",!1]]],["11992c",["#demo-list .item-container[data-v-75193fb0]"],[["padding",12]]],["11992c",["#demo-list .separator-line[data-v-75193fb0]"],[["marginLeft",12],["marginRight",12],["height",1],["backgroundColor",4293256677]]],["11992c",["#demo-list .item-horizontal-style[data-v-75193fb0]"],[["height",50],["width",100]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["b88068",[".p-demo[data-v-34e2123c]"],[["margin",7],["overflowY","scroll"],["flex",1],["flexDirection","column"]]],["b88068",[".p-demo .p-demo-content[data-v-34e2123c]"],[["margin",20]]],["b88068",[".p-demo .p-demo-content-status[data-v-34e2123c]"],[["marginLeft",20],["marginRight",20],["marginBottom",10]]],["b88068",[".p-demo .p-demo-1[data-v-34e2123c]"],[["color",4294199351]]],["b88068",[".p-demo .p-demo-2[data-v-34e2123c]"],[["fontSize",30]]],["b88068",[".p-demo .p-demo-3[data-v-34e2123c]"],[["fontWeight","bold"]]],["b88068",[".p-demo .p-demo-4[data-v-34e2123c]"],[["textDecorationLine","underline"],["textDecorationStyle","dotted"]]],["b88068",[".p-demo .p-demo-5[data-v-34e2123c]"],[["textDecorationLine","line-through"],["textDecorationColor",4294901760]]],["b88068",[".p-demo .p-demo-6[data-v-34e2123c]"],[["color",4278211289],["fontFamily","TTTGB"],["fontSize",32]]],["b88068",[".p-demo .p-demo-8[data-v-34e2123c]"],[["letterSpacing",-1]]],["b88068",[".p-demo .p-demo-9[data-v-34e2123c]"],[["letterSpacing",5]]],["b88068",[".p-demo .button-bar[data-v-34e2123c]"],[["flexDirection","row"]]],["b88068",[".p-demo .button[data-v-34e2123c]"],[["width",100],["margin",2],["backgroundColor",4293848814],["borderStyle","solid"],["borderColor",4278190080],["borderWidth",1],["alignItems","center"],["flexShrink",1]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["a451bc",["#shadow-demo[data-v-19ab3f2d]"],[["flex",1]]],["a451bc",["#shadow-demo .no-offset-shadow-demo-cube-android[data-v-19ab3f2d]"],[["position","absolute"],["left",50],["top",50],["width",170],["height",170],["shadowOpacity",.6],["shadowRadius",5],["shadowColor",4278815273],["borderRadius",5]]],["a451bc",["#shadow-demo .no-offset-shadow-demo-content-android[data-v-19ab3f2d]"],[["position","absolute"],["left",5],["top",5],["width",160],["height",160],["backgroundColor",4286611584],["borderRadius",5],["display","flex"],["justifyContent","center"],["alignItems","center"]]],["a451bc",["#shadow-demo .no-offset-shadow-demo-content-android p[data-v-19ab3f2d]"],[["color",4294967295]]],["a451bc",["#shadow-demo .no-offset-shadow-demo-cube-ios[data-v-19ab3f2d]"],[["position","absolute"],["left",50],["top",50],["width",160],["height",160],["shadowOpacity",.6],["shadowRadius",5],["shadowSpread",1],["shadowColor",4278815273],["borderRadius",5]]],["a451bc",["#shadow-demo .no-offset-shadow-demo-content-ios[data-v-19ab3f2d]"],[["width",160],["height",160],["backgroundColor",4286611584],["borderRadius",5],["color",4294967295],["display","flex"],["justifyContent","center"],["alignItems","center"]]],["a451bc",["#shadow-demo .no-offset-shadow-demo-content-ios p[data-v-19ab3f2d]"],[["color",4294967295]]],["a451bc",["#shadow-demo .offset-shadow-demo-cube-android[data-v-19ab3f2d]"],[["position","absolute"],["left",50],["top",300],["width",175],["height",175],["shadowOpacity",.6],["shadowRadius",5],["shadowColor",4278815273],["shadowOffset",{x:15,y:15}]]],["a451bc",["#shadow-demo .offset-shadow-demo-content-android[data-v-19ab3f2d]"],[["width",160],["height",160],["backgroundColor",4286611584],["display","flex"],["justifyContent","center"],["alignItems","center"]]],["a451bc",["#shadow-demo .offset-shadow-demo-content-android p[data-v-19ab3f2d]"],[["color",4294967295]]],["a451bc",["#shadow-demo .offset-shadow-demo-cube-ios[data-v-19ab3f2d]"],[["position","absolute"],["left",50],["top",300],["width",160],["height",160],["shadowOpacity",.6],["shadowRadius",5],["shadowSpread",1],["shadowOffset",{x:10,y:10}],["shadowColor",4278815273]]],["a451bc",["#shadow-demo .offset-shadow-demo-content-ios[data-v-19ab3f2d]"],[["width",160],["height",160],["backgroundColor",4286611584],["justifyContent","center"],["alignItems","center"]]],["a451bc",["#shadow-demo .offset-shadow-demo-content-ios p[data-v-19ab3f2d]"],[["color",4294967295]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["42d8d9",["#demo-textarea[data-v-6d6167b3]"],[["display","flex"],["alignItems","center"],["flexDirection","column"],["margin",7]]],["42d8d9",["#demo-textarea label[data-v-6d6167b3]"],[["alignSelf","flex-start"],["fontWeight","bold"],["marginTop",5],["marginBottom",5]]],["42d8d9",["#demo-textarea .textarea[data-v-6d6167b3]"],[["width",300],["height",150],["color",4280558628],["textAlign","left"],["borderWidth",1],["borderStyle","solid"],["borderColor",4291611852],["underlineColorAndroid",4282431619],["placeholderTextColor",4284900966],["alignSelf","center"]]],["42d8d9",["#demo-textarea .output[data-v-6d6167b3]"],[["wordBreak","break-all"]]],["42d8d9",["#demo-textarea .button-bar[data-v-6d6167b3]"],[["flexDirection","row"]]],["42d8d9",["#demo-textarea .button[data-v-6d6167b3]"],[["width",100],["margin",2],["backgroundColor",4293848814],["borderStyle","solid"],["borderColor",4278190080],["borderWidth",1],["alignItems","center"],["flexShrink",1]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["dc3da6",[".demo-turbo"],[["flex",1],["display","flex"],["flexDirection","column"]]],["dc3da6",[".demo-turbo .cell .contentView"],[["flexDirection","row"],["justifyContent","space-between"],["backgroundColor",4291611852],["marginBottom",1]]],["dc3da6",[".demo-turbo .func-info"],[["justifyContent","center"],["paddingLeft",15],["paddingRight",15]]],["dc3da6",[".demo-turbo .action-button"],[["backgroundColor",4283210490],["color",4294967295],["height",44],["lineHeight",44],["textAlign","center"],["width",80],["borderRadius",6]]],["dc3da6",[".demo-turbo .result"],[["backgroundColor",4287609999],["minHeight",150],["padding",15]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["4f5975",["#websocket-demo .demo-title[data-v-99a0fc74]"],[["color",4291611852]]],["4f5975",["#websocket-demo .output[data-v-99a0fc74]"],[["overflowY","scroll"]]],["4f5975",["#websocket-demo button[data-v-99a0fc74]"],[["backgroundColor",4282431619],["borderColor",4284328955],["borderStyle","solid"],["borderWidth",1],["paddingHorizontal",20],["fontSize",16],["color",4294967295],["margin",10]]],["4f5975",["#websocket-demo button span[data-v-99a0fc74]"],[["height",56],["lineHeight",56]]],["4f5975",["#websocket-demo input[data-v-99a0fc74]"],[["color",4278190080],["flex",1],["height",36],["lineHeight",36],["fontSize",14],["borderBottomColor",4282431619],["borderBottomWidth",1],["borderStyle","solid"],["padding",0]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["7b11e6",[".set-native-props-demo[data-v-4521f010]"],[["display","flex"],["alignItems","center"],["position","relative"]]],["7b11e6",[".native-demo-1-drag[data-v-4521f010]"],[["height",80],["backgroundColor",4282431619],["position","relative"],["marginTop",10]]],["7b11e6",[".native-demo-1-point[data-v-4521f010]"],[["height",80],["width",80],["color",4282445460],["backgroundColor",4282445460],["position","absolute"],["left",0]]],["7b11e6",[".native-demo-2-drag[data-v-4521f010]"],[["height",80],["backgroundColor",4282431619],["position","relative"],["marginTop",10]]],["7b11e6",[".native-demo-2-point[data-v-4521f010]"],[["height",80],["width",80],["color",4282445460],["backgroundColor",4282445460],["position","absolute"],["left",0]]],["7b11e6",[".splitter[data-v-4521f010]"],[["marginTop",50]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["698a9e",[".color-green[data-v-35b77823]"],[["marginTop",10],["justifyContent","center"],["alignItems","center"],["backgroundColor",4282431619],["width",200],["height",80],["marginLeft",5]]],["698a9e",[".color-white[data-v-35b77823]"],[["justifyContent","center"],["alignItems","center"],["backgroundColor",4294967295],["width",100],["height",35]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["75284e",[".loop-green[data-v-0ffc52dc]"],[["marginTop",10],["justifyContent","center"],["alignItems","center"],["backgroundColor",4282431619],["width",200],["height",80]]],["75284e",[".loop-white[data-v-0ffc52dc]"],[["justifyContent","center"],["alignItems","center"],["backgroundColor",4294967295],["width",160],["height",50]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["64f5ce",[".loop-green[data-v-54047ca5]"],[["marginTop",10],["justifyContent","center"],["alignItems","center"],["backgroundColor",4282431619],["width",200],["height",80]]],["64f5ce",[".loop-white[data-v-54047ca5]"],[["justifyContent","center"],["alignItems","center"],["backgroundColor",4294967295],["width",160],["height",50]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["d1531b",[".vote-face[data-v-7020ef76]"],[["width",40],["height",40],["backgroundColor",4294957824],["borderColor",4293505366],["borderWidth",1],["borderStyle","solid"],["borderRadius",20]]],["d1531b",[".vote-down-face[data-v-7020ef76]"],[["position","absolute"],["top",15],["left",16],["width",18],["height",18],["resizeMode","stretch"]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["f611de",[".vote-face[data-v-0dd85e5f]"],[["width",40],["height",40],["backgroundColor",4294957824],["borderColor",4293505366],["borderWidth",1],["borderStyle","solid"],["borderRadius",20]]],["f611de",[".vote-up-eye[data-v-0dd85e5f]"],[["position","absolute"],["top",16],["left",16],["width",18],["height",4]]],["f611de",[".vote-up-mouth[data-v-0dd85e5f]"],[["position","absolute"],["bottom",9],["left",9],["width",32],["height",16]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["200f62",["#animation-demo[data-v-4fa3f0c0]"],[["overflow","scroll"],["margin",7]]],["200f62",["#animation-demo .vote-icon[data-v-4fa3f0c0]"],[["width",50],["height",50],["marginRight",10],["alignItems","center"],["justifyContent","center"]]],["200f62",["#animation-demo .vote-face-container[data-v-4fa3f0c0]"],[["height",60]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["de55d0",["#dialog-demo[data-v-58c0fb99]"],[["display","flex"],["alignItems","center"],["flexDirection","column"],["flex",1],["margin",7]]],["de55d0",[".dialog-demo-button-1[data-v-58c0fb99]"],[["height",64],["width",200],["borderStyle","solid"],["borderColor",4282431619],["borderWidth",2],["borderRadius",10],["alignItems","center"],["marginTop",10]]],["de55d0",[".dialog-demo-button-1 .button-text[data-v-58c0fb99]"],[["lineHeight",56],["textAlign","center"]]],["de55d0",[".dialog-demo-button-2[data-v-58c0fb99]"],[["height",64],["width",200],["borderStyle","solid"],["borderColor",4294967295],["borderWidth",2],["borderRadius",10],["alignItems","center"],["marginTop",10]]],["de55d0",[".dialog-demo-button-2 .button-text[data-v-58c0fb99]"],[["lineHeight",56],["textAlign","center"]]],["de55d0",[".dialog-demo-wrapper[data-v-58c0fb99]"],[["flex",1],["backgroundColor",2000730243]]],["de55d0",[".dialog-2-demo-wrapper[data-v-58c0fb99]"],[["flex",1],["backgroundColor",3997451332],["justifyContent","center"],["alignItems","center"]]],["de55d0",[".dialog-demo-close-btn[data-v-58c0fb99]"],[["width",210],["height",200],["marginTop",300],["backgroundColor",4282431619],["justifyContent","center"],["alignItems","center"]]],["de55d0",[".dialog-demo-close-btn-text[data-v-58c0fb99]"],[["width",200],["fontSize",22],["lineHeight",40],["flexDirection","column"],["textAlign","center"]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["3bc20c",["#demo-vue-native[data-v-2aae558d]"],[["flex",1],["padding",12],["overflowY","scroll"]]],["3bc20c",[".native-block[data-v-2aae558d]"],[["marginTop",15],["marginBottom",15]]],["3bc20c",[".native-block p[data-v-2aae558d]"],[["marginVertical",5]]],["3bc20c",[".vue-native-title[data-v-2aae558d]"],[["textDecorationLine","underline"],["color",4282431619]]],["3bc20c",[".event-btn[data-v-2aae558d]"],[["backgroundColor",4282431619],["flex",1],["flexDirection","column"],["width",120],["height",40],["justifyContent","center"],["alignItems","center"],["borderRadius",3],["marginBottom",5],["marginTop",5]]],["3bc20c",[".event-btn-result[data-v-2aae558d]"],[["flex",1],["flexDirection","column"]]],["3bc20c",[".event-btn .event-btn-text[data-v-2aae558d]"],[["color",4294967295]]],["3bc20c",[".item-wrapper[data-v-2aae558d]"],[["display","flex"],["justifyContent","flex-start"],["flexDirection","row"],["alignItems","center"]]],["3bc20c",[".item-button[data-v-2aae558d]"],[["width",80],["height",40],["backgroundColor",4282431619],["borderRadius",3],["marginBottom",5],["marginTop",5],["display","flex"],["justifyContent","center"],["alignItems","center"],["marginRight",10]]],["3bc20c",[".item-button span[data-v-2aae558d]"],[["color",4294967295],["textAlign","center"]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["bfeca0",["#demo-pull-header-footer[data-v-52ecb6dc]"],[["flex",1],["padding",12]]],["bfeca0",["#demo-pull-header-footer .ul-refresh[data-v-52ecb6dc]"],[["backgroundColor",4282431619]]],["bfeca0",["#demo-pull-header-footer .ul-refresh-text[data-v-52ecb6dc]"],[["color",4294967295],["height",50],["lineHeight",50],["textAlign","center"]]],["bfeca0",["#demo-pull-header-footer .pull-footer[data-v-52ecb6dc]"],[["backgroundColor",4282431619],["height",40]]],["bfeca0",["#demo-pull-header-footer .pull-footer-text[data-v-52ecb6dc]"],[["color",4294967295],["lineHeight",40],["textAlign","center"]]],["bfeca0",["#demo-pull-header-footer #list[data-v-52ecb6dc]"],[["flex",1],["backgroundColor",4294967295]]],["bfeca0",["#demo-pull-header-footer .item-style[data-v-52ecb6dc]"],[["backgroundColor",4294967295],["paddingTop",12],["paddingBottom",12],["borderBottomWidth",1],["borderBottomColor",4293256677],["borderStyle","solid"]]],["bfeca0",["[specital-attr='pull-header-footer'][data-v-52ecb6dc] .article-title"],[["fontSize",17],["lineHeight",24],["color",4280558628]]],["bfeca0",["[specital-attr='pull-header-footer'][data-v-52ecb6dc] .normal-text"],[["fontSize",11],["color",4289374890],["alignSelf","center"]]],["bfeca0",["[specital-attr='pull-header-footer'][data-v-52ecb6dc] .image"],[["flex",1],["height",160],["resizeMode","cover"]]],["bfeca0",["[specital-attr='pull-header-footer'][data-v-52ecb6dc] .style-one-image-container"],[["flexDirection","row"],["justifyContent","center"],["marginTop",8],["flex",1]]],["bfeca0",["[specital-attr='pull-header-footer'][data-v-52ecb6dc] .style-one-image"],[["height",120]]],["bfeca0",["[specital-attr='pull-header-footer'][data-v-52ecb6dc] .style-two"],[["flexDirection","row"],["justifyContent","space-between"]]],["bfeca0",["[specital-attr='pull-header-footer'][data-v-52ecb6dc] .style-two-left-container"],[["flex",1],["flexDirection","column"],["justifyContent","center"],["marginRight",8]]],["bfeca0",["[specital-attr='pull-header-footer'][data-v-52ecb6dc] .style-two-image-container"],[["flex",1]]],["bfeca0",["[specital-attr='pull-header-footer'][data-v-52ecb6dc] .style-two-image"],[["height",140]]],["bfeca0",["[specital-attr='pull-header-footer'][data-v-52ecb6dc] .style-five-image-container"],[["flexDirection","row"],["justifyContent","center"],["marginTop",8],["flex",1]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["59dea1",["#demo-swiper"],[["flex",1]]],["59dea1",["#demo-swiper #swiper"],[["flex",1],["height",400]]],["59dea1",["#demo-swiper #swiper-dots"],[["flexDirection","row"],["alignItems","center"],["justifyContent","center"],["height",40]]],["59dea1",["#demo-swiper .dot"],[["width",10],["height",10],["borderRadius",5],["backgroundColor",4289309097],["marginLeft",5],["marginRight",5]]],["59dea1",["#demo-swiper .dot.hightlight"],[["backgroundColor",4281519410]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["db9dc8",["#demo-waterfall[data-v-056a0bc2]"],[["flex",1]]],["db9dc8",["#demo-waterfall .ul-refresh[data-v-056a0bc2]"],[["backgroundColor",4282431619]]],["db9dc8",["#demo-waterfall .ul-refresh-text[data-v-056a0bc2]"],[["color",4294967295],["height",50],["lineHeight",50],["textAlign","center"]]],["db9dc8",["#demo-waterfall .pull-footer[data-v-056a0bc2]"],[["backgroundColor",4282431619],["height",40]]],["db9dc8",["#demo-waterfall .pull-footer-text[data-v-056a0bc2]"],[["color",4294967295],["lineHeight",40],["textAlign","center"]]],["db9dc8",["#demo-waterfall .refresh-text[data-v-056a0bc2]"],[["height",40],["lineHeight",40],["textAlign","center"],["color",4294967295]]],["db9dc8",["#demo-waterfall .banner-view[data-v-056a0bc2]"],[["backgroundColor",4286611584],["height",100],["display","flex"],["justifyContent","center"],["alignItems","center"]]],["db9dc8",["#demo-waterfall .pull-footer[data-v-056a0bc2]"],[["flex",1],["height",40],["backgroundColor",4282431619],["justifyContent","center"],["alignItems","center"]]],["db9dc8",["#demo-waterfall[data-v-056a0bc2] .list-view-item"],[["backgroundColor",4293848814]]],["db9dc8",["#demo-waterfall[data-v-056a0bc2] .article-title"],[["fontSize",12],["lineHeight",16],["color",4280558628]]],["db9dc8",["#demo-waterfall[data-v-056a0bc2] .normal-text"],[["fontSize",10],["color",4289374890],["alignSelf","center"]]],["db9dc8",["#demo-waterfall[data-v-056a0bc2] .image"],[["flex",1],["height",120],["resize","both"]]],["db9dc8",["#demo-waterfall[data-v-056a0bc2] .style-one-image-container"],[["flexDirection","row"],["justifyContent","center"],["marginTop",8],["flex",1]]],["db9dc8",["#demo-waterfall[data-v-056a0bc2] .style-one-image"],[["height",60]]],["db9dc8",["#demo-waterfall[data-v-056a0bc2] .style-two"],[["flexDirection","row"],["justifyContent","space-between"]]],["db9dc8",["#demo-waterfall[data-v-056a0bc2] .style-two-left-container"],[["flex",1],["flexDirection","column"],["justifyContent","center"],["marginRight",8]]],["db9dc8",["#demo-waterfall[data-v-056a0bc2] .style-two-image-container"],[["flex",1]]],["db9dc8",["#demo-waterfall[data-v-056a0bc2] .style-two-image"],[["height",80]]],["db9dc8",["#demo-waterfall[data-v-056a0bc2] .refresh"],[["backgroundColor",4282431619]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["969574",["#demo-wrap[data-v-72406cea]"],[["overflowY","scroll"],["flex",1]]],["969574",["#demo-content[data-v-72406cea]"],[["flexDirection","column"]]],["969574",["#banner[data-v-72406cea]"],[["backgroundImage","https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"],["backgroundSize","cover"],["height",150],["justifyContent","flex-end"]]],["969574",["#banner p[data-v-72406cea]"],[["color",4294934352],["textAlign","center"]]],["969574",["#tabs[data-v-72406cea]"],[["flexDirection","row"],["height",30]]],["969574",["#tabs p[data-v-72406cea]"],[["flex",1],["textAlign","center"],["backgroundColor",4293848814]]],["969574",["#tabs .selected[data-v-72406cea]"],[["backgroundColor",4294967295],["color",4282431619]]],["969574",[".item-even[data-v-72406cea]"],[["height",40]]],["969574",[".item-even p[data-v-72406cea]"],[["lineHeight",40],["fontSize",20],["textAlign","center"]]],["969574",[".item-odd[data-v-72406cea]"],[["height",40],["backgroundColor",4286611584]]],["969574",[".item-odd p[data-v-72406cea]"],[["lineHeight",40],["color",4294967295],["fontSize",20],["textAlign","center"]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["b3ab98",[".feature-list[data-v-63300fa4]"],[["overflow","scroll"]]],["b3ab98",[".feature-item[data-v-63300fa4]"],[["alignItems","center"],["justifyContent","center"],["display","flex"],["paddingTop",10],["paddingBottom",10]]],["b3ab98",[".feature-title[data-v-63300fa4]"],[["color",4283782485],["textAlign","center"]]],["b3ab98",[".feature-item .button[data-v-63300fa4]"],[["display","block"],["borderStyle","solid"],["borderColor",4282431619],["borderWidth",2],["borderRadius",10],["justifyContent","center"],["alignItems","center"],["width",200],["height",56],["lineHeight",56],["fontSize",16],["color",4282431619],["textAlign","center"]]],["b3ab98",["#version-info[data-v-63300fa4]"],[["paddingTop",10],["paddingBottom",10],["marginBottom",10],["borderBottomWidth",1],["borderStyle","solid"],["borderBottomColor",4292664540]]]])))}).call(this,o(5))},function(e,t,o){(function(t){var o;e.exports=(t[o="__HIPPY_VUE_STYLES__"]||(t[o]=[]),void(t[o]=t[o].concat([["593803",[".demo-remote-input[data-v-c92250fe]"],[["display","flex"],["flex",1],["justifyContent","center"],["alignItems","center"],["flexDirection","column"]]],["593803",[".input-label[data-v-c92250fe]"],[["margin",20],["marginBottom",0]]],["593803",[".demo-remote-input .remote-input[data-v-c92250fe]"],[["width",350],["height",80],["color",4280558628],["borderWidth",1],["borderStyle","solid"],["borderColor",4291611852],["fontSize",16],["margin",20],["placeholderTextColor",4289374890]]],["593803",[".demo-remote-input .input-button[data-v-c92250fe]"],[["borderColor",4283210490],["borderWidth",1],["paddingLeft",10],["paddingRight",10],["borderStyle","solid"],["marginTop",5],["marginBottom",5],["marginLeft",20],["marginRight",20]]],["593803",[".tips-wrap[data-v-c92250fe]"],[["marginTop",20],["padding",10]]]])))}).call(this,o(5))},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a,c=o(9),l=o(4);!function(e){e.pop="pop",e.push="push"}(n||(n={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(a||(a={}));const i=/\/$/,r=/^[^#]+#/;function s(e,t){return`${e.replace(r,"#")}${t}`}function u(e){let t=e;return t||(t="/"),"/"!==t[0]&&"#"!==t[0]&&(t="/"+t),t.replace(i,"")}function d(e=""){let t=[""],o=0,c=[];const l=u(e);function i(e){o+=1,o===t.length||t.splice(o),t.push(e)}const r={location:"",state:{},base:l,createHref:s.bind(null,l),replace(e){t.splice(o,1),o-=1,i(e)},push(e){i(e)},listen:e=>(c.push(e),()=>{const t=c.indexOf(e);t>-1&&c.splice(t,1)}),destroy(){c=[],t=[""],o=0},go(e,l=!0){const i=this.location,r=e<0?a.back:a.forward;o=Math.max(0,Math.min(o+e,t.length-1)),l&&function(e,t,{direction:o,delta:a}){const l={direction:o,delta:a,type:n.pop};for(const o of c)o(e,t,l)}(this.location,i,{direction:r,delta:e})},get position(){return o}};return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t[o]}),r}t.createHippyHistory=d,t.createHippyRouter=function(e){var t;const o=c.createRouter({history:null!==(t=e.history)&&void 0!==t?t:d(),routes:e.routes});return e.noInjectAndroidHardwareBackPress||function(e){if(l.Native.isAndroid()){function t(){const{position:t}=e.options.history;if(t>0)return e.back(),!0}e.isReady().then(()=>{l.BackAndroid.addListener(t)})}}(o),o},Object.keys(c).forEach((function(e){"default"===e||t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})}))},function(e,t,o){e.exports=o.p+"assets/hippyLogoWhite.png"},function(e,t,o){"use strict";o.d(t,"a",(function(){return Ot}));var n=o(41),a=o(0);var c=o(1),l=Object(c.defineComponent)({setup(){const e=Object(c.ref)(!1),t=Object(c.ref)(!1),o=Object(c.ref)(!1);Object(c.onActivated)(()=>{console.log(Date.now()+"-button-activated")}),Object(c.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}}}}),i=(o(50),o(3)),r=o.n(i);var s=r()(l,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{class:"button-demo"},[Object(a.g)("label",{class:"button-label"},"按钮和状态绑定"),Object(a.g)("button",{class:Object(a.o)([{"is-active":e.isClicked,"is-pressing":e.isPressing},"button-demo-1"]),onTouchstart:t[0]||(t[0]=Object(a.J)((...t)=>e.onTouchBtnStart&&e.onTouchBtnStart(...t),["stop"])),onTouchmove:t[1]||(t[1]=Object(a.J)((...t)=>e.onTouchBtnMove&&e.onTouchBtnMove(...t),["stop"])),onTouchend:t[2]||(t[2]=Object(a.J)((...t)=>e.onTouchBtnEnd&&e.onTouchBtnEnd(...t),["stop"])),onClick:t[3]||(t[3]=(...t)=>e.onClickView&&e.onClickView(...t))},[e.isClicked?(Object(a.t)(),Object(a.f)("span",{key:0,class:"button-text"},"视图已经被点击了,再点一下恢复")):(Object(a.t)(),Object(a.f)("span",{key:1,class:"button-text"},"视图尚未点击"))],34),Object(a.I)(Object(a.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),[[a.F,e.isClicked]])])}],["__scopeId","data-v-05797918"]]),u=o(10),d=o.n(u);function b(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 g(e){for(var t=1;tO},positionY:{type:Number,default:0}},setup(e){const{positionY:t}=Object(c.toRefs)(e),o=Object(c.ref)(null),n=Object(c.ref)(t.value);let a=0,l=0;Object(c.watch)(t,e=>{n.value=e});return{scrollOffsetY:e.positionY,demo1Style:O,ripple1:o,onLayout:()=>{o.value&&f.Native.measureInAppWindow(o.value).then(e=>{a=e.left,l=e.top})},onTouchStart:e=>{const t=e.touches[0];o.value&&(o.value.setHotspot(t.clientX-a,t.clientY+n.value-l),o.value.setPressed(!0))},onTouchEnd:()=>{o.value&&o.value.setPressed(!1)}}}});var y=r()(j,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{ref:"ripple1",style:Object(a.p)(e.wrapperStyle),nativeBackgroundAndroid:v({},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(a.y)(e.$slots,"default")],44,["nativeBackgroundAndroid"])}]]);const w=e=>{console.log("onScroll",e)},A=e=>{console.log("onMomentumScrollBegin",e)},C=e=>{console.log("onMomentumScrollEnd",e)},x=e=>{console.log("onScrollBeginDrag",e)},S=e=>{console.log("onScrollEndDrag",e)};var k=Object(c.defineComponent)({components:{DemoRippleDiv:y},setup(){const e=Object(c.ref)(0),t=Object(c.ref)(null);return Object(c.onActivated)(()=>{console.log(Date.now()+"-div-activated")}),Object(c.onDeactivated)(()=>{console.log(Date.now()+"-div-Deactivated")}),Object(c.onMounted)(()=>{t.value&&t.value.scrollTo(50,0,1e3)}),{demo2:t,demo1Style:{display:"flex",height:"40px",width:"200px",backgroundImage:""+m.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:""+m.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:f.Native,offsetY:e,onScroll:w,onMomentumScrollBegin:A,onMomentumScrollEnd:C,onScrollBeginDrag:x,onScrollEndDrag:S,onOuterScroll:t=>{e.value=t.offsetY}}}});o(53);var T=r()(k,[["render",function(e,t,o,n,c,l){const i=Object(a.z)("demo-ripple-div");return Object(a.t)(),Object(a.f)("div",{id:"div-demo",onScroll:t[5]||(t[5]=(...t)=>e.onOuterScroll&&e.onOuterScroll(...t))},[Object(a.g)("div",null,["ios"!==e.Native.Platform?(Object(a.t)(),Object(a.f)("div",{key:0},[Object(a.g)("label",null,"水波纹效果: "),Object(a.g)("div",{style:Object(a.p)(g(g({},e.imgRectangle),e.imgRectangleExtra))},[Object(a.i)(i,{"position-y":e.offsetY,"wrapper-style":e.imgRectangle,"native-background-android":{borderless:!0,color:"#666666"}},{default:Object(a.H)(()=>[Object(a.g)("p",{style:{color:"white",maxWidth:200}}," 外层背景图,内层无边框水波纹,受外层影响始终有边框 ")]),_:1},8,["position-y","wrapper-style"])],4),Object(a.i)(i,{"position-y":e.offsetY,"wrapper-style":e.circleRipple,"native-background-android":{borderless:!0,color:"#666666",rippleRadius:100}},{default:Object(a.H)(()=>[Object(a.g)("p",{style:{color:"black",textAlign:"center"}}," 无边框圆形水波纹 ")]),_:1},8,["position-y","wrapper-style"]),Object(a.i)(i,{"position-y":e.offsetY,"wrapper-style":e.squareRipple,"native-background-android":{borderless:!1,color:"#666666"}},{default:Object(a.H)(()=>[Object(a.g)("p",{style:{color:"#fff"}}," 带背景色水波纹 ")]),_:1},8,["position-y","wrapper-style"])])):Object(a.e)("v-if",!0),Object(a.g)("label",null,"背景图效果:"),Object(a.g)("div",{style:Object(a.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(a.g)("p",{class:"div-demo-1-text"}," Hippy 背景图展示 ")],4),Object(a.g)("label",null,"渐变色效果:"),Object(a.g)("div",{class:"div-demo-1-1"},[Object(a.g)("p",{class:"div-demo-1-text"}," Hippy 背景渐变色展示 ")]),Object(a.g)("label",null,"Transform"),Object(a.g)("div",{class:"div-demo-transform"},[Object(a.g)("p",{class:"div-demo-transform-text"}," Transform ")]),Object(a.g)("label",null,"水平滚动:"),Object(a.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(a.e)(" div 带着 overflow 属性的,只能有一个子节点,否则终端会崩溃 "),Object(a.g)("div",{class:"display-flex flex-row"},[Object(a.g)("p",{class:"text-block"}," A "),Object(a.g)("p",{class:"text-block"}," B "),Object(a.g)("p",{class:"text-block"}," C "),Object(a.g)("p",{class:"text-block"}," D "),Object(a.g)("p",{class:"text-block"}," E ")])],544),Object(a.g)("label",null,"垂直滚动:"),Object(a.g)("div",{class:"div-demo-3",showsVerticalScrollIndicator:!1},[Object(a.g)("div",{class:"display-flex flex-column"},[Object(a.g)("p",{class:"text-block"}," A "),Object(a.g)("p",{class:"text-block"}," B "),Object(a.g)("p",{class:"text-block"}," C "),Object(a.g)("p",{class:"text-block"}," D "),Object(a.g)("p",{class:"text-block"}," E ")])])])],32)}],["__scopeId","data-v-fe0428e4"]]);var D=Object(c.defineComponent)({components:{AsyncComponentFromLocal:Object(c.defineAsyncComponent)(async()=>o.e(1).then(o.bind(null,83))),AsyncComponentFromHttp:Object(c.defineAsyncComponent)(async()=>o.e(0).then(o.bind(null,84)))},setup(){const e=Object(c.ref)(!1);return{loaded:e,onClickLoadAsyncComponent:()=>{e.value=!0}}}});o(54);var P=r()(D,[["render",function(e,t,o,n,c,l){const i=Object(a.z)("AsyncComponentFromLocal"),r=Object(a.z)("AsyncComponentFromHttp");return Object(a.t)(),Object(a.f)("div",{id:"demo-dynamicimport",onClick:t[0]||(t[0]=Object(a.J)((...t)=>e.onClickLoadAsyncComponent&&e.onClickLoadAsyncComponent(...t),["stop"]))},[Object(a.g)("div",{class:"import-btn"},[Object(a.g)("p",null,"点我异步加载")]),e.loaded?(Object(a.t)(),Object(a.f)("div",{key:0,class:"async-com-wrapper"},[Object(a.i)(i,{class:"async-component-outer-local"}),Object(a.i)(r)])):Object(a.e)("v-if",!0)])}],["__scopeId","data-v-0fa9b63f"]]);var E=Object(c.defineComponent)({setup(){const e=Object(c.ref)("https://hippyjs.org"),t=Object(c.ref)("https://hippyjs.org"),o=Object(c.ref)(null),n=Object(c.ref)(null),a=t=>{t&&(e.value=t.value)};return{targetUrl:e,displayUrl:t,iframeStyle:{"min-height":f.Native?100:"100vh"},input:o,iframe:n,onLoad:o=>{let{url:a}=o;void 0===a&&n.value&&(a=n.value.src),a&&a!==e.value&&(t.value=a)},onKeyUp:e=>{13===e.keyCode&&(e.preventDefault(),o.value&&a(o.value))},goToUrl:a,onLoadStart:e=>{const{url:t}=e;console.log("onLoadStart",t)},onLoadEnd:e=>{const{url:t,success:o,error:n}=e;console.log("onLoadEnd",t,o,n)}}}});o(55);var _=r()(E,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{id:"iframe-demo",style:Object(a.p)(e.iframeStyle)},[Object(a.g)("label",null,"地址栏:"),Object(a.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(a.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(42),B=o.n(I),R=Object(c.defineComponent)({setup(){const e=Object(c.ref)({});return{defaultImage:m.a,hippyLogoImage:B.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:n,url:a}=t;e.value={width:o,height:n,url:a}}}}});o(56);var L=r()(R,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{id:"demo-img"},[Object(a.g)("div",{id:"demo-img-container"},[Object(a.g)("label",null,"Contain:"),Object(a.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(a.g)("label",null,"Cover:"),Object(a.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(a.g)("label",null,"Center:"),Object(a.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(a.g)("label",null,"CapInsets:"),Object(a.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(a.g)("label",null,"TintColor:"),Object(a.g)("img",{src:e.hippyLogoImage,class:"image center tint-color"},null,8,["src"]),Object(a.g)("label",null,"Gif:"),Object(a.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(a.g)("div",{class:"img-result"},[Object(a.g)("p",null,"Load Result: "+Object(a.D)(e.gifLoadResult),1)])])])}],["__scopeId","data-v-25c66a4a"]]);const V=e=>{e.stopPropagation()},H=e=>{console.log(e.value)},N=e=>{console.log("onKeyboardWillShow",e)},M=()=>{console.log("onKeyboardWillHide")};var z=Object(c.defineComponent)({setup(){const e=Object(c.ref)(null),t=Object(c.ref)(null),o=Object(c.ref)(""),n=Object(c.ref)(""),a=Object(c.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(c.onMounted)(()=>{Object(c.nextTick)(()=>{const e=l();e.length&&e[0].focus()})});return{input:t,inputDemo:e,text:o,event:n,isFocused:a,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:N,onKeyboardWillHide:M,stopPropagation:V,textChange:H,onChange:e=>{null!=e&&e.value&&(o.value=e.value)},onBlur:async()=>{t.value&&(a.value=await t.value.isFocused(),n.value="onBlur")},onFocus:async()=>{t.value&&(a.value=await t.value.isFocused(),n.value="onFocus")}}}});o(57);var F=r()(z,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{ref:"inputDemo",class:"demo-input",onClick:t[15]||(t[15]=Object(a.J)((...t)=>e.blurAllInput&&e.blurAllInput(...t),["stop"]))},[Object(a.g)("label",null,"文本:"),Object(a.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(a.g)("div",null,[Object(a.g)("span",null,"文本内容为:"),Object(a.g)("span",null,Object(a.D)(e.text),1)]),Object(a.g)("div",null,[Object(a.g)("span",null,Object(a.D)(`事件: ${e.event} | isFocused: ${e.isFocused}`),1)]),Object(a.g)("button",{class:"input-button",onClick:t[6]||(t[6]=Object(a.J)((...t)=>e.clearTextContent&&e.clearTextContent(...t),["stop"]))},[Object(a.g)("span",null,"清空文本内容")]),Object(a.g)("button",{class:"input-button",onClick:t[7]||(t[7]=Object(a.J)((...t)=>e.focus&&e.focus(...t),["stop"]))},[Object(a.g)("span",null,"Focus")]),Object(a.g)("button",{class:"input-button",onClick:t[8]||(t[8]=Object(a.J)((...t)=>e.blur&&e.blur(...t),["stop"]))},[Object(a.g)("span",null,"Blur")]),Object(a.g)("label",null,"数字:"),Object(a.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(a.g)("label",null,"密码:"),Object(a.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(a.g)("label",null,"文本(限制5个字符):"),Object(a.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 Y=[{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}],U=e=>{console.log("onAppear",e)},W=e=>{console.log("onDisappear",e)},G=e=>{console.log("onWillAppear",e)},K=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(c.defineComponent)({setup(){const e=Object(c.ref)(""),t=Object(c.ref)([]),o=Object(c.ref)(null),n=Object(c.ref)(!1);let a=!1;let l=!1;return Object(c.onMounted)(()=>{a=!1,t.value=[...Y]}),{loadingState:e,dataSource:t,delText:"Delete",list:o,STYLE_LOADING:100,horizontal:n,Platform:f.Native.Platform,onAppear:U,onDelete:e=>{void 0!==e.index&&t.value.splice(e.index,1)},onDisappear:W,onEndReached:async o=>{if(console.log("endReached",o),a)return;const n=t.value;a=!0,e.value="Loading now...",t.value=[...n,[{style:100}]];const c=await(async()=>new Promise(e=>{setTimeout(()=>e(Y),600)}))();t.value=[...n,...c],a=!1},onWillAppear:G,onWillDisappear:K,changeDirection:()=>{n.value=!n.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(58);var $=r()(Z,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{id:"demo-list"},[Object(a.g)("ul",{id:"list",ref:"list",style:Object(a.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(a.t)(!0),Object(a.f)(a.a,null,Object(a.x)(e.dataSource,(t,o)=>(Object(a.t)(),Object(a.f)("li",{key:o,class:Object(a.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(a.t)(),Object(a.f)("div",{key:0,class:"container"},[Object(a.g)("div",{class:"item-container"},[Object(a.g)("p",{numberOfLines:1},Object(a.D)(o+": Style 1 UI"),1)])])):2===t.style?(Object(a.t)(),Object(a.f)("div",{key:1,class:"container"},[Object(a.g)("div",{class:"item-container"},[Object(a.g)("p",{numberOfLines:1},Object(a.D)(o+": Style 2 UI"),1)])])):5===t.style?(Object(a.t)(),Object(a.f)("div",{key:2,class:"container"},[Object(a.g)("div",{class:"item-container"},[Object(a.g)("p",{numberOfLines:1},Object(a.D)(o+": Style 5 UI"),1)])])):(Object(a.t)(),Object(a.f)("div",{key:3,class:"container"},[Object(a.g)("div",{class:"item-container"},[Object(a.g)("p",{id:"loading"},Object(a.D)(e.loadingState),1)])])),o!==e.dataSource.length-1?(Object(a.t)(),Object(a.f)("div",{key:4,class:"separator-line"})):Object(a.e)("v-if",!0)],42,["type","sticky","onAppear","onDisappear","on:willAppear","on:willDisappear"]))),128))],44,["horizontal","delText"]),"android"===e.Platform?(Object(a.t)(),Object(a.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(a.g)("div",{style:{width:60,height:60,borderRadius:30,backgroundColor:"#40b883",display:"flex",justifyContent:"center",alignItems:"center"}},[Object(a.g)("p",{style:{color:"white"}}," 切换方向 ")])])):Object(a.e)("v-if",!0)])}],["__scopeId","data-v-75193fb0"]]);var ee=Object(c.defineComponent)({setup(){const e=Object(c.ref)(""),t=Object(c.ref)(0),o=Object(c.ref)({numberOfLines:2,ellipsizeMode:"tail"}),n=Object(c.ref)({textShadowOffset:{x:1,y:1},textShadowOffsetX:1,textShadowOffsetY:1,textShadowRadius:3,textShadowColor:"grey"}),a=Object(c.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:n,textShadowIndex:t,Platform:f.Native.Platform,breakStrategy:a,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:()=>{n.value.textShadowOffsetX=t.value%2==1?10:1,n.value.textShadowColor=t.value%2==1?"red":"grey",t.value+=1},changeBreakStrategy:e=>{a.value=e}}}});o(59);var te=r()(ee,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{class:"p-demo"},[Object(a.g)("div",null,[Object(a.g)("label",null,"不带样式:"),Object(a.g)("p",{class:"p-demo-content",onTouchstart:t[0]||(t[0]=Object(a.J)((...t)=>e.onTouchTextStart&&e.onTouchTextStart(...t),["stop"])),onTouchmove:t[1]||(t[1]=Object(a.J)((...t)=>e.onTouchTextMove&&e.onTouchTextMove(...t),["stop"])),onTouchend:t[2]||(t[2]=Object(a.J)((...t)=>e.onTouchTextEnd&&e.onTouchTextEnd(...t),["stop"]))}," 这是最普通的一行文字 ",32),Object(a.g)("p",{class:"p-demo-content-status"}," 当前touch状态: "+Object(a.D)(e.labelTouchStatus),1),Object(a.g)("label",null,"颜色:"),Object(a.g)("p",{class:"p-demo-1 p-demo-content"}," 这行文字改变了颜色 "),Object(a.g)("label",null,"尺寸:"),Object(a.g)("p",{class:"p-demo-2 p-demo-content"}," 这行改变了大小 "),Object(a.g)("label",null,"粗体:"),Object(a.g)("p",{class:"p-demo-3 p-demo-content"}," 这行加粗了 "),Object(a.g)("label",null,"下划线:"),Object(a.g)("p",{class:"p-demo-4 p-demo-content"}," 这里有条下划线 "),Object(a.g)("label",null,"删除线:"),Object(a.g)("p",{class:"p-demo-5 p-demo-content"}," 这里有条删除线 "),Object(a.g)("label",null,"自定义字体:"),Object(a.g)("p",{class:"p-demo-6 p-demo-content"}," 腾讯字体 Hippy "),Object(a.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-weight":"bold"}}," 腾讯字体 Hippy 粗体 "),Object(a.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-style":"italic"}}," 腾讯字体 Hippy 斜体 "),Object(a.g)("p",{class:"p-demo-6 p-demo-content",style:{"font-weight":"bold","font-style":"italic"}}," 腾讯字体 Hippy 粗斜体 "),Object(a.g)("label",null,"文字阴影:"),Object(a.g)("p",{class:"p-demo-7 p-demo-content",style:Object(a.p)(e.textShadow),onClick:t[3]||(t[3]=(...t)=>e.changeTextShadow&&e.changeTextShadow(...t))}," 这里是文字灰色阴影,点击可改变颜色 ",4),Object(a.g)("label",null,"文本字符间距"),Object(a.g)("p",{class:"p-demo-8 p-demo-content",style:{"margin-bottom":"5px"}}," Text width letter-spacing -1 "),Object(a.g)("p",{class:"p-demo-9 p-demo-content",style:{"margin-top":"5px"}}," Text width letter-spacing 5 "),Object(a.g)("label",null,"字体 style:"),Object(a.g)("div",{class:"p-demo-content"},[Object(a.g)("p",{style:{"font-style":"normal"}}," font-style: normal "),Object(a.g)("p",{style:{"font-style":"italic"}}," font-style: italic "),Object(a.g)("p",null,"font-style: [not set]")]),Object(a.g)("label",null,"numberOfLines="+Object(a.D)(e.textMode.numberOfLines)+" | ellipsizeMode="+Object(a.D)(e.textMode.ellipsizeMode),1),Object(a.g)("div",{class:"p-demo-content"},[Object(a.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5}},[Object(a.g)("span",{style:{"font-size":"19px",color:"white"}},"先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。"),Object(a.g)("span",null,"然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")],8,["numberOfLines","ellipsizeMode"]),Object(a.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5}},Object(a.D)("line 1\n\nline 3\n\nline 5"),8,["numberOfLines","ellipsizeMode"]),Object(a.g)("p",{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode,style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5,fontSize:14}},[Object(a.g)("img",{style:{width:24,height:24},src:e.img1},null,8,["src"]),Object(a.g)("img",{style:{width:24,height:24},src:e.img2},null,8,["src"])],8,["numberOfLines","ellipsizeMode"]),Object(a.g)("div",{class:"button-bar"},[Object(a.g)("button",{class:"button",onClick:t[4]||(t[4]=(...t)=>e.incrementLine&&e.incrementLine(...t))},[Object(a.g)("span",null,"加一行")]),Object(a.g)("button",{class:"button",onClick:t[5]||(t[5]=(...t)=>e.decrementLine&&e.decrementLine(...t))},[Object(a.g)("span",null,"减一行")])]),Object(a.g)("div",{class:"button-bar"},[Object(a.g)("button",{class:"button",onClick:t[6]||(t[6]=()=>e.changeMode("clip"))},[Object(a.g)("span",null,"clip")]),Object(a.g)("button",{class:"button",onClick:t[7]||(t[7]=()=>e.changeMode("head"))},[Object(a.g)("span",null,"head")]),Object(a.g)("button",{class:"button",onClick:t[8]||(t[8]=()=>e.changeMode("middle"))},[Object(a.g)("span",null,"middle")]),Object(a.g)("button",{class:"button",onClick:t[9]||(t[9]=()=>e.changeMode("tail"))},[Object(a.g)("span",null,"tail")])])]),"android"===e.Platform?(Object(a.t)(),Object(a.f)("label",{key:0},"break-strategy="+Object(a.D)(e.breakStrategy),1)):Object(a.e)("v-if",!0),"android"===e.Platform?(Object(a.t)(),Object(a.f)("div",{key:1,class:"p-demo-content"},[Object(a.g)("p",{"break-strategy":e.breakStrategy,style:{borderWidth:1,borderColor:"gray"}},Object(a.D)(e.longText),9,["break-strategy"]),Object(a.g)("div",{class:"button-bar"},[Object(a.g)("button",{class:"button",onClick:t[10]||(t[10]=Object(a.J)(()=>e.changeBreakStrategy("simple"),["stop"]))},[Object(a.g)("span",null,"simple")]),Object(a.g)("button",{class:"button",onClick:t[11]||(t[11]=Object(a.J)(()=>e.changeBreakStrategy("high_quality"),["stop"]))},[Object(a.g)("span",null,"high_quality")]),Object(a.g)("button",{class:"button",onClick:t[12]||(t[12]=Object(a.J)(()=>e.changeBreakStrategy("balanced"),["stop"]))},[Object(a.g)("span",null,"balanced")])])])):Object(a.e)("v-if",!0),Object(a.g)("label",null,"vertical-align"),Object(a.g)("div",{class:"p-demo-content"},[Object(a.g)("p",{style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(a.g)("img",{style:{width:"24",height:"24","vertical-align":"top"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"18",height:"12","vertical-align":"middle"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"24",height:"12","vertical-align":"baseline"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"36",height:"24","vertical-align":"bottom"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"24",height:"24","vertical-align":"top"},src:e.img3},null,8,["src"]),Object(a.g)("img",{style:{width:"18",height:"12","vertical-align":"middle"},src:e.img3},null,8,["src"]),Object(a.g)("img",{style:{width:"24",height:"12","vertical-align":"baseline"},src:e.img3},null,8,["src"]),Object(a.g)("img",{style:{width:"36",height:"24","vertical-align":"bottom"},src:e.img3},null,8,["src"]),Object(a.g)("span",{style:{"font-size":"16","vertical-align":"top"}},"字"),Object(a.g)("span",{style:{"font-size":"16","vertical-align":"middle"}},"字"),Object(a.g)("span",{style:{"font-size":"16","vertical-align":"baseline"}},"字"),Object(a.g)("span",{style:{"font-size":"16","vertical-align":"bottom"}},"字")]),"android"===e.Platform?(Object(a.t)(),Object(a.f)("p",{key:0}," legacy mode: ")):Object(a.e)("v-if",!0),"android"===e.Platform?(Object(a.t)(),Object(a.f)("p",{key:1,style:{lineHeight:"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(a.g)("img",{style:{width:"24",height:"24","vertical-alignment":"0"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"18",height:"12","vertical-alignment":"1"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"24",height:"12","vertical-alignment":"2"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"36",height:"24","vertical-alignment":"3"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"24",height:"24",top:"-10"},src:e.img3},null,8,["src"]),Object(a.g)("img",{style:{width:"18",height:"12",top:"-5"},src:e.img3},null,8,["src"]),Object(a.g)("img",{style:{width:"24",height:"12"},src:e.img3},null,8,["src"]),Object(a.g)("img",{style:{width:"36",height:"24",top:"5"},src:e.img3},null,8,["src"]),Object(a.g)("span",{style:{"font-size":"16"}},"字"),Object(a.g)("span",{style:{"font-size":"16"}},"字"),Object(a.g)("span",{style:{"font-size":"16"}},"字"),Object(a.g)("span",{style:{"font-size":"16"}},"字")])):Object(a.e)("v-if",!0)]),Object(a.g)("label",null,"tint-color & background-color"),Object(a.g)("div",{class:"p-demo-content"},[Object(a.g)("p",{style:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(a.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(a.g)("span",{style:{"vertical-align":"middle","background-color":"#99f"}},"text")]),"android"===e.Platform?(Object(a.t)(),Object(a.f)("p",{key:0}," legacy mode: ")):Object(a.e)("v-if",!0),"android"===e.Platform?(Object(a.t)(),Object(a.f)("p",{key:1,style:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(a.g)("img",{style:{width:"24",height:"24","tint-color":"orange"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"24",height:"24","tint-color":"orange","background-color":"#ccc"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"24",height:"24","background-color":"#ccc"},src:e.img2},null,8,["src"])])):Object(a.e)("v-if",!0)]),Object(a.g)("label",null,"margin"),Object(a.g)("div",{class:"p-demo-content"},[Object(a.g)("p",{style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(a.g)("img",{style:{width:"24",height:"24","vertical-align":"top","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"24",height:"24","vertical-align":"baseline","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(a.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(a.t)(),Object(a.f)("p",{key:0}," legacy mode: ")):Object(a.e)("v-if",!0),"android"===e.Platform?(Object(a.t)(),Object(a.f)("p",{key:1,style:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[Object(a.g)("img",{style:{width:"24",height:"24","vertical-alignment":"0","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"24",height:"24","vertical-alignment":"1","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"24",height:"24","vertical-alignment":"2","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"]),Object(a.g)("img",{style:{width:"24",height:"24","vertical-alignment":"3","background-color":"#ccc",margin:"5"},src:e.img2},null,8,["src"])])):Object(a.e)("v-if",!0)])])])}],["__scopeId","data-v-34e2123c"]]);var oe=Object(c.defineComponent)({setup:()=>({Platform:f.Native.Platform})});o(60);var ne=r()(oe,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{id:"shadow-demo"},["android"===e.Platform?(Object(a.t)(),Object(a.f)("div",{key:0,class:"no-offset-shadow-demo-cube-android"},[Object(a.g)("div",{class:"no-offset-shadow-demo-content-android"},[Object(a.g)("p",null,"没有偏移阴影样式")])])):Object(a.e)("v-if",!0),"ios"===e.Platform?(Object(a.t)(),Object(a.f)("div",{key:1,class:"no-offset-shadow-demo-cube-ios"},[Object(a.g)("div",{class:"no-offset-shadow-demo-content-ios"},[Object(a.g)("p",null,"没有偏移阴影样式")])])):Object(a.e)("v-if",!0),"android"===e.Platform?(Object(a.t)(),Object(a.f)("div",{key:2,class:"offset-shadow-demo-cube-android"},[Object(a.g)("div",{class:"offset-shadow-demo-content-android"},[Object(a.g)("p",null,"偏移阴影样式")])])):Object(a.e)("v-if",!0),"ios"===e.Platform?(Object(a.t)(),Object(a.f)("div",{key:3,class:"offset-shadow-demo-cube-ios"},[Object(a.g)("div",{class:"offset-shadow-demo-content-ios"},[Object(a.g)("p",null,"偏移阴影样式")])])):Object(a.e)("v-if",!0)])}],["__scopeId","data-v-19ab3f2d"]]);var ae=Object(c.defineComponent)({setup(){const e=Object(c.ref)("The quick brown fox jumps over the lazy dog,快灰狐狸跳过了懒 🐕。"),t=Object(c.ref)("simple");return{content:e,breakStrategy:t,Platform:f.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(61);var ce=r()(ae,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{id:"demo-textarea"},[Object(a.g)("label",null,"多行文本:"),Object(a.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(a.g)("div",{class:"output-container"},[Object(a.g)("p",{class:"output"}," 输入的文本为:"+Object(a.D)(e.content),1)]),"android"===e.Platform?(Object(a.t)(),Object(a.f)("label",{key:0},"break-strategy="+Object(a.D)(e.breakStrategy),1)):Object(a.e)("v-if",!0),"android"===e.Platform?(Object(a.t)(),Object(a.f)("div",{key:1},[Object(a.g)("textarea",{class:"textarea",defaultValue:e.longText,"break-strategy":e.breakStrategy},null,8,["defaultValue","break-strategy"]),Object(a.g)("div",{class:"button-bar"},[Object(a.g)("button",{class:"button",onClick:t[2]||(t[2]=()=>e.changeBreakStrategy("simple"))},[Object(a.g)("span",null,"simple")]),Object(a.g)("button",{class:"button",onClick:t[3]||(t[3]=()=>e.changeBreakStrategy("high_quality"))},[Object(a.g)("span",null,"high_quality")]),Object(a.g)("button",{class:"button",onClick:t[4]||(t[4]=()=>e.changeBreakStrategy("balanced"))},[Object(a.g)("span",null,"balanced")])])])):Object(a.e)("v-if",!0)])}],["__scopeId","data-v-6d6167b3"]]);var le=o(6),ie=Object(c.defineComponent)({setup(){let e=null;const t=Object(c.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 n;t.value=Object(le.i)(null!==(n=e)&&void 0!==n?n:Object(le.g)())}else if("getInfo"===o){var a;t.value=(null!==(a=e)&&void 0!==a?a:Object(le.g)()).getInfo()}else if("setInfo"===o){var c;(null!==(c=e)&&void 0!==c?c: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(62);var re=r()(ie,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{class:"demo-turbo"},[Object(a.g)("span",{class:"result"},Object(a.D)(e.result),1),Object(a.g)("ul",{style:{flex:"1"}},[(Object(a.t)(!0),Object(a.f)(a.a,null,Object(a.x)(e.funList,t=>(Object(a.t)(),Object(a.f)("li",{key:t,class:"cell"},[Object(a.g)("div",{class:"contentView"},[Object(a.g)("div",{class:"func-info"},[Object(a.g)("span",{numberOfLines:0},"函数名:"+Object(a.D)(t),1)]),Object(a.g)("span",{class:"action-button",onClick:Object(a.J)(()=>e.onTurboFunc(t),["stop"])},"运行",8,["onClick"])])]))),128))])])}]]);let se=null;const ue=Object(c.ref)([]),de=e=>{ue.value.unshift(e)},be=()=>{se&&1===se.readyState&&se.close()};var ge=Object(c.defineComponent)({setup(){const e=Object(c.ref)(null),t=Object(c.ref)(null);return{output:ue,inputUrl:e,inputMessage:t,connect:()=>{const t=e.value;t&&t.getValue().then(e=>{(e=>{be(),se=new WebSocket(e),se.onopen=()=>{var e;return de("[Opened] "+(null===(e=se)||void 0===e?void 0:e.url))},se.onclose=()=>{var e;return de("[Closed] "+(null===(e=se)||void 0===e?void 0:e.url))},se.onerror=e=>{de("[Error] "+e.reason)},se.onmessage=e=>de("[Received] "+e.data)})(e)})},disconnect:()=>{be()},sendMessage:()=>{const e=t.value;e&&e.getValue().then(e=>{(e=>{de("[Sent] "+e),se&&se.send(e)})(e)})}}}});o(63);var fe={demoDiv:{name:"div 组件",component:T},demoShadow:{name:"box-shadow",component:ne},demoP:{name:"p 组件",component:te},demoButton:{name:"button 组件",component:s},demoImg:{name:"img 组件",component:L},demoInput:{name:"input 组件",component:F},demoTextarea:{name:"textarea 组件",component:ce},demoUl:{name:"ul/li 组件",component:$},demoIFrame:{name:"iframe 组件",component:_},demoWebSocket:{name:"WebSocket",component:r()(ge,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{id:"websocket-demo"},[Object(a.g)("div",null,[Object(a.g)("p",{class:"demo-title"}," Url: "),Object(a.g)("input",{ref:"inputUrl",value:"wss://echo.websocket.org"},null,512),Object(a.g)("div",{class:"row"},[Object(a.g)("button",{onClick:t[0]||(t[0]=Object(a.J)((...t)=>e.connect&&e.connect(...t),["stop"]))},[Object(a.g)("span",null,"Connect")]),Object(a.g)("button",{onClick:t[1]||(t[1]=Object(a.J)((...t)=>e.disconnect&&e.disconnect(...t),["stop"]))},[Object(a.g)("span",null,"Disconnect")])])]),Object(a.g)("div",null,[Object(a.g)("p",{class:"demo-title"}," Message: "),Object(a.g)("input",{ref:"inputMessage",value:"Rock it with Hippy WebSocket"},null,512),Object(a.g)("button",{onClick:t[2]||(t[2]=Object(a.J)((...t)=>e.sendMessage&&e.sendMessage(...t),["stop"]))},[Object(a.g)("span",null,"Send")])]),Object(a.g)("div",null,[Object(a.g)("p",{class:"demo-title"}," Log: "),Object(a.g)("div",{class:"output fullscreen"},[Object(a.g)("div",null,[(Object(a.t)(!0),Object(a.f)(a.a,null,Object(a.x)(e.output,(e,t)=>(Object(a.t)(),Object(a.f)("p",{key:t},Object(a.D)(e),1))),128))])])])])}],["__scopeId","data-v-99a0fc74"]])},demoDynamicImport:{name:"DynamicImport",component:P},demoTurbo:{name:"Turbo",component:re}};var pe=Object(c.defineComponent)({setup(){const e=Object(c.ref)(null),t=Object(c.ref)(0),o=Object(c.ref)(0);Object(c.onMounted)(()=>{o.value=f.Native.Dimensions.screen.width});return{demoOnePointRef:e,demon2Left:t,screenWidth:o,onTouchDown1:t=>{const n=t.touches[0].clientX-40;console.log("touchdown x",n,o.value),e.value&&e.value.setNativeProps({style:{left:n}})},onTouchDown2:e=>{t.value=e.touches[0].clientX-40,console.log("touchdown x",t.value,o.value)},onTouchMove1:t=>{const n=t.touches[0].clientX-40;console.log("touchmove x",n,o.value),e.value&&e.value.setNativeProps({style:{left:n}})},onTouchMove2:e=>{t.value=e.touches[0].clientX-40,console.log("touchmove x",t.value,o.value)}}}});o(64);var me=r()(pe,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{class:"set-native-props-demo"},[Object(a.g)("label",null,"setNativeProps实现拖动效果"),Object(a.g)("div",{class:"native-demo-1-drag",style:Object(a.p)({width:e.screenWidth}),onTouchstart:t[0]||(t[0]=Object(a.J)((...t)=>e.onTouchDown1&&e.onTouchDown1(...t),["stop"])),onTouchmove:t[1]||(t[1]=Object(a.J)((...t)=>e.onTouchMove1&&e.onTouchMove1(...t),["stop"]))},[Object(a.g)("div",{ref:"demoOnePointRef",class:"native-demo-1-point"},null,512)],36),Object(a.g)("div",{class:"splitter"}),Object(a.g)("label",null,"普通渲染实现拖动效果"),Object(a.g)("div",{class:"native-demo-2-drag",style:Object(a.p)({width:e.screenWidth}),onTouchstart:t[2]||(t[2]=Object(a.J)((...t)=>e.onTouchDown2&&e.onTouchDown2(...t),["stop"])),onTouchmove:t[3]||(t[3]=Object(a.J)((...t)=>e.onTouchMove2&&e.onTouchMove2(...t),["stop"]))},[Object(a.g)("div",{class:"native-demo-2-point",style:Object(a.p)({left:e.demon2Left+"px"})},null,4)],36)])}],["__scopeId","data-v-4521f010"]]);const he={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 ve=Object(c.defineComponent)({props:{playing:Boolean,onRef:{type:Function,default:()=>{}}},setup:()=>({colorActions:he})});o(65);var Oe=r()(ve,[["render",function(e,t,o,n,c,l){const i=Object(a.z)("animation");return Object(a.t)(),Object(a.f)("div",null,[Object(a.i)(i,{ref:"animationView",playing:e.playing,actions:e.colorActions,class:"color-green"},{default:Object(a.H)(()=>[Object(a.g)("div",{class:"color-white"},[Object(a.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 ye=Object(c.defineComponent)({props:{playing:Boolean,onRef:{type:Function,default:()=>{}}},setup(e){const t=Object(c.ref)(null);return Object(c.onMounted)(()=>{e.onRef&&e.onRef(t.value)}),{animationView:t,loopActions:je}}});o(66);var we=r()(ye,[["render",function(e,t,o,n,c,l){const i=Object(a.z)("animation");return Object(a.t)(),Object(a.f)("div",null,[Object(a.i)(i,{ref:"animationView",playing:e.playing,actions:e.loopActions,class:"loop-green"},{default:Object(a.H)(()=>[Object(a.g)("div",{class:"loop-white"},[Object(a.y)(e.$slots,"default",{},void 0,!0)])]),_:3},8,["playing","actions"])])}],["__scopeId","data-v-0ffc52dc"]]);const Ae={transform:{translateX:{startValue:0,toValue:200,duration:2e3,repeatCount:-1}}},Ce={transform:{translateY:{startValue:0,toValue:50,duration:2e3,repeatCount:-1}}};var xe=Object(c.defineComponent)({props:{playing:Boolean,direction:{type:String,default:""},onRef:{type:Function,default:()=>{}}},emits:["actionsDidUpdate"],setup(e){const{direction:t}=Object(c.toRefs)(e),o=Object(c.ref)(""),n=Object(c.ref)(null);return Object(c.watch)(t,e=>{switch(e){case"horizon":o.value=Ae;break;case"vertical":o.value=Ce;break;default:throw new Error("direction must be defined in props")}},{immediate:!0}),Object(c.onMounted)(()=>{e.onRef&&e.onRef(n.value)}),{loopActions:o,animationLoop:n}}});o(67);var Se=r()(xe,[["render",function(e,t,o,n,c,l){const i=Object(a.z)("animation");return Object(a.t)(),Object(a.f)("div",null,[Object(a.i)(i,{ref:"animationLoop",playing:e.playing,actions:e.loopActions,class:"loop-green",onActionsDidUpdate:t[0]||(t[0]=t=>e.$emit("actionsDidUpdate"))},{default:Object(a.H)(()=>[Object(a.g)("div",{class:"loop-white"},[Object(a.y)(e.$slots,"default",{},void 0,!0)])]),_:3},8,["playing","actions"])])}],["__scopeId","data-v-54047ca5"]]);const ke={transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},Te={transform:{translateX:[{startValue:10,toValue:1,duration:250,timingFunction:"linear"},{startValue:1,toValue:10,duration:250,delay:750,timingFunction:"linear",repeatCount:-1}]}};var De=Object(c.defineComponent)({props:{isChanged:{type:Boolean,default:!0}},setup(e){const t=Object(c.ref)(null),o=Object(c.ref)({face:ke,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:n}=Object(c.toRefs)(e);return Object(c.watch)(n,(e,n)=>{!n&&e?(console.log("changed to face2"),o.value.face=Te):n&&!e&&(console.log("changed to face1"),o.value.face=ke),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(68);var Pe=r()(De,[["render",function(e,t,o,n,c,l){const i=Object(a.z)("animation");return Object(a.t)(),Object(a.f)("div",null,[Object(a.i)(i,{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(a.i)(i,{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 Ee=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(69);var _e=r()(Ee,[["render",function(e,t,o,n,c,l){const i=Object(a.z)("animation");return Object(a.t)(),Object(a.f)("div",null,[Object(a.i)(i,{actions:e.animations.face,class:"vote-face",playing:""},null,8,["actions"]),Object(a.i)(i,{tag:"img",class:"vote-up-eye",playing:"",props:{src:e.imgs.upVoteEye},actions:e.animations.upVoteEye},null,8,["props","actions"]),Object(a.i)(i,{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(c.defineComponent)({components:{Loop:Se,colorComponent:Oe,CubicBezier:we},setup(){const 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),l=Object(c.ref)(null),i=Object(c.shallowRef)(_e);return{loopPlaying:e,colorPlaying:t,cubicPlaying:o,direction:n,voteComponent:i,colorComponent:Oe,isChanged:a,animationRef:l,voteUp:()=>{i.value=_e},voteDown:()=>{i.value=Pe,a.value=!a.value},onRef:e=>{l.value=e},toggleLoopPlaying:()=>{e.value=!e.value},toggleColorPlaying:()=>{t.value=!t.value},toggleCubicPlaying:()=>{o.value=!o.value},toggleDirection:()=>{n.value="horizon"===n.value?"vertical":"horizon"},actionsDidUpdate:()=>{Object(c.nextTick)().then(()=>{console.log("actions updated & startAnimation"),l.value&&l.value.start()})}}}});o(70);var Be=r()(Ie,[["render",function(e,t,o,n,c,l){const i=Object(a.z)("loop"),r=Object(a.z)("color-component"),s=Object(a.z)("cubic-bezier");return Object(a.t)(),Object(a.f)("ul",{id:"animation-demo"},[Object(a.g)("li",null,[Object(a.g)("label",null,"控制动画"),Object(a.g)("div",{class:"toolbar"},[Object(a.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=(...t)=>e.toggleLoopPlaying&&e.toggleLoopPlaying(...t))},[e.loopPlaying?(Object(a.t)(),Object(a.f)("span",{key:0},"暂停")):(Object(a.t)(),Object(a.f)("span",{key:1},"播放"))]),Object(a.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=(...t)=>e.toggleDirection&&e.toggleDirection(...t))},["horizon"===e.direction?(Object(a.t)(),Object(a.f)("span",{key:0},"切换为纵向")):(Object(a.t)(),Object(a.f)("span",{key:1},"切换为横向"))])]),Object(a.g)("div",{style:{height:"150px"}},[Object(a.i)(i,{playing:e.loopPlaying,direction:e.direction,"on-ref":e.onRef,onActionsDidUpdate:e.actionsDidUpdate},{default:Object(a.H)(()=>[Object(a.g)("p",null,"I'm a looping animation")]),_:1},8,["playing","direction","on-ref","onActionsDidUpdate"])])]),Object(a.g)("li",null,[Object(a.g)("div",{style:{"margin-top":"10px"}}),Object(a.g)("label",null,"点赞笑脸动画:"),Object(a.g)("div",{class:"toolbar"},[Object(a.g)("button",{class:"toolbar-btn",onClick:t[2]||(t[2]=(...t)=>e.voteUp&&e.voteUp(...t))},[Object(a.g)("span",null,"点赞 👍")]),Object(a.g)("button",{class:"toolbar-btn",onClick:t[3]||(t[3]=(...t)=>e.voteDown&&e.voteDown(...t))},[Object(a.g)("span",null,"踩 👎")])]),Object(a.g)("div",{class:"vote-face-container center"},[(Object(a.t)(),Object(a.d)(Object(a.A)(e.voteComponent),{class:"vote-icon","is-changed":e.isChanged},null,8,["is-changed"]))])]),Object(a.g)("li",null,[Object(a.g)("div",{style:{"margin-top":"10px"}}),Object(a.g)("label",null,"渐变色动画"),Object(a.g)("div",{class:"toolbar"},[Object(a.g)("button",{class:"toolbar-btn",onClick:t[4]||(t[4]=(...t)=>e.toggleColorPlaying&&e.toggleColorPlaying(...t))},[e.colorPlaying?(Object(a.t)(),Object(a.f)("span",{key:0},"暂停")):(Object(a.t)(),Object(a.f)("span",{key:1},"播放"))])]),Object(a.g)("div",null,[Object(a.i)(r,{playing:e.colorPlaying},{default:Object(a.H)(()=>[Object(a.g)("p",null,"背景色渐变")]),_:1},8,["playing"])])]),Object(a.g)("li",null,[Object(a.g)("div",{style:{"margin-top":"10px"}}),Object(a.g)("label",null,"贝塞尔曲线动画"),Object(a.g)("div",{class:"toolbar"},[Object(a.g)("button",{class:"toolbar-btn",onClick:t[5]||(t[5]=(...t)=>e.toggleCubicPlaying&&e.toggleCubicPlaying(...t))},[e.cubicPlaying?(Object(a.t)(),Object(a.f)("span",{key:0},"暂停")):(Object(a.t)(),Object(a.f)("span",{key:1},"播放"))])]),Object(a.g)("div",null,[Object(a.i)(s,{playing:e.cubicPlaying},{default:Object(a.H)(()=>[Object(a.g)("p",null,"cubic-bezier(.45,2.84,.38,.5)")]),_:1},8,["playing"])])])])}],["__scopeId","data-v-4fa3f0c0"]]);var Re=o(9);const Le=["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"];var Ve=Object(c.defineComponent)({setup(){const 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),l=Object(c.ref)(!1);return Object(Re.onBeforeRouteLeave)((t,o,n)=>{e.value||n()}),{supportedOrientations:Le,dialogIsVisible:e,dialog2IsVisible:t,dialogAnimationType:o,immersionStatusBar:n,autoHideStatusBar:a,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":a.value=!a.value;break;case"immerseStatusBar":n.value=!n.value;break;case"hideNavigationBar":l.value=!l.value}}}}});o(71);var He=r()(Ve,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{id:"dialog-demo"},[Object(a.g)("label",null,"显示或者隐藏对话框:"),Object(a.g)("button",{class:"dialog-demo-button-1",onClick:t[0]||(t[0]=Object(a.J)(()=>e.onClickView("slide"),["stop"]))},[Object(a.g)("span",{class:"button-text"},"显示对话框--slide")]),Object(a.g)("button",{class:"dialog-demo-button-1",onClick:t[1]||(t[1]=Object(a.J)(()=>e.onClickView("fade"),["stop"]))},[Object(a.g)("span",{class:"button-text"},"显示对话框--fade")]),Object(a.g)("button",{class:"dialog-demo-button-1",onClick:t[2]||(t[2]=Object(a.J)(()=>e.onClickView("slide_fade"),["stop"]))},[Object(a.g)("span",{class:"button-text"},"显示对话框--slide_fade")]),Object(a.g)("button",{style:Object(a.p)([{borderColor:e.autoHideStatusBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[3]||(t[3]=Object(a.J)(()=>e.onClickDialogConfig("hideStatusBar"),["stop"]))},[Object(a.g)("span",{class:"button-text"},"隐藏状态栏")],4),Object(a.g)("button",{style:Object(a.p)([{borderColor:e.immersionStatusBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[4]||(t[4]=Object(a.J)(()=>e.onClickDialogConfig("immerseStatusBar"),["stop"]))},[Object(a.g)("span",{class:"button-text"},"沉浸式状态栏")],4),Object(a.g)("button",{style:Object(a.p)([{borderColor:e.autoHideNavigationBar?"#FF0000":"#40b883"}]),class:"dialog-demo-button-1",onClick:t[5]||(t[5]=Object(a.J)(()=>e.onClickDialogConfig("hideNavigationBar"),["stop"]))},[Object(a.g)("span",{class:"button-text"},"隐藏导航栏")],4),Object(a.e)(" dialog can't support v-show, can only use v-if for explicit switching "),e.dialogIsVisible?(Object(a.t)(),Object(a.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(a.e)(" dialog on iOS platform can only have one child node "),Object(a.g)("div",{class:"dialog-demo-wrapper"},[Object(a.g)("div",{class:"fullscreen center row",onClick:t[11]||(t[11]=(...t)=>e.onClickView&&e.onClickView(...t))},[Object(a.g)("div",{class:"dialog-demo-close-btn center column",onClick:t[7]||(t[7]=(...t)=>e.stopPropagation&&e.stopPropagation(...t))},[Object(a.g)("p",{class:"dialog-demo-close-btn-text"}," 点击空白区域关闭 "),Object(a.g)("button",{class:"dialog-demo-button-2",onClick:t[6]||(t[6]=(...t)=>e.onClickOpenSecond&&e.onClickOpenSecond(...t))},[Object(a.g)("span",{class:"button-text"},"点击打开二级全屏弹窗")])]),e.dialog2IsVisible?(Object(a.t)(),Object(a.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(a.g)("div",{class:"dialog-2-demo-wrapper center column row",onClick:t[8]||(t[8]=(...t)=>e.onClickOpenSecond&&e.onClickOpenSecond(...t))},[Object(a.g)("p",{class:"dialog-demo-close-btn-text",style:{color:"white"}}," Hello 我是二级全屏弹窗,点击任意位置关闭。 ")])],40,["animationType"])):Object(a.e)("v-if",!0)])])],40,["animationType","supportedOrientations","immersionStatusBar","autoHideStatusBar","autoHideNavigationBar"])):Object(a.e)("v-if",!0)])}],["__scopeId","data-v-58c0fb99"]]);var Ne=o(8);let Me;var ze=Object(c.defineComponent)({setup(){const e=Object(c.ref)("ready to set"),t=Object(c.ref)(""),o=Object(c.ref)(""),n=Object(c.ref)("正在获取..."),a=Object(c.ref)(""),l=Object(c.ref)(""),i=Object(c.ref)(""),r=Object(c.ref)(null),s=Object(c.ref)("请求网址中..."),u=Object(c.ref)("ready to set"),d=Object(c.ref)(""),b=Object(c.ref)(0);return Object(c.onMounted)(()=>{i.value=JSON.stringify(Object(Ne.a)()),f.Native.NetInfo.fetch().then(e=>{n.value=e}),Me=f.Native.NetInfo.addEventListener("change",e=>{n.value="收到通知: "+e.network_info}),fetch("https://hippyjs.org",{mode:"no-cors"}).then(e=>{s.value="成功状态: "+e.status}).catch(e=>{s.value="收到错误: "+e}),f.EventBus.$on("testEvent",()=>{b.value+=1})}),{Native:f.Native,rect1:a,rect2:l,rectRef:r,storageValue:t,storageSetStatus:e,imageSize:o,netInfoText:n,superProps:i,fetchText:s,cookieString:u,cookiesValue:d,getSize:async()=>{const e=await f.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:()=>{f.Native.AsyncStorage.setItem("itemKey","hippy"),e.value='set "hippy" value succeed'},getItem:async()=>{const e=await f.Native.AsyncStorage.getItem("itemKey");t.value=e||"undefined"},removeItem:()=>{f.Native.AsyncStorage.removeItem("itemKey"),e.value='remove "hippy" value succeed'},setCookie:()=>{f.Native.Cookie.set("https://hippyjs.org","name=hippy;network=mobile"),u.value="'name=hippy;network=mobile' is set"},getCookie:()=>{f.Native.Cookie.getAll("https://hippyjs.org").then(e=>{d.value=e})},getBoundingClientRect:async(e=!1)=>{try{const t=await f.Native.getBoundingClientRect(r.value,{relToContainer:e});e?l.value=""+JSON.stringify(t):a.value=""+JSON.stringify(t)}catch(e){console.error("getBoundingClientRect error",e)}},triggerAppEvent:()=>{f.EventBus.$emit("testEvent")},eventTriggeredTimes:b}},beforeDestroy(){Me&&f.Native.NetInfo.removeEventListener("change",Me),f.EventBus.$off("testEvent")}});o(72);var Fe=r()(ze,[["render",function(e,t,o,n,c,l){var i,r;return Object(a.t)(),Object(a.f)("div",{id:"demo-vue-native",ref:"rectRef"},[Object(a.g)("div",null,[Object(a.e)(" platform "),e.Native.Platform?(Object(a.t)(),Object(a.f)("div",{key:0,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.Platform"),Object(a.g)("p",null,Object(a.D)(e.Native.Platform),1)])):Object(a.e)("v-if",!0),Object(a.e)(" device name "),Object(a.g)("div",{class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.Device"),Object(a.g)("p",null,Object(a.D)(e.Native.Device),1)]),Object(a.e)(" Is it an iPhone X "),e.Native.isIOS()?(Object(a.t)(),Object(a.f)("div",{key:1,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.isIPhoneX"),Object(a.g)("p",null,Object(a.D)(e.Native.isIPhoneX),1)])):Object(a.e)("v-if",!0),Object(a.e)(" OS version, currently only available for iOS, other platforms return null "),e.Native.isIOS()?(Object(a.t)(),Object(a.f)("div",{key:2,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.OSVersion"),Object(a.g)("p",null,Object(a.D)(e.Native.OSVersion||"null"),1)])):Object(a.e)("v-if",!0),Object(a.e)(" Internationalization related information "),Object(a.g)("div",{class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.Localization"),Object(a.g)("p",null,Object(a.D)("国际化相关信息")),Object(a.g)("p",null,Object(a.D)("国家 "+(null===(i=e.Native.Localization)||void 0===i?void 0:i.country)),1),Object(a.g)("p",null,Object(a.D)("语言 "+(null===(r=e.Native.Localization)||void 0===r?void 0:r.language)),1),Object(a.g)("p",null,Object(a.D)("方向 "+(1===e.Native.Localization.direction?"RTL":"LTR")),1)]),Object(a.e)(" API version, currently only available for Android, other platforms return null "),e.Native.isAndroid()?(Object(a.t)(),Object(a.f)("div",{key:3,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.APILevel"),Object(a.g)("p",null,Object(a.D)(e.Native.APILevel||"null"),1)])):Object(a.e)("v-if",!0),Object(a.e)(" Whether the screen is vertically displayed "),Object(a.g)("div",{class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.screenIsVertical"),Object(a.g)("p",null,Object(a.D)(e.Native.screenIsVertical),1)]),Object(a.e)(" width of window "),e.Native.Dimensions.window.width?(Object(a.t)(),Object(a.f)("div",{key:4,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.Dimensions.window.width"),Object(a.g)("p",null,Object(a.D)(e.Native.Dimensions.window.width),1)])):Object(a.e)("v-if",!0),Object(a.e)(" The height of the window, it should be noted that both platforms include the status bar. "),Object(a.e)(" Android will start drawing from the first pixel below the status bar. "),e.Native.Dimensions.window.height?(Object(a.t)(),Object(a.f)("div",{key:5,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.Dimensions.window.height"),Object(a.g)("p",null,Object(a.D)(e.Native.Dimensions.window.height),1)])):Object(a.e)("v-if",!0),Object(a.e)(" width of screen "),e.Native.Dimensions.screen.width?(Object(a.t)(),Object(a.f)("div",{key:6,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.width"),Object(a.g)("p",null,Object(a.D)(e.Native.Dimensions.screen.width),1)])):Object(a.e)("v-if",!0),Object(a.e)(" height of screen "),e.Native.Dimensions.screen.height?(Object(a.t)(),Object(a.f)("div",{key:7,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.height"),Object(a.g)("p",null,Object(a.D)(e.Native.Dimensions.screen.height),1)])):Object(a.e)("v-if",!0),Object(a.e)(" the pt value of a pixel "),Object(a.g)("div",{class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.OnePixel"),Object(a.g)("p",null,Object(a.D)(e.Native.OnePixel),1)]),Object(a.e)(" Android Navigation Bar Height "),e.Native.Dimensions.screen.navigatorBarHeight?(Object(a.t)(),Object(a.f)("div",{key:8,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.navigatorBarHeight"),Object(a.g)("p",null,Object(a.D)(e.Native.Dimensions.screen.navigatorBarHeight),1)])):Object(a.e)("v-if",!0),Object(a.e)(" height of status bar "),e.Native.Dimensions.screen.statusBarHeight?(Object(a.t)(),Object(a.f)("div",{key:9,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.statusBarHeight"),Object(a.g)("p",null,Object(a.D)(e.Native.Dimensions.screen.statusBarHeight),1)])):Object(a.e)("v-if",!0),Object(a.e)(" android virtual navigation bar height "),e.Native.isAndroid()&&void 0!==e.Native.Dimensions.screen.navigatorBarHeight?(Object(a.t)(),Object(a.f)("div",{key:10,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.Dimensions.screen.navigatorBarHeight(Android only)"),Object(a.g)("p",null,Object(a.D)(e.Native.Dimensions.screen.navigatorBarHeight),1)])):Object(a.e)("v-if",!0),Object(a.e)(" The startup parameters passed from the native "),e.superProps?(Object(a.t)(),Object(a.f)("div",{key:11,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"afterCallback of $start method contain superProps"),Object(a.g)("p",null,Object(a.D)(e.superProps),1)])):Object(a.e)("v-if",!0),Object(a.e)(" A demo of Native Event,Just show how to use "),Object(a.g)("div",{class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"App event"),Object(a.g)("div",null,[Object(a.g)("button",{class:"event-btn",onClick:t[0]||(t[0]=(...t)=>e.triggerAppEvent&&e.triggerAppEvent(...t))},[Object(a.g)("span",{class:"event-btn-text"},"Trigger app event")]),Object(a.g)("div",{class:"event-btn-result"},[Object(a.g)("p",null,"Event triggered times: "+Object(a.D)(e.eventTriggeredTimes),1)])])]),Object(a.e)(" example of measuring the size of an element "),Object(a.g)("div",{ref:"measure-block",class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.getBoundingClientRect"),Object(a.g)("div",{class:"item-wrapper"},[Object(a.g)("button",{class:"item-button",onClick:t[1]||(t[1]=()=>e.getBoundingClientRect(!1))},[Object(a.g)("span",null,"relative to App")]),Object(a.g)("span",{style:{"max-width":"200px"}},Object(a.D)(e.rect1),1)]),Object(a.g)("div",{class:"item-wrapper"},[Object(a.g)("button",{class:"item-button",onClick:t[2]||(t[2]=()=>e.getBoundingClientRect(!0))},[Object(a.g)("span",null,"relative to Container")]),Object(a.g)("span",{style:{"max-width":"200px"}},Object(a.D)(e.rect2),1)])],512),Object(a.e)(" local storage "),e.Native.AsyncStorage?(Object(a.t)(),Object(a.f)("div",{key:12,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"AsyncStorage 使用"),Object(a.g)("div",{class:"item-wrapper"},[Object(a.g)("button",{class:"item-button",onClick:t[3]||(t[3]=(...t)=>e.setItem&&e.setItem(...t))},[Object(a.g)("span",null,"setItem")]),Object(a.g)("span",null,Object(a.D)(e.storageSetStatus),1)]),Object(a.g)("div",{class:"item-wrapper"},[Object(a.g)("button",{class:"item-button",onClick:t[4]||(t[4]=(...t)=>e.removeItem&&e.removeItem(...t))},[Object(a.g)("span",null,"removeItem")]),Object(a.g)("span",null,Object(a.D)(e.storageSetStatus),1)]),Object(a.g)("div",{class:"item-wrapper"},[Object(a.g)("button",{class:"item-button",onClick:t[5]||(t[5]=(...t)=>e.getItem&&e.getItem(...t))},[Object(a.g)("span",null,"getItem")]),Object(a.g)("span",null,Object(a.D)(e.storageValue),1)])])):Object(a.e)("v-if",!0),Object(a.e)(" ImageLoader "),e.Native.ImageLoader?(Object(a.t)(),Object(a.f)("div",{key:13,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"ImageLoader 使用"),Object(a.g)("div",{class:"item-wrapper"},[Object(a.g)("button",{class:"item-button",onClick:t[6]||(t[6]=(...t)=>e.getSize&&e.getSize(...t))},[Object(a.g)("span",null,"getSize")]),Object(a.g)("span",null,Object(a.D)(e.imageSize),1)])])):Object(a.e)("v-if",!0),Object(a.e)(" Fetch "),Object(a.g)("div",{class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Fetch 使用"),Object(a.g)("div",{class:"item-wrapper"},[Object(a.g)("span",null,Object(a.D)(e.fetchText),1)])]),Object(a.e)(" network info "),e.Native.NetInfo?(Object(a.t)(),Object(a.f)("div",{key:14,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"NetInfo 使用"),Object(a.g)("div",{class:"item-wrapper"},[Object(a.g)("span",null,Object(a.D)(e.netInfoText),1)])])):Object(a.e)("v-if",!0),Object(a.e)(" Cookie "),e.Native.Cookie?(Object(a.t)(),Object(a.f)("div",{key:15,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Cookie 使用"),Object(a.g)("div",{class:"item-wrapper"},[Object(a.g)("button",{class:"item-button",onClick:t[7]||(t[7]=(...t)=>e.setCookie&&e.setCookie(...t))},[Object(a.g)("span",null,"setCookie")]),Object(a.g)("span",null,Object(a.D)(e.cookieString),1)]),Object(a.g)("div",{class:"item-wrapper"},[Object(a.g)("button",{class:"item-button",onClick:t[8]||(t[8]=(...t)=>e.getCookie&&e.getCookie(...t))},[Object(a.g)("span",null,"getCookie")]),Object(a.g)("span",null,Object(a.D)(e.cookiesValue),1)])])):Object(a.e)("v-if",!0),Object(a.e)(" iOS platform "),e.Native.isIOS()?(Object(a.t)(),Object(a.f)("div",{key:16,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.isIOS"),Object(a.g)("p",null,Object(a.D)(e.Native.isIOS()),1)])):Object(a.e)("v-if",!0),Object(a.e)(" Android platform "),e.Native.isAndroid()?(Object(a.t)(),Object(a.f)("div",{key:17,class:"native-block"},[Object(a.g)("label",{class:"vue-native-title"},"Native.isAndroid"),Object(a.g)("p",null,Object(a.D)(e.Native.isAndroid()),1)])):Object(a.e)("v-if",!0)])],512)}],["__scopeId","data-v-2aae558d"]]);const Ye="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",Ue={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[Ye,Ye,Ye],subInfo:["三图评论","11评"]}},We={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},Ge={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}};var Ke=[Ge,Ue,We,Ue,We,Ue,We,Ge,Ue];var Je=Object(c.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:()=>{}}}});var qe=r()(Je,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{class:"list-view-item style-one"},[Object(a.g)("p",{numberOfLines:2,enableScale:!0,class:"article-title"},Object(a.D)(e.itemBean.title),1),Object(a.g)("div",{class:"style-one-image-container"},[(Object(a.t)(!0),Object(a.f)(a.a,null,Object(a.x)(e.itemBean.picList,(e,t)=>(Object(a.t)(),Object(a.f)("img",{key:t,src:e,alt:"",class:"image style-one-image"},null,8,["src"]))),128))]),Object(a.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(a.g)("p",{class:"normal-text"},Object(a.D)(e.itemBean.subInfo.join("")),1)])])}]]);var Qe=Object(c.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:()=>{}}}});var Xe=r()(Qe,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{class:"list-view-item style-two"},[Object(a.g)("div",{class:"style-two-left-container"},[Object(a.g)("p",{class:"article-title",numberOfLines:2,enableScale:!0},Object(a.D)(e.itemBean.title),1),Object(a.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(a.g)("p",{class:"normal-text"},Object(a.D)(e.itemBean.subInfo.join("")),1)])]),Object(a.g)("div",{class:"style-two-image-container"},[Object(a.g)("img",{src:e.itemBean.picUrl,alt:"",class:"image style-two-image"},null,8,["src"])])])}]]);var Ze=Object(c.defineComponent)({inheritAttrs:!1,props:{itemBean:{type:Object,default:()=>{}}}});var $e=r()(Ze,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{class:"list-view-item style-five"},[Object(a.g)("p",{numberOfLines:2,enableScale:!0,class:"article-title"},Object(a.D)(e.itemBean.title),1),Object(a.g)("div",{class:"style-five-image-container"},[Object(a.g)("img",{src:e.itemBean.picUrl,alt:"",class:"image"},null,8,["src"])]),Object(a.g)("div",{style:{alignSelf:"flex-start",marginTop:"5px"}},[Object(a.g)("p",{class:"normal-text"},Object(a.D)(e.itemBean.subInfo.join(" ")),1)])])}]]);let et=0;const tt=Object(c.ref)({top:0,left:0}),ot=async()=>new Promise(e=>{setTimeout(()=>e(Ke),800)});var nt=Object(c.defineComponent)({components:{StyleOne:qe,StyleTwo:Xe,StyleFive:$e},setup(){const e=Object(c.ref)(null),t=Object(c.ref)(null),o=Object(c.ref)(null),n=Object(c.ref)([...Ke]);let a=!1,l=!1;const i=Object(c.ref)(""),r=Object(c.ref)("继续下拉触发刷新"),s=Object(c.ref)("正在加载...");return Object(c.onMounted)(()=>{a=!1,l=!1,n.value=[...Ke],et=null!==f.Native&&void 0!==f.Native&&f.Native.Dimensions?f.Native.Dimensions.window.height:window.innerHeight,t.value&&t.value.collapsePullHeader({time:2e3})}),{loadingState:i,dataSource:n,headerRefreshText:r,footerRefreshText:s,list:e,pullHeader:t,pullFooter:o,onEndReached:async e=>{if(console.log("endReached",e),a)return;a=!0,s.value="加载更多...";const t=await ot();0===t.length&&(s.value="没有更多数据"),n.value=[...n.value,...t],a=!1,o.value&&o.value.collapsePullFooter()},onHeaderReleased:async()=>{l||(l=!0,console.log("onHeaderReleased"),r.value="刷新数据中,请稍等",n.value=await ot(),n.value=n.value.reverse(),l=!1,r.value="2秒后收起",t.value&&t.value.collapsePullHeader({time:2e3}))},onHeaderIdle:()=>{},onHeaderPulling:e=>{l||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?r.value="松手,即可触发刷新":r.value="继续下拉,触发刷新")},onFooterIdle:()=>{},onFooterPulling:e=>{console.log("onFooterPulling",e)},onScroll:e=>{e.stopPropagation(),tt.value={top:e.offsetY,left:e.offsetX}},scrollToNextPage:()=>{if(f.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(f.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(73);var at=r()(nt,[["render",function(e,t,o,n,c,l){const i=Object(a.z)("pull-header"),r=Object(a.z)("style-one"),s=Object(a.z)("style-two"),u=Object(a.z)("style-five"),d=Object(a.z)("pull-footer");return Object(a.t)(),Object(a.f)("div",{id:"demo-pull-header-footer","specital-attr":"pull-header-footer"},[Object(a.g)("div",{class:"toolbar"},[Object(a.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=(...t)=>e.scrollToNextPage&&e.scrollToNextPage(...t))},[Object(a.g)("span",null,"翻到下一页")]),Object(a.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=(...t)=>e.scrollToBottom&&e.scrollToBottom(...t))},[Object(a.g)("span",null,"翻动到底部")]),Object(a.g)("p",{class:"toolbar-text"}," 列表元素数量:"+Object(a.D)(e.dataSource.length),1)]),Object(a.g)("ul",{id:"list",ref:"list",numberOfRows:e.dataSource.length,rowShouldSticky:!0,onScroll:t[2]||(t[2]=(...t)=>e.onScroll&&e.onScroll(...t))},[Object(a.h)(" /** * 下拉组件 * * 事件: * idle: 滑动距离在 pull-header 区域内触发一次,参数 contentOffset,滑动距离 * pulling: 滑动距离超出 pull-header 后触发一次,参数 contentOffset,滑动距离 * refresh: 滑动超出距离,松手后触发一次 */ "),Object(a.i)(i,{ref:"pullHeader",class:"ul-refresh",onIdle:e.onHeaderIdle,onPulling:e.onHeaderPulling,onReleased:e.onHeaderReleased},{default:Object(a.H)(()=>[Object(a.g)("p",{class:"ul-refresh-text"},Object(a.D)(e.headerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"]),(Object(a.t)(!0),Object(a.f)(a.a,null,Object(a.x)(e.dataSource,(e,t)=>(Object(a.t)(),Object(a.f)("li",{key:t,class:"item-style",type:"row-"+e.style,sticky:0===t},[1===e.style?(Object(a.t)(),Object(a.d)(r,{key:0,"item-bean":e.itemBean},null,8,["item-bean"])):Object(a.e)("v-if",!0),2===e.style?(Object(a.t)(),Object(a.d)(s,{key:1,"item-bean":e.itemBean},null,8,["item-bean"])):Object(a.e)("v-if",!0),5===e.style?(Object(a.t)(),Object(a.d)(u,{key:2,"item-bean":e.itemBean},null,8,["item-bean"])):Object(a.e)("v-if",!0)],8,["type","sticky"]))),128)),Object(a.h)(" /** * 上拉组件 * > 如果不需要显示加载情况,可以直接使用 ul 的 onEndReached 实现一直加载 * * 事件: * idle: 滑动距离在 pull-footer 区域内触发一次,参数 contentOffset,滑动距离 * pulling: 滑动距离超出 pull-footer 后触发一次,参数 contentOffset,滑动距离 * released: 滑动超出距离,松手后触发一次 */ "),Object(a.i)(d,{ref:"pullFooter",class:"pull-footer",onIdle:e.onFooterIdle,onPulling:e.onFooterPulling,onReleased:e.onEndReached},{default:Object(a.H)(()=>[Object(a.g)("p",{class:"pull-footer-text"},Object(a.D)(e.footerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"])],40,["numberOfRows"])])}],["__scopeId","data-v-52ecb6dc"]]);var ct=Object(c.defineComponent)({setup(){const e=Object(c.ref)("idle"),t=Object(c.ref)(2),o=Object(c.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(74);var lt=r()(ct,[["render",function(e,t,o,n,c,l){const i=Object(a.z)("swiper-slide"),r=Object(a.z)("swiper");return Object(a.t)(),Object(a.f)("div",{id:"demo-swiper"},[Object(a.g)("div",{class:"toolbar"},[Object(a.g)("button",{class:"toolbar-btn",onClick:t[0]||(t[0]=(...t)=>e.scrollToPrevPage&&e.scrollToPrevPage(...t))},[Object(a.g)("span",null,"翻到上一页")]),Object(a.g)("button",{class:"toolbar-btn",onClick:t[1]||(t[1]=(...t)=>e.scrollToNextPage&&e.scrollToNextPage(...t))},[Object(a.g)("span",null,"翻到下一页")]),Object(a.g)("p",{class:"toolbar-text"}," 当前第 "+Object(a.D)(e.currentSlideNum+1)+" 页 ",1)]),Object(a.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(a.i)(r,{id:"swiper",ref:"swiper","need-animation":"",current:e.currentSlide,onDragging:e.onDragging,onDropped:e.onDropped,onStateChanged:e.onStateChanged},{default:Object(a.H)(()=>[Object(a.e)(" slides "),(Object(a.t)(!0),Object(a.f)(a.a,null,Object(a.x)(e.dataSource,e=>(Object(a.t)(),Object(a.d)(i,{key:e,style:Object(a.p)({backgroundColor:4278222848+100*e})},{default:Object(a.H)(()=>[Object(a.g)("p",null,"I'm Slide "+Object(a.D)(e+1),1)]),_:2},1032,["style"]))),128))]),_:1},8,["current","onDragging","onDropped","onStateChanged"]),Object(a.e)(" A Demo of dots "),Object(a.g)("div",{id:"swiper-dots"},[(Object(a.t)(!0),Object(a.f)(a.a,null,Object(a.x)(e.dataSource,t=>(Object(a.t)(),Object(a.f)("div",{key:t,class:Object(a.o)(["dot",{hightlight:e.currentSlideNum===t}])},null,2))),128))])])}]]);let it=0;const rt={top:0,left:5,bottom:0,right:5},st="android"===f.Native.Platform,ut=async()=>new Promise(e=>{setTimeout(()=>(it+=1,e(it>=50?[]:[...Ke,...Ke])),600)});var dt=Object(c.defineComponent)({components:{StyleOne:qe,StyleTwo:Xe,StyleFive:$e},setup(){const e=Object(c.ref)([...Ke,...Ke,...Ke,...Ke]);let t=!1,o=!1;const n=Object(c.ref)(!1),a=Object(c.ref)("正在加载..."),l=Object(c.ref)(null),i=Object(c.ref)(null);let r="继续下拉触发刷新",s="正在加载...";const u=Object(c.computed)(()=>n.value?"正在刷新":"下拉刷新"),d=Object(c.ref)(null),b=Object(c.ref)(null),g=Object(c.computed)(()=>(f.Native.Dimensions.screen.width-rt.left-rt.right-6)/2);return{dataSource:e,isRefreshing:n,refreshText:u,STYLE_LOADING:100,loadingState:a,header:b,gridView:d,contentInset:rt,columnSpacing:6,interItemSpacing:6,numberOfColumns:2,itemWidth:g,onScroll:e=>{console.log("waterfall onScroll",e)},onRefresh:async()=>{n.value=!0;const t=await ut();n.value=!1,e.value=t.reverse(),b.value&&b.value.refreshCompleted()},onEndReached:async()=>{if(console.log("end Reached"),t)return;t=!0,s="加载更多...";const o=await ut();0===o.length&&(s="没有更多数据"),e.value=[...e.value,...o],t=!1,i.value&&i.value.collapsePullFooter()},onClickItem:e=>{d.value&&d.value.scrollToIndex({index:e,animation:!0})},isAndroid:st,onHeaderPulling:e=>{o||(console.log("onHeaderPulling",e.contentOffset),r=e.contentOffset>30?"松手,即可触发刷新":"继续下拉,触发刷新")},onFooterPulling:e=>{console.log("onFooterPulling",e)},onHeaderIdle:()=>{},onFooterIdle:()=>{},onHeaderReleased:async()=>{o||(o=!0,console.log("onHeaderReleased"),r="刷新数据中,请稍等",o=!1,r="2秒后收起",l.value&&l.value.collapsePullHeader({time:2e3}))},headerRefreshText:r,footerRefreshText:s,loadMoreDataFlag:t,pullHeader:l,pullFooter:i}}});o(75);var bt=r()(dt,[["render",function(e,t,o,n,c,l){const i=Object(a.z)("pull-header"),r=Object(a.z)("waterfall-item"),s=Object(a.z)("style-one"),u=Object(a.z)("style-two"),d=Object(a.z)("style-five"),b=Object(a.z)("pull-footer"),g=Object(a.z)("waterfall");return Object(a.t)(),Object(a.f)("div",{id:"demo-waterfall"},[Object(a.i)(g,{ref:"gridView","content-inset":e.contentInset,"column-spacing":e.columnSpacing,"contain-banner-view":!e.isAndroid,"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(a.H)(()=>[Object(a.i)(i,{ref:"pullHeader",class:"ul-refresh",onIdle:e.onHeaderIdle,onPulling:e.onHeaderPulling,onReleased:e.onHeaderReleased},{default:Object(a.H)(()=>[Object(a.g)("p",{class:"ul-refresh-text"},Object(a.D)(e.headerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"]),e.isAndroid?(Object(a.t)(),Object(a.d)(r,{key:1,"full-span":!0,class:"banner-view"},{default:Object(a.H)(()=>[Object(a.g)("span",null,"BannerView")]),_:1})):(Object(a.t)(),Object(a.f)("div",{key:0,class:"banner-view"},[Object(a.g)("span",null,"BannerView")])),(Object(a.t)(!0),Object(a.f)(a.a,null,Object(a.x)(e.dataSource,(t,o)=>(Object(a.t)(),Object(a.d)(r,{key:o,style:Object(a.p)({width:e.itemWidth}),type:t.style,onClick:Object(a.J)(()=>e.onClickItem(o),["stop"])},{default:Object(a.H)(()=>[1===t.style?(Object(a.t)(),Object(a.d)(s,{key:0,"item-bean":t.itemBean},null,8,["item-bean"])):Object(a.e)("v-if",!0),2===t.style?(Object(a.t)(),Object(a.d)(u,{key:1,"item-bean":t.itemBean},null,8,["item-bean"])):Object(a.e)("v-if",!0),5===t.style?(Object(a.t)(),Object(a.d)(d,{key:2,"item-bean":t.itemBean},null,8,["item-bean"])):Object(a.e)("v-if",!0)]),_:2},1032,["style","type","onClick"]))),128)),Object(a.i)(b,{ref:"pullFooter",class:"pull-footer",onIdle:e.onFooterIdle,onPulling:e.onFooterPulling,onReleased:e.onEndReached},{default:Object(a.H)(()=>[Object(a.g)("p",{class:"pull-footer-text"},Object(a.D)(e.footerRefreshText),1)]),_:1},8,["onIdle","onPulling","onReleased"])]),_:1},8,["content-inset","column-spacing","contain-banner-view","inter-item-spacing","number-of-columns","onEndReached","onScroll"])])}],["__scopeId","data-v-056a0bc2"]]);var gt=Object(c.defineComponent)({setup(){const e=Object(c.ref)(0),t=Object(c.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(76);var ft={demoNative:{name:"Native 能力",component:Fe},demoAnimation:{name:"animation 组件",component:Be},demoDialog:{name:"dialog 组件",component:He},demoSwiper:{name:"swiper 组件",component:lt},demoPullHeaderFooter:{name:"pull header/footer 组件",component:at},demoWaterfall:{name:"waterfall 组件",component:bt},demoNestedScroll:{name:"nested scroll 示例",component:r()(gt,[["render",function(e,t,o,n,c,l){const i=Object(a.z)("swiper-slide"),r=Object(a.z)("swiper");return Object(a.t)(),Object(a.f)("div",{id:"demo-wrap",onLayout:t[0]||(t[0]=(...t)=>e.onLayout&&e.onLayout(...t))},[Object(a.g)("div",{id:"demo-content"},[Object(a.g)("div",{id:"banner"}),Object(a.g)("div",{id:"tabs"},[(Object(a.t)(),Object(a.f)(a.a,null,Object(a.x)(2,t=>Object(a.g)("p",{key:"tab"+t,class:Object(a.o)(e.currentSlide===t-1?"selected":""),onClick:o=>e.onTabClick(t)}," tab "+Object(a.D)(t)+" "+Object(a.D)(1===t?"(parent first)":"(self first)"),11,["onClick"])),64))]),Object(a.i)(r,{id:"swiper",ref:"swiper","need-animation":"",current:e.currentSlide,style:Object(a.p)({height:e.layoutHeight-80}),onDropped:e.onDropped},{default:Object(a.H)(()=>[Object(a.i)(i,{key:"slide1"},{default:Object(a.H)(()=>[Object(a.g)("ul",{nestedScrollTopPriority:"parent"},[(Object(a.t)(),Object(a.f)(a.a,null,Object(a.x)(30,e=>Object(a.g)("li",{key:"item"+e,class:Object(a.o)(e%2?"item-even":"item-odd")},[Object(a.g)("p",null,"Item "+Object(a.D)(e),1)],2)),64))])]),_:1}),Object(a.i)(i,{key:"slide2"},{default:Object(a.H)(()=>[Object(a.g)("ul",{nestedScrollTopPriority:"self"},[(Object(a.t)(),Object(a.f)(a.a,null,Object(a.x)(30,e=>Object(a.g)("li",{key:"item"+e,class:Object(a.o)(e%2?"item-even":"item-odd")},[Object(a.g)("p",null,"Item "+Object(a.D)(e),1)],2)),64))])]),_:1})]),_:1},8,["current","style","onDropped"])])],32)}],["__scopeId","data-v-72406cea"]])},demoSetNativeProps:{name:"setNativeProps",component:me}};var pt=Object(c.defineComponent)({name:"App",setup(){const e=Object.keys(fe).map(e=>({id:e,name:fe[e].name})),t=Object.keys(ft).map(e=>({id:e,name:ft[e].name}));return Object(c.onMounted)(()=>{}),{featureList:e,nativeFeatureList:t,version:c.version,Native:f.Native}}});o(77);var mt=r()(pt,[["render",function(e,t,o,n,c,l){const i=Object(a.z)("router-link");return Object(a.t)(),Object(a.f)("ul",{class:"feature-list"},[Object(a.g)("li",null,[Object(a.g)("div",{id:"version-info"},[Object(a.g)("p",{class:"feature-title"}," Vue: "+Object(a.D)(e.version),1),e.Native?(Object(a.t)(),Object(a.f)("p",{key:0,class:"feature-title"}," Hippy-Vue-Next: "+Object(a.D)("unspecified"!==e.Native.version?e.Native.version:"master"),1)):Object(a.e)("v-if",!0)])]),Object(a.g)("li",null,[Object(a.g)("p",{class:"feature-title"}," 浏览器组件 Demos ")]),(Object(a.t)(!0),Object(a.f)(a.a,null,Object(a.x)(e.featureList,e=>(Object(a.t)(),Object(a.f)("li",{key:e.id,class:"feature-item"},[Object(a.i)(i,{to:{path:"/demo/"+e.id},class:"button"},{default:Object(a.H)(()=>[Object(a.h)(Object(a.D)(e.name),1)]),_:2},1032,["to"])]))),128)),e.nativeFeatureList.length?(Object(a.t)(),Object(a.f)("li",{key:0},[Object(a.g)("p",{class:"feature-title",paintType:"fcp"}," 终端组件 Demos ")])):Object(a.e)("v-if",!0),(Object(a.t)(!0),Object(a.f)(a.a,null,Object(a.x)(e.nativeFeatureList,e=>(Object(a.t)(),Object(a.f)("li",{key:e.id,class:"feature-item"},[Object(a.i)(i,{to:{path:"/demo/"+e.id},class:"button"},{default:Object(a.H)(()=>[Object(a.h)(Object(a.D)(e.name),1)]),_:2},1032,["to"])]))),128))])}],["__scopeId","data-v-63300fa4"]]);var ht=Object(c.defineComponent)({setup(){const 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:()=>{t.value&&t.value.blur()},openBundle:()=>{if(e.value){const{rootViewId:t}=Object(Ne.a)();f.Native.callNative("TestModule","remoteDebug",t,e.value)}}}}});o(78);const vt=[{path:"/",component:mt},{path:"/remote-debug",component:r()(ht,[["render",function(e,t,o,n,c,l){return Object(a.t)(),Object(a.f)("div",{ref:"inputDemo",class:"demo-remote-input",onClick:t[2]||(t[2]=Object(a.J)((...t)=>e.blurInput&&e.blurInput(...t),["stop"]))},[Object(a.g)("div",{class:"tips-wrap"},[(Object(a.t)(!0),Object(a.f)(a.a,null,Object(a.x)(e.tips,(t,o)=>(Object(a.t)(),Object(a.f)("p",{key:o,class:"tips-item",style:Object(a.p)(e.styles.tipText)},Object(a.D)(o+1)+". "+Object(a.D)(t),5))),128))]),Object(a.g)("input",{ref:"inputRef",value:e.bundleUrl,"caret-color":"yellow",placeholder:"please input bundleUrl",multiple:!0,numberOfLines:"4",class:"remote-input",onClick:Object(a.J)(()=>{},["stop"]),onChange:t[0]||(t[0]=t=>e.bundleUrl=t.value)},null,40,["value"]),Object(a.g)("div",{class:"buttonContainer",style:Object(a.p)(e.styles.buttonContainer)},[Object(a.g)("button",{style:Object(a.p)(e.styles.button),class:"input-button",onClick:t[1]||(t[1]=Object(a.J)((...t)=>e.openBundle&&e.openBundle(...t),["stop"]))},[Object(a.g)("span",{style:Object(a.p)(e.styles.buttonText)},"开始",4)],4)],4)],512)}],["__scopeId","data-v-c92250fe"]]),name:"Debug"},...Object.keys(fe).map(e=>({path:"/demo/"+e,name:fe[e].name,component:fe[e].component})),...Object.keys(ft).map(e=>({path:"/demo/"+e,name:ft[e].name,component:ft[e].component}))];function Ot(){return Object(n.createHippyRouter)({routes:vt})}},function(e,t,o){"use strict";var n=o(0);var a=o(1),c=o(9),l=Object(a.defineComponent)({name:"App",setup(){const e=Object(c.useRouter)(),t=Object(c.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:()=>{e.back()},navigateTo:(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=""}}}),i=(o(49),o(3));const r=o.n(i)()(l,[["render",function(e,t,o,a,c,l){const i=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]=(...t)=>e.goBack&&e.goBack(...t))},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)(()=>{},["stop"])},[Object(n.e)(" if you don't need keep-alive, just use '' "),Object(n.i)(i,null,{default:Object(n.H)(({Component:e,route:t})=>[(Object(n.t)(),Object(n.d)(n.b,null,[(Object(n.t)(),Object(n.d)(Object(n.A)(e),{key:t.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,(t,o)=>(Object(n.t)(),Object(n.f)("div",{key:"tab-"+o,class:Object(n.o)(["bottom-tab",o===e.activatedTab?"activated":""]),onClick:Object(n.J)(n=>e.navigateTo(t,o),["stop"])},[Object(n.g)("span",{class:"bottom-tab-text"},Object(n.D)(t.text),1)],10,["onClick"]))),128))])])}]]);t.a=r},,,function(e,t,o){e.exports=o(48)},function(e,t,o){"use strict";o.r(t),function(e){var t=o(4),n=o(44),a=o(43),c=o(8);e.Hippy.on("uncaughtException",e=>{console.log("uncaughtException error",e.stack,e.message)}),e.Hippy.on("unhandledRejection",e=>{console.log("unhandledRejection reason",e)});const l=Object(t.createApp)(n.a,{appName:"Demo",iPhone:{statusBar:{backgroundColor:4283416717}},trimWhitespace:!0}),i=Object(a.a)();l.use(i),t.EventBus.$on("onSizeChanged",e=>{e.width&&e.height&&Object(t.setScreenSize)({width:e.width,height:e.height})});l.$start().then(({superProps:e,rootViewId:o})=>{Object(c.b)({superProps:e,rootViewId:o}),i.push("/"),t.BackAndroid.addListener(()=>(console.log("backAndroid"),!0)),l.mount("#root")})}.call(this,o(5))},function(e,t,o){"use strict";o(12)},function(e,t,o){"use strict";o(13)},function(e,t,o){var n=o(14).default,a=o(52);e.exports=function(e){var t=a(e,"string");return"symbol"==n(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,o){var n=o(14).default;e.exports=function(e,t){if("object"!=n(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var a=o.call(e,t||"default");if("object"!=n(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,o){"use strict";o(15)},function(e,t,o){"use strict";o(16)},function(e,t,o){"use strict";o(17)},function(e,t,o){"use strict";o(18)},function(e,t,o){"use strict";o(19)},function(e,t,o){"use strict";o(20)},function(e,t,o){"use strict";o(21)},function(e,t,o){"use strict";o(22)},function(e,t,o){"use strict";o(23)},function(e,t,o){"use strict";o(24)},function(e,t,o){"use strict";o(25)},function(e,t,o){"use strict";o(26)},function(e,t,o){"use strict";o(27)},function(e,t,o){"use strict";o(28)},function(e,t,o){"use strict";o(29)},function(e,t,o){"use strict";o(30)},function(e,t,o){"use strict";o(31)},function(e,t,o){"use strict";o(32)},function(e,t,o){"use strict";o(33)},function(e,t,o){"use strict";o(34)},function(e,t,o){"use strict";o(35)},function(e,t,o){"use strict";o(36)},function(e,t,o){"use strict";o(37)},function(e,t,o){"use strict";o(38)},function(e,t,o){"use strict";o(39)},function(e,t,o){"use strict";o(40)}]); \ 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 i=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=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=3d01fd90&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=3d01fd90&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 i})),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 s})),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),i=t=>e.getTurboModule("demoTurbo").getArray(t),s=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=7a4724b0&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=7a4724b0&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=e3752104&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=e3752104&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 i(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 s(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 s(s({},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 jt}));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")),i=o.n(c);var s=i()(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=i()(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=i()(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=i()(P,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("AsyncComponentFromLocal"),i=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)(i)])):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=i()(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 H=i()(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 Y=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:Y,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=i()(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,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=3d01fd90&scoped=true&lang=css");var $=i()(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"]),Object(n.g)("div",{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"}}," 切换方向 ")])])])}],["__scopeId","data-v-3d01fd90"]]);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=i()(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=i()(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=i()(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 ie=i()(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 se=null;const de=Object(r.ref)([]),pe=e=>{de.value.unshift(e)},ue=()=>{se&&1===se.readyState&&se.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(),se=new WebSocket(e),se.onopen=()=>{var e;return pe("[Opened] "+(null===(e=se)||void 0===e?void 0:e.url))},se.onclose=()=>{var e;return pe("[Closed] "+(null===(e=se)||void 0===e?void 0:e.url))},se.onerror=e=>{pe("[Error] "+e.reason)},se.onmessage=e=>pe("[Received] "+e.data)})(e)})},disconnect:()=>{ue()},sendMessage:()=>{const e=t.value;e&&e.getValue().then(e=>{(e=>{pe("[Sent] "+e),se&&se.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:s},demoImg:{name:"img 组件",component:H},demoInput:{name:"input 组件",component:M},demoTextarea:{name:"textarea 组件",component:re},demoUl:{name:"ul/li 组件",component:$},demoIFrame:{name:"iframe 组件",component:L},demoWebSocket:{name:"WebSocket",component:i()(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:ie}};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=i()(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=i()(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=i()(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=i()(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=i()(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=i()(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=i()(Ie,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("loop"),i=Object(n.z)("color-component"),s=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)(i,{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)(s,{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 He=["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"];var Ye=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:He,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=i()(Ye,[["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)(""),i=Object(r.ref)(null),s=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=>{s.value="成功状态: "+e.status}).catch(e=>{s.value="收到错误: "+e}),y.EventBus.$on("testEvent",()=>{u.value+=1})}),{Native:y.Native,rect1:n,rect2:l,rectRef:i,storageValue:t,storageSetStatus:e,imageSize:o,netInfoText:a,superProps:c,fetchText:s,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(i.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=i()(Ue,[["render",function(e,t,o,a,r,l){var c,i;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===(i=e.Native.Localization)||void 0===i?void 0:i.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=i()(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=i()(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=i()(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)(""),i=Object(r.ref)("继续下拉触发刷新"),s=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:i,footerRefreshText:s,list:e,pullHeader:t,pullFooter:o,onEndReached:async e=>{if(console.log("endReached",e),n)return;n=!0,s.value="加载更多...";const t=await ot();0===t.length&&(s.value="没有更多数据"),a.value=[...a.value,...t],n=!1,o.value&&o.value.collapsePullFooter()},onHeaderReleased:async()=>{l||(l=!0,console.log("onHeaderReleased"),i.value="刷新数据中,请稍等",a.value=await ot(),a.value=a.value.reverse(),l=!1,i.value="2秒后收起",t.value&&t.value.collapsePullHeader({time:2e3}))},onHeaderIdle:()=>{},onHeaderPulling:e=>{l||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?i.value="松手,即可触发刷新":i.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=i()(at,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("pull-header"),i=Object(n.z)("style-one"),s=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)(i,{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)(s,{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<6?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,t.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=7a4724b0&lang=css");var lt=i()(rt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("swiper-slide"),i=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)(i,{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 it={top:0,left:5,bottom:0,right:5},st="android"===y.Native.Platform,dt="ios"===y.Native.Platform,pt=async()=>new Promise(e=>{setTimeout(()=>(ct+=1,e(ct>=50?[]:[...Ge,...Ge])),600)});var ut=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 i="继续下拉触发刷新",s="正在加载...";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-it.left-it.right-6)/2);return{dataSource:e,isRefreshing:a,refreshText:d,STYLE_LOADING:100,loadingState:n,header:u,gridView:p,contentInset:it,columnSpacing:6,interItemSpacing:6,numberOfColumns:2,itemWidth:b,onScroll:e=>{console.log("waterfall onScroll",e)},onRefresh:async()=>{a.value=!0;const t=await pt();a.value=!1,e.value=t.reverse(),u.value&&u.value.refreshCompleted()},onEndReached:async()=>{if(console.log("end Reached"),t)return;t=!0,s="加载更多...";const o=await pt();0===o.length&&(s="没有更多数据"),e.value=[...e.value,...o],t=!1,c.value&&c.value.collapsePullFooter()},onClickItem:e=>{p.value&&p.value.scrollToIndex({index:e,animation:!0})},isAndroid:st,isiOS:dt,onHeaderPulling:e=>{o||(console.log("onHeaderPulling",e.contentOffset),i=e.contentOffset>30?"松手,即可触发刷新":"继续下拉,触发刷新")},onFooterPulling:e=>{console.log("onFooterPulling",e)},onHeaderIdle:()=>{},onFooterIdle:()=>{},onHeaderReleased:async()=>{o||(o=!0,console.log("onHeaderReleased"),i="刷新数据中,请稍等",o=!1,i="2秒后收起",l.value&&l.value.collapsePullHeader({time:2e3}))},headerRefreshText:i,footerRefreshText:s,loadMoreDataFlag:t,pullHeader:l,pullFooter:c}}});o("./src/components/native-demo/demo-waterfall.vue?vue&type=style&index=0&id=e3752104&scoped=true&lang=css");var bt=i()(ut,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("pull-header"),i=Object(n.z)("waterfall-item"),s=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-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.isAndroid||e.isiOS?(Object(n.t)(),Object(n.d)(i,{key:1,"full-span":!0,isHeader:!0,class:"banner-view"},{default:Object(n.H)(()=>[Object(n.g)("span",null,"Banner View")]),_:1})):(Object(n.t)(),Object(n.f)("div",{key:0,class:"banner-view"},[Object(n.g)("span",null,"BannerView")])),(Object(n.t)(!0),Object(n.f)(n.a,null,Object(n.x)(e.dataSource,(t,o)=>(Object(n.t)(),Object(n.d)(i,{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)(s,{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)(i,{isFooter:!0,class:"banner-view"},{default:Object(n.H)(()=>[Object(n.g)("span",null,"Footer View")]),_:1}),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-e3752104"]]);var yt=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 vt={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:bt},demoNestedScroll:{name:"nested scroll 示例",component:i()(yt,[["render",function(e,t,o,a,r,l){const c=Object(n.z)("swiper-slide"),i=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)(i,{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 ft=Object(r.defineComponent)({name:"App",setup(){const e=Object.keys(ye).map(e=>({id:e,name:ye[e].name})),t=Object.keys(vt).map(e=>({id:e,name:vt[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 mt=i()(ft,[["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 gt=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 ht=[{path:"/",component:mt},{path:"/remote-debug",component:i()(gt,[["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(vt).map(e=>({path:"/demo/"+e,name:vt[e].name,component:vt[e].component}))];function jt(){return Object(a.createHippyRouter)({routes:ht})}},"./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 diff --git a/framework/voltron/example/assets/jsbundle/vue3/vendor-manifest.json b/framework/voltron/example/assets/jsbundle/vue3/vendor-manifest.json index 783c9df4584..4a7252c7cef 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/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 +{"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 diff --git a/framework/voltron/example/assets/jsbundle/vue3/vendor.android.js b/framework/voltron/example/assets/jsbundle/vue3/vendor.android.js index 247af7b101e..322bbcf69ae 100644 --- a/framework/voltron/example/assets/jsbundle/vue3/vendor.android.js +++ b/framework/voltron/example/assets/jsbundle/vue3/vendor.android.js @@ -1,20 +1,8 @@ -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){ +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){ /*! * @hippy/vue-next vunspecified - * (Using Vue v3.4.34 and Hippy-Vue-Next vunspecified) - * Build at: Thu Aug 01 2024 19:06:20 GMT+0800 (中国标准时间) + * (Using Vue v3.4.32 and Hippy-Vue-Next vunspecified) + * Build at: Thu Nov 14 2024 11:26:34 GMT+0800 (中国标准时间) * * Tencent is pleased to support the open source community by making * Hippy available. @@ -34,12 +22,24 @@ function r(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()) * See the License for the specific language governing permissions and * limitations under the License. */ -const o=["mode","valueType","startValue","toValue"],i=["transform"],s=["transform"];function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var s=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,s)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},d.apply(this,arguments)}function f(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&&p(e,t)}function p(e,t){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}Object.defineProperty(t,"__esModule",{value:!0});var h=n(0),m=n(7);const v={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},g=(...e)=>`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`,y="[-+]?\\d*\\.?\\d+",b={rgb:new RegExp("rgb"+g(y,y,y)),rgba:new RegExp("rgba"+g(y,y,y,y)),hsl:new RegExp("hsl"+g(y,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+g(y,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",y)),hex3:/^#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])$/,hex4:/^#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/},O=e=>{const t=parseInt(e,10);return t<0?0:t>255?255:t},_=e=>{const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},E=(e,t,n)=>{let r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e},S=(e,t,n)=>{const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=E(o,r,e+1/3),s=E(o,r,e),c=E(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*c)<<8},w=e=>(parseFloat(e)%360+360)%360/360,N=e=>{const t=parseFloat(e);return t<0?0:t>100?1:t/100};function T(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=b.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(v,e)?v[e]:(t=b.rgb.exec(e),Array.isArray(t)?(O(t[1])<<24|O(t[2])<<16|O(t[3])<<8|255)>>>0:(t=b.rgba.exec(e),t?(O(t[1])<<24|O(t[2])<<16|O(t[3])<<8|_(t[4]))>>>0:(t=b.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=b.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=b.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=b.hsl.exec(e),t?(255|S(w(t[1]),N(t[2]),N(t[3])))>>>0:(t=b.hsla.exec(e),t?(S(w(t[1]),N(t[2]),N(t[3]))|_(t[4]))>>>0:null))))))))}(e);if(null===t)throw new Error("Bad color value: "+e);return t=(t<<24|t>>>8)>>>0,t}const x={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},j={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},A="turn",C="rad",I="deg",k=/\/\*[\s\S]{0,1000}?\*\//gm;const P=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function R(e){if(Number.isInteger(e))return e;if("string"==typeof e&&e.endsWith("px")){const t=parseFloat(e.slice(0,e.indexOf("px")));Number.isNaN(t)||(e=t)}return e}function M(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=d(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(!Array.isArray(n))return"";let r="180";const[o,i,s]=n;return i&&s?r=function(e,t=I){const n=parseFloat(e);let r=e||"";const[,o]=e.split(".");switch(o&&o.length>2&&(r=n.toFixed(2)),t){case A:r=""+(360*n).toFixed(2);break;case C:r=""+(180/Math.PI*n).toFixed(2)}return r}(i,s):o&&void 0!==j[o]&&(r=j[o]),r}function L(e=""){const t=e.replace(/\s+/g," ").trim(),[n,r]=t.split(/\s+(?![^(]*?\))/),o=/^([+-]?\d+\.?\d*)%$/g;return!n||o.exec(n)||r?n&&o.exec(r)?{ratio:parseFloat(r.split("%")[0])/100,color:T(n)}:null:{color:T(n)}}function F(e,t){let n=t,r=e;if(0===t.indexOf("linear-gradient")){r="linearGradient";const e=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),o=[];n={},e.forEach((e,t)=>{if(0===t){const t=M(e);if(t)n.angle=t;else{n.angle="180";const t=L(e);t&&o.push(t)}}else{const t=L(e);t&&o.push(t)}}),n.colorStopList=o}else{const e=/(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t);e&&e.length>1&&([,n]=e)}return[r,n]}class D{constructor(){this.changeMap=new Map}addAttribute(e,t){const n=this.properties(e);n.attributes||(n.attributes=new Set),n.attributes.add(t)}addPseudoClass(e,t){const n=this.properties(e);n.pseudoClasses||(n.pseudoClasses=new Set),n.pseudoClasses.add(t)}properties(e){let t=this.changeMap.get(e);return t||this.changeMap.set(e,t={}),t}}class V{constructor(e){this.id={},this.class={},this.type={},this.universal=[],this.position=0,this.ruleSets=e,e.forEach(e=>e.lookupSort(this))}static removeFromMap(e,t,n){const r=e[t],o=r.findIndex(e=>{var t;return e.sel.ruleSet.hash===(null===(t=n.ruleSet)||void 0===t?void 0:t.hash)});-1!==o&&r.splice(o,1)}append(e){this.ruleSets=this.ruleSets.concat(e),e.forEach(e=>e.lookupSort(this))}delete(e){const t=[];this.ruleSets=this.ruleSets.filter(n=>n.hash!==e||(t.push(n),!1)),t.forEach(e=>e.removeSort(this))}query(e,t){const{tagName:n,id:r,classList:o,props:i}=e;let s=r,c=o;if(null==i?void 0:i.attributes){const{attributes:e}=i;c=new Set(((null==e?void 0:e.class)||"").split(" ").filter(e=>e.trim())),s=e.id}const a=[this.universal,this.id[s],this.type[n]];(null==c?void 0:c.size)&&c.forEach(e=>a.push(this.class[e]));const l=a.filter(e=>!!e).reduce((e,t)=>e.concat(t),[]),u=new D;return u.selectors=l.filter(n=>n.sel.accumulateChanges(e,u,t)).sort((e,t)=>e.sel.specificity-t.sel.specificity||e.pos-t.pos).map(e=>e.sel),u}removeById(e,t){V.removeFromMap(this.id,e,t)}sortById(e,t){this.addToMap(this.id,e,t)}removeByClass(e,t){V.removeFromMap(this.class,e,t)}sortByClass(e,t){this.addToMap(this.class,e,t)}removeByType(e,t){V.removeFromMap(this.type,e,t)}sortByType(e,t){this.addToMap(this.type,e,t)}removeAsUniversal(e){const t=this.universal.findIndex(t=>{var n,r;return(null===(n=t.sel.ruleSet)||void 0===n?void 0:n.hash)===(null===(r=e.ruleSet)||void 0===r?void 0:r.hash)});-1!==t&&this.universal.splice(t)}sortAsUniversal(e){this.universal.push(this.makeDocSelector(e))}addToMap(e,t,n){this.position+=1;const r=e[t];r?r.push(this.makeDocSelector(n)):e[t]=[this.makeDocSelector(n)]}makeDocSelector(e){return this.position+=1,{sel:e,pos:this.position}}}function B(e){return e?" "+e:""}function $(e,t){return t?(null==e?void 0:e.pId)&&t[e.pId]?t[e.pId]:null:null==e?void 0:e.parentNode}class U{constructor(){this.specificity=0}lookupSort(e,t){e.sortAsUniversal(null!=t?t:this)}removeSort(e,t){e.removeAsUniversal(null!=t?t:this)}}class H extends U{constructor(){super(...arguments),this.rarity=0}accumulateChanges(e,t){return this.dynamic?!!this.mayMatch(e)&&(this.trackChanges(e,t),!0):this.match(e)}match(e){return!!e}mayMatch(e){return this.match(e)}trackChanges(e,t){}}class Y extends H{constructor(e){super(),this.specificity=e.reduce((e,t)=>t.specificity+e,0),this.head=e.reduce((e,t)=>!e||e instanceof H&&t.rarity>e.rarity?t:e,null),this.dynamic=e.some(e=>e.dynamic),this.selectors=e}toString(){return`${this.selectors.join("")}${B(this.combinator)}`}match(e){return!!e&&this.selectors.every(t=>t.match(e))}mayMatch(e){return!!e&&this.selectors.every(t=>t.mayMatch(e))}trackChanges(e,t){this.selectors.forEach(n=>n.trackChanges(e,t))}lookupSort(e,t){this.head&&this.head instanceof H&&this.head.lookupSort(e,null!=t?t:this)}removeSort(e,t){this.head&&this.head instanceof H&&this.head.removeSort(e,null!=t?t:this)}}class W extends H{constructor(){super(),this.specificity=0,this.rarity=0,this.dynamic=!1}toString(){return"*"+B(this.combinator)}match(){return!0}}class z extends H{constructor(e){super(),this.specificity=65536,this.rarity=3,this.dynamic=!1,this.id=e}toString(){return`#${this.id}${B(this.combinator)}`}match(e){var t,n;return!!e&&((null===(n=null===(t=e.props)||void 0===t?void 0:t.attributes)||void 0===n?void 0:n.id)===this.id||e.id===this.id)}lookupSort(e,t){e.sortById(this.id,null!=t?t:this)}removeSort(e,t){e.removeById(this.id,null!=t?t:this)}}class K extends H{constructor(e){super(),this.specificity=1,this.rarity=1,this.dynamic=!1,this.cssType=e}toString(){return`${this.cssType}${B(this.combinator)}`}match(e){return!!e&&e.tagName===this.cssType}lookupSort(e,t){e.sortByType(this.cssType,null!=t?t:this)}removeSort(e,t){e.removeByType(this.cssType,null!=t?t:this)}}class G extends H{constructor(e){super(),this.specificity=256,this.rarity=2,this.dynamic=!1,this.className=e}toString(){return`.${this.className}${B(this.combinator)}`}match(e){var t,n,r;if(!e)return!1;const o=null!==(t=e.classList)&&void 0!==t?t:new Set(((null===(r=null===(n=e.props)||void 0===n?void 0:n.attributes)||void 0===r?void 0:r.class)||"").split(" ").filter(e=>e.trim()));return!(!o.size||!o.has(this.className))}lookupSort(e,t){e.sortByClass(this.className,null!=t?t:this)}removeSort(e,t){e.removeByClass(this.className,null!=t?t:this)}}class q extends H{constructor(e){super(),this.specificity=256,this.rarity=0,this.dynamic=!0,this.cssPseudoClass=e}toString(){return`:${this.cssPseudoClass}${B(this.combinator)}`}match(){return!1}mayMatch(){return!0}trackChanges(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}const J=(e,t)=>{var n,r,o;const i=(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n[t])||(null===(r=null==e?void 0:e.attributes)||void 0===r?void 0:r[t]);return void 0!==i?i:Array.isArray(null==e?void 0:e.styleScopeId)&&(null===(o=null==e?void 0:e.styleScopeId)||void 0===o?void 0:o.includes(t))?t:void 0};class X extends H{constructor(e,t="",n=""){super(),this.attribute="",this.test="",this.value="",this.specificity=256,this.rarity=0,this.dynamic=!0,this.attribute=e,this.test=t,this.value=n,this.match=t?n?r=>{if(!r||!(null==r?void 0:r.attributes)&&!(null==r?void 0:r.props[e]))return!1;const o=""+J(r,e);if("="===t)return o===n;if("^="===t)return o.startsWith(n);if("$="===t)return o.endsWith(n);if("*="===t)return-1!==o.indexOf(n);if("~="===t){const e=o.split(" ");return-1!==(null==e?void 0:e.indexOf(n))}return"|="===t&&(o===n||o.startsWith(n+"-"))}:()=>!1:t=>!(!t||!(null==t?void 0:t.attributes)&&!(null==t?void 0:t.props))&&!function(e){return null==e}(J(t,e))}toString(){return`[${this.attribute}${B(this.test)}${this.test&&this.value||""}]${B(this.combinator)}`}match(e){return!!e&&!e}mayMatch(){return!0}trackChanges(e,t){t.addAttribute(e,this.attribute)}}class Z extends H{constructor(e){super(),this.specificity=0,this.rarity=4,this.dynamic=!1,this.combinator=void 0,this.error=e}toString(){return``}match(){return!1}lookupSort(){return null}removeSort(){return null}}class Q{constructor(e){this.selectors=e,this.dynamic=e.some(e=>e.dynamic)}match(e){if(!e)return!1;return this.selectors.every((t,n)=>(0!==n&&(e=e.parentNode),!!e&&t.match(e)))?e:null}mayMatch(e){if(!e)return!1;return this.selectors.every((t,n)=>(0!==n&&(e=e.parentNode),!!e&&t.mayMatch(e)))?e:null}trackChanges(e,t){this.selectors.forEach((n,r)=>{0!==r&&(e=e.parentNode),e&&n.trackChanges(e,t)})}}class ee{constructor(e){this.selectors=e,this.dynamic=e.some(e=>e.dynamic)}match(e){if(!e)return!1;return this.selectors.every((t,n)=>(0!==n&&(e=e.nextSibling),!!e&&t.match(e)))?e:null}mayMatch(e){if(!e)return!1;return this.selectors.every((t,n)=>(0!==n&&(e=e.nextSibling),!!e&&t.mayMatch(e)))?e:null}trackChanges(e,t){this.selectors.forEach((n,r)=>{0!==r&&(e=e.nextSibling),e&&n.trackChanges(e,t)})}}class te extends U{constructor(e){super();const t=[void 0," ",">","+","~"];let n=[],r=[];const o=[],i=[...e],s=i.length-1;this.specificity=0,this.dynamic=!1;for(let e=s;e>=0;e--){const s=i[e];if(-1===t.indexOf(s.combinator))throw console.error(`Unsupported combinator "${s.combinator}".`),new Error(`Unsupported combinator "${s.combinator}".`);void 0!==s.combinator&&" "!==s.combinator||o.push(r=[n=[]]),">"===s.combinator&&r.push(n=[]),this.specificity+=s.specificity,s.dynamic&&(this.dynamic=!0),n.push(s)}this.groups=o.map(e=>new Q(e.map(e=>new ee(e)))),this.last=i[s]}toString(){return this.selectors.join("")}match(e,t){return!!e&&this.groups.every((n,r)=>{if(0===r)return!!(e=n.match(e));let o=$(e,t);for(;o;){if(e=n.match(o))return!0;o=$(o,t)}return!1})}lookupSort(e){this.last.lookupSort(e,this)}removeSort(e){this.last.removeSort(e,this)}accumulateChanges(e,t,n){if(!this.dynamic)return this.match(e,n);const r=[],o=this.groups.every((t,o)=>{if(0===o){const n=t.mayMatch(e);return r.push({left:e,right:e}),!!(e=n)}let i=$(e,n);for(;i;){const o=t.mayMatch(i);if(o)return r.push({left:i,right:null}),e=o,!0;i=$(i,n)}return!1});if(!o)return!1;if(!t)return o;for(let e=0;e(e.ruleSet=this,null)),this.selectors=e,this.declarations=t,this.hash=n}toString(){return`${this.selectors.join(", ")} {${this.declarations.map((e,t)=>`${0===t?" ":""}${e.property}: ${e.value}`).join("; ")}}`}lookupSort(e){this.selectors.forEach(t=>t.lookupSort(e))}removeSort(e){this.selectors.forEach(t=>t.removeSort(e))}}const re=(()=>{try{return!!new RegExp("foo","y")}catch(e){return!1}})(),oe={whiteSpaceRegEx:"\\s*",universalSelectorRegEx:"\\*",simpleIdentifierSelectorRegEx:"(#|\\.|:|\\b)([_-\\w][_-\\w\\d]*)",attributeSelectorRegEx:"\\[\\s*([_-\\w][_-\\w\\d]*)\\s*(?:(=|\\^=|\\$=|\\*=|\\~=|\\|=)\\s*(?:([_-\\w][_-\\w\\d]*)|\"((?:[^\\\\\"]|\\\\(?:\"|n|r|f|\\\\|0-9a-f))*)\"|'((?:[^\\\\']|\\\\(?:'|n|r|f|\\\\|0-9a-f))*)')\\s*)?\\]",combinatorRegEx:"\\s*(\\+|~|>)?\\s*"},ie={};function se(e,t,n){let r="";re&&(r="gy"),ie[e]||(ie[e]=new RegExp(oe[e],r));const o=ie[e];let i;if(re)o.lastIndex=n,i=o.exec(t);else{if(t=t.slice(n,t.length),i=o.exec(t),!i)return{result:null,regexp:o};o.lastIndex=n+i[0].length}return{result:i,regexp:o}}function ce(e,t){var n,r;return null!==(r=null!==(n=function(e,t){const{result:n,regexp:r}=se("universalSelectorRegEx",e,t);return n?{value:{type:"*"},start:t,end:r.lastIndex}:null}(e,t))&&void 0!==n?n:function(e,t){const{result:n,regexp:r}=se("simpleIdentifierSelectorRegEx",e,t);if(!n)return null;const o=r.lastIndex;return{value:{type:n[1],identifier:n[2]},start:t,end:o}}(e,t))&&void 0!==r?r:function(e,t){const{result:n,regexp:r}=se("attributeSelectorRegEx",e,t);if(!n)return null;const o=r.lastIndex,i=n[1];if(n[2]){return{value:{type:"[]",property:i,test:n[2],value:n[3]||n[4]||n[5]},start:t,end:o}}return{value:{type:"[]",property:i},start:t,end:o}}(e,t)}function ae(e,t){let n=ce(e,t);if(!n)return null;let{end:r}=n;const o=[];for(;n;)o.push(n.value),({end:r}=n),n=ce(e,r);return{start:t,end:r,value:o}}function le(e,t){const{result:n,regexp:r}=se("combinatorRegEx",e,t);if(!n)return null;let o;o=re?r.lastIndex:t;return{start:t,end:o,value:n[1]||" "}}const ue=e=>e;function de(e){return"declaration"===e.type}function fe(e){return t=>e(t)}function pe(e){switch(e.type){case"*":return new W;case"#":return new z(e.identifier);case"":return new K(e.identifier.replace(/-/,"").toLowerCase());case".":return new G(e.identifier);case":":return new q(e.identifier);case"[]":return e.test?new X(e.property,e.test,e.value):new X(e.property);default:return new Z(new Error("Unknown selector."))}}function he(e){return 0===e.length?new Z(new Error("Empty simple selector sequence.")):1===e.length?pe(e[0]):new Y(e.map(pe))}function me(e){try{const t=function(e,t){let n=t;const{result:r,regexp:o}=se("whiteSpaceRegEx",e,t);r&&(n=o.lastIndex);const i=[];let s,c,a=!0,l=[void 0,void 0];return c=re?[e]:e.split(" "),c.forEach(e=>{if(!re){if(""===e)return;n=0}do{const t=ae(e,n);if(!t){if(a)return;break}({end:n}=t),s&&(l[1]=s.value),l=[t.value,void 0],i.push(l),s=le(e,n),s&&({end:n}=s),a=!(!s||" "===s.value)}while(s)}),{start:t,end:n,value:i}}(e,0);return t?function(e){if(0===e.length)return new Z(new Error("Empty selector."));if(1===e.length)return he(e[0][0]);const t=[];for(const n of e){const e=he(n[0]),r=n[1];r&&e&&(e.combinator=r),t.push(e)}return new te(t)}(t.value):new Z(new Error("Empty selector"))}catch(e){return new Z(e)}}let ve;function ge(e){var t;return!e||!(null===(t=null==e?void 0:e.ruleSets)||void 0===t?void 0:t.length)}function ye(t,n){if(t){if(!ge(ve))return ve;const e=function(e=[],t){return e.map(e=>{let n=e[0],r=e[1];return r=r.map(e=>{const[t,n]=e;return{type:"declaration",property:t,value:n}}).map(fe(null!=t?t:ue)),n=n.map(me),new ne(n,r,"")})}(t,n);return ve=new V(e),ve}const r=e[be];if(ge(ve)||r){const t=function(e=[],t){return e.map(e=>{if(!Array.isArray(e))return e;const[t,n,r]=e;return{hash:t,selectors:n,declarations:r.map(([e,t])=>({type:"declaration",property:e,value:t}))}}).map(e=>{const n=e.declarations.filter(de).map(fe(null!=t?t:ue)),r=e.selectors.map(me);return new ne(r,n,e.hash)})}(r);ve?ve.append(t):ve=new V(t),e[be]=void 0}return e[Oe]&&(e[Oe].forEach(e=>{ve.delete(e)}),e[Oe]=void 0),ve}const be="__HIPPY_VUE_STYLES__",Oe="__HIPPY_VUE_DISPOSE_STYLES__";let _e=Object.create(null);const Ee={$on:(e,t,n)=>(Array.isArray(e)?e.forEach(e=>{Ee.$on(e,t,n)}):(_e[e]||(_e[e]=[]),_e[e].push({fn:t,ctx:n})),Ee),$once(e,t,n){function r(...o){Ee.$off(e,r),t.apply(n,o)}return r._=t,Ee.$on(e,r),Ee},$emit(e,...t){const n=(_e[e]||[]).slice(),r=n.length;for(let e=0;e{Ee.$off(e,t)}),Ee;const n=_e[e];if(!n)return Ee;if(!t)return _e[e]=null,Ee;let r;const o=n.length;for(let e=0;ee;function Pe(){return ke}let Re=(e,t)=>{};function Me(e,t){const n=new Map;return Array.isArray(e)?e.forEach(([e,t])=>{n.set(e,t),n.set(t,e)}):(n.set(e,t),n.set(t,e)),n}function Le(e){let t=e;return/^assets/.test(t)&&(t="hpfile://./"+t),t}function Fe(e){return"on"+h.capitalize(e)}function De(e){const t={};return e.forEach(e=>{if(Array.isArray(e)){const n=Fe(e[0]),r=Fe(e[1]);Object.prototype.hasOwnProperty.call(this.$attrs,n)&&(this.$attrs[r]||(t[r]=this.$attrs[n]))}}),t}function Ve(e,t){return!(!t||!e)&&e.match(t)}function Be(e){return e.split(" ").filter(e=>e.trim())}var $e;const Ue=["%c[native]%c","color: red","color: auto"],He={},{bridge:{callNative:Ye,callNativeWithPromise:We,callNativeWithCallbackId:ze},device:{platform:{OS:Ke,Localization:Ge={}},screen:{scale:qe}},device:Je,document:Xe,register:Ze,asyncStorage:Qe}=null!==($e=e.Hippy)&&void 0!==$e?$e:{device:{platform:{Localization:{}},window:{},screen:{}},bridge:{},register:{},document:{},asyncStorage:{}},et=async(e,t)=>{const n={top:-1,left:-1,bottom:-1,right:-1,width:-1,height:-1};if(!e.isMounted||!e.nodeId)return Promise.resolve(n);const{nodeId:r}=e;return xe(...Ue,"callUIFunction",{nodeId:r,funcName:t,params:[]}),new Promise(e=>Xe.callUIFunction(r,t,[],t=>{if(!t||"object"!=typeof t||void 0===r)return e(n);const{x:o,y:i,height:s,width:c}=t;return e({top:i,left:o,width:c,height:s,bottom:i+s,right:o+c})}))},tt=new Map,nt={Localization:Ge,hippyNativeDocument:Xe,hippyNativeRegister:Ze,Platform:Ke,PixelRatio:qe,ConsoleModule:e.ConsoleModule||e.console,callNative:Ye,callNativeWithPromise:We,callNativeWithCallbackId:ze,AsyncStorage:Qe,callUIFunction(...e){const[t,n,...r]=e;if(!(null==t?void 0:t.nodeId))return;const{nodeId:o}=t;let[i=[],s]=r;"function"==typeof i&&(s=i,i=[]),xe(...Ue,"callUIFunction",{nodeId:o,funcName:n,params:i}),Xe.callUIFunction(o,n,i,s)},Clipboard:{getString(){return nt.callNativeWithPromise.call(this,"ClipboardModule","getString")},setString(e){nt.callNative.call(this,"ClipboardModule","setString",e)}},Cookie:{getAll(e){if(!e)throw new TypeError("Native.Cookie.getAll() must have url argument");return nt.callNativeWithPromise.call(this,"network","getCookie",e)},set(e,t,n){if(!e)throw new TypeError("Native.Cookie.set() must have url argument");let r="";n&&(r=n.toUTCString()),nt.callNative.call(this,"network","setCookie",e,t,r)}},ImageLoader:{getSize(e){return nt.callNativeWithPromise.call(this,"ImageLoaderModule","getSize",e)},prefetch(e){nt.callNative.call(this,"ImageLoaderModule","prefetch",e)}},get Dimensions(){const{screen:e}=Je,{statusBarHeight:t}=e;return{window:Je.window,screen:l(l({},e),{},{statusBarHeight:t})}},get Device(){var t;return void 0===He.Device&&(nt.isIOS()?(null===(t=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.Device)?He.Device=e.__HIPPYNATIVEGLOBAL__.Device:He.Device="iPhone":nt.isAndroid()?He.Device="Android device":He.Device="Unknown device"),He.Device},get screenIsVertical(){return nt.Dimensions.window.width"android"===nt.Platform,isIOS:()=>"ios"===nt.Platform,measureInWindow:e=>et(e,"measureInWindow"),measureInAppWindow:e=>nt.isAndroid()?et(e,"measureInWindow"):et(e,"measureInAppWindow"),getBoundingClientRect(e,t){const{nodeId:n}=e;return new Promise((r,o)=>{if(!e.isMounted||!n)return o(new Error(`getBoundingClientRect cannot get nodeId of ${e} or ${e} is not mounted`));xe(...Ue,"UIManagerModule",{nodeId:n,funcName:"getBoundingClientRect",params:t}),Xe.callUIFunction(n,"getBoundingClientRect",[t],e=>{if(!e||e.errMsg)return o(new Error((null==e?void 0:e.errMsg)||"getBoundingClientRect error with no response"));const{x:t,y:n,width:i,height:s}=e;let c=void 0,a=void 0;return"number"==typeof n&&"number"==typeof s&&(c=n+s),"number"==typeof t&&"number"==typeof i&&(a=t+i),r({x:t,y:n,width:i,height:s,bottom:c,right:a,left:t,top:n})})})},NetInfo:{fetch:()=>nt.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(({network_info:e})=>e),addEventListener(e,t){let n=e;return"change"===n&&(n="networkStatusDidChange"),0===tt.size&&nt.callNative("NetInfo","addListener",n),Ee.$on(n,t),tt.set(t,t),{eventName:e,listener:t,remove(){this.eventName&&this.listener&&(nt.NetInfo.removeEventListener(this.eventName,this.listener),this.listener=void 0)}}},removeEventListener(e,t){if(null==t?void 0:t.remove)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange"),tt.size<=1&&nt.callNative("NetInfo","removeListener",n);const r=tt.get(t);r&&(Ee.$off(n,r),tt.delete(t),tt.size<1&&nt.callNative("NetInfo","removeListener",n))}},get isIPhoneX(){if(void 0===He.isIPhoneX){let e=!1;nt.isIOS()&&(e=20!==nt.Dimensions.screen.statusBarHeight),He.isIPhoneX=e}return He.isIPhoneX},get OnePixel(){if(void 0===He.OnePixel){const e=nt.PixelRatio;let t=Math.round(.4*e)/e;t||(t=1/e),He.OnePixel=t}return He.OnePixel},get APILevel(){var t,n;return nt.isAndroid()&&(null===(n=null===(t=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.Platform)||void 0===n?void 0:n.APILevel)?e.__HIPPYNATIVEGLOBAL__.Platform.APILevel:(je(),null)},get OSVersion(){var t;return nt.isIOS()&&(null===(t=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.OSVersion)?e.__HIPPYNATIVEGLOBAL__.OSVersion:null},get SDKVersion(){var t,n;return nt.isIOS()&&(null===(t=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.OSVersion)?null===(n=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===n?void 0:n.SDKVersion:null},parseColor(e){var t;if(Number.isInteger(e))return e;const n=null!==(t=He.COLOR_PARSER)&&void 0!==t?t:He.COLOR_PARSER=Object.create(null);return n[e]||(n[e]=T(e)),n[e]},getElemCss(e){const t=Object.create(null);try{ye(void 0,Pe()).query(e).selectors.forEach(n=>{Ve(n,e)&&n.ruleSet.declarations.forEach(e=>{t[e.property]=e.value})})}catch(e){je()}return t},version:"unspecified"},rt=new Set;let ot=!1;const it={exitApp(){nt.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(ot||(ot=!0,it.initEventListener()),nt.callNative("DeviceEventModule","setListenBackPress",!0),rt.add(e),{remove(){it.removeListener(e)}}),removeListener(e){rt.delete(e),0===rt.size&&nt.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){Ee.$on("hardwareBackPress",()=>{let e=!0;Array.from(rt).reverse().forEach(t=>{"function"==typeof t&&t()&&(e=!1)}),e&&it.exitApp()})}},st={exitApp(){},addListener:()=>({remove(){}}),removeListener(){},initEventListener(){}},ct=nt.isAndroid()?it:st,at=new Map;function lt(e,t){if(!e)throw new Error("tagName can not be empty");const n=Ae(e);at.has(n)||at.set(n,t.component)}function ut(e){const t=Ae(e),n=h.camelize(e).toLowerCase();return at.get(t)||at.get(n)}const dt=new Map,ft={number:"numeric",text:"default",search:"web-search"},pt={role:"accessibilityRole","aria-label":"accessibilityLabel","aria-disabled":{jointKey:"accessibilityState",name:"disabled"},"aria-selected":{jointKey:"accessibilityState",name:"selected"},"aria-checked":{jointKey:"accessibilityState",name:"checked"},"aria-busy":{jointKey:"accessibilityState",name:"busy"},"aria-expanded":{jointKey:"accessibilityState",name:"expanded"},"aria-valuemin":{jointKey:"accessibilityValue",name:"min"},"aria-valuemax":{jointKey:"accessibilityValue",name:"max"},"aria-valuenow":{jointKey:"accessibilityValue",name:"now"},"aria-valuetext":{jointKey:"accessibilityValue",name:"text"}},ht={component:{name:we.View,eventNamesMap:Me([["touchStart","onTouchDown"],["touchstart","onTouchDown"],["touchmove","onTouchMove"],["touchend","onTouchEnd"],["touchcancel","onTouchCancel"]]),attributeMaps:l({},pt),processEventData(e,t){var n,r;const{handler:o,__evt:i}=e;switch(i){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":o.offsetX=null===(n=t.contentOffset)||void 0===n?void 0:n.x,o.offsetY=null===(r=t.contentOffset)||void 0===r?void 0:r.y,(null==t?void 0:t.contentSize)&&(o.scrollHeight=t.contentSize.height,o.scrollWidth=t.contentSize.width);break;case"onTouchDown":case"onTouchMove":case"onTouchEnd":case"onTouchCancel":o.touches={0:{clientX:t.page_x,clientY:t.page_y},length:1};break;case"onFocus":o.isFocused=t.focus}return o}}},mt={component:{name:we.View,attributeMaps:ht.component.attributeMaps,eventNamesMap:ht.component.eventNamesMap,processEventData:ht.component.processEventData}},vt={component:{name:we.View}},gt={component:{name:we.Image,eventNamesMap:ht.component.eventNamesMap,processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onTouchDown":case"onTouchMove":case"onTouchEnd":case"onTouchCancel":n.touches={0:{clientX:t.page_x,clientY:t.page_y},length:1};break;case"onFocus":n.isFocused=t.focus;break;case"onLoad":{const{width:e,height:r,url:o}=t;n.width=e,n.height=r,n.url=o;break}}return n},defaultNativeStyle:{backgroundColor:0},attributeMaps:l({placeholder:{name:"defaultSource",propsValue(e){const t=Le(e);return(null==t?void 0:t.indexOf(Se))<0&&["https://","http://"].some(e=>0===t.indexOf(e))&&je(),t}},src:e=>Le(e)},pt)}},yt={component:{name:we.ListView,defaultNativeStyle:{flex:1},attributeMaps:l({},pt),eventNamesMap:Me("listReady","initialListReady"),processEventData(e,t){var n,r;const{handler:o,__evt:i}=e;switch(i){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":o.offsetX=null===(n=t.contentOffset)||void 0===n?void 0:n.x,o.offsetY=null===(r=t.contentOffset)||void 0===r?void 0:r.y;break;case"onDelete":o.index=t.index}return o}}},bt={component:{name:we.ListViewItem,attributeMaps:l({},pt),eventNamesMap:Me([["disappear","onDisappear"]])}},Ot={component:{name:we.Text,attributeMaps:ht.component.attributeMaps,eventNamesMap:ht.component.eventNamesMap,processEventData:ht.component.processEventData,defaultNativeProps:{text:""},defaultNativeStyle:{color:4278190080}}},_t=Ot,Et=Ot,St={component:l(l({},Ot.component),{},{defaultNativeStyle:{color:4278190318},attributeMaps:{href:{name:"href",propsValue:e=>["//","http://","https://"].filter(t=>0===e.indexOf(t)).length?(je(),""):e}}})},wt={component:{name:we.TextInput,attributeMaps:l({type:{name:"keyboardType",propsValue(e){const t=ft[e];return t||e}},disabled:{name:"editable",propsValue:e=>!e},value:"defaultValue",maxlength:"maxLength"},pt),nativeProps:{numberOfLines:1,multiline:!1},defaultNativeProps:{underlineColorAndroid:0},defaultNativeStyle:{padding:0,color:4278190080},eventNamesMap:Me([["change","onChangeText"],["select","onSelectionChange"]]),processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onChangeText":case"onEndEditing":n.value=t.text;break;case"onSelectionChange":n.start=t.selection.start,n.end=t.selection.end;break;case"onKeyboardWillShow":n.keyboardHeight=t.keyboardHeight;break;case"onContentSizeChange":n.width=t.contentSize.width,n.height=t.contentSize.height}return n}}},Nt={component:{name:we.TextInput,defaultNativeProps:l(l({},wt.component.defaultNativeProps),{},{numberOfLines:5}),attributeMaps:l(l({},wt.component.attributeMaps),{},{rows:"numberOfLines"}),nativeProps:{multiline:!0},defaultNativeStyle:wt.component.defaultNativeStyle,eventNamesMap:wt.component.eventNamesMap,processEventData:wt.component.processEventData}},Tt={component:{name:we.WebView,defaultNativeProps:{method:"get",userAgent:""},attributeMaps:{src:{name:"source",propsValue:e=>({uri:e})}},processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onLoad":case"onLoadStart":n.url=t.url;break;case"onLoadEnd":n.url=t.url,n.success=t.success,n.error=t.error}return n}}};dt.set("div",ht),dt.set("button",mt),dt.set("form",vt),dt.set("img",gt),dt.set("ul",yt),dt.set("li",bt),dt.set("span",Ot),dt.set("label",_t),dt.set("p",Et),dt.set("a",St),dt.set("input",wt),dt.set("textarea",Nt),dt.set("iframe",Tt);var xt={install(){dt.forEach((e,t)=>{lt(t,e)})}};function jt(){const{Localization:e}=nt;return!!e&&1===e.direction}const At=0,Ct=1,It={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"},kt={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3};const Pt="addEventListener",Rt="removeEventListener";let Mt;function Lt(){return Mt}function Ft(e,t){Mt[e]=t}class Dt{constructor(e){this.target=null,this.currentTarget=null,this.originalTarget=null,this.bubbles=!0,this.cancelable=!0,this.eventPhase=0,this.isCanceled=!1,this.type=e,this.timeStamp=Date.now()}get canceled(){return this.isCanceled}stopPropagation(){this.bubbles=!1}preventDefault(){if(this.cancelable){if(this.isCanceled)return;this.isCanceled=!0}}}class Vt extends Dt{}function Bt(e){return"string"==typeof e.value}const $t=new Map;function Ut(e,t){$t.set(t,e)}function Ht(e){$t.delete(e)}function Yt(e){return $t.get(e)||null}function Wt(t){var n,r;n=e=>{(e.timeRemaining()>0||e.didTimeout)&&function e(t){var n;"number"==typeof t?Ht(t):t&&(Ht(t.nodeId),null===(n=t.childNodes)||void 0===n||n.forEach(t=>e(t)))}(t)},r={timeout:50},e.requestIdleCallback?e.requestIdleCallback(n,r):setTimeout(()=>{n({didTimeout:!1,timeRemaining:()=>1/0})},1)}function zt(e=[],t=0){let n=e[t];for(let r=t;r-1){let e;if("onLayout"===o){e=new Vt(i),Object.assign(e,{eventPhase:c,nativeParams:null!=s?s:{}});const{layout:{x:t,y:n,height:r,width:o}}=s;e.top=n,e.left=t,e.bottom=n+r,e.right=t+o,e.width=o,e.height=r}else{e=new Dt(i),Object.assign(e,{eventPhase:c,nativeParams:null!=s?s:{}});const{processEventData:t}=l.component;t&&t({__evt:o,handler:e},s)}a.dispatchEvent(function(e,t,n){return function(e){return["onTouchDown","onTouchMove","onTouchEnd","onTouchCancel"].indexOf(e)>=0}(e)&&Object.assign(t,{touches:{0:{clientX:n.page_x,clientY:n.page_y},length:1}}),t}(o,e,s),l,t)}}catch(e){console.error("receiveComponentEvent error",e)}else je(...Gt,"receiveComponentEvent","currentTargetNode or targetNode not exist")}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=qt);class Jt{constructor(){this.listeners={}}static indexOfListener(e,t,n){return e.findIndex(e=>n?e.callback===t&&h.looseEqual(e.options,n):e.callback===t)}addEventListener(e,t,n){const r=e.split(","),o=r.length;for(let e=0;e=0&&e.splice(r,1),e.length||(this.listeners[o]=void 0)}}}else this.listeners[o]=void 0}}emitEvent(e){var t,n;const{type:r}=e,o=this.listeners[r];if(o)for(let r=o.length-1;r>=0;r-=1){const i=o[r];(null===(t=i.options)||void 0===t?void 0:t.once)&&o.splice(r,1),(null===(n=i.options)||void 0===n?void 0:n.thisArg)?i.callback.apply(i.options.thisArg,[e]):i.callback(e)}}getEventListenerList(){return this.listeners}}var Xt;!function(e){e[e.CREATE=0]="CREATE",e[e.UPDATE=1]="UPDATE",e[e.DELETE=2]="DELETE",e[e.MOVE=3]="MOVE",e[e.UPDATE_EVENT=4]="UPDATE_EVENT"}(Xt||(Xt={}));let Zt=!1,Qt=[];function en(e=[],t){e.forEach(e=>{if(e){const{id:n,eventList:r}=e;r.forEach(e=>{const{name:r,type:o,listener:i}=e;let s;s=function(e){return!!It[e]}(r)?It[r]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(r),o===Ct&&t.removeEventListener(n,s,i),o===At&&(t.removeEventListener(n,s,i),t.addEventListener(n,s,i))})}})}function tn(e,t){0}function nn(){Zt||(Zt=!0,0!==Qt.length?m.nextTick().then(()=>{const t=function(e){const t=[];for(const n of e){const{type:e,nodes:r,eventNodes:o,printedNodes:i}=n,s=t[t.length-1];s&&s.type===e?(s.nodes=s.nodes.concat(r),s.eventNodes=s.eventNodes.concat(o),s.printedNodes=s.printedNodes.concat(i)):t.push({type:e,nodes:r,eventNodes:o,printedNodes:i})}return t}(Qt),{rootViewId:n}=Lt(),r=new e.Hippy.SceneBuilder(n);t.forEach(e=>{switch(e.type){case Xt.CREATE:tn(e.printedNodes),r.create(e.nodes,!0),en(e.eventNodes,r);break;case Xt.UPDATE:tn(e.printedNodes),r.update(e.nodes),en(e.eventNodes,r);break;case Xt.DELETE:tn(e.printedNodes),r.delete(e.nodes);break;case Xt.MOVE:tn(e.printedNodes),r.move(e.nodes);break;case Xt.UPDATE_EVENT:en(e.eventNodes,r)}}),r.build(),Zt=!1,Qt=[]}):Zt=!1)}var rn;function on(e){let t;const n=e.events;if(n){const r=[];Object.keys(n).forEach(e=>{const{name:t,type:o,isCapture:i,listener:s}=n[e];r.push({name:t,type:o,isCapture:i,listener:s})}),t={id:e.nodeId,eventList:r}}return t}!function(e){e[e.ElementNode=1]="ElementNode",e[e.TextNode=3]="TextNode",e[e.CommentNode=8]="CommentNode",e[e.DocumentNode=4]="DocumentNode"}(rn||(rn={}));class sn extends Jt{constructor(e,t){var n;super(),this.isMounted=!1,this.events={},this.childNodes=[],this.parentNode=null,this.prevSibling=null,this.nextSibling=null,this.tagComponent=null,this.nodeId=null!==(n=null==t?void 0:t.id)&&void 0!==n?n:sn.getUniqueNodeId(),this.nodeType=e,this.isNeedInsertToNative=function(e){return e===rn.ElementNode}(e),(null==t?void 0:t.id)&&(this.isMounted=!0)}static getUniqueNodeId(){return e.hippyUniqueId||(e.hippyUniqueId=0),e.hippyUniqueId+=1,e.hippyUniqueId%10==0&&(e.hippyUniqueId+=1),e.hippyUniqueId}get firstChild(){return this.childNodes.length?this.childNodes[0]:null}get lastChild(){const e=this.childNodes.length;return e?this.childNodes[e-1]:null}get component(){return this.tagComponent}get index(){let e=0;if(this.parentNode){e=this.parentNode.childNodes.filter(e=>e.isNeedInsertToNative).indexOf(this)}return e}isRootNode(){return 1===this.nodeId}hasChildNodes(){return!!this.childNodes.length}insertBefore(e,t){const n=e,r=t;if(!n)throw new Error("No child to insert");if(!r)return void this.appendChild(n);if(n.parentNode&&n.parentNode!==this)throw new Error("Can not insert child, because the child node is already has a different parent");let o=this;r.parentNode!==this&&(o=r.parentNode);const i=o.childNodes.indexOf(r);let s=r;r.isNeedInsertToNative||(s=zt(this.childNodes,i)),n.parentNode=o,n.nextSibling=r,n.prevSibling=o.childNodes[i-1],o.childNodes[i-1]&&(o.childNodes[i-1].nextSibling=n),r.prevSibling=n,o.childNodes.splice(i,0,n),s.isNeedInsertToNative?this.insertChildNativeNode(n,{refId:s.nodeId,relativeToRef:Kt}):this.insertChildNativeNode(n)}moveChild(e,t){const n=e,r=t;if(!n)throw new Error("No child to move");if(!r)return void this.appendChild(n);if(r.parentNode&&r.parentNode!==this)throw new Error("Can not move child, because the anchor node is already has a different parent");if(n.parentNode&&n.parentNode!==this)throw new Error("Can't move child, because it already has a different parent");const o=this.childNodes.indexOf(n),i=this.childNodes.indexOf(r);let s=r;if(r.isNeedInsertToNative||(s=zt(this.childNodes,i)),i===o)return;n.nextSibling=r,n.prevSibling=r.prevSibling,r.prevSibling=n,this.childNodes[i-1]&&(this.childNodes[i-1].nextSibling=n),this.childNodes[i+1]&&(this.childNodes[i+1].prevSibling=n),this.childNodes[o-1]&&(this.childNodes[o-1].nextSibling=this.childNodes[o+1]),this.childNodes[o+1]&&(this.childNodes[o+1].prevSibling=this.childNodes[o-1]),this.childNodes.splice(o,1);const c=this.childNodes.indexOf(r);this.childNodes.splice(c,0,n),s.isNeedInsertToNative?this.moveChildNativeNode(n,{refId:s.nodeId,relativeToRef:Kt}):this.insertChildNativeNode(n)}appendChild(e,t=!1){const n=e;if(!n)throw new Error("No child to append");this.lastChild!==n&&(n.parentNode&&n.parentNode!==this?n.parentNode.removeChild(n):(n.isMounted&&!t&&this.removeChild(n),n.parentNode=this,this.lastChild&&(n.prevSibling=this.lastChild,this.lastChild.nextSibling=n),this.childNodes.push(n),t?Ut(n,n.nodeId):this.insertChildNativeNode(n)))}removeChild(e){const t=e;if(!t)throw new Error("Can't remove child.");if(!t.parentNode)throw new Error("Can't remove child, because it has no parent.");if(t.parentNode!==this)return void t.parentNode.removeChild(t);if(!t.isNeedInsertToNative)return;t.prevSibling&&(t.prevSibling.nextSibling=t.nextSibling),t.nextSibling&&(t.nextSibling.prevSibling=t.prevSibling),t.prevSibling=null,t.nextSibling=null;const n=this.childNodes.indexOf(t);this.childNodes.splice(n,1),this.removeChildNativeNode(t)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(const t of this.childNodes){const n=this.findChild.call(t,e);if(n)return n}return null}eachNode(e){e&&e(this),this.childNodes.length&&this.childNodes.forEach(t=>{this.eachNode.call(t,e)})}insertChildNativeNode(e,t={}){if(!e||!e.isNeedInsertToNative)return;const n=this.isRootNode()&&!this.isMounted,r=this.isMounted&&!e.isMounted;if(n||r){const r=n?this:e;!function([e,t,n]){Qt.push({type:Xt.CREATE,nodes:e,eventNodes:t,printedNodes:n}),nn()}(r.convertToNativeNodes(!0,t)),r.eachNode(e=>{const t=e;!t.isMounted&&t.isNeedInsertToNative&&(t.isMounted=!0),Ut(t,t.nodeId)})}}moveChildNativeNode(e,t={}){if(!e||!e.isNeedInsertToNative)return;if(t&&t.refId===e.nodeId)return;!function([e,,t]){e&&(Qt.push({type:Xt.MOVE,nodes:e,eventNodes:[],printedNodes:t}),nn())}(e.convertToNativeNodes(!1,t))}removeChildNativeNode(e){if(!e||!e.isNeedInsertToNative)return;const t=e;t.isMounted&&(t.isMounted=!1,function([e,,t]){e&&(Qt.push({type:Xt.DELETE,nodes:e,eventNodes:[],printedNodes:t}),nn())}(t.convertToNativeNodes(!1,{})))}updateNativeNode(e=!1){if(!this.isMounted)return;!function([e,t,n]){e&&(Qt.push({type:Xt.UPDATE,nodes:e,eventNodes:t,printedNodes:n}),nn())}(this.convertToNativeNodes(e,{}))}updateNativeEvent(){if(!this.isMounted)return;!function(e){Qt.push({type:Xt.UPDATE_EVENT,nodes:[],eventNodes:[e],printedNodes:[]}),nn()}(on(this))}convertToNativeNodes(e,t={},n){var r,o;if(!this.isNeedInsertToNative)return[[],[],[]];if(e){const e=[],n=[],r=[];return this.eachNode(o=>{const[i,s,c]=o.convertToNativeNodes(!1,t);Array.isArray(i)&&i.length&&e.push(...i),Array.isArray(s)&&s.length&&n.push(...s),Array.isArray(c)&&c.length&&r.push(...c)}),[e,n,r]}if(!this.component)throw new Error("tagName is not supported yet");const{rootViewId:i}=Lt(),s=null!=n?n:{},c=l({id:this.nodeId,pId:null!==(o=null===(r=this.parentNode)||void 0===r?void 0:r.nodeId)&&void 0!==o?o:i},s),a=on(this);let u=void 0;return[[[c,t]],[a],[u]]}}class cn extends sn{constructor(e,t){super(rn.TextNode,t),this.text=e,this.data=e,this.isNeedInsertToNative=!1}setText(e){this.text=e,this.parentNode&&this.parentNode.nodeType===rn.ElementNode&&this.parentNode.setText(e)}}function an(e,t){if("string"!=typeof e)return;const n=e.split(",");for(let e=0,r=n.length;e{t[n]=function(e){let t=e;if("string"!=typeof t||!t.endsWith("rem"))return t;if(t=parseFloat(t),Number.isNaN(t))return e;const{ratioBaseWidth:n}=Lt(),{width:r}=nt.Dimensions.screen;return 100*t*(r/n)}(e[n])}):t=e,t}get component(){return this.tagComponent||(this.tagComponent=ut(this.tagName)),this.tagComponent}isRootNode(){const{rootContainer:e}=Lt();return super.isRootNode()||this.id===e}appendChild(e,t=!1){e instanceof cn&&this.setText(e.text,{notToNative:!0}),super.appendChild(e,t)}insertBefore(e,t){e instanceof cn&&this.setText(e.text,{notToNative:!0}),super.insertBefore(e,t)}moveChild(e,t){e instanceof cn&&this.setText(e.text,{notToNative:!0}),super.moveChild(e,t)}removeChild(e){e instanceof cn&&this.setText("",{notToNative:!0}),super.removeChild(e)}hasAttribute(e){return!!this.attributes[e]}getAttribute(e){return this.attributes[e]}removeAttribute(e){delete this.attributes[e]}setAttribute(e,t,n={}){let r=t,o=e;try{if("boolean"==typeof this.attributes[o]&&""===r&&(r=!0),void 0===o)return void(!n.notToNative&&this.updateNativeNode());switch(o){case"class":{const e=new Set(Be(r));if(function(e,t){if(e.size!==t.size)return!1;const n=e.values();let r=n.next().value;for(;r;){if(!t.has(r))return!1;r=n.next().value}return!0}(this.classList,e))return;return this.classList=e,void(!n.notToNative&&this.updateNativeNode(!0))}case"id":if(r===this.id)return;return this.id=r,void(!n.notToNative&&this.updateNativeNode(!0));case"text":case"value":case"defaultValue":case"placeholder":if("string"!=typeof r)try{r=r.toString()}catch(e){je(e.message)}n&&n.textUpdate||(r="string"!=typeof(i=r)?i:void 0===Te||Te?i.trim():i),r=r.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)));break;case"numberOfRows":if(!nt.isIOS())return;break;case"caretColor":case"caret-color":o="caret-color",r=nt.parseColor(r);break;case"break-strategy":o="breakStrategy";break;case"placeholderTextColor":case"placeholder-text-color":o="placeholderTextColor",r=nt.parseColor(r);break;case"underlineColorAndroid":case"underline-color-android":o="underlineColorAndroid",r=nt.parseColor(r);break;case"nativeBackgroundAndroid":{const e=r;void 0!==e.color&&(e.color=nt.parseColor(e.color)),o="nativeBackgroundAndroid",r=e;break}}if(this.attributes[o]===r)return;this.attributes[o]=r,"function"==typeof this.filterAttribute&&this.filterAttribute(this.attributes),!n.notToNative&&this.updateNativeNode()}catch(e){0}var i}setText(e,t={}){return this.setAttribute("text",e,{notToNative:!!t.notToNative})}removeStyle(e=!1){this.style={},e||this.updateNativeNode()}setStyles(e){e&&"object"==typeof e&&(Object.keys(e).forEach(t=>{const n=e[t];this.setStyle(t,n,!0)}),this.updateNativeNode())}setStyle(e,t,n=!1){if(void 0===t)return delete this.style[e],void(n||this.updateNativeNode());let{property:r,value:o}=this.beforeLoadStyle({property:e,value:t});switch(r){case"fontWeight":"string"!=typeof o&&(o=o.toString());break;case"backgroundImage":[r,o]=F(r,o);break;case"textShadowOffsetX":case"textShadowOffsetY":[r,o]=function(e,t=0,n){var r;const o=n;return o.textShadowOffset=null!==(r=o.textShadowOffset)&&void 0!==r?r:{},Object.assign(o.textShadowOffset,{[{textShadowOffsetX:"width",textShadowOffsetY:"height"}[e]]:t}),["textShadowOffset",o.textShadowOffset]}(r,o,this.style);break;case"textShadowOffset":{const{x:e=0,width:t=0,y:n=0,height:r=0}=null!=o?o:{};o={width:e||t,height:n||r};break}default:Object.prototype.hasOwnProperty.call(x,r)&&(r=x[r]),"string"==typeof o&&(o=o.trim(),o=r.toLowerCase().indexOf("color")>=0?nt.parseColor(o):o.endsWith("px")?parseFloat(o.slice(0,o.length-2)):function(e){if("number"==typeof e)return e;if(Ie.test(e))try{return parseFloat(e)}catch(e){}return e}(o))}null!=o&&this.style[r]!==o&&(this.style[r]=o,n||this.updateNativeNode())}scrollToPosition(e=0,t=0,n=1e3){if("number"!=typeof e||"number"!=typeof t)return;let r=n;!1===r&&(r=0),nt.callUIFunction(this,"scrollToWithOptions",[{x:e,y:t,duration:r}])}scrollTo(e,t,n){if("object"==typeof e&&e){const{left:t,top:n,behavior:r="auto",duration:o}=e;this.scrollToPosition(t,n,"none"===r?0:o)}else this.scrollToPosition(e,t,n)}setListenerHandledType(e,t){this.events[e]&&(this.events[e].handledType=t)}isListenerHandled(e,t){return!this.events[e]||t===this.events[e].handledType}getNativeEventName(e){let t="on"+Ce(e);if(this.component){const{eventNamesMap:n}=this.component;(null==n?void 0:n.get(e))&&(t=n.get(e))}return t}addEventListener(e,t,n){let r=e,o=t,i=n,s=!0;"scroll"!==r||this.getAttribute("scrollEventThrottle")>0||(this.attributes.scrollEventThrottle=200);const c=this.getNativeEventName(r);this.attributes[c]&&(s=!1),"function"==typeof this.polyfillNativeEvents&&({eventNames:r,callback:o,options:i}=this.polyfillNativeEvents(Pt,r,o,i)),super.addEventListener(r,o,i),an(r,e=>{const t=this.getNativeEventName(e);var n,r;this.events[t]?this.events[t]&&this.events[t].type!==At&&(this.events[t].type=At):this.events[t]={name:t,type:At,listener:(n=t,r=e,e=>{const{id:t,currentId:o,params:i,eventPhase:s}=e,c={id:t,nativeName:n,originalName:r,currentId:o,params:i,eventPhase:s};qt.receiveComponentEvent(c,e)}),isCapture:!1}}),s&&this.updateNativeEvent()}removeEventListener(e,t,n){let r=e,o=t,i=n;"function"==typeof this.polyfillNativeEvents&&({eventNames:r,callback:o,options:i}=this.polyfillNativeEvents(Rt,r,o,i)),super.removeEventListener(r,o,i),an(r,e=>{const t=this.getNativeEventName(e);this.events[t]&&(this.events[t].type=Ct)});const s=this.getNativeEventName(r);this.attributes[s]&&delete this.attributes[s],this.updateNativeEvent()}dispatchEvent(e,t,n){const r=e;r.currentTarget=this,r.target||(r.target=t||this,Bt(r)&&(r.target.value=r.value)),this.emitEvent(r),!r.bubbles&&n&&n.stopPropagation()}convertToNativeNodes(e,t={}){if(!this.isNeedInsertToNative)return[[],[],[]];if(e)return super.convertToNativeNodes(!0,t);let n=this.getNativeStyles();if(this.parentNode&&this.parentNode instanceof ln){const e=this.parentNode.processedStyle;["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"].forEach(t=>{!n[t]&&e[t]&&(n[t]=e[t])})}if(Re(this,n),this.component.defaultNativeStyle){const{defaultNativeStyle:e}=this.component,t={};Object.keys(e).forEach(n=>{this.getAttribute(n)||(t[n]=e[n])}),n=l(l({},t),n)}this.processedStyle=n;const r={name:this.component.name,props:l(l({},this.getNativeProps()),{},{style:n}),tagName:this.tagName};return function(e,t){const n=t;e.component.name===we.TextInput&&jt()&&(n.textAlign||(n.textAlign="right"))}(this,n),function(e,t,n){const r=t,o=n;e.component.name===we.View&&("scroll"===o.overflowX&&"scroll"===o.overflowY&&je(),"scroll"===o.overflowY?r.name="ScrollView":"scroll"===o.overflowX&&(r.name="ScrollView",r.props&&(r.props.horizontal=!0),o.flexDirection=jt()?"row-reverse":"row"),"ScrollView"===r.name&&(1!==e.childNodes.length&&je(),e.childNodes.length&&e.nodeType===rn.ElementNode&&e.childNodes[0].setStyle("collapsable",!1)),o.backgroundImage&&(o.backgroundImage=Le(o.backgroundImage)))}(this,r,n),super.convertToNativeNodes(!1,t,r)}repaintWithChildren(){this.updateNativeNode(!0)}setNativeProps(e){if(e){const{style:t}=e;this.setStyles(t)}}setPressed(e){nt.callUIFunction(this,"setPressed",[e])}setHotspot(e,t){nt.callUIFunction(this,"setHotspot",[e,t])}setStyleScope(e){const t="string"!=typeof e?e.toString():e;t&&!this.scopedIdList.includes(t)&&this.scopedIdList.push(t)}get styleScopeId(){return this.scopedIdList}getInlineStyle(){const e={};return Object.keys(this.style).forEach(t=>{const n=m.toRaw(this.style[t]);void 0!==n&&(e[t]=n)}),e}getNativeStyles(){let e={};return ye(void 0,Pe()).query(this).selectors.forEach(t=>{var n,r;Ve(t,this)&&(null===(r=null===(n=t.ruleSet)||void 0===n?void 0:n.declarations)||void 0===r?void 0:r.length)&&t.ruleSet.declarations.forEach(t=>{t.property&&(e[t.property]=t.value)})}),this.ssrInlineStyle&&(e=l(l({},e),this.ssrInlineStyle)),e=ln.parseRem(l(l({},e),this.getInlineStyle())),e}getNativeProps(){const e={},{defaultNativeProps:t}=this.component;t&&Object.keys(t).forEach(n=>{if(void 0===this.getAttribute(n)){const r=t[n];e[n]=h.isFunction(r)?r(this):m.toRaw(r)}}),Object.keys(this.attributes).forEach(t=>{var n;let r=m.toRaw(this.getAttribute(t));if(!this.component.attributeMaps||!this.component.attributeMaps[t])return void(e[t]=m.toRaw(r));const o=this.component.attributeMaps[t];if(h.isString(o))return void(e[o]=m.toRaw(r));if(h.isFunction(o))return void(e[t]=m.toRaw(o(r)));const{name:i,propsValue:s,jointKey:c}=o;h.isFunction(s)&&(r=s(r)),c?(e[c]=null!==(n=e[c])&&void 0!==n?n:{},Object.assign(e[c],{[i]:m.toRaw(r)})):e[i]=m.toRaw(r)});const{nativeProps:n}=this.component;return n&&Object.keys(n).forEach(t=>{e[t]=m.toRaw(n[t])}),e}getNodeAttributes(){var e;try{const t=function e(t,n=new WeakMap){if("object"!=typeof t||null===t)throw new TypeError("deepCopy data is object");if(n.has(t))return n.get(t);const r={};return Object.keys(t).forEach(o=>{const i=t[o];"object"!=typeof i||null===i?r[o]=i:Array.isArray(i)?r[o]=[...i]:i instanceof Set?r[o]=new Set([...i]):i instanceof Map?r[o]=new Map([...i]):(n.set(t,t),r[o]=e(i,n))}),r}(this.attributes),n=Array.from(null!==(e=this.classList)&&void 0!==e?e:[]).join(" "),r=l({id:this.id,hippyNodeId:""+this.nodeId,class:n},t);return delete r.text,delete r.value,Object.keys(r).forEach(e=>{"id"!==e&&"hippyNodeId"!==e&&"class"!==e&&delete r[e]}),r}catch(e){return{}}}getNativeEvents(){const e={},t=this.getEventListenerList(),n=Object.keys(t);if(n.length){const{eventNamesMap:r}=this.component;n.forEach(n=>{const o=null==r?void 0:r.get(n);if(o)e[o]=!!t[n];else{const r="on"+Ce(n);e[r]=!!t[n]}})}return e}hackSpecialIssue(){this.fixVShowDirectiveIssue()}fixVShowDirectiveIssue(){var e;let t=null!==(e=this.style.display)&&void 0!==e?e:void 0;Object.defineProperty(this.style,"display",{enumerable:!0,configurable:!0,get:()=>t,set:e=>{t=void 0===e?"flex":e,this.updateNativeNode()}})}}function un(t){const n={valueType:void 0,delay:0,startValue:0,toValue:0,duration:0,direction:"center",timingFunction:"linear",repeatCount:0,inputRange:[],outputRange:[]};function r(e,t){return"color"===e&&["number","string"].indexOf(typeof t)>=0?nt.parseColor(t):t}function a(e){return"loop"===e?-1:e}function u(t){const{mode:i="timing",valueType:s,startValue:u,toValue:d}=t,f=c(t,o),p=l(l({},n),f);void 0!==s&&(p.valueType=t.valueType),p.startValue=r(p.valueType,u),p.toValue=r(p.valueType,d),p.repeatCount=a(p.repeatCount),p.mode=i;const h=new e.Hippy.Animation(p),m=h.getId();return{animation:h,animationId:m}}function d(t,n={}){const r={};return Object.keys(t).forEach(o=>{if(Array.isArray(t[o])){const i=t[o],{repeatCount:s}=i[i.length-1],c=i.map(e=>{const{animationId:t,animation:r}=u(l(l({},e),{},{repeatCount:0}));return Object.assign(n,{[t]:r}),{animationId:t,follow:!0}}),{animationId:d,animation:f}=function(t,n=0){const r=new e.Hippy.AnimationSet({children:t,repeatCount:n}),o=r.getId();return{animation:r,animationId:o}}(c,a(s));r[o]={animationId:d},Object.assign(n,{[d]:f})}else{const e=t[o],{animationId:i,animation:s}=u(e);Object.assign(n,{[i]:s}),r[o]={animationId:i}}}),r}function f(e){const{transform:t}=e,n=c(e,i);let r=Object.keys(n).map(t=>e[t].animationId);if(Array.isArray(t)&&t.length>0){const e=[];t.forEach(t=>Object.keys(t).forEach(n=>{if(t[n]){const{animationId:r}=t[n];"number"==typeof r&&r%1==0&&e.push(r)}})),r=[...r,...e]}return r}t.component("Animation",{props:{tag:{type:String,default:"div"},playing:{type:Boolean,default:!1},actions:{type:Object,required:!0},props:Object},data:()=>({style:{},animationIds:[],animationIdsMap:{},animationEventMap:{}}),watch:{playing(e,t){!t&&e?this.start():t&&!e&&this.pause()},actions(){this.destroy(),this.create(),setTimeout(()=>{const e=this.$attrs[Fe("actionsDidUpdate")];"function"==typeof e&&e()})}},created(){this.animationEventMap={start:"animationstart",end:"animationend",repeat:"animationrepeat",cancel:"animationcancel"}},beforeMount(){this.create()},mounted(){const{playing:e}=this.$props;e&&setTimeout(()=>{this.start()},0)},beforeDestroy(){this.destroy()},deactivated(){this.pause()},activated(){this.resume()},methods:{create(){const e=this.$props,{actions:{transform:t}}=e,n=c(e.actions,s);this.animationIdsMap={};const r=d(n,this.animationIdsMap);if(t){const e=d(t,this.animationIdsMap);r.transform=Object.keys(e).map(t=>({[t]:e[t]}))}this.$alreadyStarted=!1,this.style=r},removeAnimationEvent(){this.animationIds.forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$attrs[Fe(e)])return;const n=this.animationEventMap[e];n&&"function"==typeof this[""+n]&&t.removeEventListener(n)})})},addAnimationEvent(){this.animationIds.forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$attrs[Fe(e)])return;const n=this.animationEventMap[e];n&&t.addEventListener(n,()=>{this.$emit(e)})})})},reset(){this.$alreadyStarted=!1},start(){this.$alreadyStarted?this.resume():(this.animationIds=f(this.style),this.$alreadyStarted=!0,this.removeAnimationEvent(),this.addAnimationEvent(),this.animationIds.forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);null==t||t.start()}))},resume(){f(this.style).forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);null==t||t.resume()})},pause(){if(!this.$alreadyStarted)return;f(this.style).forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);null==t||t.pause()})},destroy(){this.removeAnimationEvent(),this.$alreadyStarted=!1;f(this.style).forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);null==t||t.destroy()})}},render(){return m.h(this.tag,l({useAnimation:!0,style:this.style,tag:this.$props.tag},this.$props.props),this.$slots.default?this.$slots.default():null)}})}const dn=["dialog","hi-pull-header","hi-pull-footer","hi-swiper","hi-swiper-slider","hi-waterfall","hi-waterfall-item","hi-ul-refresh-wrapper","hi-refresh-wrapper-item"];var fn={install(e){un(e),lt("dialog",{component:{name:"Modal",defaultNativeProps:{transparent:!0,immersionStatusBar:!0,collapsable:!1,autoHideStatusBar:!1,autoHideNavigationBar:!1},defaultNativeStyle:{position:"absolute"}}}),function(e){const{callUIFunction:t}=nt;[["Header","header"],["Footer","footer"]].forEach(([n,r])=>{lt("hi-pull-"+r,{component:{name:`Pull${n}View`,processEventData(e,t){const{handler:r,__evt:o}=e;switch(o){case`on${n}Released`:case`on${n}Pulling`:Object.assign(r,t)}return r}}}),e.component("pull-"+r,{methods:{["expandPull"+n](){t(this.$refs.instance,"expandPull"+n)},["collapsePull"+n](e){"Header"===n&&void 0!==e?t(this.$refs.instance,`collapsePull${n}WithOptions`,[e]):t(this.$refs.instance,"collapsePull"+n)},onLayout(e){this.$contentHeight=e.height},[`on${n}Released`](e){this.$emit("released",e)},[`on${n}Pulling`](e){e.contentOffset>this.$contentHeight?"pulling"!==this.$lastEvent&&(this.$lastEvent="pulling",this.$emit("pulling",e)):"idle"!==this.$lastEvent&&(this.$lastEvent="idle",this.$emit("idle",e))}},render(){const{onReleased:e,onPulling:t,onIdle:o}=this.$attrs,i={onLayout:this.onLayout};return"function"==typeof e&&(i[`on${n}Released`]=this[`on${n}Released`]),"function"!=typeof t&&"function"!=typeof o||(i[`on${n}Pulling`]=this[`on${n}Pulling`]),m.h("hi-pull-"+r,l(l({},i),{},{ref:"instance"}),this.$slots.default?this.$slots.default():null)}})})}(e),function(e){lt("hi-ul-refresh-wrapper",{component:{name:"RefreshWrapper"}}),lt("hi-refresh-wrapper-item",{component:{name:"RefreshWrapperItemView"}}),e.component("UlRefreshWrapper",{props:{bounceTime:{type:Number,defaultValue:100}},methods:{startRefresh(){nt.callUIFunction(this.$refs.refreshWrapper,"startRefresh",null)},refreshCompleted(){nt.callUIFunction(this.$refs.refreshWrapper,"refreshComplected",null)}},render(){return m.h("hi-ul-refresh-wrapper",{ref:"refreshWrapper"},this.$slots.default?this.$slots.default():null)}}),e.component("UlRefresh",{render(){const e=m.h("div",null,this.$slots.default?this.$slots.default():null);return m.h("hi-refresh-wrapper-item",{style:{position:"absolute",left:0,right:0}},e)}})}(e),function(e){lt("hi-waterfall",{component:{name:"WaterfallView",processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onExposureReport":n.exposureInfo=t.exposureInfo;break;case"onScroll":{const{startEdgePos:e,endEdgePos:r,firstVisibleRowIndex:o,lastVisibleRowIndex:i,visibleRowFrames:s}=t;Object.assign(n,{startEdgePos:e,endEdgePos:r,firstVisibleRowIndex:o,lastVisibleRowIndex:i,visibleRowFrames:s});break}}return n}}}),lt("hi-waterfall-item",{component:{name:"WaterfallItem"}}),e.component("Waterfall",{props:{numberOfColumns:{type:Number,default:2},contentInset:{type:Object,default:()=>({top:0,left:0,bottom:0,right:0})},columnSpacing:{type:Number,default:0},interItemSpacing:{type:Number,default:0},preloadItemNumber:{type:Number,default:0},containBannerView:{type:Boolean,default:!1},containPullHeader:{type:Boolean,default:!1},containPullFooter:{type:Boolean,default:!1}},methods:{call(e,t){nt.callUIFunction(this.$refs.waterfall,e,t)},startRefresh(){this.call("startRefresh")},startRefreshWithType(e){this.call("startRefreshWithType",[e])},callExposureReport(){this.call("callExposureReport",[])},scrollToIndex({index:e=0,animated:t=!0}){this.call("scrollToIndex",[e,e,t])},scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){this.call("scrollToContentOffset",[e,t,n])},startLoadMore(){this.call("startLoadMore")}},render(){const e=De.call(this,["headerReleased","headerPulling","endReached","exposureReport","initialListReady","scroll"]);return m.h("hi-waterfall",l(l({},e),{},{ref:"waterfall",numberOfColumns:this.numberOfColumns,contentInset:this.contentInset,columnSpacing:this.columnSpacing,interItemSpacing:this.interItemSpacing,preloadItemNumber:this.preloadItemNumber,containBannerView:this.containBannerView,containPullHeader:this.containPullHeader,containPullFooter:this.containPullFooter}),this.$slots.default?this.$slots.default():null)}}),e.component("WaterfallItem",{props:{type:{type:[String,Number],default:""},fullSpan:{type:Boolean,default:!1}},render(){return m.h("hi-waterfall-item",{type:this.type,fullSpan:this.fullSpan},this.$slots.default?this.$slots.default():null)}})}(e),function(e){lt("hi-swiper",{component:{name:"ViewPager",processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onPageSelected":n.currentSlide=t.position;break;case"onPageScroll":n.nextSlide=t.position,n.offset=t.offset;break;case"onPageScrollStateChanged":n.state=t.pageScrollState}return n}}}),lt("hi-swiper-slide",{component:{name:"ViewPagerItem",defaultNativeStyle:{position:"absolute",top:0,right:0,bottom:0,left:0}}}),e.component("Swiper",{props:{current:{type:Number,defaultValue:0},needAnimation:{type:Boolean,defaultValue:!0}},data:()=>({$initialSlide:0}),watch:{current(e){this.$props.needAnimation?this.setSlide(e):this.setSlideWithoutAnimation(e)}},beforeMount(){this.$initialSlide=this.$props.current},methods:{setSlide(e){nt.callUIFunction(this.$refs.swiper,"setPage",[e])},setSlideWithoutAnimation(e){nt.callUIFunction(this.$refs.swiper,"setPageWithoutAnimation",[e])}},render(){const e=De.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]);return m.h("hi-swiper",l(l({},e),{},{ref:"swiper",initialPage:this.$data.$initialSlide}),this.$slots.default?this.$slots.default():null)}}),e.component("SwiperSlide",{render(){return m.h("hi-swiper-slide",{},this.$slots.default?this.$slots.default():null)}})}(e)}};class pn extends ln{constructor(e,t){super("comment",t),this.text=e,this.data=e,this.isNeedInsertToNative=!1}}class hn extends ln{setText(e,t={}){"textarea"===this.tagName?this.setAttribute("value",e,{notToNative:!!t.notToNative}):this.setAttribute("text",e,{notToNative:!!t.notToNative})}async getValue(){return new Promise(e=>nt.callUIFunction(this,"getValue",t=>e(t.text)))}setValue(e){nt.callUIFunction(this,"setValue",[e])}focus(){nt.callUIFunction(this,"focusTextInput",[])}blur(){nt.callUIFunction(this,"blurTextInput",[])}clear(){nt.callUIFunction(this,"clear",[])}async isFocused(){return new Promise(e=>nt.callUIFunction(this,"isFocused",t=>e(t.value)))}}class mn extends ln{scrollToIndex(e=0,t=0,n=!0){nt.callUIFunction(this,"scrollToIndex",[e,t,n])}scrollToPosition(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&nt.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}class vn extends sn{static createComment(e){return new pn(e)}static createElement(e){switch(e){case"input":case"textarea":return new hn(e);case"ul":return new mn(e);default:return new ln(e)}}static createTextNode(e){return new cn(e)}constructor(){super(rn.DocumentNode)}}const gn={insert:function(e,t,n=null){t.childNodes.indexOf(e)>=0?t.moveChild(e,n):t.insertBefore(e,n)},remove:function(e){const t=e.parentNode;t&&(t.removeChild(e),Wt(e))},setText:function(e,t){e.setText(t)},setElementText:function(e,t){e.setText(t)},createElement:function(e){return vn.createElement(e)},createComment:function(e){return vn.createComment(e)},createText:function(e){return vn.createTextNode(e)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},setScopeId:function(e,t){e.setStyleScope(t)}};const yn=/(?:Once|Passive|Capture)$/;function bn(e,t,n,r,o=null){var i;const s=e,c=null!==(i=s._vei)&&void 0!==i?i:s._vei={},a=c[t];if(r&&a)a.value=r;else{const[e,n]=function(e){let t=e;const n={};if(yn.test(t)){let e=t.match(yn);for(;e;)t=t.slice(0,t.length-e[0].length),n[e[0].toLowerCase()]=!0,e=t.match(yn)}return t=":"===t[2]?t.slice(3):t.slice(2),[(r=t,`${r.charAt(0).toLowerCase()}${r.slice(1)}`),n];var r}(t);if(r){c[t]=function(e,t){const n=e=>{m.callWithAsyncErrorHandling(n.value,t,m.ErrorCodes.NATIVE_EVENT_HANDLER,[e])};return n.value=e,n}(r,o);const i=c[t];s.addEventListener(e,i,n)}else s.removeEventListener(e,a,n),c[t]=void 0}}function On(e,t,n){const r=e,o={};if(!function(e,t,n){const r=!e,o=!t&&!n,i=JSON.stringify(t)===JSON.stringify(n);return r||o||i}(r,t,n))if(t&&!n)r.removeStyle();else{if(h.isString(n))throw new Error("Style is Not Object");n&&(Object.keys(n).forEach(e=>{const t=n[e];(function(e){return null==e})(t)||(o[m.camelize(e)]=t)}),r.removeStyle(!0),r.setStyles(o))}}function _n(e,t,n,r,o,i){switch(t){case"class":!function(e,t){let n=t;null===n&&(n=""),e.setAttribute("class",n)}(e,r);break;case"style":On(e,n,r);break;default:h.isOn(t)?bn(e,t,0,r,i):function(e,t,n,r){null===r?e.removeAttribute(t):n!==r&&e.setAttribute(t,r)}(e,t,n,r)}}let En=!1;function Sn(e,t){const n=function(e){var t;if("comment"===e.name)return new pn(e.props.text,e);if("Text"===e.name&&!e.tagName){const t=new cn(e.props.text,e);return t.nodeType=rn.TextNode,t.data=e.props.text,t}switch(e.tagName){case"input":case"textarea":return new hn(e.tagName,e);case"ul":return new mn(e.tagName,e);default:return new ln(null!==(t=e.tagName)&&void 0!==t?t:"",e)}}(e);let r=t.filter(t=>t.pId===e.id).sort((e,t)=>e.index-t.index);const o=r.filter(e=>"comment"===e.name);if(o.length){r=r.filter(e=>"comment"!==e.name);for(let e=o.length-1;e>=0;e--)r.splice(o[e].index,0,o[e])}return r.forEach(e=>{n.appendChild(Sn(e,t),!0)}),n}e.WebSocket=class{constructor(e,t,n){this.webSocketId=-1,this.protocol="",this.listeners={},this.url=e,this.readyState=0,this.webSocketCallbacks={},this.onWebSocketEvent=this.onWebSocketEvent.bind(this);const r=l({},n);if(En||(En=!0,Ee.$on("hippyWebsocketEvents",this.onWebSocketEvent)),!e)throw new TypeError("Invalid WebSocket url");Array.isArray(t)&&t.length>0?(this.protocol=t.join(","),r["Sec-WebSocket-Protocol"]=this.protocol):"string"==typeof t&&(this.protocol=t,r["Sec-WebSocket-Protocol"]=this.protocol);const o={headers:r,url:e};nt.callNativeWithPromise("websocket","connect",o).then(e=>{e&&0===e.code?this.webSocketId=e.id:je()})}close(e,t){1===this.readyState&&(this.readyState=2,nt.callNative("websocket","close",{id:this.webSocketId,code:e,reason:t}))}send(e){if(1===this.readyState){if("string"!=typeof e)throw new TypeError("Unsupported websocket data type: "+typeof e);nt.callNative("websocket","send",{id:this.webSocketId,data:e})}else je()}set onopen(e){this.addEventListener("open",e)}set onclose(e){this.addEventListener("close",e)}set onerror(e){this.addEventListener("error",e)}set onmessage(e){this.addEventListener("message",e)}onWebSocketEvent(e){if("object"!=typeof e||e.id!==this.webSocketId)return;const t=e.type;if("string"!=typeof t)return;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,Ee.$off("hippyWebsocketEvents",this.onWebSocketEvent));const n=this.webSocketCallbacks[t];(null==n?void 0:n.length)&&n.forEach(t=>{h.isFunction(t)&&t(e.data)})}addEventListener(e,t){if((e=>-1!==["open","close","message","error"].indexOf(e))(e)){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t);const n=Fe(e);this.webSocketCallbacks[n]=this.listeners[e]}}};const wn=['%c[Hippy-Vue-Next "unspecified"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"];function Nn(e,t){if(nt.isIOS()){const n=function(e){var t,n;const{iPhone:r}=e;let o;if((null==r?void 0:r.statusBar)&&(o=r.statusBar),null==o?void 0:o.disabled)return null;const i=new ln("div"),{statusBarHeight:s}=nt.Dimensions.screen;nt.screenIsVertical?i.setStyle("height",s):i.setStyle("height",0);let c=4282431619;if(Number.isInteger(c)&&({backgroundColor:c}=o),i.setStyle("backgroundColor",c),"string"==typeof o.backgroundImage){const r=new ln("img");r.setStyle("width",nt.Dimensions.screen.width),r.setStyle("height",s),r.setAttribute("src",null===(n=null===(t=e.iPhone)||void 0===t?void 0:t.statusBar)||void 0===n?void 0:n.backgroundImage),i.appendChild(r)}return i.addEventListener("layout",()=>{nt.screenIsVertical?i.setStyle("height",s):i.setStyle("height",0)}),i}(e);if(n){const e=t.$el.parentNode;e.childNodes.length?e.insertBefore(n,e.childNodes[0]):e.appendChild(n)}}}const Tn=(e,t)=>{var n,r;const o=e,i=Boolean(null===(n=null==t?void 0:t.ssrNodeList)||void 0===n?void 0:n.length);var s,c;o.use(xt),o.use(fn),"function"==typeof(null===(r=null==t?void 0:t.styleOptions)||void 0===r?void 0:r.beforeLoadStyle)&&(s=t.styleOptions.beforeLoadStyle,ke=s),t.silent&&(c=t.silent,Ne=c),function(e=!0){Te=e}(t.trimWhitespace);const{mount:a}=o;return o.mount=e=>{var n;Ft("rootContainer",e);const r=(null===(n=null==t?void 0:t.ssrNodeList)||void 0===n?void 0:n.length)?function(e){const[t]=e;return Sn(t,e)}(t.ssrNodeList):function(e){const t=vn.createElement("div");return t.id=e,t.style={display:"flex",flex:1},t}(e),o=a(r,i,!1);return Ft("instance",o),i||Nn(t,o),o},o.$start=async e=>new Promise(n=>{nt.hippyNativeRegister.regist(t.appName,r=>{var i,s;const{__instanceId__:c}=r;xe(...wn,"Start",t.appName,"with rootViewId",c,r);const a=Lt();var l;(null==a?void 0:a.app)&&a.app.unmount(),l={rootViewId:c,superProps:r,app:o,ratioBaseWidth:null!==(s=null===(i=null==t?void 0:t.styleOptions)||void 0===i?void 0:i.ratioBaseWidth)&&void 0!==s?s:750},Mt=l;const u={superProps:r,rootViewId:c};h.isFunction(e)?e(u):n(u)})}),o};t.BackAndroid=ct,t.ContentSizeEvent=class extends Dt{},t.EventBus=Ee,t.ExposureEvent=class extends Dt{},t.FocusEvent=class extends Dt{},t.HIPPY_DEBUG_ADDRESS=Se,t.HIPPY_GLOBAL_DISPOSE_STYLE_NAME="__HIPPY_VUE_DISPOSE_STYLES__",t.HIPPY_GLOBAL_STYLE_NAME="__HIPPY_VUE_STYLES__",t.HIPPY_STATIC_PROTOCOL="hpfile://",t.HIPPY_UNIQUE_ID_KEY="hippyUniqueId",t.HIPPY_VUE_VERSION="unspecified",t.HippyEvent=Dt,t.HippyKeyboardEvent=class extends Dt{},t.HippyLayoutEvent=Vt,t.HippyLoadResourceEvent=class extends Dt{},t.HippyTouchEvent=class extends Dt{},t.IS_PROD=!0,t.ListViewEvent=class extends Dt{},t.NATIVE_COMPONENT_MAP=we,t.Native=nt,t.ViewPagerEvent=class extends Dt{},t._setBeforeRenderToNative=(e,t)=>{h.isFunction(e)&&(1===t?Re=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))},t.createApp=(e,t)=>{const n=m.createRenderer(l({patchProp:_n},gn)).createApp(e);return Tn(n,t)},t.createHippyApp=Tn,t.createSSRApp=(e,t)=>{const n=m.createHydrationRenderer(l({patchProp:_n},gn)).createApp(e);return Tn(n,t)},t.eventIsKeyboardEvent=Bt,t.getCssMap=ye,t.getTagComponent=ut,t.isNativeTag=function(e){return dn.includes(e)},t.parseCSS=function(e,t={source:0}){let n=1,r=1;function o(e){const t=e.match(/\n/g);t&&(n+=t.length);const o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(t){const n=t.exec(e);if(!n)return null;const r=n[0];return o(r),e=e.slice(r.length),n}function s(){i(/^\s*/)}function c(){return o=>(o.position={start:{line:n,column:r},end:{line:n,column:r},source:t.source,content:e},s(),o)}const a=[];function u(o){const i=l(l({},new Error(`${t.source}:${n}:${r}: ${o}`)),{},{reason:o,filename:t.source,line:n,column:r,source:e});if(!t.silent)throw i;a.push(i)}function d(){const t=c();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return null;let n=2;for(;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)n+=1;if(n+=2,""===e.charAt(n-1))return u("End of comment missing");const i=e.slice(2,n-2);return r+=2,o(i),e=e.slice(n),r+=2,t({type:"comment",comment:i})}function f(e=[]){let t;const n=e||[];for(;t=d();)!1!==t&&n.push(t);return n}function p(){let t;const n=[];for(s(),f(n);e.length&&"}"!==e.charAt(0)&&(t=T()||O());)t&&(n.push(t),f(n));return n}function m(){return i(/^{\s*/)}function v(){return i(/^}/)}function g(){const e=i(/^([^{]+)/);return e?e[0].trim().replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,e=>e.replace(/,/g,"‌")).split(/\s*(?![^(]*\)),\s*/).map(e=>e.replace(/\u200C/g,",")):null}function y(){const e=c();let t=i(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+])?)\s*/);if(!t)return null;if(t=t[0].trim(),!i(/^:\s*/))return u("property missing ':'");const n=t.replace(k,""),r=h.camelize(n);let o=(()=>{const e=x[r];return e||r})();const s=i(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]{0,500}?\)|[^};])+)/);let a=s?s[0].trim().replace(k,""):"";switch(o){case"backgroundImage":[o,a]=F(o,a);break;case"transform":{const e=/((\w+)\s*\()/,t=/(?:\(['"]?)(.*?)(?:['"]?\))/,n=a;a=[],n.split(" ").forEach(n=>{if(e.test(n)){let r,o;const i=e.exec(n),s=t.exec(n);i&&([,,r]=i),s&&([,o]=s),0===o.indexOf(".")&&(o="0"+o),parseFloat(o).toString()===o&&(o=parseFloat(o));const c={};c[r]=o,a.push(c)}else u("missing '('")});break}case"fontWeight":break;case"shadowOffset":{const e=a.split(" ").filter(e=>e).map(e=>R(e)),[t]=e;let[,n]=e;n||(n=t),a={x:t,y:n};break}case"collapsable":a=Boolean(a);break;default:a=function(e){if("number"==typeof e)return e;if(P.test(e))try{return parseFloat(e)}catch(e){}return e}(a);["top","left","right","bottom","height","width","size","padding","margin","ratio","radius","offset","spread"].find(e=>o.toLowerCase().indexOf(e)>-1)&&(a=R(a))}const l=e({type:"declaration",value:a,property:o});return i(/^[;\s]*/),l}function b(){let e,t=[];if(!m())return u("missing '{'");for(f(t);e=y();)!1!==e&&(Array.isArray(e)?t=t.concat(e):t.push(e),f(t));return v()?t:u("missing '}'")}function O(){const e=c(),t=g();return t?(f(),e({type:"rule",selectors:t,declarations:b()})):u("selector missing")}function _(){let e;const t=[],n=c();for(;e=i(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),i(/^,\s*/);return t.length?n({type:"keyframe",values:t,declarations:b()}):null}function E(e){const t=new RegExp(`^@${e}\\s*([^;]+);`);return()=>{const n=c(),r=i(t);if(!r)return null;const o={type:e};return o[e]=r[1].trim(),n(o)}}const S=E("import"),w=E("charset"),N=E("namespace");function T(){return"@"!==e[0]?null:function(){const e=c();let t=i(/^@([-\w]+)?keyframes\s*/);if(!t)return null;const n=t[1];if(t=i(/^([-\w]+)\s*/),!t)return u("@keyframes missing name");const r=t[1];if(!m())return u("@keyframes missing '{'");let o,s=f();for(;o=_();)s.push(o),s=s.concat(f());return v()?e({type:"keyframes",name:r,vendor:n,keyframes:s}):u("@keyframes missing '}'")}()||function(){const e=c(),t=i(/^@media *([^{]+)/);if(!t)return null;const n=t[1].trim();if(!m())return u("@media missing '{'");const r=f().concat(p());return v()?e({type:"media",media:n,rules:r}):u("@media missing '}'")}()||function(){const e=c(),t=i(/^@custom-media\s+(--[^\s]+)\s*([^{;]{1,200}?);/);return t?e({type:"custom-media",name:t[1].trim(),media:t[2].trim()}):null}()||function(){const e=c(),t=i(/^@supports *([^{]+)/);if(!t)return null;const n=t[1].trim();if(!m())return u("@supports missing '{'");const r=f().concat(p());return v()?e({type:"supports",supports:n,rules:r}):u("@supports missing '}'")}()||S()||w()||N()||function(){const e=c(),t=i(/^@([-\w]+)?document *([^{]+)/);if(!t)return null;const n=t[1].trim(),r=t[2].trim();if(!m())return u("@document missing '{'");const o=f().concat(p());return v()?e({type:"document",document:r,vendor:n,rules:o}):u("@document missing '}'")}()||function(){const e=c();if(!i(/^@page */))return null;const t=g()||[];if(!m())return u("@page missing '{'");let n,r=f();for(;n=y();)r.push(n),r=r.concat(f());return v()?e({type:"page",selectors:t,declarations:r}):u("@page missing '}'")}()||function(){const e=c();if(!i(/^@host\s*/))return null;if(!m())return u("@host missing '{'");const t=f().concat(p());return v()?e({type:"host",rules:t}):u("@host missing '}'")}()||function(){const e=c();if(!i(/^@font-face\s*/))return null;if(!m())return u("@font-face missing '{'");let t,n=f();for(;t=y();)n.push(t),n=n.concat(f());return v()?e({type:"font-face",declarations:n}):u("@font-face missing '}'")}()}return function e(t,n){const r=t&&"string"==typeof t.type,o=r?t:n;return Object.keys(t).forEach(n=>{const r=t[n];Array.isArray(r)?r.forEach(t=>{e(t,o)}):r&&"object"==typeof r&&e(r,o)}),r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n}),t}(function(){const e=p();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:a}}}(),null)},t.registerElement=lt,t.setScreenSize=function(t){var n;if(t.width&&t.height){const{screen:r}=null===(n=null==e?void 0:e.Hippy)||void 0===n?void 0:n.device;r&&(r.width=t.width,r.height=t.height)}},t.translateColor=T}).call(this,n(2),n(6))},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 f(){u&&a&&(u=!1,a.length?l=a.concat(l):d=-1,l.length&&p())}function p(){if(!u){var e=c(f);u=!0;for(var t=l.length;t;){for(a=l,l=[];++d1)for(var n=1;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var s=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,s)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},d.apply(this,arguments)}function p(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&&f(e,t)}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}Object.defineProperty(t,"__esModule",{value:!0});var h=n("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js"),m=n("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js");const v={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},g=(...e)=>`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`,y="[-+]?\\d*\\.?\\d+",b={rgb:new RegExp("rgb"+g(y,y,y)),rgba:new RegExp("rgba"+g(y,y,y,y)),hsl:new RegExp("hsl"+g(y,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+g(y,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",y)),hex3:/^#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])$/,hex4:/^#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/},O=e=>{const t=parseInt(e,10);return t<0?0:t>255?255:t},_=e=>{const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)},E=(e,t,n)=>{let r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e},S=(e,t,n)=>{const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=E(o,r,e+1/3),s=E(o,r,e),c=E(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*c)<<8},w=e=>(parseFloat(e)%360+360)%360/360,N=e=>{const t=parseFloat(e);return t<0?0:t>100?1:t/100};function x(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=b.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(v,e)?v[e]:(t=b.rgb.exec(e),Array.isArray(t)?(O(t[1])<<24|O(t[2])<<16|O(t[3])<<8|255)>>>0:(t=b.rgba.exec(e),t?(O(t[1])<<24|O(t[2])<<16|O(t[3])<<8|_(t[4]))>>>0:(t=b.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=b.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=b.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=b.hsl.exec(e),t?(255|S(w(t[1]),N(t[2]),N(t[3])))>>>0:(t=b.hsla.exec(e),t?(S(w(t[1]),N(t[2]),N(t[3]))|_(t[4]))>>>0:null))))))))}(e);if(null===t)throw new Error("Bad color value: "+e);return t=(t<<24|t>>>8)>>>0,t}const T={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},j={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},A="turn",C="rad",k="deg",I=/\/\*[\s\S]{0,1000}?\*\//gm;const P=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function R(e){if(Number.isInteger(e))return e;if("string"==typeof e&&e.endsWith("px")){const t=parseFloat(e.slice(0,e.indexOf("px")));Number.isNaN(t)||(e=t)}return e}function M(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=d(/^([+-]?(?=(\d+))\2\.?\d*)+(deg|turn|rad)|(to\w+)$/g,{digit:2}).exec(t);if(!Array.isArray(n))return"";let r="180";const[o,i,s]=n;return i&&s?r=function(e,t=k){const n=parseFloat(e);let r=e||"";const[,o]=e.split(".");switch(o&&o.length>2&&(r=n.toFixed(2)),t){case A:r=""+(360*n).toFixed(2);break;case C:r=""+(180/Math.PI*n).toFixed(2)}return r}(i,s):o&&void 0!==j[o]&&(r=j[o]),r}function L(e=""){const t=e.replace(/\s+/g," ").trim(),[n,r]=t.split(/\s+(?![^(]*?\))/),o=/^([+-]?\d+\.?\d*)%$/g;return!n||o.exec(n)||r?n&&o.exec(r)?{ratio:parseFloat(r.split("%")[0])/100,color:x(n)}:null:{color:x(n)}}function F(e,t){let n=t,r=e;if(0===t.indexOf("linear-gradient")){r="linearGradient";const e=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),o=[];n={},e.forEach((e,t)=>{if(0===t){const t=M(e);if(t)n.angle=t;else{n.angle="180";const t=L(e);t&&o.push(t)}}else{const t=L(e);t&&o.push(t)}}),n.colorStopList=o}else{const e=/(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t);e&&e.length>1&&([,n]=e)}return[r,n]}class D{constructor(){this.changeMap=new Map}addAttribute(e,t){const n=this.properties(e);n.attributes||(n.attributes=new Set),n.attributes.add(t)}addPseudoClass(e,t){const n=this.properties(e);n.pseudoClasses||(n.pseudoClasses=new Set),n.pseudoClasses.add(t)}properties(e){let t=this.changeMap.get(e);return t||this.changeMap.set(e,t={}),t}}class V{constructor(e){this.id={},this.class={},this.type={},this.universal=[],this.position=0,this.ruleSets=e,e.forEach(e=>e.lookupSort(this))}static removeFromMap(e,t,n){const r=e[t],o=r.findIndex(e=>{var t;return e.sel.ruleSet.hash===(null===(t=n.ruleSet)||void 0===t?void 0:t.hash)});-1!==o&&r.splice(o,1)}append(e){this.ruleSets=this.ruleSets.concat(e),e.forEach(e=>e.lookupSort(this))}delete(e){const t=[];this.ruleSets=this.ruleSets.filter(n=>n.hash!==e||(t.push(n),!1)),t.forEach(e=>e.removeSort(this))}query(e,t){const{tagName:n,id:r,classList:o,props:i}=e;let s=r,c=o;if(null==i?void 0:i.attributes){const{attributes:e}=i;c=new Set(((null==e?void 0:e.class)||"").split(" ").filter(e=>e.trim())),s=e.id}const a=[this.universal,this.id[s],this.type[n]];(null==c?void 0:c.size)&&c.forEach(e=>a.push(this.class[e]));const l=a.filter(e=>!!e).reduce((e,t)=>e.concat(t),[]),u=new D;return u.selectors=l.filter(n=>n.sel.accumulateChanges(e,u,t)).sort((e,t)=>e.sel.specificity-t.sel.specificity||e.pos-t.pos).map(e=>e.sel),u}removeById(e,t){V.removeFromMap(this.id,e,t)}sortById(e,t){this.addToMap(this.id,e,t)}removeByClass(e,t){V.removeFromMap(this.class,e,t)}sortByClass(e,t){this.addToMap(this.class,e,t)}removeByType(e,t){V.removeFromMap(this.type,e,t)}sortByType(e,t){this.addToMap(this.type,e,t)}removeAsUniversal(e){const t=this.universal.findIndex(t=>{var n,r;return(null===(n=t.sel.ruleSet)||void 0===n?void 0:n.hash)===(null===(r=e.ruleSet)||void 0===r?void 0:r.hash)});-1!==t&&this.universal.splice(t)}sortAsUniversal(e){this.universal.push(this.makeDocSelector(e))}addToMap(e,t,n){this.position+=1;const r=e[t];r?r.push(this.makeDocSelector(n)):e[t]=[this.makeDocSelector(n)]}makeDocSelector(e){return this.position+=1,{sel:e,pos:this.position}}}function B(e){return e?" "+e:""}function $(e,t){return t?(null==e?void 0:e.pId)&&t[e.pId]?t[e.pId]:null:null==e?void 0:e.parentNode}class U{constructor(){this.specificity=0}lookupSort(e,t){e.sortAsUniversal(null!=t?t:this)}removeSort(e,t){e.removeAsUniversal(null!=t?t:this)}}class H extends U{constructor(){super(...arguments),this.rarity=0}accumulateChanges(e,t){return this.dynamic?!!this.mayMatch(e)&&(this.trackChanges(e,t),!0):this.match(e)}match(e){return!!e}mayMatch(e){return this.match(e)}trackChanges(e,t){}}class Y extends H{constructor(e){super(),this.specificity=e.reduce((e,t)=>t.specificity+e,0),this.head=e.reduce((e,t)=>!e||e instanceof H&&t.rarity>e.rarity?t:e,null),this.dynamic=e.some(e=>e.dynamic),this.selectors=e}toString(){return`${this.selectors.join("")}${B(this.combinator)}`}match(e){return!!e&&this.selectors.every(t=>t.match(e))}mayMatch(e){return!!e&&this.selectors.every(t=>t.mayMatch(e))}trackChanges(e,t){this.selectors.forEach(n=>n.trackChanges(e,t))}lookupSort(e,t){this.head&&this.head instanceof H&&this.head.lookupSort(e,null!=t?t:this)}removeSort(e,t){this.head&&this.head instanceof H&&this.head.removeSort(e,null!=t?t:this)}}class W extends H{constructor(){super(),this.specificity=0,this.rarity=0,this.dynamic=!1}toString(){return"*"+B(this.combinator)}match(){return!0}}class z extends H{constructor(e){super(),this.specificity=65536,this.rarity=3,this.dynamic=!1,this.id=e}toString(){return`#${this.id}${B(this.combinator)}`}match(e){var t,n;return!!e&&((null===(n=null===(t=e.props)||void 0===t?void 0:t.attributes)||void 0===n?void 0:n.id)===this.id||e.id===this.id)}lookupSort(e,t){e.sortById(this.id,null!=t?t:this)}removeSort(e,t){e.removeById(this.id,null!=t?t:this)}}class K extends H{constructor(e){super(),this.specificity=1,this.rarity=1,this.dynamic=!1,this.cssType=e}toString(){return`${this.cssType}${B(this.combinator)}`}match(e){return!!e&&e.tagName===this.cssType}lookupSort(e,t){e.sortByType(this.cssType,null!=t?t:this)}removeSort(e,t){e.removeByType(this.cssType,null!=t?t:this)}}class G extends H{constructor(e){super(),this.specificity=256,this.rarity=2,this.dynamic=!1,this.className=e}toString(){return`.${this.className}${B(this.combinator)}`}match(e){var t,n,r;if(!e)return!1;const o=null!==(t=e.classList)&&void 0!==t?t:new Set(((null===(r=null===(n=e.props)||void 0===n?void 0:n.attributes)||void 0===r?void 0:r.class)||"").split(" ").filter(e=>e.trim()));return!(!o.size||!o.has(this.className))}lookupSort(e,t){e.sortByClass(this.className,null!=t?t:this)}removeSort(e,t){e.removeByClass(this.className,null!=t?t:this)}}class q extends H{constructor(e){super(),this.specificity=256,this.rarity=0,this.dynamic=!0,this.cssPseudoClass=e}toString(){return`:${this.cssPseudoClass}${B(this.combinator)}`}match(){return!1}mayMatch(){return!0}trackChanges(e,t){t.addPseudoClass(e,this.cssPseudoClass)}}const J=(e,t)=>{var n,r,o;const i=(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n[t])||(null===(r=null==e?void 0:e.attributes)||void 0===r?void 0:r[t]);return void 0!==i?i:Array.isArray(null==e?void 0:e.styleScopeId)&&(null===(o=null==e?void 0:e.styleScopeId)||void 0===o?void 0:o.includes(t))?t:void 0};class X extends H{constructor(e,t="",n=""){super(),this.attribute="",this.test="",this.value="",this.specificity=256,this.rarity=0,this.dynamic=!0,this.attribute=e,this.test=t,this.value=n,this.match=t?n?r=>{if(!r||!(null==r?void 0:r.attributes)&&!(null==r?void 0:r.props[e]))return!1;const o=""+J(r,e);if("="===t)return o===n;if("^="===t)return o.startsWith(n);if("$="===t)return o.endsWith(n);if("*="===t)return-1!==o.indexOf(n);if("~="===t){const e=o.split(" ");return-1!==(null==e?void 0:e.indexOf(n))}return"|="===t&&(o===n||o.startsWith(n+"-"))}:()=>!1:t=>!(!t||!(null==t?void 0:t.attributes)&&!(null==t?void 0:t.props))&&!function(e){return null==e}(J(t,e))}toString(){return`[${this.attribute}${B(this.test)}${this.test&&this.value||""}]${B(this.combinator)}`}match(e){return!!e&&!e}mayMatch(){return!0}trackChanges(e,t){t.addAttribute(e,this.attribute)}}class Z extends H{constructor(e){super(),this.specificity=0,this.rarity=4,this.dynamic=!1,this.combinator=void 0,this.error=e}toString(){return``}match(){return!1}lookupSort(){return null}removeSort(){return null}}class Q{constructor(e){this.selectors=e,this.dynamic=e.some(e=>e.dynamic)}match(e){if(!e)return!1;return this.selectors.every((t,n)=>(0!==n&&(e=e.parentNode),!!e&&t.match(e)))?e:null}mayMatch(e){if(!e)return!1;return this.selectors.every((t,n)=>(0!==n&&(e=e.parentNode),!!e&&t.mayMatch(e)))?e:null}trackChanges(e,t){this.selectors.forEach((n,r)=>{0!==r&&(e=e.parentNode),e&&n.trackChanges(e,t)})}}class ee{constructor(e){this.selectors=e,this.dynamic=e.some(e=>e.dynamic)}match(e){if(!e)return!1;return this.selectors.every((t,n)=>(0!==n&&(e=e.nextSibling),!!e&&t.match(e)))?e:null}mayMatch(e){if(!e)return!1;return this.selectors.every((t,n)=>(0!==n&&(e=e.nextSibling),!!e&&t.mayMatch(e)))?e:null}trackChanges(e,t){this.selectors.forEach((n,r)=>{0!==r&&(e=e.nextSibling),e&&n.trackChanges(e,t)})}}class te extends U{constructor(e){super();const t=[void 0," ",">","+","~"];let n=[],r=[];const o=[],i=[...e],s=i.length-1;this.specificity=0,this.dynamic=!1;for(let e=s;e>=0;e--){const s=i[e];if(-1===t.indexOf(s.combinator))throw console.error(`Unsupported combinator "${s.combinator}".`),new Error(`Unsupported combinator "${s.combinator}".`);void 0!==s.combinator&&" "!==s.combinator||o.push(r=[n=[]]),">"===s.combinator&&r.push(n=[]),this.specificity+=s.specificity,s.dynamic&&(this.dynamic=!0),n.push(s)}this.groups=o.map(e=>new Q(e.map(e=>new ee(e)))),this.last=i[s]}toString(){return this.selectors.join("")}match(e,t){return!!e&&this.groups.every((n,r)=>{if(0===r)return!!(e=n.match(e));let o=$(e,t);for(;o;){if(e=n.match(o))return!0;o=$(o,t)}return!1})}lookupSort(e){this.last.lookupSort(e,this)}removeSort(e){this.last.removeSort(e,this)}accumulateChanges(e,t,n){if(!this.dynamic)return this.match(e,n);const r=[],o=this.groups.every((t,o)=>{if(0===o){const n=t.mayMatch(e);return r.push({left:e,right:e}),!!(e=n)}let i=$(e,n);for(;i;){const o=t.mayMatch(i);if(o)return r.push({left:i,right:null}),e=o,!0;i=$(i,n)}return!1});if(!o)return!1;if(!t)return o;for(let e=0;e(e.ruleSet=this,null)),this.selectors=e,this.declarations=t,this.hash=n}toString(){return`${this.selectors.join(", ")} {${this.declarations.map((e,t)=>`${0===t?" ":""}${e.property}: ${e.value}`).join("; ")}}`}lookupSort(e){this.selectors.forEach(t=>t.lookupSort(e))}removeSort(e){this.selectors.forEach(t=>t.removeSort(e))}}const re=(()=>{try{return!!new RegExp("foo","y")}catch(e){return!1}})(),oe={whiteSpaceRegEx:"\\s*",universalSelectorRegEx:"\\*",simpleIdentifierSelectorRegEx:"(#|\\.|:|\\b)([_-\\w][_-\\w\\d]*)",attributeSelectorRegEx:"\\[\\s*([_-\\w][_-\\w\\d]*)\\s*(?:(=|\\^=|\\$=|\\*=|\\~=|\\|=)\\s*(?:([_-\\w][_-\\w\\d]*)|\"((?:[^\\\\\"]|\\\\(?:\"|n|r|f|\\\\|0-9a-f))*)\"|'((?:[^\\\\']|\\\\(?:'|n|r|f|\\\\|0-9a-f))*)')\\s*)?\\]",combinatorRegEx:"\\s*(\\+|~|>)?\\s*"},ie={};function se(e,t,n){let r="";re&&(r="gy"),ie[e]||(ie[e]=new RegExp(oe[e],r));const o=ie[e];let i;if(re)o.lastIndex=n,i=o.exec(t);else{if(t=t.slice(n,t.length),i=o.exec(t),!i)return{result:null,regexp:o};o.lastIndex=n+i[0].length}return{result:i,regexp:o}}function ce(e,t){var n,r;return null!==(r=null!==(n=function(e,t){const{result:n,regexp:r}=se("universalSelectorRegEx",e,t);return n?{value:{type:"*"},start:t,end:r.lastIndex}:null}(e,t))&&void 0!==n?n:function(e,t){const{result:n,regexp:r}=se("simpleIdentifierSelectorRegEx",e,t);if(!n)return null;const o=r.lastIndex;return{value:{type:n[1],identifier:n[2]},start:t,end:o}}(e,t))&&void 0!==r?r:function(e,t){const{result:n,regexp:r}=se("attributeSelectorRegEx",e,t);if(!n)return null;const o=r.lastIndex,i=n[1];if(n[2]){return{value:{type:"[]",property:i,test:n[2],value:n[3]||n[4]||n[5]},start:t,end:o}}return{value:{type:"[]",property:i},start:t,end:o}}(e,t)}function ae(e,t){let n=ce(e,t);if(!n)return null;let{end:r}=n;const o=[];for(;n;)o.push(n.value),({end:r}=n),n=ce(e,r);return{start:t,end:r,value:o}}function le(e,t){const{result:n,regexp:r}=se("combinatorRegEx",e,t);if(!n)return null;let o;o=re?r.lastIndex:t;return{start:t,end:o,value:n[1]||" "}}const ue=e=>e;function de(e){return"declaration"===e.type}function pe(e){return t=>e(t)}function fe(e){switch(e.type){case"*":return new W;case"#":return new z(e.identifier);case"":return new K(e.identifier.replace(/-/,"").toLowerCase());case".":return new G(e.identifier);case":":return new q(e.identifier);case"[]":return e.test?new X(e.property,e.test,e.value):new X(e.property);default:return null}}function he(e){return 0===e.length?new Z(new Error("Empty simple selector sequence.")):1===e.length?fe(e[0]):new Y(e.map(fe))}function me(e){try{const t=function(e,t){let n=t;const{result:r,regexp:o}=se("whiteSpaceRegEx",e,t);r&&(n=o.lastIndex);const i=[];let s,c,a=!0,l=[void 0,void 0];return c=re?[e]:e.split(" "),c.forEach(e=>{if(!re){if(""===e)return;n=0}do{const t=ae(e,n);if(!t){if(a)return;break}({end:n}=t),s&&(l[1]=s.value),l=[t.value,void 0],i.push(l),s=le(e,n),s&&({end:n}=s),a=!(!s||" "===s.value)}while(s)}),{start:t,end:n,value:i}}(e,0);return t?function(e){if(0===e.length)return new Z(new Error("Empty selector."));if(1===e.length)return he(e[0][0]);const t=[];for(const n of e){const e=he(n[0]),r=n[1];r&&e&&(e.combinator=r),t.push(e)}return new te(t)}(t.value):new Z(new Error("Empty selector"))}catch(e){return new Z(e)}}let ve;function ge(e){var t;return!e||!(null===(t=null==e?void 0:e.ruleSets)||void 0===t?void 0:t.length)}function ye(t,n){if(t){if(!ge(ve))return ve;const e=function(e=[],t){return e.map(e=>{let n=e[0],r=e[1];return r=r.map(e=>{const[t,n]=e;return{type:"declaration",property:t,value:n}}).map(pe(null!=t?t:ue)),n=n.map(me),new ne(n,r,"")})}(t,n);return ve=new V(e),ve}const r=e[be];if(ge(ve)||r){const t=function(e=[],t){return e.map(e=>{const n=e.declarations.filter(de).map(pe(null!=t?t:ue)),r=e.selectors.map(me);return new ne(r,n,e.hash)})}(r,n);ve?ve.append(t):ve=new V(t),e[be]=void 0}return e[Oe]&&(e[Oe].forEach(e=>{ve.delete(e)}),e[Oe]=void 0),ve}const be="__HIPPY_VUE_STYLES__",Oe="__HIPPY_VUE_DISPOSE_STYLES__";let _e=Object.create(null);const Ee={$on:(e,t,n)=>(Array.isArray(e)?e.forEach(e=>{Ee.$on(e,t,n)}):(_e[e]||(_e[e]=[]),_e[e].push({fn:t,ctx:n})),Ee),$once(e,t,n){function r(...o){Ee.$off(e,r),t.apply(n,o)}return r._=t,Ee.$on(e,r),Ee},$emit(e,...t){const n=(_e[e]||[]).slice(),r=n.length;for(let e=0;e{Ee.$off(e,t)}),Ee;const n=_e[e];if(!n)return Ee;if(!t)return _e[e]=null,Ee;let r;const o=n.length;for(let e=0;ee;function Pe(){return Ie}let Re=(e,t)=>{};function Me(e,t){const n=new Map;return Array.isArray(e)?e.forEach(([e,t])=>{n.set(e,t),n.set(t,e)}):(n.set(e,t),n.set(t,e)),n}function Le(e){let t=e;return/^assets/.test(t)&&(t="hpfile://./"+t),t}function Fe(e){return"on"+h.capitalize(e)}function De(e){const t={};return e.forEach(e=>{if(Array.isArray(e)){const n=Fe(e[0]),r=Fe(e[1]);Object.prototype.hasOwnProperty.call(this.$attrs,n)&&(this.$attrs[r]||(t[r]=this.$attrs[n]))}}),t}function Ve(e,t){return!(!t||!e)&&e.match(t)}function Be(e){return e.split(" ").filter(e=>e.trim())}var $e;const Ue=["%c[native]%c","color: red","color: auto"],He={},{bridge:{callNative:Ye,callNativeWithPromise:We,callNativeWithCallbackId:ze},device:{platform:{OS:Ke,Localization:Ge={}},screen:{scale:qe}},device:Je,document:Xe,register:Ze,asyncStorage:Qe}=null!==($e=e.Hippy)&&void 0!==$e?$e:{device:{platform:{Localization:{}},window:{},screen:{}},bridge:{},register:{},document:{},asyncStorage:{}},et=async(e,t)=>{const n={top:-1,left:-1,bottom:-1,right:-1,width:-1,height:-1};if(!e.isMounted||!e.nodeId)return Promise.resolve(n);const{nodeId:r}=e;return Te(...Ue,"callUIFunction",{nodeId:r,funcName:t,params:[]}),new Promise(e=>Xe.callUIFunction(r,t,[],t=>{if(!t||"object"!=typeof t||void 0===r)return e(n);const{x:o,y:i,height:s,width:c}=t;return e({top:i,left:o,width:c,height:s,bottom:i+s,right:o+c})}))},tt=new Map,nt={Localization:Ge,hippyNativeDocument:Xe,hippyNativeRegister:Ze,Platform:Ke,PixelRatio:qe,ConsoleModule:e.ConsoleModule||e.console,callNative:Ye,callNativeWithPromise:We,callNativeWithCallbackId:ze,AsyncStorage:Qe,callUIFunction(...e){const[t,n,...r]=e;if(!(null==t?void 0:t.nodeId))return;const{nodeId:o}=t;let[i=[],s]=r;"function"==typeof i&&(s=i,i=[]),Te(...Ue,"callUIFunction",{nodeId:o,funcName:n,params:i}),Xe.callUIFunction(o,n,i,s)},Clipboard:{getString(){return nt.callNativeWithPromise.call(this,"ClipboardModule","getString")},setString(e){nt.callNative.call(this,"ClipboardModule","setString",e)}},Cookie:{getAll(e){if(!e)throw new TypeError("Native.Cookie.getAll() must have url argument");return nt.callNativeWithPromise.call(this,"network","getCookie",e)},set(e,t,n){if(!e)throw new TypeError("Native.Cookie.set() must have url argument");let r="";n&&(r=n.toUTCString()),nt.callNative.call(this,"network","setCookie",e,t,r)}},ImageLoader:{getSize(e){return nt.callNativeWithPromise.call(this,"ImageLoaderModule","getSize",e)},prefetch(e){nt.callNative.call(this,"ImageLoaderModule","prefetch",e)}},get Dimensions(){const{screen:e}=Je,{statusBarHeight:t}=e;return{window:Je.window,screen:l(l({},e),{},{statusBarHeight:t})}},get Device(){var t;return void 0===He.Device&&(nt.isIOS()?(null===(t=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.Device)?He.Device=e.__HIPPYNATIVEGLOBAL__.Device:He.Device="iPhone":nt.isAndroid()?He.Device="Android device":He.Device="Unknown device"),He.Device},get screenIsVertical(){return nt.Dimensions.window.width"android"===nt.Platform,isIOS:()=>"ios"===nt.Platform,measureInWindow:e=>et(e,"measureInWindow"),measureInAppWindow:e=>nt.isAndroid()?et(e,"measureInWindow"):et(e,"measureInAppWindow"),getBoundingClientRect(e,t){const{nodeId:n}=e;return new Promise((r,o)=>{if(!e.isMounted||!n)return o(new Error(`getBoundingClientRect cannot get nodeId of ${e} or ${e} is not mounted`));Te(...Ue,"UIManagerModule",{nodeId:n,funcName:"getBoundingClientRect",params:t}),Xe.callUIFunction(n,"getBoundingClientRect",[t],e=>{if(!e||e.errMsg)return o(new Error((null==e?void 0:e.errMsg)||"getBoundingClientRect error with no response"));const{x:t,y:n,width:i,height:s}=e;let c=void 0,a=void 0;return"number"==typeof n&&"number"==typeof s&&(c=n+s),"number"==typeof t&&"number"==typeof i&&(a=t+i),r({x:t,y:n,width:i,height:s,bottom:c,right:a,left:t,top:n})})})},NetInfo:{fetch:()=>nt.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(({network_info:e})=>e),addEventListener(e,t){let n=e;return"change"===n&&(n="networkStatusDidChange"),0===tt.size&&nt.callNative("NetInfo","addListener",n),Ee.$on(n,t),tt.set(t,t),{eventName:e,listener:t,remove(){this.eventName&&this.listener&&(nt.NetInfo.removeEventListener(this.eventName,this.listener),this.listener=void 0)}}},removeEventListener(e,t){if(null==t?void 0:t.remove)return void t.remove();let n=e;"change"===e&&(n="networkStatusDidChange"),tt.size<=1&&nt.callNative("NetInfo","removeListener",n);const r=tt.get(t);r&&(Ee.$off(n,r),tt.delete(t),tt.size<1&&nt.callNative("NetInfo","removeListener",n))}},get isIPhoneX(){if(void 0===He.isIPhoneX){let e=!1;nt.isIOS()&&(e=20!==nt.Dimensions.screen.statusBarHeight),He.isIPhoneX=e}return He.isIPhoneX},get OnePixel(){if(void 0===He.OnePixel){const e=nt.PixelRatio;let t=Math.round(.4*e)/e;t||(t=1/e),He.OnePixel=t}return He.OnePixel},get APILevel(){var t,n;return nt.isAndroid()&&(null===(n=null===(t=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.Platform)||void 0===n?void 0:n.APILevel)?e.__HIPPYNATIVEGLOBAL__.Platform.APILevel:(je(),null)},get OSVersion(){var t;return nt.isIOS()&&(null===(t=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.OSVersion)?e.__HIPPYNATIVEGLOBAL__.OSVersion:null},get SDKVersion(){var t,n;return nt.isIOS()&&(null===(t=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===t?void 0:t.OSVersion)?null===(n=null==e?void 0:e.__HIPPYNATIVEGLOBAL__)||void 0===n?void 0:n.SDKVersion:null},parseColor(e){var t;if(Number.isInteger(e))return e;const n=null!==(t=He.COLOR_PARSER)&&void 0!==t?t:He.COLOR_PARSER=Object.create(null);return n[e]||(n[e]=x(e)),n[e]},getElemCss(e){const t=Object.create(null);try{ye(void 0,Pe()).query(e).selectors.forEach(n=>{Ve(n,e)&&n.ruleSet.declarations.forEach(e=>{t[e.property]=e.value})})}catch(e){je()}return t},version:"unspecified"},rt=new Set;let ot=!1;const it={exitApp(){nt.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(ot||(ot=!0,it.initEventListener()),nt.callNative("DeviceEventModule","setListenBackPress",!0),rt.add(e),{remove(){it.removeListener(e)}}),removeListener(e){rt.delete(e),0===rt.size&&nt.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){Ee.$on("hardwareBackPress",()=>{let e=!0;Array.from(rt).reverse().forEach(t=>{"function"==typeof t&&t()&&(e=!1)}),e&&it.exitApp()})}},st={exitApp(){},addListener:()=>({remove(){}}),removeListener(){},initEventListener(){}},ct=nt.isAndroid()?it:st,at=new Map;function lt(e,t){if(!e)throw new Error("tagName can not be empty");const n=Ae(e);at.has(n)||at.set(n,t.component)}function ut(e){const t=Ae(e),n=h.camelize(e).toLowerCase();return at.get(t)||at.get(n)}const dt=new Map,pt={number:"numeric",text:"default",search:"web-search"},ft={role:"accessibilityRole","aria-label":"accessibilityLabel","aria-disabled":{jointKey:"accessibilityState",name:"disabled"},"aria-selected":{jointKey:"accessibilityState",name:"selected"},"aria-checked":{jointKey:"accessibilityState",name:"checked"},"aria-busy":{jointKey:"accessibilityState",name:"busy"},"aria-expanded":{jointKey:"accessibilityState",name:"expanded"},"aria-valuemin":{jointKey:"accessibilityValue",name:"min"},"aria-valuemax":{jointKey:"accessibilityValue",name:"max"},"aria-valuenow":{jointKey:"accessibilityValue",name:"now"},"aria-valuetext":{jointKey:"accessibilityValue",name:"text"}},ht={component:{name:we.View,eventNamesMap:Me([["touchStart","onTouchDown"],["touchstart","onTouchDown"],["touchmove","onTouchMove"],["touchend","onTouchEnd"],["touchcancel","onTouchCancel"]]),attributeMaps:l({},ft),processEventData(e,t){var n,r;const{handler:o,__evt:i}=e;switch(i){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":o.offsetX=null===(n=t.contentOffset)||void 0===n?void 0:n.x,o.offsetY=null===(r=t.contentOffset)||void 0===r?void 0:r.y,(null==t?void 0:t.contentSize)&&(o.scrollHeight=t.contentSize.height,o.scrollWidth=t.contentSize.width);break;case"onTouchDown":case"onTouchMove":case"onTouchEnd":case"onTouchCancel":o.touches={0:{clientX:t.page_x,clientY:t.page_y},length:1};break;case"onFocus":o.isFocused=t.focus}return o}}},mt={component:{name:we.View,attributeMaps:ht.component.attributeMaps,eventNamesMap:ht.component.eventNamesMap,processEventData:ht.component.processEventData}},vt={component:{name:we.View}},gt={component:{name:we.Image,eventNamesMap:ht.component.eventNamesMap,processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onTouchDown":case"onTouchMove":case"onTouchEnd":case"onTouchCancel":n.touches={0:{clientX:t.page_x,clientY:t.page_y},length:1};break;case"onFocus":n.isFocused=t.focus;break;case"onLoad":{const{width:e,height:r,url:o}=t;n.width=e,n.height=r,n.url=o;break}}return n},defaultNativeStyle:{backgroundColor:0},attributeMaps:l({placeholder:{name:"defaultSource",propsValue(e){const t=Le(e);return(null==t?void 0:t.indexOf(Se))<0&&["https://","http://"].some(e=>0===t.indexOf(e))&&je(),t}},src:e=>Le(e)},ft)}},yt={component:{name:we.ListView,defaultNativeStyle:{flex:1},attributeMaps:l({},ft),eventNamesMap:Me("listReady","initialListReady"),processEventData(e,t){var n,r;const{handler:o,__evt:i}=e;switch(i){case"onScroll":case"onScrollBeginDrag":case"onScrollEndDrag":case"onMomentumScrollBegin":case"onMomentumScrollEnd":o.offsetX=null===(n=t.contentOffset)||void 0===n?void 0:n.x,o.offsetY=null===(r=t.contentOffset)||void 0===r?void 0:r.y;break;case"onDelete":o.index=t.index}return o}}},bt={component:{name:we.ListViewItem,attributeMaps:l({},ft),eventNamesMap:Me([["disappear","onDisappear"]])}},Ot={component:{name:we.Text,attributeMaps:ht.component.attributeMaps,eventNamesMap:ht.component.eventNamesMap,processEventData:ht.component.processEventData,defaultNativeProps:{text:""},defaultNativeStyle:{color:4278190080}}},_t=Ot,Et=Ot,St={component:l(l({},Ot.component),{},{defaultNativeStyle:{color:4278190318},attributeMaps:{href:{name:"href",propsValue:e=>["//","http://","https://"].filter(t=>0===e.indexOf(t)).length?(je(),""):e}}})},wt={component:{name:we.TextInput,attributeMaps:l({type:{name:"keyboardType",propsValue(e){const t=pt[e];return t||e}},disabled:{name:"editable",propsValue:e=>!e},value:"defaultValue",maxlength:"maxLength"},ft),nativeProps:{numberOfLines:1,multiline:!1},defaultNativeProps:{underlineColorAndroid:0},defaultNativeStyle:{padding:0,color:4278190080},eventNamesMap:Me([["change","onChangeText"],["select","onSelectionChange"]]),processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onChangeText":case"onEndEditing":n.value=t.text;break;case"onSelectionChange":n.start=t.selection.start,n.end=t.selection.end;break;case"onKeyboardWillShow":n.keyboardHeight=t.keyboardHeight;break;case"onContentSizeChange":n.width=t.contentSize.width,n.height=t.contentSize.height}return n}}},Nt={component:{name:we.TextInput,defaultNativeProps:l(l({},wt.component.defaultNativeProps),{},{numberOfLines:5}),attributeMaps:l(l({},wt.component.attributeMaps),{},{rows:"numberOfLines"}),nativeProps:{multiline:!0},defaultNativeStyle:wt.component.defaultNativeStyle,eventNamesMap:wt.component.eventNamesMap,processEventData:wt.component.processEventData}},xt={component:{name:we.WebView,defaultNativeProps:{method:"get",userAgent:""},attributeMaps:{src:{name:"source",propsValue:e=>({uri:e})}},processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onLoad":case"onLoadStart":n.url=t.url;break;case"onLoadEnd":n.url=t.url,n.success=t.success,n.error=t.error}return n}}};dt.set("div",ht),dt.set("button",mt),dt.set("form",vt),dt.set("img",gt),dt.set("ul",yt),dt.set("li",bt),dt.set("span",Ot),dt.set("label",_t),dt.set("p",Et),dt.set("a",St),dt.set("input",wt),dt.set("textarea",Nt),dt.set("iframe",xt);var Tt={install(){dt.forEach((e,t)=>{lt(t,e)})}};function jt(){const{Localization:e}=nt;return!!e&&1===e.direction}const At=0,Ct=1,kt={onClick:"click",onLongClick:"longclick",onPressIn:"pressin",onPressOut:"pressout",onTouchDown:"touchstart",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchCancel:"touchcancel"},It={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3};const Pt="addEventListener",Rt="removeEventListener";let Mt;function Lt(){return Mt}function Ft(e,t){Mt[e]=t}class Dt{constructor(e){this.target=null,this.currentTarget=null,this.originalTarget=null,this.bubbles=!0,this.cancelable=!0,this.eventPhase=0,this.isCanceled=!1,this.type=e,this.timeStamp=Date.now()}get canceled(){return this.isCanceled}stopPropagation(){this.bubbles=!1}preventDefault(){if(this.cancelable){if(this.isCanceled)return;this.isCanceled=!0}}}class Vt extends Dt{}function Bt(e){return"string"==typeof e.value}const $t=new Map;function Ut(e,t){$t.set(t,e)}function Ht(e){$t.delete(e)}function Yt(e){return $t.get(e)||null}function Wt(t){var n,r;n=e=>{(e.timeRemaining()>0||e.didTimeout)&&function e(t){var n;"number"==typeof t?Ht(t):t&&(Ht(t.nodeId),null===(n=t.childNodes)||void 0===n||n.forEach(t=>e(t)))}(t)},r={timeout:50},e.requestIdleCallback?e.requestIdleCallback(n,r):setTimeout(()=>{n({didTimeout:!1,timeRemaining:()=>1/0})},1)}function zt(e=[],t=0){let n=e[t];for(let r=t;r-1){let e;if("onLayout"===o){e=new Vt(i),Object.assign(e,{eventPhase:c,nativeParams:null!=s?s:{}});const{layout:{x:t,y:n,height:r,width:o}}=s;e.top=n,e.left=t,e.bottom=n+r,e.right=t+o,e.width=o,e.height=r}else{e=new Dt(i),Object.assign(e,{eventPhase:c,nativeParams:null!=s?s:{}});const{processEventData:t}=l.component;t&&t({__evt:o,handler:e},s)}a.dispatchEvent(function(e,t,n){return function(e){return["onTouchDown","onTouchMove","onTouchEnd","onTouchCancel"].indexOf(e)>=0}(e)&&Object.assign(t,{touches:{0:{clientX:n.page_x,clientY:n.page_y},length:1}}),t}(o,e,s),l,t)}}catch(e){console.error("receiveComponentEvent error",e)}else je(...Gt,"receiveComponentEvent","currentTargetNode or targetNode not exist")}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=qt);class Jt{constructor(){this.listeners={}}static indexOfListener(e,t,n){return e.findIndex(e=>n?e.callback===t&&h.looseEqual(e.options,n):e.callback===t)}addEventListener(e,t,n){const r=e.split(","),o=r.length;for(let e=0;e=0&&e.splice(r,1),e.length||(this.listeners[o]=void 0)}}}else this.listeners[o]=void 0}}emitEvent(e){var t,n;const{type:r}=e,o=this.listeners[r];if(o)for(let r=o.length-1;r>=0;r-=1){const i=o[r];(null===(t=i.options)||void 0===t?void 0:t.once)&&o.splice(r,1),(null===(n=i.options)||void 0===n?void 0:n.thisArg)?i.callback.apply(i.options.thisArg,[e]):i.callback(e)}}getEventListenerList(){return this.listeners}}var Xt;!function(e){e[e.CREATE=0]="CREATE",e[e.UPDATE=1]="UPDATE",e[e.DELETE=2]="DELETE",e[e.MOVE=3]="MOVE",e[e.UPDATE_EVENT=4]="UPDATE_EVENT"}(Xt||(Xt={}));let Zt=!1,Qt=[];function en(e=[],t){e.forEach(e=>{if(e){const{id:n,eventList:r}=e;r.forEach(e=>{const{name:r,type:o,listener:i}=e;let s;s=function(e){return!!kt[e]}(r)?kt[r]:function(e){return e.replace(/^(on)?/g,"").toLocaleLowerCase()}(r),o===Ct&&t.removeEventListener(n,s,i),o===At&&(t.removeEventListener(n,s,i),t.addEventListener(n,s,i))})}})}function tn(e,t){0}function nn(){Zt||(Zt=!0,0!==Qt.length?m.nextTick().then(()=>{const t=function(e){const t=[];for(const n of e){const{type:e,nodes:r,eventNodes:o,printedNodes:i}=n,s=t[t.length-1];s&&s.type===e?(s.nodes=s.nodes.concat(r),s.eventNodes=s.eventNodes.concat(o),s.printedNodes=s.printedNodes.concat(i)):t.push({type:e,nodes:r,eventNodes:o,printedNodes:i})}return t}(Qt),{rootViewId:n}=Lt(),r=new e.Hippy.SceneBuilder(n);t.forEach(e=>{switch(e.type){case Xt.CREATE:tn(e.printedNodes),r.create(e.nodes,!0),en(e.eventNodes,r);break;case Xt.UPDATE:tn(e.printedNodes),r.update(e.nodes),en(e.eventNodes,r);break;case Xt.DELETE:tn(e.printedNodes),r.delete(e.nodes);break;case Xt.MOVE:tn(e.printedNodes),r.move(e.nodes);break;case Xt.UPDATE_EVENT:en(e.eventNodes,r)}}),r.build(),Zt=!1,Qt=[]}):Zt=!1)}var rn;function on(e){let t;const n=e.events;if(n){const r=[];Object.keys(n).forEach(e=>{const{name:t,type:o,isCapture:i,listener:s}=n[e];r.push({name:t,type:o,isCapture:i,listener:s})}),t={id:e.nodeId,eventList:r}}return t}!function(e){e[e.ElementNode=1]="ElementNode",e[e.TextNode=3]="TextNode",e[e.CommentNode=8]="CommentNode",e[e.DocumentNode=4]="DocumentNode"}(rn||(rn={}));class sn extends Jt{constructor(e,t){var n;super(),this.isMounted=!1,this.events={},this.childNodes=[],this.parentNode=null,this.prevSibling=null,this.nextSibling=null,this.tagComponent=null,this.nodeId=null!==(n=null==t?void 0:t.id)&&void 0!==n?n:sn.getUniqueNodeId(),this.nodeType=e,this.isNeedInsertToNative=function(e){return e===rn.ElementNode}(e),(null==t?void 0:t.id)&&(this.isMounted=!0)}static getUniqueNodeId(){return e.hippyUniqueId||(e.hippyUniqueId=0),e.hippyUniqueId+=1,e.hippyUniqueId%10==0&&(e.hippyUniqueId+=1),e.hippyUniqueId}get firstChild(){return this.childNodes.length?this.childNodes[0]:null}get lastChild(){const e=this.childNodes.length;return e?this.childNodes[e-1]:null}get component(){return this.tagComponent}get index(){let e=0;if(this.parentNode){e=this.parentNode.childNodes.filter(e=>e.isNeedInsertToNative).indexOf(this)}return e}isRootNode(){return 1===this.nodeId}hasChildNodes(){return!!this.childNodes.length}insertBefore(e,t){const n=e,r=t;if(!n)throw new Error("No child to insert");if(!r)return void this.appendChild(n);if(n.parentNode&&n.parentNode!==this)throw new Error("Can not insert child, because the child node is already has a different parent");let o=this;r.parentNode!==this&&(o=r.parentNode);const i=o.childNodes.indexOf(r);let s=r;r.isNeedInsertToNative||(s=zt(this.childNodes,i)),n.parentNode=o,n.nextSibling=r,n.prevSibling=o.childNodes[i-1],o.childNodes[i-1]&&(o.childNodes[i-1].nextSibling=n),r.prevSibling=n,o.childNodes.splice(i,0,n),s.isNeedInsertToNative?this.insertChildNativeNode(n,{refId:s.nodeId,relativeToRef:Kt}):this.insertChildNativeNode(n)}moveChild(e,t){const n=e,r=t;if(!n)throw new Error("No child to move");if(!r)return void this.appendChild(n);if(r.parentNode&&r.parentNode!==this)throw new Error("Can not move child, because the anchor node is already has a different parent");if(n.parentNode&&n.parentNode!==this)throw new Error("Can't move child, because it already has a different parent");const o=this.childNodes.indexOf(n),i=this.childNodes.indexOf(r);let s=r;if(r.isNeedInsertToNative||(s=zt(this.childNodes,i)),i===o)return;n.nextSibling=r,n.prevSibling=r.prevSibling,r.prevSibling=n,this.childNodes[i-1]&&(this.childNodes[i-1].nextSibling=n),this.childNodes[i+1]&&(this.childNodes[i+1].prevSibling=n),this.childNodes[o-1]&&(this.childNodes[o-1].nextSibling=this.childNodes[o+1]),this.childNodes[o+1]&&(this.childNodes[o+1].prevSibling=this.childNodes[o-1]),this.childNodes.splice(o,1);const c=this.childNodes.indexOf(r);this.childNodes.splice(c,0,n),s.isNeedInsertToNative?this.moveChildNativeNode(n,{refId:s.nodeId,relativeToRef:Kt}):this.insertChildNativeNode(n)}appendChild(e,t=!1){const n=e;if(!n)throw new Error("No child to append");this.lastChild!==n&&(n.parentNode&&n.parentNode!==this?n.parentNode.removeChild(n):(n.isMounted&&!t&&this.removeChild(n),n.parentNode=this,this.lastChild&&(n.prevSibling=this.lastChild,this.lastChild.nextSibling=n),this.childNodes.push(n),t?Ut(n,n.nodeId):this.insertChildNativeNode(n)))}removeChild(e){const t=e;if(!t)throw new Error("Can't remove child.");if(!t.parentNode)throw new Error("Can't remove child, because it has no parent.");if(t.parentNode!==this)return void t.parentNode.removeChild(t);if(!t.isNeedInsertToNative)return;t.prevSibling&&(t.prevSibling.nextSibling=t.nextSibling),t.nextSibling&&(t.nextSibling.prevSibling=t.prevSibling),t.prevSibling=null,t.nextSibling=null;const n=this.childNodes.indexOf(t);this.childNodes.splice(n,1),this.removeChildNativeNode(t)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(const t of this.childNodes){const n=this.findChild.call(t,e);if(n)return n}return null}eachNode(e){e&&e(this),this.childNodes.length&&this.childNodes.forEach(t=>{this.eachNode.call(t,e)})}insertChildNativeNode(e,t={}){if(!e||!e.isNeedInsertToNative)return;const n=this.isRootNode()&&!this.isMounted,r=this.isMounted&&!e.isMounted;if(n||r){const r=n?this:e;!function([e,t,n]){Qt.push({type:Xt.CREATE,nodes:e,eventNodes:t,printedNodes:n}),nn()}(r.convertToNativeNodes(!0,t)),r.eachNode(e=>{const t=e;!t.isMounted&&t.isNeedInsertToNative&&(t.isMounted=!0),Ut(t,t.nodeId)})}}moveChildNativeNode(e,t={}){if(!e||!e.isNeedInsertToNative)return;if(t&&t.refId===e.nodeId)return;!function([e,,t]){e&&(Qt.push({type:Xt.MOVE,nodes:e,eventNodes:[],printedNodes:t}),nn())}(e.convertToNativeNodes(!1,t))}removeChildNativeNode(e){if(!e||!e.isNeedInsertToNative)return;const t=e;t.isMounted&&(t.isMounted=!1,function([e,,t]){e&&(Qt.push({type:Xt.DELETE,nodes:e,eventNodes:[],printedNodes:t}),nn())}(t.convertToNativeNodes(!1,{})))}updateNativeNode(e=!1){if(!this.isMounted)return;!function([e,t,n]){e&&(Qt.push({type:Xt.UPDATE,nodes:e,eventNodes:t,printedNodes:n}),nn())}(this.convertToNativeNodes(e,{}))}updateNativeEvent(){if(!this.isMounted)return;!function(e){Qt.push({type:Xt.UPDATE_EVENT,nodes:[],eventNodes:[e],printedNodes:[]}),nn()}(on(this))}convertToNativeNodes(e,t={},n){var r,o;if(!this.isNeedInsertToNative)return[[],[],[]];if(e){const e=[],n=[],r=[];return this.eachNode(o=>{const[i,s,c]=o.convertToNativeNodes(!1,t);Array.isArray(i)&&i.length&&e.push(...i),Array.isArray(s)&&s.length&&n.push(...s),Array.isArray(c)&&c.length&&r.push(...c)}),[e,n,r]}if(!this.component)throw new Error("tagName is not supported yet");const{rootViewId:i}=Lt(),s=null!=n?n:{},c=l({id:this.nodeId,pId:null!==(o=null===(r=this.parentNode)||void 0===r?void 0:r.nodeId)&&void 0!==o?o:i},s),a=on(this);let u=void 0;return[[[c,t]],[a],[u]]}}class cn extends sn{constructor(e,t){super(rn.TextNode,t),this.text=e,this.data=e,this.isNeedInsertToNative=!1}setText(e){this.text=e,this.parentNode&&this.parentNode.nodeType===rn.ElementNode&&this.parentNode.setText(e)}}function an(e,t){if("string"!=typeof e)return;const n=e.split(",");for(let e=0,r=n.length;e{t[n]=function(e){let t=e;if("string"!=typeof t||!t.endsWith("rem"))return t;if(t=parseFloat(t),Number.isNaN(t))return e;const{ratioBaseWidth:n}=Lt(),{width:r}=nt.Dimensions.screen;return 100*t*(r/n)}(e[n])}):t=e,t}get component(){return this.tagComponent||(this.tagComponent=ut(this.tagName)),this.tagComponent}isRootNode(){const{rootContainer:e}=Lt();return super.isRootNode()||this.id===e}appendChild(e,t=!1){e instanceof cn&&this.setText(e.text,{notToNative:!0}),super.appendChild(e,t)}insertBefore(e,t){e instanceof cn&&this.setText(e.text,{notToNative:!0}),super.insertBefore(e,t)}moveChild(e,t){e instanceof cn&&this.setText(e.text,{notToNative:!0}),super.moveChild(e,t)}removeChild(e){e instanceof cn&&this.setText("",{notToNative:!0}),super.removeChild(e)}hasAttribute(e){return!!this.attributes[e]}getAttribute(e){return this.attributes[e]}removeAttribute(e){delete this.attributes[e]}setAttribute(e,t,n={}){let r=t,o=e;try{if("boolean"==typeof this.attributes[o]&&""===r&&(r=!0),void 0===o)return void(!n.notToNative&&this.updateNativeNode());switch(o){case"class":{const e=new Set(Be(r));if(function(e,t){if(e.size!==t.size)return!1;const n=e.values();let r=n.next().value;for(;r;){if(!t.has(r))return!1;r=n.next().value}return!0}(this.classList,e))return;return this.classList=e,void(!n.notToNative&&this.updateNativeNode(!0))}case"id":if(r===this.id)return;return this.id=r,void(!n.notToNative&&this.updateNativeNode(!0));case"text":case"value":case"defaultValue":case"placeholder":if("string"!=typeof r)try{r=r.toString()}catch(e){je(e.message)}n&&n.textUpdate||(r="string"!=typeof(i=r)?i:void 0===xe||xe?i.trim():i),r=r.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)));break;case"numberOfRows":if(!nt.isIOS())return;break;case"caretColor":case"caret-color":o="caret-color",r=nt.parseColor(r);break;case"break-strategy":o="breakStrategy";break;case"placeholderTextColor":case"placeholder-text-color":o="placeholderTextColor",r=nt.parseColor(r);break;case"underlineColorAndroid":case"underline-color-android":o="underlineColorAndroid",r=nt.parseColor(r);break;case"nativeBackgroundAndroid":{const e=r;void 0!==e.color&&(e.color=nt.parseColor(e.color)),o="nativeBackgroundAndroid",r=e;break}}if(this.attributes[o]===r)return;this.attributes[o]=r,"function"==typeof this.filterAttribute&&this.filterAttribute(this.attributes),!n.notToNative&&this.updateNativeNode()}catch(e){0}var i}setText(e,t={}){return this.setAttribute("text",e,{notToNative:!!t.notToNative})}removeStyle(e=!1){this.style={},e||this.updateNativeNode()}setStyles(e){e&&"object"==typeof e&&(Object.keys(e).forEach(t=>{const n=e[t];this.setStyle(t,n,!0)}),this.updateNativeNode())}setStyle(e,t,n=!1){if(void 0===t)return delete this.style[e],void(n||this.updateNativeNode());let{property:r,value:o}=this.beforeLoadStyle({property:e,value:t});switch(r){case"fontWeight":"string"!=typeof o&&(o=o.toString());break;case"backgroundImage":[r,o]=F(r,o);break;case"textShadowOffsetX":case"textShadowOffsetY":[r,o]=function(e,t=0,n){var r;const o=n;return o.textShadowOffset=null!==(r=o.textShadowOffset)&&void 0!==r?r:{},Object.assign(o.textShadowOffset,{[{textShadowOffsetX:"width",textShadowOffsetY:"height"}[e]]:t}),["textShadowOffset",o.textShadowOffset]}(r,o,this.style);break;case"textShadowOffset":{const{x:e=0,width:t=0,y:n=0,height:r=0}=null!=o?o:{};o={width:e||t,height:n||r};break}default:Object.prototype.hasOwnProperty.call(T,r)&&(r=T[r]),"string"==typeof o&&(o=o.trim(),o=r.toLowerCase().indexOf("color")>=0?nt.parseColor(o):o.endsWith("px")?parseFloat(o.slice(0,o.length-2)):function(e){if("number"==typeof e)return e;if(ke.test(e))try{return parseFloat(e)}catch(e){}return e}(o))}null!=o&&this.style[r]!==o&&(this.style[r]=o,n||this.updateNativeNode())}scrollToPosition(e=0,t=0,n=1e3){if("number"!=typeof e||"number"!=typeof t)return;let r=n;!1===r&&(r=0),nt.callUIFunction(this,"scrollToWithOptions",[{x:e,y:t,duration:r}])}scrollTo(e,t,n){if("object"==typeof e&&e){const{left:t,top:n,behavior:r="auto",duration:o}=e;this.scrollToPosition(t,n,"none"===r?0:o)}else this.scrollToPosition(e,t,n)}setListenerHandledType(e,t){this.events[e]&&(this.events[e].handledType=t)}isListenerHandled(e,t){return!this.events[e]||t===this.events[e].handledType}getNativeEventName(e){let t="on"+Ce(e);if(this.component){const{eventNamesMap:n}=this.component;(null==n?void 0:n.get(e))&&(t=n.get(e))}return t}addEventListener(e,t,n){let r=e,o=t,i=n,s=!0;"scroll"!==r||this.getAttribute("scrollEventThrottle")>0||(this.attributes.scrollEventThrottle=200);const c=this.getNativeEventName(r);this.attributes[c]&&(s=!1),"function"==typeof this.polyfillNativeEvents&&({eventNames:r,callback:o,options:i}=this.polyfillNativeEvents(Pt,r,o,i)),super.addEventListener(r,o,i),an(r,e=>{const t=this.getNativeEventName(e);var n,r;this.events[t]?this.events[t]&&this.events[t].type!==At&&(this.events[t].type=At):this.events[t]={name:t,type:At,listener:(n=t,r=e,e=>{const{id:t,currentId:o,params:i,eventPhase:s}=e,c={id:t,nativeName:n,originalName:r,currentId:o,params:i,eventPhase:s};qt.receiveComponentEvent(c,e)}),isCapture:!1}}),s&&this.updateNativeEvent()}removeEventListener(e,t,n){let r=e,o=t,i=n;"function"==typeof this.polyfillNativeEvents&&({eventNames:r,callback:o,options:i}=this.polyfillNativeEvents(Rt,r,o,i)),super.removeEventListener(r,o,i),an(r,e=>{const t=this.getNativeEventName(e);this.events[t]&&(this.events[t].type=Ct)});const s=this.getNativeEventName(r);this.attributes[s]&&delete this.attributes[s],this.updateNativeEvent()}dispatchEvent(e,t,n){const r=e;r.currentTarget=this,r.target||(r.target=t||this,Bt(r)&&(r.target.value=r.value)),this.emitEvent(r),!r.bubbles&&n&&n.stopPropagation()}convertToNativeNodes(e,t={}){if(!this.isNeedInsertToNative)return[[],[],[]];if(e)return super.convertToNativeNodes(!0,t);let n=this.getNativeStyles();if(this.parentNode&&this.parentNode instanceof ln){const e=this.parentNode.processedStyle;["color","fontSize","fontWeight","fontFamily","fontStyle","textAlign","lineHeight"].forEach(t=>{!n[t]&&e[t]&&(n[t]=e[t])})}if(Re(this,n),this.component.defaultNativeStyle){const{defaultNativeStyle:e}=this.component,t={};Object.keys(e).forEach(n=>{this.getAttribute(n)||(t[n]=e[n])}),n=l(l({},t),n)}this.processedStyle=n;const r={name:this.component.name,props:l(l({},this.getNativeProps()),{},{style:n}),tagName:this.tagName};return function(e,t){const n=t;e.component.name===we.TextInput&&jt()&&(n.textAlign||(n.textAlign="right"))}(this,n),function(e,t,n){const r=t,o=n;e.component.name===we.View&&("scroll"===o.overflowX&&"scroll"===o.overflowY&&je(),"scroll"===o.overflowY?r.name="ScrollView":"scroll"===o.overflowX&&(r.name="ScrollView",r.props&&(r.props.horizontal=!0),o.flexDirection=jt()?"row-reverse":"row"),"ScrollView"===r.name&&(1!==e.childNodes.length&&je(),e.childNodes.length&&e.nodeType===rn.ElementNode&&e.childNodes[0].setStyle("collapsable",!1)),o.backgroundImage&&(o.backgroundImage=Le(o.backgroundImage)))}(this,r,n),super.convertToNativeNodes(!1,t,r)}repaintWithChildren(){this.updateNativeNode(!0)}setNativeProps(e){if(e){const{style:t}=e;this.setStyles(t)}}setPressed(e){nt.callUIFunction(this,"setPressed",[e])}setHotspot(e,t){nt.callUIFunction(this,"setHotspot",[e,t])}setStyleScope(e){const t="string"!=typeof e?e.toString():e;t&&!this.scopedIdList.includes(t)&&this.scopedIdList.push(t)}get styleScopeId(){return this.scopedIdList}getInlineStyle(){const e={};return Object.keys(this.style).forEach(t=>{const n=m.toRaw(this.style[t]);void 0!==n&&(e[t]=n)}),e}getNativeStyles(){let e={};return ye(void 0,Pe()).query(this).selectors.forEach(t=>{var n,r;Ve(t,this)&&(null===(r=null===(n=t.ruleSet)||void 0===n?void 0:n.declarations)||void 0===r?void 0:r.length)&&t.ruleSet.declarations.forEach(t=>{t.property&&(e[t.property]=t.value)})}),this.ssrInlineStyle&&(e=l(l({},e),this.ssrInlineStyle)),e=ln.parseRem(l(l({},e),this.getInlineStyle())),e}getNativeProps(){const e={},{defaultNativeProps:t}=this.component;t&&Object.keys(t).forEach(n=>{if(void 0===this.getAttribute(n)){const r=t[n];e[n]=h.isFunction(r)?r(this):m.toRaw(r)}}),Object.keys(this.attributes).forEach(t=>{var n;let r=m.toRaw(this.getAttribute(t));if(!this.component.attributeMaps||!this.component.attributeMaps[t])return void(e[t]=m.toRaw(r));const o=this.component.attributeMaps[t];if(h.isString(o))return void(e[o]=m.toRaw(r));if(h.isFunction(o))return void(e[t]=m.toRaw(o(r)));const{name:i,propsValue:s,jointKey:c}=o;h.isFunction(s)&&(r=s(r)),c?(e[c]=null!==(n=e[c])&&void 0!==n?n:{},Object.assign(e[c],{[i]:m.toRaw(r)})):e[i]=m.toRaw(r)});const{nativeProps:n}=this.component;return n&&Object.keys(n).forEach(t=>{e[t]=m.toRaw(n[t])}),e}getNodeAttributes(){var e;try{const t=function e(t,n=new WeakMap){if("object"!=typeof t||null===t)throw new TypeError("deepCopy data is object");if(n.has(t))return n.get(t);const r={};return Object.keys(t).forEach(o=>{const i=t[o];"object"!=typeof i||null===i?r[o]=i:Array.isArray(i)?r[o]=[...i]:i instanceof Set?r[o]=new Set([...i]):i instanceof Map?r[o]=new Map([...i]):(n.set(t,t),r[o]=e(i,n))}),r}(this.attributes),n=Array.from(null!==(e=this.classList)&&void 0!==e?e:[]).join(" "),r=l({id:this.id,hippyNodeId:""+this.nodeId,class:n},t);return delete r.text,delete r.value,Object.keys(r).forEach(e=>{"id"!==e&&"hippyNodeId"!==e&&"class"!==e&&delete r[e]}),r}catch(e){return{}}}getNativeEvents(){const e={},t=this.getEventListenerList(),n=Object.keys(t);if(n.length){const{eventNamesMap:r}=this.component;n.forEach(n=>{const o=null==r?void 0:r.get(n);if(o)e[o]=!!t[n];else{const r="on"+Ce(n);e[r]=!!t[n]}})}return e}hackSpecialIssue(){this.fixVShowDirectiveIssue()}fixVShowDirectiveIssue(){var e;let t=null!==(e=this.style.display)&&void 0!==e?e:void 0;Object.defineProperty(this.style,"display",{enumerable:!0,configurable:!0,get:()=>t,set:e=>{t=void 0===e?"flex":e,this.updateNativeNode()}})}}function un(t){const n={valueType:void 0,delay:0,startValue:0,toValue:0,duration:0,direction:"center",timingFunction:"linear",repeatCount:0,inputRange:[],outputRange:[]};function r(e,t){return"color"===e&&["number","string"].indexOf(typeof t)>=0?nt.parseColor(t):t}function a(e){return"loop"===e?-1:e}function u(t){const{mode:i="timing",valueType:s,startValue:u,toValue:d}=t,p=c(t,o),f=l(l({},n),p);void 0!==s&&(f.valueType=t.valueType),f.startValue=r(f.valueType,u),f.toValue=r(f.valueType,d),f.repeatCount=a(f.repeatCount),f.mode=i;const h=new e.Hippy.Animation(f),m=h.getId();return{animation:h,animationId:m}}function d(t,n={}){const r={};return Object.keys(t).forEach(o=>{if(Array.isArray(t[o])){const i=t[o],{repeatCount:s}=i[i.length-1],c=i.map(e=>{const{animationId:t,animation:r}=u(l(l({},e),{},{repeatCount:0}));return Object.assign(n,{[t]:r}),{animationId:t,follow:!0}}),{animationId:d,animation:p}=function(t,n=0){const r=new e.Hippy.AnimationSet({children:t,repeatCount:n}),o=r.getId();return{animation:r,animationId:o}}(c,a(s));r[o]={animationId:d},Object.assign(n,{[d]:p})}else{const e=t[o],{animationId:i,animation:s}=u(e);Object.assign(n,{[i]:s}),r[o]={animationId:i}}}),r}function p(e){const{transform:t}=e,n=c(e,i);let r=Object.keys(n).map(t=>e[t].animationId);if(Array.isArray(t)&&t.length>0){const e=[];t.forEach(t=>Object.keys(t).forEach(n=>{if(t[n]){const{animationId:r}=t[n];"number"==typeof r&&r%1==0&&e.push(r)}})),r=[...r,...e]}return r}t.component("Animation",{props:{tag:{type:String,default:"div"},playing:{type:Boolean,default:!1},actions:{type:Object,required:!0},props:Object},data:()=>({style:{},animationIds:[],animationIdsMap:{},animationEventMap:{}}),watch:{playing(e,t){!t&&e?this.start():t&&!e&&this.pause()},actions(){this.destroy(),this.create(),setTimeout(()=>{const e=this.$attrs[Fe("actionsDidUpdate")];"function"==typeof e&&e()})}},created(){this.animationEventMap={start:"animationstart",end:"animationend",repeat:"animationrepeat",cancel:"animationcancel"}},beforeMount(){this.create()},mounted(){const{playing:e}=this.$props;e&&setTimeout(()=>{this.start()},0)},beforeDestroy(){this.destroy()},deactivated(){this.pause()},activated(){this.resume()},methods:{create(){const e=this.$props,{actions:{transform:t}}=e,n=c(e.actions,s);this.animationIdsMap={};const r=d(n,this.animationIdsMap);if(t){const e=d(t,this.animationIdsMap);r.transform=Object.keys(e).map(t=>({[t]:e[t]}))}this.$alreadyStarted=!1,this.style=r},removeAnimationEvent(){this.animationIds.forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$attrs[Fe(e)])return;const n=this.animationEventMap[e];n&&"function"==typeof this[""+n]&&t.removeEventListener(n)})})},addAnimationEvent(){this.animationIds.forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);t&&Object.keys(this.animationEventMap).forEach(e=>{if("function"!=typeof this.$attrs[Fe(e)])return;const n=this.animationEventMap[e];n&&t.addEventListener(n,()=>{this.$emit(e)})})})},reset(){this.$alreadyStarted=!1},start(){this.$alreadyStarted?this.resume():(this.animationIds=p(this.style),this.$alreadyStarted=!0,this.removeAnimationEvent(),this.addAnimationEvent(),this.animationIds.forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);null==t||t.start()}))},resume(){p(this.style).forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);null==t||t.resume()})},pause(){if(!this.$alreadyStarted)return;p(this.style).forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);null==t||t.pause()})},destroy(){this.removeAnimationEvent(),this.$alreadyStarted=!1;p(this.style).forEach(e=>{const t=m.toRaw(this.animationIdsMap[e]);null==t||t.destroy()})}},render(){return m.h(this.tag,l({useAnimation:!0,style:this.style,tag:this.$props.tag},this.$props.props),this.$slots.default?this.$slots.default():null)}})}const dn=["dialog","hi-pull-header","hi-pull-footer","hi-swiper","hi-swiper-slider","hi-waterfall","hi-waterfall-item","hi-ul-refresh-wrapper","hi-refresh-wrapper-item"];var pn={install(e){un(e),lt("dialog",{component:{name:"Modal",defaultNativeProps:{transparent:!0,immersionStatusBar:!0,collapsable:!1,autoHideStatusBar:!1,autoHideNavigationBar:!1},defaultNativeStyle:{position:"absolute"}}}),function(e){const{callUIFunction:t}=nt;[["Header","header"],["Footer","footer"]].forEach(([n,r])=>{lt("hi-pull-"+r,{component:{name:`Pull${n}View`,processEventData(e,t){const{handler:r,__evt:o}=e;switch(o){case`on${n}Released`:case`on${n}Pulling`:Object.assign(r,t)}return r}}}),e.component("pull-"+r,{methods:{["expandPull"+n](){t(this.$refs.instance,"expandPull"+n)},["collapsePull"+n](e){"Header"===n&&void 0!==e?t(this.$refs.instance,`collapsePull${n}WithOptions`,[e]):t(this.$refs.instance,"collapsePull"+n)},onLayout(e){this.$contentHeight=e.height},[`on${n}Released`](e){this.$emit("released",e)},[`on${n}Pulling`](e){e.contentOffset>this.$contentHeight?"pulling"!==this.$lastEvent&&(this.$lastEvent="pulling",this.$emit("pulling",e)):"idle"!==this.$lastEvent&&(this.$lastEvent="idle",this.$emit("idle",e))}},render(){const{onReleased:e,onPulling:t,onIdle:o}=this.$attrs,i={onLayout:this.onLayout};return"function"==typeof e&&(i[`on${n}Released`]=this[`on${n}Released`]),"function"!=typeof t&&"function"!=typeof o||(i[`on${n}Pulling`]=this[`on${n}Pulling`]),m.h("hi-pull-"+r,l(l({},i),{},{ref:"instance"}),this.$slots.default?this.$slots.default():null)}})})}(e),function(e){lt("hi-ul-refresh-wrapper",{component:{name:"RefreshWrapper"}}),lt("hi-refresh-wrapper-item",{component:{name:"RefreshWrapperItemView"}}),e.component("UlRefreshWrapper",{props:{bounceTime:{type:Number,defaultValue:100}},methods:{startRefresh(){nt.callUIFunction(this.$refs.refreshWrapper,"startRefresh",null)},refreshCompleted(){nt.callUIFunction(this.$refs.refreshWrapper,"refreshComplected",null)}},render(){return m.h("hi-ul-refresh-wrapper",{ref:"refreshWrapper"},this.$slots.default?this.$slots.default():null)}}),e.component("UlRefresh",{render(){const e=m.h("div",null,this.$slots.default?this.$slots.default():null);return m.h("hi-refresh-wrapper-item",{style:{position:"absolute",left:0,right:0}},e)}})}(e),function(e){lt("hi-waterfall",{component:{name:"WaterfallView",processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onExposureReport":n.exposureInfo=t.exposureInfo;break;case"onScroll":{const{startEdgePos:e,endEdgePos:r,firstVisibleRowIndex:o,lastVisibleRowIndex:i,visibleRowFrames:s}=t;Object.assign(n,{startEdgePos:e,endEdgePos:r,firstVisibleRowIndex:o,lastVisibleRowIndex:i,visibleRowFrames:s});break}}return n}}}),lt("hi-waterfall-item",{component:{name:"WaterfallItem"}}),e.component("Waterfall",{props:{numberOfColumns:{type:Number,default:2},contentInset:{type:Object,default:()=>({top:0,left:0,bottom:0,right:0})},columnSpacing:{type:Number,default:0},interItemSpacing:{type:Number,default:0},preloadItemNumber:{type:Number,default:0},containBannerView:{type:Boolean,default:!1},containPullHeader:{type:Boolean,default:!1},containPullFooter:{type:Boolean,default:!1}},methods:{call(e,t){nt.callUIFunction(this.$refs.waterfall,e,t)},startRefresh(){this.call("startRefresh")},startRefreshWithType(e){this.call("startRefreshWithType",[e])},callExposureReport(){this.call("callExposureReport",[])},scrollToIndex({index:e=0,animated:t=!0}){this.call("scrollToIndex",[e,e,t])},scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){this.call("scrollToContentOffset",[e,t,n])},startLoadMore(){this.call("startLoadMore")}},render(){const e=De.call(this,["headerReleased","headerPulling","endReached","exposureReport","initialListReady","scroll"]);return m.h("hi-waterfall",l(l({},e),{},{ref:"waterfall",numberOfColumns:this.numberOfColumns,contentInset:this.contentInset,columnSpacing:this.columnSpacing,interItemSpacing:this.interItemSpacing,preloadItemNumber:this.preloadItemNumber,containBannerView:this.containBannerView,containPullHeader:this.containPullHeader,containPullFooter:this.containPullFooter}),this.$slots.default?this.$slots.default():null)}}),e.component("WaterfallItem",{props:{type:{type:[String,Number],default:""},fullSpan:{type:Boolean,default:!1}},render(){return m.h("hi-waterfall-item",{type:this.type,fullSpan:this.fullSpan},this.$slots.default?this.$slots.default():null)}})}(e),function(e){lt("hi-swiper",{component:{name:"ViewPager",processEventData(e,t){const{handler:n,__evt:r}=e;switch(r){case"onPageSelected":n.currentSlide=t.position;break;case"onPageScroll":n.nextSlide=t.position,n.offset=t.offset;break;case"onPageScrollStateChanged":n.state=t.pageScrollState}return n}}}),lt("hi-swiper-slide",{component:{name:"ViewPagerItem",defaultNativeStyle:{position:"absolute",top:0,right:0,bottom:0,left:0}}}),e.component("Swiper",{props:{current:{type:Number,defaultValue:0},needAnimation:{type:Boolean,defaultValue:!0}},data:()=>({$initialSlide:0}),watch:{current(e){this.$props.needAnimation?this.setSlide(e):this.setSlideWithoutAnimation(e)}},beforeMount(){this.$initialSlide=this.$props.current},methods:{setSlide(e){nt.callUIFunction(this.$refs.swiper,"setPage",[e])},setSlideWithoutAnimation(e){nt.callUIFunction(this.$refs.swiper,"setPageWithoutAnimation",[e])}},render(){const e=De.call(this,[["dropped","pageSelected"],["dragging","pageScroll"],["stateChanged","pageScrollStateChanged"]]);return m.h("hi-swiper",l(l({},e),{},{ref:"swiper",initialPage:this.$data.$initialSlide}),this.$slots.default?this.$slots.default():null)}}),e.component("SwiperSlide",{render(){return m.h("hi-swiper-slide",{},this.$slots.default?this.$slots.default():null)}})}(e)}};class fn extends ln{constructor(e,t){super("comment",t),this.text=e,this.data=e,this.isNeedInsertToNative=!1}}class hn extends ln{setText(e,t={}){"textarea"===this.tagName?this.setAttribute("value",e,{notToNative:!!t.notToNative}):this.setAttribute("text",e,{notToNative:!!t.notToNative})}async getValue(){return new Promise(e=>nt.callUIFunction(this,"getValue",t=>e(t.text)))}setValue(e){nt.callUIFunction(this,"setValue",[e])}focus(){nt.callUIFunction(this,"focusTextInput",[])}blur(){nt.callUIFunction(this,"blurTextInput",[])}clear(){nt.callUIFunction(this,"clear",[])}async isFocused(){return new Promise(e=>nt.callUIFunction(this,"isFocused",t=>e(t.value)))}}class mn extends ln{scrollToIndex(e=0,t=0,n=!0){nt.callUIFunction(this,"scrollToIndex",[e,t,n])}scrollToPosition(e=0,t=0,n=!0){"number"==typeof e&&"number"==typeof t&&nt.callUIFunction(this,"scrollToContentOffset",[e,t,n])}}class vn extends sn{static createComment(e){return new fn(e)}static createElement(e){switch(e){case"input":case"textarea":return new hn(e);case"ul":return new mn(e);default:return new ln(e)}}static createTextNode(e){return new cn(e)}constructor(){super(rn.DocumentNode)}}const gn={insert:function(e,t,n=null){t.childNodes.indexOf(e)>=0?t.moveChild(e,n):t.insertBefore(e,n)},remove:function(e){const t=e.parentNode;t&&(t.removeChild(e),Wt(e))},setText:function(e,t){e.setText(t)},setElementText:function(e,t){e.setText(t)},createElement:function(e){return vn.createElement(e)},createComment:function(e){return vn.createComment(e)},createText:function(e){return vn.createTextNode(e)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},setScopeId:function(e,t){e.setStyleScope(t)}};const yn=/(?:Once|Passive|Capture)$/;function bn(e,t,n,r,o=null){var i;const s=e,c=null!==(i=s._vei)&&void 0!==i?i:s._vei={},a=c[t];if(r&&a)a.value=r;else{const[e,n]=function(e){let t=e;const n={};if(yn.test(t)){let e=t.match(yn);for(;e;)t=t.slice(0,t.length-e[0].length),n[e[0].toLowerCase()]=!0,e=t.match(yn)}return t=":"===t[2]?t.slice(3):t.slice(2),[(r=t,`${r.charAt(0).toLowerCase()}${r.slice(1)}`),n];var r}(t);if(r){c[t]=function(e,t){const n=e=>{m.callWithAsyncErrorHandling(n.value,t,m.ErrorCodes.NATIVE_EVENT_HANDLER,[e])};return n.value=e,n}(r,o);const i=c[t];s.addEventListener(e,i,n)}else s.removeEventListener(e,a,n),c[t]=void 0}}function On(e,t,n){const r=e,o={};if(!function(e,t,n){const r=!e,o=!t&&!n,i=JSON.stringify(t)===JSON.stringify(n);return r||o||i}(r,t,n))if(t&&!n)r.removeStyle();else{if(h.isString(n))throw new Error("Style is Not Object");n&&(Object.keys(n).forEach(e=>{const t=n[e];(function(e){return null==e})(t)||(o[m.camelize(e)]=t)}),r.removeStyle(!0),r.setStyles(o))}}function _n(e,t,n,r,o,i){switch(t){case"class":!function(e,t){let n=t;null===n&&(n=""),e.setAttribute("class",n)}(e,r);break;case"style":On(e,n,r);break;default:h.isOn(t)&&!function(e){return["onInterceptTouchEvent","onInterceptPullUpEvent"].indexOf(e)>=0}(t)?bn(e,t,0,r,i):function(e,t,n,r){n!==r&&e.setAttribute(t,r)}(e,t,n,r)}}function En(e,t){const n=function(e){var t;if("comment"===e.name)return new fn(e.props.text,e);if("Text"===e.name&&!e.tagName){const t=new cn(e.props.text,e);return t.nodeType=rn.TextNode,t.data=e.props.text,t}switch(e.tagName){case"input":case"textarea":return new hn(e.tagName,e);case"ul":return new mn(e.tagName,e);default:return new ln(null!==(t=e.tagName)&&void 0!==t?t:"",e)}}(e);let r=t.filter(t=>t.pId===e.id).sort((e,t)=>e.index-t.index);const o=r.filter(e=>"comment"===e.name);if(o.length){r=r.filter(e=>"comment"!==e.name);for(let e=o.length-1;e>=0;e--)r.splice(o[e].index,0,o[e])}return r.forEach(e=>{n.appendChild(En(e,t),!0)}),n}e.WebSocket=class{constructor(e,t,n){this.webSocketId=-1,this.protocol="",this.listeners={},this.url=e,this.readyState=0,this.webSocketCallbacks={},this.onWebSocketEvent=this.onWebSocketEvent.bind(this);const r=l({},n);if(Ee.$on("hippyWebsocketEvents",this.onWebSocketEvent),!e)throw new TypeError("Invalid WebSocket url");Array.isArray(t)&&t.length>0?(this.protocol=t.join(","),r["Sec-WebSocket-Protocol"]=this.protocol):"string"==typeof t&&(this.protocol=t,r["Sec-WebSocket-Protocol"]=this.protocol);const o={headers:r,url:e};nt.callNativeWithPromise("websocket","connect",o).then(e=>{e&&0===e.code?this.webSocketId=e.id:je()})}close(e,t){1===this.readyState&&(this.readyState=2,nt.callNative("websocket","close",{id:this.webSocketId,code:e,reason:t}))}send(e){if(1===this.readyState){if("string"!=typeof e)throw new TypeError("Unsupported websocket data type: "+typeof e);nt.callNative("websocket","send",{id:this.webSocketId,data:e})}else je()}set onopen(e){this.addEventListener("open",e)}set onclose(e){this.addEventListener("close",e)}set onerror(e){this.addEventListener("error",e)}set onmessage(e){this.addEventListener("message",e)}onWebSocketEvent(e){if("object"!=typeof e||e.id!==this.webSocketId)return;const t=e.type;if("string"!=typeof t)return;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,Ee.$off("hippyWebsocketEvents",this.onWebSocketEvent));const n=this.webSocketCallbacks[t];(null==n?void 0:n.length)&&n.forEach(t=>{h.isFunction(t)&&t(e.data)})}addEventListener(e,t){if((e=>-1!==["open","close","message","error"].indexOf(e))(e)){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t);const n=Fe(e);this.webSocketCallbacks[n]=this.listeners[e]}}};const Sn=['%c[Hippy-Vue-Next "unspecified"]%c',"color: #4fc08d; font-weight: bold","color: auto; font-weight: auto"];function wn(e,t){if(nt.isIOS()){const n=function(e){var t,n;const{iPhone:r}=e;let o;if((null==r?void 0:r.statusBar)&&(o=r.statusBar),null==o?void 0:o.disabled)return null;const i=new ln("div"),{statusBarHeight:s}=nt.Dimensions.screen;nt.screenIsVertical?i.setStyle("height",s):i.setStyle("height",0);let c=4282431619;if(Number.isInteger(c)&&({backgroundColor:c}=o),i.setStyle("backgroundColor",c),"string"==typeof o.backgroundImage){const r=new ln("img");r.setStyle("width",nt.Dimensions.screen.width),r.setStyle("height",s),r.setAttribute("src",null===(n=null===(t=e.iPhone)||void 0===t?void 0:t.statusBar)||void 0===n?void 0:n.backgroundImage),i.appendChild(r)}return i.addEventListener("layout",()=>{nt.screenIsVertical?i.setStyle("height",s):i.setStyle("height",0)}),i}(e);if(n){const e=t.$el.parentNode;e.childNodes.length?e.insertBefore(n,e.childNodes[0]):e.appendChild(n)}}}const Nn=(e,t)=>{var n,r;const o=e,i=Boolean(null===(n=null==t?void 0:t.ssrNodeList)||void 0===n?void 0:n.length);var s,c;o.use(Tt),o.use(pn),"function"==typeof(null===(r=null==t?void 0:t.styleOptions)||void 0===r?void 0:r.beforeLoadStyle)&&(s=t.styleOptions.beforeLoadStyle,Ie=s),t.silent&&(c=t.silent,Ne=c),function(e=!0){xe=e}(t.trimWhitespace);const{mount:a}=o;return o.mount=e=>{var n;Ft("rootContainer",e);const r=(null===(n=null==t?void 0:t.ssrNodeList)||void 0===n?void 0:n.length)?function(e){const[t]=e;return En(t,e)}(t.ssrNodeList):function(e){const t=vn.createElement("div");return t.id=e,t.style={display:"flex",flex:1},t}(e),o=a(r,i,!1);return Ft("instance",o),i||wn(t,o),o},o.$start=async e=>new Promise(n=>{nt.hippyNativeRegister.regist(t.appName,r=>{var i,s;const{__instanceId__:c}=r;Te(...Sn,"Start",t.appName,"with rootViewId",c,r);const a=Lt();var l;(null==a?void 0:a.app)&&a.app.unmount(),l={rootViewId:c,superProps:r,app:o,ratioBaseWidth:null!==(s=null===(i=null==t?void 0:t.styleOptions)||void 0===i?void 0:i.ratioBaseWidth)&&void 0!==s?s:750},Mt=l;const u={superProps:r,rootViewId:c};h.isFunction(e)?e(u):n(u)})}),o};t.BackAndroid=ct,t.ContentSizeEvent=class extends Dt{},t.EventBus=Ee,t.ExposureEvent=class extends Dt{},t.FocusEvent=class extends Dt{},t.HIPPY_DEBUG_ADDRESS=Se,t.HIPPY_GLOBAL_DISPOSE_STYLE_NAME="__HIPPY_VUE_DISPOSE_STYLES__",t.HIPPY_GLOBAL_STYLE_NAME="__HIPPY_VUE_STYLES__",t.HIPPY_STATIC_PROTOCOL="hpfile://",t.HIPPY_UNIQUE_ID_KEY="hippyUniqueId",t.HIPPY_VUE_VERSION="unspecified",t.HippyEvent=Dt,t.HippyKeyboardEvent=class extends Dt{},t.HippyLayoutEvent=Vt,t.HippyLoadResourceEvent=class extends Dt{},t.HippyTouchEvent=class extends Dt{},t.IS_PROD=!0,t.ListViewEvent=class extends Dt{},t.NATIVE_COMPONENT_MAP=we,t.Native=nt,t.ViewPagerEvent=class extends Dt{},t._setBeforeRenderToNative=(e,t)=>{h.isFunction(e)&&(1===t?Re=e:console.error("_setBeforeRenderToNative API had changed, the hook function will be ignored!"))},t.createApp=(e,t)=>{const n=m.createRenderer(l({patchProp:_n},gn)).createApp(e);return Nn(n,t)},t.createHippyApp=Nn,t.createSSRApp=(e,t)=>{const n=m.createHydrationRenderer(l({patchProp:_n},gn)).createApp(e);return Nn(n,t)},t.eventIsKeyboardEvent=Bt,t.getCssMap=ye,t.getTagComponent=ut,t.isNativeTag=function(e){return dn.includes(e)},t.parseCSS=function(e,t={source:0}){let n=1,r=1;function o(e){const t=e.match(/\n/g);t&&(n+=t.length);const o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(t){const n=t.exec(e);if(!n)return null;const r=n[0];return o(r),e=e.slice(r.length),n}function s(){i(/^\s*/)}function c(){return o=>(o.position={start:{line:n,column:r},end:{line:n,column:r},source:t.source,content:e},s(),o)}const a=[];function u(o){const i=l(l({},new Error(`${t.source}:${n}:${r}: ${o}`)),{},{reason:o,filename:t.source,line:n,column:r,source:e});if(!t.silent)throw i;a.push(i)}function d(){const t=c();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return null;let n=2;for(;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)n+=1;if(n+=2,""===e.charAt(n-1))return u("End of comment missing");const i=e.slice(2,n-2);return r+=2,o(i),e=e.slice(n),r+=2,t({type:"comment",comment:i})}function p(e=[]){let t;const n=e||[];for(;t=d();)!1!==t&&n.push(t);return n}function f(){let t;const n=[];for(s(),p(n);e.length&&"}"!==e.charAt(0)&&(t=x()||O());)t&&(n.push(t),p(n));return n}function m(){return i(/^{\s*/)}function v(){return i(/^}/)}function g(){const e=i(/^([^{]+)/);return e?e[0].trim().replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,e=>e.replace(/,/g,"‌")).split(/\s*(?![^(]*\)),\s*/).map(e=>e.replace(/\u200C/g,",")):null}function y(){const e=c();let t=i(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+])?)\s*/);if(!t)return null;if(t=t[0].trim(),!i(/^:\s*/))return u("property missing ':'");const n=t.replace(I,""),r=h.camelize(n);let o=(()=>{const e=T[r];return e||r})();const s=i(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]{0,500}?\)|[^};])+)/);let a=s?s[0].trim().replace(I,""):"";switch(o){case"backgroundImage":[o,a]=F(o,a);break;case"transform":{const e=/((\w+)\s*\()/,t=/(?:\(['"]?)(.*?)(?:['"]?\))/,n=a;a=[],n.split(" ").forEach(n=>{if(e.test(n)){let r,o;const i=e.exec(n),s=t.exec(n);i&&([,,r]=i),s&&([,o]=s),0===o.indexOf(".")&&(o="0"+o),parseFloat(o).toString()===o&&(o=parseFloat(o));const c={};c[r]=o,a.push(c)}else u("missing '('")});break}case"fontWeight":break;case"shadowOffset":{const e=a.split(" ").filter(e=>e).map(e=>R(e)),[t]=e;let[,n]=e;n||(n=t),a={x:t,y:n};break}case"collapsable":a=Boolean(a);break;default:a=function(e){if("number"==typeof e)return e;if(P.test(e))try{return parseFloat(e)}catch(e){}return e}(a);["top","left","right","bottom","height","width","size","padding","margin","ratio","radius","offset","spread"].find(e=>o.toLowerCase().indexOf(e)>-1)&&(a=R(a))}const l=e({type:"declaration",value:a,property:o});return i(/^[;\s]*/),l}function b(){let e,t=[];if(!m())return u("missing '{'");for(p(t);e=y();)!1!==e&&(Array.isArray(e)?t=t.concat(e):t.push(e),p(t));return v()?t:u("missing '}'")}function O(){const e=c(),t=g();return t?(p(),e({type:"rule",selectors:t,declarations:b()})):u("selector missing")}function _(){let e;const t=[],n=c();for(;e=i(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),i(/^,\s*/);return t.length?n({type:"keyframe",values:t,declarations:b()}):null}function E(e){const t=new RegExp(`^@${e}\\s*([^;]+);`);return()=>{const n=c(),r=i(t);if(!r)return null;const o={type:e};return o[e]=r[1].trim(),n(o)}}const S=E("import"),w=E("charset"),N=E("namespace");function x(){return"@"!==e[0]?null:function(){const e=c();let t=i(/^@([-\w]+)?keyframes\s*/);if(!t)return null;const n=t[1];if(t=i(/^([-\w]+)\s*/),!t)return u("@keyframes missing name");const r=t[1];if(!m())return u("@keyframes missing '{'");let o,s=p();for(;o=_();)s.push(o),s=s.concat(p());return v()?e({type:"keyframes",name:r,vendor:n,keyframes:s}):u("@keyframes missing '}'")}()||function(){const e=c(),t=i(/^@media *([^{]+)/);if(!t)return null;const n=t[1].trim();if(!m())return u("@media missing '{'");const r=p().concat(f());return v()?e({type:"media",media:n,rules:r}):u("@media missing '}'")}()||function(){const e=c(),t=i(/^@custom-media\s+(--[^\s]+)\s*([^{;]{1,200}?);/);return t?e({type:"custom-media",name:t[1].trim(),media:t[2].trim()}):null}()||function(){const e=c(),t=i(/^@supports *([^{]+)/);if(!t)return null;const n=t[1].trim();if(!m())return u("@supports missing '{'");const r=p().concat(f());return v()?e({type:"supports",supports:n,rules:r}):u("@supports missing '}'")}()||S()||w()||N()||function(){const e=c(),t=i(/^@([-\w]+)?document *([^{]+)/);if(!t)return null;const n=t[1].trim(),r=t[2].trim();if(!m())return u("@document missing '{'");const o=p().concat(f());return v()?e({type:"document",document:r,vendor:n,rules:o}):u("@document missing '}'")}()||function(){const e=c();if(!i(/^@page */))return null;const t=g()||[];if(!m())return u("@page missing '{'");let n,r=p();for(;n=y();)r.push(n),r=r.concat(p());return v()?e({type:"page",selectors:t,declarations:r}):u("@page missing '}'")}()||function(){const e=c();if(!i(/^@host\s*/))return null;if(!m())return u("@host missing '{'");const t=p().concat(f());return v()?e({type:"host",rules:t}):u("@host missing '}'")}()||function(){const e=c();if(!i(/^@font-face\s*/))return null;if(!m())return u("@font-face missing '{'");let t,n=p();for(;t=y();)n.push(t),n=n.concat(p());return v()?e({type:"font-face",declarations:n}):u("@font-face missing '}'")}()}return function e(t,n){const r=t&&"string"==typeof t.type,o=r?t:n;return Object.keys(t).forEach(n=>{const r=t[n];Array.isArray(r)?r.forEach(t=>{e(t,o)}):r&&"object"==typeof r&&e(r,o)}),r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n}),t}(function(){const e=f();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:a}}}(),null)},t.registerElement=lt,t.setScreenSize=function(t){var n;if(t.width&&t.height){const{screen:r}=null===(n=null==e?void 0:e.Hippy)||void 0===n?void 0:n.device;r&&(r.width=t.width,r.height=t.height)}},t.translateColor=x}).call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/process/browser.js"))},"../../packages/hippy-vue-next/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js":function(e,t,n){"use strict";n.r(t),n.d(t,"EffectScope",(function(){return s})),n.d(t,"ITERATE_KEY",(function(){return k})),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 Te})),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 xe})),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("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js"); /** -* @vue/runtime-core v3.4.34 +* @vue/reactivity v3.4.32 +* (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++,f(this),this.fn()}finally{h(this),this._runnings--,i=t,y=e}}stop(){this.active&&(f(this),h(this),this.onStop&&this.onStop(),this.active=!1)}}function p(e){return e.value}function f(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&&T.length;)T.shift()()}function x(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 T=[];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,k=Symbol(""),I=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))),x(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(k)),Object(r.isMap)(e)&&a.push(c.get(I)));break;case"delete":Object(r.isArray)(e)||(a.push(c.get(k)),Object(r.isMap)(e)&&a.push(c.get(I)));break;case"set":Object(r.isMap)(e)&&a.push(c.get(k))}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(xe(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?ke: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,k),Reflect.get(e,"size",e)}function Z(e,t=!1){t||xe(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||xe(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?ke:Ce;return!e&&P(s,0,k),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?ke:Ce;return!t&&P(s,0,l?I:k),{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)},pe={get:ue(!1,!0)},fe={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,pe,ve)}function _e(e){return Se(e,!0,Y,fe,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 xe(e){return!(!e||!e.__v_isShallow)}function Te(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,ke=e=>Object(r.isObject)(e)?_e(e):e;class Ie{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 Ie(o,i,s||!i,n)}function Re(e){var t;y&&i&&(e=je(e),x(i,null!=(t=e.dep)?t:e.dep=A(()=>e.dep=void 0,e instanceof Ie?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||xe(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"}},"../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js":function(e,t,n){"use strict";n.r(t),n.d(t,"BaseTransition",(function(){return X})),n.d(t,"BaseTransitionPropsValidators",(function(){return q})),n.d(t,"Comment",(function(){return zn})),n.d(t,"DeprecationTypes",(function(){return so})),n.d(t,"ErrorCodes",(function(){return u})),n.d(t,"ErrorTypeStrings",(function(){return eo})),n.d(t,"Fragment",(function(){return Yn})),n.d(t,"KeepAlive",(function(){return le})),n.d(t,"Static",(function(){return Kn})),n.d(t,"Suspense",(function(){return Dn})),n.d(t,"Teleport",(function(){return Gt})),n.d(t,"Text",(function(){return Wn})),n.d(t,"assertNumber",(function(){return l})),n.d(t,"callWithAsyncErrorHandling",(function(){return f})),n.d(t,"callWithErrorHandling",(function(){return p})),n.d(t,"cloneVNode",(function(){return fr})),n.d(t,"compatUtils",(function(){return io})),n.d(t,"computed",(function(){return Kr})),n.d(t,"createBlock",(function(){return rr})),n.d(t,"createCommentVNode",(function(){return vr})),n.d(t,"createElementBlock",(function(){return nr})),n.d(t,"createElementVNode",(function(){return lr})),n.d(t,"createHydrationRenderer",(function(){return cn})),n.d(t,"createPropsRestProxy",(function(){return rt})),n.d(t,"createRenderer",(function(){return sn})),n.d(t,"createSlots",(function(){return Le})),n.d(t,"createStaticVNode",(function(){return mr})),n.d(t,"createTextVNode",(function(){return hr})),n.d(t,"createVNode",(function(){return ur})),n.d(t,"defineAsyncComponent",(function(){return se})),n.d(t,"defineComponent",(function(){return oe})),n.d(t,"defineEmits",(function(){return We})),n.d(t,"defineExpose",(function(){return ze})),n.d(t,"defineModel",(function(){return qe})),n.d(t,"defineOptions",(function(){return Ke})),n.d(t,"defineProps",(function(){return Ye})),n.d(t,"defineSlots",(function(){return Ge})),n.d(t,"devtools",(function(){return to})),n.d(t,"getCurrentInstance",(function(){return xr})),n.d(t,"getTransitionRawChildren",(function(){return re})),n.d(t,"guardReactiveProps",(function(){return pr})),n.d(t,"h",(function(){return Gr})),n.d(t,"handleError",(function(){return h})),n.d(t,"hasInjectionContext",(function(){return St})),n.d(t,"initCustomFormatter",(function(){return qr})),n.d(t,"inject",(function(){return Et})),n.d(t,"isMemoSame",(function(){return Xr})),n.d(t,"isRuntimeOnly",(function(){return Dr})),n.d(t,"isVNode",(function(){return or})),n.d(t,"mergeDefaults",(function(){return tt})),n.d(t,"mergeModels",(function(){return nt})),n.d(t,"mergeProps",(function(){return Or})),n.d(t,"nextTick",(function(){return w})),n.d(t,"onActivated",(function(){return de})),n.d(t,"onBeforeMount",(function(){return be})),n.d(t,"onBeforeUnmount",(function(){return Se})),n.d(t,"onBeforeUpdate",(function(){return _e})),n.d(t,"onDeactivated",(function(){return pe})),n.d(t,"onErrorCaptured",(function(){return je})),n.d(t,"onMounted",(function(){return Oe})),n.d(t,"onRenderTracked",(function(){return Te})),n.d(t,"onRenderTriggered",(function(){return xe})),n.d(t,"onServerPrefetch",(function(){return Ne})),n.d(t,"onUnmounted",(function(){return we})),n.d(t,"onUpdated",(function(){return Ee})),n.d(t,"openBlock",(function(){return Jn})),n.d(t,"popScopeId",(function(){return B})),n.d(t,"provide",(function(){return _t})),n.d(t,"pushScopeId",(function(){return V})),n.d(t,"queuePostFlushCb",(function(){return T})),n.d(t,"registerRuntimeCompiler",(function(){return Fr})),n.d(t,"renderList",(function(){return Me})),n.d(t,"renderSlot",(function(){return Fe})),n.d(t,"resolveComponent",(function(){return Ae})),n.d(t,"resolveDirective",(function(){return Ie})),n.d(t,"resolveDynamicComponent",(function(){return ke})),n.d(t,"resolveFilter",(function(){return oo})),n.d(t,"resolveTransitionHooks",(function(){return Q})),n.d(t,"setBlockTracking",(function(){return er})),n.d(t,"setDevtoolsHook",(function(){return no})),n.d(t,"setTransitionHooks",(function(){return ne})),n.d(t,"ssrContextKey",(function(){return hn})),n.d(t,"ssrUtils",(function(){return ro})),n.d(t,"toHandlers",(function(){return De})),n.d(t,"transformVNodeArgs",(function(){return sr})),n.d(t,"useAttrs",(function(){return Ze})),n.d(t,"useModel",(function(){return Nn})),n.d(t,"useSSRContext",(function(){return mn})),n.d(t,"useSlots",(function(){return Xe})),n.d(t,"useTransitionState",(function(){return K})),n.d(t,"version",(function(){return Zr})),n.d(t,"warn",(function(){return Qr})),n.d(t,"watch",(function(){return On})),n.d(t,"watchEffect",(function(){return vn})),n.d(t,"watchPostEffect",(function(){return gn})),n.d(t,"watchSyncEffect",(function(){return yn})),n.d(t,"withAsyncContext",(function(){return ot})),n.d(t,"withCtx",(function(){return U})),n.d(t,"withDefaults",(function(){return Je})),n.d(t,"withDirectives",(function(){return H})),n.d(t,"withMemo",(function(){return Jr})),n.d(t,"withScopeId",(function(){return $}));var r=n("../../packages/hippy-vue-next/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js");n.d(t,"EffectScope",(function(){return r.EffectScope})),n.d(t,"ReactiveEffect",(function(){return r.ReactiveEffect})),n.d(t,"TrackOpTypes",(function(){return r.TrackOpTypes})),n.d(t,"TriggerOpTypes",(function(){return r.TriggerOpTypes})),n.d(t,"customRef",(function(){return r.customRef})),n.d(t,"effect",(function(){return r.effect})),n.d(t,"effectScope",(function(){return r.effectScope})),n.d(t,"getCurrentScope",(function(){return r.getCurrentScope})),n.d(t,"isProxy",(function(){return r.isProxy})),n.d(t,"isReactive",(function(){return r.isReactive})),n.d(t,"isReadonly",(function(){return r.isReadonly})),n.d(t,"isRef",(function(){return r.isRef})),n.d(t,"isShallow",(function(){return r.isShallow})),n.d(t,"markRaw",(function(){return r.markRaw})),n.d(t,"onScopeDispose",(function(){return r.onScopeDispose})),n.d(t,"proxyRefs",(function(){return r.proxyRefs})),n.d(t,"reactive",(function(){return r.reactive})),n.d(t,"readonly",(function(){return r.readonly})),n.d(t,"ref",(function(){return r.ref})),n.d(t,"shallowReactive",(function(){return r.shallowReactive})),n.d(t,"shallowReadonly",(function(){return r.shallowReadonly})),n.d(t,"shallowRef",(function(){return r.shallowRef})),n.d(t,"stop",(function(){return r.stop})),n.d(t,"toRaw",(function(){return r.toRaw})),n.d(t,"toRef",(function(){return r.toRef})),n.d(t,"toRefs",(function(){return r.toRefs})),n.d(t,"toValue",(function(){return r.toValue})),n.d(t,"triggerRef",(function(){return r.triggerRef})),n.d(t,"unref",(function(){return r.unref}));var o=n("../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js");n.d(t,"camelize",(function(){return o.camelize})),n.d(t,"capitalize",(function(){return o.capitalize})),n.d(t,"normalizeClass",(function(){return o.normalizeClass})),n.d(t,"normalizeProps",(function(){return o.normalizeProps})),n.d(t,"normalizeStyle",(function(){return o.normalizeStyle})),n.d(t,"toDisplayString",(function(){return o.toDisplayString})),n.d(t,"toHandlerKey",(function(){return o.toHandlerKey})); +/** +* @vue/runtime-core v3.4.32 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ -const i=[];let s=!1;function c(e,...t){if(s)return;s=!0,Object(r.pauseTracking)();const n=i.length?i[i.length-1].component:null,o=n&&n.appContext.config.warnHandler,c=function(){let e=i[i.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}();if(o)f(o,n,11,[e+t.map(e=>{var t,n;return null!=(n=null==(t=e.toString)?void 0:t.call(e))?n:JSON.stringify(e)}).join(""),n&&n.proxy,c.map(({vnode:e})=>`at <${Wr(n,e.type)}>`).join("\n"),c]);else{const n=["[Vue warn]: "+e,...t];c.length&&n.push("\n",...function(e){const t=[];return e.forEach((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=!!e.component&&null==e.component.parent,o=" at <"+Wr(e.component,e.type,r),i=">"+n;return e.props?[o,...a(e.props),i]:[o+i]}(e))}),t}(c)),console.warn(...n)}Object(r.resetTracking)(),s=!1}function a(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(n=>{t.push(...function e(t,n,i){return Object(o.isString)(n)?(n=JSON.stringify(n),i?n:[`${t}=${n}`]):"number"==typeof n||"boolean"==typeof n||null==n?i?n:[`${t}=${n}`]:Object(r.isRef)(n)?(n=e(t,Object(r.toRaw)(n.value),!0),i?n:[t+"=Ref<",n,">"]):Object(o.isFunction)(n)?[`${t}=fn${n.name?`<${n.name}>`:""}`]:(n=Object(r.toRaw)(n),i?n:[t+"=",n])}(n,e[n]))}),n.length>3&&t.push(" ..."),t}function l(e,t){}const u={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE"},d={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update"};function f(e,t,n,r){try{return r?e(...r):e()}catch(e){h(e,t,n)}}function p(e,t,n,r){if(Object(o.isFunction)(e)){const i=f(e,t,n,r);return i&&Object(o.isPromise)(i)&&i.catch(e=>{h(e,t,n)}),i}if(Object(o.isArray)(e)){const o=[];for(let i=0;i>>1,o=g[r],i=C(o);iC(e)-C(t));if(b.length=0,O)return void O.push(...e);for(O=e,_=0;_null==e.id?1/0:e.id,I=(e,t)=>{const n=C(e)-C(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function k(e){v=!1,m=!0,g.sort(I);o.NOOP;try{for(y=0;yU;function U(e,t=L,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&er(-1);const o=D(t);let i;try{i=e(...n)}finally{D(o),r._d&&er(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function H(e,t){if(null===L)return e;const n=Ur(L),r=e.dirs||(e.dirs=[]);for(let e=0;e{e.isMounted=!0}),Se(()=>{e.isUnmounting=!0}),e}const G=[Function,Array],q={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:G,onEnter:G,onAfterEnter:G,onEnterCancelled:G,onBeforeLeave:G,onLeave:G,onAfterLeave:G,onLeaveCancelled:G,onBeforeAppear:G,onAppear:G,onAfterAppear:G,onAppearCancelled:G},J=e=>{const t=e.subTree;return t.component?J(t.component):t},X={name:"BaseTransition",props:q,setup(e,{slots:t}){const n=Tr(),o=K();return()=>{const i=t.default&&re(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){let e=!1;for(const t of i)if(t.type!==zn){0,s=t,e=!0;break}}const c=Object(r.toRaw)(e),{mode:a}=c;if(o.isLeaving)return ee(s);const l=te(s);if(!l)return ee(s);let u=Q(l,c,o,n,e=>u=e);ne(l,u);const d=n.subTree,f=d&&te(d);if(f&&f.type!==zn&&!ir(l,f)&&J(n).type!==zn){const e=Q(f,c,o,n);if(ne(f,e),"out-in"===a&&l.type!==zn)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},ee(s);"in-out"===a&&l.type!==zn&&(e.delayLeave=(e,t,n)=>{Z(o,f)[String(f.key)]=f,e[W]=()=>{t(),e[W]=void 0,delete u.delayedLeave},u.delayedLeave=n})}return s}}};function Z(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Q(e,t,n,r,i){const{appear:s,mode:c,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:d,onEnterCancelled:f,onBeforeLeave:h,onLeave:m,onAfterLeave:v,onLeaveCancelled:g,onBeforeAppear:y,onAppear:b,onAfterAppear:O,onAppearCancelled:_}=t,E=String(e.key),S=Z(n,e),w=(e,t)=>{e&&p(e,r,9,t)},N=(e,t)=>{const n=t[1];w(e,t),Object(o.isArray)(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},T={mode:c,persisted:a,beforeEnter(t){let r=l;if(!n.isMounted){if(!s)return;r=y||l}t[W]&&t[W](!0);const o=S[E];o&&ir(e,o)&&o.el[W]&&o.el[W](),w(r,[t])},enter(e){let t=u,r=d,o=f;if(!n.isMounted){if(!s)return;t=b||u,r=O||d,o=_||f}let i=!1;const c=e[z]=t=>{i||(i=!0,w(t?o:r,[e]),T.delayedLeave&&T.delayedLeave(),e[z]=void 0)};t?N(t,[e,c]):c()},leave(t,r){const o=String(e.key);if(t[z]&&t[z](!0),n.isUnmounting)return r();w(h,[t]);let i=!1;const s=t[W]=n=>{i||(i=!0,r(),w(n?g:v,[t]),t[W]=void 0,S[o]===e&&delete S[o])};S[o]=e,m?N(m,[t,s]):s()},clone(e){const o=Q(e,t,n,r,i);return i&&i(o),o}};return T}function ee(e){if(ae(e))return(e=pr(e)).children=null,e}function te(e){if(!ae(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&Object(o.isFunction)(n.default))return n.default()}}function ne(e,t){6&e.shapeFlag&&e.component?ne(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function re(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let e=0;e{var t,n;return null!=(n=null==(t=e.toString)?void 0:t.call(e))?n:JSON.stringify(e)}).join(""),n&&n.proxy,c.map(({vnode:e})=>`at <${Wr(n,e.type)}>`).join("\n"),c]);else{const n=["[Vue warn]: "+e,...t];c.length&&n.push("\n",...function(e){const t=[];return e.forEach((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=!!e.component&&null==e.component.parent,o=" at <"+Wr(e.component,e.type,r),i=">"+n;return e.props?[o,...a(e.props),i]:[o+i]}(e))}),t}(c)),console.warn(...n)}Object(r.resetTracking)(),s=!1}function a(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(n=>{t.push(...function e(t,n,i){return Object(o.isString)(n)?(n=JSON.stringify(n),i?n:[`${t}=${n}`]):"number"==typeof n||"boolean"==typeof n||null==n?i?n:[`${t}=${n}`]:Object(r.isRef)(n)?(n=e(t,Object(r.toRaw)(n.value),!0),i?n:[t+"=Ref<",n,">"]):Object(o.isFunction)(n)?[`${t}=fn${n.name?`<${n.name}>`:""}`]:(n=Object(r.toRaw)(n),i?n:[t+"=",n])}(n,e[n]))}),n.length>3&&t.push(" ..."),t}function l(e,t){}const u={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE"},d={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update"};function p(e,t,n,r){try{return r?e(...r):e()}catch(e){h(e,t,n)}}function f(e,t,n,r){if(Object(o.isFunction)(e)){const i=p(e,t,n,r);return i&&Object(o.isPromise)(i)&&i.catch(e=>{h(e,t,n)}),i}if(Object(o.isArray)(e)){const o=[];for(let i=0;i>>1,o=g[r],i=C(o);iC(e)-C(t));if(b.length=0,O)return void O.push(...e);for(O=e,_=0;_null==e.id?1/0:e.id,k=(e,t)=>{const n=C(e)-C(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function I(e){v=!1,m=!0,g.sort(k);o.NOOP;try{for(y=0;yU;function U(e,t=L,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&er(-1);const o=D(t);let i;try{i=e(...n)}finally{D(o),r._d&&er(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function H(e,t){if(null===L)return e;const n=Ur(L),r=e.dirs||(e.dirs=[]);for(let e=0;e{e.isMounted=!0}),Se(()=>{e.isUnmounting=!0}),e}const G=[Function,Array],q={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:G,onEnter:G,onAfterEnter:G,onEnterCancelled:G,onBeforeLeave:G,onLeave:G,onAfterLeave:G,onLeaveCancelled:G,onBeforeAppear:G,onAppear:G,onAfterAppear:G,onAppearCancelled:G},J=e=>{const t=e.subTree;return t.component?J(t.component):t},X={name:"BaseTransition",props:q,setup(e,{slots:t}){const n=xr(),o=K();return()=>{const i=t.default&&re(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){let e=!1;for(const t of i)if(t.type!==zn){0,s=t,e=!0;break}}const c=Object(r.toRaw)(e),{mode:a}=c;if(o.isLeaving)return ee(s);const l=te(s);if(!l)return ee(s);let u=Q(l,c,o,n,e=>u=e);ne(l,u);const d=n.subTree,p=d&&te(d);if(p&&p.type!==zn&&!ir(l,p)&&J(n).type!==zn){const e=Q(p,c,o,n);if(ne(p,e),"out-in"===a&&l.type!==zn)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},ee(s);"in-out"===a&&l.type!==zn&&(e.delayLeave=(e,t,n)=>{Z(o,p)[String(p.key)]=p,e[W]=()=>{t(),e[W]=void 0,delete u.delayedLeave},u.delayedLeave=n})}return s}}};function Z(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Q(e,t,n,r,i){const{appear:s,mode:c,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:d,onEnterCancelled:p,onBeforeLeave:h,onLeave:m,onAfterLeave:v,onLeaveCancelled:g,onBeforeAppear:y,onAppear:b,onAfterAppear:O,onAppearCancelled:_}=t,E=String(e.key),S=Z(n,e),w=(e,t)=>{e&&f(e,r,9,t)},N=(e,t)=>{const n=t[1];w(e,t),Object(o.isArray)(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},x={mode:c,persisted:a,beforeEnter(t){let r=l;if(!n.isMounted){if(!s)return;r=y||l}t[W]&&t[W](!0);const o=S[E];o&&ir(e,o)&&o.el[W]&&o.el[W](),w(r,[t])},enter(e){let t=u,r=d,o=p;if(!n.isMounted){if(!s)return;t=b||u,r=O||d,o=_||p}let i=!1;const c=e[z]=t=>{i||(i=!0,w(t?o:r,[e]),x.delayedLeave&&x.delayedLeave(),e[z]=void 0)};t?N(t,[e,c]):c()},leave(t,r){const o=String(e.key);if(t[z]&&t[z](!0),n.isUnmounting)return r();w(h,[t]);let i=!1;const s=t[W]=n=>{i||(i=!0,r(),w(n?g:v,[t]),t[W]=void 0,S[o]===e&&delete S[o])};S[o]=e,m?N(m,[t,s]):s()},clone(e){const o=Q(e,t,n,r,i);return i&&i(o),o}};return x}function ee(e){if(ae(e))return(e=fr(e)).children=null,e}function te(e){if(!ae(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&Object(o.isFunction)(n.default))return n.default()}}function ne(e,t){6&e.shapeFlag&&e.component?ne(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function re(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let e=0;eObject(o.extend)({name:e.name},t,{setup:e}))():e}const ie=e=>!!e.type.__asyncLoader -/*! #__NO_SIDE_EFFECTS__ */;function se(e){Object(o.isFunction)(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:s=200,timeout:c,suspensible:a=!0,onError:l}=e;let u,d=null,f=0;const p=()=>{let e;return d||(e=d=t().catch(e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise((t,n)=>{l(e,()=>t((f++,d=null,p())),()=>n(e),f+1)});throw e}).then(t=>e!==d&&d?d:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),u=t,t)))};return oe({name:"AsyncComponentWrapper",__asyncLoader:p,get __asyncResolved(){return u},setup(){const e=Nr;if(u)return()=>ce(u,e);const t=t=>{d=null,h(t,e,13,!i)};if(a&&e.suspense||Rr)return p().then(t=>()=>ce(t,e)).catch(e=>(t(e),()=>i?ur(i,{error:e}):null));const o=Object(r.ref)(!1),l=Object(r.ref)(),f=Object(r.ref)(!!s);return s&&setTimeout(()=>{f.value=!1},s),null!=c&&setTimeout(()=>{if(!o.value&&!l.value){const e=new Error(`Async component timed out after ${c}ms.`);t(e),l.value=e}},c),p().then(()=>{o.value=!0,e.parent&&ae(e.parent.vnode)&&(e.parent.effect.dirty=!0,N(e.parent.update))}).catch(e=>{t(e),l.value=e}),()=>o.value&&u?ce(u,e):l.value&&i?ur(i,{error:l.value}):n&&!f.value?ur(n):void 0}})}function ce(e,t){const{ref:n,props:r,children:o,ce:i}=t.vnode,s=ur(e,r,o);return s.ref=n,s.ce=i,delete t.vnode.ce,s}const ae=e=>e.type.__isKeepAlive,le={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Tr(),r=n.ctx;if(!r.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const i=new Map,s=new Set;let c=null;const a=n.suspense,{renderer:{p:l,m:u,um:d,o:{createElement:f}}}=r,p=f("div");function h(e){me(e),d(e,n,a,!0)}function m(e){i.forEach((t,n)=>{const r=Yr(t.type);!r||e&&e(r)||v(n)})}function v(e){const t=i.get(e);c&&ir(t,c)?c&&me(c):h(t),i.delete(e),s.delete(e)}r.activate=(e,t,n,r,i)=>{const s=e.component;u(e,t,n,0,a),l(s.vnode,e,t,n,s,a,r,e.slotScopeIds,i),on(()=>{s.isDeactivated=!1,s.a&&Object(o.invokeArrayFns)(s.a);const t=e.props&&e.props.onVnodeMounted;t&&_r(t,s.parent,e)},a)},r.deactivate=e=>{const t=e.component;pn(t.m),pn(t.a),u(e,p,null,1,a),on(()=>{t.da&&Object(o.invokeArrayFns)(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&_r(n,t.parent,e),t.isDeactivated=!0},a)},On(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>ue(e,t)),t&&m(e=>!ue(t,e))},{flush:"post",deep:!0});let g=null;const y=()=>{null!=g&&(Ln(n.subTree.type)?on(()=>{i.set(g,ve(n.subTree))},n.subTree.suspense):i.set(g,ve(n.subTree)))};return Oe(y),Ee(y),Se(()=>{i.forEach(e=>{const{subTree:t,suspense:r}=n,o=ve(t);if(e.type!==o.type||e.key!==o.key)h(e);else{me(o);const e=o.component.da;e&&on(e,r)}})}),()=>{if(g=null,!t.default)return null;const n=t.default(),r=n[0];if(n.length>1)return c=null,n;if(!(or(r)&&(4&r.shapeFlag||128&r.shapeFlag)))return c=null,r;let o=ve(r);const a=o.type,l=Yr(ie(o)?o.type.__asyncResolved||{}:a),{include:u,exclude:d,max:f}=e;if(u&&(!l||!ue(u,l))||d&&l&&ue(d,l))return c=o,r;const p=null==o.key?a:o.key,h=i.get(p);return o.el&&(o=pr(o),128&r.shapeFlag&&(r.ssContent=o)),g=p,h?(o.el=h.el,o.component=h.component,o.transition&&ne(o,o.transition),o.shapeFlag|=512,s.delete(p),s.add(p)):(s.add(p),f&&s.size>parseInt(f,10)&&v(s.values().next().value)),o.shapeFlag|=256,c=o,Ln(r.type)?r:o}}};function ue(e,t){return Object(o.isArray)(e)?e.some(e=>ue(e,t)):Object(o.isString)(e)?e.split(",").includes(t):!!Object(o.isRegExp)(e)&&e.test(t)}function de(e,t){pe(e,"a",t)}function fe(e,t){pe(e,"da",t)}function pe(e,t,n=Nr){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(ge(t,r,n),n){let e=n.parent;for(;e&&e.parent;)ae(e.parent.vnode)&&he(r,t,n,e),e=e.parent}}function he(e,t,n,r){const i=ge(t,e,r,!0);we(()=>{Object(o.remove)(r[t],i)},n)}function me(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ve(e){return 128&e.shapeFlag?e.ssContent:e}function ge(e,t,n=Nr,o=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{Object(r.pauseTracking)();const i=Ar(n),s=p(t,n,e,o);return i(),Object(r.resetTracking)(),s});return o?i.unshift(s):i.push(s),s}}const ye=e=>(t,n=Nr)=>{Rr&&"sp"!==e||ge(e,(...e)=>t(...e),n)},be=ye("bm"),Oe=ye("m"),_e=ye("bu"),Ee=ye("u"),Se=ye("bum"),we=ye("um"),Ne=ye("sp"),Te=ye("rtg"),xe=ye("rtc");function je(e,t=Nr){ge("ec",e,t)}function Ae(e,t){return Pe("components",e,!0,t)||e}const Ce=Symbol.for("v-ndc");function Ie(e){return Object(o.isString)(e)?Pe("components",e,!1)||e:e||Ce}function ke(e){return Pe("directives",e)}function Pe(e,t,n=!0,r=!1){const i=L||Nr;if(i){const n=i.type;if("components"===e){const e=Yr(n,!1);if(e&&(e===t||e===Object(o.camelize)(t)||e===Object(o.capitalize)(Object(o.camelize)(t))))return n}const s=Re(i[e]||n[e],t)||Re(i.appContext[e],t);return!s&&r?n:s}}function Re(e,t){return e&&(e[t]||e[Object(o.camelize)(t)]||e[Object(o.capitalize)(Object(o.camelize)(t))])}function Me(e,t,n,r){let i;const s=n&&n[r];if(Object(o.isArray)(e)||Object(o.isString)(e)){i=new Array(e.length);for(let n=0,r=e.length;nt(e,n,void 0,s&&s[n]));else{const n=Object.keys(e);i=new Array(n.length);for(let r=0,o=n.length;r{const t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function Fe(e,t,n={},r,o){if(L.isCE||L.parent&&ie(L.parent)&&L.parent.isCE)return"default"!==t&&(n.name=t),ur("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),Jn();const s=i&&function e(t){return t.some(t=>!or(t)||t.type!==zn&&!(t.type===Yn&&!e(t.children)))?t:null}(i(n)),c=rr(Yn,{key:(n.key||s&&s.key||"_"+t)+(!s&&r?"_fb":"")},s||(r?r():[]),s&&1===e._?64:-2);return!o&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),i&&i._c&&(i._d=!0),c}function De(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?"on:"+r:Object(o.toHandlerKey)(r)]=e[r];return n}const Ve=e=>e?Ir(e)?Ur(e):Ve(e.parent):null,Be=Object(o.extend)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ve(e.parent),$root:e=>Ve(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?lt(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,N(e.update)}),$nextTick:e=>e.n||(e.n=w.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?En.bind(e):o.NOOP}),$e=(e,t)=>e!==o.EMPTY_OBJ&&!e.__isScriptSetup&&Object(o.hasOwn)(e,t),Ue={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:i,data:s,props:c,accessCache:a,type:l,appContext:u}=e;let d;if("$"!==t[0]){const r=a[t];if(void 0!==r)switch(r){case 1:return i[t];case 2:return s[t];case 4:return n[t];case 3:return c[t]}else{if($e(i,t))return a[t]=1,i[t];if(s!==o.EMPTY_OBJ&&Object(o.hasOwn)(s,t))return a[t]=2,s[t];if((d=e.propsOptions[0])&&Object(o.hasOwn)(d,t))return a[t]=3,c[t];if(n!==o.EMPTY_OBJ&&Object(o.hasOwn)(n,t))return a[t]=4,n[t];__VUE_OPTIONS_API__&&!it||(a[t]=0)}}const f=Be[t];let p,h;return f?("$attrs"===t&&Object(r.track)(e.attrs,"get",""),f(e)):(p=l.__cssModules)&&(p=p[t])?p:n!==o.EMPTY_OBJ&&Object(o.hasOwn)(n,t)?(a[t]=4,n[t]):(h=u.config.globalProperties,Object(o.hasOwn)(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return $e(i,t)?(i[t]=n,!0):r!==o.EMPTY_OBJ&&Object(o.hasOwn)(r,t)?(r[t]=n,!0):!Object(o.hasOwn)(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(s[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},c){let a;return!!n[c]||e!==o.EMPTY_OBJ&&Object(o.hasOwn)(e,c)||$e(t,c)||(a=s[0])&&Object(o.hasOwn)(a,c)||Object(o.hasOwn)(r,c)||Object(o.hasOwn)(Be,c)||Object(o.hasOwn)(i.config.globalProperties,c)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:Object(o.hasOwn)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};const He=Object(o.extend)({},Ue,{get(e,t){if(t!==Symbol.unscopables)return Ue.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!Object(o.isGloballyAllowed)(t)});function Ye(){return null}function We(){return null}function ze(e){0}function Ke(e){0}function Ge(){return null}function qe(){0}function Je(e,t){return null}function Xe(){return Qe().slots}function Ze(){return Qe().attrs}function Qe(){const e=Tr();return e.setupContext||(e.setupContext=$r(e))}function et(e){return Object(o.isArray)(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function tt(e,t){const n=et(e);for(const e in t){if(e.startsWith("__skip"))continue;let r=n[e];r?Object(o.isArray)(r)||Object(o.isFunction)(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:null===r&&(r=n[e]={default:t[e]}),r&&t["__skip_"+e]&&(r.skipFactory=!0)}return n}function nt(e,t){return e&&t?Object(o.isArray)(e)&&Object(o.isArray)(t)?e.concat(t):Object(o.extend)({},et(e),et(t)):e||t}function rt(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function ot(e){const t=Tr();let n=e();return Cr(),Object(o.isPromise)(n)&&(n=n.catch(e=>{throw Ar(t),e})),[n,()=>Ar(t)]}let it=!0;function st(e){const t=lt(e),n=e.proxy,i=e.ctx;it=!1,t.beforeCreate&&ct(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:a,watch:l,provide:u,inject:d,created:f,beforeMount:p,mounted:h,beforeUpdate:m,updated:v,activated:g,deactivated:y,beforeDestroy:b,beforeUnmount:O,destroyed:_,unmounted:E,render:S,renderTracked:w,renderTriggered:N,errorCaptured:T,serverPrefetch:x,expose:j,inheritAttrs:A,components:C,directives:I,filters:k}=t;if(d&&function(e,t,n=o.NOOP){Object(o.isArray)(e)&&(e=pt(e));for(const n in e){const i=e[n];let s;s=Object(o.isObject)(i)?"default"in i?Et(i.from||n,i.default,!0):Et(i.from||n):Et(i),Object(r.isRef)(s)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[n]=s}}(d,i,null),a)for(const e in a){const t=a[e];Object(o.isFunction)(t)&&(i[e]=t.bind(n))}if(s){0;const t=s.call(n,n);0,Object(o.isObject)(t)&&(e.data=Object(r.reactive)(t))}if(it=!0,c)for(const e in c){const t=c[e],r=Object(o.isFunction)(t)?t.bind(n,n):Object(o.isFunction)(t.get)?t.get.bind(n,n):o.NOOP;0;const s=!Object(o.isFunction)(t)&&Object(o.isFunction)(t.set)?t.set.bind(n):o.NOOP,a=Kr({get:r,set:s});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(l)for(const e in l)at(l[e],i,n,e);if(u){const e=Object(o.isFunction)(u)?u.call(n):u;Reflect.ownKeys(e).forEach(t=>{_t(t,e[t])})}function P(e,t){Object(o.isArray)(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(f&&ct(f,e,"c"),P(be,p),P(Oe,h),P(_e,m),P(Ee,v),P(de,g),P(fe,y),P(je,T),P(xe,w),P(Te,N),P(Se,O),P(we,E),P(Ne,x),Object(o.isArray)(j))if(j.length){const t=e.exposed||(e.exposed={});j.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})})}else e.exposed||(e.exposed={});S&&e.render===o.NOOP&&(e.render=S),null!=A&&(e.inheritAttrs=A),C&&(e.components=C),I&&(e.directives=I)}function ct(e,t,n){p(Object(o.isArray)(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function at(e,t,n,r){const i=r.includes(".")?Sn(n,r):()=>n[r];if(Object(o.isString)(e)){const n=t[e];Object(o.isFunction)(n)&&On(i,n)}else if(Object(o.isFunction)(e))On(i,e.bind(n));else if(Object(o.isObject)(e))if(Object(o.isArray)(e))e.forEach(e=>at(e,t,n,r));else{const r=Object(o.isFunction)(e.handler)?e.handler.bind(n):t[e.handler];Object(o.isFunction)(r)&&On(i,r,e)}else 0}function lt(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:c}}=e.appContext,a=s.get(t);let l;return a?l=a:i.length||n||r?(l={},i.length&&i.forEach(e=>ut(l,e,c,!0)),ut(l,t,c)):l=t,Object(o.isObject)(t)&&s.set(t,l),l}function ut(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&ut(e,i,n,!0),o&&o.forEach(t=>ut(e,t,n,!0));for(const o in t)if(r&&"expose"===o);else{const r=dt[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const dt={data:ft,props:vt,emits:vt,methods:mt,computed:mt,beforeCreate:ht,created:ht,beforeMount:ht,mounted:ht,beforeUpdate:ht,updated:ht,beforeDestroy:ht,beforeUnmount:ht,destroyed:ht,unmounted:ht,activated:ht,deactivated:ht,errorCaptured:ht,serverPrefetch:ht,components:mt,directives:mt,watch:function(e,t){if(!e)return t;if(!t)return e;const n=Object(o.extend)(Object.create(null),e);for(const r in t)n[r]=ht(e[r],t[r]);return n},provide:ft,inject:function(e,t){return mt(pt(e),pt(t))}};function ft(e,t){return t?e?function(){return Object(o.extend)(Object(o.isFunction)(e)?e.call(this,this):e,Object(o.isFunction)(t)?t.call(this,this):t)}:t:e}function pt(e){if(Object(o.isArray)(e)){const t={};for(let n=0;n(s.has(e)||(e&&Object(o.isFunction)(e.install)?(s.add(e),e.install(a,...t)):Object(o.isFunction)(e)&&(s.add(e),e(a,...t))),a),mixin:e=>(__VUE_OPTIONS_API__&&(i.mixins.includes(e)||i.mixins.push(e)),a),component:(e,t)=>t?(i.components[e]=t,a):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,a):i.directives[e],mount(o,s,l){if(!c){0;const u=ur(n,r);return u.appContext=i,!0===l?l="svg":!1===l&&(l=void 0),s&&t?t(u,o):e(u,o,l),c=!0,a._container=o,o.__vue_app__=a,Ur(u.component)}},unmount(){c&&(e(null,a._container),delete a._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,a),runWithContext(e){const t=Ot;Ot=a;try{return e()}finally{Ot=t}}};return a}}let Ot=null;function _t(e,t){if(Nr){let n=Nr.provides;const r=Nr.parent&&Nr.parent.provides;r===n&&(n=Nr.provides=Object.create(r)),n[e]=t}else 0}function Et(e,t,n=!1){const r=Nr||L;if(r||Ot){const i=r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Ot._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&Object(o.isFunction)(t)?t.call(r&&r.proxy):t}else 0}function St(){return!!(Nr||L||Ot)}const wt={},Nt=()=>Object.create(wt),Tt=e=>Object.getPrototypeOf(e)===wt;function xt(e,t,n,i){const[s,c]=e.propsOptions;let a,l=!1;if(t)for(let r in t){if(Object(o.isReservedProp)(r))continue;const u=t[r];let d;s&&Object(o.hasOwn)(s,d=Object(o.camelize)(r))?c&&c.includes(d)?(a||(a={}))[d]=u:n[d]=u:An(e.emitsOptions,r)||r in i&&u===i[r]||(i[r]=u,l=!0)}if(c){const t=Object(r.toRaw)(n),i=a||o.EMPTY_OBJ;for(let r=0;r{l=!0;const[n,r]=Ct(e,t,!0);Object(o.extend)(c,n),r&&a.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!s&&!l)return Object(o.isObject)(e)&&r.set(e,o.EMPTY_ARR),o.EMPTY_ARR;if(Object(o.isArray)(s))for(let e=0;e-1,r[1]=n<0||e-1||Object(o.hasOwn)(r,"default"))&&a.push(t)}}}}const u=[c,a];return Object(o.isObject)(e)&&r.set(e,u),u}function It(e){return"$"!==e[0]&&!Object(o.isReservedProp)(e)}function kt(e){if(null===e)return"null";if("function"==typeof e)return e.name||"";if("object"==typeof e){return e.constructor&&e.constructor.name||""}return""}function Pt(e,t){return kt(e)===kt(t)}function Rt(e,t){return Object(o.isArray)(t)?t.findIndex(t=>Pt(t,e)):Object(o.isFunction)(t)&&Pt(t,e)?0:-1}const Mt=e=>"_"===e[0]||"$stable"===e,Lt=e=>Object(o.isArray)(e)?e.map(gr):[gr(e)],Ft=(e,t,n)=>{if(t._n)return t;const r=U((...e)=>Lt(t(...e)),n);return r._c=!1,r},Dt=(e,t,n)=>{const r=e._ctx;for(const n in e){if(Mt(n))continue;const i=e[n];if(Object(o.isFunction)(i))t[n]=Ft(0,i,r);else if(null!=i){0;const e=Lt(i);t[n]=()=>e}}},Vt=(e,t)=>{const n=Lt(t);e.slots.default=()=>n},Bt=(e,t,n)=>{for(const r in t)(n||"_"!==r)&&(e[r]=t[r])};function $t(e,t,n,i,s=!1){if(Object(o.isArray)(e))return void e.forEach((e,r)=>$t(e,t&&(Object(o.isArray)(t)?t[r]:t),n,i,s));if(ie(i)&&!s)return;const c=4&i.shapeFlag?Ur(i.component):i.el,a=s?null:c,{i:l,r:u}=e;const d=t&&t.r,p=l.refs===o.EMPTY_OBJ?l.refs={}:l.refs,h=l.setupState;if(null!=d&&d!==u&&(Object(o.isString)(d)?(p[d]=null,Object(o.hasOwn)(h,d)&&(h[d]=null)):Object(r.isRef)(d)&&(d.value=null)),Object(o.isFunction)(u))f(u,l,12,[a,p]);else{const t=Object(o.isString)(u),i=Object(r.isRef)(u);if(t||i){const r=()=>{if(e.f){const n=t?Object(o.hasOwn)(h,u)?h[u]:p[u]:u.value;s?Object(o.isArray)(n)&&Object(o.remove)(n,c):Object(o.isArray)(n)?n.includes(c)||n.push(c):t?(p[u]=[c],Object(o.hasOwn)(h,u)&&(h[u]=p[u])):(u.value=[c],e.k&&(p[e.k]=u.value))}else t?(p[u]=a,Object(o.hasOwn)(h,u)&&(h[u]=a)):i&&(u.value=a,e.k&&(p[e.k]=a))};a?(r.id=-1,on(r,n)):r()}else 0}}const Ut=Symbol("_vte"),Ht=e=>e&&(e.disabled||""===e.disabled),Yt=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Wt=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,zt=(e,t)=>{const n=e&&e.to;if(Object(o.isString)(n)){if(t){return t(n)}return null}return n};function Kt(e,t,n,{o:{insert:r},m:o},i=2){0===i&&r(e.targetAnchor,t,n);const{el:s,anchor:c,shapeFlag:a,children:l,props:u}=e,d=2===i;if(d&&r(s,t,n),(!d||Ht(u))&&16&a)for(let e=0;e{16&y&&u(b,e,t,o,i,s,c,a)};g?O(n,l):d&&O(d,v)}else{t.el=e.el,t.targetStart=e.targetStart;const r=t.anchor=e.anchor,u=t.target=e.target,p=t.targetAnchor=e.targetAnchor,m=Ht(e.props),v=m?n:u,y=m?r:p;if("svg"===s||Yt(u)?s="svg":("mathml"===s||Wt(u))&&(s="mathml"),O?(f(e.dynamicChildren,O,v,o,i,s,c),fn(e,t,!0)):a||d(e,t,v,y,o,i,s,c,!1),g)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Kt(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=zt(t.props,h);e&&Kt(t,e,null,l,0)}else m&&Kt(t,u,p,l,1)}qt(t)},remove(e,t,n,{um:r,o:{remove:o}},i){const{shapeFlag:s,children:c,anchor:a,targetStart:l,targetAnchor:u,target:d,props:f}=e;if(d&&(o(l),o(u)),i&&o(a),16&s){const e=i||!Ht(f);for(let o=0;o{Jt||(console.error("Hydration completed but contains mismatches."),Jt=!0)},Zt=e=>(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0,Qt=e=>8===e.nodeType;function en(e){const{mt:t,p:n,o:{patchProp:i,createText:s,nextSibling:a,parentNode:l,remove:u,insert:d,createComment:f}}=e,p=(n,r,o,i,u,f=!1)=>{f=f||!!r.dynamicChildren;const _=Qt(n)&&"["===n.data,E=()=>g(n,r,o,i,u,_),{type:S,ref:w,shapeFlag:N,patchFlag:T}=r;let x=n.nodeType;r.el=n,-2===T&&(f=!1,r.dynamicChildren=null);let j=null;switch(S){case Wn:3!==x?""===r.children?(d(r.el=s(""),l(n),n),j=n):j=E():(n.data!==r.children&&(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&c("Hydration text mismatch in",n.parentNode,`\n - rendered on server: ${JSON.stringify(n.data)}\n - expected on client: ${JSON.stringify(r.children)}`),Xt(),n.data=r.children),j=a(n));break;case zn:O(n)?(j=a(n),b(r.el=n.content.firstChild,n,o)):j=8!==x||_?E():a(n);break;case Kn:if(_&&(x=(n=a(n)).nodeType),1===x||3===x){j=n;const e=!r.children.length;for(let t=0;t{l=l||!!t.dynamicChildren;const{type:d,props:f,patchFlag:p,shapeFlag:h,dirs:v,transition:g}=t,y="input"===d||"option"===d;if(y||-1!==p){v&&Y(t,null,n,"created");let d,_=!1;if(O(e)){_=dn(s,g)&&n&&n.vnode.props&&n.vnode.props.appear;const r=e.content.firstChild;_&&g.beforeEnter(r),b(r,e,n),t.el=e=r}if(16&h&&(!f||!f.innerHTML&&!f.textContent)){let r=m(e.firstChild,t,e,n,s,a,l),o=!1;for(;r;){__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!o&&(c("Hydration children mismatch on",e,"\nServer rendered element contains more child nodes than client vdom."),o=!0),Xt();const t=r;r=r.nextSibling,u(t)}}else 8&h&&e.textContent!==t.children&&(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&c("Hydration text content mismatch on",e,`\n - rendered on server: ${e.textContent}\n - expected on client: ${t.children}`),Xt(),e.textContent=t.children);if(f)if(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__||y||!l||48&p)for(const r in f)!__VUE_PROD_HYDRATION_MISMATCH_DETAILS__||v&&v.some(e=>e.dir.created)||!tn(e,r,f[r],t,n)||Xt(),(y&&(r.endsWith("value")||"indeterminate"===r)||Object(o.isOn)(r)&&!Object(o.isReservedProp)(r)||"."===r[0])&&i(e,r,null,f[r],void 0,n);else if(f.onClick)i(e,"onClick",null,f.onClick,void 0,n);else if(4&p&&Object(r.isReactive)(f.style))for(const e in f.style)f.style[e];(d=f&&f.onVnodeBeforeMount)&&_r(d,n,t),v&&Y(t,null,n,"beforeMount"),((d=f&&f.onVnodeMounted)||v||_)&&Un(()=>{d&&_r(d,n,t),_&&g.enter(e),v&&Y(t,null,n,"mounted")},s)}return e.nextSibling},m=(e,t,r,o,i,l,u)=>{u=u||!!t.dynamicChildren;const f=t.children,h=f.length;let m=!1;for(let t=0;t{const{slotScopeIds:s}=t;s&&(o=o?o.concat(s):s);const c=l(e),u=m(a(e),t,c,n,r,o,i);return u&&Qt(u)&&"]"===u.data?a(t.anchor=u):(Xt(),d(t.anchor=f("]"),c,u),u)},g=(e,t,r,o,i,s)=>{if(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&c("Hydration node mismatch:\n- rendered on server:",e,3===e.nodeType?"(text)":Qt(e)&&"["===e.data?"(start of fragment)":"","\n- expected on client:",t.type),Xt(),t.el=null,s){const t=y(e);for(;;){const n=a(e);if(!n||n===t)break;u(n)}}const d=a(e),f=l(e);return u(e),n(null,t,f,d,r,o,Zt(f),i),d},y=(e,t="[",n="]")=>{let r=0;for(;e;)if((e=a(e))&&Qt(e)&&(e.data===t&&r++,e.data===n)){if(0===r)return a(e);r--}return e},b=(e,t,n)=>{const r=t.parentNode;r&&r.replaceChild(e,t);let o=n;for(;o;)o.vnode.el===t&&(o.vnode.el=o.subTree.el=e),o=o.parent},O=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[(e,t)=>{if(!t.hasChildNodes())return __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&c("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),n(null,e,t),A(),void(t._vnode=e);p(t.firstChild,e,null,null,null),A(),t._vnode=e},p]}function tn(e,t,n,r,i){let s,a,l,u;if("class"===t)l=e.getAttribute("class"),u=Object(o.normalizeClass)(n),function(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}(nn(l||""),nn(u))||(s=a="class");else if("style"===t){l=e.getAttribute("style")||"",u=Object(o.isString)(n)?n:Object(o.stringifyStyle)(Object(o.normalizeStyle)(n));const t=rn(l),c=rn(u);if(r.dirs)for(const{dir:e,value:t}of r.dirs)"show"!==e.name||t||c.set("display","none");i&&function e(t,n,r){const o=t.subTree;if(t.getCssVars&&(n===o||o&&o.type===Yn&&o.children.includes(n))){const e=t.getCssVars();for(const t in e)r.set("--"+t,String(e[t]))}n===o&&t.parent&&e(t.parent,t.vnode,r)}(i,r,c),function(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e)if(r!==t.get(n))return!1;return!0}(t,c)||(s=a="style")}else(e instanceof SVGElement&&Object(o.isKnownSvgAttr)(t)||e instanceof HTMLElement&&(Object(o.isBooleanAttr)(t)||Object(o.isKnownHtmlAttr)(t)))&&(Object(o.isBooleanAttr)(t)?(l=e.hasAttribute(t),u=Object(o.includeBooleanAttr)(n)):null==n?(l=e.hasAttribute(t),u=!1):(l=e.hasAttribute(t)?e.getAttribute(t):"value"===t&&"TEXTAREA"===e.tagName&&e.value,u=!!Object(o.isRenderableAttrValue)(n)&&String(n)),l!==u&&(s="attribute",a=t));if(s){const t=e=>!1===e?"(not rendered)":`${a}="${e}"`;return c(`Hydration ${s} mismatch on`,e,`\n - rendered on server: ${t(l)}\n - expected on client: ${t(u)}\n Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.\n You should fix the source of the mismatch.`),!0}return!1}function nn(e){return new Set(e.trim().split(/\s+/))}function rn(e){const t=new Map;for(const n of e.split(";")){let[e,r]=n.split(":");e=e.trim(),r=r&&r.trim(),e&&r&&t.set(e,r)}return t}const on=Un;function sn(e){return an(e)}function cn(e){return an(e,en)}function an(e,t){"boolean"!=typeof __VUE_OPTIONS_API__&&(Object(o.getGlobalThis)().__VUE_OPTIONS_API__=!0),"boolean"!=typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&(Object(o.getGlobalThis)().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1);Object(o.getGlobalThis)().__VUE__=!0;const{insert:n,remove:i,patchProp:s,createElement:c,createText:a,createComment:l,setText:u,setElementText:d,parentNode:f,nextSibling:p,setScopeId:h=o.NOOP,insertStaticContent:m}=e,v=(e,t,n,r=null,o=null,i=null,s,c=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!ir(e,t)&&(r=q(e),H(e,o,i,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:l,ref:u,shapeFlag:d}=t;switch(l){case Wn:b(e,t,n,r);break;case zn:O(e,t,n,r);break;case Kn:null==e&&_(t,n,r,s);break;case Yn:P(e,t,n,r,o,i,s,c,a);break;default:1&d?S(e,t,n,r,o,i,s,c,a):6&d?R(e,t,n,r,o,i,s,c,a):(64&d||128&d)&&l.process(e,t,n,r,o,i,s,c,a,Z)}null!=u&&o&&$t(u,e&&e.ref,i,t||e,!t)},b=(e,t,r,o)=>{if(null==e)n(t.el=a(t.children),r,o);else{const n=t.el=e.el;t.children!==e.children&&u(n,t.children)}},O=(e,t,r,o)=>{null==e?n(t.el=l(t.children||""),r,o):t.el=e.el},_=(e,t,n,r)=>{[e.el,e.anchor]=m(e.children,t,n,r,e.el,e.anchor)},E=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=p(e),i(e),e=n;i(t)},S=(e,t,n,r,o,i,s,c,a)=>{"svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e?w(t,n,r,o,i,s,c,a):C(e,t,o,i,s,c,a)},w=(e,t,r,i,a,l,u,f)=>{let p,h;const{props:m,shapeFlag:v,transition:g,dirs:y}=e;if(p=e.el=c(e.type,l,m&&m.is,m),8&v?d(p,e.children):16&v&&x(e.children,p,null,i,a,ln(e,l),u,f),y&&Y(e,null,i,"created"),T(p,e,e.scopeId,u,i),m){for(const e in m)"value"===e||Object(o.isReservedProp)(e)||s(p,e,null,m[e],l,i);"value"in m&&s(p,"value",null,m.value,l),(h=m.onVnodeBeforeMount)&&_r(h,i,e)}y&&Y(e,null,i,"beforeMount");const b=dn(a,g);b&&g.beforeEnter(p),n(p,t,r),((h=m&&m.onVnodeMounted)||b||y)&&on(()=>{h&&_r(h,i,e),b&&g.enter(p),y&&Y(e,null,i,"mounted")},a)},T=(e,t,n,r,o)=>{if(n&&h(e,n),r)for(let t=0;t{for(let l=a;l{const l=t.el=e.el;let{patchFlag:u,dynamicChildren:f,dirs:p}=t;u|=16&e.patchFlag;const h=e.props||o.EMPTY_OBJ,m=t.props||o.EMPTY_OBJ;let v;if(n&&un(n,!1),(v=m.onVnodeBeforeUpdate)&&_r(v,n,t,e),p&&Y(t,e,n,"beforeUpdate"),n&&un(n,!0),(h.innerHTML&&null==m.innerHTML||h.textContent&&null==m.textContent)&&d(l,""),f?I(e.dynamicChildren,f,l,n,r,ln(t,i),c):a||V(e,t,l,null,n,r,ln(t,i),c,!1),u>0){if(16&u)k(l,h,m,n,i);else if(2&u&&h.class!==m.class&&s(l,"class",null,m.class,i),4&u&&s(l,"style",h.style,m.style,i),8&u){const e=t.dynamicProps;for(let t=0;t{v&&_r(v,n,t,e),p&&Y(t,e,n,"updated")},r)},I=(e,t,n,r,o,i,s)=>{for(let c=0;c{if(t!==n){if(t!==o.EMPTY_OBJ)for(const c in t)Object(o.isReservedProp)(c)||c in n||s(e,c,t[c],null,i,r);for(const c in n){if(Object(o.isReservedProp)(c))continue;const a=n[c],l=t[c];a!==l&&"value"!==c&&s(e,c,l,a,i,r)}"value"in n&&s(e,"value",t.value,n.value,i)}},P=(e,t,r,o,i,s,c,l,u)=>{const d=t.el=e?e.el:a(""),f=t.anchor=e?e.anchor:a("");let{patchFlag:p,dynamicChildren:h,slotScopeIds:m}=t;m&&(l=l?l.concat(m):m),null==e?(n(d,r,o),n(f,r,o),x(t.children||[],r,f,i,s,c,l,u)):p>0&&64&p&&h&&e.dynamicChildren?(I(e.dynamicChildren,h,r,i,s,c,l),(null!=t.key||i&&t===i.subTree)&&fn(e,t,!0)):V(e,t,r,f,i,s,c,l,u)},R=(e,t,n,r,o,i,s,c,a)=>{t.slotScopeIds=c,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,s,a):M(t,n,r,o,i,s,a):L(e,t,a)},M=(e,t,n,r,o,i,s)=>{const c=e.component=wr(e,r,o);if(ae(e)&&(c.ctx.renderer=Z),Mr(c,!1,s),c.asyncDep){if(o&&o.registerDep(c,F,s),!e.el){const e=c.subTree=ur(zn);O(null,e,t,n)}}else F(c,e,t,n,o,i,s)},L=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:o,component:i}=e,{props:s,children:c,patchFlag:a}=t,l=i.emitsOptions;0;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!o&&!c||c&&c.$stable)||r!==s&&(r?!s||Rn(r,s,l):!!s);if(1024&a)return!0;if(16&a)return r?Rn(r,s,l):!!s;if(8&a){const e=t.dynamicProps;for(let t=0;ty&&g.splice(t,1)}(r.update),r.effect.dirty=!0,r.update()}else t.el=e.el,r.vnode=t},F=(e,t,n,i,s,c,a)=>{const l=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:i,vnode:u}=e;{const n=function e(t){const n=t.subTree.component;if(n)return n.asyncDep&&!n.asyncResolved?n:e(n)}(e);if(n)return t&&(t.el=u.el,D(e,t,a)),void n.asyncDep.then(()=>{e.isUnmounted||l()})}let d,p=t;0,un(e,!1),t?(t.el=u.el,D(e,t,a)):t=u,n&&Object(o.invokeArrayFns)(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&_r(d,i,t,u),un(e,!0);const h=Cn(e);0;const m=e.subTree;e.subTree=h,v(m,h,f(m.el),q(m),e,s,c),t.el=h.el,null===p&&Mn(e,h.el),r&&on(r,s),(d=t.props&&t.props.onVnodeUpdated)&&on(()=>_r(d,i,t,u),s)}else{let r;const{el:a,props:l}=t,{bm:u,m:d,parent:f}=e,p=ie(t);if(un(e,!1),u&&Object(o.invokeArrayFns)(u),!p&&(r=l&&l.onVnodeBeforeMount)&&_r(r,f,t),un(e,!0),a&&ee){const n=()=>{e.subTree=Cn(e),ee(a,e.subTree,e,s,null)};p?t.type.__asyncLoader().then(()=>!e.isUnmounted&&n()):n()}else{0;const r=e.subTree=Cn(e);0,v(null,r,n,i,e,s,c),t.el=r.el}if(d&&on(d,s),!p&&(r=l&&l.onVnodeMounted)){const e=t;on(()=>_r(r,f,e),s)}(256&t.shapeFlag||f&&ie(f.vnode)&&256&f.vnode.shapeFlag)&&e.a&&on(e.a,s),e.isMounted=!0,t=n=i=null}},u=e.effect=new r.ReactiveEffect(l,o.NOOP,()=>N(d),e.scope),d=e.update=()=>{u.dirty&&u.run()};d.i=e,d.id=e.uid,un(e,!0),d()},D=(e,t,n)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,i){const{props:s,attrs:c,vnode:{patchFlag:a}}=e,l=Object(r.toRaw)(s),[u]=e.propsOptions;let d=!1;if(!(i||a>0)||16&a){let r;xt(e,t,s,c)&&(d=!0);for(const i in l)t&&(Object(o.hasOwn)(t,i)||(r=Object(o.hyphenate)(i))!==i&&Object(o.hasOwn)(t,r))||(u?!n||void 0===n[i]&&void 0===n[r]||(s[i]=jt(u,l,i,void 0,e,!0)):delete s[i]);if(c!==l)for(const e in c)t&&Object(o.hasOwn)(t,e)||(delete c[e],d=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let r=0;r{const{vnode:r,slots:i}=e;let s=!0,c=o.EMPTY_OBJ;if(32&r.shapeFlag){const e=t._;e?n&&1===e?s=!1:Bt(i,t,n):(s=!t.$stable,Dt(t,i)),c=t}else t&&(Vt(e,t),c={default:1});if(s)for(const e in i)Mt(e)||null!=c[e]||delete i[e]})(e,t.children,n),Object(r.pauseTracking)(),j(e),Object(r.resetTracking)()},V=(e,t,n,r,o,i,s,c,a=!1)=>{const l=e&&e.children,u=e?e.shapeFlag:0,f=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void $(l,f,n,r,o,i,s,c,a);if(256&p)return void B(l,f,n,r,o,i,s,c,a)}8&h?(16&u&&G(l,o,i),f!==l&&d(n,f)):16&u?16&h?$(l,f,n,r,o,i,s,c,a):G(l,o,i,!0):(8&u&&d(n,""),16&h&&x(f,n,r,o,i,s,c,a))},B=(e,t,n,r,i,s,c,a,l)=>{e=e||o.EMPTY_ARR,t=t||o.EMPTY_ARR;const u=e.length,d=t.length,f=Math.min(u,d);let p;for(p=0;pd?G(e,i,s,!0,!1,f):x(t,n,r,i,s,c,a,l,f)},$=(e,t,n,r,i,s,c,a,l)=>{let u=0;const d=t.length;let f=e.length-1,p=d-1;for(;u<=f&&u<=p;){const r=e[u],o=t[u]=l?yr(t[u]):gr(t[u]);if(!ir(r,o))break;v(r,o,n,null,i,s,c,a,l),u++}for(;u<=f&&u<=p;){const r=e[f],o=t[p]=l?yr(t[p]):gr(t[p]);if(!ir(r,o))break;v(r,o,n,null,i,s,c,a,l),f--,p--}if(u>f){if(u<=p){const e=p+1,o=ep)for(;u<=f;)H(e[u],i,s,!0),u++;else{const h=u,m=u,g=new Map;for(u=m;u<=p;u++){const e=t[u]=l?yr(t[u]):gr(t[u]);null!=e.key&&g.set(e.key,u)}let y,b=0;const O=p-m+1;let _=!1,E=0;const S=new Array(O);for(u=0;u=O){H(r,i,s,!0);continue}let o;if(null!=r.key)o=g.get(r.key);else for(y=m;y<=p;y++)if(0===S[y-m]&&ir(r,t[y])){o=y;break}void 0===o?H(r,i,s,!0):(S[o-m]=u+1,o>=E?E=o:_=!0,v(r,t[o],n,null,i,s,c,a,l),b++)}const w=_?function(e){const t=e.slice(),n=[0];let r,o,i,s,c;const a=e.length;for(r=0;r>1,e[n[c]]0&&(t[r]=n[i-1]),n[i]=r)}}i=n.length,s=n[i-1];for(;i-- >0;)n[i]=s,s=t[s];return n}(S):o.EMPTY_ARR;for(y=w.length-1,u=O-1;u>=0;u--){const e=m+u,o=t[e],f=e+1{const{el:s,type:c,transition:a,children:l,shapeFlag:u}=e;if(6&u)return void U(e.component.subTree,t,r,o);if(128&u)return void e.suspense.move(t,r,o);if(64&u)return void c.move(e,t,r,Z);if(c===Yn){n(s,t,r);for(let e=0;e{let i;for(;e&&e!==t;)i=p(e),n(e,r,o),e=i;n(t,r,o)})(e,t,r);if(2!==o&&1&u&&a)if(0===o)a.beforeEnter(s),n(s,t,r),on(()=>a.enter(s),i);else{const{leave:e,delayLeave:o,afterLeave:i}=a,c=()=>n(s,t,r),l=()=>{e(s,()=>{c(),i&&i()})};o?o(s,c,l):l()}else n(s,t,r)},H=(e,t,n,r=!1,o=!1)=>{const{type:i,props:s,ref:c,children:a,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p}=e;if(-2===d&&(o=!1),null!=c&&$t(c,null,n,e,!0),null!=p&&(t.renderCache[p]=void 0),256&u)return void t.ctx.deactivate(e);const h=1&u&&f,m=!ie(e);let v;if(m&&(v=s&&s.onVnodeBeforeUnmount)&&_r(v,t,e),6&u)K(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);h&&Y(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,Z,r):l&&!l.hasOnce&&(i!==Yn||d>0&&64&d)?G(l,t,n,!1,!0):(i===Yn&&384&d||!o&&16&u)&&G(a,t,n),r&&W(e)}(m&&(v=s&&s.onVnodeUnmounted)||h)&&on(()=>{v&&_r(v,t,e),h&&Y(e,null,t,"unmounted")},n)},W=e=>{const{type:t,el:n,anchor:r,transition:o}=e;if(t===Yn)return void z(n,r);if(t===Kn)return void E(e);const s=()=>{i(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,i=()=>t(n,s);r?r(e.el,s,i):i()}else s()},z=(e,t)=>{let n;for(;e!==t;)n=p(e),i(e),e=n;i(t)},K=(e,t,n)=>{const{bum:r,scope:i,update:s,subTree:c,um:a,m:l,a:u}=e;pn(l),pn(u),r&&Object(o.invokeArrayFns)(r),i.stop(),s&&(s.active=!1,H(c,e,t,n)),a&&on(a,t),on(()=>{e.isUnmounted=!0},t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},G=(e,t,n,r=!1,o=!1,i=0)=>{for(let s=i;s{if(6&e.shapeFlag)return q(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=p(e.anchor||e.el),n=t&&t[Ut];return n?p(n):t};let J=!1;const X=(e,t,n)=>{null==e?t._vnode&&H(t._vnode,null,null,!0):v(t._vnode||null,e,t,null,null,null,n),J||(J=!0,j(),A(),J=!1),t._vnode=e},Z={p:v,um:H,m:U,r:W,mt:M,mc:x,pc:V,pbc:I,n:q,o:e};let Q,ee;return t&&([Q,ee]=t(Z)),{render:X,hydrate:Q,createApp:bt(X,Q)}}function ln({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function un({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function dn(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function fn(e,t,n=!1){const r=e.children,i=t.children;if(Object(o.isArray)(r)&&Object(o.isArray)(i))for(let e=0;e{{const e=Et(hn);return e}};function vn(e,t){return _n(e,null,t)}function gn(e,t){return _n(e,null,{flush:"post"})}function yn(e,t){return _n(e,null,{flush:"sync"})}const bn={};function On(e,t,n){return _n(e,t,n)}function _n(e,t,{immediate:n,deep:i,flush:s,once:c,onTrack:a,onTrigger:l}=o.EMPTY_OBJ){if(t&&c){const e=t;t=(...t)=>{e(...t),T()}}const u=Nr,d=e=>!0===i?e:wn(e,!1===i?1:void 0);let h,m,v=!1,g=!1;if(Object(r.isRef)(e)?(h=()=>e.value,v=Object(r.isShallow)(e)):Object(r.isReactive)(e)?(h=()=>d(e),v=!0):Object(o.isArray)(e)?(g=!0,v=e.some(e=>Object(r.isReactive)(e)||Object(r.isShallow)(e)),h=()=>e.map(e=>Object(r.isRef)(e)?e.value:Object(r.isReactive)(e)?d(e):Object(o.isFunction)(e)?f(e,u,2):void 0)):h=Object(o.isFunction)(e)?t?()=>f(e,u,2):()=>(m&&m(),p(e,u,3,[b])):o.NOOP,t&&i){const e=h;h=()=>wn(e())}let y,b=e=>{m=S.onStop=()=>{f(e,u,4),m=S.onStop=void 0}};if(Rr){if(b=o.NOOP,t?n&&p(t,u,3,[h(),g?[]:void 0,b]):h(),"sync"!==s)return o.NOOP;{const e=mn();y=e.__watcherHandles||(e.__watcherHandles=[])}}let O=g?new Array(e.length).fill(bn):bn;const _=()=>{if(S.active&&S.dirty)if(t){const e=S.run();(i||v||(g?e.some((e,t)=>Object(o.hasChanged)(e,O[t])):Object(o.hasChanged)(e,O)))&&(m&&m(),p(t,u,3,[e,O===bn?void 0:g&&O[0]===bn?[]:O,b]),O=e)}else S.run()};let E;_.allowRecurse=!!t,"sync"===s?E=_:"post"===s?E=()=>on(_,u&&u.suspense):(_.pre=!0,u&&(_.id=u.uid),E=()=>N(_));const S=new r.ReactiveEffect(h,o.NOOP,E),w=Object(r.getCurrentScope)(),T=()=>{S.stop(),w&&Object(o.remove)(w.effects,S)};return t?n?_():O=S.run():"post"===s?on(S.run.bind(S),u&&u.suspense):S.run(),y&&y.push(T),T}function En(e,t,n){const r=this.proxy,i=Object(o.isString)(e)?e.includes(".")?Sn(r,e):()=>r[e]:e.bind(r,r);let s;Object(o.isFunction)(t)?s=t:(s=t.handler,n=t);const c=Ar(this),a=_n(i,s.bind(r),n);return c(),a}function Sn(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{wn(e,t,n)});else if(Object(o.isPlainObject)(e)){for(const r in e)wn(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&wn(e[r],t,n)}return e}function Nn(e,t,n=o.EMPTY_OBJ){const i=Tr();const s=Object(o.camelize)(t),c=Object(o.hyphenate)(t),a=Tn(e,t),l=Object(r.customRef)((r,a)=>{let l,u,d=o.EMPTY_OBJ;return yn(()=>{const n=e[t];Object(o.hasChanged)(l,n)&&(l=n,a())}),{get:()=>(r(),n.get?n.get(l):l),set(e){if(!(Object(o.hasChanged)(e,l)||d!==o.EMPTY_OBJ&&Object(o.hasChanged)(e,d)))return;const r=i.vnode.props;r&&(t in r||s in r||c in r)&&("onUpdate:"+t in r||"onUpdate:"+s in r||"onUpdate:"+c in r)||(l=e,a());const f=n.set?n.set(e):e;i.emit("update:"+t,f),Object(o.hasChanged)(e,f)&&Object(o.hasChanged)(e,d)&&!Object(o.hasChanged)(f,u)&&a(),d=e,u=f}}});return l[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?a||o.EMPTY_OBJ:l,done:!1}:{done:!0}}},l}const Tn=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[t+"Modifiers"]||e[Object(o.camelize)(t)+"Modifiers"]||e[Object(o.hyphenate)(t)+"Modifiers"];function xn(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||o.EMPTY_OBJ;let i=n;const s=t.startsWith("update:"),c=s&&Tn(r,t.slice(7));let a;c&&(c.trim&&(i=n.map(e=>Object(o.isString)(e)?e.trim():e)),c.number&&(i=n.map(o.looseToNumber)));let l=r[a=Object(o.toHandlerKey)(t)]||r[a=Object(o.toHandlerKey)(Object(o.camelize)(t))];!l&&s&&(l=r[a=Object(o.toHandlerKey)(Object(o.hyphenate)(t))]),l&&p(l,e,6,i);const u=r[a+"Once"];if(u){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,p(u,e,6,i)}}function jn(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(void 0!==i)return i;const s=e.emits;let c={},a=!1;if(__VUE_OPTIONS_API__&&!Object(o.isFunction)(e)){const r=e=>{const n=jn(e,t,!0);n&&(a=!0,Object(o.extend)(c,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return s||a?(Object(o.isArray)(s)?s.forEach(e=>c[e]=null):Object(o.extend)(c,s),Object(o.isObject)(e)&&r.set(e,c),c):(Object(o.isObject)(e)&&r.set(e,null),null)}function An(e,t){return!(!e||!Object(o.isOn)(t))&&(t=t.slice(2).replace(/Once$/,""),Object(o.hasOwn)(e,t[0].toLowerCase()+t.slice(1))||Object(o.hasOwn)(e,Object(o.hyphenate)(t))||Object(o.hasOwn)(e,t))}function Cn(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[s],slots:c,attrs:a,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:v,inheritAttrs:g}=e,y=D(e);let b,O;try{if(4&n.shapeFlag){const e=i||r,t=e;b=gr(u.call(t,e,d,f,m,p,v)),O=a}else{const e=t;0,b=gr(e.length>1?e(f,{attrs:a,slots:c,emit:l}):e(f,null)),O=t.props?a:kn(a)}}catch(t){Gn.length=0,h(t,e,1),b=ur(zn)}let _=b;if(O&&!1!==g){const e=Object.keys(O),{shapeFlag:t}=_;e.length&&7&t&&(s&&e.some(o.isModelListener)&&(O=Pn(O,s)),_=pr(_,O,!1,!0))}return n.dirs&&(_=pr(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),b=_,D(y),b}function In(e,t=!0){let n;for(let t=0;t{let t;for(const n in e)("class"===n||"style"===n||Object(o.isOn)(n))&&((t||(t={}))[n]=e[n]);return t},Pn=(e,t)=>{const n={};for(const r in e)Object(o.isModelListener)(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function Rn(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;oe.__isSuspense;let Fn=0;const Dn={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,i,s,c,a,l){if(null==e)!function(e,t,n,r,o,i,s,c,a){const{p:l,o:{createElement:u}}=a,d=u("div"),f=e.suspense=Bn(e,o,r,t,d,n,i,s,c,a);l(null,f.pendingBranch=e.ssContent,d,null,r,f,i,s),f.deps>0?(Vn(e,"onPending"),Vn(e,"onFallback"),l(null,e.ssFallback,t,n,r,null,i,s),Hn(f,e.ssFallback)):f.resolve(!1,!0)}(t,n,r,o,i,s,c,a,l);else{if(i&&i.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,r,o,i,s,c,{p:a,um:l,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const f=t.ssContent,p=t.ssFallback,{activeBranch:h,pendingBranch:m,isInFallback:v,isHydrating:g}=d;if(m)d.pendingBranch=f,ir(f,m)?(a(m,f,d.hiddenContainer,null,o,d,i,s,c),d.deps<=0?d.resolve():v&&(g||(a(h,p,n,r,o,null,i,s,c),Hn(d,p)))):(d.pendingId=Fn++,g?(d.isHydrating=!1,d.activeBranch=m):l(m,o,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),v?(a(null,f,d.hiddenContainer,null,o,d,i,s,c),d.deps<=0?d.resolve():(a(h,p,n,r,o,null,i,s,c),Hn(d,p))):h&&ir(f,h)?(a(h,f,n,r,o,d,i,s,c),d.resolve(!0)):(a(null,f,d.hiddenContainer,null,o,d,i,s,c),d.deps<=0&&d.resolve()));else if(h&&ir(f,h))a(h,f,n,r,o,d,i,s,c),Hn(d,f);else if(Vn(t,"onPending"),d.pendingBranch=f,512&f.shapeFlag?d.pendingId=f.component.suspenseId:d.pendingId=Fn++,a(null,f,d.hiddenContainer,null,o,d,i,s,c),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):0===e&&d.fallback(p)}}(e,t,n,r,o,s,c,a,l)}},hydrate:function(e,t,n,r,o,i,s,c,a){const l=t.suspense=Bn(t,r,n,e.parentNode,document.createElement("div"),null,o,i,s,c,!0),u=a(e,l.pendingBranch=t.ssContent,n,l,i,s);0===l.deps&&l.resolve(!1,!0);return u},normalize:function(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=$n(r?n.default:n),e.ssFallback=r?$n(n.fallback):ur(zn)}};function Vn(e,t){const n=e.props&&e.props[t];Object(o.isFunction)(n)&&n()}function Bn(e,t,n,r,i,s,c,a,l,u,d=!1){const{p:f,m:p,um:m,n:v,o:{parentNode:g,remove:y}}=u;let b;const O=function(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);O&&t&&t.pendingBranch&&(b=t.pendingId,t.deps++);const _=e.props?Object(o.toNumber)(e.props.timeout):void 0;const E=s,S={vnode:e,parent:t,parentComponent:n,namespace:c,container:r,hiddenContainer:i,deps:0,pendingId:Fn++,timeout:"number"==typeof _?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:r,activeBranch:o,pendingBranch:i,pendingId:c,effects:a,parentComponent:l,container:u}=S;let d=!1;S.isHydrating?S.isHydrating=!1:e||(d=o&&i.transition&&"out-in"===i.transition.mode,d&&(o.transition.afterLeave=()=>{c===S.pendingId&&(p(i,u,s===E?v(o):s,0),x(a))}),o&&(g(o.el)!==S.hiddenContainer&&(s=v(o)),m(o,l,S,!0)),d||p(i,u,s,0)),Hn(S,i),S.pendingBranch=null,S.isInFallback=!1;let f=S.parent,h=!1;for(;f;){if(f.pendingBranch){f.effects.push(...a),h=!0;break}f=f.parent}h||d||x(a),S.effects=[],O&&t&&t.pendingBranch&&b===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),Vn(r,"onResolve")},fallback(e){if(!S.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:o,namespace:i}=S;Vn(t,"onFallback");const s=v(n),c=()=>{S.isInFallback&&(f(null,e,o,s,r,null,i,a,l),Hn(S,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=c),S.isInFallback=!0,m(n,r,null,!0),u||c()},move(e,t,n){S.activeBranch&&p(S.activeBranch,e,t,n),S.container=e},next:()=>S.activeBranch&&v(S.activeBranch),registerDep(e,t,n){const r=!!S.pendingBranch;r&&S.deps++;const o=e.vnode.el;e.asyncDep.catch(t=>{h(t,e,0)}).then(i=>{if(e.isUnmounted||S.isUnmounted||S.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:s}=e;Lr(e,i,!1),o&&(s.el=o);const a=!o&&e.subTree.el;t(e,s,g(o||e.subTree.el),o?null:v(e.subTree),S,c,n),a&&y(a),Mn(e,s.el),r&&0==--S.deps&&S.resolve()})},unmount(e,t){S.isUnmounted=!0,S.activeBranch&&m(S.activeBranch,n,e,t),S.pendingBranch&&m(S.pendingBranch,n,e,t)}};return S}function $n(e){let t;if(Object(o.isFunction)(e)){const n=Qn&&e._c;n&&(e._d=!1,Jn()),e=e(),n&&(e._d=!0,t=qn,Xn())}if(Object(o.isArray)(e)){const t=In(e);0,e=t}return e=gr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function Un(e,t){t&&t.pendingBranch?Object(o.isArray)(e)?t.effects.push(...e):t.effects.push(e):x(e)}function Hn(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let o=t.el;for(;!o&&t.component;)o=(t=t.component.subTree).el;n.el=o,r&&r.subTree===n&&(r.vnode.el=o,Mn(r,o))}const Yn=Symbol.for("v-fgt"),Wn=Symbol.for("v-txt"),zn=Symbol.for("v-cmt"),Kn=Symbol.for("v-stc"),Gn=[];let qn=null;function Jn(e=!1){Gn.push(qn=e?null:[])}function Xn(){Gn.pop(),qn=Gn[Gn.length-1]||null}let Zn,Qn=1;function er(e){Qn+=e,e<0&&qn&&(qn.hasOnce=!0)}function tr(e){return e.dynamicChildren=Qn>0?qn||o.EMPTY_ARR:null,Xn(),Qn>0&&qn&&qn.push(e),e}function nr(e,t,n,r,o,i){return tr(lr(e,t,n,r,o,i,!0))}function rr(e,t,n,r,o){return tr(ur(e,t,n,r,o,!0))}function or(e){return!!e&&!0===e.__v_isVNode}function ir(e,t){return e.type===t.type&&e.key===t.key}function sr(e){Zn=e}const cr=({key:e})=>null!=e?e:null,ar=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?Object(o.isString)(e)||Object(r.isRef)(e)||Object(o.isFunction)(e)?{i:L,r:e,k:t,f:!!n}:e:null);function lr(e,t=null,n=null,r=0,i=null,s=(e===Yn?0:1),c=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&cr(t),ref:t&&ar(t),scopeId:F,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:L};return a?(br(l,n),128&s&&e.normalize(l)):n&&(l.shapeFlag|=Object(o.isString)(n)?8:16),Qn>0&&!c&&qn&&(l.patchFlag>0||6&s)&&32!==l.patchFlag&&qn.push(l),l}const ur=dr;function dr(e,t=null,n=null,i=0,s=null,c=!1){if(e&&e!==Ce||(e=zn),or(e)){const r=pr(e,t,!0);return n&&br(r,n),Qn>0&&!c&&qn&&(6&r.shapeFlag?qn[qn.indexOf(e)]=r:qn.push(r)),r.patchFlag=-2,r}if(zr(e)&&(e=e.__vccOpts),t){t=fr(t);let{class:e,style:n}=t;e&&!Object(o.isString)(e)&&(t.class=Object(o.normalizeClass)(e)),Object(o.isObject)(n)&&(Object(r.isProxy)(n)&&!Object(o.isArray)(n)&&(n=Object(o.extend)({},n)),t.style=Object(o.normalizeStyle)(n))}return lr(e,t,n,i,s,Object(o.isString)(e)?1:Ln(e)?128:(e=>e.__isTeleport)(e)?64:Object(o.isObject)(e)?4:Object(o.isFunction)(e)?2:0,c,!0)}function fr(e){return e?Object(r.isProxy)(e)||Tt(e)?Object(o.extend)({},e):e:null}function pr(e,t,n=!1,r=!1){const{props:i,ref:s,patchFlag:c,children:a,transition:l}=e,u=t?Or(i||{},t):i,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&cr(u),ref:t&&t.ref?n&&s?Object(o.isArray)(s)?s.concat(ar(t)):[s,ar(t)]:ar(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Yn?-1===c?16:16|c:c,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pr(e.ssContent),ssFallback:e.ssFallback&&pr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&ne(d,l.clone(d)),d}function hr(e=" ",t=0){return ur(Wn,null,e,t)}function mr(e,t){const n=ur(Kn,null,e);return n.staticCount=t,n}function vr(e="",t=!1){return t?(Jn(),rr(zn,null,e)):ur(zn,null,e)}function gr(e){return null==e||"boolean"==typeof e?ur(zn):Object(o.isArray)(e)?ur(Yn,null,e.slice()):"object"==typeof e?yr(e):ur(Wn,null,String(e))}function yr(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:pr(e)}function br(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(Object(o.isArray)(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),br(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Tt(t)?3===r&&L&&(1===L.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=L}}else Object(o.isFunction)(t)?(t={default:t,_ctx:L},n=32):(t=String(t),64&r?(n=16,t=[hr(t)]):n=8);e.children=t,e.shapeFlag|=n}function Or(...e){const t={};for(let n=0;nNr||L;let xr,jr;{const e=Object(o.getGlobalThis)(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};xr=t("__VUE_INSTANCE_SETTERS__",e=>Nr=e),jr=t("__VUE_SSR_SETTERS__",e=>Rr=e)}const Ar=e=>{const t=Nr;return xr(e),e.scope.on(),()=>{e.scope.off(),xr(t)}},Cr=()=>{Nr&&Nr.scope.off(),xr(null)};function Ir(e){return 4&e.vnode.shapeFlag}let kr,Pr,Rr=!1;function Mr(e,t=!1,n=!1){t&&jr(t);const{props:i,children:s}=e.vnode,c=Ir(e);!function(e,t,n,o=!1){const i={},s=Nt();e.propsDefaults=Object.create(null),xt(e,t,i,s);for(const t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=o?i:Object(r.shallowReactive)(i):e.type.props?e.props=i:e.props=s,e.attrs=s}(e,i,c,t),((e,t,n)=>{const r=e.slots=Nt();if(32&e.vnode.shapeFlag){const e=t._;e?(Bt(r,t,n),n&&Object(o.def)(r,"_",e,!0)):Dt(t,r)}else t&&Vt(e,t)})(e,s,n);const a=c?function(e,t){const n=e.type;0;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ue),!1;const{setup:i}=n;if(i){const n=e.setupContext=i.length>1?$r(e):null,s=Ar(e);Object(r.pauseTracking)();const c=f(i,e,0,[e.props,n]);if(Object(r.resetTracking)(),s(),Object(o.isPromise)(c)){if(c.then(Cr,Cr),t)return c.then(n=>{Lr(e,n,t)}).catch(t=>{h(t,e,0)});e.asyncDep=c}else Lr(e,c,t)}else Vr(e,t)}(e,t):void 0;return t&&jr(!1),a}function Lr(e,t,n){Object(o.isFunction)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Object(o.isObject)(t)&&(e.setupState=Object(r.proxyRefs)(t)),Vr(e,n)}function Fr(e){kr=e,Pr=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,He))}}const Dr=()=>!kr;function Vr(e,t,n){const i=e.type;if(!e.render){if(!t&&kr&&!i.render){const t=i.template||lt(e).template;if(t){0;const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:s,compilerOptions:c}=i,a=Object(o.extend)(Object(o.extend)({isCustomElement:n,delimiters:s},r),c);i.render=kr(t,a)}}e.render=i.render||o.NOOP,Pr&&Pr(e)}if(__VUE_OPTIONS_API__){const t=Ar(e);Object(r.pauseTracking)();try{st(e)}finally{Object(r.resetTracking)(),t()}}}const Br={get:(e,t)=>(Object(r.track)(e,"get",""),e[t])};function $r(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,Br),slots:e.slots,emit:e.emit,expose:t}}function Ur(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Object(r.proxyRefs)(Object(r.markRaw)(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Be?Be[n](e):void 0,has:(e,t)=>t in e||t in Be})):e.proxy}const Hr=/(?:^|[-_])(\w)/g;function Yr(e,t=!0){return Object(o.isFunction)(e)?e.displayName||e.name:e.name||t&&e.__name}function Wr(e,t,n=!1){let r=Yr(t);if(!r&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(r=e[1])}if(!r&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};r=n(e.components||e.parent.type.components)||n(e.appContext.components)}return r?r.replace(Hr,e=>e.toUpperCase()).replace(/[-_]/g,""):n?"App":"Anonymous"}function zr(e){return Object(o.isFunction)(e)&&"__vccOpts"in e}const Kr=(e,t)=>Object(r.computed)(e,t,Rr);function Gr(e,t,n){const r=arguments.length;return 2===r?Object(o.isObject)(t)&&!Object(o.isArray)(t)?or(t)?ur(e,null,[t]):ur(e,t):ur(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&or(n)&&(n=[n]),ur(e,t,n))}function qr(){return void 0}function Jr(e,t,n,r){const o=n[r];if(o&&Xr(o,e))return o;const i=t();return i.memo=e.slice(),i.cacheIndex=r,n[r]=i}function Xr(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&qn&&qn.push(e),!0}const Zr="3.4.34",Qr=o.NOOP,eo=d,to=P,no=function e(t,n){var r,o;if(P=t,P)P.enabled=!0,R.forEach(({event:e,args:t})=>P.emit(e,...t)),R=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null==(o=null==(r=window.navigator)?void 0:r.userAgent)?void 0:o.includes("jsdom"))){(n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(t=>{e(t,n)}),setTimeout(()=>{P||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,M=!0,R=[])},3e3)}else M=!0,R=[]},ro={createComponentInstance:wr,setupComponent:Mr,renderComponentRoot:Cn,setCurrentRenderingInstance:D,isVNode:or,normalizeVNode:gr,getComponentPublicInstance:Ur},oo=null,io=null,so=null}]); \ No newline at end of file +/*! #__NO_SIDE_EFFECTS__ */;function se(e){Object(o.isFunction)(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:s=200,timeout:c,suspensible:a=!0,onError:l}=e;let u,d=null,p=0;const f=()=>{let e;return d||(e=d=t().catch(e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise((t,n)=>{l(e,()=>t((p++,d=null,f())),()=>n(e),p+1)});throw e}).then(t=>e!==d&&d?d:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),u=t,t)))};return oe({name:"AsyncComponentWrapper",__asyncLoader:f,get __asyncResolved(){return u},setup(){const e=Nr;if(u)return()=>ce(u,e);const t=t=>{d=null,h(t,e,13,!i)};if(a&&e.suspense||Rr)return f().then(t=>()=>ce(t,e)).catch(e=>(t(e),()=>i?ur(i,{error:e}):null));const o=Object(r.ref)(!1),l=Object(r.ref)(),p=Object(r.ref)(!!s);return s&&setTimeout(()=>{p.value=!1},s),null!=c&&setTimeout(()=>{if(!o.value&&!l.value){const e=new Error(`Async component timed out after ${c}ms.`);t(e),l.value=e}},c),f().then(()=>{o.value=!0,e.parent&&ae(e.parent.vnode)&&(e.parent.effect.dirty=!0,N(e.parent.update))}).catch(e=>{t(e),l.value=e}),()=>o.value&&u?ce(u,e):l.value&&i?ur(i,{error:l.value}):n&&!p.value?ur(n):void 0}})}function ce(e,t){const{ref:n,props:r,children:o,ce:i}=t.vnode,s=ur(e,r,o);return s.ref=n,s.ce=i,delete t.vnode.ce,s}const ae=e=>e.type.__isKeepAlive,le={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=xr(),r=n.ctx;if(!r.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const i=new Map,s=new Set;let c=null;const a=n.suspense,{renderer:{p:l,m:u,um:d,o:{createElement:p}}}=r,f=p("div");function h(e){me(e),d(e,n,a,!0)}function m(e){i.forEach((t,n)=>{const r=Yr(t.type);!r||e&&e(r)||v(n)})}function v(e){const t=i.get(e);c&&ir(t,c)?c&&me(c):h(t),i.delete(e),s.delete(e)}r.activate=(e,t,n,r,i)=>{const s=e.component;u(e,t,n,0,a),l(s.vnode,e,t,n,s,a,r,e.slotScopeIds,i),on(()=>{s.isDeactivated=!1,s.a&&Object(o.invokeArrayFns)(s.a);const t=e.props&&e.props.onVnodeMounted;t&&_r(t,s.parent,e)},a)},r.deactivate=e=>{const t=e.component;fn(t.m),fn(t.a),u(e,f,null,1,a),on(()=>{t.da&&Object(o.invokeArrayFns)(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&_r(n,t.parent,e),t.isDeactivated=!0},a)},On(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>ue(e,t)),t&&m(e=>!ue(t,e))},{flush:"post",deep:!0});let g=null;const y=()=>{null!=g&&(Ln(n.subTree.type)?on(()=>{i.set(g,ve(n.subTree))},n.subTree.suspense):i.set(g,ve(n.subTree)))};return Oe(y),Ee(y),Se(()=>{i.forEach(e=>{const{subTree:t,suspense:r}=n,o=ve(t);if(e.type!==o.type||e.key!==o.key)h(e);else{me(o);const e=o.component.da;e&&on(e,r)}})}),()=>{if(g=null,!t.default)return null;const n=t.default(),r=n[0];if(n.length>1)return c=null,n;if(!(or(r)&&(4&r.shapeFlag||128&r.shapeFlag)))return c=null,r;let o=ve(r);const a=o.type,l=Yr(ie(o)?o.type.__asyncResolved||{}:a),{include:u,exclude:d,max:p}=e;if(u&&(!l||!ue(u,l))||d&&l&&ue(d,l))return c=o,r;const f=null==o.key?a:o.key,h=i.get(f);return o.el&&(o=fr(o),128&r.shapeFlag&&(r.ssContent=o)),g=f,h?(o.el=h.el,o.component=h.component,o.transition&&ne(o,o.transition),o.shapeFlag|=512,s.delete(f),s.add(f)):(s.add(f),p&&s.size>parseInt(p,10)&&v(s.values().next().value)),o.shapeFlag|=256,c=o,Ln(r.type)?r:o}}};function ue(e,t){return Object(o.isArray)(e)?e.some(e=>ue(e,t)):Object(o.isString)(e)?e.split(",").includes(t):!!Object(o.isRegExp)(e)&&e.test(t)}function de(e,t){fe(e,"a",t)}function pe(e,t){fe(e,"da",t)}function fe(e,t,n=Nr){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(ge(t,r,n),n){let e=n.parent;for(;e&&e.parent;)ae(e.parent.vnode)&&he(r,t,n,e),e=e.parent}}function he(e,t,n,r){const i=ge(t,e,r,!0);we(()=>{Object(o.remove)(r[t],i)},n)}function me(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ve(e){return 128&e.shapeFlag?e.ssContent:e}function ge(e,t,n=Nr,o=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{Object(r.pauseTracking)();const i=Ar(n),s=f(t,n,e,o);return i(),Object(r.resetTracking)(),s});return o?i.unshift(s):i.push(s),s}}const ye=e=>(t,n=Nr)=>{Rr&&"sp"!==e||ge(e,(...e)=>t(...e),n)},be=ye("bm"),Oe=ye("m"),_e=ye("bu"),Ee=ye("u"),Se=ye("bum"),we=ye("um"),Ne=ye("sp"),xe=ye("rtg"),Te=ye("rtc");function je(e,t=Nr){ge("ec",e,t)}function Ae(e,t){return Pe("components",e,!0,t)||e}const Ce=Symbol.for("v-ndc");function ke(e){return Object(o.isString)(e)?Pe("components",e,!1)||e:e||Ce}function Ie(e){return Pe("directives",e)}function Pe(e,t,n=!0,r=!1){const i=L||Nr;if(i){const n=i.type;if("components"===e){const e=Yr(n,!1);if(e&&(e===t||e===Object(o.camelize)(t)||e===Object(o.capitalize)(Object(o.camelize)(t))))return n}const s=Re(i[e]||n[e],t)||Re(i.appContext[e],t);return!s&&r?n:s}}function Re(e,t){return e&&(e[t]||e[Object(o.camelize)(t)]||e[Object(o.capitalize)(Object(o.camelize)(t))])}function Me(e,t,n,r){let i;const s=n&&n[r];if(Object(o.isArray)(e)||Object(o.isString)(e)){i=new Array(e.length);for(let n=0,r=e.length;nt(e,n,void 0,s&&s[n]));else{const n=Object.keys(e);i=new Array(n.length);for(let r=0,o=n.length;r{const t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function Fe(e,t,n={},r,o){if(L.isCE||L.parent&&ie(L.parent)&&L.parent.isCE)return"default"!==t&&(n.name=t),ur("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),Jn();const s=i&&function e(t){return t.some(t=>!or(t)||t.type!==zn&&!(t.type===Yn&&!e(t.children)))?t:null}(i(n)),c=rr(Yn,{key:(n.key||s&&s.key||"_"+t)+(!s&&r?"_fb":"")},s||(r?r():[]),s&&1===e._?64:-2);return!o&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),i&&i._c&&(i._d=!0),c}function De(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?"on:"+r:Object(o.toHandlerKey)(r)]=e[r];return n}const Ve=e=>e?kr(e)?Ur(e):Ve(e.parent):null,Be=Object(o.extend)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ve(e.parent),$root:e=>Ve(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?lt(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,N(e.update)}),$nextTick:e=>e.n||(e.n=w.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?En.bind(e):o.NOOP}),$e=(e,t)=>e!==o.EMPTY_OBJ&&!e.__isScriptSetup&&Object(o.hasOwn)(e,t),Ue={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:i,data:s,props:c,accessCache:a,type:l,appContext:u}=e;let d;if("$"!==t[0]){const r=a[t];if(void 0!==r)switch(r){case 1:return i[t];case 2:return s[t];case 4:return n[t];case 3:return c[t]}else{if($e(i,t))return a[t]=1,i[t];if(s!==o.EMPTY_OBJ&&Object(o.hasOwn)(s,t))return a[t]=2,s[t];if((d=e.propsOptions[0])&&Object(o.hasOwn)(d,t))return a[t]=3,c[t];if(n!==o.EMPTY_OBJ&&Object(o.hasOwn)(n,t))return a[t]=4,n[t];__VUE_OPTIONS_API__&&!it||(a[t]=0)}}const p=Be[t];let f,h;return p?("$attrs"===t&&Object(r.track)(e.attrs,"get",""),p(e)):(f=l.__cssModules)&&(f=f[t])?f:n!==o.EMPTY_OBJ&&Object(o.hasOwn)(n,t)?(a[t]=4,n[t]):(h=u.config.globalProperties,Object(o.hasOwn)(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return $e(i,t)?(i[t]=n,!0):r!==o.EMPTY_OBJ&&Object(o.hasOwn)(r,t)?(r[t]=n,!0):!Object(o.hasOwn)(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(s[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},c){let a;return!!n[c]||e!==o.EMPTY_OBJ&&Object(o.hasOwn)(e,c)||$e(t,c)||(a=s[0])&&Object(o.hasOwn)(a,c)||Object(o.hasOwn)(r,c)||Object(o.hasOwn)(Be,c)||Object(o.hasOwn)(i.config.globalProperties,c)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:Object(o.hasOwn)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};const He=Object(o.extend)({},Ue,{get(e,t){if(t!==Symbol.unscopables)return Ue.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!Object(o.isGloballyAllowed)(t)});function Ye(){return null}function We(){return null}function ze(e){0}function Ke(e){0}function Ge(){return null}function qe(){0}function Je(e,t){return null}function Xe(){return Qe().slots}function Ze(){return Qe().attrs}function Qe(){const e=xr();return e.setupContext||(e.setupContext=$r(e))}function et(e){return Object(o.isArray)(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function tt(e,t){const n=et(e);for(const e in t){if(e.startsWith("__skip"))continue;let r=n[e];r?Object(o.isArray)(r)||Object(o.isFunction)(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:null===r&&(r=n[e]={default:t[e]}),r&&t["__skip_"+e]&&(r.skipFactory=!0)}return n}function nt(e,t){return e&&t?Object(o.isArray)(e)&&Object(o.isArray)(t)?e.concat(t):Object(o.extend)({},et(e),et(t)):e||t}function rt(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function ot(e){const t=xr();let n=e();return Cr(),Object(o.isPromise)(n)&&(n=n.catch(e=>{throw Ar(t),e})),[n,()=>Ar(t)]}let it=!0;function st(e){const t=lt(e),n=e.proxy,i=e.ctx;it=!1,t.beforeCreate&&ct(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:a,watch:l,provide:u,inject:d,created:p,beforeMount:f,mounted:h,beforeUpdate:m,updated:v,activated:g,deactivated:y,beforeDestroy:b,beforeUnmount:O,destroyed:_,unmounted:E,render:S,renderTracked:w,renderTriggered:N,errorCaptured:x,serverPrefetch:T,expose:j,inheritAttrs:A,components:C,directives:k,filters:I}=t;if(d&&function(e,t,n=o.NOOP){Object(o.isArray)(e)&&(e=ft(e));for(const n in e){const i=e[n];let s;s=Object(o.isObject)(i)?"default"in i?Et(i.from||n,i.default,!0):Et(i.from||n):Et(i),Object(r.isRef)(s)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[n]=s}}(d,i,null),a)for(const e in a){const t=a[e];Object(o.isFunction)(t)&&(i[e]=t.bind(n))}if(s){0;const t=s.call(n,n);0,Object(o.isObject)(t)&&(e.data=Object(r.reactive)(t))}if(it=!0,c)for(const e in c){const t=c[e],r=Object(o.isFunction)(t)?t.bind(n,n):Object(o.isFunction)(t.get)?t.get.bind(n,n):o.NOOP;0;const s=!Object(o.isFunction)(t)&&Object(o.isFunction)(t.set)?t.set.bind(n):o.NOOP,a=Kr({get:r,set:s});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(l)for(const e in l)at(l[e],i,n,e);if(u){const e=Object(o.isFunction)(u)?u.call(n):u;Reflect.ownKeys(e).forEach(t=>{_t(t,e[t])})}function P(e,t){Object(o.isArray)(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(p&&ct(p,e,"c"),P(be,f),P(Oe,h),P(_e,m),P(Ee,v),P(de,g),P(pe,y),P(je,x),P(Te,w),P(xe,N),P(Se,O),P(we,E),P(Ne,T),Object(o.isArray)(j))if(j.length){const t=e.exposed||(e.exposed={});j.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})})}else e.exposed||(e.exposed={});S&&e.render===o.NOOP&&(e.render=S),null!=A&&(e.inheritAttrs=A),C&&(e.components=C),k&&(e.directives=k)}function ct(e,t,n){f(Object(o.isArray)(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function at(e,t,n,r){const i=r.includes(".")?Sn(n,r):()=>n[r];if(Object(o.isString)(e)){const n=t[e];Object(o.isFunction)(n)&&On(i,n)}else if(Object(o.isFunction)(e))On(i,e.bind(n));else if(Object(o.isObject)(e))if(Object(o.isArray)(e))e.forEach(e=>at(e,t,n,r));else{const r=Object(o.isFunction)(e.handler)?e.handler.bind(n):t[e.handler];Object(o.isFunction)(r)&&On(i,r,e)}else 0}function lt(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:c}}=e.appContext,a=s.get(t);let l;return a?l=a:i.length||n||r?(l={},i.length&&i.forEach(e=>ut(l,e,c,!0)),ut(l,t,c)):l=t,Object(o.isObject)(t)&&s.set(t,l),l}function ut(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&ut(e,i,n,!0),o&&o.forEach(t=>ut(e,t,n,!0));for(const o in t)if(r&&"expose"===o);else{const r=dt[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const dt={data:pt,props:vt,emits:vt,methods:mt,computed:mt,beforeCreate:ht,created:ht,beforeMount:ht,mounted:ht,beforeUpdate:ht,updated:ht,beforeDestroy:ht,beforeUnmount:ht,destroyed:ht,unmounted:ht,activated:ht,deactivated:ht,errorCaptured:ht,serverPrefetch:ht,components:mt,directives:mt,watch:function(e,t){if(!e)return t;if(!t)return e;const n=Object(o.extend)(Object.create(null),e);for(const r in t)n[r]=ht(e[r],t[r]);return n},provide:pt,inject:function(e,t){return mt(ft(e),ft(t))}};function pt(e,t){return t?e?function(){return Object(o.extend)(Object(o.isFunction)(e)?e.call(this,this):e,Object(o.isFunction)(t)?t.call(this,this):t)}:t:e}function ft(e){if(Object(o.isArray)(e)){const t={};for(let n=0;n(s.has(e)||(e&&Object(o.isFunction)(e.install)?(s.add(e),e.install(a,...t)):Object(o.isFunction)(e)&&(s.add(e),e(a,...t))),a),mixin:e=>(__VUE_OPTIONS_API__&&(i.mixins.includes(e)||i.mixins.push(e)),a),component:(e,t)=>t?(i.components[e]=t,a):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,a):i.directives[e],mount(o,s,l){if(!c){0;const u=ur(n,r);return u.appContext=i,!0===l?l="svg":!1===l&&(l=void 0),s&&t?t(u,o):e(u,o,l),c=!0,a._container=o,o.__vue_app__=a,Ur(u.component)}},unmount(){c&&(e(null,a._container),delete a._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,a),runWithContext(e){const t=Ot;Ot=a;try{return e()}finally{Ot=t}}};return a}}let Ot=null;function _t(e,t){if(Nr){let n=Nr.provides;const r=Nr.parent&&Nr.parent.provides;r===n&&(n=Nr.provides=Object.create(r)),n[e]=t}else 0}function Et(e,t,n=!1){const r=Nr||L;if(r||Ot){const i=r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Ot._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&Object(o.isFunction)(t)?t.call(r&&r.proxy):t}else 0}function St(){return!!(Nr||L||Ot)}const wt={},Nt=()=>Object.create(wt),xt=e=>Object.getPrototypeOf(e)===wt;function Tt(e,t,n,i){const[s,c]=e.propsOptions;let a,l=!1;if(t)for(let r in t){if(Object(o.isReservedProp)(r))continue;const u=t[r];let d;s&&Object(o.hasOwn)(s,d=Object(o.camelize)(r))?c&&c.includes(d)?(a||(a={}))[d]=u:n[d]=u:An(e.emitsOptions,r)||r in i&&u===i[r]||(i[r]=u,l=!0)}if(c){const t=Object(r.toRaw)(n),i=a||o.EMPTY_OBJ;for(let r=0;r{l=!0;const[n,r]=Ct(e,t,!0);Object(o.extend)(c,n),r&&a.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!s&&!l)return Object(o.isObject)(e)&&r.set(e,o.EMPTY_ARR),o.EMPTY_ARR;if(Object(o.isArray)(s))for(let e=0;e-1,r[1]=n<0||e-1||Object(o.hasOwn)(r,"default"))&&a.push(t)}}}}const u=[c,a];return Object(o.isObject)(e)&&r.set(e,u),u}function kt(e){return"$"!==e[0]&&!Object(o.isReservedProp)(e)}function It(e){if(null===e)return"null";if("function"==typeof e)return e.name||"";if("object"==typeof e){return e.constructor&&e.constructor.name||""}return""}function Pt(e,t){return It(e)===It(t)}function Rt(e,t){return Object(o.isArray)(t)?t.findIndex(t=>Pt(t,e)):Object(o.isFunction)(t)&&Pt(t,e)?0:-1}const Mt=e=>"_"===e[0]||"$stable"===e,Lt=e=>Object(o.isArray)(e)?e.map(gr):[gr(e)],Ft=(e,t,n)=>{if(t._n)return t;const r=U((...e)=>Lt(t(...e)),n);return r._c=!1,r},Dt=(e,t,n)=>{const r=e._ctx;for(const n in e){if(Mt(n))continue;const i=e[n];if(Object(o.isFunction)(i))t[n]=Ft(0,i,r);else if(null!=i){0;const e=Lt(i);t[n]=()=>e}}},Vt=(e,t)=>{const n=Lt(t);e.slots.default=()=>n},Bt=(e,t,n)=>{for(const r in t)(n||"_"!==r)&&(e[r]=t[r])};function $t(e,t,n,i,s=!1){if(Object(o.isArray)(e))return void e.forEach((e,r)=>$t(e,t&&(Object(o.isArray)(t)?t[r]:t),n,i,s));if(ie(i)&&!s)return;const c=4&i.shapeFlag?Ur(i.component):i.el,a=s?null:c,{i:l,r:u}=e;const d=t&&t.r,f=l.refs===o.EMPTY_OBJ?l.refs={}:l.refs,h=l.setupState;if(null!=d&&d!==u&&(Object(o.isString)(d)?(f[d]=null,Object(o.hasOwn)(h,d)&&(h[d]=null)):Object(r.isRef)(d)&&(d.value=null)),Object(o.isFunction)(u))p(u,l,12,[a,f]);else{const t=Object(o.isString)(u),i=Object(r.isRef)(u);if(t||i){const r=()=>{if(e.f){const n=t?Object(o.hasOwn)(h,u)?h[u]:f[u]:u.value;s?Object(o.isArray)(n)&&Object(o.remove)(n,c):Object(o.isArray)(n)?n.includes(c)||n.push(c):t?(f[u]=[c],Object(o.hasOwn)(h,u)&&(h[u]=f[u])):(u.value=[c],e.k&&(f[e.k]=u.value))}else t?(f[u]=a,Object(o.hasOwn)(h,u)&&(h[u]=a)):i&&(u.value=a,e.k&&(f[e.k]=a))};a?(r.id=-1,on(r,n)):r()}else 0}}const Ut=Symbol("_vte"),Ht=e=>e&&(e.disabled||""===e.disabled),Yt=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Wt=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,zt=(e,t)=>{const n=e&&e.to;if(Object(o.isString)(n)){if(t){return t(n)}return null}return n};function Kt(e,t,n,{o:{insert:r},m:o},i=2){0===i&&r(e.targetAnchor,t,n);const{el:s,anchor:c,shapeFlag:a,children:l,props:u}=e,d=2===i;if(d&&r(s,t,n),(!d||Ht(u))&&16&a)for(let e=0;e{16&y&&u(b,e,t,o,i,s,c,a)};g?O(n,l):d&&O(d,v)}else{t.el=e.el,t.targetStart=e.targetStart;const r=t.anchor=e.anchor,u=t.target=e.target,f=t.targetAnchor=e.targetAnchor,m=Ht(e.props),v=m?n:u,y=m?r:f;if("svg"===s||Yt(u)?s="svg":("mathml"===s||Wt(u))&&(s="mathml"),O?(p(e.dynamicChildren,O,v,o,i,s,c),pn(e,t,!0)):a||d(e,t,v,y,o,i,s,c,!1),g)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Kt(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=zt(t.props,h);e&&Kt(t,e,null,l,0)}else m&&Kt(t,u,f,l,1)}qt(t)},remove(e,t,n,{um:r,o:{remove:o}},i){const{shapeFlag:s,children:c,anchor:a,targetStart:l,targetAnchor:u,target:d,props:p}=e;if(d&&(o(l),o(u)),i&&o(a),16&s){const e=i||!Ht(p);for(let o=0;o{Jt||(console.error("Hydration completed but contains mismatches."),Jt=!0)},Zt=e=>(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0,Qt=e=>8===e.nodeType;function en(e){const{mt:t,p:n,o:{patchProp:i,createText:s,nextSibling:a,parentNode:l,remove:u,insert:d,createComment:p}}=e,f=(n,r,o,i,u,p=!1)=>{p=p||!!r.dynamicChildren;const _=Qt(n)&&"["===n.data,E=()=>g(n,r,o,i,u,_),{type:S,ref:w,shapeFlag:N,patchFlag:x}=r;let T=n.nodeType;r.el=n,-2===x&&(p=!1,r.dynamicChildren=null);let j=null;switch(S){case Wn:3!==T?""===r.children?(d(r.el=s(""),l(n),n),j=n):j=E():(n.data!==r.children&&(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&c("Hydration text mismatch in",n.parentNode,`\n - rendered on server: ${JSON.stringify(n.data)}\n - expected on client: ${JSON.stringify(r.children)}`),Xt(),n.data=r.children),j=a(n));break;case zn:O(n)?(j=a(n),b(r.el=n.content.firstChild,n,o)):j=8!==T||_?E():a(n);break;case Kn:if(_&&(T=(n=a(n)).nodeType),1===T||3===T){j=n;const e=!r.children.length;for(let t=0;t{l=l||!!t.dynamicChildren;const{type:d,props:p,patchFlag:f,shapeFlag:h,dirs:v,transition:g}=t,y="input"===d||"option"===d;if(y||-1!==f){v&&Y(t,null,n,"created");let d,_=!1;if(O(e)){_=dn(s,g)&&n&&n.vnode.props&&n.vnode.props.appear;const r=e.content.firstChild;_&&g.beforeEnter(r),b(r,e,n),t.el=e=r}if(16&h&&(!p||!p.innerHTML&&!p.textContent)){let r=m(e.firstChild,t,e,n,s,a,l),o=!1;for(;r;){__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!o&&(c("Hydration children mismatch on",e,"\nServer rendered element contains more child nodes than client vdom."),o=!0),Xt();const t=r;r=r.nextSibling,u(t)}}else 8&h&&e.textContent!==t.children&&(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&c("Hydration text content mismatch on",e,`\n - rendered on server: ${e.textContent}\n - expected on client: ${t.children}`),Xt(),e.textContent=t.children);if(p)if(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__||y||!l||48&f)for(const r in p)!__VUE_PROD_HYDRATION_MISMATCH_DETAILS__||v&&v.some(e=>e.dir.created)||!tn(e,r,p[r],t,n)||Xt(),(y&&(r.endsWith("value")||"indeterminate"===r)||Object(o.isOn)(r)&&!Object(o.isReservedProp)(r)||"."===r[0])&&i(e,r,null,p[r],void 0,n);else if(p.onClick)i(e,"onClick",null,p.onClick,void 0,n);else if(4&f&&Object(r.isReactive)(p.style))for(const e in p.style)p.style[e];(d=p&&p.onVnodeBeforeMount)&&_r(d,n,t),v&&Y(t,null,n,"beforeMount"),((d=p&&p.onVnodeMounted)||v||_)&&Un(()=>{d&&_r(d,n,t),_&&g.enter(e),v&&Y(t,null,n,"mounted")},s)}return e.nextSibling},m=(e,t,r,o,i,l,u)=>{u=u||!!t.dynamicChildren;const p=t.children,h=p.length;let m=!1;for(let t=0;t{const{slotScopeIds:s}=t;s&&(o=o?o.concat(s):s);const c=l(e),u=m(a(e),t,c,n,r,o,i);return u&&Qt(u)&&"]"===u.data?a(t.anchor=u):(Xt(),d(t.anchor=p("]"),c,u),u)},g=(e,t,r,o,i,s)=>{if(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&c("Hydration node mismatch:\n- rendered on server:",e,3===e.nodeType?"(text)":Qt(e)&&"["===e.data?"(start of fragment)":"","\n- expected on client:",t.type),Xt(),t.el=null,s){const t=y(e);for(;;){const n=a(e);if(!n||n===t)break;u(n)}}const d=a(e),p=l(e);return u(e),n(null,t,p,d,r,o,Zt(p),i),d},y=(e,t="[",n="]")=>{let r=0;for(;e;)if((e=a(e))&&Qt(e)&&(e.data===t&&r++,e.data===n)){if(0===r)return a(e);r--}return e},b=(e,t,n)=>{const r=t.parentNode;r&&r.replaceChild(e,t);let o=n;for(;o;)o.vnode.el===t&&(o.vnode.el=o.subTree.el=e),o=o.parent},O=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[(e,t)=>{if(!t.hasChildNodes())return __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&c("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),n(null,e,t),A(),void(t._vnode=e);f(t.firstChild,e,null,null,null),A(),t._vnode=e},f]}function tn(e,t,n,r,i){let s,a,l,u;if("class"===t)l=e.getAttribute("class"),u=Object(o.normalizeClass)(n),function(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}(nn(l||""),nn(u))||(s=a="class");else if("style"===t){l=e.getAttribute("style")||"",u=Object(o.isString)(n)?n:Object(o.stringifyStyle)(Object(o.normalizeStyle)(n));const t=rn(l),c=rn(u);if(r.dirs)for(const{dir:e,value:t}of r.dirs)"show"!==e.name||t||c.set("display","none");i&&function e(t,n,r){const o=t.subTree;if(t.getCssVars&&(n===o||o&&o.type===Yn&&o.children.includes(n))){const e=t.getCssVars();for(const t in e)r.set("--"+t,String(e[t]))}n===o&&t.parent&&e(t.parent,t.vnode,r)}(i,r,c),function(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e)if(r!==t.get(n))return!1;return!0}(t,c)||(s=a="style")}else(e instanceof SVGElement&&Object(o.isKnownSvgAttr)(t)||e instanceof HTMLElement&&(Object(o.isBooleanAttr)(t)||Object(o.isKnownHtmlAttr)(t)))&&(Object(o.isBooleanAttr)(t)?(l=e.hasAttribute(t),u=Object(o.includeBooleanAttr)(n)):null==n?(l=e.hasAttribute(t),u=!1):(l=e.hasAttribute(t)?e.getAttribute(t):"value"===t&&"TEXTAREA"===e.tagName&&e.value,u=!!Object(o.isRenderableAttrValue)(n)&&String(n)),l!==u&&(s="attribute",a=t));if(s){const t=e=>!1===e?"(not rendered)":`${a}="${e}"`;return c(`Hydration ${s} mismatch on`,e,`\n - rendered on server: ${t(l)}\n - expected on client: ${t(u)}\n Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.\n You should fix the source of the mismatch.`),!0}return!1}function nn(e){return new Set(e.trim().split(/\s+/))}function rn(e){const t=new Map;for(const n of e.split(";")){let[e,r]=n.split(":");e=e.trim(),r=r&&r.trim(),e&&r&&t.set(e,r)}return t}const on=Un;function sn(e){return an(e)}function cn(e){return an(e,en)}function an(e,t){"boolean"!=typeof __VUE_OPTIONS_API__&&(Object(o.getGlobalThis)().__VUE_OPTIONS_API__=!0),"boolean"!=typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&(Object(o.getGlobalThis)().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1);Object(o.getGlobalThis)().__VUE__=!0;const{insert:n,remove:i,patchProp:s,createElement:c,createText:a,createComment:l,setText:u,setElementText:d,parentNode:p,nextSibling:f,setScopeId:h=o.NOOP,insertStaticContent:m}=e,v=(e,t,n,r=null,o=null,i=null,s,c=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!ir(e,t)&&(r=q(e),H(e,o,i,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:l,ref:u,shapeFlag:d}=t;switch(l){case Wn:b(e,t,n,r);break;case zn:O(e,t,n,r);break;case Kn:null==e&&_(t,n,r,s);break;case Yn:P(e,t,n,r,o,i,s,c,a);break;default:1&d?S(e,t,n,r,o,i,s,c,a):6&d?R(e,t,n,r,o,i,s,c,a):(64&d||128&d)&&l.process(e,t,n,r,o,i,s,c,a,Z)}null!=u&&o&&$t(u,e&&e.ref,i,t||e,!t)},b=(e,t,r,o)=>{if(null==e)n(t.el=a(t.children),r,o);else{const n=t.el=e.el;t.children!==e.children&&u(n,t.children)}},O=(e,t,r,o)=>{null==e?n(t.el=l(t.children||""),r,o):t.el=e.el},_=(e,t,n,r)=>{[e.el,e.anchor]=m(e.children,t,n,r,e.el,e.anchor)},E=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=f(e),i(e),e=n;i(t)},S=(e,t,n,r,o,i,s,c,a)=>{"svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e?w(t,n,r,o,i,s,c,a):C(e,t,o,i,s,c,a)},w=(e,t,r,i,a,l,u,p)=>{let f,h;const{props:m,shapeFlag:v,transition:g,dirs:y}=e;if(f=e.el=c(e.type,l,m&&m.is,m),8&v?d(f,e.children):16&v&&T(e.children,f,null,i,a,ln(e,l),u,p),y&&Y(e,null,i,"created"),x(f,e,e.scopeId,u,i),m){for(const e in m)"value"===e||Object(o.isReservedProp)(e)||s(f,e,null,m[e],l,i);"value"in m&&s(f,"value",null,m.value,l),(h=m.onVnodeBeforeMount)&&_r(h,i,e)}y&&Y(e,null,i,"beforeMount");const b=dn(a,g);b&&g.beforeEnter(f),n(f,t,r),((h=m&&m.onVnodeMounted)||b||y)&&on(()=>{h&&_r(h,i,e),b&&g.enter(f),y&&Y(e,null,i,"mounted")},a)},x=(e,t,n,r,o)=>{if(n&&h(e,n),r)for(let t=0;t{for(let l=a;l{const l=t.el=e.el;let{patchFlag:u,dynamicChildren:p,dirs:f}=t;u|=16&e.patchFlag;const h=e.props||o.EMPTY_OBJ,m=t.props||o.EMPTY_OBJ;let v;if(n&&un(n,!1),(v=m.onVnodeBeforeUpdate)&&_r(v,n,t,e),f&&Y(t,e,n,"beforeUpdate"),n&&un(n,!0),(h.innerHTML&&null==m.innerHTML||h.textContent&&null==m.textContent)&&d(l,""),p?k(e.dynamicChildren,p,l,n,r,ln(t,i),c):a||V(e,t,l,null,n,r,ln(t,i),c,!1),u>0){if(16&u)I(l,h,m,n,i);else if(2&u&&h.class!==m.class&&s(l,"class",null,m.class,i),4&u&&s(l,"style",h.style,m.style,i),8&u){const e=t.dynamicProps;for(let t=0;t{v&&_r(v,n,t,e),f&&Y(t,e,n,"updated")},r)},k=(e,t,n,r,o,i,s)=>{for(let c=0;c{if(t!==n){if(t!==o.EMPTY_OBJ)for(const c in t)Object(o.isReservedProp)(c)||c in n||s(e,c,t[c],null,i,r);for(const c in n){if(Object(o.isReservedProp)(c))continue;const a=n[c],l=t[c];a!==l&&"value"!==c&&s(e,c,l,a,i,r)}"value"in n&&s(e,"value",t.value,n.value,i)}},P=(e,t,r,o,i,s,c,l,u)=>{const d=t.el=e?e.el:a(""),p=t.anchor=e?e.anchor:a("");let{patchFlag:f,dynamicChildren:h,slotScopeIds:m}=t;m&&(l=l?l.concat(m):m),null==e?(n(d,r,o),n(p,r,o),T(t.children||[],r,p,i,s,c,l,u)):f>0&&64&f&&h&&e.dynamicChildren?(k(e.dynamicChildren,h,r,i,s,c,l),(null!=t.key||i&&t===i.subTree)&&pn(e,t,!0)):V(e,t,r,p,i,s,c,l,u)},R=(e,t,n,r,o,i,s,c,a)=>{t.slotScopeIds=c,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,s,a):M(t,n,r,o,i,s,a):L(e,t,a)},M=(e,t,n,r,o,i,s)=>{const c=e.component=wr(e,r,o);if(ae(e)&&(c.ctx.renderer=Z),Mr(c,!1,s),c.asyncDep){if(o&&o.registerDep(c,F,s),!e.el){const e=c.subTree=ur(zn);O(null,e,t,n)}}else F(c,e,t,n,o,i,s)},L=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:o,component:i}=e,{props:s,children:c,patchFlag:a}=t,l=i.emitsOptions;0;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!o&&!c||c&&c.$stable)||r!==s&&(r?!s||Rn(r,s,l):!!s);if(1024&a)return!0;if(16&a)return r?Rn(r,s,l):!!s;if(8&a){const e=t.dynamicProps;for(let t=0;ty&&g.splice(t,1)}(r.update),r.effect.dirty=!0,r.update()}else t.el=e.el,r.vnode=t},F=(e,t,n,i,s,c,a)=>{const l=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:i,vnode:u}=e;{const n=function e(t){const n=t.subTree.component;if(n)return n.asyncDep&&!n.asyncResolved?n:e(n)}(e);if(n)return t&&(t.el=u.el,D(e,t,a)),void n.asyncDep.then(()=>{e.isUnmounted||l()})}let d,f=t;0,un(e,!1),t?(t.el=u.el,D(e,t,a)):t=u,n&&Object(o.invokeArrayFns)(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&_r(d,i,t,u),un(e,!0);const h=Cn(e);0;const m=e.subTree;e.subTree=h,v(m,h,p(m.el),q(m),e,s,c),t.el=h.el,null===f&&Mn(e,h.el),r&&on(r,s),(d=t.props&&t.props.onVnodeUpdated)&&on(()=>_r(d,i,t,u),s)}else{let r;const{el:a,props:l}=t,{bm:u,m:d,parent:p}=e,f=ie(t);if(un(e,!1),u&&Object(o.invokeArrayFns)(u),!f&&(r=l&&l.onVnodeBeforeMount)&&_r(r,p,t),un(e,!0),a&&ee){const n=()=>{e.subTree=Cn(e),ee(a,e.subTree,e,s,null)};f?t.type.__asyncLoader().then(()=>!e.isUnmounted&&n()):n()}else{0;const r=e.subTree=Cn(e);0,v(null,r,n,i,e,s,c),t.el=r.el}if(d&&on(d,s),!f&&(r=l&&l.onVnodeMounted)){const e=t;on(()=>_r(r,p,e),s)}(256&t.shapeFlag||p&&ie(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&on(e.a,s),e.isMounted=!0,t=n=i=null}},u=e.effect=new r.ReactiveEffect(l,o.NOOP,()=>N(d),e.scope),d=e.update=()=>{u.dirty&&u.run()};d.i=e,d.id=e.uid,un(e,!0),d()},D=(e,t,n)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,i){const{props:s,attrs:c,vnode:{patchFlag:a}}=e,l=Object(r.toRaw)(s),[u]=e.propsOptions;let d=!1;if(!(i||a>0)||16&a){let r;Tt(e,t,s,c)&&(d=!0);for(const i in l)t&&(Object(o.hasOwn)(t,i)||(r=Object(o.hyphenate)(i))!==i&&Object(o.hasOwn)(t,r))||(u?!n||void 0===n[i]&&void 0===n[r]||(s[i]=jt(u,l,i,void 0,e,!0)):delete s[i]);if(c!==l)for(const e in c)t&&Object(o.hasOwn)(t,e)||(delete c[e],d=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let r=0;r{const{vnode:r,slots:i}=e;let s=!0,c=o.EMPTY_OBJ;if(32&r.shapeFlag){const e=t._;e?n&&1===e?s=!1:Bt(i,t,n):(s=!t.$stable,Dt(t,i)),c=t}else t&&(Vt(e,t),c={default:1});if(s)for(const e in i)Mt(e)||null!=c[e]||delete i[e]})(e,t.children,n),Object(r.pauseTracking)(),j(e),Object(r.resetTracking)()},V=(e,t,n,r,o,i,s,c,a=!1)=>{const l=e&&e.children,u=e?e.shapeFlag:0,p=t.children,{patchFlag:f,shapeFlag:h}=t;if(f>0){if(128&f)return void $(l,p,n,r,o,i,s,c,a);if(256&f)return void B(l,p,n,r,o,i,s,c,a)}8&h?(16&u&&G(l,o,i),p!==l&&d(n,p)):16&u?16&h?$(l,p,n,r,o,i,s,c,a):G(l,o,i,!0):(8&u&&d(n,""),16&h&&T(p,n,r,o,i,s,c,a))},B=(e,t,n,r,i,s,c,a,l)=>{e=e||o.EMPTY_ARR,t=t||o.EMPTY_ARR;const u=e.length,d=t.length,p=Math.min(u,d);let f;for(f=0;fd?G(e,i,s,!0,!1,p):T(t,n,r,i,s,c,a,l,p)},$=(e,t,n,r,i,s,c,a,l)=>{let u=0;const d=t.length;let p=e.length-1,f=d-1;for(;u<=p&&u<=f;){const r=e[u],o=t[u]=l?yr(t[u]):gr(t[u]);if(!ir(r,o))break;v(r,o,n,null,i,s,c,a,l),u++}for(;u<=p&&u<=f;){const r=e[p],o=t[f]=l?yr(t[f]):gr(t[f]);if(!ir(r,o))break;v(r,o,n,null,i,s,c,a,l),p--,f--}if(u>p){if(u<=f){const e=f+1,o=ef)for(;u<=p;)H(e[u],i,s,!0),u++;else{const h=u,m=u,g=new Map;for(u=m;u<=f;u++){const e=t[u]=l?yr(t[u]):gr(t[u]);null!=e.key&&g.set(e.key,u)}let y,b=0;const O=f-m+1;let _=!1,E=0;const S=new Array(O);for(u=0;u=O){H(r,i,s,!0);continue}let o;if(null!=r.key)o=g.get(r.key);else for(y=m;y<=f;y++)if(0===S[y-m]&&ir(r,t[y])){o=y;break}void 0===o?H(r,i,s,!0):(S[o-m]=u+1,o>=E?E=o:_=!0,v(r,t[o],n,null,i,s,c,a,l),b++)}const w=_?function(e){const t=e.slice(),n=[0];let r,o,i,s,c;const a=e.length;for(r=0;r>1,e[n[c]]0&&(t[r]=n[i-1]),n[i]=r)}}i=n.length,s=n[i-1];for(;i-- >0;)n[i]=s,s=t[s];return n}(S):o.EMPTY_ARR;for(y=w.length-1,u=O-1;u>=0;u--){const e=m+u,o=t[e],p=e+1{const{el:s,type:c,transition:a,children:l,shapeFlag:u}=e;if(6&u)return void U(e.component.subTree,t,r,o);if(128&u)return void e.suspense.move(t,r,o);if(64&u)return void c.move(e,t,r,Z);if(c===Yn){n(s,t,r);for(let e=0;e{let i;for(;e&&e!==t;)i=f(e),n(e,r,o),e=i;n(t,r,o)})(e,t,r);if(2!==o&&1&u&&a)if(0===o)a.beforeEnter(s),n(s,t,r),on(()=>a.enter(s),i);else{const{leave:e,delayLeave:o,afterLeave:i}=a,c=()=>n(s,t,r),l=()=>{e(s,()=>{c(),i&&i()})};o?o(s,c,l):l()}else n(s,t,r)},H=(e,t,n,r=!1,o=!1)=>{const{type:i,props:s,ref:c,children:a,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:p,cacheIndex:f}=e;if(-2===d&&(o=!1),null!=c&&$t(c,null,n,e,!0),null!=f&&(t.renderCache[f]=void 0),256&u)return void t.ctx.deactivate(e);const h=1&u&&p,m=!ie(e);let v;if(m&&(v=s&&s.onVnodeBeforeUnmount)&&_r(v,t,e),6&u)K(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);h&&Y(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,Z,r):l&&!l.hasOnce&&(i!==Yn||d>0&&64&d)?G(l,t,n,!1,!0):(i===Yn&&384&d||!o&&16&u)&&G(a,t,n),r&&W(e)}(m&&(v=s&&s.onVnodeUnmounted)||h)&&on(()=>{v&&_r(v,t,e),h&&Y(e,null,t,"unmounted")},n)},W=e=>{const{type:t,el:n,anchor:r,transition:o}=e;if(t===Yn)return void z(n,r);if(t===Kn)return void E(e);const s=()=>{i(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,i=()=>t(n,s);r?r(e.el,s,i):i()}else s()},z=(e,t)=>{let n;for(;e!==t;)n=f(e),i(e),e=n;i(t)},K=(e,t,n)=>{const{bum:r,scope:i,update:s,subTree:c,um:a,m:l,a:u}=e;fn(l),fn(u),r&&Object(o.invokeArrayFns)(r),i.stop(),s&&(s.active=!1,H(c,e,t,n)),a&&on(a,t),on(()=>{e.isUnmounted=!0},t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},G=(e,t,n,r=!1,o=!1,i=0)=>{for(let s=i;s{if(6&e.shapeFlag)return q(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=f(e.anchor||e.el),n=t&&t[Ut];return n?f(n):t};let J=!1;const X=(e,t,n)=>{null==e?t._vnode&&H(t._vnode,null,null,!0):v(t._vnode||null,e,t,null,null,null,n),J||(J=!0,j(),A(),J=!1),t._vnode=e},Z={p:v,um:H,m:U,r:W,mt:M,mc:T,pc:V,pbc:k,n:q,o:e};let Q,ee;return t&&([Q,ee]=t(Z)),{render:X,hydrate:Q,createApp:bt(X,Q)}}function ln({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function un({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function dn(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function pn(e,t,n=!1){const r=e.children,i=t.children;if(Object(o.isArray)(r)&&Object(o.isArray)(i))for(let e=0;e{{const e=Et(hn);return e}};function vn(e,t){return _n(e,null,t)}function gn(e,t){return _n(e,null,{flush:"post"})}function yn(e,t){return _n(e,null,{flush:"sync"})}const bn={};function On(e,t,n){return _n(e,t,n)}function _n(e,t,{immediate:n,deep:i,flush:s,once:c,onTrack:a,onTrigger:l}=o.EMPTY_OBJ){if(t&&c){const e=t;t=(...t)=>{e(...t),x()}}const u=Nr,d=e=>!0===i?e:wn(e,!1===i?1:void 0);let h,m,v=!1,g=!1;if(Object(r.isRef)(e)?(h=()=>e.value,v=Object(r.isShallow)(e)):Object(r.isReactive)(e)?(h=()=>d(e),v=!0):Object(o.isArray)(e)?(g=!0,v=e.some(e=>Object(r.isReactive)(e)||Object(r.isShallow)(e)),h=()=>e.map(e=>Object(r.isRef)(e)?e.value:Object(r.isReactive)(e)?d(e):Object(o.isFunction)(e)?p(e,u,2):void 0)):h=Object(o.isFunction)(e)?t?()=>p(e,u,2):()=>(m&&m(),f(e,u,3,[b])):o.NOOP,t&&i){const e=h;h=()=>wn(e())}let y,b=e=>{m=S.onStop=()=>{p(e,u,4),m=S.onStop=void 0}};if(Rr){if(b=o.NOOP,t?n&&f(t,u,3,[h(),g?[]:void 0,b]):h(),"sync"!==s)return o.NOOP;{const e=mn();y=e.__watcherHandles||(e.__watcherHandles=[])}}let O=g?new Array(e.length).fill(bn):bn;const _=()=>{if(S.active&&S.dirty)if(t){const e=S.run();(i||v||(g?e.some((e,t)=>Object(o.hasChanged)(e,O[t])):Object(o.hasChanged)(e,O)))&&(m&&m(),f(t,u,3,[e,O===bn?void 0:g&&O[0]===bn?[]:O,b]),O=e)}else S.run()};let E;_.allowRecurse=!!t,"sync"===s?E=_:"post"===s?E=()=>on(_,u&&u.suspense):(_.pre=!0,u&&(_.id=u.uid),E=()=>N(_));const S=new r.ReactiveEffect(h,o.NOOP,E),w=Object(r.getCurrentScope)(),x=()=>{S.stop(),w&&Object(o.remove)(w.effects,S)};return t?n?_():O=S.run():"post"===s?on(S.run.bind(S),u&&u.suspense):S.run(),y&&y.push(x),x}function En(e,t,n){const r=this.proxy,i=Object(o.isString)(e)?e.includes(".")?Sn(r,e):()=>r[e]:e.bind(r,r);let s;Object(o.isFunction)(t)?s=t:(s=t.handler,n=t);const c=Ar(this),a=_n(i,s.bind(r),n);return c(),a}function Sn(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{wn(e,t,n)});else if(Object(o.isPlainObject)(e)){for(const r in e)wn(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&wn(e[r],t,n)}return e}function Nn(e,t,n=o.EMPTY_OBJ){const i=xr();const s=Object(o.camelize)(t),c=Object(o.hyphenate)(t),a=xn(e,t),l=Object(r.customRef)((r,a)=>{let l,u,d;return yn(()=>{const n=e[t];Object(o.hasChanged)(l,n)&&(l=n,a())}),{get:()=>(r(),n.get?n.get(l):l),set(e){if(!Object(o.hasChanged)(e,l))return;const r=i.vnode.props;r&&(t in r||s in r||c in r)&&("onUpdate:"+t in r||"onUpdate:"+s in r||"onUpdate:"+c in r)||(l=e,a());const p=n.set?n.set(e):e;i.emit("update:"+t,p),e!==p&&e!==u&&p===d&&a(),u=e,d=p}}});return l[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?a||o.EMPTY_OBJ:l,done:!1}:{done:!0}}},l}const xn=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[t+"Modifiers"]||e[Object(o.camelize)(t)+"Modifiers"]||e[Object(o.hyphenate)(t)+"Modifiers"];function Tn(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||o.EMPTY_OBJ;let i=n;const s=t.startsWith("update:"),c=s&&xn(r,t.slice(7));let a;c&&(c.trim&&(i=n.map(e=>Object(o.isString)(e)?e.trim():e)),c.number&&(i=n.map(o.looseToNumber)));let l=r[a=Object(o.toHandlerKey)(t)]||r[a=Object(o.toHandlerKey)(Object(o.camelize)(t))];!l&&s&&(l=r[a=Object(o.toHandlerKey)(Object(o.hyphenate)(t))]),l&&f(l,e,6,i);const u=r[a+"Once"];if(u){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,f(u,e,6,i)}}function jn(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(void 0!==i)return i;const s=e.emits;let c={},a=!1;if(__VUE_OPTIONS_API__&&!Object(o.isFunction)(e)){const r=e=>{const n=jn(e,t,!0);n&&(a=!0,Object(o.extend)(c,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return s||a?(Object(o.isArray)(s)?s.forEach(e=>c[e]=null):Object(o.extend)(c,s),Object(o.isObject)(e)&&r.set(e,c),c):(Object(o.isObject)(e)&&r.set(e,null),null)}function An(e,t){return!(!e||!Object(o.isOn)(t))&&(t=t.slice(2).replace(/Once$/,""),Object(o.hasOwn)(e,t[0].toLowerCase()+t.slice(1))||Object(o.hasOwn)(e,Object(o.hyphenate)(t))||Object(o.hasOwn)(e,t))}function Cn(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[s],slots:c,attrs:a,emit:l,render:u,renderCache:d,props:p,data:f,setupState:m,ctx:v,inheritAttrs:g}=e,y=D(e);let b,O;try{if(4&n.shapeFlag){const e=i||r,t=e;b=gr(u.call(t,e,d,p,m,f,v)),O=a}else{const e=t;0,b=gr(e.length>1?e(p,{attrs:a,slots:c,emit:l}):e(p,null)),O=t.props?a:In(a)}}catch(t){Gn.length=0,h(t,e,1),b=ur(zn)}let _=b;if(O&&!1!==g){const e=Object.keys(O),{shapeFlag:t}=_;e.length&&7&t&&(s&&e.some(o.isModelListener)&&(O=Pn(O,s)),_=fr(_,O,!1,!0))}return n.dirs&&(_=fr(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),b=_,D(y),b}function kn(e,t=!0){let n;for(let t=0;t{let t;for(const n in e)("class"===n||"style"===n||Object(o.isOn)(n))&&((t||(t={}))[n]=e[n]);return t},Pn=(e,t)=>{const n={};for(const r in e)Object(o.isModelListener)(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function Rn(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;oe.__isSuspense;let Fn=0;const Dn={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,i,s,c,a,l){if(null==e)!function(e,t,n,r,o,i,s,c,a){const{p:l,o:{createElement:u}}=a,d=u("div"),p=e.suspense=Bn(e,o,r,t,d,n,i,s,c,a);l(null,p.pendingBranch=e.ssContent,d,null,r,p,i,s),p.deps>0?(Vn(e,"onPending"),Vn(e,"onFallback"),l(null,e.ssFallback,t,n,r,null,i,s),Hn(p,e.ssFallback)):p.resolve(!1,!0)}(t,n,r,o,i,s,c,a,l);else{if(i&&i.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,r,o,i,s,c,{p:a,um:l,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,f=t.ssFallback,{activeBranch:h,pendingBranch:m,isInFallback:v,isHydrating:g}=d;if(m)d.pendingBranch=p,ir(p,m)?(a(m,p,d.hiddenContainer,null,o,d,i,s,c),d.deps<=0?d.resolve():v&&(g||(a(h,f,n,r,o,null,i,s,c),Hn(d,f)))):(d.pendingId=Fn++,g?(d.isHydrating=!1,d.activeBranch=m):l(m,o,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),v?(a(null,p,d.hiddenContainer,null,o,d,i,s,c),d.deps<=0?d.resolve():(a(h,f,n,r,o,null,i,s,c),Hn(d,f))):h&&ir(p,h)?(a(h,p,n,r,o,d,i,s,c),d.resolve(!0)):(a(null,p,d.hiddenContainer,null,o,d,i,s,c),d.deps<=0&&d.resolve()));else if(h&&ir(p,h))a(h,p,n,r,o,d,i,s,c),Hn(d,p);else if(Vn(t,"onPending"),d.pendingBranch=p,512&p.shapeFlag?d.pendingId=p.component.suspenseId:d.pendingId=Fn++,a(null,p,d.hiddenContainer,null,o,d,i,s,c),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(f)},e):0===e&&d.fallback(f)}}(e,t,n,r,o,s,c,a,l)}},hydrate:function(e,t,n,r,o,i,s,c,a){const l=t.suspense=Bn(t,r,n,e.parentNode,document.createElement("div"),null,o,i,s,c,!0),u=a(e,l.pendingBranch=t.ssContent,n,l,i,s);0===l.deps&&l.resolve(!1,!0);return u},normalize:function(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=$n(r?n.default:n),e.ssFallback=r?$n(n.fallback):ur(zn)}};function Vn(e,t){const n=e.props&&e.props[t];Object(o.isFunction)(n)&&n()}function Bn(e,t,n,r,i,s,c,a,l,u,d=!1){const{p:p,m:f,um:m,n:v,o:{parentNode:g,remove:y}}=u;let b;const O=function(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);O&&t&&t.pendingBranch&&(b=t.pendingId,t.deps++);const _=e.props?Object(o.toNumber)(e.props.timeout):void 0;const E=s,S={vnode:e,parent:t,parentComponent:n,namespace:c,container:r,hiddenContainer:i,deps:0,pendingId:Fn++,timeout:"number"==typeof _?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:r,activeBranch:o,pendingBranch:i,pendingId:c,effects:a,parentComponent:l,container:u}=S;let d=!1;S.isHydrating?S.isHydrating=!1:e||(d=o&&i.transition&&"out-in"===i.transition.mode,d&&(o.transition.afterLeave=()=>{c===S.pendingId&&(f(i,u,s===E?v(o):s,0),T(a))}),o&&(g(o.el)!==S.hiddenContainer&&(s=v(o)),m(o,l,S,!0)),d||f(i,u,s,0)),Hn(S,i),S.pendingBranch=null,S.isInFallback=!1;let p=S.parent,h=!1;for(;p;){if(p.pendingBranch){p.effects.push(...a),h=!0;break}p=p.parent}h||d||T(a),S.effects=[],O&&t&&t.pendingBranch&&b===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),Vn(r,"onResolve")},fallback(e){if(!S.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:o,namespace:i}=S;Vn(t,"onFallback");const s=v(n),c=()=>{S.isInFallback&&(p(null,e,o,s,r,null,i,a,l),Hn(S,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=c),S.isInFallback=!0,m(n,r,null,!0),u||c()},move(e,t,n){S.activeBranch&&f(S.activeBranch,e,t,n),S.container=e},next:()=>S.activeBranch&&v(S.activeBranch),registerDep(e,t,n){const r=!!S.pendingBranch;r&&S.deps++;const o=e.vnode.el;e.asyncDep.catch(t=>{h(t,e,0)}).then(i=>{if(e.isUnmounted||S.isUnmounted||S.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:s}=e;Lr(e,i,!1),o&&(s.el=o);const a=!o&&e.subTree.el;t(e,s,g(o||e.subTree.el),o?null:v(e.subTree),S,c,n),a&&y(a),Mn(e,s.el),r&&0==--S.deps&&S.resolve()})},unmount(e,t){S.isUnmounted=!0,S.activeBranch&&m(S.activeBranch,n,e,t),S.pendingBranch&&m(S.pendingBranch,n,e,t)}};return S}function $n(e){let t;if(Object(o.isFunction)(e)){const n=Qn&&e._c;n&&(e._d=!1,Jn()),e=e(),n&&(e._d=!0,t=qn,Xn())}if(Object(o.isArray)(e)){const t=kn(e);0,e=t}return e=gr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function Un(e,t){t&&t.pendingBranch?Object(o.isArray)(e)?t.effects.push(...e):t.effects.push(e):T(e)}function Hn(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let o=t.el;for(;!o&&t.component;)o=(t=t.component.subTree).el;n.el=o,r&&r.subTree===n&&(r.vnode.el=o,Mn(r,o))}const Yn=Symbol.for("v-fgt"),Wn=Symbol.for("v-txt"),zn=Symbol.for("v-cmt"),Kn=Symbol.for("v-stc"),Gn=[];let qn=null;function Jn(e=!1){Gn.push(qn=e?null:[])}function Xn(){Gn.pop(),qn=Gn[Gn.length-1]||null}let Zn,Qn=1;function er(e){Qn+=e,e<0&&qn&&(qn.hasOnce=!0)}function tr(e){return e.dynamicChildren=Qn>0?qn||o.EMPTY_ARR:null,Xn(),Qn>0&&qn&&qn.push(e),e}function nr(e,t,n,r,o,i){return tr(lr(e,t,n,r,o,i,!0))}function rr(e,t,n,r,o){return tr(ur(e,t,n,r,o,!0))}function or(e){return!!e&&!0===e.__v_isVNode}function ir(e,t){return e.type===t.type&&e.key===t.key}function sr(e){Zn=e}const cr=({key:e})=>null!=e?e:null,ar=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?Object(o.isString)(e)||Object(r.isRef)(e)||Object(o.isFunction)(e)?{i:L,r:e,k:t,f:!!n}:e:null);function lr(e,t=null,n=null,r=0,i=null,s=(e===Yn?0:1),c=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&cr(t),ref:t&&ar(t),scopeId:F,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:L};return a?(br(l,n),128&s&&e.normalize(l)):n&&(l.shapeFlag|=Object(o.isString)(n)?8:16),Qn>0&&!c&&qn&&(l.patchFlag>0||6&s)&&32!==l.patchFlag&&qn.push(l),l}const ur=dr;function dr(e,t=null,n=null,i=0,s=null,c=!1){if(e&&e!==Ce||(e=zn),or(e)){const r=fr(e,t,!0);return n&&br(r,n),Qn>0&&!c&&qn&&(6&r.shapeFlag?qn[qn.indexOf(e)]=r:qn.push(r)),r.patchFlag=-2,r}if(zr(e)&&(e=e.__vccOpts),t){t=pr(t);let{class:e,style:n}=t;e&&!Object(o.isString)(e)&&(t.class=Object(o.normalizeClass)(e)),Object(o.isObject)(n)&&(Object(r.isProxy)(n)&&!Object(o.isArray)(n)&&(n=Object(o.extend)({},n)),t.style=Object(o.normalizeStyle)(n))}return lr(e,t,n,i,s,Object(o.isString)(e)?1:Ln(e)?128:(e=>e.__isTeleport)(e)?64:Object(o.isObject)(e)?4:Object(o.isFunction)(e)?2:0,c,!0)}function pr(e){return e?Object(r.isProxy)(e)||xt(e)?Object(o.extend)({},e):e:null}function fr(e,t,n=!1,r=!1){const{props:i,ref:s,patchFlag:c,children:a,transition:l}=e,u=t?Or(i||{},t):i,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&cr(u),ref:t&&t.ref?n&&s?Object(o.isArray)(s)?s.concat(ar(t)):[s,ar(t)]:ar(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Yn?-1===c?16:16|c:c,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&fr(e.ssContent),ssFallback:e.ssFallback&&fr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&ne(d,l.clone(d)),d}function hr(e=" ",t=0){return ur(Wn,null,e,t)}function mr(e,t){const n=ur(Kn,null,e);return n.staticCount=t,n}function vr(e="",t=!1){return t?(Jn(),rr(zn,null,e)):ur(zn,null,e)}function gr(e){return null==e||"boolean"==typeof e?ur(zn):Object(o.isArray)(e)?ur(Yn,null,e.slice()):"object"==typeof e?yr(e):ur(Wn,null,String(e))}function yr(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:fr(e)}function br(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(Object(o.isArray)(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),br(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||xt(t)?3===r&&L&&(1===L.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=L}}else Object(o.isFunction)(t)?(t={default:t,_ctx:L},n=32):(t=String(t),64&r?(n=16,t=[hr(t)]):n=8);e.children=t,e.shapeFlag|=n}function Or(...e){const t={};for(let n=0;nNr||L;let Tr,jr;{const e=Object(o.getGlobalThis)(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Tr=t("__VUE_INSTANCE_SETTERS__",e=>Nr=e),jr=t("__VUE_SSR_SETTERS__",e=>Rr=e)}const Ar=e=>{const t=Nr;return Tr(e),e.scope.on(),()=>{e.scope.off(),Tr(t)}},Cr=()=>{Nr&&Nr.scope.off(),Tr(null)};function kr(e){return 4&e.vnode.shapeFlag}let Ir,Pr,Rr=!1;function Mr(e,t=!1,n=!1){t&&jr(t);const{props:i,children:s}=e.vnode,c=kr(e);!function(e,t,n,o=!1){const i={},s=Nt();e.propsDefaults=Object.create(null),Tt(e,t,i,s);for(const t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=o?i:Object(r.shallowReactive)(i):e.type.props?e.props=i:e.props=s,e.attrs=s}(e,i,c,t),((e,t,n)=>{const r=e.slots=Nt();if(32&e.vnode.shapeFlag){const e=t._;e?(Bt(r,t,n),n&&Object(o.def)(r,"_",e,!0)):Dt(t,r)}else t&&Vt(e,t)})(e,s,n);const a=c?function(e,t){const n=e.type;0;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ue),!1;const{setup:i}=n;if(i){const n=e.setupContext=i.length>1?$r(e):null,s=Ar(e);Object(r.pauseTracking)();const c=p(i,e,0,[e.props,n]);if(Object(r.resetTracking)(),s(),Object(o.isPromise)(c)){if(c.then(Cr,Cr),t)return c.then(n=>{Lr(e,n,t)}).catch(t=>{h(t,e,0)});e.asyncDep=c}else Lr(e,c,t)}else Vr(e,t)}(e,t):void 0;return t&&jr(!1),a}function Lr(e,t,n){Object(o.isFunction)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Object(o.isObject)(t)&&(e.setupState=Object(r.proxyRefs)(t)),Vr(e,n)}function Fr(e){Ir=e,Pr=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,He))}}const Dr=()=>!Ir;function Vr(e,t,n){const i=e.type;if(!e.render){if(!t&&Ir&&!i.render){const t=i.template||lt(e).template;if(t){0;const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:s,compilerOptions:c}=i,a=Object(o.extend)(Object(o.extend)({isCustomElement:n,delimiters:s},r),c);i.render=Ir(t,a)}}e.render=i.render||o.NOOP,Pr&&Pr(e)}if(__VUE_OPTIONS_API__){const t=Ar(e);Object(r.pauseTracking)();try{st(e)}finally{Object(r.resetTracking)(),t()}}}const Br={get:(e,t)=>(Object(r.track)(e,"get",""),e[t])};function $r(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,Br),slots:e.slots,emit:e.emit,expose:t}}function Ur(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Object(r.proxyRefs)(Object(r.markRaw)(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Be?Be[n](e):void 0,has:(e,t)=>t in e||t in Be})):e.proxy}const Hr=/(?:^|[-_])(\w)/g;function Yr(e,t=!0){return Object(o.isFunction)(e)?e.displayName||e.name:e.name||t&&e.__name}function Wr(e,t,n=!1){let r=Yr(t);if(!r&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(r=e[1])}if(!r&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};r=n(e.components||e.parent.type.components)||n(e.appContext.components)}return r?r.replace(Hr,e=>e.toUpperCase()).replace(/[-_]/g,""):n?"App":"Anonymous"}function zr(e){return Object(o.isFunction)(e)&&"__vccOpts"in e}const Kr=(e,t)=>Object(r.computed)(e,t,Rr);function Gr(e,t,n){const r=arguments.length;return 2===r?Object(o.isObject)(t)&&!Object(o.isArray)(t)?or(t)?ur(e,null,[t]):ur(e,t):ur(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&or(n)&&(n=[n]),ur(e,t,n))}function qr(){return void 0}function Jr(e,t,n,r){const o=n[r];if(o&&Xr(o,e))return o;const i=t();return i.memo=e.slice(),i.cacheIndex=r,n[r]=i}function Xr(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&qn&&qn.push(e),!0}const Zr="3.4.32",Qr=o.NOOP,eo=d,to=P,no=function e(t,n){var r,o;if(P=t,P)P.enabled=!0,R.forEach(({event:e,args:t})=>P.emit(e,...t)),R=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null==(o=null==(r=window.navigator)?void 0:r.userAgent)?void 0:o.includes("jsdom"))){(n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(t=>{e(t,n)}),setTimeout(()=>{P||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,M=!0,R=[])},3e3)}else M=!0,R=[]},ro={createComponentInstance:wr,setupComponent:Mr,renderComponentRoot:Cn,setCurrentRenderingInstance:D,isVNode:or,normalizeVNode:gr,getComponentPublicInstance:Ur},oo=null,io=null,so=null},"../../packages/hippy-vue-next/node_modules/@vue/shared/dist/shared.esm-bundler.js":function(e,t,n){"use strict";n.r(t),function(e){ +/** +* @vue/shared v3.4.32 +* (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 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 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 pe})),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 ke})),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,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"),k=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},I=/-(\w)/g,P=k(e=>e.replace(I,(e,t)=>t?t.toUpperCase():"")),R=/\B([A-Z])/g,M=k(e=>e.replace(R,"-$1").toLowerCase()),L=k(e=>e.charAt(0).toUpperCase()+e.slice(1)),F=k(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),ke=e=>O(e)?e:null==e?"":h(e)||E(e)&&(e.toString===w||!b(e.toString))?Ce(e)?ke(e.value):JSON.stringify(e,Ie,2):String(e),Ie=(e,t)=>Ce(t)?Ie(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)||T(t)?t:String(t),Pe=(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