From 510608354607bab69bbef9243050b2b4c47d6ede Mon Sep 17 00:00:00 2001 From: zoomchan-cxj Date: Wed, 26 Jan 2022 12:00:39 +0800 Subject: [PATCH] chore(release): release 2.12.2 --- CHANGELOG.md | 17 +++++++++++++++++ android/sdk/gradle.properties | 2 +- examples/android-demo/res/vendor.android.js | 6 +++--- examples/ios-demo/res/vendor.ios.js | 6 +++--- hippy.podspec | 2 +- ios/sdk/base/HippyBridge.mm | 2 +- lerna.json | 2 +- packages/hippy-debug-server/CHANGELOG.md | 8 ++++++++ packages/hippy-debug-server/package-lock.json | 2 +- packages/hippy-debug-server/package.json | 2 +- packages/hippy-react-web/CHANGELOG.md | 8 ++++++++ packages/hippy-react-web/package-lock.json | 2 +- packages/hippy-react-web/package.json | 2 +- packages/hippy-react/CHANGELOG.md | 11 +++++++++++ packages/hippy-react/package-lock.json | 2 +- packages/hippy-react/package.json | 2 +- packages/hippy-vue-css-loader/CHANGELOG.md | 8 ++++++++ packages/hippy-vue-css-loader/package-lock.json | 2 +- packages/hippy-vue-css-loader/package.json | 2 +- packages/hippy-vue-loader/CHANGELOG.md | 8 ++++++++ packages/hippy-vue-loader/package-lock.json | 2 +- packages/hippy-vue-loader/package.json | 2 +- .../hippy-vue-native-components/CHANGELOG.md | 11 +++++++++++ .../hippy-vue-native-components/package.json | 2 +- packages/hippy-vue-router/CHANGELOG.md | 8 ++++++++ packages/hippy-vue-router/package-lock.json | 2 +- packages/hippy-vue-router/package.json | 2 +- packages/hippy-vue/CHANGELOG.md | 8 ++++++++ packages/hippy-vue/package-lock.json | 2 +- packages/hippy-vue/package.json | 2 +- 30 files changed, 112 insertions(+), 25 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 521df5a8acc..15d23955479 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,23 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.12.2](https://github.com/Tencent/Hippy/compare/2.12.1...2.12.2) (2022-01-26) + + +### Bug Fixes + +* **hippy-react:** fixed network-info wrong stored listener ([e3926d9](https://github.com/Tencent/Hippy/commit/e3926d9582e0a15eea15ac721e620aeac20fa9cc)) + + +### Features + +* **hippy-vue:** support value for anim repeatCount ([4c7ede7](https://github.com/Tencent/Hippy/commit/4c7ede7453aa4922d7ec9e4e904dbd5124ef403f)) +* **ios:** 1.default enable turbo, 2.fix package jsi error ([#1475](https://github.com/Tencent/Hippy/issues/1475)) ([47ba8d1](https://github.com/Tencent/Hippy/commit/47ba8d133f7495b6a176f7f0b23fa5dcd01e037d)) + + + + + ## [2.12.1](https://github.com/Tencent/Hippy/compare/2.12.0...2.12.1) (2022-01-18) diff --git a/android/sdk/gradle.properties b/android/sdk/gradle.properties index c1097b9bcaf..c72b7787aa0 100644 --- a/android/sdk/gradle.properties +++ b/android/sdk/gradle.properties @@ -50,7 +50,7 @@ NDK_VERSION=23.1.7779620 # Equals to setting android.defaultConfig.versionCode and versionName property # in the build.gradle file. # -VERSION_NAME=2.12.1 +VERSION_NAME=2.12.2 VERSION_CODE=1 # diff --git a/examples/android-demo/res/vendor.android.js b/examples/android-demo/res/vendor.android.js index 2fd5eaa56e9..7328d32383b 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 rn})),n.d(t,"Animation",(function(){return Ie})),n.d(t,"AnimationSet",(function(){return _e})),n.d(t,"AppRegistry",(function(){return Jt})),n.d(t,"AsyncStorage",(function(){return On})),n.d(t,"BackAndroid",(function(){return Tn})),n.d(t,"Clipboard",(function(){return Fn})),n.d(t,"ConsoleModule",(function(){return Yn})),n.d(t,"Dimensions",(function(){return ir})),n.d(t,"Easing",(function(){return on})),n.d(t,"Focusable",(function(){return In})),n.d(t,"Hippy",(function(){return Jn})),n.d(t,"HippyEventEmitter",(function(){return pe})),n.d(t,"HippyEventListener",(function(){return fe})),n.d(t,"HippyRegister",(function(){return Dn})),n.d(t,"Image",(function(){return nn})),n.d(t,"ImageBackground",(function(){return er})),n.d(t,"ImageLoaderModule",(function(){return Un})),n.d(t,"ListView",(function(){return fn})),n.d(t,"ListViewItem",(function(){return an})),n.d(t,"Modal",(function(){return Nn})),n.d(t,"Navigator",(function(){return hn})),n.d(t,"NetInfo",(function(){return Wn})),n.d(t,"NetworkModule",(function(){return Hn})),n.d(t,"PixelRatio",(function(){return or})),n.d(t,"Platform",(function(){return Xn})),n.d(t,"PullFooter",(function(){return sn})),n.d(t,"PullHeader",(function(){return ln})),n.d(t,"RNfqb",(function(){return Zn})),n.d(t,"RNfqbEventEmitter",(function(){return nr})),n.d(t,"RNfqbEventListener",(function(){return rr})),n.d(t,"RNfqbRegister",(function(){return tr})),n.d(t,"RefreshWrapper",(function(){return dn})),n.d(t,"ScrollView",(function(){return xn})),n.d(t,"StyleSheet",(function(){return Sn})),n.d(t,"Text",(function(){return tn})),n.d(t,"TextInput",(function(){return bn})),n.d(t,"TimerModule",(function(){return Gn})),n.d(t,"UIManagerModule",(function(){return Bn})),n.d(t,"View",(function(){return Zt})),n.d(t,"ViewPager",(function(){return yn})),n.d(t,"WaterfallView",(function(){return zn})),n.d(t,"WebSocket",(function(){return Ln})),n.d(t,"WebView",(function(){return Pn})),n.d(t,"callNative",(function(){return $n})),n.d(t,"callNativeWithCallbackId",(function(){return Qn})),n.d(t,"callNativeWithPromise",(function(){return qn})),n.d(t,"colorParse",(function(){return Vt})),n.d(t,"flushSync",(function(){return Vn})),n.d(t,"removeNativeCallback",(function(){return Kn}));var r=n("./node_modules/@hippy/react-reconciler/index.js"),i=n.n(r),o=n("./node_modules/react/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"],f=["children"],d=["children"],p=["children","style","renderRow","renderPullHeader","renderPullFooter","getRowType","getRowStyle","getRowKey","dataSource","initialListSize","rowShouldSticky","onRowLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","onAppear","onDisappear","onWillAppear","onWillDisappear"],h=["children"],m=["initialRoute"],y=["component"],g=["children","onPageScrollStateChanged"],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 k(e){for(var t=1;t=0||(i[n]=e[n]);return i} /*! - * @hippy/react v2.12.1 - * Build at: Tue Jan 18 2022 12:09:21 GMT+0800 (China Standard Time) + * @hippy/react v2.12.2 + * Build at: Tue Jan 25 2022 11:52:58 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:L,off:R,emit:A}=e.Hippy;var z=Object.freeze({__proto__:null,addEventListener:L,removeEventListener:R,dispatchEvent:A,AsyncStorage:C,Bridge:N,Device:I,HippyRegister:_,UIManager:P});let O,T;const j=new Map;function F(e,t){T=e,O=t}function H(){if(!T)throw new Error("getRootViewId must execute after setRootContainer");return T}function M(e){if(!O)return null;const{current:t}=O,n=[t];for(;n.length;){const t=n.shift();if(!t)break;if(e(t))return t;t.child&&n.push(t.child),t.sibling&&n.push(t.sibling)}return null}function D(e,t){j.set(t,e)}function U(e){j.delete(e)}function W(e){return e&&e.stateNode||null}function B(e){return j.get(e)||null}function V(t){!function(t,n){if(!e.requestIdleCallback)return setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>1/0})},1);e.requestIdleCallback(t,n)}(e=>{(e.timeRemaining()>0||e.didTimeout)&&function e(t){"number"==typeof t?U(t):t&&(U(t.nodeId),t.childNodes&&t.childNodes.forEach(t=>e(t)))}(t)},{timeout:50})}const $={onTouchStart:["onTouchStart","onTouchDown"],onPress:["onPress","onClick"]},q=new RegExp(/^\d+$/);let Q=!1,K=!1;function G(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)))}const Y=new RegExp("^on.+Capture$");const X=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function J(e){return"[object Function]"===Object.prototype.toString.call(e)}function Z(e){Q=e}function ee(){return K}function te(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){0;return`${"hpfile://"}./${e}`}return e}function ne(e){return 5===e}class re{constructor(e){this.handlerContainer={},this.nextIdForHandler=0,this.eventName=e}getEventListeners(){return Object.keys(this.handlerContainer).filter(e=>this.handlerContainer[e]).map(e=>this.handlerContainer[e])}getHandlerSize(){return Object.keys(this.handlerContainer).length}addEventHandler(e,t){if(!e)throw new TypeError("Invalid arguments for addEventHandler");const n=this.nextIdForHandler;this.nextIdForHandler+=1;const r={id:n,eventHandler:e,context:t},i="eventHandler_"+n;return this.handlerContainer[i]=r,n}notifyEvent(e){Object.keys(this.handlerContainer).forEach(t=>{const n=this.handlerContainer[t];n&&n.eventHandler&&(n.context?n.eventHandler.call(n.context,e):n.eventHandler(e))})}removeEventHandler(e){if("number"!=typeof e)throw new TypeError("Invalid arguments for removeEventHandler");const t="eventHandler_"+e;this.handlerContainer[t]&&delete this.handlerContainer[t]}}class ie{constructor(e,t,n){this.type=e,this.bubbles=!0,this.timeStamp=Date.now(),this.currentTarget=t,this.target=n}stopPropagation(){this.bubbles=!1}preventDefault(){}}const oe=new Map;function ae(e,t){let n=e;if(t.memoizedProps&&!t.memoizedProps[e]){const r=Object.keys($);for(let i=0;i0){let e,i=!1;const o=W(n);for(;!i&&void 0!==(e=r.shift());)try{const{eventName:n,currentTarget:r,listener:a,isCapture:l}=e,s=new ie(n,r,o);Object.assign(s,t),l?(a(s),s.bubbles||(i=!0)):(i=a(s),"boolean"!=typeof i&&(i=!ee()),s.bubbles||(i=!0))}catch(e){console.reportUncaughtException(e)}}}(i,e,a):function(e,t,n){let r=!1,i=n,o=e;const a=W(n);do{if(o=ae(o,i),le(o,i))try{const e=W(i),n=new ie(o,e,a);Object.assign(n,t),r=i.memoizedProps[o](n),"boolean"!=typeof r&&(r=!ee()),n.bubbles||(r=!0)}catch(e){console.reportUncaughtException(e)}if(!1===r)for(i=i.return;i&&!ne(i.tag);)i=i.return}while(!r&&i)}(i,e,a)},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=B(t);i&&le(n,i)&&i.memoizedProps[n](r)}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=ue);class ce{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 fe{constructor(e){this.eventName=e,this.listenerIdList=[]}unregister(){const e=ue.getHippyEventHub(this.eventName);if(!e)throw new ReferenceError("No listeners for "+this.eventName);const t=this.listenerIdList.length;for(let n=0;n{t(e)});return ve.set(r,r),new ke(n,t)},removeEventListener:Se,fetch:function(){return N.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)}});function xe(e){return"loop"===e?-1:e}const Ce=new pe;function Ne(e,t){return"color"===e&&["number","string"].indexOf(typeof t)>=0?Vt(t):t}class Ie{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=Ne(e.valueType,n)}const n=Ne(e.valueType,e.toValue);this.mode=e.mode||"timing",this.delay=e.delay||0,this.startValue=t||0,this.toValue=n||0,this.valueType=e.valueType||void 0,this.duration=e.duration||0,this.direction=e.direction||"center",this.timingFunction=e.timingFunction||"linear",this.repeatCount=xe(e.repeatCount||0),this.inputRange=e.inputRange||[],this.outputRange=e.outputRange||[],this.animationId=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=Ce.addListener(e+"Start",e=>{e===this.animationId&&(this.animationStartListener.remove(),"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback())})),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=Ce.addListener(e+"End",e=>{e===this.animationId&&(this.animationEndListener.remove(),"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback())})),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=Ce.addListener(e+"Cancel",e=>{e===this.animationId&&(this.animationCancelListener.remove(),"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback())})),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=Ce.addListener(e+"Repeat",e=>{e===this.animationId&&"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()})),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 Ie)t={animationId:e.startValue.animationId};else{const{startValue:n}=e;t=Ne(this.valueType,n)}this.startValue=t||0}else"repeatCount"===t?this.repeatCount=xe(e.repeatCount||0):Object.defineProperty(this,t,{value:n})}),Lt.callNative("AnimationModule","updateAnimation",this.animationId,Object.assign({delay:this.delay,startValue:this.startValue,toValue:Ne(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 Pe=new pe;class _e{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:xe(e.repeatCount||0),children:this.animationList,virtual:e.virtual}),this.onRNfqbAnimationStart=this.onAnimationStart.bind(this),this.onRNfqbAnimationEnd=this.onAnimationEnd.bind(this),this.onRNfqbAnimationCancel=this.onAnimationCancel.bind(this),this.onRNfqbAnimationRepeat=this.onAnimationRepeat.bind(this),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}removeEventListener(){this.animationStartListener&&this.animationStartListener.remove(),this.animationEndListener&&this.animationEndListener.remove(),this.animationCancelListener&&this.animationCancelListener.remove(),this.animationRepeatListener&&this.animationRepeatListener.remove()}start(){this.removeEventListener();let e="onAnimation";e="onHippyAnimation","function"==typeof this.onAnimationStartCallback&&(this.animationStartListener=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(),this.animationList.forEach(e=>Number.isInteger(e.animationId)&&Lt.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 Le={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode")};let Re=!0,Ae=[];function ze(){Re&&it()}function Oe(e){(function(e){const t=[];for(let n=0;n{switch(t.type){case Le.createNode:t.nodes,et(e,t.nodes);break;case Le.updateNode:t.nodes,"ios"===I.platform.OS?t.nodes.forEach(t=>tt(e,[t])):tt(e,t.nodes);break;case Le.deleteNode:t.nodes,"ios"===I.platform.OS?t.nodes.forEach(t=>nt(e,[t])):nt(e,t.nodes)}})}function Te(e=!1){if(!Re)return;if(Re=!1,0===Ae.length)return void(Re=!0);const t=H();e?(Oe(t),ot(),Ae=[],Re=!0):Promise.resolve().then(()=>{Oe(t),ot(),Ae=[],Re=!0})}function je(e){const t=e.attributes,{children:n}=t;return E(t,l)}function Fe(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:k(k({},je(t)),{},{style:t.style})}}function He(e,t,n,r){const i=[];let o=n;return void 0===o&&t&&t.parentNode&&(o=t.parentNode.childNodes.indexOf(t)),t.traverseChildren(t=>{const n=Fe(e,t);n&&i.push(n),"function"==typeof r&&r(t)},o),i}function Me(e){return!!O&&e instanceof O.containerInfo.constructor}function De(e,t,n=-1){if(!e||!t)return;if(t.meta.skipAddToDom)return;const r=H();if(Me(e)&&!e.isMounted){const e=He(r,t,n,e=>{e.isMounted||(e.isMounted=!0)});ze(),Ae.push({type:Le.createNode,nodes:e})}else if(e.isMounted&&!t.isMounted){const e=He(r,t,n,e=>{e.isMounted||(e.isMounted=!0)});ze(),Ae.push({type:Le.createNode,nodes:e})}}function Ue(e,t,n){if(!t||t.meta.skipAddToDom)return;t.isMounted=!1,t.index=n;const r=H(),i=[{id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r,index:t.index}];ze(),Ae.push({type:Le.deleteNode,nodes:i})}function We(e){if(!e.isMounted)return;const t=Fe(H(),e);ze(),t&&Ae.push({type:Le.updateNode,nodes:[t]})}let Be=0;class Ve{constructor(){this.meta={component:{}},this.mounted=!1,this.index=0,this.childNodes=[],this.parentNode=null,this.nodeId=(Be+=1,Be%10==0&&(Be+=1),Be)}toString(){return this.constructor.name}get isMounted(){return this.mounted}set isMounted(e){this.mounted=e}insertBefore(e,t){if(!e)throw new Error("Can't insert child.");if(e.meta.skipAddToDom)return;if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't insert child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't insert child, because it already has a different parent.");const n=this.childNodes.indexOf(t);return e.parentNode=this,this.childNodes.splice(n,0,e),De(this,e,n)}moveChild(e,t){if(!e)throw new Error("Can't move child.");if(e.meta.skipAddToDom)return;if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't move child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't move child, because it already has a different parent.");const n=this.childNodes.indexOf(e);if(this.childNodes.indexOf(t)===n)return e;this.childNodes.splice(n,1),Ue(0,e,n);const r=this.childNodes.indexOf(t);return this.childNodes.splice(r,0,e),De(this,e,r)}appendChild(e){if(!e)throw new Error("Can't append child.");if(!e.meta.skipAddToDom){if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");e.parentNode=this,this.childNodes.push(e),De(this,e,this.childNodes.length-1)}}removeChild(e){if(!e)throw new Error("Can't remove child.");if(e.meta.skipAddToDom)return;if(!e.parentNode)throw new Error("Can't remove child, because it has no parent.");if(e.parentNode!==this)throw new Error("Can't remove child, because it has a different parent.");const t=this.childNodes.indexOf(e);this.childNodes.splice(t,1),Ue(0,e,t)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(let t=0;t{this.traverseChildren.call(t,e,n)})}}const $e={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},qe={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},Qe="turn",Ke="rad",Ge="deg";function Ye(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=Ge){const n=parseFloat(e);let r=e||"";const[,i]=e.split(".");switch(i&&i.length>2&&(r=n.toFixed(2)),t){case Qe:r=""+(360*n).toFixed(2);break;case Ke:r=""+(180/Math.PI*n).toFixed(2)}return r}(o,a):i&&void 0!==qe[i]&&(r=qe[i]),r}function Xe(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:Vt(n)}:void 0:{color:Vt(n)}}function Je(e){var t;return t=e,Y.test(t)&&(e=e.replace("Capture","")),$[e]?$[e][1]:e}class Ze extends Ve{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,q.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=k(k({},n),e)}):"object"==typeof e&&e&&(n=k(k({},n),e))}),Object.keys(n).forEach(e=>{const t=n[e];if(Object.prototype.hasOwnProperty.call($e,e)&&(e=$e[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 Ie||r instanceof _e?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 Ie||t instanceof _e)this.style[e]={animationId:t.animationId};else if(["caretColor","caret-color"].indexOf(e)>=0)this.attributes["caret-color"]=Vt(t);else if(e.toLowerCase().indexOf("colors")>-1)this.style[e]=$t(t);else if(e.toLowerCase().indexOf("color")>-1)this.style[e]=Vt(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=Ye(e);if(t)n.linearGradient.angle=t;else{n.linearGradient.angle="180";const t=Xe(e);t&&r.push(t)}}else{const t=Xe(e);t&&r.push(t)}}),n.linearGradient.colorStopList=r}else n[e]=te(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 We(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=He(H(),e);ze(),Ae.push({type:Le.updateNode,nodes:t})}(this)),!0)},{match:()=>["value","defaultValue","placeholder"].indexOf(e)>=0,action:()=>(this.attributes[e]=G(t),!1)},{match:()=>["text"].indexOf(e)>=0,action:()=>(this.attributes[e]=t,!1)},{match:()=>["numberOfRows"].indexOf(e)>=0,action:()=>(this.attributes[e]=t,"ios"!==Rt.platform.OS)},{match:()=>["caretColor","caret-color"].indexOf(e)>=0,action:()=>(this.attributes["caret-color"]=Vt(t),!1)},{match:()=>["style"].indexOf(e)>=0,action:()=>"object"!=typeof t||null==t||(this.setStyleAttribute(t),!1)},{match:()=>!0,action:()=>{if("function"==typeof t){const t=Je(e);this.attributes[t]=!0,this.attributes["__bind__"+t]=!0}else{this.attributes[e]=t;const n=Je(e);!0===this.attributes["__bind__"+n]&&"function"!=typeof t&&(this.attributes[n]=!1,this.attributes["__bind__"+n]=!1)}return!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?$t(r):i.toLowerCase().indexOf("color")>-1?Vt(r):function(e){if("number"==typeof e)return e;if("string"==typeof e&&X.test(e))try{return parseFloat(e)}catch(t){return e}return e}(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||We(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)}),We(this),Te(!0)}}}setText(e){if("string"!=typeof e)try{e=e.toString()}catch(e){throw new Error("Only string type is acceptable for setText")}return(e=e.trim())||this.getAttribute("text")?(e=(e=G(e)).replace(/ /g," ").replace(/Â/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}const{createNode:et,updateNode:tt,deleteNode:nt,flushBatch:rt,startBatch:it,endBatch:ot,sendRenderError:at}=P,lt=function(e){return M(t=>t.stateNode&&t.stateNode.nodeId===e)};function st(e){if(e instanceof Ze)return e;const t=e._reactInternalFiber||e._reactInternals;if(t&&t.child){let e=t.child;for(;e&&!(e.stateNode instanceof Ze);)e=e.child;return e&&e.stateNode?e.stateNode:null}return null}function ut(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=st(t);return e?e.nodeId:0}return t.nodeId}function ct(e,t,...n){let{nativeName:r,nodeId:i}=e;if(!i||!r){const t=st(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;J(o)&&(a=o,o=[]);null!==H()&&("ios"===I.platform.OS?(J(a)&&Array.isArray(o)&&o.push(a),N.callNative("UIManagerModule","callUIFunction",[r,i,t,o])):"android"===I.platform.OS&&(J(a)?N.callNative("UIManagerModule","callUIFunction",[i,t,o],a):N.callNative("UIManagerModule","callUIFunction",[i,t,o])))}function ft(e,t,n){const r=ut(t);return new Promise((t,i)=>r?N.callNative("UIManagerModule",e,r,e=>(n&&J(n)&&n(e),"this view is null"===e?i(new Error("Android cannot get the node")):t(e))):(n&&J(n)&&n("this view is null"),i(new Error(e+" cannot get nodeId"))))}var dt=Object.freeze({__proto__:null,createNode:et,updateNode:tt,deleteNode:nt,flushBatch:rt,startBatch:it,endBatch:ot,sendRenderError:at,getNodeById:lt,getNodeIdByRef:ut,getElementFromFiberRef:st,callUIFunction:ct,measureInWindow:function(e,t){return ft("measureInWindow",e,t)},measureInAppWindow:function(e,t){return"android"===I.platform.OS?ft("measureInWindow",e,t):ft("measureInAppWindow",e,t)}});const pt=new pe,ht=new Set,mt={exitApp(){N.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(N.callNative("DeviceEventModule","setListenBackPress",!0),ht.add(e),{remove(){mt.removeListener(e)}}),removeListener(e){ht.delete(e),0===ht.size&&N.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){pt.addListener("hardwareBackPress",()=>{let e=!0;[...ht].reverse().every(t=>"function"!=typeof t||!t()||(e=!1,!1)),e&&mt.exitApp()})}},yt=(mt.initEventListener(),mt);var gt=Array.isArray,bt=Object.keys,vt=Object.prototype.hasOwnProperty,wt=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,i,o,a=gt(t),l=gt(n);if(a&&l){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=l)return!1;var s=t instanceof Date,u=n instanceof Date;if(s!=u)return!1;if(s&&u)return t.getTime()==n.getTime();var c=t instanceof RegExp,f=n instanceof RegExp;if(c!=f)return!1;if(c&&f)return t.toString()==n.toString();var d=bt(t);if((i=d.length)!==bt(n).length)return!1;for(r=i;0!=r--;)if(!vt.call(n,d[r]))return!1;for(r=i;0!=r--;)if(!e(t[o=d[r]],n[o]))return!1;return!0}return t!=t&&n!=n};const kt=setTimeout,St=clearTimeout;var Et=Object.freeze({__proto__:null,commitMutationEffectsBegin:function(){},commitMutationEffectsComplete:function(){Te(!0)},getCurrentEventPriority:function(){return 16},scheduleTimeout:kt,cancelTimeout:St,noTimeout:-1,afterActiveInstanceBlur:function(){},appendChild:function(e,t){e.childNodes.indexOf(t)>=0&&e.removeChild(t),e.appendChild(t)},appendChildToContainer:function(e,t){e.appendChild(t)},appendInitialChild:function(e,t){e.appendChild(t)},beforeActiveInstanceBlur:function(){},commitMount:function(){},commitTextUpdate:function(){},commitUpdate:function(e,t,n,r,i,o){D(o,e.nodeId);const a=Object.keys(t);0!==a.length&&a.forEach(n=>e.setAttribute(n,t[n]))},clearContainer:function(){},createContainerChildSet:function(){},createInstance:function(e,t,n,r,i){const o=n.createElement(e);return Object.keys(t).forEach(e=>{switch(e){case"children":break;case"nativeName":o.meta.component.name=t.nativeName;break;default:o.setAttribute(e,t[e])}}),[5,7].indexOf(i.tag)<0&&(o.meta.skipAddToDom=!0),D(i,o.nodeId),o},createTextInstance:function(e,t,n,r){const i=t.createElement("p");return i.setAttribute("text",G(e)),i.meta={component:{name:"Text"}},D(r,i.nodeId),i},detachDeletedInstance:function(){},finalizeContainerChildren:function(){},finalizeInitialChildren:function(){return!0},getChildHostContext:function(){return{}},getPublicInstance:function(e){return e},getInstanceFromNode:function(){throw new Error("Not yet implemented.")},getFundamentalComponentInstance:function(){throw new Error("Not yet implemented.")},getRootHostContext:function(){return{}},hideInstance:function(e){const t={style:{display:"none"}};Object.keys(t).forEach(n=>e.setAttribute(n,t[n]))},hideTextInstance:function(){throw new Error("Not yet implemented.")},insertBefore:function(e,t,n){e.childNodes.indexOf(t)>=0?e.moveChild(t,n):e.insertBefore(t,n)},isOpaqueHydratingObject:function(){throw new Error("Not yet implemented")},makeClientId:function(){throw new Error("Not yet implemented")},makeClientIdInDEV:function(){throw new Error("Not yet implemented")},makeOpaqueHydratingObject:function(){throw new Error("Not yet implemented.")},mountFundamentalComponent:function(){throw new Error("Not yet implemented.")},prepareForCommit:function(){return null},preparePortalMount:function(){},prepareUpdate:function(e,t,n,r){const i={};let o=!1;Object.keys(r).forEach(e=>{const 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||wt(t,a)?wt(t,a)||(i[e]=a):o=!0}});const a=0===Object.keys(i).length;return a&&o?{}:a?null:i},replaceContainerChildren:function(){},removeChild:function(e,t){e.removeChild(t),V(t)},removeChildFromContainer:function(e,t){e.removeChild(t),V(t)},resetAfterCommit:function(){},resetTextContent:function(){},unmountFundamentalComponent:function(){throw new Error("Not yet implemented.")},updateFundamentalComponent:function(){throw new Error("Not yet implemented.")},unhideTextInstance:function(){throw new Error("Not yet implemented.")},unhideInstance:function(e,t){const n=k(k({},t),{},{style:k(k({},t.style),{},{display:"flex"})});Object.keys(n).forEach(t=>e.setAttribute(t,n[t]))},shouldDeprioritizeSubtree:function(){return!0},shouldUpdateFundamentalComponent:function(){throw new Error("Not yet implemented.")},shouldSetTextContent:function(e,t){if(t&&"Text"===t.nativeName||-1!==["p","span"].indexOf(e)){const{children:e}=t;return"string"==typeof e||"number"==typeof e}return!1}});const xt=i()(k(k({},Et),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:()=>{},cancelDeferredCallback:()=>{}})),{flushSync:Ct}=xt,{addEventListener:Nt,removeEventListener:It,dispatchEvent:Pt,AsyncStorage:_t,Bridge:Lt,Device:Rt,HippyRegister:At}=z;var zt=Object.freeze({__proto__:null,addEventListener:Nt,removeEventListener:It,dispatchEvent:Pt,AsyncStorage:_t,BackAndroid:yt,Bridge:Lt,Clipboard:he,Cookie:me,Device:Rt,HippyRegister:At,ImageLoader:be,NetworkInfo:Ee,UIManager:dt,flushSync:Ct});function Ot(...e){return`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`}const Tt={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},jt="[-+]?\\d*\\.?\\d+",Ft={rgb:new RegExp("rgb"+Ot(jt,jt,jt)),rgba:new RegExp("rgba"+Ot(jt,jt,jt,jt)),hsl:new RegExp("hsl"+Ot(jt,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+Ot(jt,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",jt)),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 Ht(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Mt(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Dt(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 Ut(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Dt(i,r,e+1/3),a=Dt(i,r,e),l=Dt(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function Wt(e){return(parseFloat(e)%360+360)%360/360}function Bt(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Vt(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=Ft.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(Tt,e)?Tt[e]:(t=Ft.rgb.exec(e),Array.isArray(t)?(Ht(t[1])<<24|Ht(t[2])<<16|Ht(t[3])<<8|255)>>>0:(t=Ft.rgba.exec(e),t?(Ht(t[1])<<24|Ht(t[2])<<16|Ht(t[3])<<8|Mt(t[4]))>>>0:(t=Ft.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Ft.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=Ft.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Ft.hsl.exec(e),t?(255|Ut(Wt(t[1]),Bt(t[2]),Bt(t[3])))>>>0:(t=Ft.hsla.exec(e),t?(Ut(Wt(t[1]),Bt(t[2]),Bt(t[3]))|Mt(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 $t(e,t){return Array.isArray(e)?e.map(e=>Vt(e,t)):[0]}class qt extends Ve{constructor(){super(),this.documentElement=new Ze("document")}createElement(e){return new Ze(e)}createElementNS(e,t){return new Ze(`${e}:${t}`)}}qt.createElement=qt.prototype.createElement,qt.createElementNS=qt.prototype.createElementNS;const{createContainer:Qt,updateContainer:Kt,getPublicRootInstance:Gt,injectIntoDevTools:Yt}=xt;class Xt{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 qt;this.rootContainer=Qt(t,0,!1)}static get Native(){return zt}start(){At.regist(this.config.appName,this.render)}render(e){const{appName:t,entryPage:n,silent:r=!1,bubbles:i=!1,callback:o=(()=>{})}=this.config,{__instanceId__:l}=e;this.rootContainer.containerInfo.nodeId=l,r&&Z(r),i&&function(e=!1){K=e}(i),F(l,this.rootContainer);const s=a.a.createElement(n,e);return Kt(s,this.rootContainer,null,o),Gt(this.rootContainer)}}Xt.version="2.12.1";const Jt={registerComponent(e,t){new Xt({appName:e,entryPage:t}).start()}};class Zt extends a.a.Component{render(){const e=this.props,{collapsable:t,style:n={}}=e,r=E(e,s),i=n;return"boolean"==typeof t&&(i.collapsable=t),a.a.createElement("div",Object.assign({nativeName:"View",style:i},r))}}function en(e,t){let{style:n}=e,r=E(e,u);const i=n;if(n&&(Array.isArray(n)?-1===n.filter(e=>"object"==typeof e&&e).findIndex(e=>e.color||e.colors)&&(i[0].color="#000"):"object"==typeof n&&void 0===n.color&&void 0===n.colors&&(i.color="#000")),r.text="","string"==typeof r.children)r.text=G(r.children);else if("number"==typeof r.children)r.text=G(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=G(e),r.children=r.text)}return a.a.createElement("p",Object.assign({ref:t,nativeName:"Text",style:i},r))}en.displayName="Text";const tn=a.a.forwardRef(en);tn.displayName="Text";class nn extends a.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=ye(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=>te(e))),i}handleTintColor(e,t,n){t&&(e.tintColor=Vt(t)),Array.isArray(n)&&(e.tintColors=$t(n))}render(){const e=this.props,{children:t,style:n,imageStyle:r,imageRef:i,source:o,sources:l,src:s,srcs:u,tintColor:f,tintColors:d}=e,p=E(e,c),h=this.getImageUrls({src:s,srcs:u,source:o,sources:l});"ios"===Rt.platform.OS?h.length&&(p.source=h.map(e=>({uri:e}))):"android"===Rt.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=te(p.defaultSource));const m=k({},n);return this.handleTintColor(m,f,d),p.style=m,t?a.a.createElement(Zt,{style:n},a.a.createElement("img",Object.assign({},p,{nativeName:"Image",alt:"",ref:i,style:[{position:"absolute",left:0,right:0,top:0,bottom:0,width:n.width,height:n.height},r]})),t):a.a.createElement("img",Object.assign({},p,{nativeName:"Image",alt:"",ref:i}))}}nn.prefetch=ge;class rn{constructor(){this.Value=rn.Value}static Value(e){return e}static timing(e,t){return new Ie({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}rn.View=Zt,rn.Text=tn,rn.Image=nn;const on={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 an(e){return a.a.createElement("li",Object.assign({nativeName:"ListViewItem"},e))}class ln extends a.a.Component{constructor(){super(...arguments),this.instance=null}expandPullHeader(){ct(this.instance,"expandPullHeader",[])}collapsePullHeader(e){"android"===Rt.platform.OS?ct(this.instance,"collapsePullHeader",[e]):void 0!==e?ct(this.instance,"collapsePullHeaderWithOptions",[e]):ct(this.instance,"collapsePullHeader",[])}render(){const e=this.props,{children:t}=e,n=E(e,f);return a.a.createElement("div",Object.assign({nativeName:"PullHeaderView",ref:e=>{this.instance=e}},n),t)}}class sn extends a.a.Component{constructor(){super(...arguments),this.instance=null}expandPullFooter(){ct(this.instance,"expandPullFooter",[])}collapsePullFooter(){ct(this.instance,"collapsePullFooter",[])}render(){const e=this.props,{children:t}=e,n=E(e,d);return a.a.createElement("div",Object.assign({nativeName:"PullFooterView",ref:e=>{this.instance=e}},n),t)}}sn.defaultProps={sticky:!0};const un={onDisappear:"onDisAppear"},cn={onDisappear:"onDisappear"};class fn extends a.a.Component{constructor(e){super(e),this.instance=null,this.pullHeader=null,this.pullFooter=null,this.handleInitialListReady=this.handleInitialListReady.bind(this),this.state={initialListReady:!1}}componentDidMount(){const{getRowKey:e}=this.props}convertName(e){return"android"===Rt.platform.OS&&un[e]?un[e]:"ios"===Rt.platform.OS&&cn[e]?cn[e]:e}scrollToIndex(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&ct(this.instance,"scrollToIndex",[e,t,n])}scrollToContentOffset(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&ct(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=a.a.createElement(ln,{key:"pull-header",ref:e=>{this.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),r}getPullFooter(e,t,n){let r=null;return"function"==typeof e&&(r=a.a.createElement(sn,{key:"pull-footer",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:i,renderPullFooter:o,getRowType:l,getRowStyle:s,getRowKey:u,dataSource:c,initialListSize:f,rowShouldSticky:d,onRowLayout:h,onHeaderPulling:m,onHeaderReleased:y,onFooterPulling:g,onFooterReleased:b,onAppear:v,onDisappear:w,onWillAppear:S,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(i,m,y),E=this.getPullFooter(o,g,b);!t&&c&&(t=c.length),e||(t=Math.min(t,f||10));for(let e=0;e{"function"==typeof n&&(t[this.convertName(r)]=()=>{n(e)})}),n&&N.push(a.a.createElement(an,Object.assign({},t),n))}p&&N.unshift(p),E&&N.push(E),"function"==typeof d&&Object.assign(C,{rowShouldSticky:!0});const I=[v,w,S,x];C.exposureEventEnabled=I.some(e=>"function"==typeof e),C.numberOfRows=N.length,C.initialListSize=f,C.style=k({overflow:"scroll"},n)}return!C.onLoadMore&&C.onEndReached&&(C.onLoadMore=C.onEndReached),a.a.createElement("ul",Object.assign({ref:e=>{this.instance=e},nativeName:"ListView",initialListReady:this.handleInitialListReady},C),N.length?N:t)}}fn.defaultProps={numberOfRows:0};class dn extends a.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(){ct(this.instance,"startRefresh",null)}refreshCompleted(){ct(this.instance,"refreshComplected",null)}render(){const e=this.props,{children:t}=e,n=E(e,h);return a.a.createElement("div",Object.assign({nativeName:"RefreshWrapper",ref:e=>{this.instance=e}},n),a.a.createElement("div",{nativeName:"RefreshWrapperItemView",style:{left:0,right:0,position:"absolute"}},this.getRefresh()),t)}}class pn{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 Xt({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0}delete e.component}const t=[e];this.stack.push(e),ct(this.instance,"push",t)}pop(e){if(this.stack.size>1){const t=[e];this.stack.pop(),ct(this.instance,"pop",t)}}clear(){this.stack.clear()}render(){const e=this.props,{initialRoute:{component:t}}=e,n=E(e.initialRoute,y),r=E(e,m);return r.initialRoute=n,a.a.createElement("div",Object.assign({nativeName:"Navigator",ref:e=>{this.instance=e}},r))}}function mn(e){return a.a.createElement("div",Object.assign({nativeName:"ViewPagerItem"},e,{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}class yn extends a.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&&ct(this.instance,"setPage",[e])}setPageWithoutAnimation(e){"number"==typeof e&&ct(this.instance,"setPageWithoutAnimation",[e])}render(){const e=this.props,{children:t,onPageScrollStateChanged:n}=e,r=E(e,g);let i=[];return Array.isArray(t)?i=t.map(e=>{const t={};return"string"==typeof e.key&&(t.key="viewPager_"+e.key),a.a.createElement(mn,Object.assign({},t),e)}):i.push(a.a.createElement(mn,null,t)),"function"==typeof n&&(r.onPageScrollStateChanged=this.onPageScrollStateChanged),a.a.createElement("div",Object.assign({nativeName:"ViewPager",ref:e=>{this.instance=e}},r),i)}}function gn(){const e=I.platform.Localization;return!!e&&1===e.direction}class bn extends a.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=>{ct(this.instance,"getValue",t=>e(t.text))})}setValue(e){return ct(this.instance,"setValue",[e]),e}focus(){ct(this.instance,"focusTextInput",[])}blur(){ct(this.instance,"blurTextInput",[])}showInputMethod(){ct(this.instance,"showInputMethod",[])}hideInputMethod(){ct(this.instance,"hideInputMethod",[])}clear(){ct(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"===Rt.platform.OS&&(n.keyboardHeight/=Rt.screen.scale),"function"==typeof t&&t(n)}render(){const e=k({},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)}),gn()&&(e.style?"object"!=typeof e.style||Array.isArray(e.style)||e.style.textAlign||(e.style.textAlign="right"):e.style={textAlign:"right"}),a.a.createElement("div",Object.assign({nativeName:"TextInput"},e,{ref:e=>{this.instance=e},onChangeText:this.onChangeText,onKeyboardWillShow:this.onKeyboardWillShow}))}}const vn=Rt.window.scale;let wn=Math.round(.4*vn)/vn;function kn(e){return e}0===wn&&(wn=1/vn);var Sn=Object.freeze({__proto__:null,get hairlineWidth(){return wn},create:kn});const En={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 xn extends a.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,ct(this.instance,"scrollTo",[r,i,o])}scrollToWithDuration(e=0,t=0,n=1e3){ct(this.instance,"scrollToWithOptions",[{x:e,y:t,duration:n}])}render(){const{horizontal:e,contentContainerStyle:t,children:n,style:r}=this.props,i=[e?En.contentContainerHorizontal:En.contentContainerVertical,t],o=e?Object.assign({},En.baseHorizontal,r):Object.assign({},En.baseVertical,r);return e&&(o.flexDirection=gn()?"row-reverse":"row"),a.a.createElement("div",Object.assign({nativeName:"ScrollView",ref:e=>{this.instance=e}},this.props,{style:o}),a.a.createElement(Zt,{style:i},n))}}const Cn={modal:{position:"absolute"},container:{position:"absolute",left:0,top:0}};class Nn extends a.a.Component{constructor(e){super(e),this.eventSubscription=null}componentDidMount(){"ios"===Rt.platform.OS&&(this.eventSubscription=new fe("modalDismissed"),this.eventSubscription.addCallback(e=>{const{primaryKey:t,onDismiss:n}=this.props;e.primaryKey===t&&"function"==typeof n&&n()}))}componentWillUnmount(){"ios"===Rt.platform.OS&&this.eventSubscription&&this.eventSubscription.unregister()}render(){const{children:e,visible:t,transparent:n,animated:r}=this.props;let{animationType:i}=this.props;if(!1===t)return null;const o={backgroundColor:n?"transparent":"white"};return i||(i="none",r&&(i="slide")),a.a.createElement("div",Object.assign({nativeName:"Modal",animationType:i,transparent:n,style:Cn.modal},this.props),a.a.createElement(Zt,{style:[Cn.container,o]},e))}}Nn.defaultProps={visible:!0};class In extends a.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:i,nextFocusRightId:o,style:l,noFocusStyle:s,focusStyle:u,onClick:c}=this.props,{isFocus:f}=this.state,d=a.a.Children.only(t);let p;d&&d.child&&d.child.memoizedProps&&d.child.memoizedProps.nativeName?p=d.child.memoizedProps.nativeName:d&&d.type&&d.type.displayName&&(p=d.type.displayName);const h=n&&ut(n),m=r&&ut(r),y=i&&ut(i),g=o&&ut(o);let b=l;if("Text"!==p){const e=d.memoizedProps.style;b=k(k({},b),e)}if(Object.assign(b,f?u:s),"Text"===p)return a.a.createElement(Zt,{focusable:!0,nextFocusDownId:h,nextFocusUpId:m,nextFocusLeftId:y,nextFocusRightId:g,requestFocus:e,style:b,onClick:c,onFocus:this.handleFocus},d);const{children:v}=d.memoizedProps;return a.a.cloneElement(d,{nextFocusDownId:n,nextFocusUpId:r,nextFocusLeftId:i,nextFocusRightId:o,requestFocus:e,onClick:c,focusable:!0,children:v,style:b,onFocus:this.handleFocus})}}function Pn(e){return a.a.createElement("iframe",Object.assign({title:"hippy",nativeName:"WebView"},e))}let _n;class Ln{constructor(e,t,n){if(this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),_n||(_n=new fe("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!e||"string"!=typeof e)throw new TypeError("Invalid WebSocket url");const r=k({},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=_n.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,_n.removeCallback(this.webSocketCallbackId));const n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}class Rn extends a.a.Component{render(){const e=this.props,{collapsable:t,style:n={}}=e,r=E(e,b),i=n;return"boolean"==typeof t&&(i.collapsable=t),a.a.createElement("div",Object.assign({nativeName:"View",style:i},r))}}function An(e){return a.a.createElement("li",Object.assign({nativeName:"WaterfallItem"},e))}class zn extends a.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}){ct(this.instance,"scrollToIndex",[e,e,t])}scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){ct(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.call(this,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=a.a.createElement(ln,{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=a.a.createElement(sn,{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:i=0,interItemSpacing:o=0,numberOfItems:l=0,preloadItemNumber:s=0,renderItem:u,renderPullHeader:c,renderPullFooter:f,getItemType:d,getItemKey:p,getItemStyle:h,contentInset:m={top:0,left:0,bottom:0,right:0},onItemLayout:y,onHeaderPulling:g,onHeaderReleased:b,onFooterPulling:w,onFooterReleased:S,containPullHeader:x=!1,containPullFooter:C=!1,containBannerView:N=!1}=e,I=k(k({},E(e,v)),{},{style:t,numberOfColumns:r,columnSpacing:i,interItemSpacing:o,preloadItemNumber:s,contentInset:m,containPullHeader:x,containPullFooter:C,containBannerView:N}),P=[];if("function"==typeof n){const e=n();e&&(P.push(a.a.createElement(Rn,{key:"bannerView"},a.a.cloneElement(e))),I.containBannerView=!0)}if("function"==typeof u){const e=this.getPullHeader(c,g,b),n=this.getPullFooter(f,w,S);for(let e=0;ethis.instance=e,initialListReady:this.handleInitialListReady.bind(this)},I),P)}}e.WebSocket=Ln;const{AsyncStorage:On,BackAndroid:Tn,Bridge:jn,Clipboard:Fn,Cookie:Hn,Device:Mn,HippyRegister:Dn,ImageLoader:Un,NetworkInfo:Wn,UIManager:Bn,flushSync:Vn}=zt,{callNative:$n,callNativeWithPromise:qn,callNativeWithCallbackId:Qn,removeNativeCallback:Kn}=jn,Gn=null,Yn=e.ConsoleModule||e.console,Xn=Mn.platform,Jn=Xt,Zn=Xt,er=nn,tr=Dn,nr=pe,rr=fe,ir={get:e=>Mn[e]},or={get:()=>Mn.screen.scale};t.default=Xt}.call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/@hippy/react-reconciler/cjs/react-reconciler.production.min.js":function(e,t,n){(function(e){ + */(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}e.__GLOBAL__||(e.__GLOBAL__={});const{__GLOBAL__:x}=e;x.nodeId=0,x.animationId=0,x.renderCount=0;const{asyncStorage:C,bridge:N,device:I,document:P,register:_,on:L,off:R,emit:A}=e.Hippy;var z=Object.freeze({__proto__:null,addEventListener:L,removeEventListener:R,dispatchEvent:A,AsyncStorage:C,Bridge:N,Device:I,HippyRegister:_,UIManager:P});let O,T;const j=new Map;function F(e,t){T=e,O=t}function H(){if(!T)throw new Error("getRootViewId must execute after setRootContainer");return T}function M(e){if(!O)return null;const{current:t}=O,n=[t];for(;n.length;){const t=n.shift();if(!t)break;if(e(t))return t;t.child&&n.push(t.child),t.sibling&&n.push(t.sibling)}return null}function D(e,t){j.set(t,e)}function U(e){j.delete(e)}function W(e){return e&&e.stateNode||null}function B(e){return j.get(e)||null}function V(t){!function(t,n){if(!e.requestIdleCallback)return setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>1/0})},1);e.requestIdleCallback(t,n)}(e=>{(e.timeRemaining()>0||e.didTimeout)&&function e(t){"number"==typeof t?U(t):t&&(U(t.nodeId),t.childNodes&&t.childNodes.forEach(t=>e(t)))}(t)},{timeout:50})}const $={onTouchStart:["onTouchStart","onTouchDown"],onPress:["onPress","onClick"]},q=new RegExp(/^\d+$/);let Q=!1,K=!1;function G(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)))}const Y=new RegExp("^on.+Capture$");const X=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function J(e){return"[object Function]"===Object.prototype.toString.call(e)}function Z(e){Q=e}function ee(){return K}function te(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){0;return`${"hpfile://"}./${e}`}return e}function ne(e){return 5===e}class re{constructor(e){this.handlerContainer={},this.nextIdForHandler=0,this.eventName=e}getEventListeners(){return Object.keys(this.handlerContainer).filter(e=>this.handlerContainer[e]).map(e=>this.handlerContainer[e])}getHandlerSize(){return Object.keys(this.handlerContainer).length}addEventHandler(e,t){if(!e)throw new TypeError("Invalid arguments for addEventHandler");const n=this.nextIdForHandler;this.nextIdForHandler+=1;const r={id:n,eventHandler:e,context:t},i="eventHandler_"+n;return this.handlerContainer[i]=r,n}notifyEvent(e){Object.keys(this.handlerContainer).forEach(t=>{const n=this.handlerContainer[t];n&&n.eventHandler&&(n.context?n.eventHandler.call(n.context,e):n.eventHandler(e))})}removeEventHandler(e){if("number"!=typeof e)throw new TypeError("Invalid arguments for removeEventHandler");const t="eventHandler_"+e;this.handlerContainer[t]&&delete this.handlerContainer[t]}}class ie{constructor(e,t,n){this.type=e,this.bubbles=!0,this.timeStamp=Date.now(),this.currentTarget=t,this.target=n}stopPropagation(){this.bubbles=!1}preventDefault(){}}const oe=new Map;function ae(e,t){let n=e;if(t.memoizedProps&&!t.memoizedProps[e]){const r=Object.keys($);for(let i=0;i0){let e,i=!1;const o=W(n);for(;!i&&void 0!==(e=r.shift());)try{const{eventName:n,currentTarget:r,listener:a,isCapture:l}=e,s=new ie(n,r,o);Object.assign(s,t),l?(a(s),s.bubbles||(i=!0)):(i=a(s),"boolean"!=typeof i&&(i=!ee()),s.bubbles||(i=!0))}catch(e){console.reportUncaughtException(e)}}}(i,e,a):function(e,t,n){let r=!1,i=n,o=e;const a=W(n);do{if(o=ae(o,i),le(o,i))try{const e=W(i),n=new ie(o,e,a);Object.assign(n,t),r=i.memoizedProps[o](n),"boolean"!=typeof r&&(r=!ee()),n.bubbles||(r=!0)}catch(e){console.reportUncaughtException(e)}if(!1===r)for(i=i.return;i&&!ne(i.tag);)i=i.return}while(!r&&i)}(i,e,a)},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=B(t);i&&le(n,i)&&i.memoizedProps[n](r)}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=ue);class ce{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 fe{constructor(e){this.eventName=e,this.listenerIdList=[]}unregister(){const e=ue.getHippyEventHub(this.eventName);if(!e)throw new ReferenceError("No listeners for "+this.eventName);const t=this.listenerIdList.length;for(let n=0;n{t(e)});return ve.set(t,r),new ke(n,t)},removeEventListener:Se,fetch:function(){return N.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)}});function xe(e){return"loop"===e?-1:e}const Ce=new pe;function Ne(e,t){return"color"===e&&["number","string"].indexOf(typeof t)>=0?Vt(t):t}class Ie{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=Ne(e.valueType,n)}const n=Ne(e.valueType,e.toValue);this.mode=e.mode||"timing",this.delay=e.delay||0,this.startValue=t||0,this.toValue=n||0,this.valueType=e.valueType||void 0,this.duration=e.duration||0,this.direction=e.direction||"center",this.timingFunction=e.timingFunction||"linear",this.repeatCount=xe(e.repeatCount||0),this.inputRange=e.inputRange||[],this.outputRange=e.outputRange||[],this.animationId=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=Ce.addListener(e+"Start",e=>{e===this.animationId&&(this.animationStartListener.remove(),"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback())})),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=Ce.addListener(e+"End",e=>{e===this.animationId&&(this.animationEndListener.remove(),"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback())})),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=Ce.addListener(e+"Cancel",e=>{e===this.animationId&&(this.animationCancelListener.remove(),"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback())})),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=Ce.addListener(e+"Repeat",e=>{e===this.animationId&&"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()})),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 Ie)t={animationId:e.startValue.animationId};else{const{startValue:n}=e;t=Ne(this.valueType,n)}this.startValue=t||0}else"repeatCount"===t?this.repeatCount=xe(e.repeatCount||0):Object.defineProperty(this,t,{value:n})}),Lt.callNative("AnimationModule","updateAnimation",this.animationId,Object.assign({delay:this.delay,startValue:this.startValue,toValue:Ne(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 Pe=new pe;class _e{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:xe(e.repeatCount||0),children:this.animationList,virtual:e.virtual}),this.onRNfqbAnimationStart=this.onAnimationStart.bind(this),this.onRNfqbAnimationEnd=this.onAnimationEnd.bind(this),this.onRNfqbAnimationCancel=this.onAnimationCancel.bind(this),this.onRNfqbAnimationRepeat=this.onAnimationRepeat.bind(this),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}removeEventListener(){this.animationStartListener&&this.animationStartListener.remove(),this.animationEndListener&&this.animationEndListener.remove(),this.animationCancelListener&&this.animationCancelListener.remove(),this.animationRepeatListener&&this.animationRepeatListener.remove()}start(){this.removeEventListener();let e="onAnimation";e="onHippyAnimation","function"==typeof this.onAnimationStartCallback&&(this.animationStartListener=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(),this.animationList.forEach(e=>Number.isInteger(e.animationId)&&Lt.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 Le={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode")};let Re=!0,Ae=[];function ze(){Re&&it()}function Oe(e){(function(e){const t=[];for(let n=0;n{switch(t.type){case Le.createNode:t.nodes,et(e,t.nodes);break;case Le.updateNode:t.nodes,"ios"===I.platform.OS?t.nodes.forEach(t=>tt(e,[t])):tt(e,t.nodes);break;case Le.deleteNode:t.nodes,"ios"===I.platform.OS?t.nodes.forEach(t=>nt(e,[t])):nt(e,t.nodes)}})}function Te(e=!1){if(!Re)return;if(Re=!1,0===Ae.length)return void(Re=!0);const t=H();e?(Oe(t),ot(),Ae=[],Re=!0):Promise.resolve().then(()=>{Oe(t),ot(),Ae=[],Re=!0})}function je(e){const t=e.attributes,{children:n}=t;return E(t,l)}function Fe(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:k(k({},je(t)),{},{style:t.style})}}function He(e,t,n,r){const i=[];let o=n;return void 0===o&&t&&t.parentNode&&(o=t.parentNode.childNodes.indexOf(t)),t.traverseChildren(t=>{const n=Fe(e,t);n&&i.push(n),"function"==typeof r&&r(t)},o),i}function Me(e){return!!O&&e instanceof O.containerInfo.constructor}function De(e,t,n=-1){if(!e||!t)return;if(t.meta.skipAddToDom)return;const r=H();if(Me(e)&&!e.isMounted){const e=He(r,t,n,e=>{e.isMounted||(e.isMounted=!0)});ze(),Ae.push({type:Le.createNode,nodes:e})}else if(e.isMounted&&!t.isMounted){const e=He(r,t,n,e=>{e.isMounted||(e.isMounted=!0)});ze(),Ae.push({type:Le.createNode,nodes:e})}}function Ue(e,t,n){if(!t||t.meta.skipAddToDom)return;t.isMounted=!1,t.index=n;const r=H(),i=[{id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r,index:t.index}];ze(),Ae.push({type:Le.deleteNode,nodes:i})}function We(e){if(!e.isMounted)return;const t=Fe(H(),e);ze(),t&&Ae.push({type:Le.updateNode,nodes:[t]})}let Be=0;class Ve{constructor(){this.meta={component:{}},this.mounted=!1,this.index=0,this.childNodes=[],this.parentNode=null,this.nodeId=(Be+=1,Be%10==0&&(Be+=1),Be)}toString(){return this.constructor.name}get isMounted(){return this.mounted}set isMounted(e){this.mounted=e}insertBefore(e,t){if(!e)throw new Error("Can't insert child.");if(e.meta.skipAddToDom)return;if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't insert child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't insert child, because it already has a different parent.");const n=this.childNodes.indexOf(t);return e.parentNode=this,this.childNodes.splice(n,0,e),De(this,e,n)}moveChild(e,t){if(!e)throw new Error("Can't move child.");if(e.meta.skipAddToDom)return;if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't move child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't move child, because it already has a different parent.");const n=this.childNodes.indexOf(e);if(this.childNodes.indexOf(t)===n)return e;this.childNodes.splice(n,1),Ue(0,e,n);const r=this.childNodes.indexOf(t);return this.childNodes.splice(r,0,e),De(this,e,r)}appendChild(e){if(!e)throw new Error("Can't append child.");if(!e.meta.skipAddToDom){if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");e.parentNode=this,this.childNodes.push(e),De(this,e,this.childNodes.length-1)}}removeChild(e){if(!e)throw new Error("Can't remove child.");if(e.meta.skipAddToDom)return;if(!e.parentNode)throw new Error("Can't remove child, because it has no parent.");if(e.parentNode!==this)throw new Error("Can't remove child, because it has a different parent.");const t=this.childNodes.indexOf(e);this.childNodes.splice(t,1),Ue(0,e,t)}findChild(e){if(e(this))return this;if(this.childNodes.length)for(let t=0;t{this.traverseChildren.call(t,e,n)})}}const $e={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},qe={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},Qe="turn",Ke="rad",Ge="deg";function Ye(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=Ge){const n=parseFloat(e);let r=e||"";const[,i]=e.split(".");switch(i&&i.length>2&&(r=n.toFixed(2)),t){case Qe:r=""+(360*n).toFixed(2);break;case Ke:r=""+(180/Math.PI*n).toFixed(2)}return r}(o,a):i&&void 0!==qe[i]&&(r=qe[i]),r}function Xe(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:Vt(n)}:void 0:{color:Vt(n)}}function Je(e){var t;return t=e,Y.test(t)&&(e=e.replace("Capture","")),$[e]?$[e][1]:e}class Ze extends Ve{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,q.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=k(k({},n),e)}):"object"==typeof e&&e&&(n=k(k({},n),e))}),Object.keys(n).forEach(e=>{const t=n[e];if(Object.prototype.hasOwnProperty.call($e,e)&&(e=$e[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 Ie||r instanceof _e?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 Ie||t instanceof _e)this.style[e]={animationId:t.animationId};else if(["caretColor","caret-color"].indexOf(e)>=0)this.attributes["caret-color"]=Vt(t);else if(e.toLowerCase().indexOf("colors")>-1)this.style[e]=$t(t);else if(e.toLowerCase().indexOf("color")>-1)this.style[e]=Vt(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=Ye(e);if(t)n.linearGradient.angle=t;else{n.linearGradient.angle="180";const t=Xe(e);t&&r.push(t)}}else{const t=Xe(e);t&&r.push(t)}}),n.linearGradient.colorStopList=r}else n[e]=te(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 We(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=He(H(),e);ze(),Ae.push({type:Le.updateNode,nodes:t})}(this)),!0)},{match:()=>["value","defaultValue","placeholder"].indexOf(e)>=0,action:()=>(this.attributes[e]=G(t),!1)},{match:()=>["text"].indexOf(e)>=0,action:()=>(this.attributes[e]=t,!1)},{match:()=>["numberOfRows"].indexOf(e)>=0,action:()=>(this.attributes[e]=t,"ios"!==Rt.platform.OS)},{match:()=>["caretColor","caret-color"].indexOf(e)>=0,action:()=>(this.attributes["caret-color"]=Vt(t),!1)},{match:()=>["style"].indexOf(e)>=0,action:()=>"object"!=typeof t||null==t||(this.setStyleAttribute(t),!1)},{match:()=>!0,action:()=>{if("function"==typeof t){const t=Je(e);this.attributes[t]=!0,this.attributes["__bind__"+t]=!0}else{this.attributes[e]=t;const n=Je(e);!0===this.attributes["__bind__"+n]&&"function"!=typeof t&&(this.attributes[n]=!1,this.attributes["__bind__"+n]=!1)}return!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?$t(r):i.toLowerCase().indexOf("color")>-1?Vt(r):function(e){if("number"==typeof e)return e;if("string"==typeof e&&X.test(e))try{return parseFloat(e)}catch(t){return e}return e}(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||We(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)}),We(this),Te(!0)}}}setText(e){if("string"!=typeof e)try{e=e.toString()}catch(e){throw new Error("Only string type is acceptable for setText")}return(e=e.trim())||this.getAttribute("text")?(e=(e=G(e)).replace(/ /g," ").replace(/Â/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}const{createNode:et,updateNode:tt,deleteNode:nt,flushBatch:rt,startBatch:it,endBatch:ot,sendRenderError:at}=P,lt=function(e){return M(t=>t.stateNode&&t.stateNode.nodeId===e)};function st(e){if(e instanceof Ze)return e;const t=e._reactInternalFiber||e._reactInternals;if(t&&t.child){let e=t.child;for(;e&&!(e.stateNode instanceof Ze);)e=e.child;return e&&e.stateNode?e.stateNode:null}return null}function ut(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=st(t);return e?e.nodeId:0}return t.nodeId}function ct(e,t,...n){let{nativeName:r,nodeId:i}=e;if(!i||!r){const t=st(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;J(o)&&(a=o,o=[]);null!==H()&&("ios"===I.platform.OS?(J(a)&&Array.isArray(o)&&o.push(a),N.callNative("UIManagerModule","callUIFunction",[r,i,t,o])):"android"===I.platform.OS&&(J(a)?N.callNative("UIManagerModule","callUIFunction",[i,t,o],a):N.callNative("UIManagerModule","callUIFunction",[i,t,o])))}function ft(e,t,n){const r=ut(t);return new Promise((t,i)=>r?N.callNative("UIManagerModule",e,r,e=>(n&&J(n)&&n(e),"this view is null"===e?i(new Error("Android cannot get the node")):t(e))):(n&&J(n)&&n("this view is null"),i(new Error(e+" cannot get nodeId"))))}var dt=Object.freeze({__proto__:null,createNode:et,updateNode:tt,deleteNode:nt,flushBatch:rt,startBatch:it,endBatch:ot,sendRenderError:at,getNodeById:lt,getNodeIdByRef:ut,getElementFromFiberRef:st,callUIFunction:ct,measureInWindow:function(e,t){return ft("measureInWindow",e,t)},measureInAppWindow:function(e,t){return"android"===I.platform.OS?ft("measureInWindow",e,t):ft("measureInAppWindow",e,t)}});const pt=new pe,ht=new Set,mt={exitApp(){N.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(N.callNative("DeviceEventModule","setListenBackPress",!0),ht.add(e),{remove(){mt.removeListener(e)}}),removeListener(e){ht.delete(e),0===ht.size&&N.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){pt.addListener("hardwareBackPress",()=>{let e=!0;[...ht].reverse().every(t=>"function"!=typeof t||!t()||(e=!1,!1)),e&&mt.exitApp()})}},yt=(mt.initEventListener(),mt);var gt=Array.isArray,bt=Object.keys,vt=Object.prototype.hasOwnProperty,wt=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,i,o,a=gt(t),l=gt(n);if(a&&l){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=l)return!1;var s=t instanceof Date,u=n instanceof Date;if(s!=u)return!1;if(s&&u)return t.getTime()==n.getTime();var c=t instanceof RegExp,f=n instanceof RegExp;if(c!=f)return!1;if(c&&f)return t.toString()==n.toString();var d=bt(t);if((i=d.length)!==bt(n).length)return!1;for(r=i;0!=r--;)if(!vt.call(n,d[r]))return!1;for(r=i;0!=r--;)if(!e(t[o=d[r]],n[o]))return!1;return!0}return t!=t&&n!=n};const kt=setTimeout,St=clearTimeout;var Et=Object.freeze({__proto__:null,commitMutationEffectsBegin:function(){},commitMutationEffectsComplete:function(){Te(!0)},getCurrentEventPriority:function(){return 16},scheduleTimeout:kt,cancelTimeout:St,noTimeout:-1,afterActiveInstanceBlur:function(){},appendChild:function(e,t){e.childNodes.indexOf(t)>=0&&e.removeChild(t),e.appendChild(t)},appendChildToContainer:function(e,t){e.appendChild(t)},appendInitialChild:function(e,t){e.appendChild(t)},beforeActiveInstanceBlur:function(){},commitMount:function(){},commitTextUpdate:function(){},commitUpdate:function(e,t,n,r,i,o){D(o,e.nodeId);const a=Object.keys(t);0!==a.length&&a.forEach(n=>e.setAttribute(n,t[n]))},clearContainer:function(){},createContainerChildSet:function(){},createInstance:function(e,t,n,r,i){const o=n.createElement(e);return Object.keys(t).forEach(e=>{switch(e){case"children":break;case"nativeName":o.meta.component.name=t.nativeName;break;default:o.setAttribute(e,t[e])}}),[5,7].indexOf(i.tag)<0&&(o.meta.skipAddToDom=!0),D(i,o.nodeId),o},createTextInstance:function(e,t,n,r){const i=t.createElement("p");return i.setAttribute("text",G(e)),i.meta={component:{name:"Text"}},D(r,i.nodeId),i},detachDeletedInstance:function(){},finalizeContainerChildren:function(){},finalizeInitialChildren:function(){return!0},getChildHostContext:function(){return{}},getPublicInstance:function(e){return e},getInstanceFromNode:function(){throw new Error("Not yet implemented.")},getFundamentalComponentInstance:function(){throw new Error("Not yet implemented.")},getRootHostContext:function(){return{}},hideInstance:function(e){const t={style:{display:"none"}};Object.keys(t).forEach(n=>e.setAttribute(n,t[n]))},hideTextInstance:function(){throw new Error("Not yet implemented.")},insertBefore:function(e,t,n){e.childNodes.indexOf(t)>=0?e.moveChild(t,n):e.insertBefore(t,n)},isOpaqueHydratingObject:function(){throw new Error("Not yet implemented")},makeClientId:function(){throw new Error("Not yet implemented")},makeClientIdInDEV:function(){throw new Error("Not yet implemented")},makeOpaqueHydratingObject:function(){throw new Error("Not yet implemented.")},mountFundamentalComponent:function(){throw new Error("Not yet implemented.")},prepareForCommit:function(){return null},preparePortalMount:function(){},prepareUpdate:function(e,t,n,r){const i={};let o=!1;Object.keys(r).forEach(e=>{const 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||wt(t,a)?wt(t,a)||(i[e]=a):o=!0}});const a=0===Object.keys(i).length;return a&&o?{}:a?null:i},replaceContainerChildren:function(){},removeChild:function(e,t){e.removeChild(t),V(t)},removeChildFromContainer:function(e,t){e.removeChild(t),V(t)},resetAfterCommit:function(){},resetTextContent:function(){},unmountFundamentalComponent:function(){throw new Error("Not yet implemented.")},updateFundamentalComponent:function(){throw new Error("Not yet implemented.")},unhideTextInstance:function(){throw new Error("Not yet implemented.")},unhideInstance:function(e,t){const n=k(k({},t),{},{style:k(k({},t.style),{},{display:"flex"})});Object.keys(n).forEach(t=>e.setAttribute(t,n[t]))},shouldDeprioritizeSubtree:function(){return!0},shouldUpdateFundamentalComponent:function(){throw new Error("Not yet implemented.")},shouldSetTextContent:function(e,t){if(t&&"Text"===t.nativeName||-1!==["p","span"].indexOf(e)){const{children:e}=t;return"string"==typeof e||"number"==typeof e}return!1}});const xt=i()(k(k({},Et),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:()=>{},cancelDeferredCallback:()=>{}})),{flushSync:Ct}=xt,{addEventListener:Nt,removeEventListener:It,dispatchEvent:Pt,AsyncStorage:_t,Bridge:Lt,Device:Rt,HippyRegister:At}=z;var zt=Object.freeze({__proto__:null,addEventListener:Nt,removeEventListener:It,dispatchEvent:Pt,AsyncStorage:_t,BackAndroid:yt,Bridge:Lt,Clipboard:he,Cookie:me,Device:Rt,HippyRegister:At,ImageLoader:be,NetworkInfo:Ee,UIManager:dt,flushSync:Ct});function Ot(...e){return`\\(\\s*(${e.join(")\\s*,\\s*(")})\\s*\\)`}const Tt={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},jt="[-+]?\\d*\\.?\\d+",Ft={rgb:new RegExp("rgb"+Ot(jt,jt,jt)),rgba:new RegExp("rgba"+Ot(jt,jt,jt,jt)),hsl:new RegExp("hsl"+Ot(jt,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla:new RegExp("hsla"+Ot(jt,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",jt)),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 Ht(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Mt(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Dt(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 Ut(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Dt(i,r,e+1/3),a=Dt(i,r,e),l=Dt(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function Wt(e){return(parseFloat(e)%360+360)%360/360}function Bt(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Vt(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=Ft.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(Tt,e)?Tt[e]:(t=Ft.rgb.exec(e),Array.isArray(t)?(Ht(t[1])<<24|Ht(t[2])<<16|Ht(t[3])<<8|255)>>>0:(t=Ft.rgba.exec(e),t?(Ht(t[1])<<24|Ht(t[2])<<16|Ht(t[3])<<8|Mt(t[4]))>>>0:(t=Ft.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Ft.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=Ft.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Ft.hsl.exec(e),t?(255|Ut(Wt(t[1]),Bt(t[2]),Bt(t[3])))>>>0:(t=Ft.hsla.exec(e),t?(Ut(Wt(t[1]),Bt(t[2]),Bt(t[3]))|Mt(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 $t(e,t){return Array.isArray(e)?e.map(e=>Vt(e,t)):[0]}class qt extends Ve{constructor(){super(),this.documentElement=new Ze("document")}createElement(e){return new Ze(e)}createElementNS(e,t){return new Ze(`${e}:${t}`)}}qt.createElement=qt.prototype.createElement,qt.createElementNS=qt.prototype.createElementNS;const{createContainer:Qt,updateContainer:Kt,getPublicRootInstance:Gt,injectIntoDevTools:Yt}=xt;class Xt{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 qt;this.rootContainer=Qt(t,0,!1)}static get Native(){return zt}start(){At.regist(this.config.appName,this.render)}render(e){const{appName:t,entryPage:n,silent:r=!1,bubbles:i=!1,callback:o=(()=>{})}=this.config,{__instanceId__:l}=e;this.rootContainer.containerInfo.nodeId=l,r&&Z(r),i&&function(e=!1){K=e}(i),F(l,this.rootContainer);const s=a.a.createElement(n,e);return Kt(s,this.rootContainer,null,o),Gt(this.rootContainer)}}Xt.version="2.12.2";const Jt={registerComponent(e,t){new Xt({appName:e,entryPage:t}).start()}};class Zt extends a.a.Component{render(){const e=this.props,{collapsable:t,style:n={}}=e,r=E(e,s),i=n;return"boolean"==typeof t&&(i.collapsable=t),a.a.createElement("div",Object.assign({nativeName:"View",style:i},r))}}function en(e,t){let{style:n}=e,r=E(e,u);const i=n;if(n&&(Array.isArray(n)?-1===n.filter(e=>"object"==typeof e&&e).findIndex(e=>e.color||e.colors)&&(i[0].color="#000"):"object"==typeof n&&void 0===n.color&&void 0===n.colors&&(i.color="#000")),r.text="","string"==typeof r.children)r.text=G(r.children);else if("number"==typeof r.children)r.text=G(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=G(e),r.children=r.text)}return a.a.createElement("p",Object.assign({ref:t,nativeName:"Text",style:i},r))}en.displayName="Text";const tn=a.a.forwardRef(en);tn.displayName="Text";class nn extends a.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=ye(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=>te(e))),i}handleTintColor(e,t,n){t&&(e.tintColor=Vt(t)),Array.isArray(n)&&(e.tintColors=$t(n))}render(){const e=this.props,{children:t,style:n,imageStyle:r,imageRef:i,source:o,sources:l,src:s,srcs:u,tintColor:f,tintColors:d}=e,p=E(e,c),h=this.getImageUrls({src:s,srcs:u,source:o,sources:l});"ios"===Rt.platform.OS?h.length&&(p.source=h.map(e=>({uri:e}))):"android"===Rt.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=te(p.defaultSource));const m=k({},n);return this.handleTintColor(m,f,d),p.style=m,t?a.a.createElement(Zt,{style:n},a.a.createElement("img",Object.assign({},p,{nativeName:"Image",alt:"",ref:i,style:[{position:"absolute",left:0,right:0,top:0,bottom:0,width:n.width,height:n.height},r]})),t):a.a.createElement("img",Object.assign({},p,{nativeName:"Image",alt:"",ref:i}))}}nn.prefetch=ge;class rn{constructor(){this.Value=rn.Value}static Value(e){return e}static timing(e,t){return new Ie({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}rn.View=Zt,rn.Text=tn,rn.Image=nn;const on={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 an(e){return a.a.createElement("li",Object.assign({nativeName:"ListViewItem"},e))}class ln extends a.a.Component{constructor(){super(...arguments),this.instance=null}expandPullHeader(){ct(this.instance,"expandPullHeader",[])}collapsePullHeader(e){"android"===Rt.platform.OS?ct(this.instance,"collapsePullHeader",[e]):void 0!==e?ct(this.instance,"collapsePullHeaderWithOptions",[e]):ct(this.instance,"collapsePullHeader",[])}render(){const e=this.props,{children:t}=e,n=E(e,f);return a.a.createElement("div",Object.assign({nativeName:"PullHeaderView",ref:e=>{this.instance=e}},n),t)}}class sn extends a.a.Component{constructor(){super(...arguments),this.instance=null}expandPullFooter(){ct(this.instance,"expandPullFooter",[])}collapsePullFooter(){ct(this.instance,"collapsePullFooter",[])}render(){const e=this.props,{children:t}=e,n=E(e,d);return a.a.createElement("div",Object.assign({nativeName:"PullFooterView",ref:e=>{this.instance=e}},n),t)}}sn.defaultProps={sticky:!0};const un={onDisappear:"onDisAppear"},cn={onDisappear:"onDisappear"};class fn extends a.a.Component{constructor(e){super(e),this.instance=null,this.pullHeader=null,this.pullFooter=null,this.handleInitialListReady=this.handleInitialListReady.bind(this),this.state={initialListReady:!1}}componentDidMount(){const{getRowKey:e}=this.props}convertName(e){return"android"===Rt.platform.OS&&un[e]?un[e]:"ios"===Rt.platform.OS&&cn[e]?cn[e]:e}scrollToIndex(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&ct(this.instance,"scrollToIndex",[e,t,n])}scrollToContentOffset(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&ct(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=a.a.createElement(ln,{key:"pull-header",ref:e=>{this.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),r}getPullFooter(e,t,n){let r=null;return"function"==typeof e&&(r=a.a.createElement(sn,{key:"pull-footer",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:i,renderPullFooter:o,getRowType:l,getRowStyle:s,getRowKey:u,dataSource:c,initialListSize:f,rowShouldSticky:d,onRowLayout:h,onHeaderPulling:m,onHeaderReleased:y,onFooterPulling:g,onFooterReleased:b,onAppear:v,onDisappear:w,onWillAppear:S,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(i,m,y),E=this.getPullFooter(o,g,b);!t&&c&&(t=c.length),e||(t=Math.min(t,f||10));for(let e=0;e{"function"==typeof n&&(t[this.convertName(r)]=()=>{n(e)})}),n&&N.push(a.a.createElement(an,Object.assign({},t),n))}p&&N.unshift(p),E&&N.push(E),"function"==typeof d&&Object.assign(C,{rowShouldSticky:!0});const I=[v,w,S,x];C.exposureEventEnabled=I.some(e=>"function"==typeof e),C.numberOfRows=N.length,C.initialListSize=f,C.style=k({overflow:"scroll"},n)}return!C.onLoadMore&&C.onEndReached&&(C.onLoadMore=C.onEndReached),a.a.createElement("ul",Object.assign({ref:e=>{this.instance=e},nativeName:"ListView",initialListReady:this.handleInitialListReady},C),N.length?N:t)}}fn.defaultProps={numberOfRows:0};class dn extends a.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(){ct(this.instance,"startRefresh",null)}refreshCompleted(){ct(this.instance,"refreshComplected",null)}render(){const e=this.props,{children:t}=e,n=E(e,h);return a.a.createElement("div",Object.assign({nativeName:"RefreshWrapper",ref:e=>{this.instance=e}},n),a.a.createElement("div",{nativeName:"RefreshWrapperItemView",style:{left:0,right:0,position:"absolute"}},this.getRefresh()),t)}}class pn{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 Xt({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0}delete e.component}const t=[e];this.stack.push(e),ct(this.instance,"push",t)}pop(e){if(this.stack.size>1){const t=[e];this.stack.pop(),ct(this.instance,"pop",t)}}clear(){this.stack.clear()}render(){const e=this.props,{initialRoute:{component:t}}=e,n=E(e.initialRoute,y),r=E(e,m);return r.initialRoute=n,a.a.createElement("div",Object.assign({nativeName:"Navigator",ref:e=>{this.instance=e}},r))}}function mn(e){return a.a.createElement("div",Object.assign({nativeName:"ViewPagerItem"},e,{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}class yn extends a.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&&ct(this.instance,"setPage",[e])}setPageWithoutAnimation(e){"number"==typeof e&&ct(this.instance,"setPageWithoutAnimation",[e])}render(){const e=this.props,{children:t,onPageScrollStateChanged:n}=e,r=E(e,g);let i=[];return Array.isArray(t)?i=t.map(e=>{const t={};return"string"==typeof e.key&&(t.key="viewPager_"+e.key),a.a.createElement(mn,Object.assign({},t),e)}):i.push(a.a.createElement(mn,null,t)),"function"==typeof n&&(r.onPageScrollStateChanged=this.onPageScrollStateChanged),a.a.createElement("div",Object.assign({nativeName:"ViewPager",ref:e=>{this.instance=e}},r),i)}}function gn(){const e=I.platform.Localization;return!!e&&1===e.direction}class bn extends a.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=>{ct(this.instance,"getValue",t=>e(t.text))})}setValue(e){return ct(this.instance,"setValue",[e]),e}focus(){ct(this.instance,"focusTextInput",[])}blur(){ct(this.instance,"blurTextInput",[])}showInputMethod(){ct(this.instance,"showInputMethod",[])}hideInputMethod(){ct(this.instance,"hideInputMethod",[])}clear(){ct(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"===Rt.platform.OS&&(n.keyboardHeight/=Rt.screen.scale),"function"==typeof t&&t(n)}render(){const e=k({},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)}),gn()&&(e.style?"object"!=typeof e.style||Array.isArray(e.style)||e.style.textAlign||(e.style.textAlign="right"):e.style={textAlign:"right"}),a.a.createElement("div",Object.assign({nativeName:"TextInput"},e,{ref:e=>{this.instance=e},onChangeText:this.onChangeText,onKeyboardWillShow:this.onKeyboardWillShow}))}}const vn=Rt.window.scale;let wn=Math.round(.4*vn)/vn;function kn(e){return e}0===wn&&(wn=1/vn);var Sn=Object.freeze({__proto__:null,get hairlineWidth(){return wn},create:kn});const En={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 xn extends a.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,ct(this.instance,"scrollTo",[r,i,o])}scrollToWithDuration(e=0,t=0,n=1e3){ct(this.instance,"scrollToWithOptions",[{x:e,y:t,duration:n}])}render(){const{horizontal:e,contentContainerStyle:t,children:n,style:r}=this.props,i=[e?En.contentContainerHorizontal:En.contentContainerVertical,t],o=e?Object.assign({},En.baseHorizontal,r):Object.assign({},En.baseVertical,r);return e&&(o.flexDirection=gn()?"row-reverse":"row"),a.a.createElement("div",Object.assign({nativeName:"ScrollView",ref:e=>{this.instance=e}},this.props,{style:o}),a.a.createElement(Zt,{style:i},n))}}const Cn={modal:{position:"absolute"},container:{position:"absolute",left:0,top:0}};class Nn extends a.a.Component{constructor(e){super(e),this.eventSubscription=null}componentDidMount(){"ios"===Rt.platform.OS&&(this.eventSubscription=new fe("modalDismissed"),this.eventSubscription.addCallback(e=>{const{primaryKey:t,onDismiss:n}=this.props;e.primaryKey===t&&"function"==typeof n&&n()}))}componentWillUnmount(){"ios"===Rt.platform.OS&&this.eventSubscription&&this.eventSubscription.unregister()}render(){const{children:e,visible:t,transparent:n,animated:r}=this.props;let{animationType:i}=this.props;if(!1===t)return null;const o={backgroundColor:n?"transparent":"white"};return i||(i="none",r&&(i="slide")),a.a.createElement("div",Object.assign({nativeName:"Modal",animationType:i,transparent:n,style:Cn.modal},this.props),a.a.createElement(Zt,{style:[Cn.container,o]},e))}}Nn.defaultProps={visible:!0};class In extends a.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:i,nextFocusRightId:o,style:l,noFocusStyle:s,focusStyle:u,onClick:c}=this.props,{isFocus:f}=this.state,d=a.a.Children.only(t);let p;d&&d.child&&d.child.memoizedProps&&d.child.memoizedProps.nativeName?p=d.child.memoizedProps.nativeName:d&&d.type&&d.type.displayName&&(p=d.type.displayName);const h=n&&ut(n),m=r&&ut(r),y=i&&ut(i),g=o&&ut(o);let b=l;if("Text"!==p){const e=d.memoizedProps.style;b=k(k({},b),e)}if(Object.assign(b,f?u:s),"Text"===p)return a.a.createElement(Zt,{focusable:!0,nextFocusDownId:h,nextFocusUpId:m,nextFocusLeftId:y,nextFocusRightId:g,requestFocus:e,style:b,onClick:c,onFocus:this.handleFocus},d);const{children:v}=d.memoizedProps;return a.a.cloneElement(d,{nextFocusDownId:n,nextFocusUpId:r,nextFocusLeftId:i,nextFocusRightId:o,requestFocus:e,onClick:c,focusable:!0,children:v,style:b,onFocus:this.handleFocus})}}function Pn(e){return a.a.createElement("iframe",Object.assign({title:"hippy",nativeName:"WebView"},e))}let _n;class Ln{constructor(e,t,n){if(this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),_n||(_n=new fe("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!e||"string"!=typeof e)throw new TypeError("Invalid WebSocket url");const r=k({},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=_n.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,_n.removeCallback(this.webSocketCallbackId));const n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}class Rn extends a.a.Component{render(){const e=this.props,{collapsable:t,style:n={}}=e,r=E(e,b),i=n;return"boolean"==typeof t&&(i.collapsable=t),a.a.createElement("div",Object.assign({nativeName:"View",style:i},r))}}function An(e){return a.a.createElement("li",Object.assign({nativeName:"WaterfallItem"},e))}class zn extends a.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}){ct(this.instance,"scrollToIndex",[e,e,t])}scrollToContentOffset({xOffset:e=0,yOffset:t=0,animated:n=!0}){ct(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.call(this,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=a.a.createElement(ln,{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=a.a.createElement(sn,{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:i=0,interItemSpacing:o=0,numberOfItems:l=0,preloadItemNumber:s=0,renderItem:u,renderPullHeader:c,renderPullFooter:f,getItemType:d,getItemKey:p,getItemStyle:h,contentInset:m={top:0,left:0,bottom:0,right:0},onItemLayout:y,onHeaderPulling:g,onHeaderReleased:b,onFooterPulling:w,onFooterReleased:S,containPullHeader:x=!1,containPullFooter:C=!1,containBannerView:N=!1}=e,I=k(k({},E(e,v)),{},{style:t,numberOfColumns:r,columnSpacing:i,interItemSpacing:o,preloadItemNumber:s,contentInset:m,containPullHeader:x,containPullFooter:C,containBannerView:N}),P=[];if("function"==typeof n){const e=n();e&&(P.push(a.a.createElement(Rn,{key:"bannerView"},a.a.cloneElement(e))),I.containBannerView=!0)}if("function"==typeof u){const e=this.getPullHeader(c,g,b),n=this.getPullFooter(f,w,S);for(let e=0;ethis.instance=e,initialListReady:this.handleInitialListReady.bind(this)},I),P)}}e.WebSocket=Ln;const{AsyncStorage:On,BackAndroid:Tn,Bridge:jn,Clipboard:Fn,Cookie:Hn,Device:Mn,HippyRegister:Dn,ImageLoader:Un,NetworkInfo:Wn,UIManager:Bn,flushSync:Vn}=zt,{callNative:$n,callNativeWithPromise:qn,callNativeWithCallbackId:Qn,removeNativeCallback:Kn}=jn,Gn=null,Yn=e.ConsoleModule||e.console,Xn=Mn.platform,Jn=Xt,Zn=Xt,er=nn,tr=Dn,nr=pe,rr=fe,ir={get:e=>Mn[e]},or={get:()=>Mn.screen.scale};t.default=Xt}.call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/@hippy/react-reconciler/cjs/react-reconciler.production.min.js":function(e,t,n){(function(e){ /** @license React v0.26.2 * react-reconciler.production.min.js * diff --git a/examples/ios-demo/res/vendor.ios.js b/examples/ios-demo/res/vendor.ios.js index dc4dd5f09c3..da3a8e68d7e 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 xn})),n.d(t,"Animation",(function(){return Ve})),n.d(t,"AnimationSet",(function(){return qe})),n.d(t,"AppRegistry",(function(){return kn})),n.d(t,"AsyncStorage",(function(){return tr})),n.d(t,"BackAndroid",(function(){return nr})),n.d(t,"Clipboard",(function(){return ir})),n.d(t,"ConsoleModule",(function(){return vr})),n.d(t,"Dimensions",(function(){return xr})),n.d(t,"Easing",(function(){return Nn})),n.d(t,"Focusable",(function(){return Kn})),n.d(t,"Hippy",(function(){return br})),n.d(t,"HippyEventEmitter",(function(){return Le})),n.d(t,"HippyEventListener",(function(){return Pe})),n.d(t,"HippyRegister",(function(){return lr})),n.d(t,"Image",(function(){return Cn})),n.d(t,"ImageBackground",(function(){return wr})),n.d(t,"ImageLoaderModule",(function(){return ur})),n.d(t,"ListView",(function(){return Rn})),n.d(t,"ListViewItem",(function(){return In})),n.d(t,"Modal",(function(){return Qn})),n.d(t,"Navigator",(function(){return Tn})),n.d(t,"NetInfo",(function(){return sr})),n.d(t,"NetworkModule",(function(){return ar})),n.d(t,"PixelRatio",(function(){return Nr})),n.d(t,"Platform",(function(){return gr})),n.d(t,"PullFooter",(function(){return _n})),n.d(t,"PullHeader",(function(){return Pn})),n.d(t,"RNfqb",(function(){return kr})),n.d(t,"RNfqbEventEmitter",(function(){return Er})),n.d(t,"RNfqbEventListener",(function(){return Cr})),n.d(t,"RNfqbRegister",(function(){return Sr})),n.d(t,"RefreshWrapper",(function(){return On})),n.d(t,"ScrollView",(function(){return $n})),n.d(t,"StyleSheet",(function(){return Bn})),n.d(t,"Text",(function(){return En})),n.d(t,"TextInput",(function(){return Mn})),n.d(t,"TimerModule",(function(){return yr})),n.d(t,"UIManagerModule",(function(){return cr})),n.d(t,"View",(function(){return wn})),n.d(t,"ViewPager",(function(){return Fn})),n.d(t,"WaterfallView",(function(){return er})),n.d(t,"WebSocket",(function(){return Xn})),n.d(t,"WebView",(function(){return Gn})),n.d(t,"callNative",(function(){return dr})),n.d(t,"callNativeWithCallbackId",(function(){return hr})),n.d(t,"callNativeWithPromise",(function(){return pr})),n.d(t,"colorParse",(function(){return dn})),n.d(t,"flushSync",(function(){return fr})),n.d(t,"removeNativeCallback",(function(){return mr}));var r=n("./node_modules/@hippy/react-reconciler/index.js"),i=n.n(r),a=n("./node_modules/react/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"],y=["initialRoute"],v=["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}}),Object.defineProperty(e,"prototype",{writable:!1}),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 C(this,n)}}function C(e,t){if(t&&("object"===A(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return x(e)}function x(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 A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)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);n0||e.didTimeout)&&function e(t){"number"==typeof t?ne(t):t&&(ne(t.nodeId),t.childNodes&&t.childNodes.forEach((function(t){return e(t)})))}(t)}),{timeout:50})}var oe={onTouchStart:["onTouchStart","onTouchDown"],onPress:["onPress","onClick"]},le=new RegExp(/^\d+$/),ue=!1;function se(){}function ce(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,(function(e){return String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16))}))}var fe=new RegExp("^on.+Capture$");var de=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function pe(e){if("number"==typeof e)return e;if("string"==typeof e&&de.test(e))try{return parseFloat(e)}catch(t){return e}return e}function he(e){return"[object Function]"===Object.prototype.toString.call(e)}function me(e){e}function ye(){return ue}function ve(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){return"".concat("hpfile://","./").concat(e)}return e}function ge(e){return 5===e}var be=function(){function e(t){T(this,e),this.handlerContainer={},this.nextIdForHandler=0,this.eventName=t}return F(e,[{key:"getEventListeners",value:function(){var e=this;return Object.keys(this.handlerContainer).filter((function(t){return e.handlerContainer[t]})).map((function(t){return e.handlerContainer[t]}))}},{key:"getHandlerSize",value:function(){return Object.keys(this.handlerContainer).length}},{key:"addEventHandler",value:function(e,t){if(!e)throw new TypeError("Invalid arguments for addEventHandler");var n=this.nextIdForHandler;this.nextIdForHandler+=1;var r={id:n,eventHandler:e,context:t},i="eventHandler_".concat(n);return this.handlerContainer[i]=r,n}},{key:"notifyEvent",value:function(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:"removeEventHandler",value:function(e){if("number"!=typeof e)throw new TypeError("Invalid arguments for removeEventHandler");var t="eventHandler_".concat(e);this.handlerContainer[t]&&delete this.handlerContainer[t]}}]),e}(),ke=function(){function e(t,n,r){T(this,e),this.type=t,this.bubbles=!0,this.timeStamp=Date.now(),this.currentTarget=n,this.target=r}return F(e,[{key:"stopPropagation",value:function(){this.bubbles=!1}},{key:"preventDefault",value:function(){}}]),e}(),we=new Map,Se=["%c[event]%c","color: green","color: auto"];function Ee(e,t){var n=e;if(t.memoizedProps&&!t.memoizedProps[e])for(var r=Object.keys(oe),i=0;i0)for(var l,u=!1,s=re(n);!u&&void 0!==(l=r.shift());)try{var c=l,f=c.eventName,d=c.currentTarget,p=c.listener,h=c.isCapture,m=new ke(f,d,s);Object.assign(m,t),h?(p(m),m.bubbles||(u=!0)):("boolean"!=typeof(u=p(m))&&(u=!ye()),m.bubbles||(u=!0))}catch(e){console.reportUncaughtException(e)}}(r,e,a):function(e,t,n){var r=!1,i=n,a=e,o=re(n);do{if(Ce(a=Ee(a,i),i))try{var l=re(i),u=new ke(a,l,o);Object.assign(u,t),"boolean"!=typeof(r=i.memoizedProps[a](u))&&(r=!ye()),u.bubbles||(r=!0)}catch(e){console.reportUncaughtException(e)}if(!1===r)for(i=i.return;i&&!ge(i.tag);)i=i.return}while(!r&&i)}(r,e,a)}}},receiveUIComponentEvent:function(e){if(se.apply(void 0,Se.concat(["receiveUIComponentEvent",e])),e&&Array.isArray(e)&&!(e.length<2)){var t=R(e,3),n=t[0],r=t[1],i=t[2];if("number"==typeof n&&"string"==typeof r){var a=ie(n);a&&Ce(r,a)&&a.memoizedProps[r](i)}}}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=Ne);var Ie=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}(),Pe=function(){function e(t){T(this,e),this.eventName=t,this.listenerIdList=[]}return F(e,[{key:"unregister",value:function(){var e=Ne.getHippyEventHub(this.eventName);if(!e)throw new ReferenceError("No listeners for ".concat(this.eventName));for(var t=this.listenerIdList.length,n=0;n=0?dn(t):t}var Ve=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=Be(t.valueType,r)}var i=Be(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=Ue(t.repeatCount||0),this.inputRange=t.inputRange||[],this.outputRange=t.outputRange||[],this.animationId=Gt.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"===Yt.platform.OS&&(t="onHippyAnimation"),"function"==typeof this.onAnimationStartCallback&&(this.animationStartListener=We.addListener("".concat(t,"Start"),(function(t){t===e.animationId&&(e.animationStartListener.remove(),"function"==typeof e.onAnimationStartCallback&&e.onAnimationStartCallback())}))),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=We.addListener("".concat(t,"End"),(function(t){t===e.animationId&&(e.animationEndListener.remove(),"function"==typeof e.onAnimationEndCallback&&e.onAnimationEndCallback())}))),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=We.addListener("".concat(t,"Cancel"),(function(t){t===e.animationId&&(e.animationCancelListener.remove(),"function"==typeof e.onAnimationCancelCallback&&e.onAnimationCancelCallback())}))),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=We.addListener("".concat(t,"Repeat"),(function(t){t===e.animationId&&"function"==typeof e.onAnimationRepeatCallback&&e.onAnimationRepeatCallback()}))),Gt.callNative("AnimationModule","startAnimation",this.animationId)}},{key:"destory",value:function(){this.destroy()}},{key:"destroy",value:function(){this.removeEventListener(),Gt.callNative("AnimationModule","destroyAnimation",this.animationId)}},{key:"pause",value:function(){Gt.callNative("AnimationModule","pauseAnimation",this.animationId)}},{key:"resume",value:function(){Gt.callNative("AnimationModule","resumeAnimation",this.animationId)}},{key:"updateAnimation",value:function(t){var n=this;if("object"!==A(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=Be(n.valueType,o)}n.startValue=a||0}else"repeatCount"===r?n.repeatCount=Ue(t.repeatCount||0):Object.defineProperty(n,r,{value:i})})),Gt.callNative("AnimationModule","updateAnimation",this.animationId,Object.assign({delay:this.delay,startValue:this.startValue,toValue:Be(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}(),$e=new Le,qe=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=Gt.callNativeWithCallbackId("AnimationModule","createAnimationSet",!0,{repeatCount:Ue(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"===Yt.platform.OS&&(t="onHippyAnimation"),"function"==typeof this.onAnimationStartCallback&&(this.animationStartListener=$e.addListener("".concat(t,"Start"),(function(t){t===e.animationId&&(e.animationStartListener.remove(),"function"==typeof e.onAnimationStartCallback&&e.onAnimationStartCallback())}))),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=$e.addListener("".concat(t,"End"),(function(t){t===e.animationId&&(e.animationEndListener.remove(),"function"==typeof e.onAnimationEndCallback&&e.onAnimationEndCallback())}))),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=$e.addListener("".concat(t,"Cancel"),(function(t){t===e.animationId&&(e.animationCancelListener.remove(),"function"==typeof e.onAnimationCancelCallback&&e.onAnimationCancelCallback())}))),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=$e.addListener("".concat(t,"Repeat"),(function(t){t===e.animationId&&"function"==typeof e.onAnimationRepeatCallback&&e.onAnimationRepeatCallback()}))),Gt.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)&&Gt.callNative("AnimationModule","destroyAnimation",e.animationId)})),Gt.callNative("AnimationModule","destroyAnimation",this.animationId)}},{key:"pause",value:function(){Gt.callNative("AnimationModule","pauseAnimation",this.animationId)}},{key:"resume",value:function(){Gt.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}(),Qe=["%c[native]%c","color: red","color: auto"],Ke={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode")},Ge=!0,Ye=[];function Xe(){Ge&&St()}function Je(e){(function(e){for(var t=[],n=0;n0&&void 0!==arguments[0]&&arguments[0];if(Ge)if(Ge=!1,0!==Ye.length){var t=Z();e?(Je(t),Et(),Ye=[],Ge=!0):Promise.resolve().then((function(){Je(t),Et(),Ye=[],Ge=!0}))}else Ge=!0}function et(e){var t=e.attributes;t.children;return L(t,l)}function tt(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: ".concat(t.tagName));return{id:t.nodeId,pId:t.parentNode&&t.parentNode.nodeId||e,index:t.index,name:t.nativeName,props:P(P({},et(t)),{},{style:t.style})}}function nt(e,t,n,r){var i=[],a=n;return void 0===a&&t&&t.parentNode&&(a=t.parentNode.childNodes.indexOf(t)),t.traverseChildren((function(t){var n=tt(e,t);n&&i.push(n),"function"==typeof r&&r(t)}),a),i}function rt(e){return!!M&&e instanceof M.containerInfo.constructor}function it(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;if(e&&t&&!t.meta.skipAddToDom){var r=Z();if(rt(e)&&!e.isMounted){var i=nt(r,t,n,(function(e){e.isMounted||(e.isMounted=!0)}));Xe(),Ye.push({type:Ke.createNode,nodes:i})}else if(e.isMounted&&!t.isMounted){var a=nt(r,t,n,(function(e){e.isMounted||(e.isMounted=!0)}));Xe(),Ye.push({type:Ke.createNode,nodes:a})}}}function at(e,t,n){if(t&&!t.meta.skipAddToDom){t.isMounted=!1,t.index=n;var r=Z(),i=[{id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r,index:t.index}];Xe(),Ye.push({type:Ke.deleteNode,nodes:i})}}function ot(e){if(e.isMounted){var t=tt(Z(),e);Xe(),t&&Ye.push({type:Ke.updateNode,nodes:[t]})}}var lt=0;var ut=function(){function e(){T(this,e),this.meta={component:{}},this.mounted=!1,this.index=0,this.childNodes=[],this.parentNode=null,this.nodeId=((lt+=1)%10==0&&(lt+=1),lt)}return F(e,[{key:"toString",value:function(){return this.constructor.name}},{key:"isMounted",get:function(){return this.mounted},set:function(e){this.mounted=e}},{key:"insertBefore",value:function(e,t){if(!e)throw new Error("Can't insert child.");if(!e.meta.skipAddToDom){if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't insert child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't insert child, because it already has a different parent.");var n=this.childNodes.indexOf(t);return e.parentNode=this,this.childNodes.splice(n,0,e),it(this,e,n)}}},{key:"moveChild",value:function(e,t){if(!e)throw new Error("Can't move child.");if(!e.meta.skipAddToDom){if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't move child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't move child, because it already has a different parent.");var n=this.childNodes.indexOf(e);if(this.childNodes.indexOf(t)===n)return e;this.childNodes.splice(n,1),at(0,e,n);var r=this.childNodes.indexOf(t);return this.childNodes.splice(r,0,e),it(this,e,r)}}},{key:"appendChild",value:function(e){if(!e)throw new Error("Can't append child.");if(!e.meta.skipAddToDom){if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");e.parentNode=this,this.childNodes.push(e),it(this,e,this.childNodes.length-1)}}},{key:"removeChild",value:function(e){if(!e)throw new Error("Can't remove child.");if(!e.meta.skipAddToDom){if(!e.parentNode)throw new Error("Can't remove child, because it has no parent.");if(e.parentNode!==this)throw new Error("Can't remove child, because it has a different parent.");var t=this.childNodes.indexOf(e);this.childNodes.splice(t,1),at(0,e,t)}}},{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]:0;this.index=this.parentNode?n:0,e(this),this.childNodes.length&&this.childNodes.forEach((function(n,r){t.traverseChildren.call(n,e,r)}))}}]),e}(),st={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},ct={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},ft="turn",dt="rad",pt="deg";function ht(e){var t=(e||"").replace(/\s*/g,"").toLowerCase(),n=/^([+-]?\d+\.?\d*)+(deg|turn|rad)|(to\w+)$/g.exec(t);if(Array.isArray(n)){var r="180",i=R(n,3),a=i[0],o=i[1],l=i[2];return o&&l?r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pt,n=parseFloat(e),r=e||"",i=e.split("."),a=R(i,2),o=a[1];switch(o&&o.length>2&&(r=n.toFixed(2)),t){case ft:r="".concat((360*n).toFixed(2));break;case dt:r="".concat((180/Math.PI*n).toFixed(2))}return r}(o,l):a&&void 0!==ct[a]&&(r=ct[a]),r}}function mt(e){var t=R((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:dn(n)}:void 0:{color:dn(n)}}function yt(e){var t;return t=e,fe.test(t)&&(e=e.replace("Capture","")),oe[e]?oe[e][1]:e}var vt=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,le.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"===A(e)&&e&&(a=P(P({},a),e))})),Object.keys(a).forEach((function(e){var n=a[e];if(Object.prototype.hasOwnProperty.call(st,e)&&(e=st[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 Ve||n instanceof qe?r[t]={animationId:n.animationId}:null===n?r[t]&&delete r[t]:void 0!==n&&(r[t]=n)}))}));var i=Object.keys(r);i.length&&(Array.isArray(t.style.transform)||(t.style.transform=[]),i.forEach((function(e){return t.style.transform.push({[e]:r[e]})})))}else if(null===n&&void 0!==t.style[e])t.style[e]=void 0;else if(n instanceof Ve||n instanceof qe)t.style[e]={animationId:n.animationId};else if(["caretColor","caret-color"].indexOf(e)>=0)t.attributes["caret-color"]=dn(n);else if(e.toLowerCase().indexOf("colors")>-1)t.style[e]=pn(n);else if(e.toLowerCase().indexOf("color")>-1)t.style[e]=dn(n);else if("backgroundImage"===e&&n)t.style=function(e,t,n){if(0===t.indexOf("linear-gradient")){var r=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),i=[];n.linearGradient=n.linearGradient||{},r.forEach((function(e,t){if(0===t){var r=ht(e);if(r)n.linearGradient.angle=r;else{n.linearGradient.angle="180";var a=mt(e);a&&i.push(a)}}else{var o=mt(e);o&&i.push(o)}})),n.linearGradient.colorStopList=i}else n[e]=ve(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 ot(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=nt(Z(),e);Xe(),Ye.push({type:Ke.updateNode,nodes:t})}}(n)),!0}},{match:function(){return["value","defaultValue","placeholder"].indexOf(e)>=0},action:function(){return n.attributes[e]=ce(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"!==Yt.platform.OS}},{match:function(){return["caretColor","caret-color"].indexOf(e)>=0},action:function(){return n.attributes["caret-color"]=dn(t),!1}},{match:function(){return["style"].indexOf(e)>=0},action:function(){return"object"!==A(t)||null==t||(n.setStyleAttribute(t),!1)}},{match:function(){return!0},action:function(){if("function"==typeof t){var r=yt(e);n.attributes[r]=!0,n.attributes["__bind__".concat(r)]=!0}else{n.attributes[e]=t;var i=yt(e);!0===n.attributes["__bind__".concat(i)]&&"function"!=typeof t&&(n.attributes[i]=!1,n.attributes["__bind__".concat(i)]=!1)}return!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(st,e)&&(i=st[e]),"string"==typeof r&&(r=t.trim(),r=i.toLowerCase().indexOf("colors")>-1?pn(r):i.toLowerCase().indexOf("color")>-1?dn(r):pe(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||ot(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)})),ot(this),Ze(!0)}}}},{key:"setText",value:function(e){if("string"!=typeof e)try{e=e.toString()}catch(e){throw new Error("Only string type is acceptable for setText")}return(e=e.trim())||this.getAttribute("text")?(e=(e=ce(e)).replace(/ /g," ").replace(/Â/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}]),n}(ut),gt=$.createNode,bt=$.updateNode,kt=$.deleteNode,wt=$.flushBatch,St=$.startBatch,Et=$.endBatch,Ct=$.sendRenderError,xt=function(e){return ee((function(t){return t.stateNode&&t.stateNode.nodeId===e}))};function Nt(e){if(e instanceof vt)return e;var t=e._reactInternalFiber||e._reactInternals;if(t&&t.child){for(var n=t.child;n&&!(n.stateNode instanceof vt);)n=n.child;return n&&n.stateNode?n.stateNode:null}return null}function It(e){var t=e;if("string"==typeof e){"getNodeIdByRef('".concat(e,"') use string ref will affect to performance, recommend use reference to the ref instead");var n=ee((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=Nt(t);return r?r.nodeId:0}return t.nodeId}function Pt(e,t){var n=e.nativeName,r=e.nodeId;if(!r||!n){var i=Nt(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;l=0&&e.removeChild(t),e.appendChild(t)},appendChildToContainer:function(e,t){e.appendChild(t)},appendInitialChild:function(e,t){e.appendChild(t)},beforeActiveInstanceBlur:function(){},commitMount:function(){},commitTextUpdate:function(){},commitUpdate:function(e,t,n,r,i,a){te(a,e.nodeId);var o=Object.keys(t);0!==o.length&&o.forEach((function(n){return e.setAttribute(n,t[n])}))},clearContainer:function(){},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),te(i,a.nodeId),a},createTextInstance:function(e,t,n,r){var i=t.createElement("p");return i.setAttribute("text",ce(e)),i.meta={component:{name:"Text"}},te(r,i.nodeId),i},detachDeletedInstance:function(){},finalizeContainerChildren:function(){},finalizeInitialChildren:function(){return!0},getChildHostContext:function(){return{}},getPublicInstance:function(e){return e},getInstanceFromNode:function(){throw new Error("Not yet implemented.")},getFundamentalComponentInstance:function(){throw new Error("Not yet implemented.")},getRootHostContext:function(){return{}},hideInstance:function(e){var t={style:{display:"none"}};Object.keys(t).forEach((function(n){return e.setAttribute(n,t[n])}))},hideTextInstance:function(){throw new Error("Not yet implemented.")},insertBefore:function(e,t,n){e.childNodes.indexOf(t)>=0?e.moveChild(t,n):e.insertBefore(t,n)},isOpaqueHydratingObject:function(){throw new Error("Not yet implemented")},makeClientId:function(){throw new Error("Not yet implemented")},makeClientIdInDEV:function(){throw new Error("Not yet implemented")},makeOpaqueHydratingObject:function(){throw new Error("Not yet implemented.")},mountFundamentalComponent:function(){throw new Error("Not yet implemented.")},prepareForCommit:function(){return null},preparePortalMount:function(){},prepareUpdate:function(e,t,n,r){var i={},a=!1;Object.keys(r).forEach((function(e){var t=n[e],o=r[e];switch(e){case"children":t===o||"number"!=typeof o&&"string"!=typeof o||(i[e]=o);break;default:"function"!=typeof t||"function"!=typeof o||Mt(t,o)?Mt(t,o)||(i[e]=o):a=!0}}));var o=0===Object.keys(i).length;return o&&a?{}:o?null:i},replaceContainerChildren:function(){},removeChild:function(e,t){e.removeChild(t),ae(t)},removeChildFromContainer:function(e,t){e.removeChild(t),ae(t)},resetAfterCommit:function(){},resetTextContent:function(){},unmountFundamentalComponent:function(){throw new Error("Not yet implemented.")},updateFundamentalComponent:function(){throw new Error("Not yet implemented.")},unhideTextInstance:function(){throw new Error("Not yet implemented.")},unhideInstance:function(e,t){var n=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(){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}}),Bt=i()(P(P({},Wt),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:function(){},cancelDeferredCallback:function(){}})),Vt=Bt.flushSync,$t=Y.addEventListener,qt=Y.removeEventListener,Qt=Y.dispatchEvent,Kt=Y.AsyncStorage,Gt=Y.Bridge,Yt=Y.Device,Xt=Y.HippyRegister,Jt=Object.freeze({__proto__:null,addEventListener:$t,removeEventListener:qt,dispatchEvent:Qt,AsyncStorage:Kt,BackAndroid:Tt,Bridge:Gt,Clipboard:Ae,Cookie:Re,Device:Yt,HippyRegister:Xt,ImageLoader:je,NetworkInfo:De,UIManager:Lt,flushSync:Vt});function Zt(){for(var e=arguments.length,t=new Array(e),n=0;n255?255:t}function on(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ln(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 un(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,a=ln(i,r,e+1/3),o=ln(i,r,e),l=ln(i,r,e-1/3);return Math.round(255*a)<<24|Math.round(255*o)<<16|Math.round(255*l)<<8}function sn(e){return(parseFloat(e)%360+360)%360/360}function cn(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function fn(e){var t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=rn.hex6.exec(e),Array.isArray(t)?parseInt("".concat(t[1],"ff"),16)>>>0:Object.hasOwnProperty.call(en,e)?en[e]:(t=rn.rgb.exec(e),Array.isArray(t)?(an(t[1])<<24|an(t[2])<<16|an(t[3])<<8|255)>>>0:(t=rn.rgba.exec(e))?(an(t[1])<<24|an(t[2])<<16|an(t[3])<<8|on(t[4]))>>>0:(t=rn.hex3.exec(e))?parseInt("".concat(t[1]+t[1]+t[2]+t[2]+t[3]+t[3],"ff"),16)>>>0:(t=rn.hex8.exec(e))?parseInt(t[1],16)>>>0:(t=rn.hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=rn.hsl.exec(e))?(255|un(sn(t[1]),cn(t[2]),cn(t[3])))>>>0:(t=rn.hsla.exec(e))?(un(sn(t[1]),cn(t[2]),cn(t[3]))|on(t[4]))>>>0:null))}function dn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isInteger(e))return e;var n=fn(e);return t.platform||(t.platform="ios"),null===n?0:(n=(n<<24|n>>>8)>>>0,"android"===t.platform&&(n|=0),n)}function pn(e,t){return Array.isArray(e)?e.map((function(e){return dn(e,t)})):[0]}var hn=function(e){w(n,e);var t=E(n);function n(){var e;return T(this,n),(e=t.call(this)).documentElement=new vt("document"),e}return F(n,[{key:"createElement",value:function(e){return new vt(e)}},{key:"createElementNS",value:function(e,t){return new vt("".concat(e,":").concat(t))}}]),n}(ut);hn.createElement=hn.prototype.createElement,hn.createElementNS=hn.prototype.createElementNS;var mn=Bt.createContainer,yn=Bt.updateContainer,vn=Bt.getPublicRootInstance,gn=(Bt.injectIntoDevTools,['%c[Hippy-React "2.12.1"]%c',"color: #61dafb","color: auto"]),bn=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 hn;this.rootContainer=mn(n,0,!1)}return F(e,[{key:"start",value:function(){Xt.regist(this.config.appName,this.render)}},{key:"render",value:function(e){var t=this.config,n=t.appName,r=t.entryPage,i=t.silent,a=void 0!==i&&i,l=t.bubbles,u=void 0!==l&&l,s=t.callback,c=void 0===s?function(){}:s,f=e.__instanceId__;se.apply(void 0,gn.concat(["Start",n,"with rootViewId",f,e])),this.rootContainer.containerInfo.nodeId=f,a&&me(a),u&&function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];ue=e}(u),J(f,this.rootContainer);var d=o.a.createElement(r,e);return yn(d,this.rootContainer,null,c),vn(this.rootContainer)}}],[{key:"Native",get:function(){return Jt}}]),e}();bn.version="2.12.1";var kn={registerComponent:function(e,t){new bn({appName:e,entryPage:t}).start()}},wn=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,i=L(e,u),a=r;return"boolean"==typeof t&&(a.collapsable=t),o.a.createElement("div",Object.assign({nativeName:"View",style:a},i))}}]),n}(o.a.Component);function Sn(e,t){var n=e.style,r=L(e,s),i=n;if(n&&(Array.isArray(n)?-1===n.filter((function(e){return"object"===A(e)&&e})).findIndex((function(e){return e.color||e.colors}))&&(i[0].color="#000"):"object"===A(n)&&void 0===n.color&&void 0===n.colors&&(i.color="#000")),r.text="","string"==typeof r.children)r.text=ce(r.children);else if("number"==typeof r.children)r.text=ce(r.children.toString());else if(Array.isArray(r.children)){var a=r.children.filter((function(e){return"string"==typeof e||"number"==typeof e})).join("");a&&(r.text=ce(a),r.children=r.text)}return o.a.createElement("p",Object.assign({ref:t,nativeName:"Text",style:i},r))}Sn.displayName="Text";var En=o.a.forwardRef(Sn);En.displayName="Text";var Cn=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"===A(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"===A(e)&&null!==e&&e.uri&&a.push(e.uri)})),a.length&&(a=a.map((function(e){return ve(e)}))),a}},{key:"handleTintColor",value:function(e,t,n){t&&(e.tintColor=dn(t)),Array.isArray(n)&&(e.tintColors=pn(n))}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.style,r=e.imageStyle,i=e.imageRef,a=e.source,l=e.sources,u=e.src,s=e.srcs,f=e.tintColor,d=e.tintColors,p=L(e,c),h=this.getImageUrls({src:u,srcs:s,source:a,sources:l});if("ios"===Yt.platform.OS)h.length&&(p.source=h.map((function(e){return{uri:e}})));else if("android"===Yt.platform.OS)if(1===h.length){var m=R(h,1);p.src=m[0]}else h.length>1&&(p.srcs=h);"string"==typeof p.defaultSource&&(p.defaultSource.indexOf("data:image/"),p.defaultSource=ve(p.defaultSource));var y=P({},n);return this.handleTintColor(y,f,d),p.style=y,t?o.a.createElement(wn,{style:n},o.a.createElement("img",Object.assign({},p,{nativeName:"Image",alt:"",ref:i,style:[{position:"absolute",left:0,right:0,top:0,bottom:0,width:n.width,height:n.height},r]})),t):o.a.createElement("img",Object.assign({},p,{nativeName:"Image",alt:"",ref:i}))}}],[{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=Oe(e);return"function"==typeof t&&r.then((function(e){return t(e.width,e.height)})),"function"==typeof n?r.catch(n):r.catch((function(t){"Failed to get size for image: ".concat(e)})),r}}]),n}(o.a.Component);Cn.prefetch=ze;var xn=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 Ve({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}]),e}();xn.View=wn,xn.Text=En,xn.Image=Cn;var Nn={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 In(e){return o.a.createElement("li",Object.assign({nativeName:"ListViewItem"},e))}var 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:"expandPullHeader",value:function(){Pt(this.instance,"expandPullHeader",[])}},{key:"collapsePullHeader",value:function(e){"android"===Yt.platform.OS?Pt(this.instance,"collapsePullHeader",[e]):void 0!==e?Pt(this.instance,"collapsePullHeaderWithOptions",[e]):Pt(this.instance,"collapsePullHeader",[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=L(t,f);return o.a.createElement("div",Object.assign({nativeName:"PullHeaderView",ref:function(t){e.instance=t}},r),n)}}]),n}(o.a.Component),_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:"expandPullFooter",value:function(){Pt(this.instance,"expandPullFooter",[])}},{key:"collapsePullFooter",value:function(){Pt(this.instance,"collapsePullFooter",[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=L(t,d);return o.a.createElement("div",Object.assign({nativeName:"PullFooterView",ref:function(t){e.instance=t}},r),n)}}]),n}(o.a.Component);_n.defaultProps={sticky:!0};var Ln={onDisappear:"onDisAppear"},An={onDisappear:"onDisappear"},Rn=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(x(r)),r.state={initialListReady:!1},r}return F(n,[{key:"componentDidMount",value:function(){this.props.getRowKey}},{key:"convertName",value:function(e){return"android"===Yt.platform.OS&&Ln[e]?Ln[e]:"ios"===Yt.platform.OS&&An[e]?An[e]:e}},{key:"scrollToIndex",value:function(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Pt(this.instance,"scrollToIndex",[e,t,n])}},{key:"scrollToContentOffset",value:function(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Pt(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,i=null;return"function"==typeof e&&(i=o.a.createElement(Pn,{key:"pull-header",ref:function(e){r.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),i}},{key:"getPullFooter",value:function(e,t,n){var r=this,i=null;return"function"==typeof e&&(i=o.a.createElement(_n,{key:"pull-footer",ref:function(e){r.pullFooter=e},onFooterPulling:t,onFooterReleased:n},e())),i}},{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,i=t.renderRow,a=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,y=t.onHeaderPulling,v=t.onHeaderReleased,g=t.onFooterPulling,b=t.onFooterReleased,k=t.onAppear,w=t.onDisappear,S=t.onWillAppear,E=t.onWillDisappear,C=L(t,p),x=[];if("function"==typeof i){var N=this.state.initialListReady,I=this.props.numberOfRows,_=this.getPullHeader(a,y,v),A=this.getPullFooter(l,g,b);!I&&f&&(I=f.length),N||(I=Math.min(I,d||10));for(var R=function(t){var n={},r=void 0;r=f?i(f[t],null,t):i(t),e.handleRowProps(n,t,{getRowKey:c,getRowStyle:s,getRowType:u,onRowLayout:m,rowShouldSticky:h}),[{func:k,name:"onAppear"},{func:w,name:"onDisappear"},{func:S,name:"onWillAppear"},{func:E,name:"onWillDisappear"}].forEach((function(r){var i=r.func,a=r.name;"function"==typeof i&&(n[e.convertName(a)]=function(){i(t)})})),r&&x.push(o.a.createElement(In,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 bn({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0;delete e.component}var t=[e];this.stack.push(e),Pt(this.instance,"push",t)}},{key:"pop",value:function(e){if(this.stack.size>1){var t=[e];this.stack.pop(),Pt(this.instance,"pop",t)}}},{key:"clear",value:function(){this.stack.clear()}},{key:"render",value:function(){var e=this,t=this.props,n=t.initialRoute,r=(n.component,L(n,m)),i=L(t,y);return i.initialRoute=r,o.a.createElement("div",Object.assign({nativeName:"Navigator",ref:function(t){e.instance=t}},i))}}]),n}(o.a.Component);function jn(e){return o.a.createElement("div",Object.assign({nativeName:"ViewPagerItem"},e,{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}var Fn=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(x(r)),r.setPageWithoutAnimation=r.setPageWithoutAnimation.bind(x(r)),r.onPageScrollStateChanged=r.onPageScrollStateChanged.bind(x(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&&Pt(this.instance,"setPage",[e])}},{key:"setPageWithoutAnimation",value:function(e){"number"==typeof e&&Pt(this.instance,"setPageWithoutAnimation",[e])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.onPageScrollStateChanged,i=L(t,v),a=[];return Array.isArray(n)?a=n.map((function(e){var t={};return"string"==typeof e.key&&(t.key="viewPager_".concat(e.key)),o.a.createElement(jn,Object.assign({},t),e)})):a.push(o.a.createElement(jn,null,n)),"function"==typeof r&&(i.onPageScrollStateChanged=this.onPageScrollStateChanged),o.a.createElement("div",Object.assign({nativeName:"ViewPager",ref:function(t){e.instance=t}},i),a)}}]),n}(o.a.Component);function Hn(){var e=V.platform.Localization;return!!e&&1===e.direction}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._lastNativeText="",r.onChangeText=r.onChangeText.bind(x(r)),r.onKeyboardWillShow=r.onKeyboardWillShow.bind(x(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){Pt(e.instance,"getValue",(function(e){return t(e.text)}))}))}},{key:"setValue",value:function(e){return Pt(this.instance,"setValue",[e]),e}},{key:"focus",value:function(){Pt(this.instance,"focusTextInput",[])}},{key:"blur",value:function(){Pt(this.instance,"blurTextInput",[])}},{key:"showInputMethod",value:function(){Pt(this.instance,"showInputMethod",[])}},{key:"hideInputMethod",value:function(){Pt(this.instance,"hideInputMethod",[])}},{key:"clear",value:function(){Pt(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"===Yt.platform.OS&&(n.keyboardHeight/=Yt.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"===A(t.style)?t.style[n]=e.props[n]:t.style={[n]:e.props[n]},t[n]=void 0)})),Hn()&&(t.style?"object"!==A(t.style)||Array.isArray(t.style)||t.style.textAlign||(t.style.textAlign="right"):t.style={textAlign:"right"}),o.a.createElement("div",Object.assign({nativeName:"TextInput"},t,{ref:function(t){e.instance=t},onChangeText:this.onChangeText,onKeyboardWillShow:this.onKeyboardWillShow}))}}]),n}(o.a.Component),Dn=Yt.window.scale,Un=Math.round(.4*Dn)/Dn;function Wn(e){return e}0===Un&&(Un=1/Dn);var Bn=Object.freeze({__proto__:null,get hairlineWidth(){return Un},create:Wn}),Vn={baseVertical:{flexGrow:1,flexShrink:1,flexDirection:"column",overflow:"scroll"},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:"row",overflow:"scroll"},contentContainerVertical:{collapsable:!1,flexDirection:"column"},contentContainerHorizontal:{collapsable:!1,flexDirection:"row"}},$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"===A(e)&&e&&(r=e.x,i=e.y,a=e.animated),r=r||0,i=i||0,a=!!a,Pt(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;Pt(this.instance,"scrollToWithOptions",[{x:e,y:t,duration:n}])}},{key:"render",value:function(){var e=this,t=this.props,n=t.horizontal,r=t.contentContainerStyle,i=t.children,a=t.style,l=[n?Vn.contentContainerHorizontal:Vn.contentContainerVertical,r],u=n?Object.assign({},Vn.baseHorizontal,a):Object.assign({},Vn.baseVertical,a);return n&&(u.flexDirection=Hn()?"row-reverse":"row"),o.a.createElement("div",Object.assign({nativeName:"ScrollView",ref:function(t){e.instance=t}},this.props,{style:u}),o.a.createElement(wn,{style:l},i))}}]),n}(o.a.Component),qn={modal:{position:"absolute"},container:{position:"absolute",left:0,top:0}},Qn=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"===Yt.platform.OS&&(this.eventSubscription=new Pe("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"===Yt.platform.OS&&this.eventSubscription&&this.eventSubscription.unregister()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.visible,r=e.transparent,i=e.animated,a=this.props.animationType;if(!1===n)return null;var l={backgroundColor:r?"transparent":"white"};return a||(a="none",i&&(a="slide")),o.a.createElement("div",Object.assign({nativeName:"Modal",animationType:a,transparent:r,style:qn.modal},this.props),o.a.createElement(wn,{style:[qn.container,l]},t))}}]),n}(o.a.Component);Qn.defaultProps={visible:!0};var Kn=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(x(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,i=t.nextFocusDownId,a=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=o.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=i&&It(i),y=a&&It(a),v=l&&It(l),g=u&&It(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 o.a.createElement(wn,{focusable:!0,nextFocusDownId:m,nextFocusUpId:y,nextFocusLeftId:v,nextFocusRightId:g,requestFocus:n,style:b,onClick:d,onFocus:this.handleFocus},h);var w=h.memoizedProps.children;return o.a.cloneElement(h,{nextFocusDownId:i,nextFocusUpId:a,nextFocusLeftId:l,nextFocusRightId:u,requestFocus:n,onClick:d,focusable:!0,children:w,style:b,onFocus:this.handleFocus})}}]),n}(o.a.Component);function Gn(e){return o.a.createElement("iframe",Object.assign({title:"hippy",nativeName:"WebView"},e))}var Yn,Xn=function(){function e(t,n,r){var i=this;if(T(this,e),this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),Yn||(Yn=new Pe("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=Yn.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(A(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"===A(e)&&e.id===this.webSocketId){var t=e.type;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,Yn.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,i=L(e,g),a=r;return"boolean"==typeof t&&(a.collapsable=t),o.a.createElement("div",Object.assign({nativeName:"View",style:a},i))}}]),n}(o.a.Component);function Zn(e){return o.a.createElement("li",Object.assign({nativeName:"WaterfallItem"},e))}var er=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(x(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;Pt(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;Pt(this.instance,"scrollToContentOffset",[n,i,o])}},{key:"handleRowProps",value:function(e,t,n){var r=this,i=n.getItemKey,a=n.getItemStyle,o=n.onItemLayout,l=n.getItemType;if("function"==typeof i&&(e.key=i(t)),"function"==typeof a&&(e.style=a(t)),"function"==typeof o&&(e.onLayout=function(e){o.call(r,e,t)}),"function"==typeof l){var u=l(t);Number.isInteger(u),e.type=u}}},{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,i=null;return"function"==typeof e&&(i=o.a.createElement(Pn,{key:"PullHeader",ref:function(e){r.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),i}},{key:"getPullFooter",value:function(e,t,n){var r=this,i=null;return"function"==typeof e&&(i=o.a.createElement(_n,{key:"PullFooter",ref:function(e){r.pullFooter=e},onFooterPulling:t,onFooterReleased:n},e())),i}},{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,i=t.renderBanner,a=t.numberOfColumns,l=void 0===a?2:a,u=t.columnSpacing,s=void 0===u?0:u,c=t.interItemSpacing,f=void 0===c?0:c,d=t.numberOfItems,p=void 0===d?0:d,h=t.preloadItemNumber,m=void 0===h?0:h,y=t.renderItem,v=t.renderPullHeader,g=t.renderPullFooter,k=t.getItemType,w=t.getItemKey,S=t.getItemStyle,E=t.contentInset,C=void 0===E?{top:0,left:0,bottom:0,right:0}:E,x=t.onItemLayout,N=t.onHeaderPulling,I=t.onHeaderReleased,_=t.onFooterPulling,A=t.onFooterReleased,R=t.containPullHeader,O=void 0!==R&&R,z=t.containPullFooter,T=void 0!==z&&z,j=t.containBannerView,F=void 0!==j&&j,H=P(P({},L(t,b)),{},{style:r,numberOfColumns:l,columnSpacing:s,interItemSpacing:f,preloadItemNumber:m,contentInset:C,containPullHeader:O,containPullFooter:T,containBannerView:F}),M=[];if("function"==typeof i){var D=i();D&&(M.push(o.a.createElement(Jn,{key:"bannerView"},o.a.cloneElement(D))),H.containBannerView=!0)}if("function"==typeof y){for(var U=this.getPullHeader(v,N,I),W=this.getPullFooter(g,_,A),B=0;B0||e.didTimeout)&&function e(t){"number"==typeof t?ne(t):t&&(ne(t.nodeId),t.childNodes&&t.childNodes.forEach((function(t){return e(t)})))}(t)}),{timeout:50})}var oe={onTouchStart:["onTouchStart","onTouchDown"],onPress:["onPress","onClick"]},le=new RegExp(/^\d+$/),ue=!1;function se(){}function ce(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,(function(e){return String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16))}))}var fe=new RegExp("^on.+Capture$");var de=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function pe(e){if("number"==typeof e)return e;if("string"==typeof e&&de.test(e))try{return parseFloat(e)}catch(t){return e}return e}function he(e){return"[object Function]"===Object.prototype.toString.call(e)}function me(e){e}function ye(){return ue}function ve(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){return"".concat("hpfile://","./").concat(e)}return e}function ge(e){return 5===e}var be=function(){function e(t){T(this,e),this.handlerContainer={},this.nextIdForHandler=0,this.eventName=t}return F(e,[{key:"getEventListeners",value:function(){var e=this;return Object.keys(this.handlerContainer).filter((function(t){return e.handlerContainer[t]})).map((function(t){return e.handlerContainer[t]}))}},{key:"getHandlerSize",value:function(){return Object.keys(this.handlerContainer).length}},{key:"addEventHandler",value:function(e,t){if(!e)throw new TypeError("Invalid arguments for addEventHandler");var n=this.nextIdForHandler;this.nextIdForHandler+=1;var r={id:n,eventHandler:e,context:t},i="eventHandler_".concat(n);return this.handlerContainer[i]=r,n}},{key:"notifyEvent",value:function(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:"removeEventHandler",value:function(e){if("number"!=typeof e)throw new TypeError("Invalid arguments for removeEventHandler");var t="eventHandler_".concat(e);this.handlerContainer[t]&&delete this.handlerContainer[t]}}]),e}(),ke=function(){function e(t,n,r){T(this,e),this.type=t,this.bubbles=!0,this.timeStamp=Date.now(),this.currentTarget=n,this.target=r}return F(e,[{key:"stopPropagation",value:function(){this.bubbles=!1}},{key:"preventDefault",value:function(){}}]),e}(),we=new Map,Se=["%c[event]%c","color: green","color: auto"];function Ee(e,t){var n=e;if(t.memoizedProps&&!t.memoizedProps[e])for(var r=Object.keys(oe),i=0;i0)for(var l,u=!1,s=re(n);!u&&void 0!==(l=r.shift());)try{var c=l,f=c.eventName,d=c.currentTarget,p=c.listener,h=c.isCapture,m=new ke(f,d,s);Object.assign(m,t),h?(p(m),m.bubbles||(u=!0)):("boolean"!=typeof(u=p(m))&&(u=!ye()),m.bubbles||(u=!0))}catch(e){console.reportUncaughtException(e)}}(r,e,a):function(e,t,n){var r=!1,i=n,a=e,o=re(n);do{if(Ce(a=Ee(a,i),i))try{var l=re(i),u=new ke(a,l,o);Object.assign(u,t),"boolean"!=typeof(r=i.memoizedProps[a](u))&&(r=!ye()),u.bubbles||(r=!0)}catch(e){console.reportUncaughtException(e)}if(!1===r)for(i=i.return;i&&!ge(i.tag);)i=i.return}while(!r&&i)}(r,e,a)}}},receiveUIComponentEvent:function(e){if(se.apply(void 0,Se.concat(["receiveUIComponentEvent",e])),e&&Array.isArray(e)&&!(e.length<2)){var t=R(e,3),n=t[0],r=t[1],i=t[2];if("number"==typeof n&&"string"==typeof r){var a=ie(n);a&&Ce(r,a)&&a.memoizedProps[r](i)}}}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=Ne);var Ie=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}(),Pe=function(){function e(t){T(this,e),this.eventName=t,this.listenerIdList=[]}return F(e,[{key:"unregister",value:function(){var e=Ne.getHippyEventHub(this.eventName);if(!e)throw new ReferenceError("No listeners for ".concat(this.eventName));for(var t=this.listenerIdList.length,n=0;n=0?dn(t):t}var Ve=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=Be(t.valueType,r)}var i=Be(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=Ue(t.repeatCount||0),this.inputRange=t.inputRange||[],this.outputRange=t.outputRange||[],this.animationId=Gt.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"===Yt.platform.OS&&(t="onHippyAnimation"),"function"==typeof this.onAnimationStartCallback&&(this.animationStartListener=We.addListener("".concat(t,"Start"),(function(t){t===e.animationId&&(e.animationStartListener.remove(),"function"==typeof e.onAnimationStartCallback&&e.onAnimationStartCallback())}))),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=We.addListener("".concat(t,"End"),(function(t){t===e.animationId&&(e.animationEndListener.remove(),"function"==typeof e.onAnimationEndCallback&&e.onAnimationEndCallback())}))),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=We.addListener("".concat(t,"Cancel"),(function(t){t===e.animationId&&(e.animationCancelListener.remove(),"function"==typeof e.onAnimationCancelCallback&&e.onAnimationCancelCallback())}))),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=We.addListener("".concat(t,"Repeat"),(function(t){t===e.animationId&&"function"==typeof e.onAnimationRepeatCallback&&e.onAnimationRepeatCallback()}))),Gt.callNative("AnimationModule","startAnimation",this.animationId)}},{key:"destory",value:function(){this.destroy()}},{key:"destroy",value:function(){this.removeEventListener(),Gt.callNative("AnimationModule","destroyAnimation",this.animationId)}},{key:"pause",value:function(){Gt.callNative("AnimationModule","pauseAnimation",this.animationId)}},{key:"resume",value:function(){Gt.callNative("AnimationModule","resumeAnimation",this.animationId)}},{key:"updateAnimation",value:function(t){var n=this;if("object"!==A(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=Be(n.valueType,o)}n.startValue=a||0}else"repeatCount"===r?n.repeatCount=Ue(t.repeatCount||0):Object.defineProperty(n,r,{value:i})})),Gt.callNative("AnimationModule","updateAnimation",this.animationId,Object.assign({delay:this.delay,startValue:this.startValue,toValue:Be(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}(),$e=new Le,qe=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=Gt.callNativeWithCallbackId("AnimationModule","createAnimationSet",!0,{repeatCount:Ue(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"===Yt.platform.OS&&(t="onHippyAnimation"),"function"==typeof this.onAnimationStartCallback&&(this.animationStartListener=$e.addListener("".concat(t,"Start"),(function(t){t===e.animationId&&(e.animationStartListener.remove(),"function"==typeof e.onAnimationStartCallback&&e.onAnimationStartCallback())}))),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=$e.addListener("".concat(t,"End"),(function(t){t===e.animationId&&(e.animationEndListener.remove(),"function"==typeof e.onAnimationEndCallback&&e.onAnimationEndCallback())}))),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=$e.addListener("".concat(t,"Cancel"),(function(t){t===e.animationId&&(e.animationCancelListener.remove(),"function"==typeof e.onAnimationCancelCallback&&e.onAnimationCancelCallback())}))),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=$e.addListener("".concat(t,"Repeat"),(function(t){t===e.animationId&&"function"==typeof e.onAnimationRepeatCallback&&e.onAnimationRepeatCallback()}))),Gt.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)&&Gt.callNative("AnimationModule","destroyAnimation",e.animationId)})),Gt.callNative("AnimationModule","destroyAnimation",this.animationId)}},{key:"pause",value:function(){Gt.callNative("AnimationModule","pauseAnimation",this.animationId)}},{key:"resume",value:function(){Gt.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}(),Qe=["%c[native]%c","color: red","color: auto"],Ke={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode")},Ge=!0,Ye=[];function Xe(){Ge&&St()}function Je(e){(function(e){for(var t=[],n=0;n0&&void 0!==arguments[0]&&arguments[0];if(Ge)if(Ge=!1,0!==Ye.length){var t=Z();e?(Je(t),Et(),Ye=[],Ge=!0):Promise.resolve().then((function(){Je(t),Et(),Ye=[],Ge=!0}))}else Ge=!0}function et(e){var t=e.attributes;t.children;return L(t,l)}function tt(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: ".concat(t.tagName));return{id:t.nodeId,pId:t.parentNode&&t.parentNode.nodeId||e,index:t.index,name:t.nativeName,props:P(P({},et(t)),{},{style:t.style})}}function nt(e,t,n,r){var i=[],a=n;return void 0===a&&t&&t.parentNode&&(a=t.parentNode.childNodes.indexOf(t)),t.traverseChildren((function(t){var n=tt(e,t);n&&i.push(n),"function"==typeof r&&r(t)}),a),i}function rt(e){return!!M&&e instanceof M.containerInfo.constructor}function it(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;if(e&&t&&!t.meta.skipAddToDom){var r=Z();if(rt(e)&&!e.isMounted){var i=nt(r,t,n,(function(e){e.isMounted||(e.isMounted=!0)}));Xe(),Ye.push({type:Ke.createNode,nodes:i})}else if(e.isMounted&&!t.isMounted){var a=nt(r,t,n,(function(e){e.isMounted||(e.isMounted=!0)}));Xe(),Ye.push({type:Ke.createNode,nodes:a})}}}function at(e,t,n){if(t&&!t.meta.skipAddToDom){t.isMounted=!1,t.index=n;var r=Z(),i=[{id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:r,index:t.index}];Xe(),Ye.push({type:Ke.deleteNode,nodes:i})}}function ot(e){if(e.isMounted){var t=tt(Z(),e);Xe(),t&&Ye.push({type:Ke.updateNode,nodes:[t]})}}var lt=0;var ut=function(){function e(){T(this,e),this.meta={component:{}},this.mounted=!1,this.index=0,this.childNodes=[],this.parentNode=null,this.nodeId=((lt+=1)%10==0&&(lt+=1),lt)}return F(e,[{key:"toString",value:function(){return this.constructor.name}},{key:"isMounted",get:function(){return this.mounted},set:function(e){this.mounted=e}},{key:"insertBefore",value:function(e,t){if(!e)throw new Error("Can't insert child.");if(!e.meta.skipAddToDom){if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't insert child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't insert child, because it already has a different parent.");var n=this.childNodes.indexOf(t);return e.parentNode=this,this.childNodes.splice(n,0,e),it(this,e,n)}}},{key:"moveChild",value:function(e,t){if(!e)throw new Error("Can't move child.");if(!e.meta.skipAddToDom){if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't move child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't move child, because it already has a different parent.");var n=this.childNodes.indexOf(e);if(this.childNodes.indexOf(t)===n)return e;this.childNodes.splice(n,1),at(0,e,n);var r=this.childNodes.indexOf(t);return this.childNodes.splice(r,0,e),it(this,e,r)}}},{key:"appendChild",value:function(e){if(!e)throw new Error("Can't append child.");if(!e.meta.skipAddToDom){if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");e.parentNode=this,this.childNodes.push(e),it(this,e,this.childNodes.length-1)}}},{key:"removeChild",value:function(e){if(!e)throw new Error("Can't remove child.");if(!e.meta.skipAddToDom){if(!e.parentNode)throw new Error("Can't remove child, because it has no parent.");if(e.parentNode!==this)throw new Error("Can't remove child, because it has a different parent.");var t=this.childNodes.indexOf(e);this.childNodes.splice(t,1),at(0,e,t)}}},{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]:0;this.index=this.parentNode?n:0,e(this),this.childNodes.length&&this.childNodes.forEach((function(n,r){t.traverseChildren.call(n,e,r)}))}}]),e}(),st={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"},ct={totop:"0",totopright:"totopright",toright:"90",tobottomright:"tobottomright",tobottom:"180",tobottomleft:"tobottomleft",toleft:"270",totopleft:"totopleft"},ft="turn",dt="rad",pt="deg";function ht(e){var t=(e||"").replace(/\s*/g,"").toLowerCase(),n=/^([+-]?\d+\.?\d*)+(deg|turn|rad)|(to\w+)$/g.exec(t);if(Array.isArray(n)){var r="180",i=R(n,3),a=i[0],o=i[1],l=i[2];return o&&l?r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pt,n=parseFloat(e),r=e||"",i=e.split("."),a=R(i,2),o=a[1];switch(o&&o.length>2&&(r=n.toFixed(2)),t){case ft:r="".concat((360*n).toFixed(2));break;case dt:r="".concat((180/Math.PI*n).toFixed(2))}return r}(o,l):a&&void 0!==ct[a]&&(r=ct[a]),r}}function mt(e){var t=R((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:dn(n)}:void 0:{color:dn(n)}}function yt(e){var t;return t=e,fe.test(t)&&(e=e.replace("Capture","")),oe[e]?oe[e][1]:e}var vt=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,le.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"===A(e)&&e&&(a=P(P({},a),e))})),Object.keys(a).forEach((function(e){var n=a[e];if(Object.prototype.hasOwnProperty.call(st,e)&&(e=st[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 Ve||n instanceof qe?r[t]={animationId:n.animationId}:null===n?r[t]&&delete r[t]:void 0!==n&&(r[t]=n)}))}));var i=Object.keys(r);i.length&&(Array.isArray(t.style.transform)||(t.style.transform=[]),i.forEach((function(e){return t.style.transform.push({[e]:r[e]})})))}else if(null===n&&void 0!==t.style[e])t.style[e]=void 0;else if(n instanceof Ve||n instanceof qe)t.style[e]={animationId:n.animationId};else if(["caretColor","caret-color"].indexOf(e)>=0)t.attributes["caret-color"]=dn(n);else if(e.toLowerCase().indexOf("colors")>-1)t.style[e]=pn(n);else if(e.toLowerCase().indexOf("color")>-1)t.style[e]=dn(n);else if("backgroundImage"===e&&n)t.style=function(e,t,n){if(0===t.indexOf("linear-gradient")){var r=t.substring(t.indexOf("(")+1,t.lastIndexOf(")")).split(/,(?![^(]*?\))/),i=[];n.linearGradient=n.linearGradient||{},r.forEach((function(e,t){if(0===t){var r=ht(e);if(r)n.linearGradient.angle=r;else{n.linearGradient.angle="180";var a=mt(e);a&&i.push(a)}}else{var o=mt(e);o&&i.push(o)}})),n.linearGradient.colorStopList=i}else n[e]=ve(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 ot(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=nt(Z(),e);Xe(),Ye.push({type:Ke.updateNode,nodes:t})}}(n)),!0}},{match:function(){return["value","defaultValue","placeholder"].indexOf(e)>=0},action:function(){return n.attributes[e]=ce(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"!==Yt.platform.OS}},{match:function(){return["caretColor","caret-color"].indexOf(e)>=0},action:function(){return n.attributes["caret-color"]=dn(t),!1}},{match:function(){return["style"].indexOf(e)>=0},action:function(){return"object"!==A(t)||null==t||(n.setStyleAttribute(t),!1)}},{match:function(){return!0},action:function(){if("function"==typeof t){var r=yt(e);n.attributes[r]=!0,n.attributes["__bind__".concat(r)]=!0}else{n.attributes[e]=t;var i=yt(e);!0===n.attributes["__bind__".concat(i)]&&"function"!=typeof t&&(n.attributes[i]=!1,n.attributes["__bind__".concat(i)]=!1)}return!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(st,e)&&(i=st[e]),"string"==typeof r&&(r=t.trim(),r=i.toLowerCase().indexOf("colors")>-1?pn(r):i.toLowerCase().indexOf("color")>-1?dn(r):pe(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||ot(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)})),ot(this),Ze(!0)}}}},{key:"setText",value:function(e){if("string"!=typeof e)try{e=e.toString()}catch(e){throw new Error("Only string type is acceptable for setText")}return(e=e.trim())||this.getAttribute("text")?(e=(e=ce(e)).replace(/ /g," ").replace(/Â/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}]),n}(ut),gt=$.createNode,bt=$.updateNode,kt=$.deleteNode,wt=$.flushBatch,St=$.startBatch,Et=$.endBatch,Ct=$.sendRenderError,xt=function(e){return ee((function(t){return t.stateNode&&t.stateNode.nodeId===e}))};function Nt(e){if(e instanceof vt)return e;var t=e._reactInternalFiber||e._reactInternals;if(t&&t.child){for(var n=t.child;n&&!(n.stateNode instanceof vt);)n=n.child;return n&&n.stateNode?n.stateNode:null}return null}function It(e){var t=e;if("string"==typeof e){"getNodeIdByRef('".concat(e,"') use string ref will affect to performance, recommend use reference to the ref instead");var n=ee((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=Nt(t);return r?r.nodeId:0}return t.nodeId}function Pt(e,t){var n=e.nativeName,r=e.nodeId;if(!r||!n){var i=Nt(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;l=0&&e.removeChild(t),e.appendChild(t)},appendChildToContainer:function(e,t){e.appendChild(t)},appendInitialChild:function(e,t){e.appendChild(t)},beforeActiveInstanceBlur:function(){},commitMount:function(){},commitTextUpdate:function(){},commitUpdate:function(e,t,n,r,i,a){te(a,e.nodeId);var o=Object.keys(t);0!==o.length&&o.forEach((function(n){return e.setAttribute(n,t[n])}))},clearContainer:function(){},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),te(i,a.nodeId),a},createTextInstance:function(e,t,n,r){var i=t.createElement("p");return i.setAttribute("text",ce(e)),i.meta={component:{name:"Text"}},te(r,i.nodeId),i},detachDeletedInstance:function(){},finalizeContainerChildren:function(){},finalizeInitialChildren:function(){return!0},getChildHostContext:function(){return{}},getPublicInstance:function(e){return e},getInstanceFromNode:function(){throw new Error("Not yet implemented.")},getFundamentalComponentInstance:function(){throw new Error("Not yet implemented.")},getRootHostContext:function(){return{}},hideInstance:function(e){var t={style:{display:"none"}};Object.keys(t).forEach((function(n){return e.setAttribute(n,t[n])}))},hideTextInstance:function(){throw new Error("Not yet implemented.")},insertBefore:function(e,t,n){e.childNodes.indexOf(t)>=0?e.moveChild(t,n):e.insertBefore(t,n)},isOpaqueHydratingObject:function(){throw new Error("Not yet implemented")},makeClientId:function(){throw new Error("Not yet implemented")},makeClientIdInDEV:function(){throw new Error("Not yet implemented")},makeOpaqueHydratingObject:function(){throw new Error("Not yet implemented.")},mountFundamentalComponent:function(){throw new Error("Not yet implemented.")},prepareForCommit:function(){return null},preparePortalMount:function(){},prepareUpdate:function(e,t,n,r){var i={},a=!1;Object.keys(r).forEach((function(e){var t=n[e],o=r[e];switch(e){case"children":t===o||"number"!=typeof o&&"string"!=typeof o||(i[e]=o);break;default:"function"!=typeof t||"function"!=typeof o||Mt(t,o)?Mt(t,o)||(i[e]=o):a=!0}}));var o=0===Object.keys(i).length;return o&&a?{}:o?null:i},replaceContainerChildren:function(){},removeChild:function(e,t){e.removeChild(t),ae(t)},removeChildFromContainer:function(e,t){e.removeChild(t),ae(t)},resetAfterCommit:function(){},resetTextContent:function(){},unmountFundamentalComponent:function(){throw new Error("Not yet implemented.")},updateFundamentalComponent:function(){throw new Error("Not yet implemented.")},unhideTextInstance:function(){throw new Error("Not yet implemented.")},unhideInstance:function(e,t){var n=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(){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}}),Bt=i()(P(P({},Wt),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:function(){},cancelDeferredCallback:function(){}})),Vt=Bt.flushSync,$t=Y.addEventListener,qt=Y.removeEventListener,Qt=Y.dispatchEvent,Kt=Y.AsyncStorage,Gt=Y.Bridge,Yt=Y.Device,Xt=Y.HippyRegister,Jt=Object.freeze({__proto__:null,addEventListener:$t,removeEventListener:qt,dispatchEvent:Qt,AsyncStorage:Kt,BackAndroid:Tt,Bridge:Gt,Clipboard:Ae,Cookie:Re,Device:Yt,HippyRegister:Xt,ImageLoader:je,NetworkInfo:De,UIManager:Lt,flushSync:Vt});function Zt(){for(var e=arguments.length,t=new Array(e),n=0;n255?255:t}function on(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ln(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 un(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,a=ln(i,r,e+1/3),o=ln(i,r,e),l=ln(i,r,e-1/3);return Math.round(255*a)<<24|Math.round(255*o)<<16|Math.round(255*l)<<8}function sn(e){return(parseFloat(e)%360+360)%360/360}function cn(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function fn(e){var t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=rn.hex6.exec(e),Array.isArray(t)?parseInt("".concat(t[1],"ff"),16)>>>0:Object.hasOwnProperty.call(en,e)?en[e]:(t=rn.rgb.exec(e),Array.isArray(t)?(an(t[1])<<24|an(t[2])<<16|an(t[3])<<8|255)>>>0:(t=rn.rgba.exec(e))?(an(t[1])<<24|an(t[2])<<16|an(t[3])<<8|on(t[4]))>>>0:(t=rn.hex3.exec(e))?parseInt("".concat(t[1]+t[1]+t[2]+t[2]+t[3]+t[3],"ff"),16)>>>0:(t=rn.hex8.exec(e))?parseInt(t[1],16)>>>0:(t=rn.hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=rn.hsl.exec(e))?(255|un(sn(t[1]),cn(t[2]),cn(t[3])))>>>0:(t=rn.hsla.exec(e))?(un(sn(t[1]),cn(t[2]),cn(t[3]))|on(t[4]))>>>0:null))}function dn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isInteger(e))return e;var n=fn(e);return t.platform||(t.platform="ios"),null===n?0:(n=(n<<24|n>>>8)>>>0,"android"===t.platform&&(n|=0),n)}function pn(e,t){return Array.isArray(e)?e.map((function(e){return dn(e,t)})):[0]}var hn=function(e){w(n,e);var t=E(n);function n(){var e;return T(this,n),(e=t.call(this)).documentElement=new vt("document"),e}return F(n,[{key:"createElement",value:function(e){return new vt(e)}},{key:"createElementNS",value:function(e,t){return new vt("".concat(e,":").concat(t))}}]),n}(ut);hn.createElement=hn.prototype.createElement,hn.createElementNS=hn.prototype.createElementNS;var mn=Bt.createContainer,yn=Bt.updateContainer,vn=Bt.getPublicRootInstance,gn=(Bt.injectIntoDevTools,['%c[Hippy-React "2.12.2"]%c',"color: #61dafb","color: auto"]),bn=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 hn;this.rootContainer=mn(n,0,!1)}return F(e,[{key:"start",value:function(){Xt.regist(this.config.appName,this.render)}},{key:"render",value:function(e){var t=this.config,n=t.appName,r=t.entryPage,i=t.silent,a=void 0!==i&&i,l=t.bubbles,u=void 0!==l&&l,s=t.callback,c=void 0===s?function(){}:s,f=e.__instanceId__;se.apply(void 0,gn.concat(["Start",n,"with rootViewId",f,e])),this.rootContainer.containerInfo.nodeId=f,a&&me(a),u&&function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];ue=e}(u),J(f,this.rootContainer);var d=o.a.createElement(r,e);return yn(d,this.rootContainer,null,c),vn(this.rootContainer)}}],[{key:"Native",get:function(){return Jt}}]),e}();bn.version="2.12.2";var kn={registerComponent:function(e,t){new bn({appName:e,entryPage:t}).start()}},wn=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,i=L(e,u),a=r;return"boolean"==typeof t&&(a.collapsable=t),o.a.createElement("div",Object.assign({nativeName:"View",style:a},i))}}]),n}(o.a.Component);function Sn(e,t){var n=e.style,r=L(e,s),i=n;if(n&&(Array.isArray(n)?-1===n.filter((function(e){return"object"===A(e)&&e})).findIndex((function(e){return e.color||e.colors}))&&(i[0].color="#000"):"object"===A(n)&&void 0===n.color&&void 0===n.colors&&(i.color="#000")),r.text="","string"==typeof r.children)r.text=ce(r.children);else if("number"==typeof r.children)r.text=ce(r.children.toString());else if(Array.isArray(r.children)){var a=r.children.filter((function(e){return"string"==typeof e||"number"==typeof e})).join("");a&&(r.text=ce(a),r.children=r.text)}return o.a.createElement("p",Object.assign({ref:t,nativeName:"Text",style:i},r))}Sn.displayName="Text";var En=o.a.forwardRef(Sn);En.displayName="Text";var Cn=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"===A(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"===A(e)&&null!==e&&e.uri&&a.push(e.uri)})),a.length&&(a=a.map((function(e){return ve(e)}))),a}},{key:"handleTintColor",value:function(e,t,n){t&&(e.tintColor=dn(t)),Array.isArray(n)&&(e.tintColors=pn(n))}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.style,r=e.imageStyle,i=e.imageRef,a=e.source,l=e.sources,u=e.src,s=e.srcs,f=e.tintColor,d=e.tintColors,p=L(e,c),h=this.getImageUrls({src:u,srcs:s,source:a,sources:l});if("ios"===Yt.platform.OS)h.length&&(p.source=h.map((function(e){return{uri:e}})));else if("android"===Yt.platform.OS)if(1===h.length){var m=R(h,1);p.src=m[0]}else h.length>1&&(p.srcs=h);"string"==typeof p.defaultSource&&(p.defaultSource.indexOf("data:image/"),p.defaultSource=ve(p.defaultSource));var y=P({},n);return this.handleTintColor(y,f,d),p.style=y,t?o.a.createElement(wn,{style:n},o.a.createElement("img",Object.assign({},p,{nativeName:"Image",alt:"",ref:i,style:[{position:"absolute",left:0,right:0,top:0,bottom:0,width:n.width,height:n.height},r]})),t):o.a.createElement("img",Object.assign({},p,{nativeName:"Image",alt:"",ref:i}))}}],[{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=Oe(e);return"function"==typeof t&&r.then((function(e){return t(e.width,e.height)})),"function"==typeof n?r.catch(n):r.catch((function(t){"Failed to get size for image: ".concat(e)})),r}}]),n}(o.a.Component);Cn.prefetch=ze;var xn=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 Ve({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}]),e}();xn.View=wn,xn.Text=En,xn.Image=Cn;var Nn={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 In(e){return o.a.createElement("li",Object.assign({nativeName:"ListViewItem"},e))}var 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:"expandPullHeader",value:function(){Pt(this.instance,"expandPullHeader",[])}},{key:"collapsePullHeader",value:function(e){"android"===Yt.platform.OS?Pt(this.instance,"collapsePullHeader",[e]):void 0!==e?Pt(this.instance,"collapsePullHeaderWithOptions",[e]):Pt(this.instance,"collapsePullHeader",[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=L(t,f);return o.a.createElement("div",Object.assign({nativeName:"PullHeaderView",ref:function(t){e.instance=t}},r),n)}}]),n}(o.a.Component),_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:"expandPullFooter",value:function(){Pt(this.instance,"expandPullFooter",[])}},{key:"collapsePullFooter",value:function(){Pt(this.instance,"collapsePullFooter",[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=L(t,d);return o.a.createElement("div",Object.assign({nativeName:"PullFooterView",ref:function(t){e.instance=t}},r),n)}}]),n}(o.a.Component);_n.defaultProps={sticky:!0};var Ln={onDisappear:"onDisAppear"},An={onDisappear:"onDisappear"},Rn=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(x(r)),r.state={initialListReady:!1},r}return F(n,[{key:"componentDidMount",value:function(){this.props.getRowKey}},{key:"convertName",value:function(e){return"android"===Yt.platform.OS&&Ln[e]?Ln[e]:"ios"===Yt.platform.OS&&An[e]?An[e]:e}},{key:"scrollToIndex",value:function(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Pt(this.instance,"scrollToIndex",[e,t,n])}},{key:"scrollToContentOffset",value:function(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Pt(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,i=null;return"function"==typeof e&&(i=o.a.createElement(Pn,{key:"pull-header",ref:function(e){r.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),i}},{key:"getPullFooter",value:function(e,t,n){var r=this,i=null;return"function"==typeof e&&(i=o.a.createElement(_n,{key:"pull-footer",ref:function(e){r.pullFooter=e},onFooterPulling:t,onFooterReleased:n},e())),i}},{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,i=t.renderRow,a=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,y=t.onHeaderPulling,v=t.onHeaderReleased,g=t.onFooterPulling,b=t.onFooterReleased,k=t.onAppear,w=t.onDisappear,S=t.onWillAppear,E=t.onWillDisappear,C=L(t,p),x=[];if("function"==typeof i){var N=this.state.initialListReady,I=this.props.numberOfRows,_=this.getPullHeader(a,y,v),A=this.getPullFooter(l,g,b);!I&&f&&(I=f.length),N||(I=Math.min(I,d||10));for(var R=function(t){var n={},r=void 0;r=f?i(f[t],null,t):i(t),e.handleRowProps(n,t,{getRowKey:c,getRowStyle:s,getRowType:u,onRowLayout:m,rowShouldSticky:h}),[{func:k,name:"onAppear"},{func:w,name:"onDisappear"},{func:S,name:"onWillAppear"},{func:E,name:"onWillDisappear"}].forEach((function(r){var i=r.func,a=r.name;"function"==typeof i&&(n[e.convertName(a)]=function(){i(t)})})),r&&x.push(o.a.createElement(In,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 bn({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0;delete e.component}var t=[e];this.stack.push(e),Pt(this.instance,"push",t)}},{key:"pop",value:function(e){if(this.stack.size>1){var t=[e];this.stack.pop(),Pt(this.instance,"pop",t)}}},{key:"clear",value:function(){this.stack.clear()}},{key:"render",value:function(){var e=this,t=this.props,n=t.initialRoute,r=(n.component,L(n,m)),i=L(t,y);return i.initialRoute=r,o.a.createElement("div",Object.assign({nativeName:"Navigator",ref:function(t){e.instance=t}},i))}}]),n}(o.a.Component);function jn(e){return o.a.createElement("div",Object.assign({nativeName:"ViewPagerItem"},e,{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}var Fn=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(x(r)),r.setPageWithoutAnimation=r.setPageWithoutAnimation.bind(x(r)),r.onPageScrollStateChanged=r.onPageScrollStateChanged.bind(x(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&&Pt(this.instance,"setPage",[e])}},{key:"setPageWithoutAnimation",value:function(e){"number"==typeof e&&Pt(this.instance,"setPageWithoutAnimation",[e])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.onPageScrollStateChanged,i=L(t,v),a=[];return Array.isArray(n)?a=n.map((function(e){var t={};return"string"==typeof e.key&&(t.key="viewPager_".concat(e.key)),o.a.createElement(jn,Object.assign({},t),e)})):a.push(o.a.createElement(jn,null,n)),"function"==typeof r&&(i.onPageScrollStateChanged=this.onPageScrollStateChanged),o.a.createElement("div",Object.assign({nativeName:"ViewPager",ref:function(t){e.instance=t}},i),a)}}]),n}(o.a.Component);function Hn(){var e=V.platform.Localization;return!!e&&1===e.direction}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._lastNativeText="",r.onChangeText=r.onChangeText.bind(x(r)),r.onKeyboardWillShow=r.onKeyboardWillShow.bind(x(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){Pt(e.instance,"getValue",(function(e){return t(e.text)}))}))}},{key:"setValue",value:function(e){return Pt(this.instance,"setValue",[e]),e}},{key:"focus",value:function(){Pt(this.instance,"focusTextInput",[])}},{key:"blur",value:function(){Pt(this.instance,"blurTextInput",[])}},{key:"showInputMethod",value:function(){Pt(this.instance,"showInputMethod",[])}},{key:"hideInputMethod",value:function(){Pt(this.instance,"hideInputMethod",[])}},{key:"clear",value:function(){Pt(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"===Yt.platform.OS&&(n.keyboardHeight/=Yt.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"===A(t.style)?t.style[n]=e.props[n]:t.style={[n]:e.props[n]},t[n]=void 0)})),Hn()&&(t.style?"object"!==A(t.style)||Array.isArray(t.style)||t.style.textAlign||(t.style.textAlign="right"):t.style={textAlign:"right"}),o.a.createElement("div",Object.assign({nativeName:"TextInput"},t,{ref:function(t){e.instance=t},onChangeText:this.onChangeText,onKeyboardWillShow:this.onKeyboardWillShow}))}}]),n}(o.a.Component),Dn=Yt.window.scale,Un=Math.round(.4*Dn)/Dn;function Wn(e){return e}0===Un&&(Un=1/Dn);var Bn=Object.freeze({__proto__:null,get hairlineWidth(){return Un},create:Wn}),Vn={baseVertical:{flexGrow:1,flexShrink:1,flexDirection:"column",overflow:"scroll"},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:"row",overflow:"scroll"},contentContainerVertical:{collapsable:!1,flexDirection:"column"},contentContainerHorizontal:{collapsable:!1,flexDirection:"row"}},$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"===A(e)&&e&&(r=e.x,i=e.y,a=e.animated),r=r||0,i=i||0,a=!!a,Pt(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;Pt(this.instance,"scrollToWithOptions",[{x:e,y:t,duration:n}])}},{key:"render",value:function(){var e=this,t=this.props,n=t.horizontal,r=t.contentContainerStyle,i=t.children,a=t.style,l=[n?Vn.contentContainerHorizontal:Vn.contentContainerVertical,r],u=n?Object.assign({},Vn.baseHorizontal,a):Object.assign({},Vn.baseVertical,a);return n&&(u.flexDirection=Hn()?"row-reverse":"row"),o.a.createElement("div",Object.assign({nativeName:"ScrollView",ref:function(t){e.instance=t}},this.props,{style:u}),o.a.createElement(wn,{style:l},i))}}]),n}(o.a.Component),qn={modal:{position:"absolute"},container:{position:"absolute",left:0,top:0}},Qn=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"===Yt.platform.OS&&(this.eventSubscription=new Pe("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"===Yt.platform.OS&&this.eventSubscription&&this.eventSubscription.unregister()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.visible,r=e.transparent,i=e.animated,a=this.props.animationType;if(!1===n)return null;var l={backgroundColor:r?"transparent":"white"};return a||(a="none",i&&(a="slide")),o.a.createElement("div",Object.assign({nativeName:"Modal",animationType:a,transparent:r,style:qn.modal},this.props),o.a.createElement(wn,{style:[qn.container,l]},t))}}]),n}(o.a.Component);Qn.defaultProps={visible:!0};var Kn=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(x(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,i=t.nextFocusDownId,a=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=o.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=i&&It(i),y=a&&It(a),v=l&&It(l),g=u&&It(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 o.a.createElement(wn,{focusable:!0,nextFocusDownId:m,nextFocusUpId:y,nextFocusLeftId:v,nextFocusRightId:g,requestFocus:n,style:b,onClick:d,onFocus:this.handleFocus},h);var w=h.memoizedProps.children;return o.a.cloneElement(h,{nextFocusDownId:i,nextFocusUpId:a,nextFocusLeftId:l,nextFocusRightId:u,requestFocus:n,onClick:d,focusable:!0,children:w,style:b,onFocus:this.handleFocus})}}]),n}(o.a.Component);function Gn(e){return o.a.createElement("iframe",Object.assign({title:"hippy",nativeName:"WebView"},e))}var Yn,Xn=function(){function e(t,n,r){var i=this;if(T(this,e),this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),Yn||(Yn=new Pe("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=Yn.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(A(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"===A(e)&&e.id===this.webSocketId){var t=e.type;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,Yn.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,i=L(e,g),a=r;return"boolean"==typeof t&&(a.collapsable=t),o.a.createElement("div",Object.assign({nativeName:"View",style:a},i))}}]),n}(o.a.Component);function Zn(e){return o.a.createElement("li",Object.assign({nativeName:"WaterfallItem"},e))}var er=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(x(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;Pt(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;Pt(this.instance,"scrollToContentOffset",[n,i,o])}},{key:"handleRowProps",value:function(e,t,n){var r=this,i=n.getItemKey,a=n.getItemStyle,o=n.onItemLayout,l=n.getItemType;if("function"==typeof i&&(e.key=i(t)),"function"==typeof a&&(e.style=a(t)),"function"==typeof o&&(e.onLayout=function(e){o.call(r,e,t)}),"function"==typeof l){var u=l(t);Number.isInteger(u),e.type=u}}},{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,i=null;return"function"==typeof e&&(i=o.a.createElement(Pn,{key:"PullHeader",ref:function(e){r.pullHeader=e},onHeaderPulling:t,onHeaderReleased:n},e())),i}},{key:"getPullFooter",value:function(e,t,n){var r=this,i=null;return"function"==typeof e&&(i=o.a.createElement(_n,{key:"PullFooter",ref:function(e){r.pullFooter=e},onFooterPulling:t,onFooterReleased:n},e())),i}},{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,i=t.renderBanner,a=t.numberOfColumns,l=void 0===a?2:a,u=t.columnSpacing,s=void 0===u?0:u,c=t.interItemSpacing,f=void 0===c?0:c,d=t.numberOfItems,p=void 0===d?0:d,h=t.preloadItemNumber,m=void 0===h?0:h,y=t.renderItem,v=t.renderPullHeader,g=t.renderPullFooter,k=t.getItemType,w=t.getItemKey,S=t.getItemStyle,E=t.contentInset,C=void 0===E?{top:0,left:0,bottom:0,right:0}:E,x=t.onItemLayout,N=t.onHeaderPulling,I=t.onHeaderReleased,_=t.onFooterPulling,A=t.onFooterReleased,R=t.containPullHeader,O=void 0!==R&&R,z=t.containPullFooter,T=void 0!==z&&z,j=t.containBannerView,F=void 0!==j&&j,H=P(P({},L(t,b)),{},{style:r,numberOfColumns:l,columnSpacing:s,interItemSpacing:f,preloadItemNumber:m,contentInset:C,containPullHeader:O,containPullFooter:T,containBannerView:F}),M=[];if("function"==typeof i){var D=i();D&&(M.push(o.a.createElement(Jn,{key:"bannerView"},o.a.cloneElement(D))),H.containBannerView=!0)}if("function"==typeof y){for(var U=this.getPullHeader(v,N,I),W=this.getPullFooter(g,_,A),B=0;B *HippyModuleClasses; NSArray *HippyGetModuleClasses(void) { diff --git a/lerna.json b/lerna.json index dcdd543c424..a7b1832a832 100644 --- a/lerna.json +++ b/lerna.json @@ -3,5 +3,5 @@ "packages": [ "packages/*" ], - "version": "2.12.1" + "version": "2.12.2" } diff --git a/packages/hippy-debug-server/CHANGELOG.md b/packages/hippy-debug-server/CHANGELOG.md index d559b1ce150..2c17a4f99d3 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.12.2](https://github.com/Tencent/Hippy/tree/master/packages/hippy-debug-server/compare/2.12.1...2.12.2) (2022-01-26) + +**Note:** Version bump only for package @hippy/debug-server + + + + + ## [2.12.1](https://github.com/Tencent/Hippy/tree/master/packages/hippy-debug-server/compare/2.12.0...2.12.1) (2022-01-18) **Note:** Version bump only for package @hippy/debug-server diff --git a/packages/hippy-debug-server/package-lock.json b/packages/hippy-debug-server/package-lock.json index 98469f74241..58e2274cec9 100644 --- a/packages/hippy-debug-server/package-lock.json +++ b/packages/hippy-debug-server/package-lock.json @@ -1,6 +1,6 @@ { "name": "@hippy/debug-server", - "version": "2.12.1", + "version": "2.12.2", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/packages/hippy-debug-server/package.json b/packages/hippy-debug-server/package.json index 87e9d57e0fd..49e7c906c07 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.12.1", + "version": "2.12.2", "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 469f58f80c2..33f2c2251f8 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.12.2](https://github.com/Tencent/Hippy/tree/master/packages/hippy-react-web/compare/2.12.1...2.12.2) (2022-01-26) + +**Note:** Version bump only for package @hippy/react-web + + + + + ## [2.12.1](https://github.com/Tencent/Hippy/tree/master/packages/hippy-react-web/compare/2.12.0...2.12.1) (2022-01-18) **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 1e4895ecc1e..f9a8666a13d 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.12.1", + "version": "2.12.2", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/packages/hippy-react-web/package.json b/packages/hippy-react-web/package.json index 9f8a257774c..412d2526bca 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.12.1", + "version": "2.12.2", "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 97e20ff38dc..c9b748af989 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.12.2](https://github.com/Tencent/Hippy/tree/master/packages/hippy-react/compare/2.12.1...2.12.2) (2022-01-26) + + +### Bug Fixes + +* **hippy-react:** fixed network-info wrong stored listener ([e3926d9](https://github.com/Tencent/Hippy/tree/master/packages/hippy-react/commit/e3926d9582e0a15eea15ac721e620aeac20fa9cc)) + + + + + ## [2.12.1](https://github.com/Tencent/Hippy/tree/master/packages/hippy-react/compare/2.12.0...2.12.1) (2022-01-18) **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 34799cb54b6..6ccfe1a2abb 100644 --- a/packages/hippy-react/package-lock.json +++ b/packages/hippy-react/package-lock.json @@ -1,6 +1,6 @@ { "name": "@hippy/react", - "version": "2.12.1", + "version": "2.12.2", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/packages/hippy-react/package.json b/packages/hippy-react/package.json index a90d601962b..db3828ed80c 100644 --- a/packages/hippy-react/package.json +++ b/packages/hippy-react/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/react", - "version": "2.12.1", + "version": "2.12.2", "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 31a10512269..f3462fd2b19 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.12.2](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue-css-loader/compare/2.12.1...2.12.2) (2022-01-26) + +**Note:** Version bump only for package @hippy/vue-css-loader + + + + + ## [2.12.1](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue-css-loader/compare/2.12.0...2.12.1) (2022-01-18) **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 8c2ef0b1fe5..aac204bbf8a 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.12.1", + "version": "2.12.2", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/packages/hippy-vue-css-loader/package.json b/packages/hippy-vue-css-loader/package.json index c71e264ae27..acf55adc076 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.12.1", + "version": "2.12.2", "description": "hippy-vue style loader module for webpack", "main": "dist/index.js", "homepage": "http://hippyjs.org", diff --git a/packages/hippy-vue-loader/CHANGELOG.md b/packages/hippy-vue-loader/CHANGELOG.md index c577adbfb67..cc435a46db2 100644 --- a/packages/hippy-vue-loader/CHANGELOG.md +++ b/packages/hippy-vue-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.12.2](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue-loader/compare/2.12.1...2.12.2) (2022-01-26) + +**Note:** Version bump only for package @hippy/vue-loader + + + + + ## [2.12.1](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue-loader/compare/2.12.0...2.12.1) (2022-01-18) **Note:** Version bump only for package @hippy/vue-loader diff --git a/packages/hippy-vue-loader/package-lock.json b/packages/hippy-vue-loader/package-lock.json index e2ed94cea6e..a3950f93438 100644 --- a/packages/hippy-vue-loader/package-lock.json +++ b/packages/hippy-vue-loader/package-lock.json @@ -1,6 +1,6 @@ { "name": "@hippy/vue-loader", - "version": "2.12.1", + "version": "2.12.2", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/packages/hippy-vue-loader/package.json b/packages/hippy-vue-loader/package.json index 6d94cb407ba..d0c6430a3e3 100644 --- a/packages/hippy-vue-loader/package.json +++ b/packages/hippy-vue-loader/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/vue-loader", - "version": "2.12.1", + "version": "2.12.2", "description": "Vue single-file component loader for Webpack", "main": "lib/index.js", "typings": "lib/index.d.ts", diff --git a/packages/hippy-vue-native-components/CHANGELOG.md b/packages/hippy-vue-native-components/CHANGELOG.md index 3ab9d38fe87..065487b3222 100644 --- a/packages/hippy-vue-native-components/CHANGELOG.md +++ b/packages/hippy-vue-native-components/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.12.2](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue-native-components/compare/2.12.1...2.12.2) (2022-01-26) + + +### Features + +* **hippy-vue:** support value for anim repeatCount ([4c7ede7](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue-native-components/commit/4c7ede7453aa4922d7ec9e4e904dbd5124ef403f)) + + + + + ## [2.12.1](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue-native-components/compare/2.12.0...2.12.1) (2022-01-18) **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 6bf2ca34708..ea8fc23400a 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.12.1", + "version": "2.12.2", "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 998073a46f9..aa7756cff6e 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.12.2](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue-router/compare/2.12.1...2.12.2) (2022-01-26) + +**Note:** Version bump only for package @hippy/vue-router + + + + + ## [2.12.1](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue-router/compare/2.12.0...2.12.1) (2022-01-18) **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 026c75570ac..f72902a5051 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.12.1", + "version": "2.12.2", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/packages/hippy-vue-router/package.json b/packages/hippy-vue-router/package.json index e16cfea9039..59817f17902 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.12.1", + "version": "2.12.2", "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 5c9f77cc71e..a4c93cd0f87 100644 --- a/packages/hippy-vue/CHANGELOG.md +++ b/packages/hippy-vue/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.12.2](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue/compare/2.12.1...2.12.2) (2022-01-26) + +**Note:** Version bump only for package @hippy/vue + + + + + ## [2.12.1](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue/compare/2.12.0...2.12.1) (2022-01-18) **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 3b4833f6bb6..6b90106f279 100644 --- a/packages/hippy-vue/package-lock.json +++ b/packages/hippy-vue/package-lock.json @@ -1,6 +1,6 @@ { "name": "@hippy/vue", - "version": "2.12.1", + "version": "2.12.2", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/packages/hippy-vue/package.json b/packages/hippy-vue/package.json index 3b6832878f7..bea0b675dc2 100644 --- a/packages/hippy-vue/package.json +++ b/packages/hippy-vue/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/vue", - "version": "2.12.1", + "version": "2.12.2", "description": "Vue binding for Hippy native framework", "author": "XQ Kuang ", "license": "Apache-2.0",