diff --git a/CHANGELOG.md b/CHANGELOG.md index c1dcbe38d34..283ed1a3c25 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,29 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.10.3](https://github.com/Tencent/Hippy/compare/2.10.2...2.10.3) (2021-11-16) + + +### Bug Fixes + +* **android:** element y position use root view location ([3542a59](https://github.com/Tencent/Hippy/commit/3542a59a6b7b40808e36382d4761b26282b5f6a8)) +* **android:** view pager use Number cast obj to int ([f5c982f](https://github.com/Tencent/Hippy/commit/f5c982f0f5ffd924fca559cf58734dbc798f1e35)) +* **hippy-react:** fixed insertBefore moveChild condition ([b2d71eb](https://github.com/Tencent/Hippy/commit/b2d71ebee6bec5813da930e4f907d445cc1282ee)) +* **hippy-vue:** remove vue other attributes converted to number ([8ce311a](https://github.com/Tencent/Hippy/commit/8ce311a175ea1616168e3621e1c43a3eef9a1b30)) +* **ios:** crash fixed,improve stability ([#1042](https://github.com/Tencent/Hippy/issues/1042)) ([383daba](https://github.com/Tencent/Hippy/commit/383daba3a6b947f7bdd0027e8c028c194f0d1a89)) +* **ios:** fix layout nan value ([7b394fb](https://github.com/Tencent/Hippy/commit/7b394fba92b663abba1ddbdcc5f6d77ceb6d63cd)) +* **ios:** ignore multiline property for password type textinput ([72c0879](https://github.com/Tencent/Hippy/commit/72c08794089fa821ce58c02db11e6b3b4f562c71)) +* **ios:** improve stability ([ec2686f](https://github.com/Tencent/Hippy/commit/ec2686f96ad5c9abcae09d03135f87c07b2d715a)) + + +### Features + +* **core:** modify console module log level ([809627d](https://github.com/Tencent/Hippy/commit/809627dbdc3828026328342bdd8046886d9360c4)) + + + + + ## [2.10.2](https://github.com/Tencent/Hippy/compare/2.10.1...2.10.2) (2021-11-02) diff --git a/android/sdk/gradle.properties b/android/sdk/gradle.properties index 21f6cdc4bfa..55994553f22 100644 --- a/android/sdk/gradle.properties +++ b/android/sdk/gradle.properties @@ -27,7 +27,7 @@ NDK_VERSION=21.4.7075529 #maven central sdk version #1.0.0-SNAPSHOT -VERSION_NAME=2.10.2 +VERSION_NAME=2.10.3 VERSION_CODE=1 #ABI diff --git a/examples/android-demo/res/vendor.android.js b/examples/android-demo/res/vendor.android.js index b1cd1cbc57b..f1ecb4f7e54 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 Ut})),n.d(t,"Animation",(function(){return me})),n.d(t,"AnimationSet",(function(){return ye})),n.d(t,"AppRegistry",(function(){return Tt})),n.d(t,"AsyncStorage",(function(){return yn})),n.d(t,"BackAndroid",(function(){return bn})),n.d(t,"Clipboard",(function(){return wn})),n.d(t,"ConsoleModule",(function(){return Ln})),n.d(t,"Dimensions",(function(){return Un})),n.d(t,"Easing",(function(){return Dt})),n.d(t,"Focusable",(function(){return cn})),n.d(t,"Hippy",(function(){return zn})),n.d(t,"HippyEventEmitter",(function(){return te})),n.d(t,"HippyEventListener",(function(){return Z})),n.d(t,"HippyRegister",(function(){return En})),n.d(t,"Image",(function(){return Ht})),n.d(t,"ImageBackground",(function(){return jn})),n.d(t,"ImageLoaderModule",(function(){return xn})),n.d(t,"ListView",(function(){return Qt})),n.d(t,"ListViewItem",(function(){return Wt})),n.d(t,"Modal",(function(){return un})),n.d(t,"Navigator",(function(){return Yt})),n.d(t,"NetInfo",(function(){return Cn})),n.d(t,"NetworkModule",(function(){return Sn})),n.d(t,"PixelRatio",(function(){return Dn})),n.d(t,"Platform",(function(){return On})),n.d(t,"PullFooter",(function(){return Vt})),n.d(t,"PullHeader",(function(){return Bt})),n.d(t,"RNfqb",(function(){return Tn})),n.d(t,"RNfqbEventEmitter",(function(){return Mn})),n.d(t,"RNfqbEventListener",(function(){return Hn})),n.d(t,"RNfqbRegister",(function(){return Fn})),n.d(t,"RefreshWrapper",(function(){return Kt})),n.d(t,"ScrollView",(function(){return ln})),n.d(t,"StyleSheet",(function(){return on})),n.d(t,"Text",(function(){return Mt})),n.d(t,"TextInput",(function(){return en})),n.d(t,"TimerModule",(function(){return An})),n.d(t,"UIManagerModule",(function(){return Nn})),n.d(t,"View",(function(){return jt})),n.d(t,"ViewPager",(function(){return Jt})),n.d(t,"WaterfallView",(function(){return gn})),n.d(t,"WebSocket",(function(){return pn})),n.d(t,"WebView",(function(){return dn})),n.d(t,"callNative",(function(){return In})),n.d(t,"callNativeWithCallbackId",(function(){return _n})),n.d(t,"callNativeWithPromise",(function(){return Pn})),n.d(t,"colorParse",(function(){return St})),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);const l=["children"],s=["collapsable","style"],u=["style"],c=["children","style","imageStyle","imageRef","source","sources","src","srcs","tintColor","tintColors"],d=["children"],f=["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"],g=["component"],y=["children","onPageScrollStateChanged"],b=["collapsable","style"],v=["style","renderBanner","numberOfColumns","columnSpacing","interItemSpacing","numberOfItems","preloadItemNumber","renderItem","renderPullHeader","renderPullFooter","getItemType","getItemKey","getItemStyle","contentInset","onItemLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","containPullHeader","containPullFooter","containBannerView"];function w(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 S(e){for(var t=1;t=0||(i[n]=e[n]);return i} /*! - * @hippy/react v2.10.2 - * Build at: Tue Nov 02 2021 15:17:51 GMT+0800 (China Standard Time) + * @hippy/react v2.10.3 + * Build at: Tue Nov 16 2021 16:28:28 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__:x}=e;x.nodeId=0,x.animationId=0,x.renderCount=0;const{asyncStorage:C,bridge:N,device:I,document:P,register:_,on:R,off:A,emit:L}=e.Hippy;var O=Object.freeze({__proto__:null,addEventListener:R,removeEventListener:A,dispatchEvent:L,AsyncStorage:C,Bridge:N,Device:I,HippyRegister:_,UIManager:P});let z,T;function j(e,t){T=e,z=t}function F(){if(!T)throw new Error("getRootViewId must execute after setRootContainer");return T}function M(e){if(!z)return null;const{current:t}=z,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 H(e){return M(t=>t.stateNode&&t.stateNode.nodeId===e)}const U=new RegExp(/^\d+$/);let D=!1,W=!1;function B(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)))}const V=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function $(e){return"[object Function]"===Object.prototype.toString.call(e)}function q(e){D=e}function Q(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){0;return`${"hpfile://"}./${e}`}return e}class K{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}}const G=new Map;function Y(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for getHippyEventHub: "+e);return G.get(e)||null}const X={registerNativeEventHub:function(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for registerNativeEventHub: "+e);let t=G.get(e);return t||(t=new K(e),G.set(e,t)),t},getHippyEventHub:Y,unregisterNativeEventHub:function(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for unregisterNativeEventHub: "+e);G.has(e)&&G.delete(e)},receiveNativeEvent:function(e){if(!e||!Array.isArray(e)||e.length<2)throw new TypeError("Invalid params for receiveNativeEvent: "+JSON.stringify(e));const[t,n]=e;if("string"!=typeof t)throw new TypeError("Invalid arguments");const r=Y(t);r&&r.notifyEvent(n)},receiveNativeGesture:function(e){if(!e)return;const{id:t}=e,n=H(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),"boolean"!=typeof r&&(r=!W)}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=H(t);i&&i.memoizedProps&&i.memoizedProps[n]&&"function"==typeof i.memoizedProps[n]&&i.memoizedProps[n](r)}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=X);class J{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 Z{constructor(e){this.eventName=e,this.listenerIds=[]}addCallback(e,t){if("function"!=typeof e)throw new TypeError("Invalid arguments");const n=X.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=X.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;t{t(e)});return le.set(r,r),new ue(n,t)},removeEventListener:ce,fetch:function(){return N.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)}});function fe(e){return"loop"===e?-1:e}const pe=new te;function he(e,t){return"color"===e&&["number","string"].indexOf(typeof t)>=0?St(t):t}class me{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=he(e.valueType,n)}const n=he(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=fe(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=pe.addListener(e+"Start",e=>{e===this.animationId&&(this.animationStartListener.remove(),"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback())})),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=pe.addListener(e+"End",e=>{e===this.animationId&&(this.animationEndListener.remove(),"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback())})),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=pe.addListener(e+"Cancel",e=>{e===this.animationId&&(this.animationCancelListener.remove(),"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback())})),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=pe.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 me)t={animationId:e.startValue.animationId};else{const{startValue:n}=e;t=he(this.valueType,n)}this.startValue=t||0}else"repeatCount"===t?this.repeatCount=fe(e.repeatCount||0):Object.defineProperty(this,t,{value:n})}),lt.callNative("AnimationModule","updateAnimation",this.animationId,Object.assign({delay:this.delay,startValue:this.startValue,toValue:he(this.valueType,this.toValue),duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{}))}onAnimationStart(e){this.onAnimationStartCallback=e}onAnimationEnd(e){this.onAnimationEndCallback=e}onAnimationCancel(e){this.onAnimationCancelCallback=e}onAnimationRepeat(e){this.onAnimationRepeatCallback=e}}const ge=new te;class ye{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:fe(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=ge.addListener(e+"Start",e=>{e===this.animationId&&(this.animationStartListener.remove(),"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback())})),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=ge.addListener(e+"End",e=>{e===this.animationId&&(this.animationEndListener.remove(),"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback())})),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=ge.addListener(e+"Cancel",e=>{e===this.animationId&&(this.animationCancelListener.remove(),"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback())})),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=ge.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 be={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode")};let ve=!0,we=[];function Se(){ve&&Ve()}function ke(e){ve&&(ve=!1,Promise.resolve().then(()=>{(function(e){const t=[];for(let n=0;n{switch(t.type){case be.createNode:t.nodes,Ue(e,t.nodes);break;case be.updateNode:t.nodes,"ios"===I.platform.OS?t.nodes.forEach(t=>De(e,[t])):De(e,t.nodes);break;case be.deleteNode:t.nodes,"ios"===I.platform.OS?t.nodes.forEach(t=>We(e,[t])):We(e,t.nodes)}}),$e(),we=[],ve=!0}))}function Ee(e){const t=e.attributes,{children:n}=t;return E(t,l)}function xe(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:S(S({},Ee(t)),{},{style:t.style})}}function Ce(e,t){const n=[];return t.traverseChildren(t=>{const r=xe(e,t);r&&n.push(r)}),n}function Ne(e){return!!z&&e instanceof z.containerInfo.constructor}function Ie(e,t,n=-1){if(!e)return;if(t.meta.skipAddToDom)return;const r=F();if(Ne(e)&&!e.isMounted){const n=Ce(r,t);Se(),we.push({type:be.createNode,nodes:n}),ke(r),e.traverseChildren(e=>{e.isMounted||(e.isMounted=!0)})}else if(e.isMounted&&!t.isMounted){const e=Ce(r,t);Se(),we.push({type:be.createNode,nodes:e}),ke(r),t.traverseChildren(e=>{e.isMounted||(e.isMounted=!0)})}}function Pe(e,t){if(!t||t.meta.skipAddToDom)return;t.isMounted=!1,t.traverseChildren(e=>{e.isMounted&&(e.isMounted=!1)});const n=F(),r=[{id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:n,index:t.index}];Se(),we.push({type:be.deleteNode,nodes:r}),ke(n)}function _e(e){if(!e.isMounted)return;const t=F(),n=xe(t,e);Se(),n&&we.push({type:be.updateNode,nodes:[n]}),ke(t)}let Re=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=(Re+=1,Re%10==0&&(Re+=1),Re)}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),Ie(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]),Pe(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),Ie(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||(Pe(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)})}}const Le={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},Oe={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},ze="turn",Te="rad",je="deg";function Fe(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=/^([+-]?\d+\.?\d*)+(deg|turn|rad)|(to\w+)$/g.exec(t);if(!Array.isArray(n))return;let r="180";const[i,o,a]=n;return o&&a?r=function(e,t=je){const n=parseFloat(e);let r=e||"";const[,i]=e.split(".");switch(i&&i.length>2&&(r=n.toFixed(2)),t){case ze:r=""+(360*n).toFixed(2);break;case Te:r=""+(180/Math.PI*n).toFixed(2)}return r}(o,a):i&&void 0!==Oe[i]&&(r=Oe[i]),r}function Me(e){const t=(e||"").replace(/\s+/g," ").trim(),[n,r]=t.split(/\s+(?![^(]*?\))/),i=/^([+-]?\d+\.?\d*)%$/g;return!n||i.exec(n)||r?n&&i.exec(r)?{ratio:parseFloat(r.split("%")[0])/100,color:St(n)}:void 0:{color:St(n)}}class He 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=S(S({},n),e)}):"object"==typeof e&&e&&(n=S(S({},n),e))}),Object.keys(n).forEach(e=>{const t=n[e];if(Object.prototype.hasOwnProperty.call(Le,e)&&(e=Le[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 me||r instanceof ye?e[n]={animationId:r.animationId}:null===r?e[n]&&delete e[n]:void 0!==r&&(e[n]=r)})});const n=Object.keys(e);n.length&&(Array.isArray(this.style.transform)||(this.style.transform=[]),n.forEach(t=>this.style.transform.push({[t]:e[t]})))}else if(null===t&&void 0!==this.style[e])this.style[e]=void 0;else if(t instanceof me||t instanceof ye)this.style[e]={animationId:t.animationId};else if(e.toLowerCase().indexOf("colors")>-1)this.style[e]=kt(t);else if(e.toLowerCase().indexOf("color")>-1)this.style[e]=St(t);else if("backgroundImage"===e&&t)this.style=function(e,t,n){if(0===t.indexOf("linear-gradient")){const e=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),r=[];n.linearGradient=n.linearGradient||{},e.forEach((e,t)=>{if(0===t){const t=Fe(e);if(t)n.linearGradient.angle=t;else{n.linearGradient.angle="180";const t=Me(e);t&&r.push(t)}}else{const t=Me(e);t&&r.push(t)}}),n.linearGradient.colorStopList=r}else n[e]=Q(t);return n}(e,t,this.style);else if("textShadowOffset"===e){const{x:n=0,width:r=0,y:i=0,height:o=0}=t||{};this.style[e]={width:n||r,height:i||o}}else["textShadowOffsetX","textShadowOffsetY"].indexOf(e)>=0?this.style=function(e,t,n){return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[{textShadowOffsetX:"width",textShadowOffsetY:"height"}[e]]:t||0}),n}(e,t,this.style):this.style[e]=t})}setAttribute(e,t){try{if("boolean"==typeof this.attributes[e]&&""===t&&(t=!0),void 0===e)return void _e(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=F(),n=Ce(t,e);Se(),we.push({type:be.updateNode,nodes:n}),ke(t)}(this)),!0)},{match:()=>["value","defaultValue","placeholder"].indexOf(e)>=0,action:()=>(this.attributes[e]=B(t),!1)},{match:()=>["text"].indexOf(e)>=0,action:()=>(this.attributes[e]=t,!1)},{match:()=>["numberOfRows"].indexOf(e)>=0,action:()=>(this.attributes[e]=t,"ios"!==st.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?kt(r):i.toLowerCase().indexOf("color")>-1?St(r):function(e){if("number"==typeof e)return e;if("string"==typeof e&&V.test(e))try{return parseFloat(e)}catch(t){return e}return e}(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||_e(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)}),_e(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=B(e)).replace(/ /g," ").replace(/Â/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}const{createNode:Ue,updateNode:De,deleteNode:We,flushBatch:Be,startBatch:Ve,endBatch:$e,sendRenderError:qe}=P,Qe=H;function Ke(e){if(e instanceof He)return e;const t=e._reactInternalFiber||e._reactInternals;if(t&&t.child){let e=t.child;for(;e&&!(e.stateNode instanceof He);)e=e.child;return e&&e.stateNode?e.stateNode:null}return null}function Ge(e){let t=e;if("string"==typeof e){const n=M(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;$(o)&&(a=o,o=[]);null!==F()&&("ios"===I.platform.OS?($(a)&&Array.isArray(o)&&o.push(a),N.callNative("UIManagerModule","callUIFunction",[r,i,t,o])):"android"===I.platform.OS&&($(a)?N.callNative("UIManagerModule","callUIFunction",[i,t,o],a):N.callNative("UIManagerModule","callUIFunction",[i,t,o])))}function Xe(e,t,n){const r=Ge(t);return new Promise((t,i)=>r?N.callNative("UIManagerModule",e,r,e=>(n&&$(n)&&n(e),"this view is null"===e?i(new Error("Android cannot get the node")):t(e))):(n&&$(n)&&n("this view is null"),i(new Error(e+" cannot get nodeId"))))}var Je=Object.freeze({__proto__:null,createNode:Ue,updateNode:De,deleteNode:We,flushBatch:Be,startBatch:Ve,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"===I.platform.OS?Xe("measureInWindow",e,t):Xe("measureInAppWindow",e,t)}});const Ze=new te,et=new Set,tt={exitApp(){N.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(N.callNative("DeviceEventModule","setListenBackPress",!0),et.add(e),{remove(){tt.removeListener(e)}}),removeListener(e){et.delete(e),0===et.size&&N.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:st,HippyRegister:ut}=O;var ct=Object.freeze({__proto__:null,addEventListener:rt,removeEventListener:it,dispatchEvent:ot,AsyncStorage:at,BackAndroid:nt,Bridge:lt,Clipboard:ne,Cookie:re,Device:st,HippyRegister:ut,ImageLoader:ae,NetworkInfo:de,UIManager:Je});function dt(...e){return`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`}const ft={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},pt="[-+]?\\d*\\.?\\d+",ht={rgb:new RegExp("rgb"+dt(pt,pt,pt)),rgba:new RegExp("rgba"+dt(pt,pt,pt,pt)),hsl:new RegExp("hsl"+dt(pt,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+dt(pt,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",pt)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/};function mt(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function gt(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function yt(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 bt(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=yt(i,r,e+1/3),a=yt(i,r,e),l=yt(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function vt(e){return(parseFloat(e)%360+360)%360/360}function wt(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function St(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=ht.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(ft,e)?ft[e]:(t=ht.rgb.exec(e),Array.isArray(t)?(mt(t[1])<<24|mt(t[2])<<16|mt(t[3])<<8|255)>>>0:(t=ht.rgba.exec(e),t?(mt(t[1])<<24|mt(t[2])<<16|mt(t[3])<<8|gt(t[4]))>>>0:(t=ht.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ht.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=ht.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ht.hsl.exec(e),t?(255|bt(vt(t[1]),wt(t[2]),wt(t[3])))>>>0:(t=ht.hsla.exec(e),t?(bt(vt(t[1]),wt(t[2]),wt(t[3]))|gt(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 kt(e,t){return Array.isArray(e)?e.map(e=>St(e,t)):[0]}class Et extends Ae{constructor(){super(),this.documentElement=new He("document")}createElement(e){return new He(e)}createElementNS(e,t){return new He(`${e}:${t}`)}}Et.createElement=Et.prototype.createElement,Et.createElementNS=Et.prototype.createElementNS;var xt=Array.isArray,Ct=Object.keys,Nt=Object.prototype.hasOwnProperty;const It=setTimeout,Pt=clearTimeout;var _t=Object.freeze({__proto__:null,scheduleTimeout:It,cancelTimeout:Pt,afterActiveInstanceBlur:function(){},appendChild:function(e,t){e.childNodes.indexOf(t)>=0&&e.removeChild(t),e.appendChild(t)},appendChildToContainer:function(e,t){e.appendChild(t)},appendInitialChild:function(e,t){e.appendChild(t)},beforeActiveInstanceBlur:function(e){},commitMount:function(){},commitTextUpdate:function(){},commitUpdate:function(e,t){Object.keys(t).forEach(n=>e.setAttribute(n,t[n]))},clearContainer:function(e){},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",B(e)),n.meta={component:{name:"Text",skipAddToDom:!0}},n},finalizeContainerChildren:function(){},finalizeInitialChildren:function(){return!0},getChildHostContext:function(){return{}},getPublicInstance:function(e){return e},getInstanceFromNode:function(e){throw new Error("Not yet implemented.")},getFundamentalComponentInstance:function(e){throw new Error("Not yet implemented.")},getRootHostContext:function(){return{}},hideInstance:function(e){const t={style:{display:"none"}};Object.keys(t).forEach(n=>e.setAttribute(n,t[n]))},hideTextInstance:function(e){throw new Error("Not yet implemented.")},insertBefore:function(e,t,n){e.childNodes.indexOf(t)>0?e.moveChild(t,n):e.insertBefore(t,n)},isOpaqueHydratingObject:function(e){throw new Error("Not yet implemented")},makeClientId:function(){throw new Error("Not yet implemented")},makeClientIdInDEV:function(e){throw new Error("Not yet implemented")},makeOpaqueHydratingObject:function(e){throw new Error("Not yet implemented.")},mountFundamentalComponent:function(e){throw new Error("Not yet implemented.")},prepareForCommit:function(){return null},preparePortalMount:function(e){},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=xt(t),l=xt(n);if(a&&l){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=l)return!1;var s=t instanceof Date,u=n instanceof Date;if(s!=u)return!1;if(s&&u)return t.getTime()==n.getTime();var c=t instanceof RegExp,d=n instanceof RegExp;if(c!=d)return!1;if(c&&d)return t.toString()==n.toString();var f=Ct(t);if((i=f.length)!==Ct(n).length)return!1;for(r=i;0!=r--;)if(!Nt.call(n,f[r]))return!1;for(r=i;0!=r--;)if(!e(t[o=f[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(){},unmountFundamentalComponent:function(e){throw new Error("Not yet implemented.")},updateFundamentalComponent:function(e){throw new Error("Not yet implemented.")},unhideTextInstance:function(e,t){throw new Error("Not yet implemented.")},unhideInstance:function(e,t){const n=S(S({},t),{},{style:S(S({},t.style),{},{display:"flex"})});Object.keys(n).forEach(t=>e.setAttribute(t,n[t]))},shouldDeprioritizeSubtree:function(){return!0},shouldUpdateFundamentalComponent:function(e){throw new Error("Not yet implemented.")},shouldSetTextContent:function(e,t){if(t&&"Text"===t.nativeName||-1!==["p","span"].indexOf(e)){const{children:e}=t;return"string"==typeof e||"number"==typeof e}return!1}});const Rt=a()(S(S({},_t),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:()=>{},cancelDeferredCallback:()=>{}})),{createContainer:At,updateContainer:Lt,getPublicRootInstance:Ot}=Rt;class zt{constructor(e){if(!e.appName||!e.entryPage)throw new TypeError("Invalid arguments");this.config=e,this.regist=this.start,this.render=this.render.bind(this);const t=new Et;this.rootContainer=At(t,!1,!1)}static get Native(){return ct}start(){ut.regist(this.config.appName,this.render)}render(e){const{appName:t,entryPage:n,silent:r=!1,bubbles:o=!1,callback:a=(()=>{})}=this.config,{__instanceId__:l}=e;this.rootContainer.containerInfo.nodeId=l,r&&q(r),o&&function(e=!1){W=e}(o),j(l,this.rootContainer);const s=i.a.createElement(n,e);return Lt(s,this.rootContainer,null,a),Ot(this.rootContainer)}}zt.version="2.10.2";const Tt={registerComponent(e,t){new zt({appName:e,entryPage:t}).start()}};class jt extends i.a.Component{render(){const e=this.props,{collapsable:t,style:n={}}=e,r=E(e,s),o=n;return"boolean"==typeof t&&(o.collapsable=t),i.a.createElement("div",Object.assign({nativeName:"View",style:o},r))}}function Ft(e,t){let{style:n}=e,r=E(e,u);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=B(r.children);else if("number"==typeof r.children)r.text=B(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=B(e),r.children=r.text)}return i.a.createElement("p",Object.assign({ref:t,nativeName:"Text",style:o},r))}Ft.displayName="Text";const Mt=i.a.forwardRef(Ft);Mt.displayName="Text";class Ht 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=ie(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=>Q(e))),i}handleTintColor(e,t,n){t&&(e.tintColor=St(t)),Array.isArray(n)&&(e.tintColors=kt(n))}render(){const e=this.props,{children:t,style:n,imageStyle:r,imageRef:o,source:a,sources:l,src:s,srcs:u,tintColor:d,tintColors:f}=e,p=E(e,c),h=this.getImageUrls({src:s,srcs:u,source:a,sources:l});"ios"===st.platform.OS?h.length&&(p.source=h.map(e=>({uri:e}))):"android"===st.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=Q(p.defaultSource));const m=S({},n);return this.handleTintColor(m,d,f),p.style=m,t?i.a.createElement(jt,{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}))}}Ht.prefetch=oe;class Ut{constructor(){this.Value=Ut.Value}static Value(e){return e}static timing(e,t){return new me({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}Ut.View=jt,Ut.Text=Mt,Ut.Image=Ht;const Dt={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 Bt extends i.a.Component{constructor(){super(...arguments),this.instance=null}expandPullHeader(){Ye(this.instance,"expandPullHeader",[])}collapsePullHeader(e){"android"===st.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=E(e,d);return i.a.createElement("div",Object.assign({nativeName:"PullHeaderView",ref:e=>{this.instance=e}},n),t)}}class Vt 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=E(e,f);return i.a.createElement("div",Object.assign({nativeName:"PullFooterView",ref:e=>{this.instance=e}},n),t)}}Vt.defaultProps={sticky:!0};const $t={onDisappear:"onDisAppear"},qt={onDisappear:"onDisappear"};class Qt 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){let t=e;return t.indexOf("bound")>=0&&(t=t.substring("bound".length+1)),"android"===st.platform.OS&&$t[t]?$t[t]:"ios"===st.platform.OS&&qt[t]?qt[t]:t}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(Bt,{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(Vt,{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:u,dataSource:c,initialListSize:d,rowShouldSticky:f,onRowLayout:h,onHeaderPulling:m,onHeaderReleased:g,onFooterPulling:y,onFooterReleased:b,onAppear:v,onDisappear:w,onWillAppear:k,onWillDisappear:x}=e,C=E(e,p),N=[];if("function"==typeof r){const{initialListReady:e}=this.state;let{numberOfRows:t}=this.props;const p=this.getPullHeader(o,m,g),E=this.getPullFooter(a,y,b);!t&&c&&(t=c.length),e||(t=Math.min(t,d||10));for(let e=0;e{"function"==typeof n&&(t[this.convertName(n.name)]=()=>{n(e)})}),n&&N.push(i.a.createElement(Wt,Object.assign({},t),n))}p&&N.unshift(p),E&&N.push(E),"function"==typeof f&&Object.assign(C,{rowShouldSticky:!0});const I=[v,w,k,x];C.exposureEventEnabled=I.some(e=>"function"==typeof e),C.numberOfRows=N.length,C.initialListSize=d,C.style=S({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),N.length?N:t)}}Qt.defaultProps={numberOfRows:0};class Kt 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=E(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 Gt{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 zt({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=E(e.initialRoute,g),r=E(e,m);return r.initialRoute=n,i.a.createElement("div",Object.assign({nativeName:"Navigator",ref:e=>{this.instance=e}},r))}}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}}))}class Jt 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=E(e,y);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(Xt,Object.assign({},t),e)}):o.push(i.a.createElement(Xt,null,t)),"function"==typeof n&&(r.onPageScrollStateChanged=this.onPageScrollStateChanged),i.a.createElement("div",Object.assign({nativeName:"ViewPager",ref:e=>{this.instance=e}},r),o)}}function Zt(){const e=I.platform.Localization;return!!e&&1===e.direction}class en 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"===st.platform.OS&&(n.keyboardHeight/=st.screen.scale),"function"==typeof t&&t(n)}render(){const e=S({},this.props);return["underlineColorAndroid","placeholderTextColor","placeholderTextColors"].forEach(t=>{"string"==typeof this.props[t]&&(Array.isArray(e.style)?e.style.push({[t]:this.props[t]}):e.style&&"object"==typeof e.style?e.style[t]=this.props[t]:e.style={[t]:this.props[t]},e[t]=void 0)}),Zt()&&(e.style?"object"!=typeof e.style||Array.isArray(e.style)||e.style.textAlign||(e.style.textAlign="right"):e.style={textAlign:"right"}),i.a.createElement("div",Object.assign({nativeName:"TextInput"},e,{ref:e=>{this.instance=e},onChangeText:this._onChangeText,onKeyboardWillShow:this._onKeyboardWillShow}))}}const tn=st.window.scale;let nn=Math.round(.4*tn)/tn;function rn(e){return e}0===nn&&(nn=1/tn);var on=Object.freeze({__proto__:null,get hairlineWidth(){return nn},create:rn});const an={baseVertical:{flexGrow:1,flexShrink:1,flexDirection:"column",overflow:"scroll"},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:"row",overflow:"scroll"},contentContainerVertical:{collapsable:!1,flexDirection:"column"},contentContainerHorizontal:{collapsable:!1,flexDirection:"row"}};class ln 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?an.contentContainerHorizontal:an.contentContainerVertical,t],a=e?Object.assign({},an.baseHorizontal,r):Object.assign({},an.baseVertical,r);return e&&(a.flexDirection=Zt()?"row-reverse":"row"),i.a.createElement("div",Object.assign({nativeName:"ScrollView",ref:e=>{this.instance=e}},this.props,{style:a}),i.a.createElement(jt,{style:o},n))}}const sn={modal:{position:"absolute"},container:{position:"absolute",left:0,top:0}};class un extends i.a.Component{constructor(e){super(e),this.eventSubscription=null}componentDidMount(){"ios"===st.platform.OS&&(this.eventSubscription=new Z("modalDismissed"),this.eventSubscription.addCallback(e=>{const{primaryKey:t,onDismiss:n}=this.props;e.primaryKey===t&&"function"==typeof n&&n()}))}componentWillUnmount(){"ios"===st.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:sn.modal},this.props),i.a.createElement(jt,{style:[sn.container,a]},e))}}un.defaultProps={visible:!0};class cn 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:u,onClick:c}=this.props,{isFocus:d}=this.state,f=i.a.Children.only(t);let p;f&&f.child&&f.child.memoizedProps&&f.child.memoizedProps.nativeName?p=f.child.memoizedProps.nativeName:f&&f.type&&f.type.displayName&&(p=f.type.displayName);const h=n&&Ge(n),m=r&&Ge(r),g=o&&Ge(o),y=a&&Ge(a);let b=l;if("Text"!==p){const e=f.memoizedProps.style;b=S(S({},b),e)}if(Object.assign(b,d?u:s),"Text"===p)return i.a.createElement(jt,{focusable:!0,nextFocusDownId:h,nextFocusUpId:m,nextFocusLeftId:g,nextFocusRightId:y,requestFocus:e,style:b,onClick:c,onFocus:this.handleFocus},f);const{children:v}=f.memoizedProps;return i.a.cloneElement(f,{nextFocusDownId:n,nextFocusUpId:r,nextFocusLeftId:o,nextFocusRightId:a,requestFocus:e,onClick:c,focusable:!0,children:v,style:b,onFocus:this.handleFocus})}}function dn(e){return i.a.createElement("iframe",Object.assign({title:"hippy",nativeName:"WebView"},e))}let fn;class pn{constructor(e,t,n){if(this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),fn||(fn=new Z("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!e||"string"!=typeof e)throw new TypeError("Invalid WebSocket url");const r=S({},n);if(void 0!==t)if(Array.isArray(t)&&t.length>0)r["Sec-WebSocket-Protocol"]=t.join(",");else{if("string"!=typeof t)throw new TypeError("Invalid WebSocket protocols");r["Sec-WebSocket-Protocol"]=t}const i={headers:r,url:e};this.url=e,this.webSocketCallbackId=fn.addCallback(this.onWebSocketEvent),N.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,N.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);N.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,fn.removeCallback(this.webSocketCallbackId));const n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}class hn extends i.a.Component{render(){const e=this.props,{collapsable:t,style:n={}}=e,r=E(e,b),o=n;return"boolean"==typeof t&&(o.collapsable=t),i.a.createElement("div",Object.assign({nativeName:"View",style:o},r))}}function mn(e){return i.a.createElement("li",Object.assign({nativeName:"WaterfallItem"},e))}class gn extends i.a.Component{constructor(e){super(e),this.instance=null,this.pullHeader=null,this.pullFooter=null,this.handleInitialListReady=this.handleInitialListReady.bind(this)}componentDidMount(){const{getItemKey:e}=this.props}scrollToIndex({index:e=0,animated:t=!0}){Ye(this.instance,"scrollToIndex",[e,e,t])}scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){Ye(this.instance,"scrollToContentOffset",[e,t,n])}handleRowProps(e,t,{getItemKey:n,getItemStyle:r,onItemLayout:i,getItemType:o}){if("function"==typeof n&&(e.key=n(t)),"function"==typeof r&&(e.style=r(t)),"function"==typeof i&&(e.onLayout=e=>{i(e,t)}),"function"==typeof o){const n=o(t);Number.isInteger(n),e.type=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()}getPullHeader(e,t,n){let r=null;return"function"==typeof e&&(r=i.a.createElement(Bt,{key:"PullHeader",ref:e=>{this.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),r}getPullFooter(e,t,n){let r=null;return"function"==typeof e&&(r=i.a.createElement(Vt,{key:"PullFooter",ref:e=>{this.pullFooter=e},onFooterPulling:t,onFooterReleased:n},e())),r}handleInitialListReady(){const{onInitialListReady:e}=this.props;"function"==typeof e&&e()}render(){const e=this.props,{style:t={},renderBanner:n,numberOfColumns:r=2,columnSpacing:o=0,interItemSpacing:a=0,numberOfItems:l=0,preloadItemNumber:s=0,renderItem:u,renderPullHeader:c,renderPullFooter:d,getItemType:f,getItemKey:p,getItemStyle:h,contentInset:m={top:0,left:0,bottom:0,right:0},onItemLayout:g,onHeaderPulling:y,onHeaderReleased:b,onFooterPulling:w,onFooterReleased:k,containPullHeader:x=!1,containPullFooter:C=!1,containBannerView:N=!1}=e,I=S(S({},E(e,v)),{},{style:t,numberOfColumns:r,columnSpacing:o,interItemSpacing:a,preloadItemNumber:s,contentInset:m,containPullHeader:x,containPullFooter:C,containBannerView:N}),P=[];if("function"==typeof n){const e=n();e&&(P.push(i.a.createElement(hn,{key:"bannerView"},i.a.cloneElement(e))),I.containBannerView=!0)}if("function"==typeof u){const e=this.getPullHeader(c,y,b),n=this.getPullFooter(d,w,k);for(let e=0;ethis.instance=e,initialListReady:this.handleInitialListReady.bind(this)},I),P)}}e.WebSocket=pn;const{AsyncStorage:yn,BackAndroid:bn,Bridge:vn,Clipboard:wn,Cookie:Sn,Device:kn,HippyRegister:En,ImageLoader:xn,NetworkInfo:Cn,UIManager:Nn}=ct,{callNative:In,callNativeWithPromise:Pn,callNativeWithCallbackId:_n,removeNativeCallback:Rn}=vn,An=null,Ln=e.ConsoleModule||e.console,On=kn.platform,zn=zt,Tn=zt,jn=Ht,Fn=En,Mn=te,Hn=Z,Un={get:e=>kn[e]},Dn={get:()=>kn.screen.scale};t.default=zt}.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__:x}=e;x.nodeId=0,x.animationId=0,x.renderCount=0;const{asyncStorage:C,bridge:N,device:I,document:P,register:_,on:R,off:A,emit:L}=e.Hippy;var O=Object.freeze({__proto__:null,addEventListener:R,removeEventListener:A,dispatchEvent:L,AsyncStorage:C,Bridge:N,Device:I,HippyRegister:_,UIManager:P});let z,T;function j(e,t){T=e,z=t}function F(){if(!T)throw new Error("getRootViewId must execute after setRootContainer");return T}function M(e){if(!z)return null;const{current:t}=z,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 H(e){return M(t=>t.stateNode&&t.stateNode.nodeId===e)}const U=new RegExp(/^\d+$/);let D=!1,W=!1;function B(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)))}const V=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function $(e){return"[object Function]"===Object.prototype.toString.call(e)}function q(e){D=e}function Q(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){0;return`${"hpfile://"}./${e}`}return e}class K{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}}const G=new Map;function Y(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for getHippyEventHub: "+e);return G.get(e)||null}const X={registerNativeEventHub:function(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for registerNativeEventHub: "+e);let t=G.get(e);return t||(t=new K(e),G.set(e,t)),t},getHippyEventHub:Y,unregisterNativeEventHub:function(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for unregisterNativeEventHub: "+e);G.has(e)&&G.delete(e)},receiveNativeEvent:function(e){if(!e||!Array.isArray(e)||e.length<2)throw new TypeError("Invalid params for receiveNativeEvent: "+JSON.stringify(e));const[t,n]=e;if("string"!=typeof t)throw new TypeError("Invalid arguments");const r=Y(t);r&&r.notifyEvent(n)},receiveNativeGesture:function(e){if(!e)return;const{id:t}=e,n=H(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),"boolean"!=typeof r&&(r=!W)}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=H(t);i&&i.memoizedProps&&i.memoizedProps[n]&&"function"==typeof i.memoizedProps[n]&&i.memoizedProps[n](r)}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=X);class J{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 Z{constructor(e){this.eventName=e,this.listenerIds=[]}addCallback(e,t){if("function"!=typeof e)throw new TypeError("Invalid arguments");const n=X.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=X.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;t{t(e)});return le.set(r,r),new ue(n,t)},removeEventListener:ce,fetch:function(){return N.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)}});function fe(e){return"loop"===e?-1:e}const pe=new te;function he(e,t){return"color"===e&&["number","string"].indexOf(typeof t)>=0?St(t):t}class me{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=he(e.valueType,n)}const n=he(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=fe(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=pe.addListener(e+"Start",e=>{e===this.animationId&&(this.animationStartListener.remove(),"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback())})),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=pe.addListener(e+"End",e=>{e===this.animationId&&(this.animationEndListener.remove(),"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback())})),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=pe.addListener(e+"Cancel",e=>{e===this.animationId&&(this.animationCancelListener.remove(),"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback())})),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=pe.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 me)t={animationId:e.startValue.animationId};else{const{startValue:n}=e;t=he(this.valueType,n)}this.startValue=t||0}else"repeatCount"===t?this.repeatCount=fe(e.repeatCount||0):Object.defineProperty(this,t,{value:n})}),lt.callNative("AnimationModule","updateAnimation",this.animationId,Object.assign({delay:this.delay,startValue:this.startValue,toValue:he(this.valueType,this.toValue),duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{}))}onAnimationStart(e){this.onAnimationStartCallback=e}onAnimationEnd(e){this.onAnimationEndCallback=e}onAnimationCancel(e){this.onAnimationCancelCallback=e}onAnimationRepeat(e){this.onAnimationRepeatCallback=e}}const ge=new te;class ye{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:fe(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=ge.addListener(e+"Start",e=>{e===this.animationId&&(this.animationStartListener.remove(),"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback())})),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=ge.addListener(e+"End",e=>{e===this.animationId&&(this.animationEndListener.remove(),"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback())})),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=ge.addListener(e+"Cancel",e=>{e===this.animationId&&(this.animationCancelListener.remove(),"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback())})),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=ge.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 be={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode")};let ve=!0,we=[];function Se(){ve&&Ve()}function ke(e){ve&&(ve=!1,Promise.resolve().then(()=>{(function(e){const t=[];for(let n=0;n{switch(t.type){case be.createNode:t.nodes,Ue(e,t.nodes);break;case be.updateNode:t.nodes,"ios"===I.platform.OS?t.nodes.forEach(t=>De(e,[t])):De(e,t.nodes);break;case be.deleteNode:t.nodes,"ios"===I.platform.OS?t.nodes.forEach(t=>We(e,[t])):We(e,t.nodes)}}),$e(),we=[],ve=!0}))}function Ee(e){const t=e.attributes,{children:n}=t;return E(t,l)}function xe(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:S(S({},Ee(t)),{},{style:t.style})}}function Ce(e,t){const n=[];return t.traverseChildren(t=>{const r=xe(e,t);r&&n.push(r)}),n}function Ne(e){return!!z&&e instanceof z.containerInfo.constructor}function Ie(e,t,n=-1){if(!e)return;if(t.meta.skipAddToDom)return;const r=F();if(Ne(e)&&!e.isMounted){const n=Ce(r,t);Se(),we.push({type:be.createNode,nodes:n}),ke(r),e.traverseChildren(e=>{e.isMounted||(e.isMounted=!0)})}else if(e.isMounted&&!t.isMounted){const e=Ce(r,t);Se(),we.push({type:be.createNode,nodes:e}),ke(r),t.traverseChildren(e=>{e.isMounted||(e.isMounted=!0)})}}function Pe(e,t){if(!t||t.meta.skipAddToDom)return;t.isMounted=!1,t.traverseChildren(e=>{e.isMounted&&(e.isMounted=!1)});const n=F(),r=[{id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:n,index:t.index}];Se(),we.push({type:be.deleteNode,nodes:r}),ke(n)}function _e(e){if(!e.isMounted)return;const t=F(),n=xe(t,e);Se(),n&&we.push({type:be.updateNode,nodes:[n]}),ke(t)}let Re=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=(Re+=1,Re%10==0&&(Re+=1),Re)}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),Ie(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]),Pe(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),Ie(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||(Pe(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)})}}const Le={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},Oe={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},ze="turn",Te="rad",je="deg";function Fe(e){const t=(e||"").replace(/\s*/g,"").toLowerCase(),n=/^([+-]?\d+\.?\d*)+(deg|turn|rad)|(to\w+)$/g.exec(t);if(!Array.isArray(n))return;let r="180";const[i,o,a]=n;return o&&a?r=function(e,t=je){const n=parseFloat(e);let r=e||"";const[,i]=e.split(".");switch(i&&i.length>2&&(r=n.toFixed(2)),t){case ze:r=""+(360*n).toFixed(2);break;case Te:r=""+(180/Math.PI*n).toFixed(2)}return r}(o,a):i&&void 0!==Oe[i]&&(r=Oe[i]),r}function Me(e){const t=(e||"").replace(/\s+/g," ").trim(),[n,r]=t.split(/\s+(?![^(]*?\))/),i=/^([+-]?\d+\.?\d*)%$/g;return!n||i.exec(n)||r?n&&i.exec(r)?{ratio:parseFloat(r.split("%")[0])/100,color:St(n)}:void 0:{color:St(n)}}class He 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=S(S({},n),e)}):"object"==typeof e&&e&&(n=S(S({},n),e))}),Object.keys(n).forEach(e=>{const t=n[e];if(Object.prototype.hasOwnProperty.call(Le,e)&&(e=Le[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 me||r instanceof ye?e[n]={animationId:r.animationId}:null===r?e[n]&&delete e[n]:void 0!==r&&(e[n]=r)})});const n=Object.keys(e);n.length&&(Array.isArray(this.style.transform)||(this.style.transform=[]),n.forEach(t=>this.style.transform.push({[t]:e[t]})))}else if(null===t&&void 0!==this.style[e])this.style[e]=void 0;else if(t instanceof me||t instanceof ye)this.style[e]={animationId:t.animationId};else if(e.toLowerCase().indexOf("colors")>-1)this.style[e]=kt(t);else if(e.toLowerCase().indexOf("color")>-1)this.style[e]=St(t);else if("backgroundImage"===e&&t)this.style=function(e,t,n){if(0===t.indexOf("linear-gradient")){const e=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),r=[];n.linearGradient=n.linearGradient||{},e.forEach((e,t)=>{if(0===t){const t=Fe(e);if(t)n.linearGradient.angle=t;else{n.linearGradient.angle="180";const t=Me(e);t&&r.push(t)}}else{const t=Me(e);t&&r.push(t)}}),n.linearGradient.colorStopList=r}else n[e]=Q(t);return n}(e,t,this.style);else if("textShadowOffset"===e){const{x:n=0,width:r=0,y:i=0,height:o=0}=t||{};this.style[e]={width:n||r,height:i||o}}else["textShadowOffsetX","textShadowOffsetY"].indexOf(e)>=0?this.style=function(e,t,n){return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[{textShadowOffsetX:"width",textShadowOffsetY:"height"}[e]]:t||0}),n}(e,t,this.style):this.style[e]=t})}setAttribute(e,t){try{if("boolean"==typeof this.attributes[e]&&""===t&&(t=!0),void 0===e)return void _e(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=F(),n=Ce(t,e);Se(),we.push({type:be.updateNode,nodes:n}),ke(t)}(this)),!0)},{match:()=>["value","defaultValue","placeholder"].indexOf(e)>=0,action:()=>(this.attributes[e]=B(t),!1)},{match:()=>["text"].indexOf(e)>=0,action:()=>(this.attributes[e]=t,!1)},{match:()=>["numberOfRows"].indexOf(e)>=0,action:()=>(this.attributes[e]=t,"ios"!==st.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?kt(r):i.toLowerCase().indexOf("color")>-1?St(r):function(e){if("number"==typeof e)return e;if("string"==typeof e&&V.test(e))try{return parseFloat(e)}catch(t){return e}return e}(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||_e(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)}),_e(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=B(e)).replace(/ /g," ").replace(/Â/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}const{createNode:Ue,updateNode:De,deleteNode:We,flushBatch:Be,startBatch:Ve,endBatch:$e,sendRenderError:qe}=P,Qe=H;function Ke(e){if(e instanceof He)return e;const t=e._reactInternalFiber||e._reactInternals;if(t&&t.child){let e=t.child;for(;e&&!(e.stateNode instanceof He);)e=e.child;return e&&e.stateNode?e.stateNode:null}return null}function Ge(e){let t=e;if("string"==typeof e){const n=M(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;$(o)&&(a=o,o=[]);null!==F()&&("ios"===I.platform.OS?($(a)&&Array.isArray(o)&&o.push(a),N.callNative("UIManagerModule","callUIFunction",[r,i,t,o])):"android"===I.platform.OS&&($(a)?N.callNative("UIManagerModule","callUIFunction",[i,t,o],a):N.callNative("UIManagerModule","callUIFunction",[i,t,o])))}function Xe(e,t,n){const r=Ge(t);return new Promise((t,i)=>r?N.callNative("UIManagerModule",e,r,e=>(n&&$(n)&&n(e),"this view is null"===e?i(new Error("Android cannot get the node")):t(e))):(n&&$(n)&&n("this view is null"),i(new Error(e+" cannot get nodeId"))))}var Je=Object.freeze({__proto__:null,createNode:Ue,updateNode:De,deleteNode:We,flushBatch:Be,startBatch:Ve,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"===I.platform.OS?Xe("measureInWindow",e,t):Xe("measureInAppWindow",e,t)}});const Ze=new te,et=new Set,tt={exitApp(){N.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(N.callNative("DeviceEventModule","setListenBackPress",!0),et.add(e),{remove(){tt.removeListener(e)}}),removeListener(e){et.delete(e),0===et.size&&N.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:st,HippyRegister:ut}=O;var ct=Object.freeze({__proto__:null,addEventListener:rt,removeEventListener:it,dispatchEvent:ot,AsyncStorage:at,BackAndroid:nt,Bridge:lt,Clipboard:ne,Cookie:re,Device:st,HippyRegister:ut,ImageLoader:ae,NetworkInfo:de,UIManager:Je});function dt(...e){return`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`}const ft={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},pt="[-+]?\\d*\\.?\\d+",ht={rgb:new RegExp("rgb"+dt(pt,pt,pt)),rgba:new RegExp("rgba"+dt(pt,pt,pt,pt)),hsl:new RegExp("hsl"+dt(pt,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+dt(pt,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",pt)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/};function mt(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function gt(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function yt(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 bt(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=yt(i,r,e+1/3),a=yt(i,r,e),l=yt(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function vt(e){return(parseFloat(e)%360+360)%360/360}function wt(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function St(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=ht.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(ft,e)?ft[e]:(t=ht.rgb.exec(e),Array.isArray(t)?(mt(t[1])<<24|mt(t[2])<<16|mt(t[3])<<8|255)>>>0:(t=ht.rgba.exec(e),t?(mt(t[1])<<24|mt(t[2])<<16|mt(t[3])<<8|gt(t[4]))>>>0:(t=ht.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ht.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=ht.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ht.hsl.exec(e),t?(255|bt(vt(t[1]),wt(t[2]),wt(t[3])))>>>0:(t=ht.hsla.exec(e),t?(bt(vt(t[1]),wt(t[2]),wt(t[3]))|gt(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 kt(e,t){return Array.isArray(e)?e.map(e=>St(e,t)):[0]}class Et extends Ae{constructor(){super(),this.documentElement=new He("document")}createElement(e){return new He(e)}createElementNS(e,t){return new He(`${e}:${t}`)}}Et.createElement=Et.prototype.createElement,Et.createElementNS=Et.prototype.createElementNS;var xt=Array.isArray,Ct=Object.keys,Nt=Object.prototype.hasOwnProperty;const It=setTimeout,Pt=clearTimeout;var _t=Object.freeze({__proto__:null,scheduleTimeout:It,cancelTimeout:Pt,afterActiveInstanceBlur:function(){},appendChild:function(e,t){e.childNodes.indexOf(t)>=0&&e.removeChild(t),e.appendChild(t)},appendChildToContainer:function(e,t){e.appendChild(t)},appendInitialChild:function(e,t){e.appendChild(t)},beforeActiveInstanceBlur:function(e){},commitMount:function(){},commitTextUpdate:function(){},commitUpdate:function(e,t){Object.keys(t).forEach(n=>e.setAttribute(n,t[n]))},clearContainer:function(e){},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",B(e)),n.meta={component:{name:"Text",skipAddToDom:!0}},n},finalizeContainerChildren:function(){},finalizeInitialChildren:function(){return!0},getChildHostContext:function(){return{}},getPublicInstance:function(e){return e},getInstanceFromNode:function(e){throw new Error("Not yet implemented.")},getFundamentalComponentInstance:function(e){throw new Error("Not yet implemented.")},getRootHostContext:function(){return{}},hideInstance:function(e){const t={style:{display:"none"}};Object.keys(t).forEach(n=>e.setAttribute(n,t[n]))},hideTextInstance:function(e){throw new Error("Not yet implemented.")},insertBefore:function(e,t,n){e.childNodes.indexOf(t)>=0?e.moveChild(t,n):e.insertBefore(t,n)},isOpaqueHydratingObject:function(e){throw new Error("Not yet implemented")},makeClientId:function(){throw new Error("Not yet implemented")},makeClientIdInDEV:function(e){throw new Error("Not yet implemented")},makeOpaqueHydratingObject:function(e){throw new Error("Not yet implemented.")},mountFundamentalComponent:function(e){throw new Error("Not yet implemented.")},prepareForCommit:function(){return null},preparePortalMount:function(e){},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=xt(t),l=xt(n);if(a&&l){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=l)return!1;var s=t instanceof Date,u=n instanceof Date;if(s!=u)return!1;if(s&&u)return t.getTime()==n.getTime();var c=t instanceof RegExp,d=n instanceof RegExp;if(c!=d)return!1;if(c&&d)return t.toString()==n.toString();var f=Ct(t);if((i=f.length)!==Ct(n).length)return!1;for(r=i;0!=r--;)if(!Nt.call(n,f[r]))return!1;for(r=i;0!=r--;)if(!e(t[o=f[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(){},unmountFundamentalComponent:function(e){throw new Error("Not yet implemented.")},updateFundamentalComponent:function(e){throw new Error("Not yet implemented.")},unhideTextInstance:function(e,t){throw new Error("Not yet implemented.")},unhideInstance:function(e,t){const n=S(S({},t),{},{style:S(S({},t.style),{},{display:"flex"})});Object.keys(n).forEach(t=>e.setAttribute(t,n[t]))},shouldDeprioritizeSubtree:function(){return!0},shouldUpdateFundamentalComponent:function(e){throw new Error("Not yet implemented.")},shouldSetTextContent:function(e,t){if(t&&"Text"===t.nativeName||-1!==["p","span"].indexOf(e)){const{children:e}=t;return"string"==typeof e||"number"==typeof e}return!1}});const Rt=a()(S(S({},_t),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:()=>{},cancelDeferredCallback:()=>{}})),{createContainer:At,updateContainer:Lt,getPublicRootInstance:Ot}=Rt;class zt{constructor(e){if(!e.appName||!e.entryPage)throw new TypeError("Invalid arguments");this.config=e,this.regist=this.start,this.render=this.render.bind(this);const t=new Et;this.rootContainer=At(t,!1,!1)}static get Native(){return ct}start(){ut.regist(this.config.appName,this.render)}render(e){const{appName:t,entryPage:n,silent:r=!1,bubbles:o=!1,callback:a=(()=>{})}=this.config,{__instanceId__:l}=e;this.rootContainer.containerInfo.nodeId=l,r&&q(r),o&&function(e=!1){W=e}(o),j(l,this.rootContainer);const s=i.a.createElement(n,e);return Lt(s,this.rootContainer,null,a),Ot(this.rootContainer)}}zt.version="2.10.3";const Tt={registerComponent(e,t){new zt({appName:e,entryPage:t}).start()}};class jt extends i.a.Component{render(){const e=this.props,{collapsable:t,style:n={}}=e,r=E(e,s),o=n;return"boolean"==typeof t&&(o.collapsable=t),i.a.createElement("div",Object.assign({nativeName:"View",style:o},r))}}function Ft(e,t){let{style:n}=e,r=E(e,u);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=B(r.children);else if("number"==typeof r.children)r.text=B(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=B(e),r.children=r.text)}return i.a.createElement("p",Object.assign({ref:t,nativeName:"Text",style:o},r))}Ft.displayName="Text";const Mt=i.a.forwardRef(Ft);Mt.displayName="Text";class Ht 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=ie(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=>Q(e))),i}handleTintColor(e,t,n){t&&(e.tintColor=St(t)),Array.isArray(n)&&(e.tintColors=kt(n))}render(){const e=this.props,{children:t,style:n,imageStyle:r,imageRef:o,source:a,sources:l,src:s,srcs:u,tintColor:d,tintColors:f}=e,p=E(e,c),h=this.getImageUrls({src:s,srcs:u,source:a,sources:l});"ios"===st.platform.OS?h.length&&(p.source=h.map(e=>({uri:e}))):"android"===st.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=Q(p.defaultSource));const m=S({},n);return this.handleTintColor(m,d,f),p.style=m,t?i.a.createElement(jt,{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}))}}Ht.prefetch=oe;class Ut{constructor(){this.Value=Ut.Value}static Value(e){return e}static timing(e,t){return new me({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}Ut.View=jt,Ut.Text=Mt,Ut.Image=Ht;const Dt={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 Bt extends i.a.Component{constructor(){super(...arguments),this.instance=null}expandPullHeader(){Ye(this.instance,"expandPullHeader",[])}collapsePullHeader(e){"android"===st.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=E(e,d);return i.a.createElement("div",Object.assign({nativeName:"PullHeaderView",ref:e=>{this.instance=e}},n),t)}}class Vt 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=E(e,f);return i.a.createElement("div",Object.assign({nativeName:"PullFooterView",ref:e=>{this.instance=e}},n),t)}}Vt.defaultProps={sticky:!0};const $t={onDisappear:"onDisAppear"},qt={onDisappear:"onDisappear"};class Qt 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){let t=e;return t.indexOf("bound")>=0&&(t=t.substring("bound".length+1)),"android"===st.platform.OS&&$t[t]?$t[t]:"ios"===st.platform.OS&&qt[t]?qt[t]:t}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(Bt,{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(Vt,{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:u,dataSource:c,initialListSize:d,rowShouldSticky:f,onRowLayout:h,onHeaderPulling:m,onHeaderReleased:g,onFooterPulling:y,onFooterReleased:b,onAppear:v,onDisappear:w,onWillAppear:k,onWillDisappear:x}=e,C=E(e,p),N=[];if("function"==typeof r){const{initialListReady:e}=this.state;let{numberOfRows:t}=this.props;const p=this.getPullHeader(o,m,g),E=this.getPullFooter(a,y,b);!t&&c&&(t=c.length),e||(t=Math.min(t,d||10));for(let e=0;e{"function"==typeof n&&(t[this.convertName(n.name)]=()=>{n(e)})}),n&&N.push(i.a.createElement(Wt,Object.assign({},t),n))}p&&N.unshift(p),E&&N.push(E),"function"==typeof f&&Object.assign(C,{rowShouldSticky:!0});const I=[v,w,k,x];C.exposureEventEnabled=I.some(e=>"function"==typeof e),C.numberOfRows=N.length,C.initialListSize=d,C.style=S({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),N.length?N:t)}}Qt.defaultProps={numberOfRows:0};class Kt 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=E(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 Gt{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 zt({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=E(e.initialRoute,g),r=E(e,m);return r.initialRoute=n,i.a.createElement("div",Object.assign({nativeName:"Navigator",ref:e=>{this.instance=e}},r))}}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}}))}class Jt 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=E(e,y);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(Xt,Object.assign({},t),e)}):o.push(i.a.createElement(Xt,null,t)),"function"==typeof n&&(r.onPageScrollStateChanged=this.onPageScrollStateChanged),i.a.createElement("div",Object.assign({nativeName:"ViewPager",ref:e=>{this.instance=e}},r),o)}}function Zt(){const e=I.platform.Localization;return!!e&&1===e.direction}class en 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"===st.platform.OS&&(n.keyboardHeight/=st.screen.scale),"function"==typeof t&&t(n)}render(){const e=S({},this.props);return["underlineColorAndroid","placeholderTextColor","placeholderTextColors"].forEach(t=>{"string"==typeof this.props[t]&&(Array.isArray(e.style)?e.style.push({[t]:this.props[t]}):e.style&&"object"==typeof e.style?e.style[t]=this.props[t]:e.style={[t]:this.props[t]},e[t]=void 0)}),Zt()&&(e.style?"object"!=typeof e.style||Array.isArray(e.style)||e.style.textAlign||(e.style.textAlign="right"):e.style={textAlign:"right"}),i.a.createElement("div",Object.assign({nativeName:"TextInput"},e,{ref:e=>{this.instance=e},onChangeText:this._onChangeText,onKeyboardWillShow:this._onKeyboardWillShow}))}}const tn=st.window.scale;let nn=Math.round(.4*tn)/tn;function rn(e){return e}0===nn&&(nn=1/tn);var on=Object.freeze({__proto__:null,get hairlineWidth(){return nn},create:rn});const an={baseVertical:{flexGrow:1,flexShrink:1,flexDirection:"column",overflow:"scroll"},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:"row",overflow:"scroll"},contentContainerVertical:{collapsable:!1,flexDirection:"column"},contentContainerHorizontal:{collapsable:!1,flexDirection:"row"}};class ln 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?an.contentContainerHorizontal:an.contentContainerVertical,t],a=e?Object.assign({},an.baseHorizontal,r):Object.assign({},an.baseVertical,r);return e&&(a.flexDirection=Zt()?"row-reverse":"row"),i.a.createElement("div",Object.assign({nativeName:"ScrollView",ref:e=>{this.instance=e}},this.props,{style:a}),i.a.createElement(jt,{style:o},n))}}const sn={modal:{position:"absolute"},container:{position:"absolute",left:0,top:0}};class un extends i.a.Component{constructor(e){super(e),this.eventSubscription=null}componentDidMount(){"ios"===st.platform.OS&&(this.eventSubscription=new Z("modalDismissed"),this.eventSubscription.addCallback(e=>{const{primaryKey:t,onDismiss:n}=this.props;e.primaryKey===t&&"function"==typeof n&&n()}))}componentWillUnmount(){"ios"===st.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:sn.modal},this.props),i.a.createElement(jt,{style:[sn.container,a]},e))}}un.defaultProps={visible:!0};class cn 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:u,onClick:c}=this.props,{isFocus:d}=this.state,f=i.a.Children.only(t);let p;f&&f.child&&f.child.memoizedProps&&f.child.memoizedProps.nativeName?p=f.child.memoizedProps.nativeName:f&&f.type&&f.type.displayName&&(p=f.type.displayName);const h=n&&Ge(n),m=r&&Ge(r),g=o&&Ge(o),y=a&&Ge(a);let b=l;if("Text"!==p){const e=f.memoizedProps.style;b=S(S({},b),e)}if(Object.assign(b,d?u:s),"Text"===p)return i.a.createElement(jt,{focusable:!0,nextFocusDownId:h,nextFocusUpId:m,nextFocusLeftId:g,nextFocusRightId:y,requestFocus:e,style:b,onClick:c,onFocus:this.handleFocus},f);const{children:v}=f.memoizedProps;return i.a.cloneElement(f,{nextFocusDownId:n,nextFocusUpId:r,nextFocusLeftId:o,nextFocusRightId:a,requestFocus:e,onClick:c,focusable:!0,children:v,style:b,onFocus:this.handleFocus})}}function dn(e){return i.a.createElement("iframe",Object.assign({title:"hippy",nativeName:"WebView"},e))}let fn;class pn{constructor(e,t,n){if(this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),fn||(fn=new Z("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!e||"string"!=typeof e)throw new TypeError("Invalid WebSocket url");const r=S({},n);if(void 0!==t)if(Array.isArray(t)&&t.length>0)r["Sec-WebSocket-Protocol"]=t.join(",");else{if("string"!=typeof t)throw new TypeError("Invalid WebSocket protocols");r["Sec-WebSocket-Protocol"]=t}const i={headers:r,url:e};this.url=e,this.webSocketCallbackId=fn.addCallback(this.onWebSocketEvent),N.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,N.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);N.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,fn.removeCallback(this.webSocketCallbackId));const n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}class hn extends i.a.Component{render(){const e=this.props,{collapsable:t,style:n={}}=e,r=E(e,b),o=n;return"boolean"==typeof t&&(o.collapsable=t),i.a.createElement("div",Object.assign({nativeName:"View",style:o},r))}}function mn(e){return i.a.createElement("li",Object.assign({nativeName:"WaterfallItem"},e))}class gn extends i.a.Component{constructor(e){super(e),this.instance=null,this.pullHeader=null,this.pullFooter=null,this.handleInitialListReady=this.handleInitialListReady.bind(this)}componentDidMount(){const{getItemKey:e}=this.props}scrollToIndex({index:e=0,animated:t=!0}){Ye(this.instance,"scrollToIndex",[e,e,t])}scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){Ye(this.instance,"scrollToContentOffset",[e,t,n])}handleRowProps(e,t,{getItemKey:n,getItemStyle:r,onItemLayout:i,getItemType:o}){if("function"==typeof n&&(e.key=n(t)),"function"==typeof r&&(e.style=r(t)),"function"==typeof i&&(e.onLayout=e=>{i(e,t)}),"function"==typeof o){const n=o(t);Number.isInteger(n),e.type=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()}getPullHeader(e,t,n){let r=null;return"function"==typeof e&&(r=i.a.createElement(Bt,{key:"PullHeader",ref:e=>{this.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),r}getPullFooter(e,t,n){let r=null;return"function"==typeof e&&(r=i.a.createElement(Vt,{key:"PullFooter",ref:e=>{this.pullFooter=e},onFooterPulling:t,onFooterReleased:n},e())),r}handleInitialListReady(){const{onInitialListReady:e}=this.props;"function"==typeof e&&e()}render(){const e=this.props,{style:t={},renderBanner:n,numberOfColumns:r=2,columnSpacing:o=0,interItemSpacing:a=0,numberOfItems:l=0,preloadItemNumber:s=0,renderItem:u,renderPullHeader:c,renderPullFooter:d,getItemType:f,getItemKey:p,getItemStyle:h,contentInset:m={top:0,left:0,bottom:0,right:0},onItemLayout:g,onHeaderPulling:y,onHeaderReleased:b,onFooterPulling:w,onFooterReleased:k,containPullHeader:x=!1,containPullFooter:C=!1,containBannerView:N=!1}=e,I=S(S({},E(e,v)),{},{style:t,numberOfColumns:r,columnSpacing:o,interItemSpacing:a,preloadItemNumber:s,contentInset:m,containPullHeader:x,containPullFooter:C,containBannerView:N}),P=[];if("function"==typeof n){const e=n();e&&(P.push(i.a.createElement(hn,{key:"bannerView"},i.a.cloneElement(e))),I.containBannerView=!0)}if("function"==typeof u){const e=this.getPullHeader(c,y,b),n=this.getPullFooter(d,w,k);for(let e=0;ethis.instance=e,initialListReady:this.handleInitialListReady.bind(this)},I),P)}}e.WebSocket=pn;const{AsyncStorage:yn,BackAndroid:bn,Bridge:vn,Clipboard:wn,Cookie:Sn,Device:kn,HippyRegister:En,ImageLoader:xn,NetworkInfo:Cn,UIManager:Nn}=ct,{callNative:In,callNativeWithPromise:Pn,callNativeWithCallbackId:_n,removeNativeCallback:Rn}=vn,An=null,Ln=e.ConsoleModule||e.console,On=kn.platform,zn=zt,Tn=zt,jn=Ht,Fn=En,Mn=te,Hn=Z,Un={get:e=>kn[e]},Dn={get:()=>kn.screen.scale};t.default=zt}.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/vendor.ios.js b/examples/ios-demo/res/vendor.ios.js index e96fed59e58..2c09ce4452f 100644 --- a/examples/ios-demo/res/vendor.ios.js +++ b/examples/ios-demo/res/vendor.ios.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 sn})),n.d(t,"Animation",(function(){return Le})),n.d(t,"AnimationSet",(function(){return ze})),n.d(t,"AppRegistry",(function(){return rn})),n.d(t,"AsyncStorage",(function(){return Hn})),n.d(t,"BackAndroid",(function(){return Un})),n.d(t,"Clipboard",(function(){return Wn})),n.d(t,"ConsoleModule",(function(){return er})),n.d(t,"Dimensions",(function(){return ur})),n.d(t,"Easing",(function(){return cn})),n.d(t,"Focusable",(function(){return Ln})),n.d(t,"Hippy",(function(){return nr})),n.d(t,"HippyEventEmitter",(function(){return ge})),n.d(t,"HippyEventListener",(function(){return ve})),n.d(t,"HippyRegister",(function(){return $n})),n.d(t,"Image",(function(){return un})),n.d(t,"ImageBackground",(function(){return ir})),n.d(t,"ImageLoaderModule",(function(){return qn})),n.d(t,"ListView",(function(){return vn})),n.d(t,"ListViewItem",(function(){return fn})),n.d(t,"Modal",(function(){return Rn})),n.d(t,"Navigator",(function(){return bn})),n.d(t,"NetInfo",(function(){return Qn})),n.d(t,"NetworkModule",(function(){return Bn})),n.d(t,"PixelRatio",(function(){return sr})),n.d(t,"Platform",(function(){return tr})),n.d(t,"PullFooter",(function(){return pn})),n.d(t,"PullHeader",(function(){return dn})),n.d(t,"RNfqb",(function(){return rr})),n.d(t,"RNfqbEventEmitter",(function(){return or})),n.d(t,"RNfqbEventListener",(function(){return lr})),n.d(t,"RNfqbRegister",(function(){return ar})),n.d(t,"RefreshWrapper",(function(){return yn})),n.d(t,"ScrollView",(function(){return _n})),n.d(t,"StyleSheet",(function(){return In})),n.d(t,"Text",(function(){return ln})),n.d(t,"TextInput",(function(){return En})),n.d(t,"TimerModule",(function(){return Zn})),n.d(t,"UIManagerModule",(function(){return Kn})),n.d(t,"View",(function(){return an})),n.d(t,"ViewPager",(function(){return wn})),n.d(t,"WaterfallView",(function(){return Mn})),n.d(t,"WebSocket",(function(){return Tn})),n.d(t,"WebView",(function(){return On})),n.d(t,"callNative",(function(){return Gn})),n.d(t,"callNativeWithCallbackId",(function(){return Xn})),n.d(t,"callNativeWithPromise",(function(){return Yn})),n.d(t,"colorParse",(function(){return Wt})),n.d(t,"removeNativeCallback",(function(){return Jn}));var r=n("./node_modules/react/index.js"),i=n.n(r),a=n("./node_modules/react-reconciler/index.js"),o=n.n(a),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=["component"],v=["initialRoute"],y=["children","onPageScrollStateChanged"],g=["collapsable","style"],b=["style","renderBanner","numberOfColumns","columnSpacing","interItemSpacing","numberOfItems","preloadItemNumber","renderItem","renderPullHeader","renderPullFooter","getItemType","getItemKey","getItemStyle","contentInset","onItemLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","containPullHeader","containPullFooter","containBannerView"];function k(e){return function(e){if(Array.isArray(e))return z(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||O(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=N(e);if(t){var i=N(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return x(this,n)}}function x(e,t){if(t&&("object"===R(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return C(e)}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function I(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 P(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function R(e){return(R="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 L(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,a=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){l=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(l)throw i}}return a}(e,t)||O(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){if(e){if("string"==typeof e)return z(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)?z(e,t):void 0}}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1){return"".concat("hpfile://","./").concat(e)}return e}var ce=function(){function e(t){T(this,e),this.handlerContainer={},this.nextIdForHandler=0,this.eventName=t}return F(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}(),fe=new Map,de=["%c[event]%c","color: green","color: auto"];function pe(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for getHippyEventHub: ".concat(e));return fe.get(e)||null}var he={registerNativeEventHub:function(e){if(re.apply(void 0,de.concat(["registerNativeEventHub",e])),"string"!=typeof e)throw new TypeError("Invalid eventName for registerNativeEventHub: ".concat(e));var t=fe.get(e);return t||(t=new ce(e),fe.set(e,t)),t},getHippyEventHub:pe,unregisterNativeEventHub:function(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for unregisterNativeEventHub: ".concat(e));fe.has(e)&&fe.delete(e)},receiveNativeEvent:function(e){if(re.apply(void 0,de.concat(["receiveNativeEvent",e])),!e||!Array.isArray(e)||e.length<2)throw new TypeError("Invalid params for receiveNativeEvent: ".concat(JSON.stringify(e)));var t=L(e,2),n=t[0],r=t[1];if("string"!=typeof n)throw new TypeError("Invalid arguments");var i=pe(n);i&&i.notifyEvent(r)},receiveNativeGesture:function(e){if(re.apply(void 0,de.concat(["receiveNativeGesture",e])),e){var t=ee(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{"boolean"!=typeof(n=r.memoizedProps[i](e))&&(n=!ne)}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(re.apply(void 0,de.concat(["receiveUIComponentEvent",e])),e&&Array.isArray(e)&&!(e.length<2)){var t=L(e,3),n=t[0],r=t[1],i=t[2];if("number"==typeof n&&"string"==typeof r){var a=ee(n);a&&a.memoizedProps&&a.memoizedProps[r]&&"function"==typeof a.memoizedProps[r]&&a.memoizedProps[r](i)}}}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=he);var me=function(){function e(t,n){T(this,e),this.callback=t,this.bindListener=n}return F(e,[{key:"remove",value:function(){"number"==typeof this.callback&&this.bindListener&&(this.bindListener.removeCallback(this.callback),this.bindListener=void 0)}}]),e}(),ve=function(){function e(t){T(this,e),this.eventName=t,this.listenerIds=[]}return F(e,[{key:"addCallback",value:function(e,t){if("function"!=typeof e)throw new TypeError("Invalid arguments");var n=he.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=he.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;r=0?Wt(t):t}var Le=function(){function e(t){T(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=Re(t.valueType,r)}var i=Re(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=_e(t.repeatCount||0),this.inputRange=t.inputRange||[],this.outputRange=t.outputRange||[],this.animationId=Nt.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 F(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"===It.platform.OS&&(t="onHippyAnimation"),"function"==typeof this.onAnimationStartCallback&&(this.animationStartListener=Ae.addListener("".concat(t,"Start"),(function(t){t===e.animationId&&(e.animationStartListener.remove(),"function"==typeof e.onAnimationStartCallback&&e.onAnimationStartCallback())}))),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=Ae.addListener("".concat(t,"End"),(function(t){t===e.animationId&&(e.animationEndListener.remove(),"function"==typeof e.onAnimationEndCallback&&e.onAnimationEndCallback())}))),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=Ae.addListener("".concat(t,"Cancel"),(function(t){t===e.animationId&&(e.animationCancelListener.remove(),"function"==typeof e.onAnimationCancelCallback&&e.onAnimationCancelCallback())}))),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=Ae.addListener("".concat(t,"Repeat"),(function(t){t===e.animationId&&"function"==typeof e.onAnimationRepeatCallback&&e.onAnimationRepeatCallback()}))),Nt.callNative("AnimationModule","startAnimation",this.animationId)}},{key:"destory",value:function(){this.destroy()}},{key:"destroy",value:function(){this.removeEventListener(),Nt.callNative("AnimationModule","destroyAnimation",this.animationId)}},{key:"pause",value:function(){Nt.callNative("AnimationModule","pauseAnimation",this.animationId)}},{key:"resume",value:function(){Nt.callNative("AnimationModule","resumeAnimation",this.animationId)}},{key:"updateAnimation",value:function(t){var n=this;if("object"!==R(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 a=0;if(t.startValue instanceof e)a={animationId:t.startValue.animationId};else{var o=t.startValue;a=Re(n.valueType,o)}n.startValue=a||0}else"repeatCount"===r?n.repeatCount=_e(t.repeatCount||0):Object.defineProperty(n,r,{value:i})})),Nt.callNative("AnimationModule","updateAnimation",this.animationId,Object.assign({delay:this.delay,startValue:this.startValue,toValue:Re(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}(),Oe=new ge,ze=function(){function e(t){var n=this;T(this,e),this.animationList=[],t.children.forEach((function(e){n.animationList.push({animationId:e.animation.animationId,follow:e.follow||!1})})),this.animationId=Nt.callNativeWithCallbackId("AnimationModule","createAnimationSet",!0,{repeatCount:_e(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 F(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"===It.platform.OS&&(t="onHippyAnimation"),"function"==typeof this.onAnimationStartCallback&&(this.animationStartListener=Oe.addListener("".concat(t,"Start"),(function(t){t===e.animationId&&(e.animationStartListener.remove(),"function"==typeof e.onAnimationStartCallback&&e.onAnimationStartCallback())}))),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=Oe.addListener("".concat(t,"End"),(function(t){t===e.animationId&&(e.animationEndListener.remove(),"function"==typeof e.onAnimationEndCallback&&e.onAnimationEndCallback())}))),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=Oe.addListener("".concat(t,"Cancel"),(function(t){t===e.animationId&&(e.animationCancelListener.remove(),"function"==typeof e.onAnimationCancelCallback&&e.onAnimationCancelCallback())}))),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=Oe.addListener("".concat(t,"Repeat"),(function(t){t===e.animationId&&"function"==typeof e.onAnimationRepeatCallback&&e.onAnimationRepeatCallback()}))),Nt.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)&&Nt.callNative("AnimationModule","destroyAnimation",e.animationId)})),Nt.callNative("AnimationModule","destroyAnimation",this.animationId)}},{key:"pause",value:function(){Nt.callNative("AnimationModule","pauseAnimation",this.animationId)}},{key:"resume",value:function(){Nt.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}(),Te=["%c[native]%c","color: red","color: auto"],je={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode")},Fe=!0,Me=[];function He(){Fe&&ut()}function Ue(e){Fe&&(Fe=!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||(qe(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;t1&&void 0!==arguments[1]?arguments[1]:et,n=parseFloat(e),r=e||"",i=e.split("."),a=L(i,2),o=a[1];switch(o&&o.length>2&&(r=n.toFixed(2)),t){case Je:r="".concat((360*n).toFixed(2));break;case Ze:r="".concat((180/Math.PI*n).toFixed(2))}return r}(o,l):a&&void 0!==Xe[a]&&(r=Xe[a]),r}}function nt(e){var t=L((e||"").replace(/\s+/g," ").trim().split(/\s+(?![^(]*?\))/),2),n=t[0],r=t[1],i=/^([+-]?\d+\.?\d*)%$/g;return!n||i.exec(n)||r?n&&i.exec(r)?{ratio:parseFloat(r.split("%")[0])/100,color:Wt(n)}:void 0:{color:Wt(n)}}var rt=function(e){w(n,e);var t=E(n);function n(e){var r;return T(this,n),(r=t.call(this)).id="",r.style={},r.attributes={},r.tagName=e,r}return F(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,te.test(t)?r.push(n[e]):i[e]=n[e]})),n=[].concat(r,[i])}Array.isArray(n)||(n=[n]);var a={};n.forEach((function(e){Array.isArray(e)?e.forEach((function(e){a=P(P({},a),e)})):"object"===R(e)&&e&&(a=P(P({},a),e))})),Object.keys(a).forEach((function(e){var n=a[e];if(Object.prototype.hasOwnProperty.call(Ye,e)&&(e=Ye[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 Le||n instanceof ze?r[t]={animationId:n.animationId}:null===n?r[t]&&delete r[t]:void 0!==n&&(r[t]=n)}))}));var i=Object.keys(r);i.length&&(Array.isArray(t.style.transform)||(t.style.transform=[]),i.forEach((function(e){return t.style.transform.push({[e]:r[e]})})))}else if(null===n&&void 0!==t.style[e])t.style[e]=void 0;else if(n instanceof Le||n instanceof ze)t.style[e]={animationId:n.animationId};else if(e.toLowerCase().indexOf("colors")>-1)t.style[e]=Bt(n);else if(e.toLowerCase().indexOf("color")>-1)t.style[e]=Wt(n);else if("backgroundImage"===e&&n)t.style=function(e,t,n){if(0===t.indexOf("linear-gradient")){var r=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),i=[];n.linearGradient=n.linearGradient||{},r.forEach((function(e,t){if(0===t){var r=tt(e);if(r)n.linearGradient.angle=r;else{n.linearGradient.angle="180";var a=nt(e);a&&i.push(a)}}else{var o=nt(e);o&&i.push(o)}})),n.linearGradient.colorStopList=i}else n[e]=se(t);return n}(e,n,t.style);else if("textShadowOffset"===e){var o=n||{},l=o.x,u=void 0===l?0:l,s=o.width,c=void 0===s?0:s,f=o.y,d=void 0===f?0:f,p=o.height,h=void 0===p?0:p;t.style[e]={width:u||c,height:d||h}}else["textShadowOffsetX","textShadowOffsetY"].indexOf(e)>=0?t.style=function(e,t,n){return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[{textShadowOffsetX:"width",textShadowOffsetY:"height"}[e]]:t||0}),n}(e,n,t.style):t.style[e]=n}))}},{key:"setAttribute",value:function(e,t){var n=this;try{if("boolean"==typeof this.attributes[e]&&""===t&&(t=!0),void 0===e)return void Qe(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=J(),n=Be(t,e);He(),Me.push({type:je.updateNode,nodes:n}),Ue(t)}}(n)),!0}},{match:function(){return["value","defaultValue","placeholder"].indexOf(e)>=0},action:function(){return n.attributes[e]=ie(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"!==It.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"!==R(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(Ye,e)&&(i=Ye[e]),"string"==typeof r&&(r=t.trim(),r=i.toLowerCase().indexOf("colors")>-1?Bt(r):i.toLowerCase().indexOf("color")>-1?Wt(r):oe(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||Qe(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)})),Qe(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=ie(e)).replace(/ /g," ").replace(/Â/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}]),n}(Ge),it=$.createNode,at=$.updateNode,ot=$.deleteNode,lt=$.flushBatch,ut=$.startBatch,st=$.endBatch,ct=$.sendRenderError,ft=ee;function dt(e){if(e instanceof rt)return e;var t=e._reactInternalFiber||e._reactInternals;if(t&&t.child){for(var n=t.child;n&&!(n.stateNode instanceof rt);)n=n.child;return n&&n.stateNode?n.stateNode:null}return null}function pt(e){var t=e;if("string"==typeof e){"getNodeIdByRef('".concat(e,"') use string ref will affect to performance, recommend use reference to the ref instead");var n=Z((function(t){return!!(t.return&&t.return.ref&&t.return.ref._stringRef)&&t.return.ref._stringRef===e}));if(!n||!n.stateNode)return 0;t=n.stateNode}if(!t.nodeId){var r=dt(t);return r?r.nodeId:0}return t.nodeId}function ht(e,t){var n=e.nativeName,r=e.nodeId;if(!r||!n){var i=dt(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 a=arguments.length,o=new Array(a>2?a-2:0),l=2;l255?255:t}function jt(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Ft(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 Mt(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,a=Ft(i,r,e+1/3),o=Ft(i,r,e),l=Ft(i,r,e-1/3);return Math.round(255*a)<<24|Math.round(255*o)<<16|Math.round(255*l)<<8}function Ht(e){return(parseFloat(e)%360+360)%360/360}function Ut(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function Dt(e){var t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=zt.hex6.exec(e),Array.isArray(t)?parseInt("".concat(t[1],"ff"),16)>>>0:Object.hasOwnProperty.call(Rt,e)?Rt[e]:(t=zt.rgb.exec(e),Array.isArray(t)?(Tt(t[1])<<24|Tt(t[2])<<16|Tt(t[3])<<8|255)>>>0:(t=zt.rgba.exec(e))?(Tt(t[1])<<24|Tt(t[2])<<16|Tt(t[3])<<8|jt(t[4]))>>>0:(t=zt.hex3.exec(e))?parseInt("".concat(t[1]+t[1]+t[2]+t[2]+t[3]+t[3],"ff"),16)>>>0:(t=zt.hex8.exec(e))?parseInt(t[1],16)>>>0:(t=zt.hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=zt.hsl.exec(e))?(255|Mt(Ht(t[1]),Ut(t[2]),Ut(t[3])))>>>0:(t=zt.hsla.exec(e))?(Mt(Ht(t[1]),Ut(t[2]),Ut(t[3]))|jt(t[4]))>>>0:null))}function Wt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isInteger(e))return e;var n=Dt(e);return t.platform||(t.platform="ios"),null===n?0:(n=(n<<24|n>>>8)>>>0,"android"===t.platform&&(n|=0),n)}function Bt(e,t){return Array.isArray(e)?e.map((function(e){return Wt(e,t)})):[0]}var Vt=function(e){w(n,e);var t=E(n);function n(){var e;return T(this,n),(e=t.call(this)).documentElement=new rt("document"),e}return F(n,[{key:"createElement",value:function(e){return new rt(e)}},{key:"createElementNS",value:function(e,t){return new rt("".concat(e,":").concat(t))}}]),n}(Ge);Vt.createElement=Vt.prototype.createElement,Vt.createElementNS=Vt.prototype.createElementNS;var $t=Array.isArray,qt=Object.keys,Qt=Object.prototype.hasOwnProperty;var Kt=setTimeout,Gt=clearTimeout,Yt=Object.freeze({__proto__:null,scheduleTimeout:Kt,cancelTimeout:Gt,afterActiveInstanceBlur:function(){},appendChild:function(e,t){e.childNodes.indexOf(t)>=0&&e.removeChild(t),e.appendChild(t)},appendChildToContainer:function(e,t){e.appendChild(t)},appendInitialChild:function(e,t){e.appendChild(t)},beforeActiveInstanceBlur:function(e){},commitMount:function(){},commitTextUpdate:function(){},commitUpdate:function(e,t){Object.keys(t).forEach((function(n){return e.setAttribute(n,t[n])}))},clearContainer:function(e){},createContainerChildSet:function(){},createInstance:function(e,t,n,r,i){var a=n.createElement(e);return Object.keys(t).forEach((function(e){switch(e){case"children":break;case"nativeName":a.meta.component.name=t.nativeName;break;default:a.setAttribute(e,t[e])}})),[5,7].indexOf(i.tag)<0&&(a.meta.skipAddToDom=!0),a},createTextInstance:function(e,t){var n=t.createElement("p");return n.setAttribute("text",ie(e)),n.meta={component:{name:"Text",skipAddToDom:!0}},n},finalizeContainerChildren:function(){},finalizeInitialChildren:function(){return!0},getChildHostContext:function(){return{}},getPublicInstance:function(e){return e},getInstanceFromNode:function(e){throw new Error("Not yet implemented.")},getFundamentalComponentInstance:function(e){throw new Error("Not yet implemented.")},getRootHostContext:function(){return{}},hideInstance:function(e){var t={style:{display:"none"}};Object.keys(t).forEach((function(n){return e.setAttribute(n,t[n])}))},hideTextInstance:function(e){throw new Error("Not yet implemented.")},insertBefore:function(e,t,n){e.childNodes.indexOf(t)>0?e.moveChild(t,n):e.insertBefore(t,n)},isOpaqueHydratingObject:function(e){throw new Error("Not yet implemented")},makeClientId:function(){throw new Error("Not yet implemented")},makeClientIdInDEV:function(e){throw new Error("Not yet implemented")},makeOpaqueHydratingObject:function(e){throw new Error("Not yet implemented.")},mountFundamentalComponent:function(e){throw new Error("Not yet implemented.")},prepareForCommit:function(){return null},preparePortalMount:function(e){},prepareUpdate:function(e,t,n,r){var i={};return Object.keys(r).forEach((function(e){var t=n[e],a=r[e];switch(e){case"children":t===a||"number"!=typeof a&&"string"!=typeof a||(i[e]=a);break;default:"function"==typeof t&&"function"==typeof a||function e(t,n){if(t===n)return!0;if(t&&n&&"object"==R(t)&&"object"==R(n)){var r,i,a,o=$t(t),l=$t(n);if(o&&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(o!=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=qt(t);if((i=d.length)!==qt(n).length)return!1;for(r=i;0!=r--;)if(!Qt.call(n,d[r]))return!1;for(r=i;0!=r--;)if(!e(t[a=d[r]],n[a]))return!1;return!0}return t!=t&&n!=n}(t,a)||(i[e]=a)}})),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(){},unmountFundamentalComponent:function(e){throw new Error("Not yet implemented.")},updateFundamentalComponent:function(e){throw new Error("Not yet implemented.")},unhideTextInstance:function(e,t){throw new Error("Not yet implemented.")},unhideInstance:function(e,t){var n=P(P({},t),{},{style:P(P({},t.style),{},{display:"flex"})});Object.keys(n).forEach((function(t){return e.setAttribute(t,n[t])}))},shouldDeprioritizeSubtree:function(){return!0},shouldUpdateFundamentalComponent:function(e){throw new Error("Not yet implemented.")},shouldSetTextContent:function(e,t){if(t&&"Text"===t.nativeName||-1!==["p","span"].indexOf(e)){var n=t.children;return"string"==typeof n||"number"==typeof n}return!1}}),Xt=o()(P(P({},Yt),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:function(){},cancelDeferredCallback:function(){}})),Jt=Xt.createContainer,Zt=Xt.updateContainer,en=Xt.getPublicRootInstance,tn=['%c[Hippy-React "2.10.2"]%c',"color: #61dafb","color: auto"],nn=function(){function e(t){if(T(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 Vt;this.rootContainer=Jt(n,!1,!1)}return F(e,[{key:"start",value:function(){Pt.regist(this.config.appName,this.render)}},{key:"render",value:function(e){var t=this.config,n=t.appName,r=t.entryPage,a=t.silent,o=void 0!==a&&a,l=t.bubbles,u=void 0!==l&&l,s=t.callback,c=void 0===s?function(){}:s,f=e.__instanceId__;re.apply(void 0,tn.concat(["Start",n,"with rootViewId",f,e])),this.rootContainer.containerInfo.nodeId=f,o&&ue(o),u&&function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];ne=e}(u),X(f,this.rootContainer);var d=i.a.createElement(r,e);return Zt(d,this.rootContainer,null,c),en(this.rootContainer)}}],[{key:"Native",get:function(){return _t}}]),e}();nn.version="2.10.2";var rn={registerComponent:function(e,t){new nn({appName:e,entryPage:t}).start()}},an=function(e){w(n,e);var t=E(n);function n(){return T(this,n),t.apply(this,arguments)}return F(n,[{key:"render",value:function(){var e=this.props,t=e.collapsable,n=e.style,r=void 0===n?{}:n,a=A(e,u),o=r;return"boolean"==typeof t&&(o.collapsable=t),i.a.createElement("div",Object.assign({nativeName:"View",style:o},a))}}]),n}(i.a.Component);function on(e,t){var n=e.style,r=A(e,s),a=n;if(n&&(Array.isArray(n)?-1===n.filter((function(e){return"object"===R(e)&&e})).findIndex((function(e){return e.color||e.colors}))&&(a[0].color="#000"):"object"===R(n)&&void 0===n.color&&void 0===n.colors&&(a.color="#000")),r.text="","string"==typeof r.children)r.text=ie(r.children);else if("number"==typeof r.children)r.text=ie(r.children.toString());else if(Array.isArray(r.children)){var o=r.children.filter((function(e){return"string"==typeof e||"number"==typeof e})).join("");o&&(r.text=ie(o),r.children=r.text)}return i.a.createElement("p",Object.assign({ref:t,nativeName:"Text",style:a},r))}on.displayName="Text";var ln=i.a.forwardRef(on);ln.displayName="Text";var un=function(e){w(n,e);var t=E(n);function n(){return T(this,n),t.apply(this,arguments)}return F(n,[{key:"getImageUrls",value:function(e){var t=e.src,n=e.srcs,r=e.source,i=e.sources,a=[];if("string"==typeof t&&a.push(t),Array.isArray(n)&&(a=[].concat(k(a),k(n))),r)if("string"==typeof r)a.push(r);else if("object"===R(r)&&null!==r){var o=r.uri;o&&a.push(o)}return i&&Array.isArray(i)&&i.forEach((function(e){"string"==typeof e?a.push(e):"object"===R(e)&&null!==e&&e.uri&&a.push(e.uri)})),a.length&&(a=a.map((function(e){return se(e)}))),a}},{key:"handleTintColor",value:function(e,t,n){t&&(e.tintColor=Wt(t)),Array.isArray(n)&&(e.tintColors=Bt(n))}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.style,r=e.imageStyle,a=e.imageRef,o=e.source,l=e.sources,u=e.src,s=e.srcs,f=e.tintColor,d=e.tintColors,p=A(e,c),h=this.getImageUrls({src:u,srcs:s,source:o,sources:l});if("ios"===It.platform.OS)h.length&&(p.source=h.map((function(e){return{uri:e}})));else if("android"===It.platform.OS)if(1===h.length){var m=L(h,1);p.src=m[0]}else h.length>1&&(p.srcs=h);"string"==typeof p.defaultSource&&(p.defaultSource.indexOf("data:image/"),p.defaultSource=se(p.defaultSource));var v=P({},n);return this.handleTintColor(v,f,d),p.style=v,t?i.a.createElement(an,{style:n},i.a.createElement("img",Object.assign({},p,{nativeName:"Image",alt:"",ref:a,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:a}))}}],[{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=we(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);un.prefetch=Se;var sn=function(){function e(){T(this,e),this.Value=e.Value}return F(e,null,[{key:"Value",value:function(e){return e}},{key:"timing",value:function(e,t){return new Le({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}]),e}();sn.View=an,sn.Text=ln,sn.Image=un;var cn={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 fn(e){return i.a.createElement("li",Object.assign({nativeName:"ListViewItem"},e))}var dn=function(e){w(n,e);var t=E(n);function n(){var e;return T(this,n),(e=t.apply(this,arguments)).instance=null,e}return F(n,[{key:"expandPullHeader",value:function(){ht(this.instance,"expandPullHeader",[])}},{key:"collapsePullHeader",value:function(e){"android"===It.platform.OS?ht(this.instance,"collapsePullHeader",[e]):void 0!==e?ht(this.instance,"collapsePullHeaderWithOptions",[e]):ht(this.instance,"collapsePullHeader",[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=A(t,f);return i.a.createElement("div",Object.assign({nativeName:"PullHeaderView",ref:function(t){e.instance=t}},r),n)}}]),n}(i.a.Component),pn=function(e){w(n,e);var t=E(n);function n(){var e;return T(this,n),(e=t.apply(this,arguments)).instance=null,e}return F(n,[{key:"expandPullFooter",value:function(){ht(this.instance,"expandPullFooter",[])}},{key:"collapsePullFooter",value:function(){ht(this.instance,"collapsePullFooter",[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=A(t,d);return i.a.createElement("div",Object.assign({nativeName:"PullFooterView",ref:function(t){e.instance=t}},r),n)}}]),n}(i.a.Component);pn.defaultProps={sticky:!0};var hn={onDisappear:"onDisAppear"},mn={onDisappear:"onDisappear"},vn=function(e){w(n,e);var t=E(n);function n(e){var r;return T(this,n),(r=t.call(this,e)).instance=null,r.pullHeader=null,r.pullFooter=null,r.handleInitialListReady=r.handleInitialListReady.bind(C(r)),r.state={initialListReady:!1},r}return F(n,[{key:"componentDidMount",value:function(){this.props.getRowKey}},{key:"convertName",value:function(e){var t=e;return t.indexOf("bound")>=0&&(t=t.substring("bound".length+1)),"android"===It.platform.OS&&hn[t]?hn[t]:"ios"===It.platform.OS&&mn[t]?mn[t]:t}},{key:"scrollToIndex",value:function(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&ht(this.instance,"scrollToIndex",[e,t,n])}},{key:"scrollToContentOffset",value:function(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&ht(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,a=null;return"function"==typeof e&&(a=i.a.createElement(dn,{ref:function(e){r.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),a}},{key:"getPullFooter",value:function(e,t,n){var r=this,a=null;return"function"==typeof e&&(a=i.a.createElement(pn,{ref:function(e){r.pullFooter=e},onFooterPulling:t,onFooterReleased:n},e())),a}},{key:"handleRowProps",value:function(e,t,n){var r=n.getRowKey,i=n.getRowStyle,a=n.onRowLayout,o=n.getRowType,l=n.rowShouldSticky;if("function"==typeof r&&(e.key=r(t)),"function"==typeof i&&(e.style=i(t)),"function"==typeof a&&(e.onLayout=function(e){a(e,t)}),"function"==typeof o){var u=o(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,a=t.renderRow,o=t.renderPullHeader,l=t.renderPullFooter,u=t.getRowType,s=t.getRowStyle,c=t.getRowKey,f=t.dataSource,d=t.initialListSize,h=t.rowShouldSticky,m=t.onRowLayout,v=t.onHeaderPulling,y=t.onHeaderReleased,g=t.onFooterPulling,b=t.onFooterReleased,k=t.onAppear,w=t.onDisappear,S=t.onWillAppear,E=t.onWillDisappear,x=A(t,p),C=[];if("function"==typeof a){var N=this.state.initialListReady,I=this.props.numberOfRows,_=this.getPullHeader(o,v,y),R=this.getPullFooter(l,g,b);!I&&f&&(I=f.length),N||(I=Math.min(I,d||10));for(var L=function(t){var n={},r=void 0;r=f?a(f[t],null,t):a(t),e.handleRowProps(n,t,{getRowKey:c,getRowStyle:s,getRowType:u,onRowLayout:m,rowShouldSticky:h}),[k,w,S,E].forEach((function(r){"function"==typeof r&&(n[e.convertName(r.name)]=function(){r(t)})})),r&&C.push(i.a.createElement(fn,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 nn({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0;delete e.component}var t=[e];this.stack.push(e),ht(this.instance,"push",t)}},{key:"pop",value:function(e){if(this.stack.size>1){var t=[e];this.stack.pop(),ht(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,A(n,m)),a=A(t,v);return a.initialRoute=r,i.a.createElement("div",Object.assign({nativeName:"Navigator",ref:function(t){e.instance=t}},a))}}]),n}(i.a.Component);function kn(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 wn=function(e){w(n,e);var t=E(n);function n(e){var r;return T(this,n),(r=t.call(this,e)).instance=null,r.setPage=r.setPage.bind(C(r)),r.setPageWithoutAnimation=r.setPageWithoutAnimation.bind(C(r)),r.onPageScrollStateChanged=r.onPageScrollStateChanged.bind(C(r)),r}return F(n,[{key:"onPageScrollStateChanged",value:function(e){var t=this.props.onPageScrollStateChanged;t&&t(e.pageScrollState)}},{key:"setPage",value:function(e){"number"==typeof e&&ht(this.instance,"setPage",[e])}},{key:"setPageWithoutAnimation",value:function(e){"number"==typeof e&&ht(this.instance,"setPageWithoutAnimation",[e])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.onPageScrollStateChanged,a=A(t,y),o=[];return Array.isArray(n)?o=n.map((function(e){var t={};return"string"==typeof e.key&&(t.key="viewPager_".concat(e.key)),i.a.createElement(kn,Object.assign({},t),e)})):o.push(i.a.createElement(kn,null,n)),"function"==typeof r&&(a.onPageScrollStateChanged=this.onPageScrollStateChanged),i.a.createElement("div",Object.assign({nativeName:"ViewPager",ref:function(t){e.instance=t}},a),o)}}]),n}(i.a.Component);function Sn(){var e=V.platform.Localization;return!!e&&1===e.direction}var En=function(e){w(n,e);var t=E(n);function n(e){var r;return T(this,n),(r=t.call(this,e)).instance=null,r._lastNativeText="",r._onChangeText=r._onChangeText.bind(C(r)),r._onKeyboardWillShow=r._onKeyboardWillShow.bind(C(r)),r}return F(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){ht(e.instance,"getValue",(function(e){return t(e.text)}))}))}},{key:"setValue",value:function(e){return ht(this.instance,"setValue",[e]),e}},{key:"focus",value:function(){ht(this.instance,"focusTextInput",[])}},{key:"blur",value:function(){ht(this.instance,"blurTextInput",[])}},{key:"showInputMethod",value:function(){ht(this.instance,"showInputMethod",[])}},{key:"hideInputMethod",value:function(){ht(this.instance,"hideInputMethod",[])}},{key:"clear",value:function(){ht(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"===It.platform.OS&&(n.keyboardHeight/=It.screen.scale),"function"==typeof t&&t(n)}},{key:"render",value:function(){var e=this,t=P({},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]}):t.style&&"object"===R(t.style)?t.style[n]=e.props[n]:t.style={[n]:e.props[n]},t[n]=void 0)})),Sn()&&(t.style?"object"!==R(t.style)||Array.isArray(t.style)||t.style.textAlign||(t.style.textAlign="right"):t.style={textAlign:"right"}),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),xn=It.window.scale,Cn=Math.round(.4*xn)/xn;function Nn(e){return e}0===Cn&&(Cn=1/xn);var In=Object.freeze({__proto__:null,get hairlineWidth(){return Cn},create:Nn}),Pn={baseVertical:{flexGrow:1,flexShrink:1,flexDirection:"column",overflow:"scroll"},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:"row",overflow:"scroll"},contentContainerVertical:{collapsable:!1,flexDirection:"column"},contentContainerHorizontal:{collapsable:!1,flexDirection:"row"}},_n=function(e){w(n,e);var t=E(n);function n(){var e;return T(this,n),(e=t.apply(this,arguments)).instance=null,e}return F(n,[{key:"scrollTo",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e,i=t,a=n;"number"==typeof e||"object"===R(e)&&e&&(r=e.x,i=e.y,a=e.animated),r=r||0,i=i||0,a=!!a,ht(this.instance,"scrollTo",[r,i,a])}},{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;ht(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,a=t.children,o=t.style,l=[n?Pn.contentContainerHorizontal:Pn.contentContainerVertical,r],u=n?Object.assign({},Pn.baseHorizontal,o):Object.assign({},Pn.baseVertical,o);return n&&(u.flexDirection=Sn()?"row-reverse":"row"),i.a.createElement("div",Object.assign({nativeName:"ScrollView",ref:function(t){e.instance=t}},this.props,{style:u}),i.a.createElement(an,{style:l},a))}}]),n}(i.a.Component),An={modal:{position:"absolute"},container:{position:"absolute",left:0,top:0}},Rn=function(e){w(n,e);var t=E(n);function n(e){var r;return T(this,n),(r=t.call(this,e)).eventSubscription=null,r}return F(n,[{key:"componentDidMount",value:function(){var e=this;"ios"===It.platform.OS&&(this.eventSubscription=new ve("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"===It.platform.OS&&this.eventSubscription&&this.eventSubscription.unregister()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.visible,r=e.transparent,a=e.animated,o=this.props.animationType;if(!1===n)return null;var l={backgroundColor:r?"transparent":"white"};return o||(o="none",a&&(o="slide")),i.a.createElement("div",Object.assign({nativeName:"Modal",animationType:o,transparent:r,style:An.modal},this.props),i.a.createElement(an,{style:[An.container,l]},t))}}]),n}(i.a.Component);Rn.defaultProps={visible:!0};var Ln=function(e){w(n,e);var t=E(n);function n(e){var r;T(this,n);var i=(r=t.call(this,e)).props.requestFocus;return r.state={isFocus:!!i},r.handleFocus=r.handleFocus.bind(C(r)),r}return F(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,a=t.nextFocusDownId,o=t.nextFocusUpId,l=t.nextFocusLeftId,u=t.nextFocusRightId,s=t.style,c=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.displayName&&(e=h.type.displayName);var m=a&&pt(a),v=o&&pt(o),y=l&&pt(l),g=u&&pt(u),b=s;if("Text"!==e){var k=h.memoizedProps.style;b=P(P({},b),k)}if(Object.assign(b,p?f:c),"Text"===e)return i.a.createElement(an,{focusable:!0,nextFocusDownId:m,nextFocusUpId:v,nextFocusLeftId:y,nextFocusRightId:g,requestFocus:n,style:b,onClick:d,onFocus:this.handleFocus},h);var w=h.memoizedProps.children;return i.a.cloneElement(h,{nextFocusDownId:a,nextFocusUpId:o,nextFocusLeftId:l,nextFocusRightId:u,requestFocus:n,onClick:d,focusable:!0,children:w,style:b,onFocus:this.handleFocus})}}]),n}(i.a.Component);function On(e){return i.a.createElement("iframe",Object.assign({title:"hippy",nativeName:"WebView"},e))}var zn,Tn=function(){function e(t,n,r){var i=this;if(T(this,e),this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),zn||(zn=new ve("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!t||"string"!=typeof t)throw new TypeError("Invalid WebSocket url");var a=P({},r);if(void 0!==n)if(Array.isArray(n)&&n.length>0)a["Sec-WebSocket-Protocol"]=n.join(",");else{if("string"!=typeof n)throw new TypeError("Invalid WebSocket protocols");a["Sec-WebSocket-Protocol"]=n}var o={headers:a,url:t};this.url=t,this.webSocketCallbackId=zn.addCallback(this.onWebSocketEvent),B.callNativeWithPromise("websocket","connect",o).then((function(e){e&&0===e.code&&"number"==typeof e.id&&(i.webSocketId=e.id)}))}return F(e,[{key:"close",value:function(e,t){1===this.readyState&&(this.readyState=2,B.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(R(e)));B.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"===R(e)&&e.id===this.webSocketId){var t=e.type;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,zn.removeCallback(this.webSocketCallbackId));var n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}}]),e}(),jn=function(e){w(n,e);var t=E(n);function n(){return T(this,n),t.apply(this,arguments)}return F(n,[{key:"render",value:function(){var e=this.props,t=e.collapsable,n=e.style,r=void 0===n?{}:n,a=A(e,g),o=r;return"boolean"==typeof t&&(o.collapsable=t),i.a.createElement("div",Object.assign({nativeName:"View",style:o},a))}}]),n}(i.a.Component);function Fn(e){return i.a.createElement("li",Object.assign({nativeName:"WaterfallItem"},e))}var Mn=function(e){w(n,e);var t=E(n);function n(e){var r;return T(this,n),(r=t.call(this,e)).instance=null,r.pullHeader=null,r.pullFooter=null,r.handleInitialListReady=r.handleInitialListReady.bind(C(r)),r}return F(n,[{key:"componentDidMount",value:function(){this.props.getItemKey}},{key:"scrollToIndex",value:function(e){var t=e.index,n=void 0===t?0:t,r=e.animated,i=void 0===r||r;ht(this.instance,"scrollToIndex",[n,n,i])}},{key:"scrollToContentOffset",value:function(e){var t=e.xOffset,n=void 0===t?0:t,r=e.yOffset,i=void 0===r?0:r,a=e.animated,o=void 0===a||a;ht(this.instance,"scrollToContentOffset",[n,i,o])}},{key:"handleRowProps",value:function(e,t,n){var r=n.getItemKey,i=n.getItemStyle,a=n.onItemLayout,o=n.getItemType;if("function"==typeof r&&(e.key=r(t)),"function"==typeof i&&(e.style=i(t)),"function"==typeof a&&(e.onLayout=function(e){a(e,t)}),"function"==typeof o){var l=o(t);Number.isInteger(l),e.type=l}}},{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:"getPullHeader",value:function(e,t,n){var r=this,a=null;return"function"==typeof e&&(a=i.a.createElement(dn,{key:"PullHeader",ref:function(e){r.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),a}},{key:"getPullFooter",value:function(e,t,n){var r=this,a=null;return"function"==typeof e&&(a=i.a.createElement(pn,{key:"PullFooter",ref:function(e){r.pullFooter=e},onFooterPulling:t,onFooterReleased:n},e())),a}},{key:"handleInitialListReady",value:function(){var e=this.props.onInitialListReady;"function"==typeof e&&e()}},{key:"render",value:function(){var e=this,t=this.props,n=t.style,r=void 0===n?{}:n,a=t.renderBanner,o=t.numberOfColumns,l=void 0===o?2:o,u=t.columnSpacing,s=void 0===u?0:u,c=t.interItemSpacing,f=void 0===c?0:c,d=t.numberOfItems,p=void 0===d?0:d,h=t.preloadItemNumber,m=void 0===h?0:h,v=t.renderItem,y=t.renderPullHeader,g=t.renderPullFooter,k=t.getItemType,w=t.getItemKey,S=t.getItemStyle,E=t.contentInset,x=void 0===E?{top:0,left:0,bottom:0,right:0}:E,C=t.onItemLayout,N=t.onHeaderPulling,I=t.onHeaderReleased,_=t.onFooterPulling,R=t.onFooterReleased,L=t.containPullHeader,O=void 0!==L&&L,z=t.containPullFooter,T=void 0!==z&&z,j=t.containBannerView,F=void 0!==j&&j,M=P(P({},A(t,b)),{},{style:r,numberOfColumns:l,columnSpacing:s,interItemSpacing:f,preloadItemNumber:m,contentInset:x,containPullHeader:O,containPullFooter:T,containBannerView:F}),H=[];if("function"==typeof a){var U=a();U&&(H.push(i.a.createElement(jn,{key:"bannerView"},i.a.cloneElement(U))),M.containBannerView=!0)}if("function"==typeof v){for(var D=this.getPullHeader(y,N,I),W=this.getPullFooter(g,_,R),B=0;B-1){return"".concat("hpfile://","./").concat(e)}return e}var ce=function(){function e(t){T(this,e),this.handlerContainer={},this.nextIdForHandler=0,this.eventName=t}return F(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}(),fe=new Map,de=["%c[event]%c","color: green","color: auto"];function pe(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for getHippyEventHub: ".concat(e));return fe.get(e)||null}var he={registerNativeEventHub:function(e){if(re.apply(void 0,de.concat(["registerNativeEventHub",e])),"string"!=typeof e)throw new TypeError("Invalid eventName for registerNativeEventHub: ".concat(e));var t=fe.get(e);return t||(t=new ce(e),fe.set(e,t)),t},getHippyEventHub:pe,unregisterNativeEventHub:function(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for unregisterNativeEventHub: ".concat(e));fe.has(e)&&fe.delete(e)},receiveNativeEvent:function(e){if(re.apply(void 0,de.concat(["receiveNativeEvent",e])),!e||!Array.isArray(e)||e.length<2)throw new TypeError("Invalid params for receiveNativeEvent: ".concat(JSON.stringify(e)));var t=L(e,2),n=t[0],r=t[1];if("string"!=typeof n)throw new TypeError("Invalid arguments");var i=pe(n);i&&i.notifyEvent(r)},receiveNativeGesture:function(e){if(re.apply(void 0,de.concat(["receiveNativeGesture",e])),e){var t=ee(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{"boolean"!=typeof(n=r.memoizedProps[i](e))&&(n=!ne)}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(re.apply(void 0,de.concat(["receiveUIComponentEvent",e])),e&&Array.isArray(e)&&!(e.length<2)){var t=L(e,3),n=t[0],r=t[1],i=t[2];if("number"==typeof n&&"string"==typeof r){var a=ee(n);a&&a.memoizedProps&&a.memoizedProps[r]&&"function"==typeof a.memoizedProps[r]&&a.memoizedProps[r](i)}}}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=he);var me=function(){function e(t,n){T(this,e),this.callback=t,this.bindListener=n}return F(e,[{key:"remove",value:function(){"number"==typeof this.callback&&this.bindListener&&(this.bindListener.removeCallback(this.callback),this.bindListener=void 0)}}]),e}(),ve=function(){function e(t){T(this,e),this.eventName=t,this.listenerIds=[]}return F(e,[{key:"addCallback",value:function(e,t){if("function"!=typeof e)throw new TypeError("Invalid arguments");var n=he.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=he.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;r=0?Wt(t):t}var Le=function(){function e(t){T(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=Re(t.valueType,r)}var i=Re(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=_e(t.repeatCount||0),this.inputRange=t.inputRange||[],this.outputRange=t.outputRange||[],this.animationId=Nt.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 F(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"===It.platform.OS&&(t="onHippyAnimation"),"function"==typeof this.onAnimationStartCallback&&(this.animationStartListener=Ae.addListener("".concat(t,"Start"),(function(t){t===e.animationId&&(e.animationStartListener.remove(),"function"==typeof e.onAnimationStartCallback&&e.onAnimationStartCallback())}))),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=Ae.addListener("".concat(t,"End"),(function(t){t===e.animationId&&(e.animationEndListener.remove(),"function"==typeof e.onAnimationEndCallback&&e.onAnimationEndCallback())}))),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=Ae.addListener("".concat(t,"Cancel"),(function(t){t===e.animationId&&(e.animationCancelListener.remove(),"function"==typeof e.onAnimationCancelCallback&&e.onAnimationCancelCallback())}))),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=Ae.addListener("".concat(t,"Repeat"),(function(t){t===e.animationId&&"function"==typeof e.onAnimationRepeatCallback&&e.onAnimationRepeatCallback()}))),Nt.callNative("AnimationModule","startAnimation",this.animationId)}},{key:"destory",value:function(){this.destroy()}},{key:"destroy",value:function(){this.removeEventListener(),Nt.callNative("AnimationModule","destroyAnimation",this.animationId)}},{key:"pause",value:function(){Nt.callNative("AnimationModule","pauseAnimation",this.animationId)}},{key:"resume",value:function(){Nt.callNative("AnimationModule","resumeAnimation",this.animationId)}},{key:"updateAnimation",value:function(t){var n=this;if("object"!==R(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 a=0;if(t.startValue instanceof e)a={animationId:t.startValue.animationId};else{var o=t.startValue;a=Re(n.valueType,o)}n.startValue=a||0}else"repeatCount"===r?n.repeatCount=_e(t.repeatCount||0):Object.defineProperty(n,r,{value:i})})),Nt.callNative("AnimationModule","updateAnimation",this.animationId,Object.assign({delay:this.delay,startValue:this.startValue,toValue:Re(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}(),Oe=new ge,ze=function(){function e(t){var n=this;T(this,e),this.animationList=[],t.children.forEach((function(e){n.animationList.push({animationId:e.animation.animationId,follow:e.follow||!1})})),this.animationId=Nt.callNativeWithCallbackId("AnimationModule","createAnimationSet",!0,{repeatCount:_e(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 F(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"===It.platform.OS&&(t="onHippyAnimation"),"function"==typeof this.onAnimationStartCallback&&(this.animationStartListener=Oe.addListener("".concat(t,"Start"),(function(t){t===e.animationId&&(e.animationStartListener.remove(),"function"==typeof e.onAnimationStartCallback&&e.onAnimationStartCallback())}))),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=Oe.addListener("".concat(t,"End"),(function(t){t===e.animationId&&(e.animationEndListener.remove(),"function"==typeof e.onAnimationEndCallback&&e.onAnimationEndCallback())}))),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=Oe.addListener("".concat(t,"Cancel"),(function(t){t===e.animationId&&(e.animationCancelListener.remove(),"function"==typeof e.onAnimationCancelCallback&&e.onAnimationCancelCallback())}))),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=Oe.addListener("".concat(t,"Repeat"),(function(t){t===e.animationId&&"function"==typeof e.onAnimationRepeatCallback&&e.onAnimationRepeatCallback()}))),Nt.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)&&Nt.callNative("AnimationModule","destroyAnimation",e.animationId)})),Nt.callNative("AnimationModule","destroyAnimation",this.animationId)}},{key:"pause",value:function(){Nt.callNative("AnimationModule","pauseAnimation",this.animationId)}},{key:"resume",value:function(){Nt.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}(),Te=["%c[native]%c","color: red","color: auto"],je={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode")},Fe=!0,Me=[];function He(){Fe&&ut()}function Ue(e){Fe&&(Fe=!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||(qe(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;t1&&void 0!==arguments[1]?arguments[1]:et,n=parseFloat(e),r=e||"",i=e.split("."),a=L(i,2),o=a[1];switch(o&&o.length>2&&(r=n.toFixed(2)),t){case Je:r="".concat((360*n).toFixed(2));break;case Ze:r="".concat((180/Math.PI*n).toFixed(2))}return r}(o,l):a&&void 0!==Xe[a]&&(r=Xe[a]),r}}function nt(e){var t=L((e||"").replace(/\s+/g," ").trim().split(/\s+(?![^(]*?\))/),2),n=t[0],r=t[1],i=/^([+-]?\d+\.?\d*)%$/g;return!n||i.exec(n)||r?n&&i.exec(r)?{ratio:parseFloat(r.split("%")[0])/100,color:Wt(n)}:void 0:{color:Wt(n)}}var rt=function(e){w(n,e);var t=E(n);function n(e){var r;return T(this,n),(r=t.call(this)).id="",r.style={},r.attributes={},r.tagName=e,r}return F(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,te.test(t)?r.push(n[e]):i[e]=n[e]})),n=[].concat(r,[i])}Array.isArray(n)||(n=[n]);var a={};n.forEach((function(e){Array.isArray(e)?e.forEach((function(e){a=P(P({},a),e)})):"object"===R(e)&&e&&(a=P(P({},a),e))})),Object.keys(a).forEach((function(e){var n=a[e];if(Object.prototype.hasOwnProperty.call(Ye,e)&&(e=Ye[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 Le||n instanceof ze?r[t]={animationId:n.animationId}:null===n?r[t]&&delete r[t]:void 0!==n&&(r[t]=n)}))}));var i=Object.keys(r);i.length&&(Array.isArray(t.style.transform)||(t.style.transform=[]),i.forEach((function(e){return t.style.transform.push({[e]:r[e]})})))}else if(null===n&&void 0!==t.style[e])t.style[e]=void 0;else if(n instanceof Le||n instanceof ze)t.style[e]={animationId:n.animationId};else if(e.toLowerCase().indexOf("colors")>-1)t.style[e]=Bt(n);else if(e.toLowerCase().indexOf("color")>-1)t.style[e]=Wt(n);else if("backgroundImage"===e&&n)t.style=function(e,t,n){if(0===t.indexOf("linear-gradient")){var r=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),i=[];n.linearGradient=n.linearGradient||{},r.forEach((function(e,t){if(0===t){var r=tt(e);if(r)n.linearGradient.angle=r;else{n.linearGradient.angle="180";var a=nt(e);a&&i.push(a)}}else{var o=nt(e);o&&i.push(o)}})),n.linearGradient.colorStopList=i}else n[e]=se(t);return n}(e,n,t.style);else if("textShadowOffset"===e){var o=n||{},l=o.x,u=void 0===l?0:l,s=o.width,c=void 0===s?0:s,f=o.y,d=void 0===f?0:f,p=o.height,h=void 0===p?0:p;t.style[e]={width:u||c,height:d||h}}else["textShadowOffsetX","textShadowOffsetY"].indexOf(e)>=0?t.style=function(e,t,n){return n.textShadowOffset=n.textShadowOffset||{},Object.assign(n.textShadowOffset,{[{textShadowOffsetX:"width",textShadowOffsetY:"height"}[e]]:t||0}),n}(e,n,t.style):t.style[e]=n}))}},{key:"setAttribute",value:function(e,t){var n=this;try{if("boolean"==typeof this.attributes[e]&&""===t&&(t=!0),void 0===e)return void Qe(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=J(),n=Be(t,e);He(),Me.push({type:je.updateNode,nodes:n}),Ue(t)}}(n)),!0}},{match:function(){return["value","defaultValue","placeholder"].indexOf(e)>=0},action:function(){return n.attributes[e]=ie(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"!==It.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"!==R(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(Ye,e)&&(i=Ye[e]),"string"==typeof r&&(r=t.trim(),r=i.toLowerCase().indexOf("colors")>-1?Bt(r):i.toLowerCase().indexOf("color")>-1?Wt(r):oe(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||Qe(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)})),Qe(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=ie(e)).replace(/ /g," ").replace(/Â/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}]),n}(Ge),it=$.createNode,at=$.updateNode,ot=$.deleteNode,lt=$.flushBatch,ut=$.startBatch,st=$.endBatch,ct=$.sendRenderError,ft=ee;function dt(e){if(e instanceof rt)return e;var t=e._reactInternalFiber||e._reactInternals;if(t&&t.child){for(var n=t.child;n&&!(n.stateNode instanceof rt);)n=n.child;return n&&n.stateNode?n.stateNode:null}return null}function pt(e){var t=e;if("string"==typeof e){"getNodeIdByRef('".concat(e,"') use string ref will affect to performance, recommend use reference to the ref instead");var n=Z((function(t){return!!(t.return&&t.return.ref&&t.return.ref._stringRef)&&t.return.ref._stringRef===e}));if(!n||!n.stateNode)return 0;t=n.stateNode}if(!t.nodeId){var r=dt(t);return r?r.nodeId:0}return t.nodeId}function ht(e,t){var n=e.nativeName,r=e.nodeId;if(!r||!n){var i=dt(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 a=arguments.length,o=new Array(a>2?a-2:0),l=2;l255?255:t}function jt(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Ft(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 Mt(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,a=Ft(i,r,e+1/3),o=Ft(i,r,e),l=Ft(i,r,e-1/3);return Math.round(255*a)<<24|Math.round(255*o)<<16|Math.round(255*l)<<8}function Ht(e){return(parseFloat(e)%360+360)%360/360}function Ut(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function Dt(e){var t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=zt.hex6.exec(e),Array.isArray(t)?parseInt("".concat(t[1],"ff"),16)>>>0:Object.hasOwnProperty.call(Rt,e)?Rt[e]:(t=zt.rgb.exec(e),Array.isArray(t)?(Tt(t[1])<<24|Tt(t[2])<<16|Tt(t[3])<<8|255)>>>0:(t=zt.rgba.exec(e))?(Tt(t[1])<<24|Tt(t[2])<<16|Tt(t[3])<<8|jt(t[4]))>>>0:(t=zt.hex3.exec(e))?parseInt("".concat(t[1]+t[1]+t[2]+t[2]+t[3]+t[3],"ff"),16)>>>0:(t=zt.hex8.exec(e))?parseInt(t[1],16)>>>0:(t=zt.hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=zt.hsl.exec(e))?(255|Mt(Ht(t[1]),Ut(t[2]),Ut(t[3])))>>>0:(t=zt.hsla.exec(e))?(Mt(Ht(t[1]),Ut(t[2]),Ut(t[3]))|jt(t[4]))>>>0:null))}function Wt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isInteger(e))return e;var n=Dt(e);return t.platform||(t.platform="ios"),null===n?0:(n=(n<<24|n>>>8)>>>0,"android"===t.platform&&(n|=0),n)}function Bt(e,t){return Array.isArray(e)?e.map((function(e){return Wt(e,t)})):[0]}var Vt=function(e){w(n,e);var t=E(n);function n(){var e;return T(this,n),(e=t.call(this)).documentElement=new rt("document"),e}return F(n,[{key:"createElement",value:function(e){return new rt(e)}},{key:"createElementNS",value:function(e,t){return new rt("".concat(e,":").concat(t))}}]),n}(Ge);Vt.createElement=Vt.prototype.createElement,Vt.createElementNS=Vt.prototype.createElementNS;var $t=Array.isArray,qt=Object.keys,Qt=Object.prototype.hasOwnProperty;var Kt=setTimeout,Gt=clearTimeout,Yt=Object.freeze({__proto__:null,scheduleTimeout:Kt,cancelTimeout:Gt,afterActiveInstanceBlur:function(){},appendChild:function(e,t){e.childNodes.indexOf(t)>=0&&e.removeChild(t),e.appendChild(t)},appendChildToContainer:function(e,t){e.appendChild(t)},appendInitialChild:function(e,t){e.appendChild(t)},beforeActiveInstanceBlur:function(e){},commitMount:function(){},commitTextUpdate:function(){},commitUpdate:function(e,t){Object.keys(t).forEach((function(n){return e.setAttribute(n,t[n])}))},clearContainer:function(e){},createContainerChildSet:function(){},createInstance:function(e,t,n,r,i){var a=n.createElement(e);return Object.keys(t).forEach((function(e){switch(e){case"children":break;case"nativeName":a.meta.component.name=t.nativeName;break;default:a.setAttribute(e,t[e])}})),[5,7].indexOf(i.tag)<0&&(a.meta.skipAddToDom=!0),a},createTextInstance:function(e,t){var n=t.createElement("p");return n.setAttribute("text",ie(e)),n.meta={component:{name:"Text",skipAddToDom:!0}},n},finalizeContainerChildren:function(){},finalizeInitialChildren:function(){return!0},getChildHostContext:function(){return{}},getPublicInstance:function(e){return e},getInstanceFromNode:function(e){throw new Error("Not yet implemented.")},getFundamentalComponentInstance:function(e){throw new Error("Not yet implemented.")},getRootHostContext:function(){return{}},hideInstance:function(e){var t={style:{display:"none"}};Object.keys(t).forEach((function(n){return e.setAttribute(n,t[n])}))},hideTextInstance:function(e){throw new Error("Not yet implemented.")},insertBefore:function(e,t,n){e.childNodes.indexOf(t)>=0?e.moveChild(t,n):e.insertBefore(t,n)},isOpaqueHydratingObject:function(e){throw new Error("Not yet implemented")},makeClientId:function(){throw new Error("Not yet implemented")},makeClientIdInDEV:function(e){throw new Error("Not yet implemented")},makeOpaqueHydratingObject:function(e){throw new Error("Not yet implemented.")},mountFundamentalComponent:function(e){throw new Error("Not yet implemented.")},prepareForCommit:function(){return null},preparePortalMount:function(e){},prepareUpdate:function(e,t,n,r){var i={};return Object.keys(r).forEach((function(e){var t=n[e],a=r[e];switch(e){case"children":t===a||"number"!=typeof a&&"string"!=typeof a||(i[e]=a);break;default:"function"==typeof t&&"function"==typeof a||function e(t,n){if(t===n)return!0;if(t&&n&&"object"==R(t)&&"object"==R(n)){var r,i,a,o=$t(t),l=$t(n);if(o&&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(o!=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=qt(t);if((i=d.length)!==qt(n).length)return!1;for(r=i;0!=r--;)if(!Qt.call(n,d[r]))return!1;for(r=i;0!=r--;)if(!e(t[a=d[r]],n[a]))return!1;return!0}return t!=t&&n!=n}(t,a)||(i[e]=a)}})),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(){},unmountFundamentalComponent:function(e){throw new Error("Not yet implemented.")},updateFundamentalComponent:function(e){throw new Error("Not yet implemented.")},unhideTextInstance:function(e,t){throw new Error("Not yet implemented.")},unhideInstance:function(e,t){var n=P(P({},t),{},{style:P(P({},t.style),{},{display:"flex"})});Object.keys(n).forEach((function(t){return e.setAttribute(t,n[t])}))},shouldDeprioritizeSubtree:function(){return!0},shouldUpdateFundamentalComponent:function(e){throw new Error("Not yet implemented.")},shouldSetTextContent:function(e,t){if(t&&"Text"===t.nativeName||-1!==["p","span"].indexOf(e)){var n=t.children;return"string"==typeof n||"number"==typeof n}return!1}}),Xt=o()(P(P({},Yt),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:function(){},cancelDeferredCallback:function(){}})),Jt=Xt.createContainer,Zt=Xt.updateContainer,en=Xt.getPublicRootInstance,tn=['%c[Hippy-React "2.10.3"]%c',"color: #61dafb","color: auto"],nn=function(){function e(t){if(T(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 Vt;this.rootContainer=Jt(n,!1,!1)}return F(e,[{key:"start",value:function(){Pt.regist(this.config.appName,this.render)}},{key:"render",value:function(e){var t=this.config,n=t.appName,r=t.entryPage,a=t.silent,o=void 0!==a&&a,l=t.bubbles,u=void 0!==l&&l,s=t.callback,c=void 0===s?function(){}:s,f=e.__instanceId__;re.apply(void 0,tn.concat(["Start",n,"with rootViewId",f,e])),this.rootContainer.containerInfo.nodeId=f,o&&ue(o),u&&function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];ne=e}(u),X(f,this.rootContainer);var d=i.a.createElement(r,e);return Zt(d,this.rootContainer,null,c),en(this.rootContainer)}}],[{key:"Native",get:function(){return _t}}]),e}();nn.version="2.10.3";var rn={registerComponent:function(e,t){new nn({appName:e,entryPage:t}).start()}},an=function(e){w(n,e);var t=E(n);function n(){return T(this,n),t.apply(this,arguments)}return F(n,[{key:"render",value:function(){var e=this.props,t=e.collapsable,n=e.style,r=void 0===n?{}:n,a=A(e,u),o=r;return"boolean"==typeof t&&(o.collapsable=t),i.a.createElement("div",Object.assign({nativeName:"View",style:o},a))}}]),n}(i.a.Component);function on(e,t){var n=e.style,r=A(e,s),a=n;if(n&&(Array.isArray(n)?-1===n.filter((function(e){return"object"===R(e)&&e})).findIndex((function(e){return e.color||e.colors}))&&(a[0].color="#000"):"object"===R(n)&&void 0===n.color&&void 0===n.colors&&(a.color="#000")),r.text="","string"==typeof r.children)r.text=ie(r.children);else if("number"==typeof r.children)r.text=ie(r.children.toString());else if(Array.isArray(r.children)){var o=r.children.filter((function(e){return"string"==typeof e||"number"==typeof e})).join("");o&&(r.text=ie(o),r.children=r.text)}return i.a.createElement("p",Object.assign({ref:t,nativeName:"Text",style:a},r))}on.displayName="Text";var ln=i.a.forwardRef(on);ln.displayName="Text";var un=function(e){w(n,e);var t=E(n);function n(){return T(this,n),t.apply(this,arguments)}return F(n,[{key:"getImageUrls",value:function(e){var t=e.src,n=e.srcs,r=e.source,i=e.sources,a=[];if("string"==typeof t&&a.push(t),Array.isArray(n)&&(a=[].concat(k(a),k(n))),r)if("string"==typeof r)a.push(r);else if("object"===R(r)&&null!==r){var o=r.uri;o&&a.push(o)}return i&&Array.isArray(i)&&i.forEach((function(e){"string"==typeof e?a.push(e):"object"===R(e)&&null!==e&&e.uri&&a.push(e.uri)})),a.length&&(a=a.map((function(e){return se(e)}))),a}},{key:"handleTintColor",value:function(e,t,n){t&&(e.tintColor=Wt(t)),Array.isArray(n)&&(e.tintColors=Bt(n))}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.style,r=e.imageStyle,a=e.imageRef,o=e.source,l=e.sources,u=e.src,s=e.srcs,f=e.tintColor,d=e.tintColors,p=A(e,c),h=this.getImageUrls({src:u,srcs:s,source:o,sources:l});if("ios"===It.platform.OS)h.length&&(p.source=h.map((function(e){return{uri:e}})));else if("android"===It.platform.OS)if(1===h.length){var m=L(h,1);p.src=m[0]}else h.length>1&&(p.srcs=h);"string"==typeof p.defaultSource&&(p.defaultSource.indexOf("data:image/"),p.defaultSource=se(p.defaultSource));var v=P({},n);return this.handleTintColor(v,f,d),p.style=v,t?i.a.createElement(an,{style:n},i.a.createElement("img",Object.assign({},p,{nativeName:"Image",alt:"",ref:a,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:a}))}}],[{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=we(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);un.prefetch=Se;var sn=function(){function e(){T(this,e),this.Value=e.Value}return F(e,null,[{key:"Value",value:function(e){return e}},{key:"timing",value:function(e,t){return new Le({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}]),e}();sn.View=an,sn.Text=ln,sn.Image=un;var cn={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 fn(e){return i.a.createElement("li",Object.assign({nativeName:"ListViewItem"},e))}var dn=function(e){w(n,e);var t=E(n);function n(){var e;return T(this,n),(e=t.apply(this,arguments)).instance=null,e}return F(n,[{key:"expandPullHeader",value:function(){ht(this.instance,"expandPullHeader",[])}},{key:"collapsePullHeader",value:function(e){"android"===It.platform.OS?ht(this.instance,"collapsePullHeader",[e]):void 0!==e?ht(this.instance,"collapsePullHeaderWithOptions",[e]):ht(this.instance,"collapsePullHeader",[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=A(t,f);return i.a.createElement("div",Object.assign({nativeName:"PullHeaderView",ref:function(t){e.instance=t}},r),n)}}]),n}(i.a.Component),pn=function(e){w(n,e);var t=E(n);function n(){var e;return T(this,n),(e=t.apply(this,arguments)).instance=null,e}return F(n,[{key:"expandPullFooter",value:function(){ht(this.instance,"expandPullFooter",[])}},{key:"collapsePullFooter",value:function(){ht(this.instance,"collapsePullFooter",[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=A(t,d);return i.a.createElement("div",Object.assign({nativeName:"PullFooterView",ref:function(t){e.instance=t}},r),n)}}]),n}(i.a.Component);pn.defaultProps={sticky:!0};var hn={onDisappear:"onDisAppear"},mn={onDisappear:"onDisappear"},vn=function(e){w(n,e);var t=E(n);function n(e){var r;return T(this,n),(r=t.call(this,e)).instance=null,r.pullHeader=null,r.pullFooter=null,r.handleInitialListReady=r.handleInitialListReady.bind(C(r)),r.state={initialListReady:!1},r}return F(n,[{key:"componentDidMount",value:function(){this.props.getRowKey}},{key:"convertName",value:function(e){var t=e;return t.indexOf("bound")>=0&&(t=t.substring("bound".length+1)),"android"===It.platform.OS&&hn[t]?hn[t]:"ios"===It.platform.OS&&mn[t]?mn[t]:t}},{key:"scrollToIndex",value:function(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&ht(this.instance,"scrollToIndex",[e,t,n])}},{key:"scrollToContentOffset",value:function(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&ht(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,a=null;return"function"==typeof e&&(a=i.a.createElement(dn,{ref:function(e){r.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),a}},{key:"getPullFooter",value:function(e,t,n){var r=this,a=null;return"function"==typeof e&&(a=i.a.createElement(pn,{ref:function(e){r.pullFooter=e},onFooterPulling:t,onFooterReleased:n},e())),a}},{key:"handleRowProps",value:function(e,t,n){var r=n.getRowKey,i=n.getRowStyle,a=n.onRowLayout,o=n.getRowType,l=n.rowShouldSticky;if("function"==typeof r&&(e.key=r(t)),"function"==typeof i&&(e.style=i(t)),"function"==typeof a&&(e.onLayout=function(e){a(e,t)}),"function"==typeof o){var u=o(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,a=t.renderRow,o=t.renderPullHeader,l=t.renderPullFooter,u=t.getRowType,s=t.getRowStyle,c=t.getRowKey,f=t.dataSource,d=t.initialListSize,h=t.rowShouldSticky,m=t.onRowLayout,v=t.onHeaderPulling,y=t.onHeaderReleased,g=t.onFooterPulling,b=t.onFooterReleased,k=t.onAppear,w=t.onDisappear,S=t.onWillAppear,E=t.onWillDisappear,x=A(t,p),C=[];if("function"==typeof a){var N=this.state.initialListReady,I=this.props.numberOfRows,_=this.getPullHeader(o,v,y),R=this.getPullFooter(l,g,b);!I&&f&&(I=f.length),N||(I=Math.min(I,d||10));for(var L=function(t){var n={},r=void 0;r=f?a(f[t],null,t):a(t),e.handleRowProps(n,t,{getRowKey:c,getRowStyle:s,getRowType:u,onRowLayout:m,rowShouldSticky:h}),[k,w,S,E].forEach((function(r){"function"==typeof r&&(n[e.convertName(r.name)]=function(){r(t)})})),r&&C.push(i.a.createElement(fn,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 nn({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0;delete e.component}var t=[e];this.stack.push(e),ht(this.instance,"push",t)}},{key:"pop",value:function(e){if(this.stack.size>1){var t=[e];this.stack.pop(),ht(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,A(n,m)),a=A(t,v);return a.initialRoute=r,i.a.createElement("div",Object.assign({nativeName:"Navigator",ref:function(t){e.instance=t}},a))}}]),n}(i.a.Component);function kn(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 wn=function(e){w(n,e);var t=E(n);function n(e){var r;return T(this,n),(r=t.call(this,e)).instance=null,r.setPage=r.setPage.bind(C(r)),r.setPageWithoutAnimation=r.setPageWithoutAnimation.bind(C(r)),r.onPageScrollStateChanged=r.onPageScrollStateChanged.bind(C(r)),r}return F(n,[{key:"onPageScrollStateChanged",value:function(e){var t=this.props.onPageScrollStateChanged;t&&t(e.pageScrollState)}},{key:"setPage",value:function(e){"number"==typeof e&&ht(this.instance,"setPage",[e])}},{key:"setPageWithoutAnimation",value:function(e){"number"==typeof e&&ht(this.instance,"setPageWithoutAnimation",[e])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.onPageScrollStateChanged,a=A(t,y),o=[];return Array.isArray(n)?o=n.map((function(e){var t={};return"string"==typeof e.key&&(t.key="viewPager_".concat(e.key)),i.a.createElement(kn,Object.assign({},t),e)})):o.push(i.a.createElement(kn,null,n)),"function"==typeof r&&(a.onPageScrollStateChanged=this.onPageScrollStateChanged),i.a.createElement("div",Object.assign({nativeName:"ViewPager",ref:function(t){e.instance=t}},a),o)}}]),n}(i.a.Component);function Sn(){var e=V.platform.Localization;return!!e&&1===e.direction}var En=function(e){w(n,e);var t=E(n);function n(e){var r;return T(this,n),(r=t.call(this,e)).instance=null,r._lastNativeText="",r._onChangeText=r._onChangeText.bind(C(r)),r._onKeyboardWillShow=r._onKeyboardWillShow.bind(C(r)),r}return F(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){ht(e.instance,"getValue",(function(e){return t(e.text)}))}))}},{key:"setValue",value:function(e){return ht(this.instance,"setValue",[e]),e}},{key:"focus",value:function(){ht(this.instance,"focusTextInput",[])}},{key:"blur",value:function(){ht(this.instance,"blurTextInput",[])}},{key:"showInputMethod",value:function(){ht(this.instance,"showInputMethod",[])}},{key:"hideInputMethod",value:function(){ht(this.instance,"hideInputMethod",[])}},{key:"clear",value:function(){ht(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"===It.platform.OS&&(n.keyboardHeight/=It.screen.scale),"function"==typeof t&&t(n)}},{key:"render",value:function(){var e=this,t=P({},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]}):t.style&&"object"===R(t.style)?t.style[n]=e.props[n]:t.style={[n]:e.props[n]},t[n]=void 0)})),Sn()&&(t.style?"object"!==R(t.style)||Array.isArray(t.style)||t.style.textAlign||(t.style.textAlign="right"):t.style={textAlign:"right"}),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),xn=It.window.scale,Cn=Math.round(.4*xn)/xn;function Nn(e){return e}0===Cn&&(Cn=1/xn);var In=Object.freeze({__proto__:null,get hairlineWidth(){return Cn},create:Nn}),Pn={baseVertical:{flexGrow:1,flexShrink:1,flexDirection:"column",overflow:"scroll"},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:"row",overflow:"scroll"},contentContainerVertical:{collapsable:!1,flexDirection:"column"},contentContainerHorizontal:{collapsable:!1,flexDirection:"row"}},_n=function(e){w(n,e);var t=E(n);function n(){var e;return T(this,n),(e=t.apply(this,arguments)).instance=null,e}return F(n,[{key:"scrollTo",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e,i=t,a=n;"number"==typeof e||"object"===R(e)&&e&&(r=e.x,i=e.y,a=e.animated),r=r||0,i=i||0,a=!!a,ht(this.instance,"scrollTo",[r,i,a])}},{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;ht(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,a=t.children,o=t.style,l=[n?Pn.contentContainerHorizontal:Pn.contentContainerVertical,r],u=n?Object.assign({},Pn.baseHorizontal,o):Object.assign({},Pn.baseVertical,o);return n&&(u.flexDirection=Sn()?"row-reverse":"row"),i.a.createElement("div",Object.assign({nativeName:"ScrollView",ref:function(t){e.instance=t}},this.props,{style:u}),i.a.createElement(an,{style:l},a))}}]),n}(i.a.Component),An={modal:{position:"absolute"},container:{position:"absolute",left:0,top:0}},Rn=function(e){w(n,e);var t=E(n);function n(e){var r;return T(this,n),(r=t.call(this,e)).eventSubscription=null,r}return F(n,[{key:"componentDidMount",value:function(){var e=this;"ios"===It.platform.OS&&(this.eventSubscription=new ve("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"===It.platform.OS&&this.eventSubscription&&this.eventSubscription.unregister()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.visible,r=e.transparent,a=e.animated,o=this.props.animationType;if(!1===n)return null;var l={backgroundColor:r?"transparent":"white"};return o||(o="none",a&&(o="slide")),i.a.createElement("div",Object.assign({nativeName:"Modal",animationType:o,transparent:r,style:An.modal},this.props),i.a.createElement(an,{style:[An.container,l]},t))}}]),n}(i.a.Component);Rn.defaultProps={visible:!0};var Ln=function(e){w(n,e);var t=E(n);function n(e){var r;T(this,n);var i=(r=t.call(this,e)).props.requestFocus;return r.state={isFocus:!!i},r.handleFocus=r.handleFocus.bind(C(r)),r}return F(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,a=t.nextFocusDownId,o=t.nextFocusUpId,l=t.nextFocusLeftId,u=t.nextFocusRightId,s=t.style,c=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.displayName&&(e=h.type.displayName);var m=a&&pt(a),v=o&&pt(o),y=l&&pt(l),g=u&&pt(u),b=s;if("Text"!==e){var k=h.memoizedProps.style;b=P(P({},b),k)}if(Object.assign(b,p?f:c),"Text"===e)return i.a.createElement(an,{focusable:!0,nextFocusDownId:m,nextFocusUpId:v,nextFocusLeftId:y,nextFocusRightId:g,requestFocus:n,style:b,onClick:d,onFocus:this.handleFocus},h);var w=h.memoizedProps.children;return i.a.cloneElement(h,{nextFocusDownId:a,nextFocusUpId:o,nextFocusLeftId:l,nextFocusRightId:u,requestFocus:n,onClick:d,focusable:!0,children:w,style:b,onFocus:this.handleFocus})}}]),n}(i.a.Component);function On(e){return i.a.createElement("iframe",Object.assign({title:"hippy",nativeName:"WebView"},e))}var zn,Tn=function(){function e(t,n,r){var i=this;if(T(this,e),this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),zn||(zn=new ve("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!t||"string"!=typeof t)throw new TypeError("Invalid WebSocket url");var a=P({},r);if(void 0!==n)if(Array.isArray(n)&&n.length>0)a["Sec-WebSocket-Protocol"]=n.join(",");else{if("string"!=typeof n)throw new TypeError("Invalid WebSocket protocols");a["Sec-WebSocket-Protocol"]=n}var o={headers:a,url:t};this.url=t,this.webSocketCallbackId=zn.addCallback(this.onWebSocketEvent),B.callNativeWithPromise("websocket","connect",o).then((function(e){e&&0===e.code&&"number"==typeof e.id&&(i.webSocketId=e.id)}))}return F(e,[{key:"close",value:function(e,t){1===this.readyState&&(this.readyState=2,B.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(R(e)));B.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"===R(e)&&e.id===this.webSocketId){var t=e.type;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,zn.removeCallback(this.webSocketCallbackId));var n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}}]),e}(),jn=function(e){w(n,e);var t=E(n);function n(){return T(this,n),t.apply(this,arguments)}return F(n,[{key:"render",value:function(){var e=this.props,t=e.collapsable,n=e.style,r=void 0===n?{}:n,a=A(e,g),o=r;return"boolean"==typeof t&&(o.collapsable=t),i.a.createElement("div",Object.assign({nativeName:"View",style:o},a))}}]),n}(i.a.Component);function Fn(e){return i.a.createElement("li",Object.assign({nativeName:"WaterfallItem"},e))}var Mn=function(e){w(n,e);var t=E(n);function n(e){var r;return T(this,n),(r=t.call(this,e)).instance=null,r.pullHeader=null,r.pullFooter=null,r.handleInitialListReady=r.handleInitialListReady.bind(C(r)),r}return F(n,[{key:"componentDidMount",value:function(){this.props.getItemKey}},{key:"scrollToIndex",value:function(e){var t=e.index,n=void 0===t?0:t,r=e.animated,i=void 0===r||r;ht(this.instance,"scrollToIndex",[n,n,i])}},{key:"scrollToContentOffset",value:function(e){var t=e.xOffset,n=void 0===t?0:t,r=e.yOffset,i=void 0===r?0:r,a=e.animated,o=void 0===a||a;ht(this.instance,"scrollToContentOffset",[n,i,o])}},{key:"handleRowProps",value:function(e,t,n){var r=n.getItemKey,i=n.getItemStyle,a=n.onItemLayout,o=n.getItemType;if("function"==typeof r&&(e.key=r(t)),"function"==typeof i&&(e.style=i(t)),"function"==typeof a&&(e.onLayout=function(e){a(e,t)}),"function"==typeof o){var l=o(t);Number.isInteger(l),e.type=l}}},{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:"getPullHeader",value:function(e,t,n){var r=this,a=null;return"function"==typeof e&&(a=i.a.createElement(dn,{key:"PullHeader",ref:function(e){r.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),a}},{key:"getPullFooter",value:function(e,t,n){var r=this,a=null;return"function"==typeof e&&(a=i.a.createElement(pn,{key:"PullFooter",ref:function(e){r.pullFooter=e},onFooterPulling:t,onFooterReleased:n},e())),a}},{key:"handleInitialListReady",value:function(){var e=this.props.onInitialListReady;"function"==typeof e&&e()}},{key:"render",value:function(){var e=this,t=this.props,n=t.style,r=void 0===n?{}:n,a=t.renderBanner,o=t.numberOfColumns,l=void 0===o?2:o,u=t.columnSpacing,s=void 0===u?0:u,c=t.interItemSpacing,f=void 0===c?0:c,d=t.numberOfItems,p=void 0===d?0:d,h=t.preloadItemNumber,m=void 0===h?0:h,v=t.renderItem,y=t.renderPullHeader,g=t.renderPullFooter,k=t.getItemType,w=t.getItemKey,S=t.getItemStyle,E=t.contentInset,x=void 0===E?{top:0,left:0,bottom:0,right:0}:E,C=t.onItemLayout,N=t.onHeaderPulling,I=t.onHeaderReleased,_=t.onFooterPulling,R=t.onFooterReleased,L=t.containPullHeader,O=void 0!==L&&L,z=t.containPullFooter,T=void 0!==z&&z,j=t.containBannerView,F=void 0!==j&&j,M=P(P({},A(t,b)),{},{style:r,numberOfColumns:l,columnSpacing:s,interItemSpacing:f,preloadItemNumber:m,contentInset:x,containPullHeader:O,containPullFooter:T,containBannerView:F}),H=[];if("function"==typeof a){var U=a();U&&(H.push(i.a.createElement(jn,{key:"bannerView"},i.a.cloneElement(U))),M.containBannerView=!0)}if("function"==typeof v){for(var D=this.getPullHeader(y,N,I),W=this.getPullFooter(g,_,R),B=0;B *HippyModuleClasses; NSArray *HippyGetModuleClasses(void) { diff --git a/lerna.json b/lerna.json index 9dca28acf1a..c82225d7aea 100644 --- a/lerna.json +++ b/lerna.json @@ -3,5 +3,5 @@ "packages": [ "packages/*" ], - "version": "2.10.2" + "version": "2.10.3" } diff --git a/packages/hippy-debug-server/CHANGELOG.md b/packages/hippy-debug-server/CHANGELOG.md index 247b284bf46..90d521797f1 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.10.3](https://github.com/Tencent/Hippy/tree/master/packages/hippy-debug-server/compare/2.10.2...2.10.3) (2021-11-16) + +**Note:** Version bump only for package @hippy/debug-server + + + + + ## [2.10.2](https://github.com/Tencent/Hippy/tree/master/packages/hippy-debug-server/compare/2.10.1...2.10.2) (2021-11-02) **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 5d84588021e..67cbf10b731 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.10.2", + "version": "2.10.3", "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 361c466410e..d8fcfce2a07 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.10.3](https://github.com/Tencent/Hippy/tree/master/packages/hippy-react-web/compare/2.10.2...2.10.3) (2021-11-16) + +**Note:** Version bump only for package @hippy/react-web + + + + + ## [2.10.2](https://github.com/Tencent/Hippy/tree/master/packages/hippy-react-web/compare/2.10.1...2.10.2) (2021-11-02) **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 1827b52e60b..4bd1036779d 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.10.2", + "version": "2.10.3", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/packages/hippy-react-web/package.json b/packages/hippy-react-web/package.json index 171c2878cf2..20b418b5fd8 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.10.2", + "version": "2.10.3", "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 1909971b651..fe9ca85de04 100644 --- a/packages/hippy-react/CHANGELOG.md +++ b/packages/hippy-react/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.10.3](https://github.com/Tencent/Hippy/tree/master/packages/hippy-react/compare/2.10.2...2.10.3) (2021-11-16) + + +### Bug Fixes + +* **hippy-react:** fixed insertBefore moveChild condition ([b2d71eb](https://github.com/Tencent/Hippy/tree/master/packages/hippy-react/commit/b2d71ebee6bec5813da930e4f907d445cc1282ee)) + + + + + ## [2.10.2](https://github.com/Tencent/Hippy/tree/master/packages/hippy-react/compare/2.10.1...2.10.2) (2021-11-02) **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 b6470ed395e..58a0d776b53 100644 --- a/packages/hippy-react/package-lock.json +++ b/packages/hippy-react/package-lock.json @@ -1,6 +1,6 @@ { "name": "@hippy/react", - "version": "2.10.2", + "version": "2.10.3", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/packages/hippy-react/package.json b/packages/hippy-react/package.json index 2992c2696e3..1263d1273b1 100644 --- a/packages/hippy-react/package.json +++ b/packages/hippy-react/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/react", - "version": "2.10.2", + "version": "2.10.3", "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 5424901da56..81844f75282 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.10.3](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue-css-loader/compare/2.10.2...2.10.3) (2021-11-16) + +**Note:** Version bump only for package @hippy/vue-css-loader + + + + + ## [2.10.2](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue-css-loader/compare/2.10.1...2.10.2) (2021-11-02) **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 d1c2c4023e5..3550c58e440 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.10.2", + "version": "2.10.3", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/packages/hippy-vue-css-loader/package.json b/packages/hippy-vue-css-loader/package.json index 55c417fa2a7..cd572995265 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.10.2", + "version": "2.10.3", "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 0bd6fa7e26b..506253e975e 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.10.3](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue-native-components/compare/2.10.2...2.10.3) (2021-11-16) + +**Note:** Version bump only for package @hippy/vue-native-components + + + + + ## [2.10.2](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue-native-components/compare/2.10.1...2.10.2) (2021-11-02) **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 76984ebc36c..f0119a8ab2e 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.10.2", + "version": "2.10.3", "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 6247d194d13..9a4984058e8 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.10.3](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue-router/compare/2.10.2...2.10.3) (2021-11-16) + +**Note:** Version bump only for package @hippy/vue-router + + + + + ## [2.10.2](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue-router/compare/2.10.1...2.10.2) (2021-11-02) **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 55863661bac..4b3bc38af78 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.10.2", + "version": "2.10.3", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/packages/hippy-vue-router/package.json b/packages/hippy-vue-router/package.json index f34a48567b8..4b66d2cabca 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.10.2", + "version": "2.10.3", "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 12449f4f708..2a17577038f 100644 --- a/packages/hippy-vue/CHANGELOG.md +++ b/packages/hippy-vue/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.10.3](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue/compare/2.10.2...2.10.3) (2021-11-16) + + +### Bug Fixes + +* **hippy-vue:** remove vue other attributes converted to number ([8ce311a](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue/commit/8ce311a175ea1616168e3621e1c43a3eef9a1b30)) + + + + + ## [2.10.2](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue/compare/2.10.1...2.10.2) (2021-11-02) **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 78de0c38a67..ed66dc6306d 100644 --- a/packages/hippy-vue/package-lock.json +++ b/packages/hippy-vue/package-lock.json @@ -1,6 +1,6 @@ { "name": "@hippy/vue", - "version": "2.10.2", + "version": "2.10.3", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/packages/hippy-vue/package.json b/packages/hippy-vue/package.json index cae9052214a..71e5a5a294e 100644 --- a/packages/hippy-vue/package.json +++ b/packages/hippy-vue/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/vue", - "version": "2.10.2", + "version": "2.10.3", "description": "Vue binding for Hippy native framework", "author": "XQ Kuang ", "license": "Apache-2.0",