From 6653deaccb1c904498c98c459c12779a9a70da93 Mon Sep 17 00:00:00 2001 From: zoomchan-cxj Date: Thu, 8 Jul 2021 12:31:02 +0800 Subject: [PATCH] chore(release): released 2.6.5 --- CHANGELOG.md | 11 +++++++++++ android/sdk/gradle.properties | 2 +- examples/android-demo/res/vendor.android.js | 8 ++++---- examples/ios-demo/res/index.ios.js | 2 +- examples/ios-demo/res/vendor.ios.js | 8 ++++---- hippy.podspec | 2 +- ios/sdk/base/HippyBridge.mm | 2 +- lerna.json | 2 +- packages/hippy-debug-server/CHANGELOG.md | 8 ++++++++ packages/hippy-debug-server/package.json | 2 +- packages/hippy-react-web/CHANGELOG.md | 8 ++++++++ packages/hippy-react-web/package-lock.json | 2 +- packages/hippy-react-web/package.json | 2 +- packages/hippy-react/CHANGELOG.md | 8 ++++++++ packages/hippy-react/package-lock.json | 2 +- packages/hippy-react/package.json | 2 +- packages/hippy-vue-css-loader/CHANGELOG.md | 8 ++++++++ packages/hippy-vue-css-loader/package-lock.json | 2 +- packages/hippy-vue-css-loader/package.json | 2 +- packages/hippy-vue-native-components/CHANGELOG.md | 8 ++++++++ packages/hippy-vue-native-components/package.json | 2 +- packages/hippy-vue-router/CHANGELOG.md | 8 ++++++++ packages/hippy-vue-router/package-lock.json | 2 +- packages/hippy-vue-router/package.json | 2 +- packages/hippy-vue/CHANGELOG.md | 8 ++++++++ packages/hippy-vue/package-lock.json | 2 +- packages/hippy-vue/package.json | 2 +- 27 files changed, 92 insertions(+), 25 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 046cff99d92..58d370dd4cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.6.5](https://github.com/Tencent/Hippy/compare/2.6.4...2.6.5) (2021-07-08) + + +### Bug Fixes + +* **core:** fix jscore promise & execute queue ([65fabb1](https://github.com/Tencent/Hippy/commit/65fabb1dc99f70cecd71ad3cc743a7a03669ac2d)) + + + + + ## [2.6.4](https://github.com/Tencent/Hippy/compare/2.6.3...2.6.4) (2021-05-19) diff --git a/android/sdk/gradle.properties b/android/sdk/gradle.properties index d867efb3989..b3af6f2bcc2 100644 --- a/android/sdk/gradle.properties +++ b/android/sdk/gradle.properties @@ -23,7 +23,7 @@ ARCHIVES_BASE_NAME=android-sdk #maven central sdk version #1.0.0-SNAPSHOT -VERSION_NAME=2.6.4 +VERSION_NAME=2.6.5 VERSION_CODE=1 #ABI diff --git a/examples/android-demo/res/vendor.android.js b/examples/android-demo/res/vendor.android.js index 67f4114d56f..027cf631ce3 100644 --- a/examples/android-demo/res/vendor.android.js +++ b/examples/android-demo/res/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){n.d(t,"Animated",(function(){return bt})),n.d(t,"Animation",(function(){return Se})),n.d(t,"AnimationSet",(function(){return Te})),n.d(t,"AppRegistry",(function(){return dt})),n.d(t,"AsyncStorage",(function(){return Bt})),n.d(t,"BackAndroid",(function(){return $t})),n.d(t,"Clipboard",(function(){return Qt})),n.d(t,"ConsoleModule",(function(){return an})),n.d(t,"Dimensions",(function(){return hn})),n.d(t,"Easing",(function(){return vt})),n.d(t,"Focusable",(function(){return Ht})),n.d(t,"Hippy",(function(){return un})),n.d(t,"HippyEventEmitter",(function(){return H})),n.d(t,"HippyEventListener",(function(){return M})),n.d(t,"HippyRegister",(function(){return Yt})),n.d(t,"Image",(function(){return gt})),n.d(t,"ImageBackground",(function(){return cn})),n.d(t,"ImageLoaderModule",(function(){return Xt})),n.d(t,"ListView",(function(){return Ct})),n.d(t,"ListViewItem",(function(){return wt})),n.d(t,"Modal",(function(){return Ut})),n.d(t,"Navigator",(function(){return _t})),n.d(t,"NetInfo",(function(){return Jt})),n.d(t,"NetworkModule",(function(){return Kt})),n.d(t,"PixelRatio",(function(){return mn})),n.d(t,"Platform",(function(){return ln})),n.d(t,"PullFooter",(function(){return Et})),n.d(t,"PullHeader",(function(){return xt})),n.d(t,"RNfqb",(function(){return sn})),n.d(t,"RNfqbEventEmitter",(function(){return dn})),n.d(t,"RNfqbEventListener",(function(){return pn})),n.d(t,"RNfqbRegister",(function(){return fn})),n.d(t,"RefreshWrapper",(function(){return Tt})),n.d(t,"ScrollView",(function(){return Ft})),n.d(t,"StyleSheet",(function(){return jt})),n.d(t,"Text",(function(){return mt})),n.d(t,"TextInput",(function(){return At})),n.d(t,"TimerModule",(function(){return on})),n.d(t,"UIManagerModule",(function(){return Zt})),n.d(t,"View",(function(){return pt})),n.d(t,"ViewPager",(function(){return It})),n.d(t,"WebSocket",(function(){return Vt})),n.d(t,"WebView",(function(){return Dt})),n.d(t,"callNative",(function(){return en})),n.d(t,"callNativeWithCallbackId",(function(){return nn})),n.d(t,"callNativeWithPromise",(function(){return tn})),n.d(t,"colorParse",(function(){return et})),n.d(t,"removeNativeCallback",(function(){return rn}));var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/react-reconciler/index.js"),a=n.n(o);function l(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 u(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){n.d(t,"Animated",(function(){return Pt})),n.d(t,"Animation",(function(){return je})),n.d(t,"AnimationSet",(function(){return Fe})),n.d(t,"AppRegistry",(function(){return kt})),n.d(t,"AsyncStorage",(function(){return tn})),n.d(t,"BackAndroid",(function(){return nn})),n.d(t,"Clipboard",(function(){return on})),n.d(t,"ConsoleModule",(function(){return gn})),n.d(t,"Dimensions",(function(){return Cn})),n.d(t,"Easing",(function(){return It})),n.d(t,"Focusable",(function(){return Xt})),n.d(t,"Hippy",(function(){return vn})),n.d(t,"HippyEventEmitter",(function(){return X})),n.d(t,"HippyEventListener",(function(){return G})),n.d(t,"HippyRegister",(function(){return un})),n.d(t,"Image",(function(){return _t})),n.d(t,"ImageBackground",(function(){return xn})),n.d(t,"ImageLoaderModule",(function(){return sn})),n.d(t,"ListView",(function(){return Lt})),n.d(t,"ListViewItem",(function(){return At})),n.d(t,"Modal",(function(){return Yt})),n.d(t,"Navigator",(function(){return Ut})),n.d(t,"NetInfo",(function(){return cn})),n.d(t,"NetworkModule",(function(){return an})),n.d(t,"PixelRatio",(function(){return Tn})),n.d(t,"Platform",(function(){return bn})),n.d(t,"PullFooter",(function(){return Ot})),n.d(t,"PullHeader",(function(){return Rt})),n.d(t,"RNfqb",(function(){return wn})),n.d(t,"RNfqbEventEmitter",(function(){return kn})),n.d(t,"RNfqbEventListener",(function(){return Sn})),n.d(t,"RNfqbRegister",(function(){return En})),n.d(t,"RefreshWrapper",(function(){return Ft})),n.d(t,"ScrollView",(function(){return Kt})),n.d(t,"StyleSheet",(function(){return qt})),n.d(t,"Text",(function(){return Tt})),n.d(t,"TextInput",(function(){return Wt})),n.d(t,"TimerModule",(function(){return yn})),n.d(t,"UIManagerModule",(function(){return fn})),n.d(t,"View",(function(){return St})),n.d(t,"ViewPager",(function(){return Dt})),n.d(t,"WebSocket",(function(){return en})),n.d(t,"WebView",(function(){return Jt})),n.d(t,"callNative",(function(){return dn})),n.d(t,"callNativeWithCallbackId",(function(){return hn})),n.d(t,"callNativeWithPromise",(function(){return pn})),n.d(t,"colorParse",(function(){return ft})),n.d(t,"removeNativeCallback",(function(){return mn}));var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/react-reconciler/index.js"),a=n.n(o);const l=["children"],u=["collapsable","style"],s=["style"],c=["children","style","imageStyle","imageRef","source","sources","src","srcs","tintColor","tintColors"],f=["children"],d=["children"],p=["children","style","renderRow","renderPullHeader","renderPullFooter","getRowType","getRowStyle","getRowKey","dataSource","initialListSize","rowShouldSticky","onRowLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","onAppear","onDisappear","onWillAppear","onWillDisappear"],h=["children"],m=["initialRoute"],y=["component"],g=["children","onPageScrollStateChanged"];function b(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;t=0||(i[n]=e[n]);return i} /*! - * @hippy/react v2.6.4 - * Build at: Wed May 19 2021 19:28:22 GMT+0800 (China Standard Time) + * @hippy/react v2.6.5 + * Build at: Thu Jul 08 2021 12:28:43 GMT+0800 (China Standard Time) * * 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__={});const{__GLOBAL__:f}=e;f.nodeId=0,f.animationId=0,f.renderCount=0;const{asyncStorage:d,bridge:p,device:h,document:m,register:y,on:g,off:b,emit:v}=e.Hippy;var w=Object.freeze({__proto__:null,addEventListener:g,removeEventListener:b,dispatchEvent:v,AsyncStorage:d,Bridge:p,Device:h,HippyRegister:y,UIManager:m});class x{constructor(e){this.handlerContainer={},this.nextIdForHandler=0,this.eventName=e}addEventHandler(e,t){if(!e)throw new TypeError("Invalid arguments");const n=this.nextIdForHandler;this.nextIdForHandler+=1;const r={id:n,eventHandler:e,context:t},i="eventHandler_"+n;return this.handlerContainer[i]=r,n}removeEventHandler(e){if("number"!=typeof e)throw new TypeError("Invalid arguments");const t="eventHandler_"+e;this.handlerContainer[t]&&delete this.handlerContainer[t]}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))})}getEventListeners(){return Object.keys(this.handlerContainer).filter(e=>this.handlerContainer[e]).map(e=>this.handlerContainer[e])}getHandlerSize(){return Object.keys(this.handlerContainer).length}}let E,k;function S(e,t){k=e,E=t}function C(){if(!k)throw new Error("getRootViewId must execute after setRootContainer");return k}function T(e){if(!E)return null;const{current:t}=E,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 N(e){return T(t=>t.stateNode&&t.stateNode.nodeId===e)}const _=new RegExp(/^\d+$/);let P=!1;function I(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)))}const A=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function R(e){return"[object Function]"===Object.prototype.toString.call(e)}function O(e){P=e}const z=new Map;function j(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for getHippyEventHub: "+e);return z.get(e)||null}const L={registerNativeEventHub:function(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for registerNativeEventHub: "+e);let t=z.get(e);return t||(t=new x(e),z.set(e,t)),t},getHippyEventHub:j,unregisterNativeEventHub:function(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for unregisterNativeEventHub: "+e);z.has(e)&&z.delete(e)},receiveNativeEvent:function(e){if(!e||!(e instanceof Array)||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");const r=j(t);r&&r.notifyEvent(n)},receiveNativeGesture:function(e){if(!e)return;const{id:t}=e,n=N(t);if(!n)return;let r=!1,i=n,{name:o}=e;do{if(i.memoizedProps&&!i.memoizedProps[o]&&"onClick"===o&&i.memoizedProps.onPress&&(o="onPress"),i.memoizedProps&&i.memoizedProps[o]&&"function"==typeof i.memoizedProps[o])try{r=i.memoizedProps[o](e)}catch(e){console.reportUncaughtException(e)}if("boolean"!=typeof r&&(r=!0),!1===r)for(i=i.return;i&&5!==i.tag;)i=i.return}while(!r&&i)},receiveUIComponentEvent:function(e){if(!e||!Array.isArray(e)||e.length<2)return;const[t,n,r]=e;if("number"!=typeof t||"string"!=typeof n)return;const i=N(t);i&&i.memoizedProps&&i.memoizedProps[n]&&"function"==typeof i.memoizedProps[n]&&i.memoizedProps[n](r)}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=L);class F{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 M{constructor(e){this.eventName=e,this.listenerIds=[]}addCallback(e,t){if("function"!=typeof e)throw new TypeError("Invalid arguments");const n=L.registerNativeEventHub(this.eventName);if(!n)throw new ReferenceError("No listeners for "+this.eventName);const r=n.addEventHandler(e,t);if("number"!=typeof r)throw new Error("Fail to addEventHandler");return this.listenerIds.push(r),r}removeCallback(e){if("number"!=typeof e)throw new TypeError("Invalid arguments");const t=L.getHippyEventHub(this.eventName);if(!t)throw new ReferenceError("No listeners for "+this.eventName);t.removeEventHandler(e);const n=this.listenerIds.length;for(let t=0;t255?255:t}function q(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Q(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 K(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Q(i,r,e+1/3),a=Q(i,r,e),l=Q(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function G(e){return(parseFloat(e)%360+360)%360/360}function Y(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}var X=Object.freeze({__proto__:null,getString:function(){return p.callNativeWithPromise("ClipboardModule","getString")},setString:function(e){p.callNative("ClipboardModule","setString",e)}});var J=Object.freeze({__proto__:null,getCookies:function(e){return p.callNativeWithPromise("network","getCookie",e)},setCookie:function(e,t,n){let r="";"string"==typeof n&&(r=n),n instanceof Date&&(r=n.toUTCString()),p.callNative("network","setCookie",e,t,r)}});function Z(e){return p.callNativeWithPromise("ImageLoaderModule","getSize",e)}function ee(e){p.callNative("ImageLoaderModule","prefetch",e)}var te=Object.freeze({__proto__:null,getSize:Z,prefetch:ee});const ne=new Map;let re;class ie{constructor(e,t){this.eventName=e,this.listener=t}remove(){this.eventName&&this.listener&&(oe(this.eventName,this.listener),this.listener=void 0)}}function oe(e,t){if(t instanceof ie)return void t.remove();let n=e;e&&"change"===e&&(n="networkStatusDidChange");re.listenerSize(n)<=1&&p.callNative("NetInfo","removeListener",n);const r=ne.get(t);r&&(r.remove(),ne.delete(t))}var ae=Object.freeze({__proto__:null,addEventListener:function(e,t){re=new H;let n=e;n&&"change"===n&&(n="networkStatusDidChange"),re.listenerSize(n)<1&&p.callNative("NetInfo","addListener",n);const r=re.addListener(n,e=>{t(e)});return ne.set(r,r),new ie(n,t)},removeEventListener:oe,fetch:function(){return p.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)}});const le={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode")};let ue=!0,se=[];function ce(){ue&&Oe()}function fe(e){ue&&(ue=!1,Promise.resolve().then(()=>{(function(e){const t=[];for(let n=0;n{switch(t.type){case le.createNode:t.nodes,Pe(e,t.nodes);break;case le.updateNode:t.nodes,"ios"===h.platform.OS?t.nodes.forEach(t=>Ie(e,[t])):Ie(e,t.nodes);break;case le.deleteNode:t.nodes,"ios"===h.platform.OS?t.nodes.forEach(t=>Ae(e,[t])):Ae(e,t.nodes)}}),ze(),se=[],ue=!0}))}function de(e){const t=e.attributes,{children:n}=t;return c(t,["children"])}function pe(e,t){if(!t.nativeName)return null;if(t.meta.skipAddToDom)return null;if(!t.meta.component)throw new Error("Specific tag is not supported yet: "+t.tagName);return{id:t.nodeId,pId:t.parentNode&&t.parentNode.nodeId||e,index:t.index,name:t.nativeName,props:u(u({},de(t)),{},{style:t.style})}}function he(e,t){const n=[];return t.traverseChildren(t=>{const r=pe(e,t);r&&n.push(r)}),n}function me(e){return!!E&&e instanceof E.containerInfo.constructor}function ye(e,t,n=-1){if(!e)return;if(t.meta.skipAddToDom)return;const r=C();if(me(e)&&!e.isMounted){const n=he(r,t);ce(),se.push({type:le.createNode,nodes:n}),fe(r),e.traverseChildren(e=>{e.isMounted||(e.isMounted=!0)})}else if(e.isMounted&&!t.isMounted){const e=he(r,t);ce(),se.push({type:le.createNode,nodes:e}),fe(r),t.traverseChildren(e=>{e.isMounted||(e.isMounted=!0)})}}function ge(e,t){if(!t||t.meta.skipAddToDom)return;t.isMounted=!1,t.traverseChildren(e=>{e.isMounted&&(e.isMounted=!1)});const n=C(),r=[{id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:n,index:t.index}];ce(),se.push({type:le.deleteNode,nodes:r}),fe(n)}function be(e){if(!e.isMounted)return;const t=C(),n=pe(t,e);ce(),n&&se.push({type:le.updateNode,nodes:[n]}),fe(t)}let ve=0;class we{constructor(){this.meta={component:{}},this._isMounted=!1,this.index=0,this.childNodes=[],this.parentNode=null,this.prevSibling=null,this.nextSibling=null,this.nodeId=(ve+=1,ve%10==0&&(ve+=1),ve)}toString(){return this.constructor.name}get firstChild(){return this.childNodes.length?this.childNodes[0]:null}get lastChild(){return this.childNodes.length?this.childNodes[this.childNodes.length-1]:null}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);return e.parentNode=this,e.nextSibling=t,e.prevSibling=this.childNodes[n-1],t.prevSibling=e,this.childNodes.splice(n,0,e),ye(this,e,n)}moveChild(e,t){if(!e)throw new Error("Can't mvoe 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),r=this.childNodes.indexOf(t);if(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]),ge(0,e),this.childNodes.splice(r,0,e),this.childNodes.splice(n+(re.index>-1).indexOf(e))}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.");e.parentNode=this,this.lastChild&&(e.prevSibling=this.lastChild,this.lastChild.nextSibling=e),this.childNodes.push(e),ye(this,e,this.childNodes.length-1)}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.");e.meta.skipAddToDom||(ge(0,e),e.prevSibling&&(e.prevSibling.nextSibling=e.nextSibling,e.prevSibling=null),e.nextSibling&&(e.nextSibling.prevSibling=e.prevSibling,e.nextSibling=null),this.childNodes=this.childNodes.filter(t=>t!==e))}findChild(e){if(e(this))return this;if(this.childNodes.length)for(let t=0;t!e.meta.skipAddToDom).indexOf(this):0,this.index=t,e(this),this.childNodes.length&&this.childNodes.forEach(t=>{this.traverseChildren.call(t,e)})}}function xe(e){return"loop"===e?-1:e}const Ee=new H;function ke(e,t){return"color"===e&&["number","string"].indexOf(typeof t)>=0?et(t):t}class Se{constructor(e){let t=0;if(e.startValue&&e.startValue.constructor&&"Animation"===e.startValue.constructor.name)t={animationId:e.startValue.animationId};else{const{startValue:n}=e;t=ke(e.valueType,n)}const n=ke(e.valueType,e.toValue);this.mode=e.mode||"timing",this.delay=e.delay||0,this.startValue=t||0,this.toValue=n||0,this.valueType=e.valueType||void 0,this.duration=e.duration||0,this.direction=e.direction||"center",this.timingFunction=e.timingFunction||"linear",this.repeatCount=xe(e.repeatCount||0),this.inputRange=e.inputRange||[],this.outputRange=e.outputRange||[],this.animationId=Ye.callNativeWithCallbackId("AnimationModule","createAnimation",!0,this.mode,Object.assign({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.destroy=this.destroy.bind(this),this.onRNfqbAnimationStart=this.onAnimationStart.bind(this),this.onRNfqbAnimationEnd=this.onAnimationEnd.bind(this),this.onRNfqbAnimationCancel=this.onAnimationCancel.bind(this),this.onRNfqbAnimationRepeat=this.onAnimationRepeat.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(){this.animationStartListener&&this.animationStartListener.remove(),this.animationEndListener&&this.animationEndListener.remove(),this.animationCancelListener&&this.animationCancelListener.remove(),this.animationRepeatListener&&this.animationRepeatListener.remove()}start(){this.removeEventListener();let e="onAnimation";e="onHippyAnimation","function"==typeof this.onAnimationStartCallback&&(this.animationStartListener=Ee.addListener(e+"Start",e=>{e===this.animationId&&(this.animationStartListener.remove(),"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback())})),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=Ee.addListener(e+"End",e=>{e===this.animationId&&(this.animationEndListener.remove(),"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback())})),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=Ee.addListener(e+"Cancel",e=>{e===this.animationId&&(this.animationCancelListener.remove(),"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback())})),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=Ee.addListener(e+"Repeat",e=>{e===this.animationId&&"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()})),Ye.callNative("AnimationModule","startAnimation",this.animationId)}destory(){this.destroy()}destroy(){this.removeEventListener(),Ye.callNative("AnimationModule","destroyAnimation",this.animationId)}pause(){Ye.callNative("AnimationModule","pauseAnimation",this.animationId)}resume(){Ye.callNative("AnimationModule","resumeAnimation",this.animationId)}updateAnimation(e){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=0;if(e.startValue instanceof Se)t={animationId:e.startValue.animationId};else{const{startValue:n}=e;t=ke(this.valueType,n)}this.startValue=t||0}else"repeatCount"===t?this.repeatCount=xe(e.repeatCount||0):Object.defineProperty(this,t,{value:n})}),Ye.callNative("AnimationModule","updateAnimation",this.animationId,Object.assign({delay:this.delay,startValue:this.startValue,toValue:ke(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 Ce=new H;class Te{constructor(e){this.animationList=[],e.children.forEach(e=>{this.animationList.push({animationId:e.animation.animationId,follow:e.follow||!1})}),this.animationId=Ye.callNativeWithCallbackId("AnimationModule","createAnimationSet",!0,{repeatCount:xe(e.repeatCount||0),children:this.animationList,virtual:e.virtual}),this.onRNfqbAnimationStart=this.onAnimationStart.bind(this),this.onRNfqbAnimationEnd=this.onAnimationEnd.bind(this),this.onRNfqbAnimationCancel=this.onAnimationCancel.bind(this),this.onRNfqbAnimationRepeat=this.onAnimationRepeat.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(){this.animationStartListener&&this.animationStartListener.remove(),this.animationEndListener&&this.animationEndListener.remove(),this.animationCancelListener&&this.animationCancelListener.remove(),this.animationRepeatListener&&this.animationRepeatListener.remove()}start(){this.removeEventListener();let e="onAnimation";e="onHippyAnimation","function"==typeof this.onAnimationStartCallback&&(this.animationStartListener=Ce.addListener(e+"Start",e=>{e===this.animationId&&(this.animationStartListener.remove(),"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback())})),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=Ce.addListener(e+"End",e=>{e===this.animationId&&(this.animationEndListener.remove(),"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback())})),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=Ce.addListener(e+"Cancel",e=>{e===this.animationId&&(this.animationCancelListener.remove(),"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback())})),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=Ce.addListener(e+"Repeat",e=>{e===this.animationId&&"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()})),Ye.callNative("AnimationModule","startAnimation",this.animationId)}destory(){this.destroy()}destroy(){this.removeEventListener(),this.animationList.forEach(e=>Number.isInteger(e.animationId)&&Ye.callNative("AnimationModule","destroyAnimation",e.animationId)),Ye.callNative("AnimationModule","destroyAnimation",this.animationId)}pause(){Ye.callNative("AnimationModule","pauseAnimation",this.animationId)}resume(){Ye.callNative("AnimationModule","resumeAnimation",this.animationId)}onAnimationStart(e){this.onAnimationStartCallback=e}onAnimationEnd(e){this.onAnimationEndCallback=e}onAnimationCancel(e){this.onAnimationCancelCallback=e}onAnimationRepeat(e){this.onAnimationRepeatCallback=e}}const Ne={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"};class _e extends we{constructor(e){super(),this.id="",this.style={},this.attributes={},this.tagName=e}get nativeName(){return this.meta.component.name}toString(){return`${this.tagName}:(${this.nativeName})`}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,_.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=u(u({},n),e)}):"object"==typeof e&&e&&(n=u(u({},n),e))}),Object.keys(n).forEach(e=>{const t=n[e];if(Object.prototype.hasOwnProperty.call(Ne,e)&&(e=Ne[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 Se||r instanceof Te?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 null===t&&void 0!==this.style[e]?this.style[e]=void 0:t instanceof Se||t instanceof Te?this.style[e]={animationId:t.animationId}:e.toLowerCase().indexOf("colors")>-1?this.style[e]=tt(t):e.toLowerCase().indexOf("color")>-1?this.style[e]=et(t):this.style[e]=t})}setAttribute(e,t){try{if("boolean"==typeof this.attributes[e]&&""===t&&(t=!0),void 0===e)return void be(this);let n=!1;if([{match:()=>["id"].indexOf(e)>=0,action:()=>(t===this.id||(this.id=t,function(e){if(!e.isMounted)return;const t=C(),n=he(t,e);ce(),se.push({type:le.updateNode,nodes:n}),fe(t)}(this)),!0)},{match:()=>["value","defaultValue","placeholder"].indexOf(e)>=0,action:()=>(this.attributes[e]=I(t),!1)},{match:()=>["text"].indexOf(e)>=0,action:()=>(this.attributes[e]=t,!1)},{match:()=>["numberOfRows"].indexOf(e)>=0,action:()=>(this.attributes[e]=t,"ios"!==Xe.platform.OS)},{match:()=>["onPress"].indexOf(e)>=0,action:()=>(this.attributes.onClick=!0,!1)},{match:()=>["style"].indexOf(e)>=0,action:()=>"object"!=typeof t||null==t||(this.setStyleAttribute(t),!1)},{match:()=>!0,action:()=>(this.attributes[e]="function"==typeof t||t,!1)}].some(e=>!!e.match()&&(n=e.action(),!0)),n)return;let r=!1;Object.keys(this.style).some(e=>{const t=this.style[e];if(t&&Array.isArray(t)&&"transform"===e)for(let e=0;e-1?tt(r):i.toLowerCase().indexOf("color")>-1?et(r):function(e){if("number"==typeof e)return e;if("string"==typeof e&&A.test(e))try{return parseFloat(e)}catch(t){return e}return e}(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||be(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)}),be(this)}}}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=I(e)).replace(/ /g," ").replace(/\xc2/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}const{createNode:Pe,updateNode:Ie,deleteNode:Ae,flushBatch:Re,startBatch:Oe,endBatch:ze,sendRenderError:je}=m,Le=N;function Fe(e){if(e instanceof _e)return e;const t=e._reactInternalFiber;if(t&&t.child){let e=t.child;for(;e&&!(e.stateNode instanceof _e);)e=e.child;return e&&e.stateNode?e.stateNode:null}return null}function Me(e){let t=e;if("string"==typeof e){const n=T(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=Fe(t);return e?e.nodeId:0}return t.nodeId}function Ue(e,t,...n){let{nativeName:r,nodeId:i}=e;if(!i||!r){const t=Fe(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;R(o)&&(a=o,o=[]);null!==C()&&("ios"===h.platform.OS?(R(a)&&Array.isArray(o)&&o.push(a),p.callNative("UIManagerModule","callUIFunction",[r,i,t,o])):"android"===h.platform.OS&&(R(a)?p.callNative("UIManagerModule","callUIFunction",[i,t,o],a):p.callNative("UIManagerModule","callUIFunction",[i,t,o])))}function He(e,t,n){const r=Me(t);return new Promise((t,i)=>r?p.callNative("UIManagerModule",e,r,e=>(n&&R(n)&&n(e),"this view is null"===e?i(new Error("Android cannot get the node")):t(e))):(n&&R(n)&&n("this view is null"),i(new Error(e+" cannot get nodeId"))))}var De=Object.freeze({__proto__:null,createNode:Pe,updateNode:Ie,deleteNode:Ae,flushBatch:Re,startBatch:Oe,endBatch:ze,sendRenderError:je,getNodeById:Le,getNodeIdByRef:Me,getElementFromFiberRef:Fe,callUIFunction:Ue,measureInWindow:function(e,t){return He("measureInWindow",e,t)},measureInAppWindow:function(e,t){return"android"===h.platform.OS?He("measureInWindow",e,t):He("measureInAppWindow",e,t)}});const We=new H,Ve=new Set,Be={exitApp(){p.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(p.callNative("DeviceEventModule","setListenBackPress",!0),Ve.add(e),{remove(){Be.removeListener(e)}}),removeListener(e){Ve.delete(e),0===Ve.size&&p.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){We.addListener("hardwareBackPress",()=>{let e=!0;[...Ve].reverse().every(t=>"function"!=typeof t||!t()||(e=!1,!1)),e&&Be.exitApp()})}},$e=(Be.initEventListener(),Be),{addEventListener:qe,removeEventListener:Qe,dispatchEvent:Ke,AsyncStorage:Ge,Bridge:Ye,Device:Xe,HippyRegister:Je}=w;var Ze=Object.freeze({__proto__:null,addEventListener:qe,removeEventListener:Qe,dispatchEvent:Ke,AsyncStorage:Ge,BackAndroid:$e,Bridge:Ye,Clipboard:X,Cookie:J,Device:Xe,HippyRegister:Je,ImageLoader:te,NetworkInfo:ae,UIManager:De});function et(e,t={}){if(Number.isInteger(e))return e;let n=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(W,e)?W[e]:(t=B.rgb.exec(e),Array.isArray(t)?($(t[1])<<24|$(t[2])<<16|$(t[3])<<8|255)>>>0:(t=B.rgba.exec(e),t?($(t[1])<<24|$(t[2])<<16|$(t[3])<<8|q(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|K(G(t[1]),Y(t[2]),Y(t[3])))>>>0:(t=B.hsla.exec(e),t?(K(G(t[1]),Y(t[2]),Y(t[3]))|q(t[4]))>>>0:null))))))))}(e);return t.platform||(t.platform="android"),null===n?0:(n=(n<<24|n>>>8)>>>0,"android"===t.platform&&(n|=0),n)}function tt(e,t){return Array.isArray(e)?e.map(e=>et(e,t)):[0]}class nt extends we{constructor(){super(),this.documentElement=new _e("document")}createElement(e){return new _e(e)}createElementNS(e,t){return new _e(`${e}:${t}`)}}nt.createElement=nt.prototype.createElement,nt.createElementNS=nt.prototype.createElementNS;var rt=Array.isArray,it=Object.keys,ot=Object.prototype.hasOwnProperty;var at=Object.freeze({__proto__:null,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)},commitMount:function(){},commitTextUpdate:function(){},commitUpdate:function(e,t){Object.keys(t).forEach(n=>e.setAttribute(n,t[n]))},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),o},createTextInstance:function(e,t){const n=t.createElement("p");return n.setAttribute("text",I(e)),n.meta={component:{name:"Text",skipAddToDom:!0}},n},finalizeContainerChildren:function(){},finalizeInitialChildren:function(){return!0},getPublicInstance:function(e){return e},insertBefore:function(e,t,n){e.childNodes.indexOf(t)>0?e.moveChild(t,n):e.insertBefore(t,n)},prepareForCommit:function(){},prepareUpdate:function(e,t,n,r){const i={};return 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:"function"==typeof t&&"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=rt(t),l=rt(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=it(t);if((i=d.length)!==it(n).length)return!1;for(r=i;0!=r--;)if(!ot.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)}}),Object.keys(i).length?i:null},replaceContainerChildren:function(){},removeChild:function(e,t){e.removeChild(t)},removeChildFromContainer:function(e,t){e.removeChild(t)},resetAfterCommit:function(){},resetTextContent:function(){},getRootHostContext:function(){return{}},getChildHostContext:function(){return{}},shouldDeprioritizeSubtree:function(){return!0},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=a()(u(u({},at),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:()=>{},cancelDeferredCallback:()=>{}})),{createContainer:ut,updateContainer:st,getPublicRootInstance:ct}=lt;class ft{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 nt;this.rootContainer=ut(t,!1,!1)}static get Native(){return Ze}start(){Je.regist(this.config.appName,this.render)}render(e){const{appName:t,entryPage:n,silent:r=!1,callback:o=(()=>{})}=this.config,{__instanceId__:a}=e;this.rootContainer.containerInfo.nodeId=a,r&&O(r),S(a,this.rootContainer);const l=i.a.createElement(n,e);return st(l,this.rootContainer,null,o),ct(this.rootContainer)}}ft.version="2.6.4";const dt={registerComponent(e,t){new ft({appName:e,entryPage:t}).start()}};class pt extends i.a.Component{render(){const e=this.props,{collapsable:t,style:n={}}=e,r=c(e,["collapsable","style"]),o=n;return"boolean"==typeof t&&(o.collapsable=t),i.a.createElement("div",Object.assign({nativeName:"View",style:o},r))}}function ht(e,t){let{style:n}=e,r=c(e,["style"]);const o=n;if(n&&(Array.isArray(n)?-1===n.filter(e=>"object"==typeof e&&e).findIndex(e=>e.color||e.colors)&&(o[0].color="#000"):"object"==typeof n&&void 0===n.color&&void 0===n.colors&&(o.color="#000")),r.text="","string"==typeof r.children)r.text=I(r.children);else if("number"==typeof r.children)r.text=I(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=I(e),r.children=r.text)}return i.a.createElement("p",Object.assign({ref:t,nativeName:"Text",style:o},r))}ht.displayName="Text";const mt=i.a.forwardRef(ht);function yt(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){0;return`${"hpfile://"}./${e}`}return e}mt.displayName="Text";class gt extends i.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=Z(e);return"function"==typeof t&&r.then(e=>t(e.width,e.height)),"function"==typeof n?r.catch(n):r.catch(e=>{}),r}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=>yt(e))),i}handleTintColor(e,t,n){t&&(e.tintColor=et(t)),Array.isArray(n)&&(e.tintColors=tt(n))}render(){const e=this.props,{children:t,style:n,imageStyle:r,imageRef:o,source:a,sources:l,src:s,srcs:f,tintColor:d,tintColors:p}=e,h=c(e,["children","style","imageStyle","imageRef","source","sources","src","srcs","tintColor","tintColors"]),m=this.getImageUrls({src:s,srcs:f,source:a,sources:l});"ios"===Xe.platform.OS?m.length&&(h.source=m.map(e=>({uri:e}))):"android"===Xe.platform.OS&&(1===m.length?[h.src]=m:m.length>1&&(h.srcs=m)),"string"==typeof h.defaultSource&&(h.defaultSource.indexOf("data:image/"),h.defaultSource=yt(h.defaultSource));const y=u({},n);return this.handleTintColor(y,d,p),h.style=y,t?i.a.createElement(pt,{style:n},i.a.createElement("img",Object.assign({},h,{nativeName:"Image",alt:"",ref:o,style:[{position:"absolute",left:0,right:0,top:0,bottom:0,width:n.width,height:n.height},r]})),t):i.a.createElement("img",Object.assign({},h,{nativeName:"Image",alt:"",ref:o}))}}gt.prefetch=ee;class bt{constructor(){this.Value=bt.Value}static Value(e){return e}static timing(e,t){return new Se({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}bt.View=pt,bt.Text=mt,bt.Image=gt;const vt={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 wt(e){return i.a.createElement("li",Object.assign({nativeName:"ListViewItem"},e))}class xt extends i.a.Component{constructor(){super(...arguments),this.instance=null}expandPullHeader(){Ue(this.instance,"expandPullHeader",[])}collapsePullHeader(e){"android"===Xe.platform.OS?Ue(this.instance,"collapsePullHeader",[e]):void 0!==e?Ue(this.instance,"collapsePullHeaderWithOptions",[e]):Ue(this.instance,"collapsePullHeader",[])}render(){const e=this.props,{children:t}=e,n=c(e,["children"]);return i.a.createElement("div",Object.assign({nativeName:"PullHeaderView",ref:e=>{this.instance=e}},n),t)}}class Et extends i.a.Component{constructor(){super(...arguments),this.instance=null}expandPullFooter(){Ue(this.instance,"expandPullFooter",[])}collapsePullFooter(){Ue(this.instance,"collapsePullFooter",[])}render(){const e=this.props,{children:t}=e,n=c(e,["children"]);return i.a.createElement("div",Object.assign({nativeName:"PullFooterView",ref:e=>{this.instance=e}},n),t)}}Et.defaultProps={sticky:!0};const kt={onDisappear:"onDisAppear"},St={onDisappear:"onDisappear"};class Ct extends i.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}convertName(e){return"android"===Xe.platform.OS&&kt[e]?kt[e]:"ios"===Xe.platform.OS&&St[e]?St[e]:e}scrollToIndex(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Ue(this.instance,"scrollToIndex",[e,t,n])}scrollToContentOffset(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Ue(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()}handleInitialListReady(){this.setState({initialListReady:!0})}getPullHeader(e,t,n){let r=null;return"function"==typeof e&&(r=i.a.createElement(xt,{ref:e=>{this.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),r}getPullFooter(e,t,n){let r=null;return"function"==typeof e&&(r=i.a.createElement(Et,{ref:e=>{this.pullFooter=e},onFooterPulling:t,onFooterReleased:n},e())),r}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))}render(){const e=this.props,{children:t,style:n,renderRow:r,renderPullHeader:o,renderPullFooter:a,getRowType:l,getRowStyle:s,getRowKey:f,dataSource:d,initialListSize:p,rowShouldSticky:h,onRowLayout:m,onHeaderPulling:y,onHeaderReleased:g,onFooterPulling:b,onFooterReleased:v,onAppear:w,onDisappear:x,onWillAppear:E,onWillDisappear:k}=e,S=c(e,["children","style","renderRow","renderPullHeader","renderPullFooter","getRowType","getRowStyle","getRowKey","dataSource","initialListSize","rowShouldSticky","onRowLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","onAppear","onDisappear","onWillAppear","onWillDisappear"]),C=[];if("function"==typeof r){const{initialListReady:e}=this.state;let{numberOfRows:t}=this.props;const c=this.getPullHeader(o,y,g),T=this.getPullFooter(a,b,v);!t&&d&&(t=d.length),e||(t=Math.min(t,p||10));for(let e=0;e{"function"==typeof n&&(t[this.convertName(n.name)]=()=>{n(e)})}),n&&C.push(i.a.createElement(wt,Object.assign({},t),n))}c&&C.unshift(c),T&&C.push(T),"function"==typeof h&&Object.assign(S,{rowShouldSticky:!0});const N=[w,x,E,k];S.exposureEventEnabled=N.some(e=>"function"==typeof e),S.numberOfRows=C.length,S.initialListSize=p,S.style=u({overflow:"scroll"},n)}return!S.onLoadMore&&S.onEndReached&&(S.onLoadMore=S.onEndReached),i.a.createElement("ul",Object.assign({ref:e=>{this.instance=e},nativeName:"ListView",initialListReady:this.handleInitialListReady},S),C.length?C:t)}}Ct.defaultProps={numberOfRows:0};class Tt extends i.a.Component{constructor(e){super(e),this.instance=null,this.refreshComplected=this.refreshCompleted.bind(this)}getRefresh(){const{getRefresh:e}=this.props;return"function"==typeof e&&e()||null}startRefresh(){Ue(this.instance,"startRefresh",null)}refreshCompleted(){Ue(this.instance,"refreshComplected",null)}render(){const e=this.props,{children:t}=e,n=c(e,["children"]);return i.a.createElement("div",Object.assign({nativeName:"RefreshWrapper",ref:e=>{this.instance=e}},n),i.a.createElement("div",{nativeName:"RefreshWrapperItemView",style:[{left:0,right:0,position:"absolute"}]},this.getRefresh()),t)}}class Nt{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(e&&e.component){if(!this.routeList[e.routeName]){new ft({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0}delete e.component}const t=[e];this.stack.push(e),Ue(this.instance,"push",t)}pop(e){if(this.stack.size>1){const t=[e];this.stack.pop(),Ue(this.instance,"pop",t)}}clear(){this.stack.clear()}render(){const e=this.props,{initialRoute:{component:t}}=e,n=c(e.initialRoute,["component"]),r=c(e,["initialRoute"]);return r.initialRoute=n,i.a.createElement("div",Object.assign({nativeName:"Navigator",ref:e=>{this.instance=e}},r))}}function Pt(e){return i.a.createElement("div",Object.assign({nativeName:"ViewPagerItem"},e,{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}class It extends i.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&&Ue(this.instance,"setPage",[e])}setPageWithoutAnimation(e){"number"==typeof e&&Ue(this.instance,"setPageWithoutAnimation",[e])}render(){const e=this.props,{children:t,onPageScrollStateChanged:n}=e,r=c(e,["children","onPageScrollStateChanged"]);let o=[];return Array.isArray(t)?o=t.map(e=>{const t={};return"string"==typeof e.key&&(t.key="viewPager_"+e.key),i.a.createElement(Pt,Object.assign({},t),e)}):o.push(i.a.createElement(Pt,null,t)),"function"==typeof n&&(r.onPageScrollStateChanged=this.onPageScrollStateChanged),i.a.createElement("div",Object.assign({nativeName:"ViewPager",ref:e=>{this.instance=e}},r),o)}}class At extends i.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=>{Ue(this.instance,"getValue",t=>e(t.text))})}setValue(e){return Ue(this.instance,"setValue",[e]),e}focus(){Ue(this.instance,"focusTextInput",[])}blur(){Ue(this.instance,"blurTextInput",[])}showInputMethod(){Ue(this.instance,"showInputMethod",[])}hideInputMethod(){Ue(this.instance,"hideInputMethod",[])}clear(){Ue(this.instance,"clear",[])}_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,n=e;"android"===Xe.platform.OS&&(n.keyboardHeight/=Xe.screen.scale),"function"==typeof t&&t(n)}render(){const e=u({},this.props);return["underlineColorAndroid","placeholderTextColor","placeholderTextColors"].forEach(t=>{"string"==typeof this.props[t]&&(Array.isArray(e.style)?e.style.push({[t]:this.props[t]}):"object"==typeof e.style?e.style[t]=this.props[t]:e.style={[t]:this.props[t]},e[t]=void 0)}),i.a.createElement("div",Object.assign({nativeName:"TextInput"},e,{ref:e=>{this.instance=e},onChangeText:this._onChangeText,onKeyboardWillShow:this._onKeyboardWillShow}))}}const Rt=Xe.window.scale;let Ot=Math.round(.4*Rt)/Rt;function zt(e){return e}0===Ot&&(Ot=1/Rt);var jt=Object.freeze({__proto__:null,get hairlineWidth(){return Ot},create:zt});const Lt={baseVertical:{flexGrow:1,flexShrink:1,flexDirection:"column",overflow:"scroll"},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:"row",overflow:"scroll"},contentContainerVertical:{collapse:!1,flexDirection:"column"},contentContainerHorizontal:{collapse:!1,flexDirection:"row"}};class Ft extends i.a.Component{constructor(){super(...arguments),this.instance=null}scrollTo(e,t,n=!0){let r=e,i=t,o=n;"number"==typeof e||"object"==typeof e&&e&&({x:r,y:i,animated:o}=e),r=r||0,i=i||0,o=!!o,Ue(this.instance,"scrollTo",[r,i,o])}scrollToWithDuration(e=0,t=0,n=1e3){Ue(this.instance,"scrollToWithOptions",[{x:e,y:t,duration:n}])}render(){const{horizontal:e,contentContainerStyle:t,children:n,style:r}=this.props,o=[e?Lt.contentContainerHorizontal:Lt.contentContainerVertical,t],a=e?Object.assign({},r,Lt.baseHorizontal):Object.assign({},r,Lt.baseVertical);return i.a.createElement("div",Object.assign({nativeName:"ScrollView",ref:e=>{this.instance=e}},this.props,{style:a}),i.a.createElement(pt,{style:o},n))}}const Mt={modal:{position:"absolute"},container:{position:"absolute",left:0,top:0}};class Ut extends i.a.Component{constructor(e){super(e),this.eventSubscription=null}componentDidMount(){"ios"===Xe.platform.OS&&(this.eventSubscription=new M("modalDismissed"),this.eventSubscription.addCallback(e=>{const{primaryKey:t,onDismiss:n}=this.props;e.primaryKey===t&&"function"==typeof n&&n()}))}componentWillUnmount(){"ios"===Xe.platform.OS&&this.eventSubscription&&this.eventSubscription.unregister()}render(){const{children:e,visible:t,transparent:n,animated:r}=this.props;let{animationType:o}=this.props;if(!1===t)return null;const a={backgroundColor:n?"transparent":"white"};return o||(o="none",r&&(o="slide")),i.a.createElement("div",Object.assign({nativeName:"Modal",animationType:o,transparent:n,style:Mt.modal},this.props),i.a.createElement(pt,{style:[Mt.container,a]},e))}}Ut.defaultProps={visible:!0};class Ht extends i.a.Component{constructor(e){super(e);const{requestFocus:t}=this.props;this.state={isFocus:!!t},this.handleFocus=this.handleFocus.bind(this)}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})}render(){const{requestFocus:e,children:t,nextFocusDownId:n,nextFocusUpId:r,nextFocusLeftId:o,nextFocusRightId:a,style:l,noFocusStyle:s,focusStyle:c,onClick:f}=this.props,{isFocus:d}=this.state,p=i.a.Children.only(t);let h;p&&p.child&&p.child.memoizedProps&&p.child.memoizedProps.nativeName?h=p.child.memoizedProps.nativeName:p&&p.type&&p.type.name&&(h=p.type.name);const m=n&&Me(n),y=r&&Me(r),g=o&&Me(o),b=a&&Me(a);let v=l;if("Text"!==h){const e=p.memoizedProps.style;v=u(u({},v),e)}if(Object.assign(v,d?c:s),"Text"===h)return i.a.createElement(pt,{focusable:!0,nextFocusDownId:m,nextFocusUpId:y,nextFocusLeftId:g,nextFocusRightId:b,requestFocus:e,style:v,onClick:f,onFocus:this.handleFocus},p);const{children:w}=p.memoizedProps;return i.a.cloneElement(p,{nextFocusDownId:n,nextFocusUpId:r,nextFocusLeftId:o,nextFocusRightId:a,requestFocus:e,onClick:f,focusable:!0,children:w,style:v,onFocus:this.handleFocus})}}function Dt(e){return i.a.createElement("iframe",Object.assign({title:"hippy",nativeName:"WebView"},e))}let Wt;class Vt{constructor(e,t,n){if(this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),Wt||(Wt=new M("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!e||"string"!=typeof e)throw new TypeError("Invalid WebSocket url");const r=u({},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 protocals");r["Sec-WebSocket-Protocol"]=t}const i={headers:r,url:e};this.url=e,this.webSocketCallbackId=Wt.addCallback(this.onWebSocketEvent),p.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,p.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);p.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,Wt.removeCallback(this.webSocketCallbackId));const n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}e.WebSocket=Vt;const{AsyncStorage:Bt,BackAndroid:$t,Bridge:qt,Clipboard:Qt,Cookie:Kt,Device:Gt,HippyRegister:Yt,ImageLoader:Xt,NetworkInfo:Jt,UIManager:Zt}=Ze,{callNative:en,callNativeWithPromise:tn,callNativeWithCallbackId:nn,removeNativeCallback:rn}=qt,on=null,an=console,ln=Gt.platform,un=ft,sn=ft,cn=gt,fn=Yt,dn=H,pn=M,hn={get:e=>Gt[e]},mn={get:()=>Gt.screen.scale};t.default=ft}.call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/object-assign/index.js":function(e,t,n){"use strict"; + */(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__={});const{__GLOBAL__:E}=e;E.nodeId=0,E.animationId=0,E.renderCount=0;const{asyncStorage:k,bridge:S,device:C,document:T,register:N,on:_,off:P,emit:I}=e.Hippy;var A=Object.freeze({__proto__:null,addEventListener:_,removeEventListener:P,dispatchEvent:I,AsyncStorage:k,Bridge:S,Device:C,HippyRegister:N,UIManager:T});class R{constructor(e){this.handlerContainer={},this.nextIdForHandler=0,this.eventName=e}addEventHandler(e,t){if(!e)throw new TypeError("Invalid arguments");const n=this.nextIdForHandler;this.nextIdForHandler+=1;const r={id:n,eventHandler:e,context:t},i="eventHandler_"+n;return this.handlerContainer[i]=r,n}removeEventHandler(e){if("number"!=typeof e)throw new TypeError("Invalid arguments");const t="eventHandler_"+e;this.handlerContainer[t]&&delete this.handlerContainer[t]}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))})}getEventListeners(){return Object.keys(this.handlerContainer).filter(e=>this.handlerContainer[e]).map(e=>this.handlerContainer[e])}getHandlerSize(){return Object.keys(this.handlerContainer).length}}let O,z;function j(e,t){z=e,O=t}function L(){if(!z)throw new Error("getRootViewId must execute after setRootContainer");return z}function F(e){if(!O)return null;const{current:t}=O,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 M(e){return F(t=>t.stateNode&&t.stateNode.nodeId===e)}const U=new RegExp(/^\d+$/);let H=!1;function D(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)))}const W=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function V(e){return"[object Function]"===Object.prototype.toString.call(e)}function B(e){H=e}const $=new Map;function q(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for getHippyEventHub: "+e);return $.get(e)||null}const Q={registerNativeEventHub:function(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for registerNativeEventHub: "+e);let t=$.get(e);return t||(t=new R(e),$.set(e,t)),t},getHippyEventHub:q,unregisterNativeEventHub:function(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for unregisterNativeEventHub: "+e);$.has(e)&&$.delete(e)},receiveNativeEvent:function(e){if(!e||!(e instanceof Array)||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");const r=q(t);r&&r.notifyEvent(n)},receiveNativeGesture:function(e){if(!e)return;const{id:t}=e,n=M(t);if(!n)return;let r=!1,i=n,{name:o}=e;do{if(i.memoizedProps&&!i.memoizedProps[o]&&"onClick"===o&&i.memoizedProps.onPress&&(o="onPress"),i.memoizedProps&&i.memoizedProps[o]&&"function"==typeof i.memoizedProps[o])try{r=i.memoizedProps[o](e)}catch(e){console.reportUncaughtException(e)}if("boolean"!=typeof r&&(r=!0),!1===r)for(i=i.return;i&&5!==i.tag;)i=i.return}while(!r&&i)},receiveUIComponentEvent:function(e){if(!e||!Array.isArray(e)||e.length<2)return;const[t,n,r]=e;if("number"!=typeof t||"string"!=typeof n)return;const i=M(t);i&&i.memoizedProps&&i.memoizedProps[n]&&"function"==typeof i.memoizedProps[n]&&i.memoizedProps[n](r)}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=Q);class K{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 G{constructor(e){this.eventName=e,this.listenerIds=[]}addCallback(e,t){if("function"!=typeof e)throw new TypeError("Invalid arguments");const n=Q.registerNativeEventHub(this.eventName);if(!n)throw new ReferenceError("No listeners for "+this.eventName);const r=n.addEventHandler(e,t);if("number"!=typeof r)throw new Error("Fail to addEventHandler");return this.listenerIds.push(r),r}removeCallback(e){if("number"!=typeof e)throw new TypeError("Invalid arguments");const t=Q.getHippyEventHub(this.eventName);if(!t)throw new ReferenceError("No listeners for "+this.eventName);t.removeEventHandler(e);const n=this.listenerIds.length;for(let t=0;t255?255:t}function re(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ie(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=ie(i,r,e+1/3),a=ie(i,r,e),l=ie(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function ae(e){return(parseFloat(e)%360+360)%360/360}function le(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}var ue=Object.freeze({__proto__:null,getString:function(){return S.callNativeWithPromise("ClipboardModule","getString")},setString:function(e){S.callNative("ClipboardModule","setString",e)}});var se=Object.freeze({__proto__:null,getCookies:function(e){return S.callNativeWithPromise("network","getCookie",e)},setCookie:function(e,t,n){let r="";"string"==typeof n&&(r=n),n instanceof Date&&(r=n.toUTCString()),S.callNative("network","setCookie",e,t,r)}});function ce(e){return S.callNativeWithPromise("ImageLoaderModule","getSize",e)}function fe(e){S.callNative("ImageLoaderModule","prefetch",e)}var de=Object.freeze({__proto__:null,getSize:ce,prefetch:fe});const pe=new Map;let he;class me{constructor(e,t){this.eventName=e,this.listener=t}remove(){this.eventName&&this.listener&&(ye(this.eventName,this.listener),this.listener=void 0)}}function ye(e,t){if(t instanceof me)return void t.remove();let n=e;e&&"change"===e&&(n="networkStatusDidChange");he.listenerSize(n)<=1&&S.callNative("NetInfo","removeListener",n);const r=pe.get(t);r&&(r.remove(),pe.delete(t))}var ge=Object.freeze({__proto__:null,addEventListener:function(e,t){he=new X;let n=e;n&&"change"===n&&(n="networkStatusDidChange"),he.listenerSize(n)<1&&S.callNative("NetInfo","addListener",n);const r=he.addListener(n,e=>{t(e)});return pe.set(r,r),new me(n,t)},removeEventListener:ye,fetch:function(){return S.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)}});const be={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode")};let ve=!0,we=[];function xe(){ve&&Be()}function Ee(e){ve&&(ve=!1,Promise.resolve().then(()=>{(function(e){const t=[];for(let n=0;n{switch(t.type){case be.createNode:t.nodes,He(e,t.nodes);break;case be.updateNode:t.nodes,"ios"===C.platform.OS?t.nodes.forEach(t=>De(e,[t])):De(e,t.nodes);break;case be.deleteNode:t.nodes,"ios"===C.platform.OS?t.nodes.forEach(t=>We(e,[t])):We(e,t.nodes)}}),$e(),we=[],ve=!0}))}function ke(e){const t=e.attributes,{children:n}=t;return x(t,l)}function Se(e,t){if(!t.nativeName)return null;if(t.meta.skipAddToDom)return null;if(!t.meta.component)throw new Error("Specific tag is not supported yet: "+t.tagName);return{id:t.nodeId,pId:t.parentNode&&t.parentNode.nodeId||e,index:t.index,name:t.nativeName,props:v(v({},ke(t)),{},{style:t.style})}}function Ce(e,t){const n=[];return t.traverseChildren(t=>{const r=Se(e,t);r&&n.push(r)}),n}function Te(e){return!!O&&e instanceof O.containerInfo.constructor}function Ne(e,t,n=-1){if(!e)return;if(t.meta.skipAddToDom)return;const r=L();if(Te(e)&&!e.isMounted){const n=Ce(r,t);xe(),we.push({type:be.createNode,nodes:n}),Ee(r),e.traverseChildren(e=>{e.isMounted||(e.isMounted=!0)})}else if(e.isMounted&&!t.isMounted){const e=Ce(r,t);xe(),we.push({type:be.createNode,nodes:e}),Ee(r),t.traverseChildren(e=>{e.isMounted||(e.isMounted=!0)})}}function _e(e,t){if(!t||t.meta.skipAddToDom)return;t.isMounted=!1,t.traverseChildren(e=>{e.isMounted&&(e.isMounted=!1)});const n=L(),r=[{id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:n,index:t.index}];xe(),we.push({type:be.deleteNode,nodes:r}),Ee(n)}function Pe(e){if(!e.isMounted)return;const t=L(),n=Se(t,e);xe(),n&&we.push({type:be.updateNode,nodes:[n]}),Ee(t)}let Ie=0;class Ae{constructor(){this.meta={component:{}},this._isMounted=!1,this.index=0,this.childNodes=[],this.parentNode=null,this.prevSibling=null,this.nextSibling=null,this.nodeId=(Ie+=1,Ie%10==0&&(Ie+=1),Ie)}toString(){return this.constructor.name}get firstChild(){return this.childNodes.length?this.childNodes[0]:null}get lastChild(){return this.childNodes.length?this.childNodes[this.childNodes.length-1]:null}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);return e.parentNode=this,e.nextSibling=t,e.prevSibling=this.childNodes[n-1],t.prevSibling=e,this.childNodes.splice(n,0,e),Ne(this,e,n)}moveChild(e,t){if(!e)throw new Error("Can't mvoe 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),r=this.childNodes.indexOf(t);if(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]),_e(0,e),this.childNodes.splice(r,0,e),this.childNodes.splice(n+(re.index>-1).indexOf(e))}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.");e.parentNode=this,this.lastChild&&(e.prevSibling=this.lastChild,this.lastChild.nextSibling=e),this.childNodes.push(e),Ne(this,e,this.childNodes.length-1)}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.");e.meta.skipAddToDom||(_e(0,e),e.prevSibling&&(e.prevSibling.nextSibling=e.nextSibling,e.prevSibling=null),e.nextSibling&&(e.nextSibling.prevSibling=e.prevSibling,e.nextSibling=null),this.childNodes=this.childNodes.filter(t=>t!==e))}findChild(e){if(e(this))return this;if(this.childNodes.length)for(let t=0;t!e.meta.skipAddToDom).indexOf(this):0,this.index=t,e(this),this.childNodes.length&&this.childNodes.forEach(t=>{this.traverseChildren.call(t,e)})}}function Re(e){return"loop"===e?-1:e}const Oe=new X;function ze(e,t){return"color"===e&&["number","string"].indexOf(typeof t)>=0?ft(t):t}class je{constructor(e){let t=0;if(e.startValue&&e.startValue.constructor&&"Animation"===e.startValue.constructor.name)t={animationId:e.startValue.animationId};else{const{startValue:n}=e;t=ze(e.valueType,n)}const n=ze(e.valueType,e.toValue);this.mode=e.mode||"timing",this.delay=e.delay||0,this.startValue=t||0,this.toValue=n||0,this.valueType=e.valueType||void 0,this.duration=e.duration||0,this.direction=e.direction||"center",this.timingFunction=e.timingFunction||"linear",this.repeatCount=Re(e.repeatCount||0),this.inputRange=e.inputRange||[],this.outputRange=e.outputRange||[],this.animationId=lt.callNativeWithCallbackId("AnimationModule","createAnimation",!0,this.mode,Object.assign({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.destroy=this.destroy.bind(this),this.onRNfqbAnimationStart=this.onAnimationStart.bind(this),this.onRNfqbAnimationEnd=this.onAnimationEnd.bind(this),this.onRNfqbAnimationCancel=this.onAnimationCancel.bind(this),this.onRNfqbAnimationRepeat=this.onAnimationRepeat.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(){this.animationStartListener&&this.animationStartListener.remove(),this.animationEndListener&&this.animationEndListener.remove(),this.animationCancelListener&&this.animationCancelListener.remove(),this.animationRepeatListener&&this.animationRepeatListener.remove()}start(){this.removeEventListener();let e="onAnimation";e="onHippyAnimation","function"==typeof this.onAnimationStartCallback&&(this.animationStartListener=Oe.addListener(e+"Start",e=>{e===this.animationId&&(this.animationStartListener.remove(),"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback())})),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=Oe.addListener(e+"End",e=>{e===this.animationId&&(this.animationEndListener.remove(),"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback())})),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=Oe.addListener(e+"Cancel",e=>{e===this.animationId&&(this.animationCancelListener.remove(),"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback())})),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=Oe.addListener(e+"Repeat",e=>{e===this.animationId&&"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()})),lt.callNative("AnimationModule","startAnimation",this.animationId)}destory(){this.destroy()}destroy(){this.removeEventListener(),lt.callNative("AnimationModule","destroyAnimation",this.animationId)}pause(){lt.callNative("AnimationModule","pauseAnimation",this.animationId)}resume(){lt.callNative("AnimationModule","resumeAnimation",this.animationId)}updateAnimation(e){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=0;if(e.startValue instanceof je)t={animationId:e.startValue.animationId};else{const{startValue:n}=e;t=ze(this.valueType,n)}this.startValue=t||0}else"repeatCount"===t?this.repeatCount=Re(e.repeatCount||0):Object.defineProperty(this,t,{value:n})}),lt.callNative("AnimationModule","updateAnimation",this.animationId,Object.assign({delay:this.delay,startValue:this.startValue,toValue:ze(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 Le=new X;class Fe{constructor(e){this.animationList=[],e.children.forEach(e=>{this.animationList.push({animationId:e.animation.animationId,follow:e.follow||!1})}),this.animationId=lt.callNativeWithCallbackId("AnimationModule","createAnimationSet",!0,{repeatCount:Re(e.repeatCount||0),children:this.animationList,virtual:e.virtual}),this.onRNfqbAnimationStart=this.onAnimationStart.bind(this),this.onRNfqbAnimationEnd=this.onAnimationEnd.bind(this),this.onRNfqbAnimationCancel=this.onAnimationCancel.bind(this),this.onRNfqbAnimationRepeat=this.onAnimationRepeat.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(){this.animationStartListener&&this.animationStartListener.remove(),this.animationEndListener&&this.animationEndListener.remove(),this.animationCancelListener&&this.animationCancelListener.remove(),this.animationRepeatListener&&this.animationRepeatListener.remove()}start(){this.removeEventListener();let e="onAnimation";e="onHippyAnimation","function"==typeof this.onAnimationStartCallback&&(this.animationStartListener=Le.addListener(e+"Start",e=>{e===this.animationId&&(this.animationStartListener.remove(),"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback())})),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=Le.addListener(e+"End",e=>{e===this.animationId&&(this.animationEndListener.remove(),"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback())})),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=Le.addListener(e+"Cancel",e=>{e===this.animationId&&(this.animationCancelListener.remove(),"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback())})),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=Le.addListener(e+"Repeat",e=>{e===this.animationId&&"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()})),lt.callNative("AnimationModule","startAnimation",this.animationId)}destory(){this.destroy()}destroy(){this.removeEventListener(),this.animationList.forEach(e=>Number.isInteger(e.animationId)&<.callNative("AnimationModule","destroyAnimation",e.animationId)),lt.callNative("AnimationModule","destroyAnimation",this.animationId)}pause(){lt.callNative("AnimationModule","pauseAnimation",this.animationId)}resume(){lt.callNative("AnimationModule","resumeAnimation",this.animationId)}onAnimationStart(e){this.onAnimationStartCallback=e}onAnimationEnd(e){this.onAnimationEndCallback=e}onAnimationCancel(e){this.onAnimationCancelCallback=e}onAnimationRepeat(e){this.onAnimationRepeatCallback=e}}const Me={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"};class Ue extends Ae{constructor(e){super(),this.id="",this.style={},this.attributes={},this.tagName=e}get nativeName(){return this.meta.component.name}toString(){return`${this.tagName}:(${this.nativeName})`}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,U.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=v(v({},n),e)}):"object"==typeof e&&e&&(n=v(v({},n),e))}),Object.keys(n).forEach(e=>{const t=n[e];if(Object.prototype.hasOwnProperty.call(Me,e)&&(e=Me[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 je||r instanceof Fe?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 null===t&&void 0!==this.style[e]?this.style[e]=void 0:t instanceof je||t instanceof Fe?this.style[e]={animationId:t.animationId}:e.toLowerCase().indexOf("colors")>-1?this.style[e]=dt(t):e.toLowerCase().indexOf("color")>-1?this.style[e]=ft(t):this.style[e]=t})}setAttribute(e,t){try{if("boolean"==typeof this.attributes[e]&&""===t&&(t=!0),void 0===e)return void Pe(this);let n=!1;if([{match:()=>["id"].indexOf(e)>=0,action:()=>(t===this.id||(this.id=t,function(e){if(!e.isMounted)return;const t=L(),n=Ce(t,e);xe(),we.push({type:be.updateNode,nodes:n}),Ee(t)}(this)),!0)},{match:()=>["value","defaultValue","placeholder"].indexOf(e)>=0,action:()=>(this.attributes[e]=D(t),!1)},{match:()=>["text"].indexOf(e)>=0,action:()=>(this.attributes[e]=t,!1)},{match:()=>["numberOfRows"].indexOf(e)>=0,action:()=>(this.attributes[e]=t,"ios"!==ut.platform.OS)},{match:()=>["onPress"].indexOf(e)>=0,action:()=>(this.attributes.onClick=!0,!1)},{match:()=>["style"].indexOf(e)>=0,action:()=>"object"!=typeof t||null==t||(this.setStyleAttribute(t),!1)},{match:()=>!0,action:()=>(this.attributes[e]="function"==typeof t||t,!1)}].some(e=>!!e.match()&&(n=e.action(),!0)),n)return;let r=!1;Object.keys(this.style).some(e=>{const t=this.style[e];if(t&&Array.isArray(t)&&"transform"===e)for(let e=0;e-1?dt(r):i.toLowerCase().indexOf("color")>-1?ft(r):function(e){if("number"==typeof e)return e;if("string"==typeof e&&W.test(e))try{return parseFloat(e)}catch(t){return e}return e}(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||Pe(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)}),Pe(this)}}}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=D(e)).replace(/ /g," ").replace(/\xc2/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}const{createNode:He,updateNode:De,deleteNode:We,flushBatch:Ve,startBatch:Be,endBatch:$e,sendRenderError:qe}=T,Qe=M;function Ke(e){if(e instanceof Ue)return e;const t=e._reactInternalFiber;if(t&&t.child){let e=t.child;for(;e&&!(e.stateNode instanceof Ue);)e=e.child;return e&&e.stateNode?e.stateNode:null}return null}function Ge(e){let t=e;if("string"==typeof e){const n=F(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=Ke(t);return e?e.nodeId:0}return t.nodeId}function Ye(e,t,...n){let{nativeName:r,nodeId:i}=e;if(!i||!r){const t=Ke(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;V(o)&&(a=o,o=[]);null!==L()&&("ios"===C.platform.OS?(V(a)&&Array.isArray(o)&&o.push(a),S.callNative("UIManagerModule","callUIFunction",[r,i,t,o])):"android"===C.platform.OS&&(V(a)?S.callNative("UIManagerModule","callUIFunction",[i,t,o],a):S.callNative("UIManagerModule","callUIFunction",[i,t,o])))}function Xe(e,t,n){const r=Ge(t);return new Promise((t,i)=>r?S.callNative("UIManagerModule",e,r,e=>(n&&V(n)&&n(e),"this view is null"===e?i(new Error("Android cannot get the node")):t(e))):(n&&V(n)&&n("this view is null"),i(new Error(e+" cannot get nodeId"))))}var Je=Object.freeze({__proto__:null,createNode:He,updateNode:De,deleteNode:We,flushBatch:Ve,startBatch:Be,endBatch:$e,sendRenderError:qe,getNodeById:Qe,getNodeIdByRef:Ge,getElementFromFiberRef:Ke,callUIFunction:Ye,measureInWindow:function(e,t){return Xe("measureInWindow",e,t)},measureInAppWindow:function(e,t){return"android"===C.platform.OS?Xe("measureInWindow",e,t):Xe("measureInAppWindow",e,t)}});const Ze=new X,et=new Set,tt={exitApp(){S.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(S.callNative("DeviceEventModule","setListenBackPress",!0),et.add(e),{remove(){tt.removeListener(e)}}),removeListener(e){et.delete(e),0===et.size&&S.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){Ze.addListener("hardwareBackPress",()=>{let e=!0;[...et].reverse().every(t=>"function"!=typeof t||!t()||(e=!1,!1)),e&&tt.exitApp()})}},nt=(tt.initEventListener(),tt),{addEventListener:rt,removeEventListener:it,dispatchEvent:ot,AsyncStorage:at,Bridge:lt,Device:ut,HippyRegister:st}=A;var ct=Object.freeze({__proto__:null,addEventListener:rt,removeEventListener:it,dispatchEvent:ot,AsyncStorage:at,BackAndroid:nt,Bridge:lt,Clipboard:ue,Cookie:se,Device:ut,HippyRegister:st,ImageLoader:de,NetworkInfo:ge,UIManager:Je});function ft(e,t={}){if(Number.isInteger(e))return e;let n=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(Z,e)?Z[e]:(t=te.rgb.exec(e),Array.isArray(t)?(ne(t[1])<<24|ne(t[2])<<16|ne(t[3])<<8|255)>>>0:(t=te.rgba.exec(e),t?(ne(t[1])<<24|ne(t[2])<<16|ne(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(ae(t[1]),le(t[2]),le(t[3])))>>>0:(t=te.hsla.exec(e),t?(oe(ae(t[1]),le(t[2]),le(t[3]))|re(t[4]))>>>0:null))))))))}(e);return t.platform||(t.platform="android"),null===n?0:(n=(n<<24|n>>>8)>>>0,"android"===t.platform&&(n|=0),n)}function dt(e,t){return Array.isArray(e)?e.map(e=>ft(e,t)):[0]}class pt extends Ae{constructor(){super(),this.documentElement=new Ue("document")}createElement(e){return new Ue(e)}createElementNS(e,t){return new Ue(`${e}:${t}`)}}pt.createElement=pt.prototype.createElement,pt.createElementNS=pt.prototype.createElementNS;var ht=Array.isArray,mt=Object.keys,yt=Object.prototype.hasOwnProperty;var gt=Object.freeze({__proto__:null,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)},commitMount:function(){},commitTextUpdate:function(){},commitUpdate:function(e,t){Object.keys(t).forEach(n=>e.setAttribute(n,t[n]))},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),o},createTextInstance:function(e,t){const n=t.createElement("p");return n.setAttribute("text",D(e)),n.meta={component:{name:"Text",skipAddToDom:!0}},n},finalizeContainerChildren:function(){},finalizeInitialChildren:function(){return!0},getPublicInstance:function(e){return e},insertBefore:function(e,t,n){e.childNodes.indexOf(t)>0?e.moveChild(t,n):e.insertBefore(t,n)},prepareForCommit:function(){},prepareUpdate:function(e,t,n,r){const i={};return 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:"function"==typeof t&&"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=ht(t),l=ht(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=mt(t);if((i=d.length)!==mt(n).length)return!1;for(r=i;0!=r--;)if(!yt.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)}}),Object.keys(i).length?i:null},replaceContainerChildren:function(){},removeChild:function(e,t){e.removeChild(t)},removeChildFromContainer:function(e,t){e.removeChild(t)},resetAfterCommit:function(){},resetTextContent:function(){},getRootHostContext:function(){return{}},getChildHostContext:function(){return{}},shouldDeprioritizeSubtree:function(){return!0},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 bt=a()(v(v({},gt),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:()=>{},cancelDeferredCallback:()=>{}})),{createContainer:vt,updateContainer:wt,getPublicRootInstance:xt}=bt;class Et{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 pt;this.rootContainer=vt(t,!1,!1)}static get Native(){return ct}start(){st.regist(this.config.appName,this.render)}render(e){const{appName:t,entryPage:n,silent:r=!1,callback:o=(()=>{})}=this.config,{__instanceId__:a}=e;this.rootContainer.containerInfo.nodeId=a,r&&B(r),j(a,this.rootContainer);const l=i.a.createElement(n,e);return wt(l,this.rootContainer,null,o),xt(this.rootContainer)}}Et.version="2.6.5";const kt={registerComponent(e,t){new Et({appName:e,entryPage:t}).start()}};class St extends i.a.Component{render(){const e=this.props,{collapsable:t,style:n={}}=e,r=x(e,u),o=n;return"boolean"==typeof t&&(o.collapsable=t),i.a.createElement("div",Object.assign({nativeName:"View",style:o},r))}}function Ct(e,t){let{style:n}=e,r=x(e,s);const o=n;if(n&&(Array.isArray(n)?-1===n.filter(e=>"object"==typeof e&&e).findIndex(e=>e.color||e.colors)&&(o[0].color="#000"):"object"==typeof n&&void 0===n.color&&void 0===n.colors&&(o.color="#000")),r.text="","string"==typeof r.children)r.text=D(r.children);else if("number"==typeof r.children)r.text=D(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=D(e),r.children=r.text)}return i.a.createElement("p",Object.assign({ref:t,nativeName:"Text",style:o},r))}Ct.displayName="Text";const Tt=i.a.forwardRef(Ct);function Nt(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){0;return`${"hpfile://"}./${e}`}return e}Tt.displayName="Text";class _t extends i.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=ce(e);return"function"==typeof t&&r.then(e=>t(e.width,e.height)),"function"==typeof n?r.catch(n):r.catch(e=>{}),r}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=>Nt(e))),i}handleTintColor(e,t,n){t&&(e.tintColor=ft(t)),Array.isArray(n)&&(e.tintColors=dt(n))}render(){const e=this.props,{children:t,style:n,imageStyle:r,imageRef:o,source:a,sources:l,src:u,srcs:s,tintColor:f,tintColors:d}=e,p=x(e,c),h=this.getImageUrls({src:u,srcs:s,source:a,sources:l});"ios"===ut.platform.OS?h.length&&(p.source=h.map(e=>({uri:e}))):"android"===ut.platform.OS&&(1===h.length?[p.src]=h:h.length>1&&(p.srcs=h)),"string"==typeof p.defaultSource&&(p.defaultSource.indexOf("data:image/"),p.defaultSource=Nt(p.defaultSource));const m=v({},n);return this.handleTintColor(m,f,d),p.style=m,t?i.a.createElement(St,{style:n},i.a.createElement("img",Object.assign({},p,{nativeName:"Image",alt:"",ref:o,style:[{position:"absolute",left:0,right:0,top:0,bottom:0,width:n.width,height:n.height},r]})),t):i.a.createElement("img",Object.assign({},p,{nativeName:"Image",alt:"",ref:o}))}}_t.prefetch=fe;class Pt{constructor(){this.Value=Pt.Value}static Value(e){return e}static timing(e,t){return new je({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}Pt.View=St,Pt.Text=Tt,Pt.Image=_t;const It={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 At(e){return i.a.createElement("li",Object.assign({nativeName:"ListViewItem"},e))}class Rt extends i.a.Component{constructor(){super(...arguments),this.instance=null}expandPullHeader(){Ye(this.instance,"expandPullHeader",[])}collapsePullHeader(e){"android"===ut.platform.OS?Ye(this.instance,"collapsePullHeader",[e]):void 0!==e?Ye(this.instance,"collapsePullHeaderWithOptions",[e]):Ye(this.instance,"collapsePullHeader",[])}render(){const e=this.props,{children:t}=e,n=x(e,f);return i.a.createElement("div",Object.assign({nativeName:"PullHeaderView",ref:e=>{this.instance=e}},n),t)}}class Ot extends i.a.Component{constructor(){super(...arguments),this.instance=null}expandPullFooter(){Ye(this.instance,"expandPullFooter",[])}collapsePullFooter(){Ye(this.instance,"collapsePullFooter",[])}render(){const e=this.props,{children:t}=e,n=x(e,d);return i.a.createElement("div",Object.assign({nativeName:"PullFooterView",ref:e=>{this.instance=e}},n),t)}}Ot.defaultProps={sticky:!0};const zt={onDisappear:"onDisAppear"},jt={onDisappear:"onDisappear"};class Lt extends i.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}convertName(e){return"android"===ut.platform.OS&&zt[e]?zt[e]:"ios"===ut.platform.OS&&jt[e]?jt[e]:e}scrollToIndex(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Ye(this.instance,"scrollToIndex",[e,t,n])}scrollToContentOffset(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Ye(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()}handleInitialListReady(){this.setState({initialListReady:!0})}getPullHeader(e,t,n){let r=null;return"function"==typeof e&&(r=i.a.createElement(Rt,{ref:e=>{this.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),r}getPullFooter(e,t,n){let r=null;return"function"==typeof e&&(r=i.a.createElement(Ot,{ref:e=>{this.pullFooter=e},onFooterPulling:t,onFooterReleased:n},e())),r}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))}render(){const e=this.props,{children:t,style:n,renderRow:r,renderPullHeader:o,renderPullFooter:a,getRowType:l,getRowStyle:u,getRowKey:s,dataSource:c,initialListSize:f,rowShouldSticky:d,onRowLayout:h,onHeaderPulling:m,onHeaderReleased:y,onFooterPulling:g,onFooterReleased:b,onAppear:w,onDisappear:E,onWillAppear:k,onWillDisappear:S}=e,C=x(e,p),T=[];if("function"==typeof r){const{initialListReady:e}=this.state;let{numberOfRows:t}=this.props;const p=this.getPullHeader(o,m,y),x=this.getPullFooter(a,g,b);!t&&c&&(t=c.length),e||(t=Math.min(t,f||10));for(let e=0;e{"function"==typeof n&&(t[this.convertName(n.name)]=()=>{n(e)})}),n&&T.push(i.a.createElement(At,Object.assign({},t),n))}p&&T.unshift(p),x&&T.push(x),"function"==typeof d&&Object.assign(C,{rowShouldSticky:!0});const N=[w,E,k,S];C.exposureEventEnabled=N.some(e=>"function"==typeof e),C.numberOfRows=T.length,C.initialListSize=f,C.style=v({overflow:"scroll"},n)}return!C.onLoadMore&&C.onEndReached&&(C.onLoadMore=C.onEndReached),i.a.createElement("ul",Object.assign({ref:e=>{this.instance=e},nativeName:"ListView",initialListReady:this.handleInitialListReady},C),T.length?T:t)}}Lt.defaultProps={numberOfRows:0};class Ft extends i.a.Component{constructor(e){super(e),this.instance=null,this.refreshComplected=this.refreshCompleted.bind(this)}getRefresh(){const{getRefresh:e}=this.props;return"function"==typeof e&&e()||null}startRefresh(){Ye(this.instance,"startRefresh",null)}refreshCompleted(){Ye(this.instance,"refreshComplected",null)}render(){const e=this.props,{children:t}=e,n=x(e,h);return i.a.createElement("div",Object.assign({nativeName:"RefreshWrapper",ref:e=>{this.instance=e}},n),i.a.createElement("div",{nativeName:"RefreshWrapperItemView",style:[{left:0,right:0,position:"absolute"}]},this.getRefresh()),t)}}class Mt{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(e&&e.component){if(!this.routeList[e.routeName]){new Et({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0}delete e.component}const t=[e];this.stack.push(e),Ye(this.instance,"push",t)}pop(e){if(this.stack.size>1){const t=[e];this.stack.pop(),Ye(this.instance,"pop",t)}}clear(){this.stack.clear()}render(){const e=this.props,{initialRoute:{component:t}}=e,n=x(e.initialRoute,y),r=x(e,m);return r.initialRoute=n,i.a.createElement("div",Object.assign({nativeName:"Navigator",ref:e=>{this.instance=e}},r))}}function Ht(e){return i.a.createElement("div",Object.assign({nativeName:"ViewPagerItem"},e,{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}class Dt extends i.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&&Ye(this.instance,"setPage",[e])}setPageWithoutAnimation(e){"number"==typeof e&&Ye(this.instance,"setPageWithoutAnimation",[e])}render(){const e=this.props,{children:t,onPageScrollStateChanged:n}=e,r=x(e,g);let o=[];return Array.isArray(t)?o=t.map(e=>{const t={};return"string"==typeof e.key&&(t.key="viewPager_"+e.key),i.a.createElement(Ht,Object.assign({},t),e)}):o.push(i.a.createElement(Ht,null,t)),"function"==typeof n&&(r.onPageScrollStateChanged=this.onPageScrollStateChanged),i.a.createElement("div",Object.assign({nativeName:"ViewPager",ref:e=>{this.instance=e}},r),o)}}class Wt extends i.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=>{Ye(this.instance,"getValue",t=>e(t.text))})}setValue(e){return Ye(this.instance,"setValue",[e]),e}focus(){Ye(this.instance,"focusTextInput",[])}blur(){Ye(this.instance,"blurTextInput",[])}showInputMethod(){Ye(this.instance,"showInputMethod",[])}hideInputMethod(){Ye(this.instance,"hideInputMethod",[])}clear(){Ye(this.instance,"clear",[])}_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,n=e;"android"===ut.platform.OS&&(n.keyboardHeight/=ut.screen.scale),"function"==typeof t&&t(n)}render(){const e=v({},this.props);return["underlineColorAndroid","placeholderTextColor","placeholderTextColors"].forEach(t=>{"string"==typeof this.props[t]&&(Array.isArray(e.style)?e.style.push({[t]:this.props[t]}):"object"==typeof e.style?e.style[t]=this.props[t]:e.style={[t]:this.props[t]},e[t]=void 0)}),i.a.createElement("div",Object.assign({nativeName:"TextInput"},e,{ref:e=>{this.instance=e},onChangeText:this._onChangeText,onKeyboardWillShow:this._onKeyboardWillShow}))}}const Vt=ut.window.scale;let Bt=Math.round(.4*Vt)/Vt;function $t(e){return e}0===Bt&&(Bt=1/Vt);var qt=Object.freeze({__proto__:null,get hairlineWidth(){return Bt},create:$t});const Qt={baseVertical:{flexGrow:1,flexShrink:1,flexDirection:"column",overflow:"scroll"},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:"row",overflow:"scroll"},contentContainerVertical:{collapse:!1,flexDirection:"column"},contentContainerHorizontal:{collapse:!1,flexDirection:"row"}};class Kt extends i.a.Component{constructor(){super(...arguments),this.instance=null}scrollTo(e,t,n=!0){let r=e,i=t,o=n;"number"==typeof e||"object"==typeof e&&e&&({x:r,y:i,animated:o}=e),r=r||0,i=i||0,o=!!o,Ye(this.instance,"scrollTo",[r,i,o])}scrollToWithDuration(e=0,t=0,n=1e3){Ye(this.instance,"scrollToWithOptions",[{x:e,y:t,duration:n}])}render(){const{horizontal:e,contentContainerStyle:t,children:n,style:r}=this.props,o=[e?Qt.contentContainerHorizontal:Qt.contentContainerVertical,t],a=e?Object.assign({},r,Qt.baseHorizontal):Object.assign({},r,Qt.baseVertical);return i.a.createElement("div",Object.assign({nativeName:"ScrollView",ref:e=>{this.instance=e}},this.props,{style:a}),i.a.createElement(St,{style:o},n))}}const Gt={modal:{position:"absolute"},container:{position:"absolute",left:0,top:0}};class Yt extends i.a.Component{constructor(e){super(e),this.eventSubscription=null}componentDidMount(){"ios"===ut.platform.OS&&(this.eventSubscription=new G("modalDismissed"),this.eventSubscription.addCallback(e=>{const{primaryKey:t,onDismiss:n}=this.props;e.primaryKey===t&&"function"==typeof n&&n()}))}componentWillUnmount(){"ios"===ut.platform.OS&&this.eventSubscription&&this.eventSubscription.unregister()}render(){const{children:e,visible:t,transparent:n,animated:r}=this.props;let{animationType:o}=this.props;if(!1===t)return null;const a={backgroundColor:n?"transparent":"white"};return o||(o="none",r&&(o="slide")),i.a.createElement("div",Object.assign({nativeName:"Modal",animationType:o,transparent:n,style:Gt.modal},this.props),i.a.createElement(St,{style:[Gt.container,a]},e))}}Yt.defaultProps={visible:!0};class Xt extends i.a.Component{constructor(e){super(e);const{requestFocus:t}=this.props;this.state={isFocus:!!t},this.handleFocus=this.handleFocus.bind(this)}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})}render(){const{requestFocus:e,children:t,nextFocusDownId:n,nextFocusUpId:r,nextFocusLeftId:o,nextFocusRightId:a,style:l,noFocusStyle:u,focusStyle:s,onClick:c}=this.props,{isFocus:f}=this.state,d=i.a.Children.only(t);let p;d&&d.child&&d.child.memoizedProps&&d.child.memoizedProps.nativeName?p=d.child.memoizedProps.nativeName:d&&d.type&&d.type.name&&(p=d.type.name);const h=n&&Ge(n),m=r&&Ge(r),y=o&&Ge(o),g=a&&Ge(a);let b=l;if("Text"!==p){const e=d.memoizedProps.style;b=v(v({},b),e)}if(Object.assign(b,f?s:u),"Text"===p)return i.a.createElement(St,{focusable:!0,nextFocusDownId:h,nextFocusUpId:m,nextFocusLeftId:y,nextFocusRightId:g,requestFocus:e,style:b,onClick:c,onFocus:this.handleFocus},d);const{children:w}=d.memoizedProps;return i.a.cloneElement(d,{nextFocusDownId:n,nextFocusUpId:r,nextFocusLeftId:o,nextFocusRightId:a,requestFocus:e,onClick:c,focusable:!0,children:w,style:b,onFocus:this.handleFocus})}}function Jt(e){return i.a.createElement("iframe",Object.assign({title:"hippy",nativeName:"WebView"},e))}let Zt;class en{constructor(e,t,n){if(this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),Zt||(Zt=new G("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!e||"string"!=typeof e)throw new TypeError("Invalid WebSocket url");const r=v({},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 protocals");r["Sec-WebSocket-Protocol"]=t}const i={headers:r,url:e};this.url=e,this.webSocketCallbackId=Zt.addCallback(this.onWebSocketEvent),S.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,S.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);S.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,Zt.removeCallback(this.webSocketCallbackId));const n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}e.WebSocket=en;const{AsyncStorage:tn,BackAndroid:nn,Bridge:rn,Clipboard:on,Cookie:an,Device:ln,HippyRegister:un,ImageLoader:sn,NetworkInfo:cn,UIManager:fn}=ct,{callNative:dn,callNativeWithPromise:pn,callNativeWithCallbackId:hn,removeNativeCallback:mn}=rn,yn=null,gn=console,bn=ln.platform,vn=Et,wn=Et,xn=_t,En=un,kn=X,Sn=G,Cn={get:e=>ln[e]},Tn={get:()=>ln.screen.scale};t.default=Et}.call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/object-assign/index.js":function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus diff --git a/examples/ios-demo/res/index.ios.js b/examples/ios-demo/res/index.ios.js index b06295404b4..a19519e67db 100644 --- a/examples/ios-demo/res/index.ios.js +++ b/examples/ios-demo/res/index.ios.js @@ -1,4 +1,4 @@ -!function(e){function t(t){for(var n,o,i=t[0],a=t[1],l=0,c=[];l0===a.indexOf(e))){var l=a.split("/"),u=l[l.length-1],c=u.split(".")[0];(s=global.__DYNAMIC_LOAD_MAP__[c])&&(a=s+u)}else{var s;c=a.split(".")[0];(s=global.__DYNAMIC_LOAD_MAP__[c])&&(a=s+a)}onScriptComplete=function(t){t&&(t.name="ChunkLoadError",chunk[1](t),r[e]=void 0)},global.dynamicLoad(a,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 i=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],a=i.push.bind(i);i.push=t,i=i.slice();for(var l=0;le.length)&&(t=e.length);for(var n=0,r=new Array(t);n0===a.indexOf(e))){var l=a.split("/"),u=l[l.length-1],c=u.split(".")[0];(s=global.__DYNAMIC_LOAD_MAP__[c])&&(a=s+u)}else{var s;c=a.split(".")[0];(s=global.__DYNAMIC_LOAD_MAP__[c])&&(a=s+a)}onScriptComplete=function(t){t&&(t.name="ChunkLoadError",chunk[1](t),r[e]=void 0)},global.dynamicLoad(a,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 i=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],a=i.push.bind(i);i.push=t,i=i.slice();for(var l=0;le.length)&&(t=e.length);for(var n=0,r=new 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 b(e){return(b="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 g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,i,o=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){l=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw i}}return o}(e,t)||k(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 k(e,t){if(e){if("string"==typeof e)return w(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)?w(e,t):void 0}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new 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 P(e){return(P="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 I(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)return;var r,i,o=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){l=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw i}}return o}(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 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}}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n255?255:t}function se(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function fe(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 de(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=fe(i,r,e+1/3),a=fe(i,r,e),l=fe(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function pe(e){return(parseFloat(e)%360+360)%360/360}function he(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function me(e){var t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ue.hex6.exec(e),Array.isArray(t)?parseInt("".concat(t[1],"ff"),16)>>>0:Object.hasOwnProperty.call(oe,e)?oe[e]:(t=ue.rgb.exec(e),Array.isArray(t)?(ce(t[1])<<24|ce(t[2])<<16|ce(t[3])<<8|255)>>>0:(t=ue.rgba.exec(e))?(ce(t[1])<<24|ce(t[2])<<16|ce(t[3])<<8|se(t[4]))>>>0:(t=ue.hex3.exec(e))?parseInt("".concat(t[1]+t[1]+t[2]+t[2]+t[3]+t[3],"ff"),16)>>>0:(t=ue.hex8.exec(e))?parseInt(t[1],16)>>>0:(t=ue.hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ue.hsl.exec(e))?(255|de(pe(t[1]),he(t[2]),he(t[3])))>>>0:(t=ue.hsla.exec(e))?(de(pe(t[1]),he(t[2]),he(t[3]))|se(t[4]))>>>0:null))}var ve=Object.freeze({__proto__:null,getString:function(){return I.callNativeWithPromise("ClipboardModule","getString")},setString:function(e){I.callNative("ClipboardModule","setString",e)}});var ye=Object.freeze({__proto__:null,getCookies:function(e){return I.callNativeWithPromise("network","getCookie",e)},setCookie:function(e,t,n){var r="";"string"==typeof n&&(r=n),n instanceof Date&&(r=n.toUTCString()),I.callNative("network","setCookie",e,t,r)}});function be(e){return I.callNativeWithPromise("ImageLoaderModule","getSize",e)}function ge(e){I.callNative("ImageLoaderModule","prefetch",e)}var ke,we=Object.freeze({__proto__:null,getSize:be,prefetch:ge}),Ee=new Map,xe=function(){function e(t,n){E(this,e),this.eventName=t,this.listener=n}return S(e,[{key:"remove",value:function(){this.eventName&&this.listener&&(Se(this.eventName,this.listener),this.listener=void 0)}}]),e}();function Se(e,t){if(t instanceof xe)t.remove();else{var n=e;e&&"change"===e&&(n="networkStatusDidChange"),ke.listenerSize(n)<=1&&I.callNative("NetInfo","removeListener",n);var r=Ee.get(t);r&&(r.remove(),Ee.delete(t))}}var Ce=Object.freeze({__proto__:null,addEventListener:function(e,t){var n=e;n&&"change"===n&&(n="networkStatusDidChange"),(ke=new re).listenerSize(n)<1&&I.callNative("NetInfo","addListener",n);var r=ke.addListener(n,(function(e){t(e)}));return Ee.set(r,r),new xe(n,t)},removeEventListener:Se,fetch:function(){return I.callNativeWithPromise("NetInfo","getCurrentConnectivity").then((function(e){return e.network_info}))}}),Te=["%c[native]%c","color: red","color: auto"],Ne={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode")},_e=!0,Pe=[];function Ie(){_e&&Ze()}function Ae(e){_e&&(_e=!1,Promise.resolve().then((function(){(function(e){for(var t=[],n=0;n-1})).indexOf(e)))}},{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.");e.parentNode=this,this.lastChild&&(e.prevSibling=this.lastChild,this.lastChild.nextSibling=e),this.childNodes.push(e),Le(this,e,this.childNodes.length-1)}},{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.");e.meta.skipAddToDom||(Fe(0,e),e.prevSibling&&(e.prevSibling.nextSibling=e.nextSibling,e.prevSibling=null),e.nextSibling&&(e.nextSibling.prevSibling=e.prevSibling,e.nextSibling=null),this.childNodes=this.childNodes.filter((function(t){return t!==e})))}},{key:"findChild",value:function(e){if(e(this))return this;if(this.childNodes.length)for(var t=0;t=0?wt(t):t}var Be=function(){function e(t){E(this,e);var n=0;if(t.startValue&&t.startValue.constructor&&"Animation"===t.startValue.constructor.name)n={animationId:t.startValue.animationId};else{var r=t.startValue;n=Ve(t.valueType,r)}var i=Ve(t.valueType,t.toValue);this.mode=t.mode||"timing",this.delay=t.delay||0,this.startValue=n||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.animationId=yt.callNativeWithCallbackId("AnimationModule","createAnimation",!0,this.mode,Object.assign({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.destroy=this.destroy.bind(this),this.onRNfqbAnimationStart=this.onAnimationStart.bind(this),this.onRNfqbAnimationEnd=this.onAnimationEnd.bind(this),this.onRNfqbAnimationCancel=this.onAnimationCancel.bind(this),this.onRNfqbAnimationRepeat=this.onAnimationRepeat.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 S(e,[{key:"removeEventListener",value:function(){this.animationStartListener&&this.animationStartListener.remove(),this.animationEndListener&&this.animationEndListener.remove(),this.animationCancelListener&&this.animationCancelListener.remove(),this.animationRepeatListener&&this.animationRepeatListener.remove()}},{key:"start",value:function(){var e=this;this.removeEventListener();var t="onAnimation";"android"===bt.platform.OS&&(t="onHippyAnimation"),"function"==typeof this.onAnimationStartCallback&&(this.animationStartListener=We.addListener("".concat(t,"Start"),(function(t){t===e.animationId&&(e.animationStartListener.remove(),"function"==typeof e.onAnimationStartCallback&&e.onAnimationStartCallback())}))),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=We.addListener("".concat(t,"End"),(function(t){t===e.animationId&&(e.animationEndListener.remove(),"function"==typeof e.onAnimationEndCallback&&e.onAnimationEndCallback())}))),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=We.addListener("".concat(t,"Cancel"),(function(t){t===e.animationId&&(e.animationCancelListener.remove(),"function"==typeof e.onAnimationCancelCallback&&e.onAnimationCancelCallback())}))),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=We.addListener("".concat(t,"Repeat"),(function(t){t===e.animationId&&"function"==typeof e.onAnimationRepeatCallback&&e.onAnimationRepeatCallback()}))),yt.callNative("AnimationModule","startAnimation",this.animationId)}},{key:"destory",value:function(){this.destroy()}},{key:"destroy",value:function(){this.removeEventListener(),yt.callNative("AnimationModule","destroyAnimation",this.animationId)}},{key:"pause",value:function(){yt.callNative("AnimationModule","pauseAnimation",this.animationId)}},{key:"resume",value:function(){yt.callNative("AnimationModule","resumeAnimation",this.animationId)}},{key:"updateAnimation",value:function(t){var n=this;if("object"!==b(t))throw new TypeError("Invalid arguments");if("string"==typeof t.mode&&t.mode!==this.mode)throw new TypeError("Update animation mode not supported");Object.keys(t).forEach((function(r){var i=t[r];if("startValue"===r){var o=0;if(t.startValue instanceof e)o={animationId:t.startValue.animationId};else{var a=t.startValue;o=Ve(n.valueType,a)}n.startValue=o||0}else"repeatCount"===r?n.repeatCount=De(t.repeatCount||0):Object.defineProperty(n,r,{value:i})})),yt.callNative("AnimationModule","updateAnimation",this.animationId,Object.assign({delay:this.delay,startValue:this.startValue,toValue:Ve(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}}]),e}(),qe=new re,Qe=function(){function e(t){var n=this;E(this,e),this.animationList=[],t.children.forEach((function(e){n.animationList.push({animationId:e.animation.animationId,follow:e.follow||!1})})),this.animationId=yt.callNativeWithCallbackId("AnimationModule","createAnimationSet",!0,{repeatCount:De(t.repeatCount||0),children:this.animationList,virtual:t.virtual}),this.onRNfqbAnimationStart=this.onAnimationStart.bind(this),this.onRNfqbAnimationEnd=this.onAnimationEnd.bind(this),this.onRNfqbAnimationCancel=this.onAnimationCancel.bind(this),this.onRNfqbAnimationRepeat=this.onAnimationRepeat.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 S(e,[{key:"removeEventListener",value:function(){this.animationStartListener&&this.animationStartListener.remove(),this.animationEndListener&&this.animationEndListener.remove(),this.animationCancelListener&&this.animationCancelListener.remove(),this.animationRepeatListener&&this.animationRepeatListener.remove()}},{key:"start",value:function(){var e=this;this.removeEventListener();var t="onAnimation";"android"===bt.platform.OS&&(t="onHippyAnimation"),"function"==typeof this.onAnimationStartCallback&&(this.animationStartListener=qe.addListener("".concat(t,"Start"),(function(t){t===e.animationId&&(e.animationStartListener.remove(),"function"==typeof e.onAnimationStartCallback&&e.onAnimationStartCallback())}))),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=qe.addListener("".concat(t,"End"),(function(t){t===e.animationId&&(e.animationEndListener.remove(),"function"==typeof e.onAnimationEndCallback&&e.onAnimationEndCallback())}))),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=qe.addListener("".concat(t,"Cancel"),(function(t){t===e.animationId&&(e.animationCancelListener.remove(),"function"==typeof e.onAnimationCancelCallback&&e.onAnimationCancelCallback())}))),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=qe.addListener("".concat(t,"Repeat"),(function(t){t===e.animationId&&"function"==typeof e.onAnimationRepeatCallback&&e.onAnimationRepeatCallback()}))),yt.callNative("AnimationModule","startAnimation",this.animationId)}},{key:"destory",value:function(){this.destroy()}},{key:"destroy",value:function(){this.removeEventListener(),this.animationList.forEach((function(e){return Number.isInteger(e.animationId)&&yt.callNative("AnimationModule","destroyAnimation",e.animationId)})),yt.callNative("AnimationModule","destroyAnimation",this.animationId)}},{key:"pause",value:function(){yt.callNative("AnimationModule","pauseAnimation",this.animationId)}},{key:"resume",value:function(){yt.callNative("AnimationModule","resumeAnimation",this.animationId)}},{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}}]),e}(),$e={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},Ke=function(e){u(n,e);var t=s(n);function n(e){var r;return E(this,n),(r=t.call(this)).id="",r.style={},r.attributes={},r.tagName=e,r}return S(n,[{key:"nativeName",get:function(){return this.meta.component.name}},{key:"toString",value:function(){return"".concat(this.tagName,":(").concat(this.nativeName,")")}},{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,V.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=m(m({},o),e)})):"object"===b(e)&&e&&(o=m(m({},o),e))})),Object.keys(o).forEach((function(e){var n=o[e];if(Object.prototype.hasOwnProperty.call($e,e)&&(e=$e[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 Be||n instanceof Qe?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 null===n&&void 0!==t.style[e]?t.style[e]=void 0:n instanceof Be||n instanceof Qe?t.style[e]={animationId:n.animationId}:e.toLowerCase().indexOf("colors")>-1?t.style[e]=Et(n):e.toLowerCase().indexOf("color")>-1?t.style[e]=wt(n):t.style[e]=n}))}},{key:"setAttribute",value:function(e,t){var n=this;try{if("boolean"==typeof this.attributes[e]&&""===t&&(t=!0),void 0===e)return void Me(this);var r=!1;if([{match:function(){return["id"].indexOf(e)>=0},action:function(){return t===n.id||(n.id=t,function(e){if(e.isMounted){var t=H(),n=ze(t,e);Ie(),Pe.push({type:Ne.updateNode,nodes:n}),Ae(t)}}(n)),!0}},{match:function(){return["value","defaultValue","placeholder"].indexOf(e)>=0},action:function(){return n.attributes[e]=q(t),!1}},{match:function(){return["text"].indexOf(e)>=0},action:function(){return n.attributes[e]=t,!1}},{match:function(){return["numberOfRows"].indexOf(e)>=0},action:function(){return n.attributes[e]=t,"ios"!==bt.platform.OS}},{match:function(){return["onPress"].indexOf(e)>=0},action:function(){return n.attributes.onClick=!0,!1}},{match:function(){return["style"].indexOf(e)>=0},action:function(){return"object"!==b(t)||null==t||(n.setStyleAttribute(t),!1)}},{match:function(){return!0},action:function(){return n.attributes[e]="function"==typeof t||t,!1}}].some((function(e){return!!e.match()&&(r=e.action(),!0)})),r)return;var i=!1;Object.keys(this.style).some((function(e){var t=n.style[e];if(t&&Array.isArray(t)&&"transform"===e)for(var r=0;r2&&void 0!==arguments[2]&&arguments[2];if(null!==t){var r=t,i=e;Object.prototype.hasOwnProperty.call($e,e)&&(i=$e[e]),"string"==typeof r&&(r=t.trim(),r=i.toLowerCase().indexOf("colors")>-1?Et(r):i.toLowerCase().indexOf("color")>-1?wt(r):$(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||Me(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)})),Me(this)}}}},{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=q(e)).replace(/ /g," ").replace(/\xc2/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}]),n}(He),Ge=R.createNode,Ye=R.updateNode,Xe=R.deleteNode,Je=R.flushBatch,Ze=R.startBatch,et=R.endBatch,tt=R.sendRenderError,nt=W;function rt(e){if(e instanceof Ke)return e;var t=e._reactInternalFiber;if(t&&t.child){for(var n=t.child;n&&!(n.stateNode instanceof Ke);)n=n.child;return n&&n.stateNode?n.stateNode:null}return null}function it(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=D((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=rt(t);return r?r.nodeId:0}return t.nodeId}function ot(e,t){var n=e.nativeName,r=e.nodeId;if(!r||!n){var i=rt(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;l1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isInteger(e))return e;var n=me(e);return t.platform||(t.platform="ios"),null===n?0:(n=(n<<24|n>>>8)>>>0,"android"===t.platform&&(n|=0),n)}function Et(e,t){return Array.isArray(e)?e.map((function(e){return wt(e,t)})):[0]}var xt=function(e){u(n,e);var t=s(n);function n(){var e;return E(this,n),(e=t.call(this)).documentElement=new Ke("document"),e}return S(n,[{key:"createElement",value:function(e){return new Ke(e)}},{key:"createElementNS",value:function(e,t){return new Ke("".concat(e,":").concat(t))}}]),n}(He);xt.createElement=xt.prototype.createElement,xt.createElementNS=xt.prototype.createElementNS;var St=Array.isArray,Ct=Object.keys,Tt=Object.prototype.hasOwnProperty;var Nt=Object.freeze({__proto__:null,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)},commitMount:function(){},commitTextUpdate:function(){},commitUpdate:function(e,t){Object.keys(t).forEach((function(n){return e.setAttribute(n,t[n])}))},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),o},createTextInstance:function(e,t){var n=t.createElement("p");return n.setAttribute("text",q(e)),n.meta={component:{name:"Text",skipAddToDom:!0}},n},finalizeContainerChildren:function(){},finalizeInitialChildren:function(){return!0},getPublicInstance:function(e){return e},insertBefore:function(e,t,n){e.childNodes.indexOf(t)>0?e.moveChild(t,n):e.insertBefore(t,n)},prepareForCommit:function(){},prepareUpdate:function(e,t,n,r){var i={};return 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:"function"==typeof t&&"function"==typeof o||function e(t,n){if(t===n)return!0;if(t&&n&&"object"==b(t)&&"object"==b(n)){var r,i,o,a=St(t),l=St(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,c=n instanceof Date;if(u!=c)return!1;if(u&&c)return t.getTime()==n.getTime();var s=t instanceof RegExp,f=n instanceof RegExp;if(s!=f)return!1;if(s&&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(!Tt.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)}})),Object.keys(i).length?i:null},replaceContainerChildren:function(){},removeChild:function(e,t){e.removeChild(t)},removeChildFromContainer:function(e,t){e.removeChild(t)},resetAfterCommit:function(){},resetTextContent:function(){},getRootHostContext:function(){return{}},getChildHostContext:function(){return{}},shouldDeprioritizeSubtree:function(){return!0},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}}),_t=a()(m(m({},Nt),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:function(){},cancelDeferredCallback:function(){}})),Pt=_t.createContainer,It=_t.updateContainer,At=_t.getPublicRootInstance,Rt=['%c[Hippy-React "2.6.4"]%c',"color: #61dafb","color: auto"],Ot=function(){function e(t){if(E(this,e),!t.appName||!t.entryPage)throw new TypeError("Invalid arguments");this.config=t,this.regist=this.start,this.render=this.render.bind(this);var n=new xt;this.rootContainer=Pt(n,!1,!1)}return S(e,[{key:"start",value:function(){gt.regist(this.config.appName,this.render)}},{key:"render",value:function(e){var t=this.config,n=t.appName,r=t.entryPage,o=t.silent,a=void 0!==o&&o,l=t.callback,u=void 0===l?function(){}:l,c=e.__instanceId__;B.apply(void 0,Rt.concat(["Start",n,"with rootViewId",c,e])),this.rootContainer.containerInfo.nodeId=c,a&&G(a),U(c,this.rootContainer);var s=i.a.createElement(r,e);return It(s,this.rootContainer,null,u),At(this.rootContainer)}}],[{key:"Native",get:function(){return kt}}]),e}();Ot.version="2.6.4";var zt={registerComponent:function(e,t){new Ot({appName:e,entryPage:t}).start()}},jt=function(e){u(n,e);var t=s(n);function n(){return E(this,n),t.apply(this,arguments)}return S(n,[{key:"render",value:function(){var e=this.props,t=e.collapsable,n=e.style,r=void 0===n?{}:n,o=y(e,["collapsable","style"]),a=r;return"boolean"==typeof t&&(a.collapsable=t),i.a.createElement("div",Object.assign({nativeName:"View",style:a},o))}}]),n}(i.a.Component);function Lt(e,t){var n=e.style,r=y(e,["style"]),o=n;if(n&&(Array.isArray(n)?-1===n.filter((function(e){return"object"===b(e)&&e})).findIndex((function(e){return e.color||e.colors}))&&(o[0].color="#000"):"object"===b(n)&&void 0===n.color&&void 0===n.colors&&(o.color="#000")),r.text="","string"==typeof r.children)r.text=q(r.children);else if("number"==typeof r.children)r.text=q(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=q(a),r.children=r.text)}return i.a.createElement("p",Object.assign({ref:t,nativeName:"Text",style:o},r))}Lt.displayName="Text";var Ft=i.a.forwardRef(Lt);function Mt(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){return"".concat("hpfile://","./").concat(e)}return e}Ft.displayName="Text";var Ut=function(e){u(n,e);var t=s(n);function n(){return E(this,n),t.apply(this,arguments)}return S(n,[{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(l(o),l(n))),r)if("string"==typeof r)o.push(r);else if("object"===b(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"===b(e)&&null!==e&&e.uri&&o.push(e.uri)})),o.length&&(o=o.map((function(e){return Mt(e)}))),o}},{key:"handleTintColor",value:function(e,t,n){t&&(e.tintColor=wt(t)),Array.isArray(n)&&(e.tintColors=Et(n))}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.style,r=e.imageStyle,o=e.imageRef,a=e.source,l=e.sources,u=e.src,c=e.srcs,s=e.tintColor,f=e.tintColors,d=y(e,["children","style","imageStyle","imageRef","source","sources","src","srcs","tintColor","tintColors"]),p=this.getImageUrls({src:u,srcs:c,source:a,sources:l});if("ios"===bt.platform.OS)p.length&&(d.source=p.map((function(e){return{uri:e}})));else if("android"===bt.platform.OS)if(1===p.length){var h=g(p,1);d.src=h[0]}else p.length>1&&(d.srcs=p);"string"==typeof d.defaultSource&&(d.defaultSource.indexOf("data:image/"),d.defaultSource=Mt(d.defaultSource));var v=m({},n);return this.handleTintColor(v,s,f),d.style=v,t?i.a.createElement(jt,{style:n},i.a.createElement("img",Object.assign({},d,{nativeName:"Image",alt:"",ref:o,style:[{position:"absolute",left:0,right:0,top:0,bottom:0,width:n.width,height:n.height},r]})),t):i.a.createElement("img",Object.assign({},d,{nativeName:"Image",alt:"",ref:o}))}}],[{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=be(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}(i.a.Component);Ut.prefetch=ge;var Ht=function(){function e(){E(this,e),this.Value=e.Value}return S(e,null,[{key:"Value",value:function(e){return e}},{key:"timing",value:function(e,t){return new Be({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}]),e}();Ht.View=jt,Ht.Text=Ft,Ht.Image=Ut;var Dt={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 Wt(e){return i.a.createElement("li",Object.assign({nativeName:"ListViewItem"},e))}var Vt=function(e){u(n,e);var t=s(n);function n(){var e;return E(this,n),(e=t.apply(this,arguments)).instance=null,e}return S(n,[{key:"expandPullHeader",value:function(){ot(this.instance,"expandPullHeader",[])}},{key:"collapsePullHeader",value:function(e){"android"===bt.platform.OS?ot(this.instance,"collapsePullHeader",[e]):void 0!==e?ot(this.instance,"collapsePullHeaderWithOptions",[e]):ot(this.instance,"collapsePullHeader",[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=y(t,["children"]);return i.a.createElement("div",Object.assign({nativeName:"PullHeaderView",ref:function(t){e.instance=t}},r),n)}}]),n}(i.a.Component),Bt=function(e){u(n,e);var t=s(n);function n(){var e;return E(this,n),(e=t.apply(this,arguments)).instance=null,e}return S(n,[{key:"expandPullFooter",value:function(){ot(this.instance,"expandPullFooter",[])}},{key:"collapsePullFooter",value:function(){ot(this.instance,"collapsePullFooter",[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=y(t,["children"]);return i.a.createElement("div",Object.assign({nativeName:"PullFooterView",ref:function(t){e.instance=t}},r),n)}}]),n}(i.a.Component);Bt.defaultProps={sticky:!0};var qt={onDisappear:"onDisAppear"},Qt={onDisappear:"onDisappear"},$t=function(e){u(n,e);var t=s(n);function n(e){var r;return E(this,n),(r=t.call(this,e)).instance=null,r.pullHeader=null,r.pullFooter=null,r.handleInitialListReady=r.handleInitialListReady.bind(d(r)),r.state={initialListReady:!1},r}return S(n,[{key:"componentDidMount",value:function(){this.props.getRowKey}},{key:"convertName",value:function(e){return"android"===bt.platform.OS&&qt[e]?qt[e]:"ios"===bt.platform.OS&&Qt[e]?Qt[e]:e}},{key:"scrollToIndex",value:function(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&ot(this.instance,"scrollToIndex",[e,t,n])}},{key:"scrollToContentOffset",value:function(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&ot(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:"handleInitialListReady",value:function(){this.setState({initialListReady:!0})}},{key:"getPullHeader",value:function(e,t,n){var r=this,o=null;return"function"==typeof e&&(o=i.a.createElement(Vt,{ref:function(e){r.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),o}},{key:"getPullFooter",value:function(e,t,n){var r=this,o=null;return"function"==typeof e&&(o=i.a.createElement(Bt,{ref:function(e){r.pullFooter=e},onFooterPulling:t,onFooterReleased:n},e())),o}},{key:"handleRowProps",value:function(e,t,n){var r=n.getRowKey,i=n.getRowStyle,o=n.onRowLayout,a=n.getRowType,l=n.rowShouldSticky;if("function"==typeof r&&(e.key=r(t)),"function"==typeof i&&(e.style=i(t)),"function"==typeof o&&(e.onLayout=function(e){o(e,t)}),"function"==typeof a){var u=a(t);Number.isInteger(u),e.type=u}"function"==typeof l&&(e.sticky=l(t))}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.style,o=t.renderRow,a=t.renderPullHeader,l=t.renderPullFooter,u=t.getRowType,c=t.getRowStyle,s=t.getRowKey,f=t.dataSource,d=t.initialListSize,p=t.rowShouldSticky,h=t.onRowLayout,v=t.onHeaderPulling,b=t.onHeaderReleased,g=t.onFooterPulling,k=t.onFooterReleased,w=t.onAppear,E=t.onDisappear,x=t.onWillAppear,S=t.onWillDisappear,C=y(t,["children","style","renderRow","renderPullHeader","renderPullFooter","getRowType","getRowStyle","getRowKey","dataSource","initialListSize","rowShouldSticky","onRowLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","onAppear","onDisappear","onWillAppear","onWillDisappear"]),T=[];if("function"==typeof o){var N=this.state.initialListReady,_=this.props.numberOfRows,P=this.getPullHeader(a,v,b),I=this.getPullFooter(l,g,k);!_&&f&&(_=f.length),N||(_=Math.min(_,d||10));for(var A=function(t){var n={},r=void 0;r=f?o(f[t],null,t):o(t),e.handleRowProps(n,t,{getRowKey:s,getRowStyle:c,getRowType:u,onRowLayout:h,rowShouldSticky:p}),[w,E,x,S].forEach((function(r){"function"==typeof r&&(n[e.convertName(r.name)]=function(){r(t)})})),r&&T.push(i.a.createElement(Wt,Object.assign({},n),r))},R=0;R<_;R+=1)A(R);P&&T.unshift(P),I&&T.push(I),"function"==typeof p&&Object.assign(C,{rowShouldSticky:!0});var O=[w,E,x,S];C.exposureEventEnabled=O.some((function(e){return"function"==typeof e})),C.numberOfRows=T.length,C.initialListSize=d,C.style=m({overflow:"scroll"},r)}return!C.onLoadMore&&C.onEndReached&&(C.onLoadMore=C.onEndReached),i.a.createElement("ul",Object.assign({ref:function(t){e.instance=t},nativeName:"ListView",initialListReady:this.handleInitialListReady},C),T.length?T:n)}}]),n}(i.a.Component);$t.defaultProps={numberOfRows:0};var Kt=function(e){u(n,e);var t=s(n);function n(e){var r;return E(this,n),(r=t.call(this,e)).instance=null,r.refreshComplected=r.refreshCompleted.bind(d(r)),r}return S(n,[{key:"getRefresh",value:function(){var e=this.props.getRefresh;return"function"==typeof e&&e()||null}},{key:"startRefresh",value:function(){ot(this.instance,"startRefresh",null)}},{key:"refreshCompleted",value:function(){ot(this.instance,"refreshComplected",null)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=y(t,["children"]);return i.a.createElement("div",Object.assign({nativeName:"RefreshWrapper",ref:function(t){e.instance=t}},r),i.a.createElement("div",{nativeName:"RefreshWrapperItemView",style:[{left:0,right:0,position:"absolute"}]},this.getRefresh()),n)}}]),n}(i.a.Component),Gt=function(){function e(){E(this,e),this.top=null,this.size=0}return S(e,[{key:"push",value:function(e){this.top={data:e,next:this.top},this.size+=1}},{key:"peek",value:function(){return null===this.top?null:this.top.data}},{key:"pop",value:function(){if(null===this.top)return null;var e=this.top;return this.top=this.top.next,this.size>0&&(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(e&&e.component){if(!this.routeList[e.routeName])new Ot({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0;delete e.component}var t=[e];this.stack.push(e),ot(this.instance,"push",t)}},{key:"pop",value:function(e){if(this.stack.size>1){var t=[e];this.stack.pop(),ot(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,y(n,["component"])),o=y(t,["initialRoute"]);return o.initialRoute=r,i.a.createElement("div",Object.assign({nativeName:"Navigator",ref:function(t){e.instance=t}},o))}}]),n}(i.a.Component);function Xt(e){return i.a.createElement("div",Object.assign({nativeName:"ViewPagerItem"},e,{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}var Jt=function(e){u(n,e);var t=s(n);function n(e){var r;return E(this,n),(r=t.call(this,e)).instance=null,r.setPage=r.setPage.bind(d(r)),r.setPageWithoutAnimation=r.setPageWithoutAnimation.bind(d(r)),r.onPageScrollStateChanged=r.onPageScrollStateChanged.bind(d(r)),r}return S(n,[{key:"onPageScrollStateChanged",value:function(e){var t=this.props.onPageScrollStateChanged;t&&t(e.pageScrollState)}},{key:"setPage",value:function(e){"number"==typeof e&&ot(this.instance,"setPage",[e])}},{key:"setPageWithoutAnimation",value:function(e){"number"==typeof e&&ot(this.instance,"setPageWithoutAnimation",[e])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.onPageScrollStateChanged,o=y(t,["children","onPageScrollStateChanged"]),a=[];return Array.isArray(n)?a=n.map((function(e){var t={};return"string"==typeof e.key&&(t.key="viewPager_".concat(e.key)),i.a.createElement(Xt,Object.assign({},t),e)})):a.push(i.a.createElement(Xt,null,n)),"function"==typeof r&&(o.onPageScrollStateChanged=this.onPageScrollStateChanged),i.a.createElement("div",Object.assign({nativeName:"ViewPager",ref:function(t){e.instance=t}},o),a)}}]),n}(i.a.Component),Zt=function(e){u(n,e);var t=s(n);function n(e){var r;return E(this,n),(r=t.call(this,e)).instance=null,r._lastNativeText="",r._onChangeText=r._onChangeText.bind(d(r)),r._onKeyboardWillShow=r._onKeyboardWillShow.bind(d(r)),r}return S(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){ot(e.instance,"getValue",(function(e){return t(e.text)}))}))}},{key:"setValue",value:function(e){return ot(this.instance,"setValue",[e]),e}},{key:"focus",value:function(){ot(this.instance,"focusTextInput",[])}},{key:"blur",value:function(){ot(this.instance,"blurTextInput",[])}},{key:"showInputMethod",value:function(){ot(this.instance,"showInputMethod",[])}},{key:"hideInputMethod",value:function(){ot(this.instance,"hideInputMethod",[])}},{key:"clear",value:function(){ot(this.instance,"clear",[])}},{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,n=e;"android"===bt.platform.OS&&(n.keyboardHeight/=bt.screen.scale),"function"==typeof t&&t(n)}},{key:"render",value:function(){var e=this,t=m({},this.props);return["underlineColorAndroid","placeholderTextColor","placeholderTextColors"].forEach((function(n){"string"==typeof e.props[n]&&(Array.isArray(t.style)?t.style.push({[n]:e.props[n]}):"object"===b(t.style)?t.style[n]=e.props[n]:t.style={[n]:e.props[n]},t[n]=void 0)})),i.a.createElement("div",Object.assign({nativeName:"TextInput"},t,{ref:function(t){e.instance=t},onChangeText:this._onChangeText,onKeyboardWillShow:this._onKeyboardWillShow}))}}]),n}(i.a.Component),en=bt.window.scale,tn=Math.round(.4*en)/en;function nn(e){return e}0===tn&&(tn=1/en);var rn=Object.freeze({__proto__:null,get hairlineWidth(){return tn},create:nn}),on={baseVertical:{flexGrow:1,flexShrink:1,flexDirection:"column",overflow:"scroll"},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:"row",overflow:"scroll"},contentContainerVertical:{collapse:!1,flexDirection:"column"},contentContainerHorizontal:{collapse:!1,flexDirection:"row"}},an=function(e){u(n,e);var t=s(n);function n(){var e;return E(this,n),(e=t.apply(this,arguments)).instance=null,e}return S(n,[{key:"scrollTo",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e,i=t,o=n;"number"==typeof e||"object"===b(e)&&e&&(r=e.x,i=e.y,o=e.animated),r=r||0,i=i||0,o=!!o,ot(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;ot(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,o=t.children,a=t.style,l=[n?on.contentContainerHorizontal:on.contentContainerVertical,r],u=n?Object.assign({},a,on.baseHorizontal):Object.assign({},a,on.baseVertical);return i.a.createElement("div",Object.assign({nativeName:"ScrollView",ref:function(t){e.instance=t}},this.props,{style:u}),i.a.createElement(jt,{style:l},o))}}]),n}(i.a.Component),ln={modal:{position:"absolute"},container:{position:"absolute",left:0,top:0}},un=function(e){u(n,e);var t=s(n);function n(e){var r;return E(this,n),(r=t.call(this,e)).eventSubscription=null,r}return S(n,[{key:"componentDidMount",value:function(){var e=this;"ios"===bt.platform.OS&&(this.eventSubscription=new te("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"===bt.platform.OS&&this.eventSubscription&&this.eventSubscription.unregister()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.visible,r=e.transparent,o=e.animated,a=this.props.animationType;if(!1===n)return null;var l={backgroundColor:r?"transparent":"white"};return a||(a="none",o&&(a="slide")),i.a.createElement("div",Object.assign({nativeName:"Modal",animationType:a,transparent:r,style:ln.modal},this.props),i.a.createElement(jt,{style:[ln.container,l]},t))}}]),n}(i.a.Component);un.defaultProps={visible:!0};var cn=function(e){u(n,e);var t=s(n);function n(e){var r;E(this,n);var i=(r=t.call(this,e)).props.requestFocus;return r.state={isFocus:!!i},r.handleFocus=r.handleFocus.bind(d(r)),r}return S(n,[{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})}},{key:"render",value:function(){var e,t=this.props,n=t.requestFocus,r=t.children,o=t.nextFocusDownId,a=t.nextFocusUpId,l=t.nextFocusLeftId,u=t.nextFocusRightId,c=t.style,s=t.noFocusStyle,f=t.focusStyle,d=t.onClick,p=this.state.isFocus,h=i.a.Children.only(r);h&&h.child&&h.child.memoizedProps&&h.child.memoizedProps.nativeName?e=h.child.memoizedProps.nativeName:h&&h.type&&h.type.name&&(e=h.type.name);var v=o&&it(o),y=a&&it(a),b=l&&it(l),g=u&&it(u),k=c;if("Text"!==e){var w=h.memoizedProps.style;k=m(m({},k),w)}if(Object.assign(k,p?f:s),"Text"===e)return i.a.createElement(jt,{focusable:!0,nextFocusDownId:v,nextFocusUpId:y,nextFocusLeftId:b,nextFocusRightId:g,requestFocus:n,style:k,onClick:d,onFocus:this.handleFocus},h);var E=h.memoizedProps.children;return i.a.cloneElement(h,{nextFocusDownId:o,nextFocusUpId:a,nextFocusLeftId:l,nextFocusRightId:u,requestFocus:n,onClick:d,focusable:!0,children:E,style:k,onFocus:this.handleFocus})}}]),n}(i.a.Component);function sn(e){return i.a.createElement("iframe",Object.assign({title:"hippy",nativeName:"WebView"},e))}var fn,dn=function(){function e(t,n,r){var i=this;if(E(this,e),this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),fn||(fn=new te("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!t||"string"!=typeof t)throw new TypeError("Invalid WebSocket url");var o=m({},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 protocals");o["Sec-WebSocket-Protocol"]=n}var a={headers:o,url:t};this.url=t,this.webSocketCallbackId=fn.addCallback(this.onWebSocketEvent),I.callNativeWithPromise("websocket","connect",a).then((function(e){e&&0===e.code&&"number"==typeof e.id&&(i.webSocketId=e.id)}))}return S(e,[{key:"close",value:function(e,t){1===this.readyState&&(this.readyState=2,I.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(b(e)));I.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"===b(e)&&e.id===this.webSocketId){var t=e.type;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,fn.removeCallback(this.webSocketCallbackId));var n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}}]),e}();e.WebSocket=dn;var pn=kt.AsyncStorage,hn=kt.BackAndroid,mn=kt.Bridge,vn=kt.Clipboard,yn=kt.Cookie,bn=kt.Device,gn=kt.HippyRegister,kn=kt.ImageLoader,wn=kt.NetworkInfo,En=kt.UIManager,xn=mn.callNative,Sn=mn.callNativeWithPromise,Cn=mn.callNativeWithCallbackId,Tn=mn.removeNativeCallback,Nn=null,_n=console,Pn=bn.platform,In=Ot,An=Ot,Rn=Ut,On=gn,zn=re,jn=te,Ln={get:function(e){return bn[e]}},Fn={get:function(){return bn.screen.scale}};t.default=Ot}.call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/object-assign/index.js":function(e,t,n){"use strict"; + */e.__GLOBAL__||(e.__GLOBAL__={});var L=e.__GLOBAL__;L.nodeId=0,L.animationId=0,L.renderCount=0;var F,M,U=e.Hippy,H=U.asyncStorage,D=U.bridge,W=U.device,V=U.document,B=U.register,q=U.on,Q=U.off,$=U.emit,K=Object.freeze({__proto__:null,addEventListener:q,removeEventListener:Q,dispatchEvent:$,AsyncStorage:H,Bridge:D,Device:W,HippyRegister:B,UIManager:V}),G=function(){function e(t){O(this,e),this.handlerContainer={},this.nextIdForHandler=0,this.eventName=t}return j(e,[{key:"addEventHandler",value:function(e,t){if(!e)throw new TypeError("Invalid arguments");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:"removeEventHandler",value:function(e){if("number"!=typeof e)throw new TypeError("Invalid arguments");var t="eventHandler_".concat(e);this.handlerContainer[t]&&delete this.handlerContainer[t]}},{key:"notifyEvent",value:function(e){var t=this;Object.keys(this.handlerContainer).forEach((function(n){var r=t.handlerContainer[n];r&&r.eventHandler&&(r.context?r.eventHandler.call(r.context,e):r.eventHandler(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}}]),e}();function Y(e,t){M=e,F=t}function X(){if(!M)throw new Error("getRootViewId must execute after setRootContainer");return M}function J(e){if(!F)return null;for(var t=[F.current];t.length;){var n=t.shift();if(!n)break;if(e(n))return n;n.child&&t.push(n.child),n.sibling&&t.push(n.sibling)}return null}function Z(e){return J((function(t){return t.stateNode&&t.stateNode.nodeId===e}))}var ee=new RegExp(/^\d+$/);function te(){}function ne(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 re=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function ie(e){if("number"==typeof e)return e;if("string"==typeof e&&re.test(e))try{return parseFloat(e)}catch(t){return e}return e}function oe(e){return"[object Function]"===Object.prototype.toString.call(e)}function ae(e){e}var le=new Map,ue=["%c[event]%c","color: green","color: auto"];function ce(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for getHippyEventHub: ".concat(e));return le.get(e)||null}var se={registerNativeEventHub:function(e){if(te.apply(void 0,ue.concat(["registerNativeEventHub",e])),"string"!=typeof e)throw new TypeError("Invalid eventName for registerNativeEventHub: ".concat(e));var t=le.get(e);return t||(t=new G(e),le.set(e,t)),t},getHippyEventHub:ce,unregisterNativeEventHub:function(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for unregisterNativeEventHub: ".concat(e));le.has(e)&&le.delete(e)},receiveNativeEvent:function(e){if(te.apply(void 0,ue.concat(["receiveNativeEvent",e])),!e||!(e instanceof Array)||e.length<2)throw new TypeError("Invalid params for receiveNativeEvent: ".concat(JSON.stringify(e)));var t=I(e,2),n=t[0],r=t[1];if("string"!=typeof n)throw new TypeError("Invalid arguments");var i=ce(n);i&&i.notifyEvent(r)},receiveNativeGesture:function(e){if(te.apply(void 0,ue.concat(["receiveNativeGesture",e])),e){var t=Z(e.id);if(t){var n=!1,r=t,i=e.name;do{if(r.memoizedProps&&!r.memoizedProps[i]&&"onClick"===i&&r.memoizedProps.onPress&&(i="onPress"),r.memoizedProps&&r.memoizedProps[i]&&"function"==typeof r.memoizedProps[i])try{n=r.memoizedProps[i](e)}catch(e){console.reportUncaughtException(e)}if("boolean"!=typeof n&&(n=!0),!1===n)for(r=r.return;r&&5!==r.tag;)r=r.return}while(!n&&r)}}},receiveUIComponentEvent:function(e){if(te.apply(void 0,ue.concat(["receiveUIComponentEvent",e])),e&&Array.isArray(e)&&!(e.length<2)){var t=I(e,3),n=t[0],r=t[1],i=t[2];if("number"==typeof n&&"string"==typeof r){var o=Z(n);o&&o.memoizedProps&&o.memoizedProps[r]&&"function"==typeof o.memoizedProps[r]&&o.memoizedProps[r](i)}}}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=se);var fe=function(){function e(t,n){O(this,e),this.callback=t,this.bindListener=n}return j(e,[{key:"remove",value:function(){"number"==typeof this.callback&&this.bindListener&&(this.bindListener.removeCallback(this.callback),this.bindListener=void 0)}}]),e}(),de=function(){function e(t){O(this,e),this.eventName=t,this.listenerIds=[]}return j(e,[{key:"addCallback",value:function(e,t){if("function"!=typeof e)throw new TypeError("Invalid arguments");var n=se.registerNativeEventHub(this.eventName);if(!n)throw new ReferenceError("No listeners for ".concat(this.eventName));var r=n.addEventHandler(e,t);if("number"!=typeof r)throw new Error("Fail to addEventHandler");return this.listenerIds.push(r),r}},{key:"removeCallback",value:function(e){if("number"!=typeof e)throw new TypeError("Invalid arguments");var t=se.getHippyEventHub(this.eventName);if(!t)throw new ReferenceError("No listeners for ".concat(this.eventName));t.removeEventHandler(e);for(var n=this.listenerIds.length,r=0;r255?255:t}function we(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Ee(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 xe(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Ee(i,r,e+1/3),a=Ee(i,r,e),l=Ee(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function Se(e){return(parseFloat(e)%360+360)%360/360}function Ce(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function Te(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(ve,e)?ve[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|we(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|xe(Se(t[1]),Ce(t[2]),Ce(t[3])))>>>0:(t=ge.hsla.exec(e))?(xe(Se(t[1]),Ce(t[2]),Ce(t[3]))|we(t[4]))>>>0:null))}var Ne=Object.freeze({__proto__:null,getString:function(){return D.callNativeWithPromise("ClipboardModule","getString")},setString:function(e){D.callNative("ClipboardModule","setString",e)}});var _e=Object.freeze({__proto__:null,getCookies:function(e){return D.callNativeWithPromise("network","getCookie",e)},setCookie:function(e,t,n){var r="";"string"==typeof n&&(r=n),n instanceof Date&&(r=n.toUTCString()),D.callNative("network","setCookie",e,t,r)}});function Pe(e){return D.callNativeWithPromise("ImageLoaderModule","getSize",e)}function Ie(e){D.callNative("ImageLoaderModule","prefetch",e)}var Ae,Re=Object.freeze({__proto__:null,getSize:Pe,prefetch:Ie}),Oe=new Map,ze=function(){function e(t,n){O(this,e),this.eventName=t,this.listener=n}return j(e,[{key:"remove",value:function(){this.eventName&&this.listener&&(je(this.eventName,this.listener),this.listener=void 0)}}]),e}();function je(e,t){if(t instanceof ze)t.remove();else{var n=e;e&&"change"===e&&(n="networkStatusDidChange"),Ae.listenerSize(n)<=1&&D.callNative("NetInfo","removeListener",n);var r=Oe.get(t);r&&(r.remove(),Oe.delete(t))}}var Le=Object.freeze({__proto__:null,addEventListener:function(e,t){var n=e;n&&"change"===n&&(n="networkStatusDidChange"),(Ae=new he).listenerSize(n)<1&&D.callNative("NetInfo","addListener",n);var r=Ae.addListener(n,(function(e){t(e)}));return Oe.set(r,r),new ze(n,t)},removeEventListener:je,fetch:function(){return D.callNativeWithPromise("NetInfo","getCurrentConnectivity").then((function(e){return e.network_info}))}}),Fe=["%c[native]%c","color: red","color: auto"],Me={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode")},Ue=!0,He=[];function De(){Ue&&st()}function We(e){Ue&&(Ue=!1,Promise.resolve().then((function(){(function(e){for(var t=[],n=0;n-1})).indexOf(e)))}},{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.");e.parentNode=this,this.lastChild&&(e.prevSibling=this.lastChild,this.lastChild.nextSibling=e),this.childNodes.push(e),$e(this,e,this.childNodes.length-1)}},{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.");e.meta.skipAddToDom||(Ke(0,e),e.prevSibling&&(e.prevSibling.nextSibling=e.nextSibling,e.prevSibling=null),e.nextSibling&&(e.nextSibling.prevSibling=e.prevSibling,e.nextSibling=null),this.childNodes=this.childNodes.filter((function(t){return t!==e})))}},{key:"findChild",value:function(e){if(e(this))return this;if(this.childNodes.length)for(var t=0;t=0?Rt(t):t}var tt=function(){function e(t){O(this,e);var n=0;if(t.startValue&&t.startValue.constructor&&"Animation"===t.startValue.constructor.name)n={animationId:t.startValue.animationId};else{var r=t.startValue;n=et(t.valueType,r)}var i=et(t.valueType,t.toValue);this.mode=t.mode||"timing",this.delay=t.delay||0,this.startValue=n||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=Je(t.repeatCount||0),this.inputRange=t.inputRange||[],this.outputRange=t.outputRange||[],this.animationId=_t.callNativeWithCallbackId("AnimationModule","createAnimation",!0,this.mode,Object.assign({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.destroy=this.destroy.bind(this),this.onRNfqbAnimationStart=this.onAnimationStart.bind(this),this.onRNfqbAnimationEnd=this.onAnimationEnd.bind(this),this.onRNfqbAnimationCancel=this.onAnimationCancel.bind(this),this.onRNfqbAnimationRepeat=this.onAnimationRepeat.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 j(e,[{key:"removeEventListener",value:function(){this.animationStartListener&&this.animationStartListener.remove(),this.animationEndListener&&this.animationEndListener.remove(),this.animationCancelListener&&this.animationCancelListener.remove(),this.animationRepeatListener&&this.animationRepeatListener.remove()}},{key:"start",value:function(){var e=this;this.removeEventListener();var t="onAnimation";"android"===Pt.platform.OS&&(t="onHippyAnimation"),"function"==typeof this.onAnimationStartCallback&&(this.animationStartListener=Ze.addListener("".concat(t,"Start"),(function(t){t===e.animationId&&(e.animationStartListener.remove(),"function"==typeof e.onAnimationStartCallback&&e.onAnimationStartCallback())}))),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=Ze.addListener("".concat(t,"End"),(function(t){t===e.animationId&&(e.animationEndListener.remove(),"function"==typeof e.onAnimationEndCallback&&e.onAnimationEndCallback())}))),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=Ze.addListener("".concat(t,"Cancel"),(function(t){t===e.animationId&&(e.animationCancelListener.remove(),"function"==typeof e.onAnimationCancelCallback&&e.onAnimationCancelCallback())}))),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=Ze.addListener("".concat(t,"Repeat"),(function(t){t===e.animationId&&"function"==typeof e.onAnimationRepeatCallback&&e.onAnimationRepeatCallback()}))),_t.callNative("AnimationModule","startAnimation",this.animationId)}},{key:"destory",value:function(){this.destroy()}},{key:"destroy",value:function(){this.removeEventListener(),_t.callNative("AnimationModule","destroyAnimation",this.animationId)}},{key:"pause",value:function(){_t.callNative("AnimationModule","pauseAnimation",this.animationId)}},{key:"resume",value:function(){_t.callNative("AnimationModule","resumeAnimation",this.animationId)}},{key:"updateAnimation",value:function(t){var n=this;if("object"!==P(t))throw new TypeError("Invalid arguments");if("string"==typeof t.mode&&t.mode!==this.mode)throw new TypeError("Update animation mode not supported");Object.keys(t).forEach((function(r){var i=t[r];if("startValue"===r){var o=0;if(t.startValue instanceof e)o={animationId:t.startValue.animationId};else{var a=t.startValue;o=et(n.valueType,a)}n.startValue=o||0}else"repeatCount"===r?n.repeatCount=Je(t.repeatCount||0):Object.defineProperty(n,r,{value:i})})),_t.callNative("AnimationModule","updateAnimation",this.animationId,Object.assign({delay:this.delay,startValue:this.startValue,toValue:et(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}}]),e}(),nt=new he,rt=function(){function e(t){var n=this;O(this,e),this.animationList=[],t.children.forEach((function(e){n.animationList.push({animationId:e.animation.animationId,follow:e.follow||!1})})),this.animationId=_t.callNativeWithCallbackId("AnimationModule","createAnimationSet",!0,{repeatCount:Je(t.repeatCount||0),children:this.animationList,virtual:t.virtual}),this.onRNfqbAnimationStart=this.onAnimationStart.bind(this),this.onRNfqbAnimationEnd=this.onAnimationEnd.bind(this),this.onRNfqbAnimationCancel=this.onAnimationCancel.bind(this),this.onRNfqbAnimationRepeat=this.onAnimationRepeat.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 j(e,[{key:"removeEventListener",value:function(){this.animationStartListener&&this.animationStartListener.remove(),this.animationEndListener&&this.animationEndListener.remove(),this.animationCancelListener&&this.animationCancelListener.remove(),this.animationRepeatListener&&this.animationRepeatListener.remove()}},{key:"start",value:function(){var e=this;this.removeEventListener();var t="onAnimation";"android"===Pt.platform.OS&&(t="onHippyAnimation"),"function"==typeof this.onAnimationStartCallback&&(this.animationStartListener=nt.addListener("".concat(t,"Start"),(function(t){t===e.animationId&&(e.animationStartListener.remove(),"function"==typeof e.onAnimationStartCallback&&e.onAnimationStartCallback())}))),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=nt.addListener("".concat(t,"End"),(function(t){t===e.animationId&&(e.animationEndListener.remove(),"function"==typeof e.onAnimationEndCallback&&e.onAnimationEndCallback())}))),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=nt.addListener("".concat(t,"Cancel"),(function(t){t===e.animationId&&(e.animationCancelListener.remove(),"function"==typeof e.onAnimationCancelCallback&&e.onAnimationCancelCallback())}))),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=nt.addListener("".concat(t,"Repeat"),(function(t){t===e.animationId&&"function"==typeof e.onAnimationRepeatCallback&&e.onAnimationRepeatCallback()}))),_t.callNative("AnimationModule","startAnimation",this.animationId)}},{key:"destory",value:function(){this.destroy()}},{key:"destroy",value:function(){this.removeEventListener(),this.animationList.forEach((function(e){return Number.isInteger(e.animationId)&&_t.callNative("AnimationModule","destroyAnimation",e.animationId)})),_t.callNative("AnimationModule","destroyAnimation",this.animationId)}},{key:"pause",value:function(){_t.callNative("AnimationModule","pauseAnimation",this.animationId)}},{key:"resume",value:function(){_t.callNative("AnimationModule","resumeAnimation",this.animationId)}},{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}}]),e}(),it={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},ot=function(e){g(n,e);var t=w(n);function n(e){var r;return O(this,n),(r=t.call(this)).id="",r.style={},r.attributes={},r.tagName=e,r}return j(n,[{key:"nativeName",get:function(){return this.meta.component.name}},{key:"toString",value:function(){return"".concat(this.tagName,":(").concat(this.nativeName,")")}},{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,ee.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=T(T({},o),e)})):"object"===P(e)&&e&&(o=T(T({},o),e))})),Object.keys(o).forEach((function(e){var n=o[e];if(Object.prototype.hasOwnProperty.call(it,e)&&(e=it[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 tt||n instanceof rt?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 null===n&&void 0!==t.style[e]?t.style[e]=void 0:n instanceof tt||n instanceof rt?t.style[e]={animationId:n.animationId}:e.toLowerCase().indexOf("colors")>-1?t.style[e]=Ot(n):e.toLowerCase().indexOf("color")>-1?t.style[e]=Rt(n):t.style[e]=n}))}},{key:"setAttribute",value:function(e,t){var n=this;try{if("boolean"==typeof this.attributes[e]&&""===t&&(t=!0),void 0===e)return void Ge(this);var r=!1;if([{match:function(){return["id"].indexOf(e)>=0},action:function(){return t===n.id||(n.id=t,function(e){if(e.isMounted){var t=X(),n=qe(t,e);De(),He.push({type:Me.updateNode,nodes:n}),We(t)}}(n)),!0}},{match:function(){return["value","defaultValue","placeholder"].indexOf(e)>=0},action:function(){return n.attributes[e]=ne(t),!1}},{match:function(){return["text"].indexOf(e)>=0},action:function(){return n.attributes[e]=t,!1}},{match:function(){return["numberOfRows"].indexOf(e)>=0},action:function(){return n.attributes[e]=t,"ios"!==Pt.platform.OS}},{match:function(){return["onPress"].indexOf(e)>=0},action:function(){return n.attributes.onClick=!0,!1}},{match:function(){return["style"].indexOf(e)>=0},action:function(){return"object"!==P(t)||null==t||(n.setStyleAttribute(t),!1)}},{match:function(){return!0},action:function(){return n.attributes[e]="function"==typeof t||t,!1}}].some((function(e){return!!e.match()&&(r=e.action(),!0)})),r)return;var i=!1;Object.keys(this.style).some((function(e){var t=n.style[e];if(t&&Array.isArray(t)&&"transform"===e)for(var r=0;r2&&void 0!==arguments[2]&&arguments[2];if(null!==t){var r=t,i=e;Object.prototype.hasOwnProperty.call(it,e)&&(i=it[e]),"string"==typeof r&&(r=t.trim(),r=i.toLowerCase().indexOf("colors")>-1?Ot(r):i.toLowerCase().indexOf("color")>-1?Rt(r):ie(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||Ge(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)})),Ge(this)}}}},{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=ne(e)).replace(/ /g," ").replace(/\xc2/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}]),n}(Xe),at=V.createNode,lt=V.updateNode,ut=V.deleteNode,ct=V.flushBatch,st=V.startBatch,ft=V.endBatch,dt=V.sendRenderError,pt=Z;function ht(e){if(e instanceof ot)return e;var t=e._reactInternalFiber;if(t&&t.child){for(var n=t.child;n&&!(n.stateNode instanceof ot);)n=n.child;return n&&n.stateNode?n.stateNode:null}return null}function mt(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=J((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=ht(t);return r?r.nodeId:0}return t.nodeId}function vt(e,t){var n=e.nativeName,r=e.nodeId;if(!r||!n){var i=ht(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;l1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isInteger(e))return e;var n=Te(e);return t.platform||(t.platform="ios"),null===n?0:(n=(n<<24|n>>>8)>>>0,"android"===t.platform&&(n|=0),n)}function Ot(e,t){return Array.isArray(e)?e.map((function(e){return Rt(e,t)})):[0]}var zt=function(e){g(n,e);var t=w(n);function n(){var e;return O(this,n),(e=t.call(this)).documentElement=new ot("document"),e}return j(n,[{key:"createElement",value:function(e){return new ot(e)}},{key:"createElementNS",value:function(e,t){return new ot("".concat(e,":").concat(t))}}]),n}(Xe);zt.createElement=zt.prototype.createElement,zt.createElementNS=zt.prototype.createElementNS;var jt=Array.isArray,Lt=Object.keys,Ft=Object.prototype.hasOwnProperty;var Mt=Object.freeze({__proto__:null,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)},commitMount:function(){},commitTextUpdate:function(){},commitUpdate:function(e,t){Object.keys(t).forEach((function(n){return e.setAttribute(n,t[n])}))},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),o},createTextInstance:function(e,t){var n=t.createElement("p");return n.setAttribute("text",ne(e)),n.meta={component:{name:"Text",skipAddToDom:!0}},n},finalizeContainerChildren:function(){},finalizeInitialChildren:function(){return!0},getPublicInstance:function(e){return e},insertBefore:function(e,t,n){e.childNodes.indexOf(t)>0?e.moveChild(t,n):e.insertBefore(t,n)},prepareForCommit:function(){},prepareUpdate:function(e,t,n,r){var i={};return 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:"function"==typeof t&&"function"==typeof o||function e(t,n){if(t===n)return!0;if(t&&n&&"object"==P(t)&&"object"==P(n)){var r,i,o,a=jt(t),l=jt(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,c=n instanceof Date;if(u!=c)return!1;if(u&&c)return t.getTime()==n.getTime();var s=t instanceof RegExp,f=n instanceof RegExp;if(s!=f)return!1;if(s&&f)return t.toString()==n.toString();var d=Lt(t);if((i=d.length)!==Lt(n).length)return!1;for(r=i;0!=r--;)if(!Ft.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)}})),Object.keys(i).length?i:null},replaceContainerChildren:function(){},removeChild:function(e,t){e.removeChild(t)},removeChildFromContainer:function(e,t){e.removeChild(t)},resetAfterCommit:function(){},resetTextContent:function(){},getRootHostContext:function(){return{}},getChildHostContext:function(){return{}},shouldDeprioritizeSubtree:function(){return!0},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}}),Ut=a()(T(T({},Mt),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:function(){},cancelDeferredCallback:function(){}})),Ht=Ut.createContainer,Dt=Ut.updateContainer,Wt=Ut.getPublicRootInstance,Vt=['%c[Hippy-React "2.6.5"]%c',"color: #61dafb","color: auto"],Bt=function(){function e(t){if(O(this,e),!t.appName||!t.entryPage)throw new TypeError("Invalid arguments");this.config=t,this.regist=this.start,this.render=this.render.bind(this);var n=new zt;this.rootContainer=Ht(n,!1,!1)}return j(e,[{key:"start",value:function(){It.regist(this.config.appName,this.render)}},{key:"render",value:function(e){var t=this.config,n=t.appName,r=t.entryPage,o=t.silent,a=void 0!==o&&o,l=t.callback,u=void 0===l?function(){}:l,c=e.__instanceId__;te.apply(void 0,Vt.concat(["Start",n,"with rootViewId",c,e])),this.rootContainer.containerInfo.nodeId=c,a&&ae(a),Y(c,this.rootContainer);var s=i.a.createElement(r,e);return Dt(s,this.rootContainer,null,u),Wt(this.rootContainer)}}],[{key:"Native",get:function(){return At}}]),e}();Bt.version="2.6.5";var qt={registerComponent:function(e,t){new Bt({appName:e,entryPage:t}).start()}},Qt=function(e){g(n,e);var t=w(n);function n(){return O(this,n),t.apply(this,arguments)}return j(n,[{key:"render",value:function(){var e=this.props,t=e.collapsable,n=e.style,r=void 0===n?{}:n,o=_(e,u),a=r;return"boolean"==typeof t&&(a.collapsable=t),i.a.createElement("div",Object.assign({nativeName:"View",style:a},o))}}]),n}(i.a.Component);function $t(e,t){var n=e.style,r=_(e,c),o=n;if(n&&(Array.isArray(n)?-1===n.filter((function(e){return"object"===P(e)&&e})).findIndex((function(e){return e.color||e.colors}))&&(o[0].color="#000"):"object"===P(n)&&void 0===n.color&&void 0===n.colors&&(o.color="#000")),r.text="","string"==typeof r.children)r.text=ne(r.children);else if("number"==typeof r.children)r.text=ne(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=ne(a),r.children=r.text)}return i.a.createElement("p",Object.assign({ref:t,nativeName:"Text",style:o},r))}$t.displayName="Text";var Kt=i.a.forwardRef($t);function Gt(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){return"".concat("hpfile://","./").concat(e)}return e}Kt.displayName="Text";var Yt=function(e){g(n,e);var t=w(n);function n(){return O(this,n),t.apply(this,arguments)}return j(n,[{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(b(o),b(n))),r)if("string"==typeof r)o.push(r);else if("object"===P(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"===P(e)&&null!==e&&e.uri&&o.push(e.uri)})),o.length&&(o=o.map((function(e){return Gt(e)}))),o}},{key:"handleTintColor",value:function(e,t,n){t&&(e.tintColor=Rt(t)),Array.isArray(n)&&(e.tintColors=Ot(n))}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.style,r=e.imageStyle,o=e.imageRef,a=e.source,l=e.sources,u=e.src,c=e.srcs,f=e.tintColor,d=e.tintColors,p=_(e,s),h=this.getImageUrls({src:u,srcs:c,source:a,sources:l});if("ios"===Pt.platform.OS)h.length&&(p.source=h.map((function(e){return{uri:e}})));else if("android"===Pt.platform.OS)if(1===h.length){var m=I(h,1);p.src=m[0]}else h.length>1&&(p.srcs=h);"string"==typeof p.defaultSource&&(p.defaultSource.indexOf("data:image/"),p.defaultSource=Gt(p.defaultSource));var v=T({},n);return this.handleTintColor(v,f,d),p.style=v,t?i.a.createElement(Qt,{style:n},i.a.createElement("img",Object.assign({},p,{nativeName:"Image",alt:"",ref:o,style:[{position:"absolute",left:0,right:0,top:0,bottom:0,width:n.width,height:n.height},r]})),t):i.a.createElement("img",Object.assign({},p,{nativeName:"Image",alt:"",ref:o}))}}],[{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=Pe(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}(i.a.Component);Yt.prefetch=Ie;var Xt=function(){function e(){O(this,e),this.Value=e.Value}return j(e,null,[{key:"Value",value:function(e){return e}},{key:"timing",value:function(e,t){return new tt({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}]),e}();Xt.View=Qt,Xt.Text=Kt,Xt.Image=Yt;var Jt={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 Zt(e){return i.a.createElement("li",Object.assign({nativeName:"ListViewItem"},e))}var en=function(e){g(n,e);var t=w(n);function n(){var e;return O(this,n),(e=t.apply(this,arguments)).instance=null,e}return j(n,[{key:"expandPullHeader",value:function(){vt(this.instance,"expandPullHeader",[])}},{key:"collapsePullHeader",value:function(e){"android"===Pt.platform.OS?vt(this.instance,"collapsePullHeader",[e]):void 0!==e?vt(this.instance,"collapsePullHeaderWithOptions",[e]):vt(this.instance,"collapsePullHeader",[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=_(t,f);return i.a.createElement("div",Object.assign({nativeName:"PullHeaderView",ref:function(t){e.instance=t}},r),n)}}]),n}(i.a.Component),tn=function(e){g(n,e);var t=w(n);function n(){var e;return O(this,n),(e=t.apply(this,arguments)).instance=null,e}return j(n,[{key:"expandPullFooter",value:function(){vt(this.instance,"expandPullFooter",[])}},{key:"collapsePullFooter",value:function(){vt(this.instance,"collapsePullFooter",[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=_(t,d);return i.a.createElement("div",Object.assign({nativeName:"PullFooterView",ref:function(t){e.instance=t}},r),n)}}]),n}(i.a.Component);tn.defaultProps={sticky:!0};var nn={onDisappear:"onDisAppear"},rn={onDisappear:"onDisappear"},on=function(e){g(n,e);var t=w(n);function n(e){var r;return O(this,n),(r=t.call(this,e)).instance=null,r.pullHeader=null,r.pullFooter=null,r.handleInitialListReady=r.handleInitialListReady.bind(x(r)),r.state={initialListReady:!1},r}return j(n,[{key:"componentDidMount",value:function(){this.props.getRowKey}},{key:"convertName",value:function(e){return"android"===Pt.platform.OS&&nn[e]?nn[e]:"ios"===Pt.platform.OS&&rn[e]?rn[e]:e}},{key:"scrollToIndex",value:function(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&vt(this.instance,"scrollToIndex",[e,t,n])}},{key:"scrollToContentOffset",value:function(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&vt(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:"handleInitialListReady",value:function(){this.setState({initialListReady:!0})}},{key:"getPullHeader",value:function(e,t,n){var r=this,o=null;return"function"==typeof e&&(o=i.a.createElement(en,{ref:function(e){r.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),o}},{key:"getPullFooter",value:function(e,t,n){var r=this,o=null;return"function"==typeof e&&(o=i.a.createElement(tn,{ref:function(e){r.pullFooter=e},onFooterPulling:t,onFooterReleased:n},e())),o}},{key:"handleRowProps",value:function(e,t,n){var r=n.getRowKey,i=n.getRowStyle,o=n.onRowLayout,a=n.getRowType,l=n.rowShouldSticky;if("function"==typeof r&&(e.key=r(t)),"function"==typeof i&&(e.style=i(t)),"function"==typeof o&&(e.onLayout=function(e){o(e,t)}),"function"==typeof a){var u=a(t);Number.isInteger(u),e.type=u}"function"==typeof l&&(e.sticky=l(t))}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.style,o=t.renderRow,a=t.renderPullHeader,l=t.renderPullFooter,u=t.getRowType,c=t.getRowStyle,s=t.getRowKey,f=t.dataSource,d=t.initialListSize,h=t.rowShouldSticky,m=t.onRowLayout,v=t.onHeaderPulling,y=t.onHeaderReleased,b=t.onFooterPulling,g=t.onFooterReleased,k=t.onAppear,w=t.onDisappear,E=t.onWillAppear,x=t.onWillDisappear,S=_(t,p),C=[];if("function"==typeof o){var N=this.state.initialListReady,P=this.props.numberOfRows,I=this.getPullHeader(a,v,y),A=this.getPullFooter(l,b,g);!P&&f&&(P=f.length),N||(P=Math.min(P,d||10));for(var R=function(t){var n={},r=void 0;r=f?o(f[t],null,t):o(t),e.handleRowProps(n,t,{getRowKey:s,getRowStyle:c,getRowType:u,onRowLayout:m,rowShouldSticky:h}),[k,w,E,x].forEach((function(r){"function"==typeof r&&(n[e.convertName(r.name)]=function(){r(t)})})),r&&C.push(i.a.createElement(Zt,Object.assign({},n),r))},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(e&&e.component){if(!this.routeList[e.routeName])new Bt({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0;delete e.component}var t=[e];this.stack.push(e),vt(this.instance,"push",t)}},{key:"pop",value:function(e){if(this.stack.size>1){var t=[e];this.stack.pop(),vt(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,_(n,m)),o=_(t,v);return o.initialRoute=r,i.a.createElement("div",Object.assign({nativeName:"Navigator",ref:function(t){e.instance=t}},o))}}]),n}(i.a.Component);function cn(e){return i.a.createElement("div",Object.assign({nativeName:"ViewPagerItem"},e,{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}var sn=function(e){g(n,e);var t=w(n);function n(e){var r;return O(this,n),(r=t.call(this,e)).instance=null,r.setPage=r.setPage.bind(x(r)),r.setPageWithoutAnimation=r.setPageWithoutAnimation.bind(x(r)),r.onPageScrollStateChanged=r.onPageScrollStateChanged.bind(x(r)),r}return j(n,[{key:"onPageScrollStateChanged",value:function(e){var t=this.props.onPageScrollStateChanged;t&&t(e.pageScrollState)}},{key:"setPage",value:function(e){"number"==typeof e&&vt(this.instance,"setPage",[e])}},{key:"setPageWithoutAnimation",value:function(e){"number"==typeof e&&vt(this.instance,"setPageWithoutAnimation",[e])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.onPageScrollStateChanged,o=_(t,y),a=[];return Array.isArray(n)?a=n.map((function(e){var t={};return"string"==typeof e.key&&(t.key="viewPager_".concat(e.key)),i.a.createElement(cn,Object.assign({},t),e)})):a.push(i.a.createElement(cn,null,n)),"function"==typeof r&&(o.onPageScrollStateChanged=this.onPageScrollStateChanged),i.a.createElement("div",Object.assign({nativeName:"ViewPager",ref:function(t){e.instance=t}},o),a)}}]),n}(i.a.Component),fn=function(e){g(n,e);var t=w(n);function n(e){var r;return O(this,n),(r=t.call(this,e)).instance=null,r._lastNativeText="",r._onChangeText=r._onChangeText.bind(x(r)),r._onKeyboardWillShow=r._onKeyboardWillShow.bind(x(r)),r}return j(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){vt(e.instance,"getValue",(function(e){return t(e.text)}))}))}},{key:"setValue",value:function(e){return vt(this.instance,"setValue",[e]),e}},{key:"focus",value:function(){vt(this.instance,"focusTextInput",[])}},{key:"blur",value:function(){vt(this.instance,"blurTextInput",[])}},{key:"showInputMethod",value:function(){vt(this.instance,"showInputMethod",[])}},{key:"hideInputMethod",value:function(){vt(this.instance,"hideInputMethod",[])}},{key:"clear",value:function(){vt(this.instance,"clear",[])}},{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,n=e;"android"===Pt.platform.OS&&(n.keyboardHeight/=Pt.screen.scale),"function"==typeof t&&t(n)}},{key:"render",value:function(){var e=this,t=T({},this.props);return["underlineColorAndroid","placeholderTextColor","placeholderTextColors"].forEach((function(n){"string"==typeof e.props[n]&&(Array.isArray(t.style)?t.style.push({[n]:e.props[n]}):"object"===P(t.style)?t.style[n]=e.props[n]:t.style={[n]:e.props[n]},t[n]=void 0)})),i.a.createElement("div",Object.assign({nativeName:"TextInput"},t,{ref:function(t){e.instance=t},onChangeText:this._onChangeText,onKeyboardWillShow:this._onKeyboardWillShow}))}}]),n}(i.a.Component),dn=Pt.window.scale,pn=Math.round(.4*dn)/dn;function hn(e){return e}0===pn&&(pn=1/dn);var mn=Object.freeze({__proto__:null,get hairlineWidth(){return pn},create:hn}),vn={baseVertical:{flexGrow:1,flexShrink:1,flexDirection:"column",overflow:"scroll"},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:"row",overflow:"scroll"},contentContainerVertical:{collapse:!1,flexDirection:"column"},contentContainerHorizontal:{collapse:!1,flexDirection:"row"}},yn=function(e){g(n,e);var t=w(n);function n(){var e;return O(this,n),(e=t.apply(this,arguments)).instance=null,e}return j(n,[{key:"scrollTo",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e,i=t,o=n;"number"==typeof e||"object"===P(e)&&e&&(r=e.x,i=e.y,o=e.animated),r=r||0,i=i||0,o=!!o,vt(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;vt(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,o=t.children,a=t.style,l=[n?vn.contentContainerHorizontal:vn.contentContainerVertical,r],u=n?Object.assign({},a,vn.baseHorizontal):Object.assign({},a,vn.baseVertical);return i.a.createElement("div",Object.assign({nativeName:"ScrollView",ref:function(t){e.instance=t}},this.props,{style:u}),i.a.createElement(Qt,{style:l},o))}}]),n}(i.a.Component),bn={modal:{position:"absolute"},container:{position:"absolute",left:0,top:0}},gn=function(e){g(n,e);var t=w(n);function n(e){var r;return O(this,n),(r=t.call(this,e)).eventSubscription=null,r}return j(n,[{key:"componentDidMount",value:function(){var e=this;"ios"===Pt.platform.OS&&(this.eventSubscription=new de("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"===Pt.platform.OS&&this.eventSubscription&&this.eventSubscription.unregister()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.visible,r=e.transparent,o=e.animated,a=this.props.animationType;if(!1===n)return null;var l={backgroundColor:r?"transparent":"white"};return a||(a="none",o&&(a="slide")),i.a.createElement("div",Object.assign({nativeName:"Modal",animationType:a,transparent:r,style:bn.modal},this.props),i.a.createElement(Qt,{style:[bn.container,l]},t))}}]),n}(i.a.Component);gn.defaultProps={visible:!0};var kn=function(e){g(n,e);var t=w(n);function n(e){var r;O(this,n);var i=(r=t.call(this,e)).props.requestFocus;return r.state={isFocus:!!i},r.handleFocus=r.handleFocus.bind(x(r)),r}return j(n,[{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})}},{key:"render",value:function(){var e,t=this.props,n=t.requestFocus,r=t.children,o=t.nextFocusDownId,a=t.nextFocusUpId,l=t.nextFocusLeftId,u=t.nextFocusRightId,c=t.style,s=t.noFocusStyle,f=t.focusStyle,d=t.onClick,p=this.state.isFocus,h=i.a.Children.only(r);h&&h.child&&h.child.memoizedProps&&h.child.memoizedProps.nativeName?e=h.child.memoizedProps.nativeName:h&&h.type&&h.type.name&&(e=h.type.name);var m=o&&mt(o),v=a&&mt(a),y=l&&mt(l),b=u&&mt(u),g=c;if("Text"!==e){var k=h.memoizedProps.style;g=T(T({},g),k)}if(Object.assign(g,p?f:s),"Text"===e)return i.a.createElement(Qt,{focusable:!0,nextFocusDownId:m,nextFocusUpId:v,nextFocusLeftId:y,nextFocusRightId:b,requestFocus:n,style:g,onClick:d,onFocus:this.handleFocus},h);var w=h.memoizedProps.children;return i.a.cloneElement(h,{nextFocusDownId:o,nextFocusUpId:a,nextFocusLeftId:l,nextFocusRightId:u,requestFocus:n,onClick:d,focusable:!0,children:w,style:g,onFocus:this.handleFocus})}}]),n}(i.a.Component);function wn(e){return i.a.createElement("iframe",Object.assign({title:"hippy",nativeName:"WebView"},e))}var En,xn=function(){function e(t,n,r){var i=this;if(O(this,e),this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),En||(En=new de("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!t||"string"!=typeof t)throw new TypeError("Invalid WebSocket url");var o=T({},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 protocals");o["Sec-WebSocket-Protocol"]=n}var a={headers:o,url:t};this.url=t,this.webSocketCallbackId=En.addCallback(this.onWebSocketEvent),D.callNativeWithPromise("websocket","connect",a).then((function(e){e&&0===e.code&&"number"==typeof e.id&&(i.webSocketId=e.id)}))}return j(e,[{key:"close",value:function(e,t){1===this.readyState&&(this.readyState=2,D.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(P(e)));D.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"===P(e)&&e.id===this.webSocketId){var t=e.type;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,En.removeCallback(this.webSocketCallbackId));var n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}}]),e}();e.WebSocket=xn;var Sn=At.AsyncStorage,Cn=At.BackAndroid,Tn=At.Bridge,Nn=At.Clipboard,_n=At.Cookie,Pn=At.Device,In=At.HippyRegister,An=At.ImageLoader,Rn=At.NetworkInfo,On=At.UIManager,zn=Tn.callNative,jn=Tn.callNativeWithPromise,Ln=Tn.callNativeWithCallbackId,Fn=Tn.removeNativeCallback,Mn=null,Un=console,Hn=Pn.platform,Dn=Bt,Wn=Bt,Vn=Yt,Bn=In,qn=he,Qn=de,$n={get:function(e){return Pn[e]}},Kn={get:function(){return Pn.screen.scale}};t.default=Bt}.call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/object-assign/index.js":function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus diff --git a/hippy.podspec b/hippy.podspec index 4b9afd8257d..75a310c814d 100644 --- a/hippy.podspec +++ b/hippy.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'hippy' - s.version = '2.6.4' + s.version = '2.6.5' s.summary = 'hippy lib for ios' # This description is used to generate tags and improve search results. diff --git a/ios/sdk/base/HippyBridge.mm b/ios/sdk/base/HippyBridge.mm index b25afcf29ff..9974333cb76 100644 --- a/ios/sdk/base/HippyBridge.mm +++ b/ios/sdk/base/HippyBridge.mm @@ -42,7 +42,7 @@ NSString *const HippyJavaScriptDidFailToLoadNotification = @"HippyJavaScriptDidFailToLoadNotification"; NSString *const HippyDidInitializeModuleNotification = @"HippyDidInitializeModuleNotification"; NSString *const HippyBusinessDidLoadNotification = @"HippyBusinessDidLoadNotification"; -NSString *const _HippySDKVersion = @"2.6.4"; +NSString *const _HippySDKVersion = @"2.6.5"; static NSMutableArray *HippyModuleClasses; NSArray *HippyGetModuleClasses(void) { diff --git a/lerna.json b/lerna.json index 1e40b1e8c38..cf37c6a33c4 100644 --- a/lerna.json +++ b/lerna.json @@ -3,5 +3,5 @@ "packages": [ "packages/*" ], - "version": "2.6.4" + "version": "2.6.5" } diff --git a/packages/hippy-debug-server/CHANGELOG.md b/packages/hippy-debug-server/CHANGELOG.md index f2e83f30fa0..a94b1dcf601 100644 --- a/packages/hippy-debug-server/CHANGELOG.md +++ b/packages/hippy-debug-server/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.6.5](https://github.com/Tencent/Hippy/tree/master/packages/hippy-debug-server/compare/2.6.4...2.6.5) (2021-07-08) + +**Note:** Version bump only for package @hippy/debug-server + + + + + ## [2.6.4](https://github.com/Tencent/Hippy/tree/master/packages/hippy-debug-server/compare/2.6.3...2.6.4) (2021-05-19) **Note:** Version bump only for package @hippy/debug-server diff --git a/packages/hippy-debug-server/package.json b/packages/hippy-debug-server/package.json index 61e8f159849..30cd5cebec5 100644 --- a/packages/hippy-debug-server/package.json +++ b/packages/hippy-debug-server/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/debug-server", - "version": "2.6.4", + "version": "2.6.5", "description": "Dev server for hippy-core.", "repository": "https://github.com/Tencent/Hippy/tree/master/packages/hippy-debug-server", "homepage": "http://hippyjs.org", diff --git a/packages/hippy-react-web/CHANGELOG.md b/packages/hippy-react-web/CHANGELOG.md index c0e6c86cf29..6fe31bdf6cc 100644 --- a/packages/hippy-react-web/CHANGELOG.md +++ b/packages/hippy-react-web/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.6.5](https://github.com/Tencent/Hippy/tree/master/packages/hippy-react-web/compare/2.6.4...2.6.5) (2021-07-08) + +**Note:** Version bump only for package @hippy/react-web + + + + + ## [2.6.4](https://github.com/Tencent/Hippy/tree/master/packages/hippy-react-web/compare/2.6.3...2.6.4) (2021-05-19) **Note:** Version bump only for package @hippy/react-web diff --git a/packages/hippy-react-web/package-lock.json b/packages/hippy-react-web/package-lock.json index c9a6eb8b7cc..68107e2dbce 100644 --- a/packages/hippy-react-web/package-lock.json +++ b/packages/hippy-react-web/package-lock.json @@ -1,6 +1,6 @@ { "name": "@hippy/react-web", - "version": "2.6.4", + "version": "2.6.5", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/packages/hippy-react-web/package.json b/packages/hippy-react-web/package.json index ee681789ffb..5f3878c6958 100644 --- a/packages/hippy-react-web/package.json +++ b/packages/hippy-react-web/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/react-web", - "version": "2.6.4", + "version": "2.6.5", "description": "Web Adapter for Hippy React", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/packages/hippy-react/CHANGELOG.md b/packages/hippy-react/CHANGELOG.md index 3587cf24745..1b7eb4a7692 100644 --- a/packages/hippy-react/CHANGELOG.md +++ b/packages/hippy-react/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.6.5](https://github.com/Tencent/Hippy/tree/master/packages/hippy-react/compare/2.6.4...2.6.5) (2021-07-08) + +**Note:** Version bump only for package @hippy/react + + + + + ## [2.6.4](https://github.com/Tencent/Hippy/tree/master/packages/hippy-react/compare/2.6.3...2.6.4) (2021-05-19) **Note:** Version bump only for package @hippy/react diff --git a/packages/hippy-react/package-lock.json b/packages/hippy-react/package-lock.json index d783d8db1ca..1df07685dc1 100644 --- a/packages/hippy-react/package-lock.json +++ b/packages/hippy-react/package-lock.json @@ -1,6 +1,6 @@ { "name": "@hippy/react", - "version": "2.6.4", + "version": "2.6.5", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/packages/hippy-react/package.json b/packages/hippy-react/package.json index 82013b37f53..adc0aa46891 100644 --- a/packages/hippy-react/package.json +++ b/packages/hippy-react/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/react", - "version": "2.6.4", + "version": "2.6.5", "description": "Hippy react framework", "main": "dist/index.js", "homepage": "http://hippyjs.org", diff --git a/packages/hippy-vue-css-loader/CHANGELOG.md b/packages/hippy-vue-css-loader/CHANGELOG.md index 792293d524c..1c7fb0f86a0 100644 --- a/packages/hippy-vue-css-loader/CHANGELOG.md +++ b/packages/hippy-vue-css-loader/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.6.5](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue-css-loader/compare/2.6.4...2.6.5) (2021-07-08) + +**Note:** Version bump only for package @hippy/vue-css-loader + + + + + ## [2.6.4](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue-css-loader/compare/2.6.3...2.6.4) (2021-05-19) **Note:** Version bump only for package @hippy/vue-css-loader diff --git a/packages/hippy-vue-css-loader/package-lock.json b/packages/hippy-vue-css-loader/package-lock.json index db3ec5efd48..797632a78c2 100644 --- a/packages/hippy-vue-css-loader/package-lock.json +++ b/packages/hippy-vue-css-loader/package-lock.json @@ -1,6 +1,6 @@ { "name": "@hippy/vue-css-loader", - "version": "2.6.4", + "version": "2.6.5", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/packages/hippy-vue-css-loader/package.json b/packages/hippy-vue-css-loader/package.json index 97c27b0f358..95afb6ef9ae 100644 --- a/packages/hippy-vue-css-loader/package.json +++ b/packages/hippy-vue-css-loader/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/vue-css-loader", - "version": "2.6.4", + "version": "2.6.5", "description": "hippy-vue style loader module for webpack", "main": "dist/index.js", "homepage": "http://hippyjs.org", diff --git a/packages/hippy-vue-native-components/CHANGELOG.md b/packages/hippy-vue-native-components/CHANGELOG.md index f8b73604a05..d26b568cbd1 100644 --- a/packages/hippy-vue-native-components/CHANGELOG.md +++ b/packages/hippy-vue-native-components/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.6.5](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue-native-components/compare/2.6.4...2.6.5) (2021-07-08) + +**Note:** Version bump only for package @hippy/vue-native-components + + + + + ## [2.6.4](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue-native-components/compare/2.6.3...2.6.4) (2021-05-19) **Note:** Version bump only for package @hippy/vue-native-components diff --git a/packages/hippy-vue-native-components/package.json b/packages/hippy-vue-native-components/package.json index 315cc4a4da4..8221f3fa0a7 100644 --- a/packages/hippy-vue-native-components/package.json +++ b/packages/hippy-vue-native-components/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/vue-native-components", - "version": "2.6.4", + "version": "2.6.5", "description": "Native components middleware for Hippy-Vue, the components only for native, can't compatible with web.", "main": "dist/index.js", "homepage": "http://hippyjs.org", diff --git a/packages/hippy-vue-router/CHANGELOG.md b/packages/hippy-vue-router/CHANGELOG.md index b0f52d26ef7..a8096e8cd00 100644 --- a/packages/hippy-vue-router/CHANGELOG.md +++ b/packages/hippy-vue-router/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.6.5](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue-router/compare/2.6.4...2.6.5) (2021-07-08) + +**Note:** Version bump only for package @hippy/vue-router + + + + + ## [2.6.4](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue-router/compare/2.6.3...2.6.4) (2021-05-19) **Note:** Version bump only for package @hippy/vue-router diff --git a/packages/hippy-vue-router/package-lock.json b/packages/hippy-vue-router/package-lock.json index d66e7fb76d3..4c865f023fb 100644 --- a/packages/hippy-vue-router/package-lock.json +++ b/packages/hippy-vue-router/package-lock.json @@ -1,6 +1,6 @@ { "name": "@hippy/vue-router", - "version": "2.6.4", + "version": "2.6.5", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/packages/hippy-vue-router/package.json b/packages/hippy-vue-router/package.json index 75271b714ac..c71009849be 100644 --- a/packages/hippy-vue-router/package.json +++ b/packages/hippy-vue-router/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/vue-router", - "version": "2.6.4", + "version": "2.6.5", "description": "Official router for hippy-vue", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/packages/hippy-vue/CHANGELOG.md b/packages/hippy-vue/CHANGELOG.md index 77a899a66a5..6438bdc650c 100644 --- a/packages/hippy-vue/CHANGELOG.md +++ b/packages/hippy-vue/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.6.5](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue/compare/2.6.4...2.6.5) (2021-07-08) + +**Note:** Version bump only for package @hippy/vue + + + + + ## [2.6.4](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue/compare/2.6.3...2.6.4) (2021-05-19) **Note:** Version bump only for package @hippy/vue diff --git a/packages/hippy-vue/package-lock.json b/packages/hippy-vue/package-lock.json index a086a241e03..a95f6f0394f 100644 --- a/packages/hippy-vue/package-lock.json +++ b/packages/hippy-vue/package-lock.json @@ -1,6 +1,6 @@ { "name": "@hippy/vue", - "version": "2.6.4", + "version": "2.6.5", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/packages/hippy-vue/package.json b/packages/hippy-vue/package.json index a27830cefa9..00159b5e9c8 100644 --- a/packages/hippy-vue/package.json +++ b/packages/hippy-vue/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/vue", - "version": "2.6.4", + "version": "2.6.5", "description": "Vue binding for Hippy native framework", "author": "XQ Kuang ", "license": "Apache-2.0",