From 01d6f9a2f9c69c12ed520c4c86176e182bfe9e30 Mon Sep 17 00:00:00 2001 From: zoomchan-cxj Date: Wed, 10 Mar 2021 15:54:30 +0800 Subject: [PATCH] chore(release): released 2.5.3 --- CHANGELOG.md | 23 +++++++++++++++++++ android/sdk/gradle.properties | 2 +- examples/android-demo/res/vendor.android.js | 20 ++++++++-------- examples/hippy-react-demo/package.json | 4 ++-- examples/ios-demo/res/vendor.ios.js | 20 ++++++++-------- hippy.podspec | 2 +- ios/sdk/base/HippyBridge.mm | 2 +- lerna.json | 2 +- packages/hippy-react-web/CHANGELOG.md | 8 +++++++ packages/hippy-react-web/package-lock.json | 2 +- packages/hippy-react-web/package.json | 2 +- packages/hippy-react/CHANGELOG.md | 8 +++++++ packages/hippy-react/package-lock.json | 2 +- packages/hippy-react/package.json | 2 +- packages/hippy-vue-css-loader/CHANGELOG.md | 8 +++++++ .../hippy-vue-css-loader/package-lock.json | 2 +- packages/hippy-vue-css-loader/package.json | 2 +- .../hippy-vue-native-components/CHANGELOG.md | 8 +++++++ .../hippy-vue-native-components/package.json | 2 +- packages/hippy-vue/CHANGELOG.md | 8 +++++++ packages/hippy-vue/package-lock.json | 2 +- packages/hippy-vue/package.json | 2 +- 22 files changed, 98 insertions(+), 35 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 64607adda79..635641b7719 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,29 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.5.3](https://github.com/Tencent/Hippy/compare/2.5.2...2.5.3) (2021-03-10) + + +### Bug Fixes + +* **android:** add maven publish ([f7c4552](https://github.com/Tencent/Hippy/commit/f7c4552c4725132947fdcc45be3e35227ed84d69)) +* **android:** call super.onDestroy() ([0f7e2d9](https://github.com/Tencent/Hippy/commit/0f7e2d945ce3b4688e6742ebb0ce4ee26179c31b)) +* **android:** get thirdParty packageName first ([3fb32f3](https://github.com/Tencent/Hippy/commit/3fb32f3b49256b7b78ad2d5abcd6115150d94ba8)) +* **android:** mListScrollListeners ConcurrentModificationException ([d8b2ab2](https://github.com/Tencent/Hippy/commit/d8b2ab2b846f30bf11f6423eb27eda286abf1df1)) +* **android:** should catch UnsatisfiedLinkError for runScriptFromUri ([28d0a02](https://github.com/Tencent/Hippy/commit/28d0a02df34c5eb497a0a4f7c38aece511848435)) +* **core:** fix DLOG macro ([9eb0bb8](https://github.com/Tencent/Hippy/commit/9eb0bb8ce066e34404a8629d5c411f63c920ce44)) +* **ios:** fix HippyRootView did load finish callback ([e646db5](https://github.com/Tencent/Hippy/commit/e646db5479031ac93f85ab04f78a23a09d67e406)) +* **ios:** try catch malloc exception when make image blurred ([#603](https://github.com/Tencent/Hippy/issues/603)) ([cc2521b](https://github.com/Tencent/Hippy/commit/cc2521bd6cff2a676c363f03e55ef5a9761063d0)) + + +### Features + +* **core:** avoid crash when the jni method does not exist ([05ae0cd](https://github.com/Tencent/Hippy/commit/05ae0cd4d02a8aae24f10f0c51da4c052966ce9f)) + + + + + ## [2.5.2](https://github.com/Tencent/Hippy/compare/2.5.1...2.5.2) (2021-03-08) diff --git a/android/sdk/gradle.properties b/android/sdk/gradle.properties index 6be9dae8770..4b0ad00f6b4 100644 --- a/android/sdk/gradle.properties +++ b/android/sdk/gradle.properties @@ -20,7 +20,7 @@ TARGET_SDK_VERSION=29 ARCHIVES_BASE_NAME=android-sdk #jCenter sdk version -VERSION_NAME=2.5.2 +VERSION_NAME=2.5.3 VERSION_CODE=1 #ABI diff --git a/examples/android-demo/res/vendor.android.js b/examples/android-demo/res/vendor.android.js index c8a4d788e3f..37914eae0f1 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)}({"./node_modules/@hippy/react/dist/index.js":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"Animated",(function(){return yt})),n.d(t,"Animation",(function(){return ke})),n.d(t,"AnimationSet",(function(){return Ce})),n.d(t,"AppRegistry",(function(){return ft})),n.d(t,"AsyncStorage",(function(){return Vt})),n.d(t,"BackAndroid",(function(){return Bt})),n.d(t,"Clipboard",(function(){return qt})),n.d(t,"ConsoleModule",(function(){return on})),n.d(t,"Dimensions",(function(){return pn})),n.d(t,"Easing",(function(){return gt})),n.d(t,"Focusable",(function(){return Ut})),n.d(t,"Hippy",(function(){return an})),n.d(t,"HippyEventEmitter",(function(){return H})),n.d(t,"HippyEventListener",(function(){return M})),n.d(t,"HippyRegister",(function(){return Gt})),n.d(t,"Image",(function(){return bt})),n.d(t,"ImageBackground",(function(){return sn})),n.d(t,"ImageLoaderModule",(function(){return Yt})),n.d(t,"ListView",(function(){return St})),n.d(t,"ListViewItem",(function(){return vt})),n.d(t,"Modal",(function(){return Mt})),n.d(t,"Navigator",(function(){return Nt})),n.d(t,"NetInfo",(function(){return Xt})),n.d(t,"NetworkModule",(function(){return Qt})),n.d(t,"PixelRatio",(function(){return hn})),n.d(t,"Platform",(function(){return ln})),n.d(t,"PullFooter",(function(){return wt})),n.d(t,"PullHeader",(function(){return xt})),n.d(t,"RNfqb",(function(){return un})),n.d(t,"RNfqbEventEmitter",(function(){return fn})),n.d(t,"RNfqbEventListener",(function(){return dn})),n.d(t,"RNfqbRegister",(function(){return cn})),n.d(t,"RefreshWrapper",(function(){return Ct})),n.d(t,"ScrollView",(function(){return Lt})),n.d(t,"StyleSheet",(function(){return Ot})),n.d(t,"Text",(function(){return ht})),n.d(t,"TextInput",(function(){return It})),n.d(t,"TimerModule",(function(){return rn})),n.d(t,"UIManagerModule",(function(){return Jt})),n.d(t,"View",(function(){return dt})),n.d(t,"ViewPager",(function(){return Pt})),n.d(t,"WebSocket",(function(){return Wt})),n.d(t,"WebView",(function(){return Ht})),n.d(t,"callNative",(function(){return Zt})),n.d(t,"callNativeWithCallbackId",(function(){return tn})),n.d(t,"callNativeWithPromise",(function(){return en})),n.d(t,"colorParse",(function(){return Ze})),n.d(t,"removeNativeCallback",(function(){return nn}));var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/react-reconciler/index.js"),l=n.n(o);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t=0||(i[n]=e[n]);return i} /*! - * @hippy/react v2.5.0 - * Build at: Thu Feb 25 2021 18:00:56 GMT+0800 (China Standard Time) + * @hippy/react v2.5.2 + * Build at: Mon Mar 08 2021 22:10:32 GMT+0800 (China Standard Time) * * Tencent is pleased to support the open source community by making * Hippy available. @@ -20,7 +20,7 @@ var hippyReactBase=function(e){var t={};function n(r){if(t[r])return t[r].export * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}e.__GLOBAL__||(e.__GLOBAL__={});const{__GLOBAL__:f}=e;f.nodeId=0,f.animationId=0,f.renderCount=0;const{asyncStorage:d,bridge:p,device:h,document:m,register:b,on:y,off:g,emit:v}=e.Hippy;var x=Object.freeze({__proto__:null,addEventListener:y,removeEventListener:g,dispatchEvent:v,AsyncStorage:d,Bridge:p,Device:h,HippyRegister:b,UIManager:m});class w{constructor(e){this.handlerContainer={},this.nextIdForHandler=0,this.eventName=e}addEventHandler(e,t){if(!e)throw new TypeError("Invalid arguments");const n=this.nextIdForHandler;this.nextIdForHandler+=1;const r={id:n,eventHandler:e,context:t},i="eventHandler_"+n;return this.handlerContainer[i]=r,n}removeEventHandler(e){if("number"!=typeof e)throw new TypeError("Invalid arguments");const t="eventHandler_"+e;this.handlerContainer[t]&&delete this.handlerContainer[t]}notifyEvent(e){Object.keys(this.handlerContainer).forEach(t=>{const n=this.handlerContainer[t];n&&n.eventHandler&&(n.context?n.eventHandler.call(n.context,e):n.eventHandler(e))})}getEventListeners(){return Object.keys(this.handlerContainer).filter(e=>this.handlerContainer[e]).map(e=>this.handlerContainer[e])}getHandlerSize(){return Object.keys(this.handlerContainer).length}}let E,k;function S(e,t){k=e,E=t}function C(){if(!k)throw new Error("getRootViewId must execute after setRootContainer");return k}function T(e){if(!E)return null;const{current:t}=E,n=[t];for(;n.length;){const t=n.shift();if(!t)break;if(e(t))return t;t.child&&n.push(t.child),t.sibling&&n.push(t.sibling)}return null}function N(e){return T(t=>t.stateNode&&t.stateNode.nodeId===e)}const _=new RegExp(/^\d+$/);let P=!1;function I(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)))}const A=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function R(e){return"[object Function]"===Object.prototype.toString.call(e)}function z(e){P=e}const O=new Map;function j(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for getHippyEventHub: "+e);return O.get(e)||null}const L={registerNativeEventHub:function(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for registerNativeEventHub: "+e);let t=O.get(e);return t||(t=new w(e),O.set(e,t)),t},getHippyEventHub:j,unregisterNativeEventHub:function(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for unregisterNativeEventHub: "+e);O.has(e)&&O.delete(e)},receiveNativeEvent:function(e){if(!e||!(e instanceof Array)||e.length<2)throw new TypeError("Invalid params for receiveNativeEvent: "+JSON.stringify(e));const[t,n]=e;if("string"!=typeof t)throw new TypeError("Invalid arguments");const r=j(t);r&&r.notifyEvent(n)},receiveNativeGesture:function(e){if(!e)return;const{id:t}=e,n=N(t);if(!n)return;let r=!1,i=n,{name:o}=e;do{if(i.memoizedProps&&!i.memoizedProps[o]&&"onClick"===o&&i.memoizedProps.onPress&&(o="onPress"),i.memoizedProps&&i.memoizedProps[o]&&"function"==typeof i.memoizedProps[o])try{r=i.memoizedProps[o](e)}catch(e){console.reportUncaughtException(e)}if("boolean"!=typeof r&&(r=!0),!1===r)for(i=i.return;i&&5!==i.tag;)i=i.return}while(!r&&i)},receiveUIComponentEvent:function(e){if(!e||!Array.isArray(e)||e.length<2)return;const[t,n,r]=e;if("number"!=typeof t||"string"!=typeof n)return;const i=N(t);i&&i.memoizedProps&&i.memoizedProps[n]&&"function"==typeof i.memoizedProps[n]&&i.memoizedProps[n](r)}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=L);class F{constructor(e,t){this.callback=e,this.bindListener=t}remove(){"number"==typeof this.callback&&this.bindListener&&(this.bindListener.removeCallback(this.callback),delete this.bindListener)}}class M{constructor(e){this.eventName=e,this.listenerIds=[]}addCallback(e,t){if("function"!=typeof e)throw new TypeError("Invalid arguments");const n=L.registerNativeEventHub(this.eventName);if(!n)throw new ReferenceError("No listeners for "+this.eventName);const r=n.addEventHandler(e,t);if("number"!=typeof r)throw new Error("Fail to addEventHandler");return this.listenerIds.push(r),r}removeCallback(e){if("number"!=typeof e)throw new TypeError("Invalid arguments");const t=L.getHippyEventHub(this.eventName);if(!t)throw new ReferenceError("No listeners for "+this.eventName);t.removeEventHandler(e);const n=this.listenerIds.length;for(let t=0;t255?255:t}function q(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Q(e,t,n){let r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function K(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Q(i,r,e+1/3),l=Q(i,r,e),a=Q(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*l)<<16|Math.round(255*a)<<8}function G(e){return(parseFloat(e)%360+360)%360/360}function Y(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}var X=Object.freeze({__proto__:null,getString:function(){return p.callNativeWithPromise("ClipboardModule","getString")},setString:function(e){p.callNative("ClipboardModule","setString",e)}});var J=Object.freeze({__proto__:null,getCookies:function(e){return p.callNativeWithPromise("network","getCookie",e)},setCookie:function(e,t,n){let r="";"string"==typeof n&&(r=n),n instanceof Date&&(r=n.toUTCString()),p.callNative("network","setCookie",e,t,r)}});function Z(e){return p.callNativeWithPromise("ImageLoaderModule","getSize",e)}function ee(e){p.callNative("ImageLoaderModule","prefetch",e)}var te=Object.freeze({__proto__:null,getSize:Z,prefetch:ee});const ne=new Map;let re;class ie{constructor(e,t){this.eventName=e,this.listener=t}remove(){this.eventName&&this.listener&&(oe(this.eventName,this.listener),delete this.listener)}}function oe(e,t){if(t instanceof ie)return void t.remove();let n=e;e&&"change"===e&&(n="networkStatusDidChange");re.listenerSize(n)<=1&&p.callNative("NetInfo","removeListener",n);const r=ne.get(t);r&&(r.remove(),ne.delete(t))}var le=Object.freeze({__proto__:null,addEventListener:function(e,t){re=new H;let n=e;n&&"change"===n&&(n="networkStatusDidChange"),re.listenerSize(n)<1&&p.callNative("NetInfo","addListener",n);const r=re.addListener(n,e=>{t(e)});return ne.set(r,r),new ie(n,t)},removeEventListener:oe,fetch:function(){return p.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)}});const ae={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode")};let ue=!0,se=[];function ce(){ue&&Re()}function fe(e){ue&&(ue=!1,Promise.resolve().then(()=>{(function(e){const t=[];for(let n=0;n{switch(t.type){case ae.createNode:t.nodes,_e(e,t.nodes);break;case ae.updateNode:t.nodes,"ios"===h.platform.OS?t.nodes.forEach(t=>Pe(e,[t])):Pe(e,t.nodes);break;case ae.deleteNode:t.nodes,"ios"===h.platform.OS?t.nodes.forEach(t=>Ie(e,[t])):Ie(e,t.nodes)}}),ze(),se=[],ue=!0}))}function de(e){const t=e.attributes,{children:n}=t;return c(t,["children"])}function pe(e,t){if(!t.nativeName)return null;if(t.meta.skipAddToDom)return null;if(!t.meta.component)throw new Error("Specific tag is not supported yet: "+t.tagName);return{id:t.nodeId,pId:t.parentNode&&t.parentNode.nodeId||e,index:t.index,name:t.nativeName,props:u(u({},de(t)),{},{style:t.style})}}function he(e,t){const n=[];return t.traverseChildren(t=>{const r=pe(e,t);r&&n.push(r)}),n}function me(e){return!!E&&e instanceof E.containerInfo.constructor}function be(e,t,n=-1){if(!e)return;if(t.meta.skipAddToDom)return;const r=C();if(me(e)&&!e.isMounted){const n=he(r,t);ce(),se.push({type:ae.createNode,nodes:n}),fe(r),e.traverseChildren(e=>{e.isMounted||(e.isMounted=!0)})}else if(e.isMounted&&!t.isMounted){const e=he(r,t);ce(),se.push({type:ae.createNode,nodes:e}),fe(r),t.traverseChildren(e=>{e.isMounted||(e.isMounted=!0)})}}function ye(e,t){if(!t||t.meta.skipAddToDom)return;t.isMounted=!1,t.traverseChildren(e=>{e.isMounted&&(e.isMounted=!1)});const n=C(),r=[{id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:n,index:t.index}];ce(),se.push({type:ae.deleteNode,nodes:r}),fe(n)}function ge(e){if(!e.isMounted)return;const t=C(),n=pe(t,e);ce(),n&&se.push({type:ae.updateNode,nodes:[n]}),fe(t)}let ve=0;class xe{constructor(){this.meta={component:{}},this._isMounted=!1,this.index=0,this.childNodes=[],this.parentNode=null,this.prevSibling=null,this.nextSibling=null,this.nodeId=(ve+=1,ve%10==0&&(ve+=1),ve)}toString(){return this.constructor.name}get firstChild(){return this.childNodes.length?this.childNodes[0]:null}get lastChild(){return this.childNodes.length?this.childNodes[this.childNodes.length-1]:null}get isMounted(){return this._isMounted}set isMounted(e){this._isMounted=e}insertBefore(e,t){if(!e)throw new Error("Can't insert child.");if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't insert child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't insert child, because it already has a different parent.");const n=this.childNodes.indexOf(t);return e.parentNode=this,e.nextSibling=t,e.prevSibling=this.childNodes[n-1],t.prevSibling=e,this.childNodes.splice(n,0,e),be(this,e,n)}moveChild(e,t){if(!e)throw new Error("Can't mvoe child.");if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't move child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't move child, because it already has a different parent.");const n=this.childNodes.indexOf(e),r=this.childNodes.indexOf(t);if(r===n)return e;e.nextSibling=t,e.prevSibling=t.prevSibling,t.prevSibling=e,this.childNodes[r-1]&&(this.childNodes[r-1].nextSibling=e),this.childNodes[r+1]&&(this.childNodes[r+1].prevSibling=e),this.childNodes[n-1]&&(this.childNodes[n-1].nextSibling=this.childNodes[n+1]),this.childNodes[n+1]&&(this.childNodes[n+1].prevSibling=this.childNodes[n-1]),ye(0,e),this.childNodes.splice(r,0,e),this.childNodes.splice(n+(re.index>-1).indexOf(e))}appendChild(e){if(!e)throw new Error("Can't append child.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");e.parentNode=this,this.lastChild&&(e.prevSibling=this.lastChild,this.lastChild.nextSibling=e),this.childNodes.push(e),be(this,e,this.childNodes.length-1)}removeChild(e){if(!e)throw new Error("Can't remove child.");if(!e.parentNode)throw new Error("Can't remove child, because it has no parent.");if(e.parentNode!==this)throw new Error("Can't remove child, because it has a different parent.");e.meta.skipAddToDom||(ye(0,e),e.prevSibling&&(e.prevSibling.nextSibling=e.nextSibling,e.prevSibling=null),e.nextSibling&&(e.nextSibling.prevSibling=e.prevSibling,e.nextSibling=null),this.childNodes=this.childNodes.filter(t=>t!==e))}findChild(e){if(e(this))return this;if(this.childNodes.length)for(let t=0;t!e.meta.skipAddToDom).indexOf(this):0,this.index=t,e(this),this.childNodes.length&&this.childNodes.forEach(t=>{this.traverseChildren.call(t,e)})}}function we(e){return"loop"===e?-1:e}const Ee=new H;class ke{constructor(e){let t=0;e.startValue&&e.startValue.constructor&&"Animation"===e.startValue.constructor.name?t={animationId:e.startValue.animationId}:({startValue:t}=e),this.mode=e.mode||"timing",this.delay=e.delay||0,this.startValue=t||0,this.toValue=e.toValue||0,this.valueType=e.valueType||void 0,this.duration=e.duration||0,this.direction=e.direction||"center",this.timingFunction=e.timingFunction||"linear",this.repeatCount=we(e.repeatCount||0),this.inputRange=e.inputRange||[],this.outputRange=e.outputRange||[],this.animationId=Ge.callNativeWithCallbackId("AnimationModule","createAnimation",!0,this.mode,Object.assign({delay:this.delay,startValue:this.startValue,toValue:this.toValue,duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{})),this.destroy=this.destroy.bind(this),this.onRNfqbAnimationStart=this.onAnimationStart.bind(this),this.onRNfqbAnimationEnd=this.onAnimationEnd.bind(this),this.onRNfqbAnimationCancel=this.onAnimationCancel.bind(this),this.onRNfqbAnimationRepeat=this.onAnimationRepeat.bind(this),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}removeEventListener(){this.animationStartListener&&this.animationStartListener.remove(),this.animationEndListener&&this.animationEndListener.remove(),this.animationCancelListener&&this.animationCancelListener.remove(),this.animationRepeatListener&&this.animationRepeatListener.remove()}start(){this.removeEventListener();let e="onAnimation";e="onHippyAnimation","function"==typeof this.onAnimationStartCallback&&(this.animationStartListener=Ee.addListener(e+"Start",e=>{e===this.animationId&&(this.animationStartListener.remove(),"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback())})),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=Ee.addListener(e+"End",e=>{e===this.animationId&&(this.animationEndListener.remove(),"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback())})),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=Ee.addListener(e+"Cancel",e=>{e===this.animationId&&(this.animationCancelListener.remove(),"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback())})),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=Ee.addListener(e+"Repeat",e=>{e===this.animationId&&"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()})),Ge.callNative("AnimationModule","startAnimation",this.animationId)}destory(){this.destroy()}destroy(){this.removeEventListener(),Ge.callNative("AnimationModule","destroyAnimation",this.animationId)}pause(){Ge.callNative("AnimationModule","pauseAnimation",this.animationId)}resume(){Ge.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;e.startValue instanceof ke?t={animationId:e.startValue.animationId}:({startValue:t}=e),this.startValue=t||0}else"repeatCount"===t?this.repeatCount=we(e.repeatCount||0):Object.defineProperty(this,t,{value:n})}),Ge.callNative("AnimationModule","updateAnimation",this.animationId,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}:{}))}onAnimationStart(e){this.onAnimationStartCallback=e}onAnimationEnd(e){this.onAnimationEndCallback=e}onAnimationCancel(e){this.onAnimationCancelCallback=e}onAnimationRepeat(e){this.onAnimationRepeatCallback=e}}const Se=new H;class Ce{constructor(e){this.animationList=[],e.children.forEach(e=>{this.animationList.push({animationId:e.animation.animationId,follow:e.follow||!1})}),this.animationId=Ge.callNativeWithCallbackId("AnimationModule","createAnimationSet",!0,{repeatCount:we(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=Se.addListener(e+"Start",e=>{e===this.animationId&&(this.animationStartListener.remove(),"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback())})),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=Se.addListener(e+"End",e=>{e===this.animationId&&(this.animationEndListener.remove(),"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback())})),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=Se.addListener(e+"Cancel",e=>{e===this.animationId&&(this.animationCancelListener.remove(),"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback())})),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=Se.addListener(e+"Repeat",e=>{e===this.animationId&&"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()})),Ge.callNative("AnimationModule","startAnimation",this.animationId)}destory(){this.destroy()}destroy(){this.removeEventListener(),this.animationList.forEach(e=>Number.isInteger(e.animationId)&&Ge.callNative("AnimationModule","destroyAnimation",e.animationId)),Ge.callNative("AnimationModule","destroyAnimation",this.animationId)}pause(){Ge.callNative("AnimationModule","pauseAnimation",this.animationId)}resume(){Ge.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 Te={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"};class Ne extends xe{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]}setAttribute(e,t){try{if("boolean"==typeof this.attributes[e]&&""===t&&(t=!0),void 0===e)return void ge(this);switch(e){case"id":if(t===this.id)return;return this.id=t,void function(e){if(!e.isMounted)return;const t=C(),n=he(t,e);ce(),se.push({type:ae.updateNode,nodes:n}),fe(t)}(this);case"value":case"defaultValue":case"placeholder":this.attributes[e]=I(t);break;case"text":this.attributes[e]=t;break;case"numberOfRows":if(this.attributes[e]=t,"ios"!==Ye.platform.OS)return;break;case"onPress":this.attributes.onClick=!0;break;case"style":{if("object"!=typeof t||null==t)return;this.style={};let e=t;if(!Array.isArray(e)&&Object.hasOwnProperty.call(e,0)){const t=[],n={};Object.keys(e).forEach(r=>{var i;i=r,_.test(i)?t.push(e[r]):n[r]=e[r]}),e=[...t,n]}Array.isArray(e)||(e=[e]);let n={};e.forEach(e=>{Array.isArray(e)?e.forEach(e=>{n=u(u({},n),e)}):"object"==typeof e&&e&&(n=u(u({},n),e))}),Object.keys(n).forEach(e=>{const t=n[e];if(Object.prototype.hasOwnProperty.call(Te,e)&&(e=Te[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 ke||r instanceof Ce?e[n]={animationId:r.animationId}:null===r?e[n]&&delete e[n]:void 0!==r&&(e[n]=r)})});const n=Object.keys(e);n.length&&(Array.isArray(this.style.transform)||(this.style.transform=[]),n.forEach(t=>this.style.transform.push({[t]:e[t]})))}else null===t&&void 0!==this.style[e]?delete this.style[e]:t instanceof ke||t instanceof Ce?this.style[e]={animationId:t.animationId}:e.toLowerCase().indexOf("colors")>-1?this.style[e]=et(t):e.toLowerCase().indexOf("color")>-1?this.style[e]=Ze(t):this.style[e]=t});break}default:this.attributes[e]="function"==typeof t||t}let n=!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?et(r):i.toLowerCase().indexOf("color")>-1?Ze(r):function(e){if("number"==typeof e)return e;if("string"==typeof e&&A.test(e))try{return parseFloat(e)}catch(t){return e}return e}(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||ge(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)}),ge(this)}}}setText(e){if("string"!=typeof e)try{e=e.toString()}catch(e){throw new Error("Only string type is acceptable for setText")}return(e=e.trim())||this.getAttribute("text")?(e=(e=I(e)).replace(/ /g," ").replace(/\xc2/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}const{createNode:_e,updateNode:Pe,deleteNode:Ie,flushBatch:Ae,startBatch:Re,endBatch:ze,sendRenderError:Oe}=m,je=N;function Le(e){if(e instanceof Ne)return e;const t=e._reactInternalFiber;if(t&&t.child){let e=t.child;for(;e&&!(e.stateNode instanceof Ne);)e=e.child;return e&&e.stateNode?e.stateNode:null}return null}function Fe(e){let t=e;if("string"==typeof e){const n=T(t=>!!(t.return&&t.return.ref&&t.return.ref._stringRef)&&t.return.ref._stringRef===e);if(!n||!n.stateNode)return 0;t=n.stateNode}if(!t.nodeId){const e=Le(t);return e?e.nodeId:0}return t.nodeId}function Me(e,t,...n){let{nativeName:r,nodeId:i}=e;if(!i||!r){const t=Le(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,l]=n;R(o)&&(l=o,o=[]);null!==C()&&("ios"===h.platform.OS?(R(l)&&Array.isArray(o)&&o.push(l),p.callNative("UIManagerModule","callUIFunction",[r,i,t,o])):"android"===h.platform.OS&&(R(l)?p.callNative("UIManagerModule","callUIFunction",[i,t,o],l):p.callNative("UIManagerModule","callUIFunction",[i,t,o])))}function Ue(e,t,n){const r=Fe(t);return new Promise((t,i)=>r?p.callNative("UIManagerModule",e,r,e=>(n&&R(n)&&n(e),"this view is null"===e?i(new Error("Android cannot get the node")):t(e))):(n&&R(n)&&n("this view is null"),i(new Error(e+" cannot get nodeId"))))}var He=Object.freeze({__proto__:null,createNode:_e,updateNode:Pe,deleteNode:Ie,flushBatch:Ae,startBatch:Re,endBatch:ze,sendRenderError:Oe,getNodeById:je,getNodeIdByRef:Fe,getElementFromFiberRef:Le,callUIFunction:Me,measureInWindow:function(e,t){return Ue("measureInWindow",e,t)},measureInAppWindow:function(e,t){return"android"===h.platform.OS?Ue("measureInWindow",e,t):Ue("measureInAppWindow",e,t)}});const De=new H,We=new Set,Ve={exitApp(){p.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(p.callNative("DeviceEventModule","setListenBackPress",!0),We.add(e),{remove(){Ve.removeListener(e)}}),removeListener(e){We.delete(e),0===We.size&&p.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){De.addListener("hardwareBackPress",()=>{let e=!0;[...We].reverse().every(t=>"function"!=typeof t||!t()||(e=!1,!1)),e&&Ve.exitApp()})}},Be=(Ve.initEventListener(),Ve),{addEventListener:$e,removeEventListener:qe,dispatchEvent:Qe,AsyncStorage:Ke,Bridge:Ge,Device:Ye,HippyRegister:Xe}=x;var Je=Object.freeze({__proto__:null,addEventListener:$e,removeEventListener:qe,dispatchEvent:Qe,AsyncStorage:Ke,BackAndroid:Be,Bridge:Ge,Clipboard:X,Cookie:J,Device:Ye,HippyRegister:Xe,ImageLoader:te,NetworkInfo:le,UIManager:He});function Ze(e,t={}){if(Number.isInteger(e))return e;let n=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=B.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(W,e)?W[e]:(t=B.rgb.exec(e),Array.isArray(t)?($(t[1])<<24|$(t[2])<<16|$(t[3])<<8|255)>>>0:(t=B.rgba.exec(e),t?($(t[1])<<24|$(t[2])<<16|$(t[3])<<8|q(t[4]))>>>0:(t=B.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=B.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=B.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=B.hsl.exec(e),t?(255|K(G(t[1]),Y(t[2]),Y(t[3])))>>>0:(t=B.hsla.exec(e),t?(K(G(t[1]),Y(t[2]),Y(t[3]))|q(t[4]))>>>0:null))))))))}(e);return t.platform||(t.platform="android"),null===n?0:(n=(n<<24|n>>>8)>>>0,"android"===t.platform&&(n|=0),n)}function et(e,t){return Array.isArray(e)?e.map(e=>Ze(e,t)):[0]}class tt extends xe{constructor(){super(),this.documentElement=new Ne("document")}createElement(e){return new Ne(e)}createElementNS(e,t){return new Ne(`${e}:${t}`)}}tt.createElement=tt.prototype.createElement,tt.createElementNS=tt.prototype.createElementNS;var nt=Array.isArray,rt=Object.keys,it=Object.prototype.hasOwnProperty;var ot=Object.freeze({__proto__:null,appendChild:function(e,t){e.childNodes.indexOf(t)>=0&&e.removeChild(t),e.appendChild(t)},appendChildToContainer:function(e,t){e.appendChild(t)},appendInitialChild:function(e,t){e.appendChild(t)},commitMount:function(){},commitTextUpdate:function(){},commitUpdate:function(e,t){Object.keys(t).forEach(n=>e.setAttribute(n,t[n]))},createContainerChildSet:function(){},createInstance:function(e,t,n,r,i){const o=n.createElement(e);return Object.keys(t).forEach(e=>{switch(e){case"children":break;case"nativeName":o.meta.component.name=t.nativeName;break;default:o.setAttribute(e,t[e])}}),[5,7].indexOf(i.tag)<0&&(o.meta.skipAddToDom=!0),o},createTextInstance:function(e,t){const n=t.createElement("p");return n.setAttribute("text",I(e)),n.meta={component:{name:"Text",skipAddToDom:!0}},n},finalizeContainerChildren:function(){},finalizeInitialChildren:function(){return!0},getPublicInstance:function(e){return e},insertBefore:function(e,t,n){e.childNodes.indexOf(t)>0?e.moveChild(t,n):e.insertBefore(t,n)},prepareForCommit:function(){},prepareUpdate:function(e,t,n,r){const i={};return Object.keys(r).forEach(e=>{const t=n[e],o=r[e];switch(e){case"children":t===o||"number"!=typeof o&&"string"!=typeof o||(i[e]=o);break;default:"function"==typeof t&&"function"==typeof o||function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,i,o,l=nt(t),a=nt(n);if(l&&a){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(l!=a)return!1;var u=t instanceof Date,s=n instanceof Date;if(u!=s)return!1;if(u&&s)return t.getTime()==n.getTime();var c=t instanceof RegExp,f=n instanceof RegExp;if(c!=f)return!1;if(c&&f)return t.toString()==n.toString();var d=rt(t);if((i=d.length)!==rt(n).length)return!1;for(r=i;0!=r--;)if(!it.call(n,d[r]))return!1;for(r=i;0!=r--;)if(!e(t[o=d[r]],n[o]))return!1;return!0}return t!=t&&n!=n}(t,o)||(i[e]=o)}}),Object.keys(i).length?i:null},replaceContainerChildren:function(){},removeChild:function(e,t){e.removeChild(t)},removeChildFromContainer:function(e,t){e.removeChild(t)},resetAfterCommit:function(){},resetTextContent:function(){},getRootHostContext:function(){return{}},getChildHostContext:function(){return{}},shouldDeprioritizeSubtree:function(){return!0},shouldSetTextContent:function(e,t){if(t&&"Text"===t.nativeName||-1!==["p","span"].indexOf(e)){const{children:e}=t;return"string"==typeof e||"number"==typeof e}return!1}});const lt=l()(u(u({},ot),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:()=>{},cancelDeferredCallback:()=>{}})),{createContainer:at,updateContainer:ut,getPublicRootInstance:st}=lt;class ct{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 tt;this.rootContainer=at(t,!1,!1)}static get Native(){return Je}start(){Xe.regist(this.config.appName,this.render)}render(e){const{appName:t,entryPage:n,silent:r=!1,callback:o=(()=>{})}=this.config,{__instanceId__:l}=e;this.rootContainer.containerInfo.nodeId=l,r&&z(r),S(l,this.rootContainer);const a=i.a.createElement(n,e);return ut(a,this.rootContainer,null,o),st(this.rootContainer)}}ct.version="2.5.0";const ft={registerComponent(e,t){new ct({appName:e,entryPage:t}).start()}};class dt extends i.a.Component{render(){const e=this.props,{collapsable:t,style:n={}}=e,r=c(e,["collapsable","style"]),o=n;return"boolean"==typeof t&&(o.collapsable=t),i.a.createElement("div",Object.assign({nativeName:"View",style:o},r))}}function pt(e,t){let{style:n}=e,r=c(e,["style"]);const o=n;if(n&&(Array.isArray(n)?-1===n.filter(e=>"object"==typeof e&&e).findIndex(e=>e.color||e.colors)&&(o[0].color="#000"):"object"==typeof n&&void 0===n.color&&void 0===n.colors&&(o.color="#000")),r.text="","string"==typeof r.children)r.text=I(r.children);else if("number"==typeof r.children)r.text=I(r.children.toString());else if(Array.isArray(r.children)){const e=r.children.filter(e=>"string"==typeof e||"number"==typeof e).join("");e&&(r.text=I(e),r.children=r.text)}return i.a.createElement("p",Object.assign({ref:t,nativeName:"Text",style:o},r))}pt.displayName="Text";const ht=i.a.forwardRef(pt);function mt(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){0;return`${"hpfile://"}./${e}`}return e}ht.displayName="Text";class bt extends i.a.Component{static get resizeMode(){return{contain:"contain",cover:"cover",stretch:"stretch",center:"center",repeat:"repeat"}}static getSize(e,t,n){if("string"!=typeof e)throw new TypeError("Image.getSize first argument must be a string url");const r=Z(e);return"function"==typeof t&&r.then(e=>t(e.width,e.height)),"function"==typeof n?r.catch(n):r.catch(e=>{}),r}render(){const e=this.props,{children:t,style:n,imageStyle:r,imageRef:o,source:l,sources:a,src:s,srcs:f,tintColor:d,tintColors:p}=e,h=c(e,["children","style","imageStyle","imageRef","source","sources","src","srcs","tintColor","tintColors"]);let m=[];if("string"==typeof s&&m.push(s),Array.isArray(f)&&(m=[...m,...f]),l)if("string"==typeof l)m.push(l);else if("object"==typeof l&&null!==l){const{uri:e}=l;e&&m.push(e)}a&&Array.isArray(a)&&a.forEach(e=>{"string"==typeof e?m.push(e):"object"==typeof e&&null!==e&&e.uri&&m.push(e.uri)}),m.length&&(m=m.map(e=>mt(e))),"ios"===Ye.platform.OS?m.length&&(h.source=m.map(e=>({uri:e}))):"android"===Ye.platform.OS&&(1===m.length?[h.src]=m:m.length>1&&(h.srcs=m)),"string"==typeof h.defaultSource&&(h.defaultSource.indexOf("data:image/"),h.defaultSource=mt(h.defaultSource));const b=u({},n);return d&&(b.tintColor=Ze(d)),Array.isArray(p)&&(b.tintColors=et(p)),h.style=b,t?i.a.createElement(dt,{style:n},i.a.createElement("img",Object.assign({},h,{nativeName:"Image",alt:"",ref:o,style:[{position:"absolute",left:0,right:0,top:0,bottom:0,width:n.width,height:n.height},r]})),t):i.a.createElement("img",Object.assign({},h,{nativeName:"Image",alt:"",ref:o}))}}bt.prefetch=ee;class yt{constructor(){this.Value=yt.Value}static Value(e){return e}static timing(e,t){return new ke({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}yt.View=dt,yt.Text=ht,yt.Image=bt;const gt={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 vt(e){return i.a.createElement("li",Object.assign({nativeName:"ListViewItem"},e))}class xt extends i.a.Component{constructor(){super(...arguments),this.instance=null}expandPullHeader(){Me(this.instance,"expandPullHeader",[])}collapsePullHeader(){Me(this.instance,"collapsePullHeader",[])}render(){const e=this.props,{children:t}=e,n=c(e,["children"]);return i.a.createElement("div",Object.assign({nativeName:"PullHeaderView",ref:e=>{this.instance=e}},n),t)}}class wt extends i.a.Component{constructor(){super(...arguments),this.instance=null}expandPullFooter(){Me(this.instance,"expandPullFooter",[])}collapsePullFooter(){Me(this.instance,"collapsePullFooter",[])}render(){const e=this.props,{children:t}=e,n=c(e,["children"]);return i.a.createElement("div",Object.assign({nativeName:"PullFooterView",ref:e=>{this.instance=e}},n),t)}}wt.defaultProps={sticky:!0};const Et={onDisappear:"onDisAppear"},kt={onDisappear:"onDisappear"};class St extends i.a.Component{constructor(e){super(e),this.instance=null,this.pullHeader=null,this.pullFooter=null,this.handleInitialListReady=this.handleInitialListReady.bind(this),this.state={initialListReady:!1}}componentDidMount(){const{getRowKey:e}=this.props}convertName(e){return"android"===Ye.platform.OS&&Et[e]?Et[e]:"ios"===Ye.platform.OS&&kt[e]?kt[e]:e}scrollToIndex(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Me(this.instance,"scrollToIndex",[e,t,n])}scrollToContentOffset(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Me(this.instance,"scrollToContentOffset",[e,t,n])}expandPullHeader(){this.pullHeader&&this.pullHeader.expandPullHeader()}collapsePullHeader(){this.pullHeader&&this.pullHeader.collapsePullHeader()}expandPullFooter(){this.pullFooter&&this.pullFooter.expandPullFooter()}collapsePullFooter(){this.pullFooter&&this.pullFooter.collapsePullFooter()}handleInitialListReady(){this.setState({initialListReady:!0})}render(){const e=this.props,{children:t,style:n,renderRow:r,renderPullHeader:o,renderPullFooter:l,getRowType:a,getRowStyle:s,getRowKey:f,dataSource:d,initialListSize:p,rowShouldSticky:h,onRowLayout:m,onHeaderPulling:b,onHeaderReleased:y,onFooterPulling:g,onFooterReleased:v,onAppear:x,onDisappear:w,onWillAppear:E,onWillDisappear:k}=e,S=c(e,["children","style","renderRow","renderPullHeader","renderPullFooter","getRowType","getRowStyle","getRowKey","dataSource","initialListSize","rowShouldSticky","onRowLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","onAppear","onDisappear","onWillAppear","onWillDisappear"]),C=[];if("function"==typeof r){const{initialListReady:e}=this.state;let{numberOfRows:t}=this.props,c=null,T=null;"function"==typeof o&&(c=i.a.createElement(xt,{ref:e=>{this.pullHeader=e},onHeaderPulling:b,onHeaderReleased:y},o())),"function"==typeof l&&(T=i.a.createElement(wt,{ref:e=>{this.pullFooter=e},onFooterPulling:g,onFooterReleased:v},l())),!t&&d&&(t=d.length),e||(t=Math.min(t,p||10));for(let e=0;e{m(t,e)}),"function"==typeof x&&(t[this.convertName(x.name)]=()=>{x(e)}),"function"==typeof w&&(t[this.convertName(w.name)]=()=>{w(e)}),"function"==typeof E&&(t[this.convertName(E.name)]=()=>{E(e)}),"function"==typeof k&&(t[this.convertName(k.name)]=()=>{k(e)}),"function"==typeof a){const n=a(e);Number.isInteger(n),t.type=n}"function"==typeof h&&(t.sticky=h(e)),n&&C.push(i.a.createElement(vt,Object.assign({},t),n))}c&&C.unshift(c),T&&C.push(T),"function"==typeof h&&Object.assign(S,{rowShouldSticky:!0});const N=[x,w,E,k];S.exposureEventEnabled=N.some(e=>"function"==typeof e),S.numberOfRows=C.length,S.initialListSize=p,S.style=u({overflow:"scroll"},n)}return!S.onLoadMore&&S.onEndReached&&(S.onLoadMore=S.onEndReached),i.a.createElement("ul",Object.assign({ref:e=>{this.instance=e},nativeName:"ListView",initialListReady:this.handleInitialListReady},S),C.length?C:t)}}St.defaultProps={numberOfRows:0};class Ct extends i.a.Component{constructor(e){super(e),this.instance=null,this.refreshComplected=this.refreshCompleted.bind(this)}getRefresh(){const{getRefresh:e}=this.props;return"function"==typeof e&&e()||null}startRefresh(){Me(this.instance,"startRefresh",null)}refreshCompleted(){Me(this.instance,"refreshComplected",null)}render(){const e=this.props,{children:t}=e,n=c(e,["children"]);return i.a.createElement("div",Object.assign({nativeName:"RefreshWrapper",ref:e=>{this.instance=e}},n),i.a.createElement("div",{nativeName:"RefreshWrapperItemView",style:[{left:0,right:0,position:"absolute"}]},this.getRefresh()),t)}}class Tt{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 ct({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0}delete e.component}const t=[e];this.stack.push(e),Me(this.instance,"push",t)}pop(e){if(this.stack.size>1){const t=[e];this.stack.pop(),Me(this.instance,"pop",t)}}clear(){this.stack.clear()}render(){const e=this.props,{initialRoute:{component:t}}=e,n=c(e.initialRoute,["component"]),r=c(e,["initialRoute"]);return r.initialRoute=n,i.a.createElement("div",Object.assign({nativeName:"Navigator",ref:e=>{this.instance=e}},r))}}function _t(e){return i.a.createElement("div",Object.assign({nativeName:"ViewPagerItem"},e,{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}class Pt extends i.a.Component{constructor(e){super(e),this.instance=null,this.setPage=this.setPage.bind(this),this.setPageWithoutAnimation=this.setPageWithoutAnimation.bind(this),this.onPageScrollStateChanged=this.onPageScrollStateChanged.bind(this)}onPageScrollStateChanged(e){const{onPageScrollStateChanged:t}=this.props;t&&t(e.pageScrollState)}setPage(e){"number"==typeof e&&Me(this.instance,"setPage",[e])}setPageWithoutAnimation(e){"number"==typeof e&&Me(this.instance,"setPageWithoutAnimation",[e])}render(){const e=this.props,{children:t,onPageScrollStateChanged:n}=e,r=c(e,["children","onPageScrollStateChanged"]);let o=[];return Array.isArray(t)?o=t.map(e=>{const t={};return"string"==typeof e.key&&(t.key="viewPager_"+e.key),i.a.createElement(_t,Object.assign({},t),e)}):o.push(i.a.createElement(_t,null,t)),"function"==typeof n&&(r.onPageScrollStateChanged=this.onPageScrollStateChanged),i.a.createElement("div",Object.assign({nativeName:"ViewPager",ref:e=>{this.instance=e}},r),o)}}class It extends i.a.Component{constructor(e){super(e),this.instance=null,this._lastNativeText="",this._onChangeText=this._onChangeText.bind(this),this._onKeyboardWillShow=this._onKeyboardWillShow.bind(this)}componentDidMount(){const{value:e,autoFocus:t}=this.props;this._lastNativeText=e,t&&this.focus()}componentWillUnmount(){this.blur()}getValue(){return new Promise(e=>{Me(this.instance,"getValue",t=>e(t.text))})}setValue(e){return Me(this.instance,"setValue",[e]),e}focus(){Me(this.instance,"focusTextInput",[])}blur(){Me(this.instance,"blurTextInput",[])}showInputMethod(){Me(this.instance,"showInputMethod",[])}hideInputMethod(){Me(this.instance,"hideInputMethod",[])}clear(){Me(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"===Ye.platform.OS&&(n.keyboardHeight/=Ye.screen.scale),"function"==typeof t&&t(n)}render(){const e=u({},this.props);return["underlineColorAndroid","placeholderTextColor","placeholderTextColors"].forEach(t=>{"string"==typeof this.props[t]&&(Array.isArray(e.style)?e.style.push({[t]:this.props[t]}):"object"==typeof e.style?e.style[t]=this.props[t]:e.style={[t]:this.props[t]},delete e[t])}),i.a.createElement("div",Object.assign({nativeName:"TextInput"},e,{ref:e=>{this.instance=e},onChangeText:this._onChangeText,onKeyboardWillShow:this._onKeyboardWillShow}))}}const At=Ye.window.scale;let Rt=Math.round(.4*At)/At;function zt(e){return e}0===Rt&&(Rt=1/At);var Ot=Object.freeze({__proto__:null,get hairlineWidth(){return Rt},create:zt});const jt={baseVertical:{flexGrow:1,flexShrink:1,flexDirection:"column",overflow:"scroll"},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:"row",overflow:"scroll"},contentContainerVertical:{collapse:!1,flexDirection:"column"},contentContainerHorizontal:{collapse:!1,flexDirection:"row"}};class Lt extends i.a.Component{constructor(){super(...arguments),this.instance=null}scrollTo(e,t,n=!0){let r=e,i=t,o=n;"number"==typeof e||"object"==typeof e&&e&&({x:r,y:i,animated:o}=e),r=r||0,i=i||0,o=!!o,Me(this.instance,"scrollTo",[r,i,o])}scrollToWithDuration(e=0,t=0,n=1e3){Me(this.instance,"scrollToWithOptions",[{x:e,y:t,duration:n}])}render(){const{horizontal:e,contentContainerStyle:t,children:n,style:r}=this.props,o=[e?jt.contentContainerHorizontal:jt.contentContainerVertical,t],l=e?Object.assign({},r,jt.baseHorizontal):Object.assign({},r,jt.baseVertical);return i.a.createElement("div",Object.assign({nativeName:"ScrollView",ref:e=>{this.instance=e}},this.props,{style:l}),i.a.createElement(dt,{style:o},n))}}const Ft={modal:{position:"absolute"},container:{position:"absolute",left:0,top:0}};class Mt extends i.a.Component{constructor(e){super(e),this.eventSubscription=null}componentDidMount(){"ios"===Ye.platform.OS&&(this.eventSubscription=new M("modalDismissed"),this.eventSubscription.addCallback(e=>{const{primaryKey:t,onDismiss:n}=this.props;e.primaryKey===t&&"function"==typeof n&&n()}))}componentWillUnmount(){"ios"===Ye.platform.OS&&this.eventSubscription&&this.eventSubscription.unregister()}render(){const{children:e,visible:t,transparent:n,animated:r}=this.props;let{animationType:o}=this.props;if(!1===t)return null;const l={backgroundColor:n?"transparent":"white"};return o||(o="none",r&&(o="slide")),i.a.createElement("div",Object.assign({nativeName:"Modal",animationType:o,transparent:n,style:Ft.modal},this.props),i.a.createElement(dt,{style:[Ft.container,l]},e))}}Mt.defaultProps={visible:!0};class Ut extends i.a.Component{constructor(e){super(e);const{requestFocus:t}=this.props;this.state={isFocus:!!t},this.handleFocus=this.handleFocus.bind(this)}handleFocus(e){const{onFocus:t}=this.props;"function"==typeof t&&t(e);const{isFocus:n}=this.state;n!==e.focus&&this.setState({isFocus:e.focus})}render(){const{requestFocus:e,children:t,nextFocusDownId:n,nextFocusUpId:r,nextFocusLeftId:o,nextFocusRightId:l,style:a,noFocusStyle:s,focusStyle:c,onClick:f}=this.props,{isFocus:d}=this.state,p=i.a.Children.only(t);let h;p&&p.child&&p.child.memoizedProps&&p.child.memoizedProps.nativeName?h=p.child.memoizedProps.nativeName:p&&p.type&&p.type.name&&(h=p.type.name);const m=n&&Fe(n),b=r&&Fe(r),y=o&&Fe(o),g=l&&Fe(l);let v=a;if("Text"!==h){const e=p.memoizedProps.style;v=u(u({},v),e)}if(Object.assign(v,d?c:s),"Text"===h)return i.a.createElement(dt,{focusable:!0,nextFocusDownId:m,nextFocusUpId:b,nextFocusLeftId:y,nextFocusRightId:g,requestFocus:e,style:v,onClick:f,onFocus:this.handleFocus},p);const{children:x}=p.memoizedProps;return i.a.cloneElement(p,{nextFocusDownId:n,nextFocusUpId:r,nextFocusLeftId:o,nextFocusRightId:l,requestFocus:e,onClick:f,focusable:!0,children:x,style:v,onFocus:this.handleFocus})}}function Ht(e){return i.a.createElement("iframe",Object.assign({title:"hippy",nativeName:"WebView"},e))}let Dt;class Wt{constructor(e,t,n){if(this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),Dt||(Dt=new M("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!e||"string"!=typeof e)throw new TypeError("Invalid WebSocket url");const r=u({},n);if(void 0!==t)if(Array.isArray(t)&&t.length>0)r["Sec-WebSocket-Protocol"]=t.join(",");else{if("string"!=typeof t)throw new TypeError("Invalid WebSocket protocals");r["Sec-WebSocket-Protocol"]=t}const i={headers:r,url:e};this.url=e,this.webSocketCallbackId=Dt.addCallback(this.onWebSocketEvent),p.callNativeWithPromise("websocket","connect",i).then(e=>{e&&0===e.code&&"number"==typeof e.id&&(this.webSocketId=e.id)})}close(e,t){1===this.readyState&&(this.readyState=2,p.callNative("websocket","close",{id:this.webSocketId,code:e,reason:t}))}send(e){if(1===this.readyState){if("string"!=typeof e)throw new TypeError("Unsupported websocket data type: "+typeof e);p.callNative("websocket","send",{id:this.webSocketId,data:e})}}set onopen(e){this.webSocketCallbacks.onOpen=e}set onclose(e){this.webSocketCallbacks.onClose=e}set onerror(e){this.webSocketCallbacks.onError=e}set onmessage(e){this.webSocketCallbacks.onMessage=e}onWebSocketEvent(e){if("object"!=typeof e||e.id!==this.webSocketId)return;const{type:t}=e;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,Dt.removeCallback(this.webSocketCallbackId));const n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}e.WebSocket=Wt;const{AsyncStorage:Vt,BackAndroid:Bt,Bridge:$t,Clipboard:qt,Cookie:Qt,Device:Kt,HippyRegister:Gt,ImageLoader:Yt,NetworkInfo:Xt,UIManager:Jt}=Je,{callNative:Zt,callNativeWithPromise:en,callNativeWithCallbackId:tn,removeNativeCallback:nn}=$t,rn=null,on=console,ln=Kt.platform,an=ct,un=ct,sn=bt,cn=Gt,fn=H,dn=M,pn={get:e=>Kt[e]},hn={get:()=>Kt.screen.scale};t.default=ct}.call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/object-assign/index.js":function(e,t,n){"use strict"; + */(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}e.__GLOBAL__||(e.__GLOBAL__={});const{__GLOBAL__:f}=e;f.nodeId=0,f.animationId=0,f.renderCount=0;const{asyncStorage:d,bridge:p,device:h,document:m,register:b,on:y,off:g,emit:v}=e.Hippy;var x=Object.freeze({__proto__:null,addEventListener:y,removeEventListener:g,dispatchEvent:v,AsyncStorage:d,Bridge:p,Device:h,HippyRegister:b,UIManager:m});class w{constructor(e){this.handlerContainer={},this.nextIdForHandler=0,this.eventName=e}addEventHandler(e,t){if(!e)throw new TypeError("Invalid arguments");const n=this.nextIdForHandler;this.nextIdForHandler+=1;const r={id:n,eventHandler:e,context:t},i="eventHandler_"+n;return this.handlerContainer[i]=r,n}removeEventHandler(e){if("number"!=typeof e)throw new TypeError("Invalid arguments");const t="eventHandler_"+e;this.handlerContainer[t]&&delete this.handlerContainer[t]}notifyEvent(e){Object.keys(this.handlerContainer).forEach(t=>{const n=this.handlerContainer[t];n&&n.eventHandler&&(n.context?n.eventHandler.call(n.context,e):n.eventHandler(e))})}getEventListeners(){return Object.keys(this.handlerContainer).filter(e=>this.handlerContainer[e]).map(e=>this.handlerContainer[e])}getHandlerSize(){return Object.keys(this.handlerContainer).length}}let E,k;function S(e,t){k=e,E=t}function C(){if(!k)throw new Error("getRootViewId must execute after setRootContainer");return k}function T(e){if(!E)return null;const{current:t}=E,n=[t];for(;n.length;){const t=n.shift();if(!t)break;if(e(t))return t;t.child&&n.push(t.child),t.sibling&&n.push(t.sibling)}return null}function N(e){return T(t=>t.stateNode&&t.stateNode.nodeId===e)}const _=new RegExp(/^\d+$/);let P=!1;function I(e){return e.replace(/\\u[\dA-F]{4}|\\x[\dA-F]{2}/gi,e=>String.fromCharCode(parseInt(e.replace(/\\u|\\x/g,""),16)))}const A=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function R(e){return"[object Function]"===Object.prototype.toString.call(e)}function z(e){P=e}const O=new Map;function j(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for getHippyEventHub: "+e);return O.get(e)||null}const L={registerNativeEventHub:function(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for registerNativeEventHub: "+e);let t=O.get(e);return t||(t=new w(e),O.set(e,t)),t},getHippyEventHub:j,unregisterNativeEventHub:function(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for unregisterNativeEventHub: "+e);O.has(e)&&O.delete(e)},receiveNativeEvent:function(e){if(!e||!(e instanceof Array)||e.length<2)throw new TypeError("Invalid params for receiveNativeEvent: "+JSON.stringify(e));const[t,n]=e;if("string"!=typeof t)throw new TypeError("Invalid arguments");const r=j(t);r&&r.notifyEvent(n)},receiveNativeGesture:function(e){if(!e)return;const{id:t}=e,n=N(t);if(!n)return;let r=!1,i=n,{name:o}=e;do{if(i.memoizedProps&&!i.memoizedProps[o]&&"onClick"===o&&i.memoizedProps.onPress&&(o="onPress"),i.memoizedProps&&i.memoizedProps[o]&&"function"==typeof i.memoizedProps[o])try{r=i.memoizedProps[o](e)}catch(e){console.reportUncaughtException(e)}if("boolean"!=typeof r&&(r=!0),!1===r)for(i=i.return;i&&5!==i.tag;)i=i.return}while(!r&&i)},receiveUIComponentEvent:function(e){if(!e||!Array.isArray(e)||e.length<2)return;const[t,n,r]=e;if("number"!=typeof t||"string"!=typeof n)return;const i=N(t);i&&i.memoizedProps&&i.memoizedProps[n]&&"function"==typeof i.memoizedProps[n]&&i.memoizedProps[n](r)}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=L);class F{constructor(e,t){this.callback=e,this.bindListener=t}remove(){"number"==typeof this.callback&&this.bindListener&&(this.bindListener.removeCallback(this.callback),delete this.bindListener)}}class M{constructor(e){this.eventName=e,this.listenerIds=[]}addCallback(e,t){if("function"!=typeof e)throw new TypeError("Invalid arguments");const n=L.registerNativeEventHub(this.eventName);if(!n)throw new ReferenceError("No listeners for "+this.eventName);const r=n.addEventHandler(e,t);if("number"!=typeof r)throw new Error("Fail to addEventHandler");return this.listenerIds.push(r),r}removeCallback(e){if("number"!=typeof e)throw new TypeError("Invalid arguments");const t=L.getHippyEventHub(this.eventName);if(!t)throw new ReferenceError("No listeners for "+this.eventName);t.removeEventHandler(e);const n=this.listenerIds.length;for(let t=0;t255?255:t}function q(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Q(e,t,n){let r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function K(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Q(i,r,e+1/3),l=Q(i,r,e),a=Q(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*l)<<16|Math.round(255*a)<<8}function G(e){return(parseFloat(e)%360+360)%360/360}function Y(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}var X=Object.freeze({__proto__:null,getString:function(){return p.callNativeWithPromise("ClipboardModule","getString")},setString:function(e){p.callNative("ClipboardModule","setString",e)}});var J=Object.freeze({__proto__:null,getCookies:function(e){return p.callNativeWithPromise("network","getCookie",e)},setCookie:function(e,t,n){let r="";"string"==typeof n&&(r=n),n instanceof Date&&(r=n.toUTCString()),p.callNative("network","setCookie",e,t,r)}});function Z(e){return p.callNativeWithPromise("ImageLoaderModule","getSize",e)}function ee(e){p.callNative("ImageLoaderModule","prefetch",e)}var te=Object.freeze({__proto__:null,getSize:Z,prefetch:ee});const ne=new Map;let re;class ie{constructor(e,t){this.eventName=e,this.listener=t}remove(){this.eventName&&this.listener&&(oe(this.eventName,this.listener),delete this.listener)}}function oe(e,t){if(t instanceof ie)return void t.remove();let n=e;e&&"change"===e&&(n="networkStatusDidChange");re.listenerSize(n)<=1&&p.callNative("NetInfo","removeListener",n);const r=ne.get(t);r&&(r.remove(),ne.delete(t))}var le=Object.freeze({__proto__:null,addEventListener:function(e,t){re=new H;let n=e;n&&"change"===n&&(n="networkStatusDidChange"),re.listenerSize(n)<1&&p.callNative("NetInfo","addListener",n);const r=re.addListener(n,e=>{t(e)});return ne.set(r,r),new ie(n,t)},removeEventListener:oe,fetch:function(){return p.callNativeWithPromise("NetInfo","getCurrentConnectivity").then(e=>e.network_info)}});const ae={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode")};let ue=!0,se=[];function ce(){ue&&Re()}function fe(e){ue&&(ue=!1,Promise.resolve().then(()=>{(function(e){const t=[];for(let n=0;n{switch(t.type){case ae.createNode:t.nodes,_e(e,t.nodes);break;case ae.updateNode:t.nodes,"ios"===h.platform.OS?t.nodes.forEach(t=>Pe(e,[t])):Pe(e,t.nodes);break;case ae.deleteNode:t.nodes,"ios"===h.platform.OS?t.nodes.forEach(t=>Ie(e,[t])):Ie(e,t.nodes)}}),ze(),se=[],ue=!0}))}function de(e){const t=e.attributes,{children:n}=t;return c(t,["children"])}function pe(e,t){if(!t.nativeName)return null;if(t.meta.skipAddToDom)return null;if(!t.meta.component)throw new Error("Specific tag is not supported yet: "+t.tagName);return{id:t.nodeId,pId:t.parentNode&&t.parentNode.nodeId||e,index:t.index,name:t.nativeName,props:u(u({},de(t)),{},{style:t.style})}}function he(e,t){const n=[];return t.traverseChildren(t=>{const r=pe(e,t);r&&n.push(r)}),n}function me(e){return!!E&&e instanceof E.containerInfo.constructor}function be(e,t,n=-1){if(!e)return;if(t.meta.skipAddToDom)return;const r=C();if(me(e)&&!e.isMounted){const n=he(r,t);ce(),se.push({type:ae.createNode,nodes:n}),fe(r),e.traverseChildren(e=>{e.isMounted||(e.isMounted=!0)})}else if(e.isMounted&&!t.isMounted){const e=he(r,t);ce(),se.push({type:ae.createNode,nodes:e}),fe(r),t.traverseChildren(e=>{e.isMounted||(e.isMounted=!0)})}}function ye(e,t){if(!t||t.meta.skipAddToDom)return;t.isMounted=!1,t.traverseChildren(e=>{e.isMounted&&(e.isMounted=!1)});const n=C(),r=[{id:t.nodeId,pId:t.parentNode?t.parentNode.nodeId:n,index:t.index}];ce(),se.push({type:ae.deleteNode,nodes:r}),fe(n)}function ge(e){if(!e.isMounted)return;const t=C(),n=pe(t,e);ce(),n&&se.push({type:ae.updateNode,nodes:[n]}),fe(t)}let ve=0;class xe{constructor(){this.meta={component:{}},this._isMounted=!1,this.index=0,this.childNodes=[],this.parentNode=null,this.prevSibling=null,this.nextSibling=null,this.nodeId=(ve+=1,ve%10==0&&(ve+=1),ve)}toString(){return this.constructor.name}get firstChild(){return this.childNodes.length?this.childNodes[0]:null}get lastChild(){return this.childNodes.length?this.childNodes[this.childNodes.length-1]:null}get isMounted(){return this._isMounted}set isMounted(e){this._isMounted=e}insertBefore(e,t){if(!e)throw new Error("Can't insert child.");if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't insert child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't insert child, because it already has a different parent.");const n=this.childNodes.indexOf(t);return e.parentNode=this,e.nextSibling=t,e.prevSibling=this.childNodes[n-1],t.prevSibling=e,this.childNodes.splice(n,0,e),be(this,e,n)}moveChild(e,t){if(!e)throw new Error("Can't mvoe child.");if(!t)return this.appendChild(e);if(t.parentNode!==this)throw new Error("Can't move child, because the reference node has a different parent.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't move child, because it already has a different parent.");const n=this.childNodes.indexOf(e),r=this.childNodes.indexOf(t);if(r===n)return e;e.nextSibling=t,e.prevSibling=t.prevSibling,t.prevSibling=e,this.childNodes[r-1]&&(this.childNodes[r-1].nextSibling=e),this.childNodes[r+1]&&(this.childNodes[r+1].prevSibling=e),this.childNodes[n-1]&&(this.childNodes[n-1].nextSibling=this.childNodes[n+1]),this.childNodes[n+1]&&(this.childNodes[n+1].prevSibling=this.childNodes[n-1]),ye(0,e),this.childNodes.splice(r,0,e),this.childNodes.splice(n+(re.index>-1).indexOf(e))}appendChild(e){if(!e)throw new Error("Can't append child.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");e.parentNode=this,this.lastChild&&(e.prevSibling=this.lastChild,this.lastChild.nextSibling=e),this.childNodes.push(e),be(this,e,this.childNodes.length-1)}removeChild(e){if(!e)throw new Error("Can't remove child.");if(!e.parentNode)throw new Error("Can't remove child, because it has no parent.");if(e.parentNode!==this)throw new Error("Can't remove child, because it has a different parent.");e.meta.skipAddToDom||(ye(0,e),e.prevSibling&&(e.prevSibling.nextSibling=e.nextSibling,e.prevSibling=null),e.nextSibling&&(e.nextSibling.prevSibling=e.prevSibling,e.nextSibling=null),this.childNodes=this.childNodes.filter(t=>t!==e))}findChild(e){if(e(this))return this;if(this.childNodes.length)for(let t=0;t!e.meta.skipAddToDom).indexOf(this):0,this.index=t,e(this),this.childNodes.length&&this.childNodes.forEach(t=>{this.traverseChildren.call(t,e)})}}function we(e){return"loop"===e?-1:e}const Ee=new H;class ke{constructor(e){let t=0;e.startValue&&e.startValue.constructor&&"Animation"===e.startValue.constructor.name?t={animationId:e.startValue.animationId}:({startValue:t}=e),this.mode=e.mode||"timing",this.delay=e.delay||0,this.startValue=t||0,this.toValue=e.toValue||0,this.valueType=e.valueType||void 0,this.duration=e.duration||0,this.direction=e.direction||"center",this.timingFunction=e.timingFunction||"linear",this.repeatCount=we(e.repeatCount||0),this.inputRange=e.inputRange||[],this.outputRange=e.outputRange||[],this.animationId=Ge.callNativeWithCallbackId("AnimationModule","createAnimation",!0,this.mode,Object.assign({delay:this.delay,startValue:this.startValue,toValue:this.toValue,duration:this.duration,direction:this.direction,timingFunction:this.timingFunction,repeatCount:this.repeatCount,inputRange:this.inputRange,outputRange:this.outputRange},this.valueType?{valueType:this.valueType}:{})),this.destroy=this.destroy.bind(this),this.onRNfqbAnimationStart=this.onAnimationStart.bind(this),this.onRNfqbAnimationEnd=this.onAnimationEnd.bind(this),this.onRNfqbAnimationCancel=this.onAnimationCancel.bind(this),this.onRNfqbAnimationRepeat=this.onAnimationRepeat.bind(this),this.onHippyAnimationStart=this.onAnimationStart.bind(this),this.onHippyAnimationEnd=this.onAnimationEnd.bind(this),this.onHippyAnimationCancel=this.onAnimationCancel.bind(this),this.onHippyAnimationRepeat=this.onAnimationRepeat.bind(this)}removeEventListener(){this.animationStartListener&&this.animationStartListener.remove(),this.animationEndListener&&this.animationEndListener.remove(),this.animationCancelListener&&this.animationCancelListener.remove(),this.animationRepeatListener&&this.animationRepeatListener.remove()}start(){this.removeEventListener();let e="onAnimation";e="onHippyAnimation","function"==typeof this.onAnimationStartCallback&&(this.animationStartListener=Ee.addListener(e+"Start",e=>{e===this.animationId&&(this.animationStartListener.remove(),"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback())})),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=Ee.addListener(e+"End",e=>{e===this.animationId&&(this.animationEndListener.remove(),"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback())})),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=Ee.addListener(e+"Cancel",e=>{e===this.animationId&&(this.animationCancelListener.remove(),"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback())})),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=Ee.addListener(e+"Repeat",e=>{e===this.animationId&&"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()})),Ge.callNative("AnimationModule","startAnimation",this.animationId)}destory(){this.destroy()}destroy(){this.removeEventListener(),Ge.callNative("AnimationModule","destroyAnimation",this.animationId)}pause(){Ge.callNative("AnimationModule","pauseAnimation",this.animationId)}resume(){Ge.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;e.startValue instanceof ke?t={animationId:e.startValue.animationId}:({startValue:t}=e),this.startValue=t||0}else"repeatCount"===t?this.repeatCount=we(e.repeatCount||0):Object.defineProperty(this,t,{value:n})}),Ge.callNative("AnimationModule","updateAnimation",this.animationId,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}:{}))}onAnimationStart(e){this.onAnimationStartCallback=e}onAnimationEnd(e){this.onAnimationEndCallback=e}onAnimationCancel(e){this.onAnimationCancelCallback=e}onAnimationRepeat(e){this.onAnimationRepeatCallback=e}}const Se=new H;class Ce{constructor(e){this.animationList=[],e.children.forEach(e=>{this.animationList.push({animationId:e.animation.animationId,follow:e.follow||!1})}),this.animationId=Ge.callNativeWithCallbackId("AnimationModule","createAnimationSet",!0,{repeatCount:we(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=Se.addListener(e+"Start",e=>{e===this.animationId&&(this.animationStartListener.remove(),"function"==typeof this.onAnimationStartCallback&&this.onAnimationStartCallback())})),"function"==typeof this.onAnimationEndCallback&&(this.animationEndListener=Se.addListener(e+"End",e=>{e===this.animationId&&(this.animationEndListener.remove(),"function"==typeof this.onAnimationEndCallback&&this.onAnimationEndCallback())})),"function"==typeof this.onAnimationCancelCallback&&(this.animationCancelListener=Se.addListener(e+"Cancel",e=>{e===this.animationId&&(this.animationCancelListener.remove(),"function"==typeof this.onAnimationCancelCallback&&this.onAnimationCancelCallback())})),"function"==typeof this.onAnimationRepeatCallback&&(this.animationRepeatListener=Se.addListener(e+"Repeat",e=>{e===this.animationId&&"function"==typeof this.onAnimationRepeatCallback&&this.onAnimationRepeatCallback()})),Ge.callNative("AnimationModule","startAnimation",this.animationId)}destory(){this.destroy()}destroy(){this.removeEventListener(),this.animationList.forEach(e=>Number.isInteger(e.animationId)&&Ge.callNative("AnimationModule","destroyAnimation",e.animationId)),Ge.callNative("AnimationModule","destroyAnimation",this.animationId)}pause(){Ge.callNative("AnimationModule","pauseAnimation",this.animationId)}resume(){Ge.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 Te={textDecoration:"textDecorationLine",boxShadowOffset:"shadowOffset",boxShadowOffsetX:"shadowOffsetX",boxShadowOffsetY:"shadowOffsetY",boxShadowOpacity:"shadowOpacity",boxShadowRadius:"shadowRadius",boxShadowSpread:"shadowSpread",boxShadowColor:"shadowColor"};class Ne extends xe{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]}setAttribute(e,t){try{if("boolean"==typeof this.attributes[e]&&""===t&&(t=!0),void 0===e)return void ge(this);switch(e){case"id":if(t===this.id)return;return this.id=t,void function(e){if(!e.isMounted)return;const t=C(),n=he(t,e);ce(),se.push({type:ae.updateNode,nodes:n}),fe(t)}(this);case"value":case"defaultValue":case"placeholder":this.attributes[e]=I(t);break;case"text":this.attributes[e]=t;break;case"numberOfRows":if(this.attributes[e]=t,"ios"!==Ye.platform.OS)return;break;case"onPress":this.attributes.onClick=!0;break;case"style":{if("object"!=typeof t||null==t)return;this.style={};let e=t;if(!Array.isArray(e)&&Object.hasOwnProperty.call(e,0)){const t=[],n={};Object.keys(e).forEach(r=>{var i;i=r,_.test(i)?t.push(e[r]):n[r]=e[r]}),e=[...t,n]}Array.isArray(e)||(e=[e]);let n={};e.forEach(e=>{Array.isArray(e)?e.forEach(e=>{n=u(u({},n),e)}):"object"==typeof e&&e&&(n=u(u({},n),e))}),Object.keys(n).forEach(e=>{const t=n[e];if(Object.prototype.hasOwnProperty.call(Te,e)&&(e=Te[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 ke||r instanceof Ce?e[n]={animationId:r.animationId}:null===r?e[n]&&delete e[n]:void 0!==r&&(e[n]=r)})});const n=Object.keys(e);n.length&&(Array.isArray(this.style.transform)||(this.style.transform=[]),n.forEach(t=>this.style.transform.push({[t]:e[t]})))}else null===t&&void 0!==this.style[e]?delete this.style[e]:t instanceof ke||t instanceof Ce?this.style[e]={animationId:t.animationId}:e.toLowerCase().indexOf("colors")>-1?this.style[e]=et(t):e.toLowerCase().indexOf("color")>-1?this.style[e]=Ze(t):this.style[e]=t});break}default:this.attributes[e]="function"==typeof t||t}let n=!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?et(r):i.toLowerCase().indexOf("color")>-1?Ze(r):function(e){if("number"==typeof e)return e;if("string"==typeof e&&A.test(e))try{return parseFloat(e)}catch(t){return e}return e}(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||ge(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)}),ge(this)}}}setText(e){if("string"!=typeof e)try{e=e.toString()}catch(e){throw new Error("Only string type is acceptable for setText")}return(e=e.trim())||this.getAttribute("text")?(e=(e=I(e)).replace(/ /g," ").replace(/\xc2/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}const{createNode:_e,updateNode:Pe,deleteNode:Ie,flushBatch:Ae,startBatch:Re,endBatch:ze,sendRenderError:Oe}=m,je=N;function Le(e){if(e instanceof Ne)return e;const t=e._reactInternalFiber;if(t&&t.child){let e=t.child;for(;e&&!(e.stateNode instanceof Ne);)e=e.child;return e&&e.stateNode?e.stateNode:null}return null}function Fe(e){let t=e;if("string"==typeof e){const n=T(t=>!!(t.return&&t.return.ref&&t.return.ref._stringRef)&&t.return.ref._stringRef===e);if(!n||!n.stateNode)return 0;t=n.stateNode}if(!t.nodeId){const e=Le(t);return e?e.nodeId:0}return t.nodeId}function Me(e,t,...n){let{nativeName:r,nodeId:i}=e;if(!i||!r){const t=Le(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,l]=n;R(o)&&(l=o,o=[]);null!==C()&&("ios"===h.platform.OS?(R(l)&&Array.isArray(o)&&o.push(l),p.callNative("UIManagerModule","callUIFunction",[r,i,t,o])):"android"===h.platform.OS&&(R(l)?p.callNative("UIManagerModule","callUIFunction",[i,t,o],l):p.callNative("UIManagerModule","callUIFunction",[i,t,o])))}function Ue(e,t,n){const r=Fe(t);return new Promise((t,i)=>r?p.callNative("UIManagerModule",e,r,e=>(n&&R(n)&&n(e),"this view is null"===e?i(new Error("Android cannot get the node")):t(e))):(n&&R(n)&&n("this view is null"),i(new Error(e+" cannot get nodeId"))))}var He=Object.freeze({__proto__:null,createNode:_e,updateNode:Pe,deleteNode:Ie,flushBatch:Ae,startBatch:Re,endBatch:ze,sendRenderError:Oe,getNodeById:je,getNodeIdByRef:Fe,getElementFromFiberRef:Le,callUIFunction:Me,measureInWindow:function(e,t){return Ue("measureInWindow",e,t)},measureInAppWindow:function(e,t){return"android"===h.platform.OS?Ue("measureInWindow",e,t):Ue("measureInAppWindow",e,t)}});const De=new H,We=new Set,Ve={exitApp(){p.callNative("DeviceEventModule","invokeDefaultBackPressHandler")},addListener:e=>(p.callNative("DeviceEventModule","setListenBackPress",!0),We.add(e),{remove(){Ve.removeListener(e)}}),removeListener(e){We.delete(e),0===We.size&&p.callNative("DeviceEventModule","setListenBackPress",!1)},initEventListener(){De.addListener("hardwareBackPress",()=>{let e=!0;[...We].reverse().every(t=>"function"!=typeof t||!t()||(e=!1,!1)),e&&Ve.exitApp()})}},Be=(Ve.initEventListener(),Ve),{addEventListener:$e,removeEventListener:qe,dispatchEvent:Qe,AsyncStorage:Ke,Bridge:Ge,Device:Ye,HippyRegister:Xe}=x;var Je=Object.freeze({__proto__:null,addEventListener:$e,removeEventListener:qe,dispatchEvent:Qe,AsyncStorage:Ke,BackAndroid:Be,Bridge:Ge,Clipboard:X,Cookie:J,Device:Ye,HippyRegister:Xe,ImageLoader:te,NetworkInfo:le,UIManager:He});function Ze(e,t={}){if(Number.isInteger(e))return e;let n=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=B.hex6.exec(e),Array.isArray(t)?parseInt(t[1]+"ff",16)>>>0:Object.hasOwnProperty.call(W,e)?W[e]:(t=B.rgb.exec(e),Array.isArray(t)?($(t[1])<<24|$(t[2])<<16|$(t[3])<<8|255)>>>0:(t=B.rgba.exec(e),t?($(t[1])<<24|$(t[2])<<16|$(t[3])<<8|q(t[4]))>>>0:(t=B.hex3.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=B.hex8.exec(e),t?parseInt(t[1],16)>>>0:(t=B.hex4.exec(e),t?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=B.hsl.exec(e),t?(255|K(G(t[1]),Y(t[2]),Y(t[3])))>>>0:(t=B.hsla.exec(e),t?(K(G(t[1]),Y(t[2]),Y(t[3]))|q(t[4]))>>>0:null))))))))}(e);return t.platform||(t.platform="android"),null===n?0:(n=(n<<24|n>>>8)>>>0,"android"===t.platform&&(n|=0),n)}function et(e,t){return Array.isArray(e)?e.map(e=>Ze(e,t)):[0]}class tt extends xe{constructor(){super(),this.documentElement=new Ne("document")}createElement(e){return new Ne(e)}createElementNS(e,t){return new Ne(`${e}:${t}`)}}tt.createElement=tt.prototype.createElement,tt.createElementNS=tt.prototype.createElementNS;var nt=Array.isArray,rt=Object.keys,it=Object.prototype.hasOwnProperty;var ot=Object.freeze({__proto__:null,appendChild:function(e,t){e.childNodes.indexOf(t)>=0&&e.removeChild(t),e.appendChild(t)},appendChildToContainer:function(e,t){e.appendChild(t)},appendInitialChild:function(e,t){e.appendChild(t)},commitMount:function(){},commitTextUpdate:function(){},commitUpdate:function(e,t){Object.keys(t).forEach(n=>e.setAttribute(n,t[n]))},createContainerChildSet:function(){},createInstance:function(e,t,n,r,i){const o=n.createElement(e);return Object.keys(t).forEach(e=>{switch(e){case"children":break;case"nativeName":o.meta.component.name=t.nativeName;break;default:o.setAttribute(e,t[e])}}),[5,7].indexOf(i.tag)<0&&(o.meta.skipAddToDom=!0),o},createTextInstance:function(e,t){const n=t.createElement("p");return n.setAttribute("text",I(e)),n.meta={component:{name:"Text",skipAddToDom:!0}},n},finalizeContainerChildren:function(){},finalizeInitialChildren:function(){return!0},getPublicInstance:function(e){return e},insertBefore:function(e,t,n){e.childNodes.indexOf(t)>0?e.moveChild(t,n):e.insertBefore(t,n)},prepareForCommit:function(){},prepareUpdate:function(e,t,n,r){const i={};return Object.keys(r).forEach(e=>{const t=n[e],o=r[e];switch(e){case"children":t===o||"number"!=typeof o&&"string"!=typeof o||(i[e]=o);break;default:"function"==typeof t&&"function"==typeof o||function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,i,o,l=nt(t),a=nt(n);if(l&&a){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(l!=a)return!1;var u=t instanceof Date,s=n instanceof Date;if(u!=s)return!1;if(u&&s)return t.getTime()==n.getTime();var c=t instanceof RegExp,f=n instanceof RegExp;if(c!=f)return!1;if(c&&f)return t.toString()==n.toString();var d=rt(t);if((i=d.length)!==rt(n).length)return!1;for(r=i;0!=r--;)if(!it.call(n,d[r]))return!1;for(r=i;0!=r--;)if(!e(t[o=d[r]],n[o]))return!1;return!0}return t!=t&&n!=n}(t,o)||(i[e]=o)}}),Object.keys(i).length?i:null},replaceContainerChildren:function(){},removeChild:function(e,t){e.removeChild(t)},removeChildFromContainer:function(e,t){e.removeChild(t)},resetAfterCommit:function(){},resetTextContent:function(){},getRootHostContext:function(){return{}},getChildHostContext:function(){return{}},shouldDeprioritizeSubtree:function(){return!0},shouldSetTextContent:function(e,t){if(t&&"Text"===t.nativeName||-1!==["p","span"].indexOf(e)){const{children:e}=t;return"string"==typeof e||"number"==typeof e}return!1}});const lt=l()(u(u({},ot),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:()=>{},cancelDeferredCallback:()=>{}})),{createContainer:at,updateContainer:ut,getPublicRootInstance:st}=lt;class ct{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 tt;this.rootContainer=at(t,!1,!1)}static get Native(){return Je}start(){Xe.regist(this.config.appName,this.render)}render(e){const{appName:t,entryPage:n,silent:r=!1,callback:o=(()=>{})}=this.config,{__instanceId__:l}=e;this.rootContainer.containerInfo.nodeId=l,r&&z(r),S(l,this.rootContainer);const a=i.a.createElement(n,e);return ut(a,this.rootContainer,null,o),st(this.rootContainer)}}ct.version="2.5.2";const ft={registerComponent(e,t){new ct({appName:e,entryPage:t}).start()}};class dt extends i.a.Component{render(){const e=this.props,{collapsable:t,style:n={}}=e,r=c(e,["collapsable","style"]),o=n;return"boolean"==typeof t&&(o.collapsable=t),i.a.createElement("div",Object.assign({nativeName:"View",style:o},r))}}function pt(e,t){let{style:n}=e,r=c(e,["style"]);const o=n;if(n&&(Array.isArray(n)?-1===n.filter(e=>"object"==typeof e&&e).findIndex(e=>e.color||e.colors)&&(o[0].color="#000"):"object"==typeof n&&void 0===n.color&&void 0===n.colors&&(o.color="#000")),r.text="","string"==typeof r.children)r.text=I(r.children);else if("number"==typeof r.children)r.text=I(r.children.toString());else if(Array.isArray(r.children)){const e=r.children.filter(e=>"string"==typeof e||"number"==typeof e).join("");e&&(r.text=I(e),r.children=r.text)}return i.a.createElement("p",Object.assign({ref:t,nativeName:"Text",style:o},r))}pt.displayName="Text";const ht=i.a.forwardRef(pt);function mt(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){0;return`${"hpfile://"}./${e}`}return e}ht.displayName="Text";class bt extends i.a.Component{static get resizeMode(){return{contain:"contain",cover:"cover",stretch:"stretch",center:"center",repeat:"repeat"}}static getSize(e,t,n){if("string"!=typeof e)throw new TypeError("Image.getSize first argument must be a string url");const r=Z(e);return"function"==typeof t&&r.then(e=>t(e.width,e.height)),"function"==typeof n?r.catch(n):r.catch(e=>{}),r}render(){const e=this.props,{children:t,style:n,imageStyle:r,imageRef:o,source:l,sources:a,src:s,srcs:f,tintColor:d,tintColors:p}=e,h=c(e,["children","style","imageStyle","imageRef","source","sources","src","srcs","tintColor","tintColors"]);let m=[];if("string"==typeof s&&m.push(s),Array.isArray(f)&&(m=[...m,...f]),l)if("string"==typeof l)m.push(l);else if("object"==typeof l&&null!==l){const{uri:e}=l;e&&m.push(e)}a&&Array.isArray(a)&&a.forEach(e=>{"string"==typeof e?m.push(e):"object"==typeof e&&null!==e&&e.uri&&m.push(e.uri)}),m.length&&(m=m.map(e=>mt(e))),"ios"===Ye.platform.OS?m.length&&(h.source=m.map(e=>({uri:e}))):"android"===Ye.platform.OS&&(1===m.length?[h.src]=m:m.length>1&&(h.srcs=m)),"string"==typeof h.defaultSource&&(h.defaultSource.indexOf("data:image/"),h.defaultSource=mt(h.defaultSource));const b=u({},n);return d&&(b.tintColor=Ze(d)),Array.isArray(p)&&(b.tintColors=et(p)),h.style=b,t?i.a.createElement(dt,{style:n},i.a.createElement("img",Object.assign({},h,{nativeName:"Image",alt:"",ref:o,style:[{position:"absolute",left:0,right:0,top:0,bottom:0,width:n.width,height:n.height},r]})),t):i.a.createElement("img",Object.assign({},h,{nativeName:"Image",alt:"",ref:o}))}}bt.prefetch=ee;class yt{constructor(){this.Value=yt.Value}static Value(e){return e}static timing(e,t){return new ke({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}yt.View=dt,yt.Text=ht,yt.Image=bt;const gt={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 vt(e){return i.a.createElement("li",Object.assign({nativeName:"ListViewItem"},e))}class xt extends i.a.Component{constructor(){super(...arguments),this.instance=null}expandPullHeader(){Me(this.instance,"expandPullHeader",[])}collapsePullHeader(){Me(this.instance,"collapsePullHeader",[])}render(){const e=this.props,{children:t}=e,n=c(e,["children"]);return i.a.createElement("div",Object.assign({nativeName:"PullHeaderView",ref:e=>{this.instance=e}},n),t)}}class wt extends i.a.Component{constructor(){super(...arguments),this.instance=null}expandPullFooter(){Me(this.instance,"expandPullFooter",[])}collapsePullFooter(){Me(this.instance,"collapsePullFooter",[])}render(){const e=this.props,{children:t}=e,n=c(e,["children"]);return i.a.createElement("div",Object.assign({nativeName:"PullFooterView",ref:e=>{this.instance=e}},n),t)}}wt.defaultProps={sticky:!0};const Et={onDisappear:"onDisAppear"},kt={onDisappear:"onDisappear"};class St extends i.a.Component{constructor(e){super(e),this.instance=null,this.pullHeader=null,this.pullFooter=null,this.handleInitialListReady=this.handleInitialListReady.bind(this),this.state={initialListReady:!1}}componentDidMount(){const{getRowKey:e}=this.props}convertName(e){return"android"===Ye.platform.OS&&Et[e]?Et[e]:"ios"===Ye.platform.OS&&kt[e]?kt[e]:e}scrollToIndex(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Me(this.instance,"scrollToIndex",[e,t,n])}scrollToContentOffset(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&Me(this.instance,"scrollToContentOffset",[e,t,n])}expandPullHeader(){this.pullHeader&&this.pullHeader.expandPullHeader()}collapsePullHeader(){this.pullHeader&&this.pullHeader.collapsePullHeader()}expandPullFooter(){this.pullFooter&&this.pullFooter.expandPullFooter()}collapsePullFooter(){this.pullFooter&&this.pullFooter.collapsePullFooter()}handleInitialListReady(){this.setState({initialListReady:!0})}render(){const e=this.props,{children:t,style:n,renderRow:r,renderPullHeader:o,renderPullFooter:l,getRowType:a,getRowStyle:s,getRowKey:f,dataSource:d,initialListSize:p,rowShouldSticky:h,onRowLayout:m,onHeaderPulling:b,onHeaderReleased:y,onFooterPulling:g,onFooterReleased:v,onAppear:x,onDisappear:w,onWillAppear:E,onWillDisappear:k}=e,S=c(e,["children","style","renderRow","renderPullHeader","renderPullFooter","getRowType","getRowStyle","getRowKey","dataSource","initialListSize","rowShouldSticky","onRowLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","onAppear","onDisappear","onWillAppear","onWillDisappear"]),C=[];if("function"==typeof r){const{initialListReady:e}=this.state;let{numberOfRows:t}=this.props,c=null,T=null;"function"==typeof o&&(c=i.a.createElement(xt,{ref:e=>{this.pullHeader=e},onHeaderPulling:b,onHeaderReleased:y},o())),"function"==typeof l&&(T=i.a.createElement(wt,{ref:e=>{this.pullFooter=e},onFooterPulling:g,onFooterReleased:v},l())),!t&&d&&(t=d.length),e||(t=Math.min(t,p||10));for(let e=0;e{m(t,e)}),"function"==typeof x&&(t[this.convertName(x.name)]=()=>{x(e)}),"function"==typeof w&&(t[this.convertName(w.name)]=()=>{w(e)}),"function"==typeof E&&(t[this.convertName(E.name)]=()=>{E(e)}),"function"==typeof k&&(t[this.convertName(k.name)]=()=>{k(e)}),"function"==typeof a){const n=a(e);Number.isInteger(n),t.type=n}"function"==typeof h&&(t.sticky=h(e)),n&&C.push(i.a.createElement(vt,Object.assign({},t),n))}c&&C.unshift(c),T&&C.push(T),"function"==typeof h&&Object.assign(S,{rowShouldSticky:!0});const N=[x,w,E,k];S.exposureEventEnabled=N.some(e=>"function"==typeof e),S.numberOfRows=C.length,S.initialListSize=p,S.style=u({overflow:"scroll"},n)}return!S.onLoadMore&&S.onEndReached&&(S.onLoadMore=S.onEndReached),i.a.createElement("ul",Object.assign({ref:e=>{this.instance=e},nativeName:"ListView",initialListReady:this.handleInitialListReady},S),C.length?C:t)}}St.defaultProps={numberOfRows:0};class Ct extends i.a.Component{constructor(e){super(e),this.instance=null,this.refreshComplected=this.refreshCompleted.bind(this)}getRefresh(){const{getRefresh:e}=this.props;return"function"==typeof e&&e()||null}startRefresh(){Me(this.instance,"startRefresh",null)}refreshCompleted(){Me(this.instance,"refreshComplected",null)}render(){const e=this.props,{children:t}=e,n=c(e,["children"]);return i.a.createElement("div",Object.assign({nativeName:"RefreshWrapper",ref:e=>{this.instance=e}},n),i.a.createElement("div",{nativeName:"RefreshWrapperItemView",style:[{left:0,right:0,position:"absolute"}]},this.getRefresh()),t)}}class Tt{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 ct({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0}delete e.component}const t=[e];this.stack.push(e),Me(this.instance,"push",t)}pop(e){if(this.stack.size>1){const t=[e];this.stack.pop(),Me(this.instance,"pop",t)}}clear(){this.stack.clear()}render(){const e=this.props,{initialRoute:{component:t}}=e,n=c(e.initialRoute,["component"]),r=c(e,["initialRoute"]);return r.initialRoute=n,i.a.createElement("div",Object.assign({nativeName:"Navigator",ref:e=>{this.instance=e}},r))}}function _t(e){return i.a.createElement("div",Object.assign({nativeName:"ViewPagerItem"},e,{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}class Pt extends i.a.Component{constructor(e){super(e),this.instance=null,this.setPage=this.setPage.bind(this),this.setPageWithoutAnimation=this.setPageWithoutAnimation.bind(this),this.onPageScrollStateChanged=this.onPageScrollStateChanged.bind(this)}onPageScrollStateChanged(e){const{onPageScrollStateChanged:t}=this.props;t&&t(e.pageScrollState)}setPage(e){"number"==typeof e&&Me(this.instance,"setPage",[e])}setPageWithoutAnimation(e){"number"==typeof e&&Me(this.instance,"setPageWithoutAnimation",[e])}render(){const e=this.props,{children:t,onPageScrollStateChanged:n}=e,r=c(e,["children","onPageScrollStateChanged"]);let o=[];return Array.isArray(t)?o=t.map(e=>{const t={};return"string"==typeof e.key&&(t.key="viewPager_"+e.key),i.a.createElement(_t,Object.assign({},t),e)}):o.push(i.a.createElement(_t,null,t)),"function"==typeof n&&(r.onPageScrollStateChanged=this.onPageScrollStateChanged),i.a.createElement("div",Object.assign({nativeName:"ViewPager",ref:e=>{this.instance=e}},r),o)}}class It extends i.a.Component{constructor(e){super(e),this.instance=null,this._lastNativeText="",this._onChangeText=this._onChangeText.bind(this),this._onKeyboardWillShow=this._onKeyboardWillShow.bind(this)}componentDidMount(){const{value:e,autoFocus:t}=this.props;this._lastNativeText=e,t&&this.focus()}componentWillUnmount(){this.blur()}getValue(){return new Promise(e=>{Me(this.instance,"getValue",t=>e(t.text))})}setValue(e){return Me(this.instance,"setValue",[e]),e}focus(){Me(this.instance,"focusTextInput",[])}blur(){Me(this.instance,"blurTextInput",[])}showInputMethod(){Me(this.instance,"showInputMethod",[])}hideInputMethod(){Me(this.instance,"hideInputMethod",[])}clear(){Me(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"===Ye.platform.OS&&(n.keyboardHeight/=Ye.screen.scale),"function"==typeof t&&t(n)}render(){const e=u({},this.props);return["underlineColorAndroid","placeholderTextColor","placeholderTextColors"].forEach(t=>{"string"==typeof this.props[t]&&(Array.isArray(e.style)?e.style.push({[t]:this.props[t]}):"object"==typeof e.style?e.style[t]=this.props[t]:e.style={[t]:this.props[t]},delete e[t])}),i.a.createElement("div",Object.assign({nativeName:"TextInput"},e,{ref:e=>{this.instance=e},onChangeText:this._onChangeText,onKeyboardWillShow:this._onKeyboardWillShow}))}}const At=Ye.window.scale;let Rt=Math.round(.4*At)/At;function zt(e){return e}0===Rt&&(Rt=1/At);var Ot=Object.freeze({__proto__:null,get hairlineWidth(){return Rt},create:zt});const jt={baseVertical:{flexGrow:1,flexShrink:1,flexDirection:"column",overflow:"scroll"},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:"row",overflow:"scroll"},contentContainerVertical:{collapse:!1,flexDirection:"column"},contentContainerHorizontal:{collapse:!1,flexDirection:"row"}};class Lt extends i.a.Component{constructor(){super(...arguments),this.instance=null}scrollTo(e,t,n=!0){let r=e,i=t,o=n;"number"==typeof e||"object"==typeof e&&e&&({x:r,y:i,animated:o}=e),r=r||0,i=i||0,o=!!o,Me(this.instance,"scrollTo",[r,i,o])}scrollToWithDuration(e=0,t=0,n=1e3){Me(this.instance,"scrollToWithOptions",[{x:e,y:t,duration:n}])}render(){const{horizontal:e,contentContainerStyle:t,children:n,style:r}=this.props,o=[e?jt.contentContainerHorizontal:jt.contentContainerVertical,t],l=e?Object.assign({},r,jt.baseHorizontal):Object.assign({},r,jt.baseVertical);return i.a.createElement("div",Object.assign({nativeName:"ScrollView",ref:e=>{this.instance=e}},this.props,{style:l}),i.a.createElement(dt,{style:o},n))}}const Ft={modal:{position:"absolute"},container:{position:"absolute",left:0,top:0}};class Mt extends i.a.Component{constructor(e){super(e),this.eventSubscription=null}componentDidMount(){"ios"===Ye.platform.OS&&(this.eventSubscription=new M("modalDismissed"),this.eventSubscription.addCallback(e=>{const{primaryKey:t,onDismiss:n}=this.props;e.primaryKey===t&&"function"==typeof n&&n()}))}componentWillUnmount(){"ios"===Ye.platform.OS&&this.eventSubscription&&this.eventSubscription.unregister()}render(){const{children:e,visible:t,transparent:n,animated:r}=this.props;let{animationType:o}=this.props;if(!1===t)return null;const l={backgroundColor:n?"transparent":"white"};return o||(o="none",r&&(o="slide")),i.a.createElement("div",Object.assign({nativeName:"Modal",animationType:o,transparent:n,style:Ft.modal},this.props),i.a.createElement(dt,{style:[Ft.container,l]},e))}}Mt.defaultProps={visible:!0};class Ut extends i.a.Component{constructor(e){super(e);const{requestFocus:t}=this.props;this.state={isFocus:!!t},this.handleFocus=this.handleFocus.bind(this)}handleFocus(e){const{onFocus:t}=this.props;"function"==typeof t&&t(e);const{isFocus:n}=this.state;n!==e.focus&&this.setState({isFocus:e.focus})}render(){const{requestFocus:e,children:t,nextFocusDownId:n,nextFocusUpId:r,nextFocusLeftId:o,nextFocusRightId:l,style:a,noFocusStyle:s,focusStyle:c,onClick:f}=this.props,{isFocus:d}=this.state,p=i.a.Children.only(t);let h;p&&p.child&&p.child.memoizedProps&&p.child.memoizedProps.nativeName?h=p.child.memoizedProps.nativeName:p&&p.type&&p.type.name&&(h=p.type.name);const m=n&&Fe(n),b=r&&Fe(r),y=o&&Fe(o),g=l&&Fe(l);let v=a;if("Text"!==h){const e=p.memoizedProps.style;v=u(u({},v),e)}if(Object.assign(v,d?c:s),"Text"===h)return i.a.createElement(dt,{focusable:!0,nextFocusDownId:m,nextFocusUpId:b,nextFocusLeftId:y,nextFocusRightId:g,requestFocus:e,style:v,onClick:f,onFocus:this.handleFocus},p);const{children:x}=p.memoizedProps;return i.a.cloneElement(p,{nextFocusDownId:n,nextFocusUpId:r,nextFocusLeftId:o,nextFocusRightId:l,requestFocus:e,onClick:f,focusable:!0,children:x,style:v,onFocus:this.handleFocus})}}function Ht(e){return i.a.createElement("iframe",Object.assign({title:"hippy",nativeName:"WebView"},e))}let Dt;class Wt{constructor(e,t,n){if(this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),Dt||(Dt=new M("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!e||"string"!=typeof e)throw new TypeError("Invalid WebSocket url");const r=u({},n);if(void 0!==t)if(Array.isArray(t)&&t.length>0)r["Sec-WebSocket-Protocol"]=t.join(",");else{if("string"!=typeof t)throw new TypeError("Invalid WebSocket protocals");r["Sec-WebSocket-Protocol"]=t}const i={headers:r,url:e};this.url=e,this.webSocketCallbackId=Dt.addCallback(this.onWebSocketEvent),p.callNativeWithPromise("websocket","connect",i).then(e=>{e&&0===e.code&&"number"==typeof e.id&&(this.webSocketId=e.id)})}close(e,t){1===this.readyState&&(this.readyState=2,p.callNative("websocket","close",{id:this.webSocketId,code:e,reason:t}))}send(e){if(1===this.readyState){if("string"!=typeof e)throw new TypeError("Unsupported websocket data type: "+typeof e);p.callNative("websocket","send",{id:this.webSocketId,data:e})}}set onopen(e){this.webSocketCallbacks.onOpen=e}set onclose(e){this.webSocketCallbacks.onClose=e}set onerror(e){this.webSocketCallbacks.onError=e}set onmessage(e){this.webSocketCallbacks.onMessage=e}onWebSocketEvent(e){if("object"!=typeof e||e.id!==this.webSocketId)return;const{type:t}=e;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,Dt.removeCallback(this.webSocketCallbackId));const n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}e.WebSocket=Wt;const{AsyncStorage:Vt,BackAndroid:Bt,Bridge:$t,Clipboard:qt,Cookie:Qt,Device:Kt,HippyRegister:Gt,ImageLoader:Yt,NetworkInfo:Xt,UIManager:Jt}=Je,{callNative:Zt,callNativeWithPromise:en,callNativeWithCallbackId:tn,removeNativeCallback:nn}=$t,rn=null,on=console,ln=Kt.platform,an=ct,un=ct,sn=bt,cn=Gt,fn=H,dn=M,pn={get:e=>Kt[e]},hn={get:()=>Kt.screen.scale};t.default=ct}.call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/object-assign/index.js":function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus @@ -34,20 +34,20 @@ object-assign * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -e.exports=function t(r){"use strict";var i=n("./node_modules/object-assign/index.js"),o=n("./node_modules/react/index.js"),l=n("./node_modules/scheduler/index.js");function a(e){for(var t=e.message,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;rCe||(e.current=Se[Ce],Se[Ce]=null,Ce--)}function Ne(e,t){Ce++,Se[Ce]=e.current,e.current=t}var _e={},Pe={current:_e},Ie={current:!1},Ae=_e;function Re(e,t){var n=e.type.contextTypes;if(!n)return _e;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ze(e){return null!=(e=e.childContextTypes)}function Oe(e){Te(Ie),Te(Pe)}function je(e){Te(Ie),Te(Pe)}function Le(e,t,n){if(Pe.current!==_e)throw a(Error(168));Ne(Pe,t),Ne(Ie,n)}function Fe(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw a(Error(108),C(t)||"Unknown",o);return i({},n,r)}function Me(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||_e,Ae=Pe.current,Ne(Pe,t),Ne(Ie,Ie.current),!0}function Ue(e,t,n){var r=e.stateNode;if(!r)throw a(Error(169));n?(t=Fe(e,t,Ae),r.__reactInternalMemoizedMergedChildContext=t,Te(Ie),Te(Pe),Ne(Pe,t)):Te(Ie),Ne(Ie,n)}var He=l.unstable_runWithPriority,De=l.unstable_scheduleCallback,We=l.unstable_cancelCallback,Ve=l.unstable_shouldYield,Be=l.unstable_requestPaint,$e=l.unstable_now,qe=l.unstable_getCurrentPriorityLevel,Qe=l.unstable_ImmediatePriority,Ke=l.unstable_UserBlockingPriority,Ge=l.unstable_NormalPriority,Ye=l.unstable_LowPriority,Xe=l.unstable_IdlePriority,Je={},Ze=void 0!==Be?Be:function(){},et=null,tt=null,nt=!1,rt=$e(),it=1e4>rt?$e:function(){return $e()-rt};function ot(){switch(qe()){case Qe:return 99;case Ke:return 98;case Ge:return 97;case Ye:return 96;case Xe:return 95;default:throw a(Error(332))}}function lt(e){switch(e){case 99:return Qe;case 98:return Ke;case 97:return Ge;case 96:return Ye;case 95:return Xe;default:throw a(Error(332))}}function at(e,t){return e=lt(e),He(e,t)}function ut(e,t,n){return e=lt(e),De(e,t,n)}function st(e){return null===et?(et=[e],tt=De(Qe,ft)):et.push(e),Je}function ct(){null!==tt&&We(tt),ft()}function ft(){if(!nt&&null!==et){nt=!0;var e=0;try{var t=et;at(99,(function(){for(;e=(e=10*(1073741821-t)-10*(1073741821-e))?99:250>=e?98:5250>=e?97:95}function pt(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var ht=Object.prototype.hasOwnProperty;function mt(e,t){if(pt(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r=t&&(Zn=!0),e.firstContext=null)}function Tt(e,t){if(xt!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(xt=e,t=1073741823),t={context:e,observedBits:t,next:null},null===vt){if(null===gt)throw a(Error(308));vt=t,gt.dependencies={expirationTime:0,firstContext:t,responders:null}}else vt=vt.next=t;return $?e._currentValue:e._currentValue2}var Nt=!1;function _t(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Pt(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function It(e,t){return{expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function At(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function Rt(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,i=null;null===r&&(r=e.updateQueue=_t(e.memoizedState))}else r=e.updateQueue,i=n.updateQueue,null===r?null===i?(r=e.updateQueue=_t(e.memoizedState),i=n.updateQueue=_t(n.memoizedState)):r=e.updateQueue=Pt(i):null===i&&(i=n.updateQueue=Pt(r));null===i||r===i?At(r,t):null===r.lastUpdate||null===i.lastUpdate?(At(r,t),At(i,t)):(At(r,t),i.lastUpdate=t)}function zt(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=_t(e.memoizedState):Ot(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function Ot(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=Pt(t)),t}function jt(e,t,n,r,o,l){switch(n.tag){case 1:return"function"==typeof(e=n.payload)?e.call(l,r,o):e;case 3:e.effectTag=-2049&e.effectTag|64;case 0:if(null==(o="function"==typeof(e=n.payload)?e.call(l,r,o):e))break;return i({},r,o);case 2:Nt=!0}return r}function Lt(e,t,n,r,i){Nt=!1;for(var o=(t=Ot(e,t)).baseState,l=null,a=0,u=t.firstUpdate,s=o;null!==u;){var c=u.expirationTime;cd?(p=f,f=null):p=f.sibling;var h=b(i,f,a[d],u);if(null===h){null===f&&(f=p);break}e&&f&&null===h.alternate&&t(i,f),l=o(h,l,d),null===c?s=h:c.sibling=h,c=h,f=p}if(d===a.length)return n(i,f),s;if(null===f){for(;dp?(h=d,d=null):h=d.sibling;var v=b(i,d,g.value,s);if(null===v){null===d&&(d=h);break}e&&d&&null===v.alternate&&t(i,d),l=o(v,l,p),null===f?c=v:f.sibling=v,f=v,d=h}if(g.done)return n(i,d),c;if(null===d){for(;!g.done;p++,g=u.next())null!==(g=m(i,g.value,s))&&(l=o(g,l,p),null===f?c=g:f.sibling=g,f=g);return c}for(d=r(i,d);!g.done;p++,g=u.next())null!==(g=y(d,i,p,g.value,s))&&(e&&null!==g.alternate&&d.delete(null===g.key?p:g.key),l=o(g,l,p),null===f?c=g:f.sibling=g,f=g);return e&&d.forEach((function(e){return t(i,e)})),c}return function(e,r,o,u){var s="object"==typeof o&&null!==o&&o.type===d&&null===o.key;s&&(o=o.props.children);var p="object"==typeof o&&null!==o;if(p)switch(o.$$typeof){case c:e:{for(p=o.key,s=r;null!==s;){if(s.key===p){if(7===s.tag?o.type===d:s.elementType===o.type){n(e,s.sibling),(r=i(s,o.type===d?o.props.children:o.props)).ref=Kt(e,s,o),r.return=e,e=r;break e}n(e,s);break}t(e,s),s=s.sibling}o.type===d?((r=Fi(o.props.children,e.mode,u,o.key)).return=e,e=r):((u=Li(o.type,o.key,o.props,null,e.mode,u)).ref=Kt(e,r,o),u.return=e,e=u)}return l(e);case f:e:{for(s=o.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Ui(o,e.mode,u)).return=e,e=r}return l(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Mi(o,e.mode,u)).return=e,e=r),l(e);if(Qt(o))return g(e,r,o,u);if(S(o))return v(e,r,o,u);if(p&&Gt(e,o),void 0===o&&!s)switch(e.tag){case 1:case 0:throw e=e.type,a(Error(152),e.displayName||e.name||"Component")}return n(e,r)}}var Xt=Yt(!0),Jt=Yt(!1),Zt={},en={current:Zt},tn={current:Zt},nn={current:Zt};function rn(e){if(e===Zt)throw a(Error(174));return e}function on(e,t){Ne(nn,t),Ne(tn,e),Ne(en,Zt),t=A(t),Te(en),Ne(en,t)}function ln(e){Te(en),Te(tn),Te(nn)}function an(e){var t=rn(nn.current),n=rn(en.current);n!==(t=R(n,e.type,t))&&(Ne(tn,e),Ne(en,t))}function un(e){tn.current===e&&(Te(en),Te(tn))}var sn={current:0};function cn(e){for(var t=e;null!==t;){if(13===t.tag){if(null!==t.memoizedState)return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function fn(e,t){return{responder:e,props:t}}var dn=u.ReactCurrentDispatcher,pn=0,hn=null,mn=null,bn=null,yn=null,gn=null,vn=null,xn=0,wn=null,En=0,kn=!1,Sn=null,Cn=0;function Tn(){throw a(Error(321))}function Nn(e,t){if(null===t)return!1;for(var n=0;nxn&&(xn=f)):(gi(f,s.suspenseConfig),o=s.eagerReducer===e?s.eagerState:e(o,s.action)),l=s,s=s.next}while(null!==s&&s!==r);c||(u=l,i=o),pt(o,t.memoizedState)||(Zn=!0),t.memoizedState=o,t.baseUpdate=u,t.baseState=i,n.lastRenderedState=o}return[t.memoizedState,n.dispatch]}function On(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===wn?(wn={lastEffect:null}).lastEffect=e.next=e:null===(t=wn.lastEffect)?wn.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,wn.lastEffect=e),e}function jn(e,t,n,r){var i=In();En|=e,i.memoizedState=On(t,n,void 0,void 0===r?null:r)}function Ln(e,t,n,r){var i=An();r=void 0===r?null:r;var o=void 0;if(null!==mn){var l=mn.memoizedState;if(o=l.destroy,null!==r&&Nn(r,l.deps))return void On(0,n,o,r)}En|=e,i.memoizedState=On(t,n,o,r)}function Fn(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Mn(){}function Un(e,t,n){if(!(25>Cn))throw a(Error(301));var r=e.alternate;if(e===hn||null!==r&&r===hn)if(kn=!0,e={expirationTime:pn,suspenseConfig:null,action:n,eagerReducer:null,eagerState:null,next:null},null===Sn&&(Sn=new Map),void 0===(n=Sn.get(t)))Sn.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{var i=si(),o=Ut.suspense;o={expirationTime:i=ci(i,e,o),suspenseConfig:o,action:n,eagerReducer:null,eagerState:null,next:null};var l=t.last;if(null===l)o.next=o;else{var u=l.next;null!==u&&(o.next=u),l.next=o}if(t.last=o,0===e.expirationTime&&(null===r||0===r.expirationTime)&&null!==(r=t.lastRenderedReducer))try{var s=t.lastRenderedState,c=r(s,n);if(o.eagerReducer=r,o.eagerState=c,pt(c,s))return}catch(e){}di(e,i)}}var Hn={readContext:Tt,useCallback:Tn,useContext:Tn,useEffect:Tn,useImperativeHandle:Tn,useLayoutEffect:Tn,useMemo:Tn,useReducer:Tn,useRef:Tn,useState:Tn,useDebugValue:Tn,useResponder:Tn},Dn={readContext:Tt,useCallback:function(e,t){return In().memoizedState=[e,void 0===t?null:t],e},useContext:Tt,useEffect:function(e,t){return jn(516,192,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,jn(4,36,Fn.bind(null,t,e),n)},useLayoutEffect:function(e,t){return jn(4,36,e,t)},useMemo:function(e,t){var n=In();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=In();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={last:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Un.bind(null,hn,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},In().memoizedState=e},useState:function(e){var t=In();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,lastRenderedReducer:Rn,lastRenderedState:e}).dispatch=Un.bind(null,hn,e),[t.memoizedState,e]},useDebugValue:Mn,useResponder:fn},Wn={readContext:Tt,useCallback:function(e,t){var n=An();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Nn(t,r[1])?r[0]:(n.memoizedState=[e,t],e)},useContext:Tt,useEffect:function(e,t){return Ln(516,192,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ln(4,36,Fn.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ln(4,36,e,t)},useMemo:function(e,t){var n=An();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Nn(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:zn,useRef:function(){return An().memoizedState},useState:function(e){return zn(Rn)},useDebugValue:Mn,useResponder:fn},Vn=null,Bn=null,$n=!1;function qn(e,t){var n=zi(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Qn(e,t){switch(e.tag){case 5:return null!==(t=be(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=ye(t,e.pendingProps))&&(e.stateNode=t,!0);case 13:default:return!1}}function Kn(e){if($n){var t=Bn;if(t){var n=t;if(!Qn(e,t)){if(!(t=ge(n))||!Qn(e,t))return e.effectTag|=2,$n=!1,void(Vn=e);qn(Vn,n)}Vn=e,Bn=ve(t)}else e.effectTag|=2,$n=!1,Vn=e}}function Gn(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;Vn=e}function Yn(e){if(!K||e!==Vn)return!1;if(!$n)return Gn(e),$n=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!U(t,e.memoizedProps))for(t=Bn;t;)qn(e,t),t=ge(t);return Gn(e),Bn=Vn?ge(e.stateNode):null,!0}function Xn(){K&&(Bn=Vn=null,$n=!1)}var Jn=u.ReactCurrentOwner,Zn=!1;function er(e,t,n,r){t.child=null===e?Jt(t,null,n,r):Xt(t,e.child,n,r)}function tr(e,t,n,r,i){n=n.render;var o=t.ref;return Ct(t,i),r=_n(e,t,n,r,o,i),null===e||Zn?(t.effectTag|=1,er(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),pr(e,t,i))}function nr(e,t,n,r,i,o){if(null===e){var l=n.type;return"function"!=typeof l||Oi(l)||void 0!==l.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Li(n.type,null,r,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=l,rr(e,t,l,r,i,o))}return l=e.child,it)&&oi.set(e,t))}}function pi(e,t){e.expirationTimei.firstPendingTime&&(i.firstPendingTime=t),0===(e=i.lastPendingTime)||t component higher in the tree to provide a loading indicator or placeholder to display."+ke(s))}4!==$r&&($r=1),c=Er(c,s),s=u;do{switch(s.tag){case 3:s.effectTag|=2048,s.expirationTime=f,zt(s,f=Lr(s,c,f));break e;case 1:if(d=c,l=s.type,u=s.stateNode,0==(64&s.effectTag)&&("function"==typeof l.getDerivedStateFromError||null!==u&&"function"==typeof u.componentDidCatch&&(null===ei||!ei.has(u)))){s.effectTag|=2048,s.expirationTime=f,zt(s,f=Fr(s,d,f));break e}}s=s.return}while(null!==s)}Vr=xi(o)}if(Dr=r,wt(),Ur.current=i,null!==Vr)return yi.bind(null,e,t)}if(e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,function(e,t){var n=e.firstBatch;return!!(null!==n&&n._defer&&n._expirationTime>=t)&&(ut(97,(function(){return n._onComplete(),null})),!0)}(e,t))return null;switch(Wr=null,$r){case 0:throw a(Error(328));case 1:return(r=e.lastPendingTime)(n=(r=it())-n)&&(n=0),(t=10*(1073741821-t)-r)<(n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Mr(n/1960))-n)&&(n=t)),10=(t=0|(i=Kr).busyMinDurationMs)?t=0:(n=0|i.busyDelayMs,t=(r=it()-(10*(1073741821-r)-(0|i.timeoutMs||5e3)))<=n?0:n+t-r),10i.tailExpiration&&1r&&(r=o),(l=i.childExpirationTime)>r&&(r=l),i=i.sibling;n.childExpirationTime=r}if(null!==t)return t;null!==e&&0==(1024&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Vr.firstEffect),null!==Vr.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Vr.firstEffect),e.lastEffect=Vr.lastEffect),1i?o:i,e.firstPendingTime=i,i=n?cr(e,t,n):(Ne(sn,1&sn.current),null!==(t=pr(e,t,n))?t.sibling:null);Ne(sn,1&sn.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return dr(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),Ne(sn,sn.current),!r)return null}return pr(e,t,n)}}else Zn=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=Re(t,Pe.current),Ct(t,n),i=_n(null,t,r,e,i,n),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,Pn(),ze(r)){var o=!0;Me(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null;var l=r.getDerivedStateFromProps;"function"==typeof l&&Dt(t,r,l,e),i.updater=Wt,t.stateNode=i,i._reactInternalFiber=t,qt(t,r,e,n),t=ar(null,t,r,!0,o,n)}else t.tag=0,er(null,t,i,n),t=t.child;return t;case 16:switch(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:switch(e._status=0,(t=(t=e._ctor)()).then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)})),e._status){case 1:return e._result;case 2:throw e._result}throw e._result=t,t}}(i),t.type=i,o=t.tag=function(e){if("function"==typeof e)return Oi(e)?1:0;if(null!=e){if((e=e.$$typeof)===g)return 11;if(e===w)return 14}return 2}(i),e=bt(i,e),o){case 0:t=or(null,t,i,e,n);break;case 1:t=lr(null,t,i,e,n);break;case 11:t=tr(null,t,i,e,n);break;case 14:t=nr(null,t,i,bt(i.type,e),r,n);break;default:throw a(Error(306),i,"")}return t;case 0:return r=t.type,i=t.pendingProps,or(e,t,r,i=t.elementType===r?i:bt(r,i),n);case 1:return r=t.type,i=t.pendingProps,lr(e,t,r,i=t.elementType===r?i:bt(r,i),n);case 3:if(ur(t),null===(r=t.updateQueue))throw a(Error(282));return i=null!==(i=t.memoizedState)?i.element:null,Lt(t,r,t.pendingProps,null,n),(r=t.memoizedState.element)===i?(Xn(),t=pr(e,t,n)):(i=t.stateNode,(i=(null===e||null===e.child)&&i.hydrate)&&(K?(Bn=ve(t.stateNode.containerInfo),Vn=t,i=$n=!0):i=!1),i?(t.effectTag|=2,t.child=Jt(t,null,r,n)):(er(e,t,r,n),Xn()),t=t.child),t;case 5:return an(t),null===e&&Kn(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,l=i.children,U(r,i)?l=null:null!==o&&U(r,o)&&(t.effectTag|=16),ir(e,t),4&t.mode&&1!==n&&H(r,i)?(t.expirationTime=t.childExpirationTime=1,t=null):(er(e,t,l,n),t=t.child),t;case 6:return null===e&&Kn(t),null;case 13:return cr(e,t,n);case 4:return on(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Xt(t,null,r,n):er(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,tr(e,t,r,i=t.elementType===r?i:bt(r,i),n);case 7:return er(e,t,t.pendingProps,n),t.child;case 8:case 12:return er(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,Et(t,o=i.value),null!==l){var u=l.value;if(0===(o=pt(u,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,o):1073741823))){if(l.children===i.children&&!Ie.current){t=pr(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var s=u.dependencies;if(null!==s){l=u.child;for(var c=s.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&o)){1===u.tag&&((c=It(n,null)).tag=2,Rt(u,c)),u.expirationTimeCe||(e.current=Se[Ce],Se[Ce]=null,Ce--)}function Ne(e,t){Ce++,Se[Ce]=e.current,e.current=t}var _e={},Pe={current:_e},Ie={current:!1},Ae=_e;function Re(e,t){var n=e.type.contextTypes;if(!n)return _e;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ze(e){return null!=(e=e.childContextTypes)}function Oe(e){Te(Ie),Te(Pe)}function je(e){Te(Ie),Te(Pe)}function Le(e,t,n){if(Pe.current!==_e)throw a(Error(168));Ne(Pe,t),Ne(Ie,n)}function Fe(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw a(Error(108),C(t)||"Unknown",o);return i({},n,r)}function Me(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||_e,Ae=Pe.current,Ne(Pe,t),Ne(Ie,Ie.current),!0}function Ue(e,t,n){var r=e.stateNode;if(!r)throw a(Error(169));n?(t=Fe(e,t,Ae),r.__reactInternalMemoizedMergedChildContext=t,Te(Ie),Te(Pe),Ne(Pe,t)):Te(Ie),Ne(Ie,n)}var He=l.unstable_runWithPriority,De=l.unstable_scheduleCallback,We=l.unstable_cancelCallback,Ve=l.unstable_shouldYield,Be=l.unstable_requestPaint,$e=l.unstable_now,qe=l.unstable_getCurrentPriorityLevel,Qe=l.unstable_ImmediatePriority,Ke=l.unstable_UserBlockingPriority,Ge=l.unstable_NormalPriority,Ye=l.unstable_LowPriority,Xe=l.unstable_IdlePriority,Je={},Ze=void 0!==Be?Be:function(){},et=null,tt=null,nt=!1,rt=$e(),it=1e4>rt?$e:function(){return $e()-rt};function ot(){switch(qe()){case Qe:return 99;case Ke:return 98;case Ge:return 97;case Ye:return 96;case Xe:return 95;default:throw a(Error(332))}}function lt(e){switch(e){case 99:return Qe;case 98:return Ke;case 97:return Ge;case 96:return Ye;case 95:return Xe;default:throw a(Error(332))}}function at(e,t){return e=lt(e),He(e,t)}function ut(e,t,n){return e=lt(e),De(e,t,n)}function st(e){return null===et?(et=[e],tt=De(Qe,ft)):et.push(e),Je}function ct(){null!==tt&&We(tt),ft()}function ft(){if(!nt&&null!==et){nt=!0;var e=0;try{var t=et;at(99,(function(){for(;e=(e=10*(1073741821-t)-10*(1073741821-e))?99:250>=e?98:5250>=e?97:95}function pt(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var ht=Object.prototype.hasOwnProperty;function mt(e,t){if(pt(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r=t&&(Zn=!0),e.firstContext=null)}function Tt(e,t){if(xt!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(xt=e,t=1073741823),t={context:e,observedBits:t,next:null},null===vt){if(null===gt)throw a(Error(308));vt=t,gt.dependencies={expirationTime:0,firstContext:t,responders:null}}else vt=vt.next=t;return $?e._currentValue:e._currentValue2}var Nt=!1;function _t(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Pt(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function It(e,t){return{expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function At(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function Rt(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,i=null;null===r&&(r=e.updateQueue=_t(e.memoizedState))}else r=e.updateQueue,i=n.updateQueue,null===r?null===i?(r=e.updateQueue=_t(e.memoizedState),i=n.updateQueue=_t(n.memoizedState)):r=e.updateQueue=Pt(i):null===i&&(i=n.updateQueue=Pt(r));null===i||r===i?At(r,t):null===r.lastUpdate||null===i.lastUpdate?(At(r,t),At(i,t)):(At(r,t),i.lastUpdate=t)}function zt(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=_t(e.memoizedState):Ot(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function Ot(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=Pt(t)),t}function jt(e,t,n,r,o,l){switch(n.tag){case 1:return"function"==typeof(e=n.payload)?e.call(l,r,o):e;case 3:e.effectTag=-2049&e.effectTag|64;case 0:if(null==(o="function"==typeof(e=n.payload)?e.call(l,r,o):e))break;return i({},r,o);case 2:Nt=!0}return r}function Lt(e,t,n,r,i){Nt=!1;for(var o=(t=Ot(e,t)).baseState,l=null,a=0,u=t.firstUpdate,s=o;null!==u;){var c=u.expirationTime;cd?(p=f,f=null):p=f.sibling;var h=b(i,f,a[d],u);if(null===h){null===f&&(f=p);break}e&&f&&null===h.alternate&&t(i,f),l=o(h,l,d),null===c?s=h:c.sibling=h,c=h,f=p}if(d===a.length)return n(i,f),s;if(null===f){for(;dp?(h=d,d=null):h=d.sibling;var v=b(i,d,g.value,s);if(null===v){null===d&&(d=h);break}e&&d&&null===v.alternate&&t(i,d),l=o(v,l,p),null===f?c=v:f.sibling=v,f=v,d=h}if(g.done)return n(i,d),c;if(null===d){for(;!g.done;p++,g=u.next())null!==(g=m(i,g.value,s))&&(l=o(g,l,p),null===f?c=g:f.sibling=g,f=g);return c}for(d=r(i,d);!g.done;p++,g=u.next())null!==(g=y(d,i,p,g.value,s))&&(e&&null!==g.alternate&&d.delete(null===g.key?p:g.key),l=o(g,l,p),null===f?c=g:f.sibling=g,f=g);return e&&d.forEach((function(e){return t(i,e)})),c}return function(e,r,o,u){var s="object"==typeof o&&null!==o&&o.type===d&&null===o.key;s&&(o=o.props.children);var p="object"==typeof o&&null!==o;if(p)switch(o.$$typeof){case c:e:{for(p=o.key,s=r;null!==s;){if(s.key===p){if(7===s.tag?o.type===d:s.elementType===o.type){n(e,s.sibling),(r=i(s,o.type===d?o.props.children:o.props)).ref=Kt(e,s,o),r.return=e,e=r;break e}n(e,s);break}t(e,s),s=s.sibling}o.type===d?((r=Fi(o.props.children,e.mode,u,o.key)).return=e,e=r):((u=Li(o.type,o.key,o.props,null,e.mode,u)).ref=Kt(e,r,o),u.return=e,e=u)}return l(e);case f:e:{for(s=o.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Ui(o,e.mode,u)).return=e,e=r}return l(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Mi(o,e.mode,u)).return=e,e=r),l(e);if(Qt(o))return g(e,r,o,u);if(S(o))return v(e,r,o,u);if(p&&Gt(e,o),void 0===o&&!s)switch(e.tag){case 1:case 0:throw e=e.type,a(Error(152),e.displayName||e.name||"Component")}return n(e,r)}}var Xt=Yt(!0),Jt=Yt(!1),Zt={},en={current:Zt},tn={current:Zt},nn={current:Zt};function rn(e){if(e===Zt)throw a(Error(174));return e}function on(e,t){Ne(nn,t),Ne(tn,e),Ne(en,Zt),t=A(t),Te(en),Ne(en,t)}function ln(e){Te(en),Te(tn),Te(nn)}function an(e){var t=rn(nn.current),n=rn(en.current);n!==(t=R(n,e.type,t))&&(Ne(tn,e),Ne(en,t))}function un(e){tn.current===e&&(Te(en),Te(tn))}var sn={current:0};function cn(e){for(var t=e;null!==t;){if(13===t.tag){if(null!==t.memoizedState)return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function fn(e,t){return{responder:e,props:t}}var dn=u.ReactCurrentDispatcher,pn=0,hn=null,mn=null,bn=null,yn=null,gn=null,vn=null,xn=0,wn=null,En=0,kn=!1,Sn=null,Cn=0;function Tn(){throw a(Error(321))}function Nn(e,t){if(null===t)return!1;for(var n=0;nxn&&(xn=f)):(gi(f,s.suspenseConfig),o=s.eagerReducer===e?s.eagerState:e(o,s.action)),l=s,s=s.next}while(null!==s&&s!==r);c||(u=l,i=o),pt(o,t.memoizedState)||(Zn=!0),t.memoizedState=o,t.baseUpdate=u,t.baseState=i,n.lastRenderedState=o}return[t.memoizedState,n.dispatch]}function On(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===wn?(wn={lastEffect:null}).lastEffect=e.next=e:null===(t=wn.lastEffect)?wn.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,wn.lastEffect=e),e}function jn(e,t,n,r){var i=In();En|=e,i.memoizedState=On(t,n,void 0,void 0===r?null:r)}function Ln(e,t,n,r){var i=An();r=void 0===r?null:r;var o=void 0;if(null!==mn){var l=mn.memoizedState;if(o=l.destroy,null!==r&&Nn(r,l.deps))return void On(0,n,o,r)}En|=e,i.memoizedState=On(t,n,o,r)}function Fn(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Mn(){}function Un(e,t,n){if(!(25>Cn))throw a(Error(301));var r=e.alternate;if(e===hn||null!==r&&r===hn)if(kn=!0,e={expirationTime:pn,suspenseConfig:null,action:n,eagerReducer:null,eagerState:null,next:null},null===Sn&&(Sn=new Map),void 0===(n=Sn.get(t)))Sn.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{var i=si(),o=Ut.suspense;o={expirationTime:i=ci(i,e,o),suspenseConfig:o,action:n,eagerReducer:null,eagerState:null,next:null};var l=t.last;if(null===l)o.next=o;else{var u=l.next;null!==u&&(o.next=u),l.next=o}if(t.last=o,0===e.expirationTime&&(null===r||0===r.expirationTime)&&null!==(r=t.lastRenderedReducer))try{var s=t.lastRenderedState,c=r(s,n);if(o.eagerReducer=r,o.eagerState=c,pt(c,s))return}catch(e){}di(e,i)}}var Hn={readContext:Tt,useCallback:Tn,useContext:Tn,useEffect:Tn,useImperativeHandle:Tn,useLayoutEffect:Tn,useMemo:Tn,useReducer:Tn,useRef:Tn,useState:Tn,useDebugValue:Tn,useResponder:Tn},Dn={readContext:Tt,useCallback:function(e,t){return In().memoizedState=[e,void 0===t?null:t],e},useContext:Tt,useEffect:function(e,t){return jn(516,192,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,jn(4,36,Fn.bind(null,t,e),n)},useLayoutEffect:function(e,t){return jn(4,36,e,t)},useMemo:function(e,t){var n=In();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=In();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={last:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Un.bind(null,hn,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},In().memoizedState=e},useState:function(e){var t=In();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,lastRenderedReducer:Rn,lastRenderedState:e}).dispatch=Un.bind(null,hn,e),[t.memoizedState,e]},useDebugValue:Mn,useResponder:fn},Wn={readContext:Tt,useCallback:function(e,t){var n=An();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Nn(t,r[1])?r[0]:(n.memoizedState=[e,t],e)},useContext:Tt,useEffect:function(e,t){return Ln(516,192,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ln(4,36,Fn.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ln(4,36,e,t)},useMemo:function(e,t){var n=An();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Nn(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:zn,useRef:function(){return An().memoizedState},useState:function(e){return zn(Rn)},useDebugValue:Mn,useResponder:fn},Vn=null,Bn=null,$n=!1;function qn(e,t){var n=zi(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Qn(e,t){switch(e.tag){case 5:return null!==(t=be(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=ye(t,e.pendingProps))&&(e.stateNode=t,!0);case 13:default:return!1}}function Kn(e){if($n){var t=Bn;if(t){var n=t;if(!Qn(e,t)){if(!(t=ge(n))||!Qn(e,t))return e.effectTag|=2,$n=!1,void(Vn=e);qn(Vn,n)}Vn=e,Bn=ve(t)}else e.effectTag|=2,$n=!1,Vn=e}}function Gn(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;Vn=e}function Yn(e){if(!K||e!==Vn)return!1;if(!$n)return Gn(e),$n=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!U(t,e.memoizedProps))for(t=Bn;t;)qn(e,t),t=ge(t);return Gn(e),Bn=Vn?ge(e.stateNode):null,!0}function Xn(){K&&(Bn=Vn=null,$n=!1)}var Jn=u.ReactCurrentOwner,Zn=!1;function er(e,t,n,r){t.child=null===e?Jt(t,null,n,r):Xt(t,e.child,n,r)}function tr(e,t,n,r,i){n=n.render;var o=t.ref;return Ct(t,i),r=_n(e,t,n,r,o,i),null===e||Zn?(t.effectTag|=1,er(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),pr(e,t,i))}function nr(e,t,n,r,i,o){if(null===e){var l=n.type;return"function"!=typeof l||Oi(l)||void 0!==l.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Li(n.type,null,r,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=l,rr(e,t,l,r,i,o))}return l=e.child,it)&&oi.set(e,t))}}function pi(e,t){e.expirationTimei.firstPendingTime&&(i.firstPendingTime=t),0===(e=i.lastPendingTime)||t component higher in the tree to provide a loading indicator or placeholder to display."+ke(s))}4!==$r&&($r=1),c=Er(c,s),s=u;do{switch(s.tag){case 3:s.effectTag|=2048,s.expirationTime=f,zt(s,f=Lr(s,c,f));break e;case 1:if(d=c,l=s.type,u=s.stateNode,0==(64&s.effectTag)&&("function"==typeof l.getDerivedStateFromError||null!==u&&"function"==typeof u.componentDidCatch&&(null===ei||!ei.has(u)))){s.effectTag|=2048,s.expirationTime=f,zt(s,f=Fr(s,d,f));break e}}s=s.return}while(null!==s)}Vr=xi(o)}if(Dr=r,wt(),Ur.current=i,null!==Vr)return yi.bind(null,e,t)}if(e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,function(e,t){var n=e.firstBatch;return!!(null!==n&&n._defer&&n._expirationTime>=t)&&(ut(97,(function(){return n._onComplete(),null})),!0)}(e,t))return null;switch(Wr=null,$r){case 0:throw a(Error(328));case 1:return(r=e.lastPendingTime)(n=(r=it())-n)&&(n=0),(t=10*(1073741821-t)-r)<(n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Mr(n/1960))-n)&&(n=t)),10=(t=0|(i=Kr).busyMinDurationMs)?t=0:(n=0|i.busyDelayMs,t=(r=it()-(10*(1073741821-r)-(0|i.timeoutMs||5e3)))<=n?0:n+t-r),10i.tailExpiration&&1r&&(r=o),(l=i.childExpirationTime)>r&&(r=l),i=i.sibling;n.childExpirationTime=r}if(null!==t)return t;null!==e&&0==(1024&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Vr.firstEffect),null!==Vr.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Vr.firstEffect),e.lastEffect=Vr.lastEffect),1i?o:i,e.firstPendingTime=i,i=n?cr(e,t,n):(Ne(sn,1&sn.current),null!==(t=pr(e,t,n))?t.sibling:null);Ne(sn,1&sn.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return dr(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),Ne(sn,sn.current),!r)return null}return pr(e,t,n)}}else Zn=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=Re(t,Pe.current),Ct(t,n),i=_n(null,t,r,e,i,n),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,Pn(),ze(r)){var o=!0;Me(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null;var l=r.getDerivedStateFromProps;"function"==typeof l&&Dt(t,r,l,e),i.updater=Wt,t.stateNode=i,i._reactInternalFiber=t,qt(t,r,e,n),t=ar(null,t,r,!0,o,n)}else t.tag=0,er(null,t,i,n),t=t.child;return t;case 16:switch(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:switch(e._status=0,(t=(t=e._ctor)()).then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)})),e._status){case 1:return e._result;case 2:throw e._result}throw e._result=t,t}}(i),t.type=i,o=t.tag=function(e){if("function"==typeof e)return Oi(e)?1:0;if(null!=e){if((e=e.$$typeof)===g)return 11;if(e===w)return 14}return 2}(i),e=bt(i,e),o){case 0:t=or(null,t,i,e,n);break;case 1:t=lr(null,t,i,e,n);break;case 11:t=tr(null,t,i,e,n);break;case 14:t=nr(null,t,i,bt(i.type,e),r,n);break;default:throw a(Error(306),i,"")}return t;case 0:return r=t.type,i=t.pendingProps,or(e,t,r,i=t.elementType===r?i:bt(r,i),n);case 1:return r=t.type,i=t.pendingProps,lr(e,t,r,i=t.elementType===r?i:bt(r,i),n);case 3:if(ur(t),null===(r=t.updateQueue))throw a(Error(282));return i=null!==(i=t.memoizedState)?i.element:null,Lt(t,r,t.pendingProps,null,n),(r=t.memoizedState.element)===i?(Xn(),t=pr(e,t,n)):(i=t.stateNode,(i=(null===e||null===e.child)&&i.hydrate)&&(K?(Bn=ve(t.stateNode.containerInfo),Vn=t,i=$n=!0):i=!1),i?(t.effectTag|=2,t.child=Jt(t,null,r,n)):(er(e,t,r,n),Xn()),t=t.child),t;case 5:return an(t),null===e&&Kn(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,l=i.children,U(r,i)?l=null:null!==o&&U(r,o)&&(t.effectTag|=16),ir(e,t),4&t.mode&&1!==n&&H(r,i)?(t.expirationTime=t.childExpirationTime=1,t=null):(er(e,t,l,n),t=t.child),t;case 6:return null===e&&Kn(t),null;case 13:return cr(e,t,n);case 4:return on(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Xt(t,null,r,n):er(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,tr(e,t,r,i=t.elementType===r?i:bt(r,i),n);case 7:return er(e,t,t.pendingProps,n),t.child;case 8:case 12:return er(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,Et(t,o=i.value),null!==l){var u=l.value;if(0===(o=pt(u,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,o):1073741823))){if(l.children===i.children&&!Ie.current){t=pr(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var s=u.dependencies;if(null!==s){l=u.child;for(var c=s.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&o)){1===u.tag&&((c=It(n,null)).tag=2,Rt(u,c)),u.expirationTimeI.length&&I.push(e)}function z(e,t,n){return null==e?0:function e(t,n,r,i){var a=typeof t;"undefined"!==a&&"boolean"!==a||(t=null);var u=!1;if(null===t)u=!0;else switch(a){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case o:case l:u=!0}}if(u)return r(i,t,""===n?"."+O(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var s=0;s=S},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125(w=ra){if(l=u,null===A)A=e.next=e.previous=e;else{n=null;var s=A;do{if(l=S},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125(w=ra){if(l=u,null===A)A=e.next=e.previous=e;else{n=null;var s=A;do{if(lI.length&&I.push(e)}function z(e,t,n){return null==e?0:function e(t,n,r,i){var a=typeof t;"undefined"!==a&&"boolean"!==a||(t=null);var u=!1;if(null===t)u=!0;else switch(a){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case o:case l:u=!0}}if(u)return r(i,t,""===n?"."+O(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var s=0;s=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}return n}(e,t)||k(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n255?255:t}function se(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function fe(e,t,n){var r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function de(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=fe(i,r,e+1/3),a=fe(i,r,e),l=fe(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function pe(e){return(parseFloat(e)%360+360)%360/360}function he(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function me(e){var t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ue.hex6.exec(e),Array.isArray(t)?parseInt("".concat(t[1],"ff"),16)>>>0:Object.hasOwnProperty.call(oe,e)?oe[e]:(t=ue.rgb.exec(e),Array.isArray(t)?(ce(t[1])<<24|ce(t[2])<<16|ce(t[3])<<8|255)>>>0:(t=ue.rgba.exec(e))?(ce(t[1])<<24|ce(t[2])<<16|ce(t[3])<<8|se(t[4]))>>>0:(t=ue.hex3.exec(e))?parseInt("".concat(t[1]+t[1]+t[2]+t[2]+t[3]+t[3],"ff"),16)>>>0:(t=ue.hex8.exec(e))?parseInt(t[1],16)>>>0:(t=ue.hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ue.hsl.exec(e))?(255|de(pe(t[1]),he(t[2]),he(t[3])))>>>0:(t=ue.hsla.exec(e))?(de(pe(t[1]),he(t[2]),he(t[3]))|se(t[4]))>>>0:null))}var ve=Object.freeze({__proto__:null,getString:function(){return I.callNativeWithPromise("ClipboardModule","getString")},setString:function(e){I.callNative("ClipboardModule","setString",e)}});var ye=Object.freeze({__proto__:null,getCookies:function(e){return I.callNativeWithPromise("network","getCookie",e)},setCookie:function(e,t,n){var r="";"string"==typeof n&&(r=n),n instanceof Date&&(r=n.toUTCString()),I.callNative("network","setCookie",e,t,r)}});function be(e){return I.callNativeWithPromise("ImageLoaderModule","getSize",e)}function ge(e){I.callNative("ImageLoaderModule","prefetch",e)}var ke,we=Object.freeze({__proto__:null,getSize:be,prefetch:ge}),xe=new Map,Ee=function(){function e(t,n){x(this,e),this.eventName=t,this.listener=n}return S(e,[{key:"remove",value:function(){this.eventName&&this.listener&&(Se(this.eventName,this.listener),delete this.listener)}}]),e}();function Se(e,t){if(t instanceof Ee)t.remove();else{var n=e;e&&"change"===e&&(n="networkStatusDidChange"),ke.listenerSize(n)<=1&&I.callNative("NetInfo","removeListener",n);var r=xe.get(t);r&&(r.remove(),xe.delete(t))}}var Ce=Object.freeze({__proto__:null,addEventListener:function(e,t){var n=e;n&&"change"===n&&(n="networkStatusDidChange"),(ke=new re).listenerSize(n)<1&&I.callNative("NetInfo","addListener",n);var r=ke.addListener(n,(function(e){t(e)}));return xe.set(r,r),new Ee(n,t)},removeEventListener:Se,fetch:function(){return I.callNativeWithPromise("NetInfo","getCurrentConnectivity").then((function(e){return e.network_info}))}}),Te=["%c[native]%c","color: red","color: auto"],Ne={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode")},_e=!0,Pe=[];function Ie(){_e&&Je()}function Ae(e){_e&&(_e=!1,Promise.resolve().then((function(){(function(e){for(var t=[],n=0;n-1})).indexOf(e)))}},{key:"appendChild",value:function(e){if(!e)throw new Error("Can't append child.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");e.parentNode=this,this.lastChild&&(e.prevSibling=this.lastChild,this.lastChild.nextSibling=e),this.childNodes.push(e),Le(this,e,this.childNodes.length-1)}},{key:"removeChild",value:function(e){if(!e)throw new Error("Can't remove child.");if(!e.parentNode)throw new Error("Can't remove child, because it has no parent.");if(e.parentNode!==this)throw new Error("Can't remove child, because it has a different parent.");e.meta.skipAddToDom||(Fe(0,e),e.prevSibling&&(e.prevSibling.nextSibling=e.nextSibling,e.prevSibling=null),e.nextSibling&&(e.nextSibling.prevSibling=e.prevSibling,e.nextSibling=null),this.childNodes=this.childNodes.filter((function(t){return t!==e})))}},{key:"findChild",value:function(e){if(e(this))return this;if(this.childNodes.length)for(var t=0;t-1?n.style[e]=wt(t):e.toLowerCase().indexOf("color")>-1?n.style[e]=kt(t):n.style[e]=t}));break;default:this.attributes[e]="function"==typeof t||t}var l=!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(Qe,e)&&(i=Qe[e]),"string"==typeof r&&(r=t.trim(),r=i.toLowerCase().indexOf("colors")>-1?wt(r):i.toLowerCase().indexOf("color")>-1?kt(r):$(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||Me(this))}else delete this.style[e]}},{key:"setNativeProps",value:function(e){var t=this;if(e){var n=e.style;if(n){var r=n;Object.keys(r).forEach((function(e){t.setStyle(e,r[e],!0)})),Me(this)}}}},{key:"setText",value:function(e){if("string"!=typeof e)try{e=e.toString()}catch(e){throw new Error("Only string type is acceptable for setText")}return(e=e.trim())||this.getAttribute("text")?(e=(e=q(e)).replace(/ /g," ").replace(/\xc2/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}]),n}(He),Ke=R.createNode,Ge=R.updateNode,Ye=R.deleteNode,Xe=R.flushBatch,Je=R.startBatch,Ze=R.endBatch,et=R.sendRenderError,tt=W;function nt(e){if(e instanceof $e)return e;var t=e._reactInternalFiber;if(t&&t.child){for(var n=t.child;n&&!(n.stateNode instanceof $e);)n=n.child;return n&&n.stateNode?n.stateNode:null}return null}function rt(e){var t=e;if("string"==typeof e){"getNodeIdByRef('".concat(e,"') use string ref will affect to performance, recommend use reference to the ref instead");var n=D((function(t){return!!(t.return&&t.return.ref&&t.return.ref._stringRef)&&t.return.ref._stringRef===e}));if(!n||!n.stateNode)return 0;t=n.stateNode}if(!t.nodeId){var r=nt(t);return r?r.nodeId:0}return t.nodeId}function it(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 o=arguments.length,a=new Array(o>2?o-2:0),l=2;l1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isInteger(e))return e;var n=me(e);return t.platform||(t.platform="ios"),null===n?0:(n=(n<<24|n>>>8)>>>0,"android"===t.platform&&(n|=0),n)}function wt(e,t){return Array.isArray(e)?e.map((function(e){return kt(e,t)})):[0]}var xt=function(e){u(n,e);var t=s(n);function n(){var e;return x(this,n),(e=t.call(this)).documentElement=new $e("document"),e}return S(n,[{key:"createElement",value:function(e){return new $e(e)}},{key:"createElementNS",value:function(e,t){return new $e("".concat(e,":").concat(t))}}]),n}(He);xt.createElement=xt.prototype.createElement,xt.createElementNS=xt.prototype.createElementNS;var Et=Array.isArray,St=Object.keys,Ct=Object.prototype.hasOwnProperty;var Tt=Object.freeze({__proto__:null,appendChild:function(e,t){e.childNodes.indexOf(t)>=0&&e.removeChild(t),e.appendChild(t)},appendChildToContainer:function(e,t){e.appendChild(t)},appendInitialChild:function(e,t){e.appendChild(t)},commitMount:function(){},commitTextUpdate:function(){},commitUpdate:function(e,t){Object.keys(t).forEach((function(n){return e.setAttribute(n,t[n])}))},createContainerChildSet:function(){},createInstance:function(e,t,n,r,i){var o=n.createElement(e);return Object.keys(t).forEach((function(e){switch(e){case"children":break;case"nativeName":o.meta.component.name=t.nativeName;break;default:o.setAttribute(e,t[e])}})),[5,7].indexOf(i.tag)<0&&(o.meta.skipAddToDom=!0),o},createTextInstance:function(e,t){var n=t.createElement("p");return n.setAttribute("text",q(e)),n.meta={component:{name:"Text",skipAddToDom:!0}},n},finalizeContainerChildren:function(){},finalizeInitialChildren:function(){return!0},getPublicInstance:function(e){return e},insertBefore:function(e,t,n){e.childNodes.indexOf(t)>0?e.moveChild(t,n):e.insertBefore(t,n)},prepareForCommit:function(){},prepareUpdate:function(e,t,n,r){var i={};return Object.keys(r).forEach((function(e){var t=n[e],o=r[e];switch(e){case"children":t===o||"number"!=typeof o&&"string"!=typeof o||(i[e]=o);break;default:"function"==typeof t&&"function"==typeof o||function e(t,n){if(t===n)return!0;if(t&&n&&"object"==b(t)&&"object"==b(n)){var r,i,o,a=Et(t),l=Et(n);if(a&&l){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=l)return!1;var u=t instanceof Date,c=n instanceof Date;if(u!=c)return!1;if(u&&c)return t.getTime()==n.getTime();var s=t instanceof RegExp,f=n instanceof RegExp;if(s!=f)return!1;if(s&&f)return t.toString()==n.toString();var d=St(t);if((i=d.length)!==St(n).length)return!1;for(r=i;0!=r--;)if(!Ct.call(n,d[r]))return!1;for(r=i;0!=r--;)if(!e(t[o=d[r]],n[o]))return!1;return!0}return t!=t&&n!=n}(t,o)||(i[e]=o)}})),Object.keys(i).length?i:null},replaceContainerChildren:function(){},removeChild:function(e,t){e.removeChild(t)},removeChildFromContainer:function(e,t){e.removeChild(t)},resetAfterCommit:function(){},resetTextContent:function(){},getRootHostContext:function(){return{}},getChildHostContext:function(){return{}},shouldDeprioritizeSubtree:function(){return!0},shouldSetTextContent:function(e,t){if(t&&"Text"===t.nativeName||-1!==["p","span"].indexOf(e)){var n=t.children;return"string"==typeof n||"number"==typeof n}return!1}}),Nt=a()(m(m({},Tt),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:function(){},cancelDeferredCallback:function(){}})),_t=Nt.createContainer,Pt=Nt.updateContainer,It=Nt.getPublicRootInstance,At=['%c[Hippy-React "2.5.0"]%c',"color: #61dafb","color: auto"],Rt=function(){function e(t){if(x(this,e),!t.appName||!t.entryPage)throw new TypeError("Invalid arguments");this.config=t,this.regist=this.start,this.render=this.render.bind(this);var n=new xt;this.rootContainer=_t(n,!1,!1)}return S(e,[{key:"start",value:function(){bt.regist(this.config.appName,this.render)}},{key:"render",value:function(e){var t=this.config,n=t.appName,r=t.entryPage,o=t.silent,a=void 0!==o&&o,l=t.callback,u=void 0===l?function(){}:l,c=e.__instanceId__;B.apply(void 0,At.concat(["Start",n,"with rootViewId",c,e])),this.rootContainer.containerInfo.nodeId=c,a&&G(a),U(c,this.rootContainer);var s=i.a.createElement(r,e);return Pt(s,this.rootContainer,null,u),It(this.rootContainer)}}],[{key:"Native",get:function(){return gt}}]),e}();Rt.version="2.5.0";var Ot={registerComponent:function(e,t){new Rt({appName:e,entryPage:t}).start()}},zt=function(e){u(n,e);var t=s(n);function n(){return x(this,n),t.apply(this,arguments)}return S(n,[{key:"render",value:function(){var e=this.props,t=e.collapsable,n=e.style,r=void 0===n?{}:n,o=y(e,["collapsable","style"]),a=r;return"boolean"==typeof t&&(a.collapsable=t),i.a.createElement("div",Object.assign({nativeName:"View",style:a},o))}}]),n}(i.a.Component);function jt(e,t){var n=e.style,r=y(e,["style"]),o=n;if(n&&(Array.isArray(n)?-1===n.filter((function(e){return"object"===b(e)&&e})).findIndex((function(e){return e.color||e.colors}))&&(o[0].color="#000"):"object"===b(n)&&void 0===n.color&&void 0===n.colors&&(o.color="#000")),r.text="","string"==typeof r.children)r.text=q(r.children);else if("number"==typeof r.children)r.text=q(r.children.toString());else if(Array.isArray(r.children)){var a=r.children.filter((function(e){return"string"==typeof e||"number"==typeof e})).join("");a&&(r.text=q(a),r.children=r.text)}return i.a.createElement("p",Object.assign({ref:t,nativeName:"Text",style:o},r))}jt.displayName="Text";var Lt=i.a.forwardRef(jt);function Ft(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){return"".concat("hpfile://","./").concat(e)}return e}Lt.displayName="Text";var Mt=function(e){u(n,e);var t=s(n);function n(){return x(this,n),t.apply(this,arguments)}return S(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.style,r=e.imageStyle,o=e.imageRef,a=e.source,u=e.sources,c=e.src,s=e.srcs,f=e.tintColor,d=e.tintColors,p=y(e,["children","style","imageStyle","imageRef","source","sources","src","srcs","tintColor","tintColors"]),h=[];if("string"==typeof c&&h.push(c),Array.isArray(s)&&(h=[].concat(l(h),l(s))),a)if("string"==typeof a)h.push(a);else if("object"===b(a)&&null!==a){var v=a.uri;v&&h.push(v)}if(u&&Array.isArray(u)&&u.forEach((function(e){"string"==typeof e?h.push(e):"object"===b(e)&&null!==e&&e.uri&&h.push(e.uri)})),h.length&&(h=h.map((function(e){return Ft(e)}))),"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 k=g(h,1);p.src=k[0]}else h.length>1&&(p.srcs=h);"string"==typeof p.defaultSource&&(p.defaultSource.indexOf("data:image/"),p.defaultSource=Ft(p.defaultSource));var w=m({},n);return f&&(w.tintColor=kt(f)),Array.isArray(d)&&(w.tintColors=wt(d)),p.style=w,t?i.a.createElement(zt,{style:n},i.a.createElement("img",Object.assign({},p,{nativeName:"Image",alt:"",ref:o,style:[{position:"absolute",left:0,right:0,top:0,bottom:0,width:n.width,height:n.height},r]})),t):i.a.createElement("img",Object.assign({},p,{nativeName:"Image",alt:"",ref:o}))}}],[{key:"resizeMode",get:function(){return{contain:"contain",cover:"cover",stretch:"stretch",center:"center",repeat:"repeat"}}},{key:"getSize",value:function(e,t,n){if("string"!=typeof e)throw new TypeError("Image.getSize first argument must be a string url");var r=be(e);return"function"==typeof t&&r.then((function(e){return t(e.width,e.height)})),"function"==typeof n?r.catch(n):r.catch((function(t){"Failed to get size for image: ".concat(e)})),r}}]),n}(i.a.Component);Mt.prefetch=ge;var Ut=function(){function e(){x(this,e),this.Value=e.Value}return S(e,null,[{key:"Value",value:function(e){return e}},{key:"timing",value:function(e,t){return new Ve({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}]),e}();Ut.View=zt,Ut.Text=Lt,Ut.Image=Mt;var Ht={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 Dt(e){return i.a.createElement("li",Object.assign({nativeName:"ListViewItem"},e))}var Wt=function(e){u(n,e);var t=s(n);function n(){var e;return x(this,n),(e=t.apply(this,arguments)).instance=null,e}return S(n,[{key:"expandPullHeader",value:function(){it(this.instance,"expandPullHeader",[])}},{key:"collapsePullHeader",value:function(){it(this.instance,"collapsePullHeader",[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=y(t,["children"]);return i.a.createElement("div",Object.assign({nativeName:"PullHeaderView",ref:function(t){e.instance=t}},r),n)}}]),n}(i.a.Component),Vt=function(e){u(n,e);var t=s(n);function n(){var e;return x(this,n),(e=t.apply(this,arguments)).instance=null,e}return S(n,[{key:"expandPullFooter",value:function(){it(this.instance,"expandPullFooter",[])}},{key:"collapsePullFooter",value:function(){it(this.instance,"collapsePullFooter",[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=y(t,["children"]);return i.a.createElement("div",Object.assign({nativeName:"PullFooterView",ref:function(t){e.instance=t}},r),n)}}]),n}(i.a.Component);Vt.defaultProps={sticky:!0};var Bt={onDisappear:"onDisAppear"},qt={onDisappear:"onDisappear"},Qt=function(e){u(n,e);var t=s(n);function n(e){var r;return x(this,n),(r=t.call(this,e)).instance=null,r.pullHeader=null,r.pullFooter=null,r.handleInitialListReady=r.handleInitialListReady.bind(d(r)),r.state={initialListReady:!1},r}return S(n,[{key:"componentDidMount",value:function(){this.props.getRowKey}},{key:"convertName",value:function(e){return"android"===yt.platform.OS&&Bt[e]?Bt[e]:"ios"===yt.platform.OS&&qt[e]?qt[e]:e}},{key:"scrollToIndex",value:function(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&it(this.instance,"scrollToIndex",[e,t,n])}},{key:"scrollToContentOffset",value:function(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&it(this.instance,"scrollToContentOffset",[e,t,n])}},{key:"expandPullHeader",value:function(){this.pullHeader&&this.pullHeader.expandPullHeader()}},{key:"collapsePullHeader",value:function(){this.pullHeader&&this.pullHeader.collapsePullHeader()}},{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:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.style,o=t.renderRow,a=t.renderPullHeader,l=t.renderPullFooter,u=t.getRowType,c=t.getRowStyle,s=t.getRowKey,f=t.dataSource,d=t.initialListSize,p=t.rowShouldSticky,h=t.onRowLayout,v=t.onHeaderPulling,b=t.onHeaderReleased,g=t.onFooterPulling,k=t.onFooterReleased,w=t.onAppear,x=t.onDisappear,E=t.onWillAppear,S=t.onWillDisappear,C=y(t,["children","style","renderRow","renderPullHeader","renderPullFooter","getRowType","getRowStyle","getRowKey","dataSource","initialListSize","rowShouldSticky","onRowLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","onAppear","onDisappear","onWillAppear","onWillDisappear"]),T=[];if("function"==typeof o){var N=this.state.initialListReady,_=this.props.numberOfRows,P=null,I=null;"function"==typeof a&&(P=i.a.createElement(Wt,{ref:function(t){e.pullHeader=t},onHeaderPulling:v,onHeaderReleased:b},a())),"function"==typeof l&&(I=i.a.createElement(Vt,{ref:function(t){e.pullFooter=t},onFooterPulling:g,onFooterReleased:k},l())),!_&&f&&(_=f.length),N||(_=Math.min(_,d||10));for(var A=function(t){var n={},r=void 0;if(r=f?o(f[t],null,t):o(t),"function"==typeof s&&(n.key=s(t)),"function"==typeof c&&(n.style=c(t)),"function"==typeof h&&(n.onLayout=function(e){h(e,t)}),"function"==typeof w&&(n[e.convertName(w.name)]=function(){w(t)}),"function"==typeof x&&(n[e.convertName(x.name)]=function(){x(t)}),"function"==typeof E&&(n[e.convertName(E.name)]=function(){E(t)}),"function"==typeof S&&(n[e.convertName(S.name)]=function(){S(t)}),"function"==typeof u){var a=u(t);Number.isInteger(a),n.type=a}"function"==typeof p&&(n.sticky=p(t)),r&&T.push(i.a.createElement(Dt,Object.assign({},n),r))},R=0;R<_;R+=1)A(R);P&&T.unshift(P),I&&T.push(I),"function"==typeof p&&Object.assign(C,{rowShouldSticky:!0});var O=[w,x,E,S];C.exposureEventEnabled=O.some((function(e){return"function"==typeof e})),C.numberOfRows=T.length,C.initialListSize=d,C.style=m({overflow:"scroll"},r)}return!C.onLoadMore&&C.onEndReached&&(C.onLoadMore=C.onEndReached),i.a.createElement("ul",Object.assign({ref:function(t){e.instance=t},nativeName:"ListView",initialListReady:this.handleInitialListReady},C),T.length?T:n)}}]),n}(i.a.Component);Qt.defaultProps={numberOfRows:0};var $t=function(e){u(n,e);var t=s(n);function n(e){var r;return x(this,n),(r=t.call(this,e)).instance=null,r.refreshComplected=r.refreshCompleted.bind(d(r)),r}return S(n,[{key:"getRefresh",value:function(){var e=this.props.getRefresh;return"function"==typeof e&&e()||null}},{key:"startRefresh",value:function(){it(this.instance,"startRefresh",null)}},{key:"refreshCompleted",value:function(){it(this.instance,"refreshComplected",null)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=y(t,["children"]);return i.a.createElement("div",Object.assign({nativeName:"RefreshWrapper",ref:function(t){e.instance=t}},r),i.a.createElement("div",{nativeName:"RefreshWrapperItemView",style:[{left:0,right:0,position:"absolute"}]},this.getRefresh()),n)}}]),n}(i.a.Component),Kt=function(){function e(){x(this,e),this.top=null,this.size=0}return S(e,[{key:"push",value:function(e){this.top={data:e,next:this.top},this.size+=1}},{key:"peek",value:function(){return null===this.top?null:this.top.data}},{key:"pop",value:function(){if(null===this.top)return null;var e=this.top;return this.top=this.top.next,this.size>0&&(this.size-=1),e.data}},{key:"clear",value:function(){this.top=null,this.size=0}},{key:"displayAll",value:function(){var e=[];if(null===this.top)return e;for(var t=this.top,n=0,r=this.size;n1&&this.pop({animated:!0})}},{key:"push",value:function(e){if(e&&e.component){if(!this.routeList[e.routeName])new Rt({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0;delete e.component}var t=[e];this.stack.push(e),it(this.instance,"push",t)}},{key:"pop",value:function(e){if(this.stack.size>1){var t=[e];this.stack.pop(),it(this.instance,"pop",t)}}},{key:"clear",value:function(){this.stack.clear()}},{key:"render",value:function(){var e=this,t=this.props,n=t.initialRoute,r=(n.component,y(n,["component"])),o=y(t,["initialRoute"]);return o.initialRoute=r,i.a.createElement("div",Object.assign({nativeName:"Navigator",ref:function(t){e.instance=t}},o))}}]),n}(i.a.Component);function Yt(e){return i.a.createElement("div",Object.assign({nativeName:"ViewPagerItem"},e,{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}var Xt=function(e){u(n,e);var t=s(n);function n(e){var r;return x(this,n),(r=t.call(this,e)).instance=null,r.setPage=r.setPage.bind(d(r)),r.setPageWithoutAnimation=r.setPageWithoutAnimation.bind(d(r)),r.onPageScrollStateChanged=r.onPageScrollStateChanged.bind(d(r)),r}return S(n,[{key:"onPageScrollStateChanged",value:function(e){var t=this.props.onPageScrollStateChanged;t&&t(e.pageScrollState)}},{key:"setPage",value:function(e){"number"==typeof e&&it(this.instance,"setPage",[e])}},{key:"setPageWithoutAnimation",value:function(e){"number"==typeof e&&it(this.instance,"setPageWithoutAnimation",[e])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.onPageScrollStateChanged,o=y(t,["children","onPageScrollStateChanged"]),a=[];return Array.isArray(n)?a=n.map((function(e){var t={};return"string"==typeof e.key&&(t.key="viewPager_".concat(e.key)),i.a.createElement(Yt,Object.assign({},t),e)})):a.push(i.a.createElement(Yt,null,n)),"function"==typeof r&&(o.onPageScrollStateChanged=this.onPageScrollStateChanged),i.a.createElement("div",Object.assign({nativeName:"ViewPager",ref:function(t){e.instance=t}},o),a)}}]),n}(i.a.Component),Jt=function(e){u(n,e);var t=s(n);function n(e){var r;return x(this,n),(r=t.call(this,e)).instance=null,r._lastNativeText="",r._onChangeText=r._onChangeText.bind(d(r)),r._onKeyboardWillShow=r._onKeyboardWillShow.bind(d(r)),r}return S(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.value,n=e.autoFocus;this._lastNativeText=t,n&&this.focus()}},{key:"componentWillUnmount",value:function(){this.blur()}},{key:"getValue",value:function(){var e=this;return new Promise((function(t){it(e.instance,"getValue",(function(e){return t(e.text)}))}))}},{key:"setValue",value:function(e){return it(this.instance,"setValue",[e]),e}},{key:"focus",value:function(){it(this.instance,"focusTextInput",[])}},{key:"blur",value:function(){it(this.instance,"blurTextInput",[])}},{key:"showInputMethod",value:function(){it(this.instance,"showInputMethod",[])}},{key:"hideInputMethod",value:function(){it(this.instance,"hideInputMethod",[])}},{key:"clear",value:function(){it(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=m({},this.props);return["underlineColorAndroid","placeholderTextColor","placeholderTextColors"].forEach((function(n){"string"==typeof e.props[n]&&(Array.isArray(t.style)?t.style.push({[n]:e.props[n]}):"object"===b(t.style)?t.style[n]=e.props[n]:t.style={[n]:e.props[n]},delete t[n])})),i.a.createElement("div",Object.assign({nativeName:"TextInput"},t,{ref:function(t){e.instance=t},onChangeText:this._onChangeText,onKeyboardWillShow:this._onKeyboardWillShow}))}}]),n}(i.a.Component),Zt=yt.window.scale,en=Math.round(.4*Zt)/Zt;function tn(e){return e}0===en&&(en=1/Zt);var nn=Object.freeze({__proto__:null,get hairlineWidth(){return en},create:tn}),rn={baseVertical:{flexGrow:1,flexShrink:1,flexDirection:"column",overflow:"scroll"},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:"row",overflow:"scroll"},contentContainerVertical:{collapse:!1,flexDirection:"column"},contentContainerHorizontal:{collapse:!1,flexDirection:"row"}},on=function(e){u(n,e);var t=s(n);function n(){var e;return x(this,n),(e=t.apply(this,arguments)).instance=null,e}return S(n,[{key:"scrollTo",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e,i=t,o=n;"number"==typeof e||"object"===b(e)&&e&&(r=e.x,i=e.y,o=e.animated),r=r||0,i=i||0,o=!!o,it(this.instance,"scrollTo",[r,i,o])}},{key:"scrollToWithDuration",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;it(this.instance,"scrollToWithOptions",[{x:e,y:t,duration:n}])}},{key:"render",value:function(){var e=this,t=this.props,n=t.horizontal,r=t.contentContainerStyle,o=t.children,a=t.style,l=[n?rn.contentContainerHorizontal:rn.contentContainerVertical,r],u=n?Object.assign({},a,rn.baseHorizontal):Object.assign({},a,rn.baseVertical);return i.a.createElement("div",Object.assign({nativeName:"ScrollView",ref:function(t){e.instance=t}},this.props,{style:u}),i.a.createElement(zt,{style:l},o))}}]),n}(i.a.Component),an={modal:{position:"absolute"},container:{position:"absolute",left:0,top:0}},ln=function(e){u(n,e);var t=s(n);function n(e){var r;return x(this,n),(r=t.call(this,e)).eventSubscription=null,r}return S(n,[{key:"componentDidMount",value:function(){var e=this;"ios"===yt.platform.OS&&(this.eventSubscription=new te("modalDismissed"),this.eventSubscription.addCallback((function(t){var n=e.props,r=n.primaryKey,i=n.onDismiss;t.primaryKey===r&&"function"==typeof i&&i()})))}},{key:"componentWillUnmount",value:function(){"ios"===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,o=e.animated,a=this.props.animationType;if(!1===n)return null;var l={backgroundColor:r?"transparent":"white"};return a||(a="none",o&&(a="slide")),i.a.createElement("div",Object.assign({nativeName:"Modal",animationType:a,transparent:r,style:an.modal},this.props),i.a.createElement(zt,{style:[an.container,l]},t))}}]),n}(i.a.Component);ln.defaultProps={visible:!0};var un=function(e){u(n,e);var t=s(n);function n(e){var r;x(this,n);var i=(r=t.call(this,e)).props.requestFocus;return r.state={isFocus:!!i},r.handleFocus=r.handleFocus.bind(d(r)),r}return S(n,[{key:"handleFocus",value:function(e){var t=this.props.onFocus;"function"==typeof t&&t(e),this.state.isFocus!==e.focus&&this.setState({isFocus:e.focus})}},{key:"render",value:function(){var e,t=this.props,n=t.requestFocus,r=t.children,o=t.nextFocusDownId,a=t.nextFocusUpId,l=t.nextFocusLeftId,u=t.nextFocusRightId,c=t.style,s=t.noFocusStyle,f=t.focusStyle,d=t.onClick,p=this.state.isFocus,h=i.a.Children.only(r);h&&h.child&&h.child.memoizedProps&&h.child.memoizedProps.nativeName?e=h.child.memoizedProps.nativeName:h&&h.type&&h.type.name&&(e=h.type.name);var v=o&&rt(o),y=a&&rt(a),b=l&&rt(l),g=u&&rt(u),k=c;if("Text"!==e){var w=h.memoizedProps.style;k=m(m({},k),w)}if(Object.assign(k,p?f:s),"Text"===e)return i.a.createElement(zt,{focusable:!0,nextFocusDownId:v,nextFocusUpId:y,nextFocusLeftId:b,nextFocusRightId:g,requestFocus:n,style:k,onClick:d,onFocus:this.handleFocus},h);var x=h.memoizedProps.children;return i.a.cloneElement(h,{nextFocusDownId:o,nextFocusUpId:a,nextFocusLeftId:l,nextFocusRightId:u,requestFocus:n,onClick:d,focusable:!0,children:x,style:k,onFocus:this.handleFocus})}}]),n}(i.a.Component);function cn(e){return i.a.createElement("iframe",Object.assign({title:"hippy",nativeName:"WebView"},e))}var sn,fn=function(){function e(t,n,r){var i=this;if(x(this,e),this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),sn||(sn=new te("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!t||"string"!=typeof t)throw new TypeError("Invalid WebSocket url");var o=m({},r);if(void 0!==n)if(Array.isArray(n)&&n.length>0)o["Sec-WebSocket-Protocol"]=n.join(",");else{if("string"!=typeof n)throw new TypeError("Invalid WebSocket protocals");o["Sec-WebSocket-Protocol"]=n}var a={headers:o,url:t};this.url=t,this.webSocketCallbackId=sn.addCallback(this.onWebSocketEvent),I.callNativeWithPromise("websocket","connect",a).then((function(e){e&&0===e.code&&"number"==typeof e.id&&(i.webSocketId=e.id)}))}return S(e,[{key:"close",value:function(e,t){1===this.readyState&&(this.readyState=2,I.callNative("websocket","close",{id:this.webSocketId,code:e,reason:t}))}},{key:"send",value:function(e){if(1===this.readyState){if("string"!=typeof e)throw new TypeError("Unsupported websocket data type: ".concat(b(e)));I.callNative("websocket","send",{id:this.webSocketId,data:e})}}},{key:"onopen",set:function(e){this.webSocketCallbacks.onOpen=e}},{key:"onclose",set:function(e){this.webSocketCallbacks.onClose=e}},{key:"onerror",set:function(e){this.webSocketCallbacks.onError=e}},{key:"onmessage",set:function(e){this.webSocketCallbacks.onMessage=e}},{key:"onWebSocketEvent",value:function(e){if("object"===b(e)&&e.id===this.webSocketId){var t=e.type;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,sn.removeCallback(this.webSocketCallbackId));var n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}}]),e}();e.WebSocket=fn;var dn=gt.AsyncStorage,pn=gt.BackAndroid,hn=gt.Bridge,mn=gt.Clipboard,vn=gt.Cookie,yn=gt.Device,bn=gt.HippyRegister,gn=gt.ImageLoader,kn=gt.NetworkInfo,wn=gt.UIManager,xn=hn.callNative,En=hn.callNativeWithPromise,Sn=hn.callNativeWithCallbackId,Cn=hn.removeNativeCallback,Tn=null,Nn=console,_n=yn.platform,Pn=Rt,In=Rt,An=Mt,Rn=bn,On=re,zn=te,jn={get:function(e){return yn[e]}},Ln={get:function(){return yn.screen.scale}};t.default=Rt}.call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/object-assign/index.js":function(e,t,n){"use strict"; + */e.__GLOBAL__||(e.__GLOBAL__={});var C=e.__GLOBAL__;C.nodeId=0,C.animationId=0,C.renderCount=0;var T,N,_=e.Hippy,P=_.asyncStorage,I=_.bridge,A=_.device,R=_.document,O=_.register,z=_.on,j=_.off,L=_.emit,F=Object.freeze({__proto__:null,addEventListener:z,removeEventListener:j,dispatchEvent:L,AsyncStorage:P,Bridge:I,Device:A,HippyRegister:O,UIManager:R}),M=function(){function e(t){x(this,e),this.handlerContainer={},this.nextIdForHandler=0,this.eventName=t}return S(e,[{key:"addEventHandler",value:function(e,t){if(!e)throw new TypeError("Invalid arguments");var n=this.nextIdForHandler;this.nextIdForHandler+=1;var r={id:n,eventHandler:e,context:t},i="eventHandler_".concat(n);return this.handlerContainer[i]=r,n}},{key:"removeEventHandler",value:function(e){if("number"!=typeof e)throw new TypeError("Invalid arguments");var t="eventHandler_".concat(e);this.handlerContainer[t]&&delete this.handlerContainer[t]}},{key:"notifyEvent",value:function(e){var t=this;Object.keys(this.handlerContainer).forEach((function(n){var r=t.handlerContainer[n];r&&r.eventHandler&&(r.context?r.eventHandler.call(r.context,e):r.eventHandler(e))}))}},{key:"getEventListeners",value:function(){var e=this;return Object.keys(this.handlerContainer).filter((function(t){return e.handlerContainer[t]})).map((function(t){return e.handlerContainer[t]}))}},{key:"getHandlerSize",value:function(){return Object.keys(this.handlerContainer).length}}]),e}();function U(e,t){N=e,T=t}function H(){if(!N)throw new Error("getRootViewId must execute after setRootContainer");return N}function D(e){if(!T)return null;for(var t=[T.current];t.length;){var n=t.shift();if(!n)break;if(e(n))return n;n.child&&t.push(n.child),n.sibling&&t.push(n.sibling)}return null}function W(e){return D((function(t){return t.stateNode&&t.stateNode.nodeId===e}))}var V=new RegExp(/^\d+$/);function B(){}function q(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 Q=new RegExp("^(?=.+)[+-]?\\d*\\.?\\d*([Ee][+-]?\\d+)?$");function $(e){if("number"==typeof e)return e;if("string"==typeof e&&Q.test(e))try{return parseFloat(e)}catch(t){return e}return e}function K(e){return"[object Function]"===Object.prototype.toString.call(e)}function G(e){e}var Y=new Map,X=["%c[event]%c","color: green","color: auto"];function J(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for getHippyEventHub: ".concat(e));return Y.get(e)||null}var Z={registerNativeEventHub:function(e){if(B.apply(void 0,X.concat(["registerNativeEventHub",e])),"string"!=typeof e)throw new TypeError("Invalid eventName for registerNativeEventHub: ".concat(e));var t=Y.get(e);return t||(t=new M(e),Y.set(e,t)),t},getHippyEventHub:J,unregisterNativeEventHub:function(e){if("string"!=typeof e)throw new TypeError("Invalid eventName for unregisterNativeEventHub: ".concat(e));Y.has(e)&&Y.delete(e)},receiveNativeEvent:function(e){if(B.apply(void 0,X.concat(["receiveNativeEvent",e])),!e||!(e instanceof Array)||e.length<2)throw new TypeError("Invalid params for receiveNativeEvent: ".concat(JSON.stringify(e)));var t=g(e,2),n=t[0],r=t[1];if("string"!=typeof n)throw new TypeError("Invalid arguments");var i=J(n);i&&i.notifyEvent(r)},receiveNativeGesture:function(e){if(B.apply(void 0,X.concat(["receiveNativeGesture",e])),e){var t=W(e.id);if(t){var n=!1,r=t,i=e.name;do{if(r.memoizedProps&&!r.memoizedProps[i]&&"onClick"===i&&r.memoizedProps.onPress&&(i="onPress"),r.memoizedProps&&r.memoizedProps[i]&&"function"==typeof r.memoizedProps[i])try{n=r.memoizedProps[i](e)}catch(e){console.reportUncaughtException(e)}if("boolean"!=typeof n&&(n=!0),!1===n)for(r=r.return;r&&5!==r.tag;)r=r.return}while(!n&&r)}}},receiveUIComponentEvent:function(e){if(B.apply(void 0,X.concat(["receiveUIComponentEvent",e])),e&&Array.isArray(e)&&!(e.length<2)){var t=g(e,3),n=t[0],r=t[1],i=t[2];if("number"==typeof n&&"string"==typeof r){var o=W(n);o&&o.memoizedProps&&o.memoizedProps[r]&&"function"==typeof o.memoizedProps[r]&&o.memoizedProps[r](i)}}}};e.__GLOBAL__&&(e.__GLOBAL__.jsModuleList.EventDispatcher=Z);var ee=function(){function e(t,n){x(this,e),this.callback=t,this.bindListener=n}return S(e,[{key:"remove",value:function(){"number"==typeof this.callback&&this.bindListener&&(this.bindListener.removeCallback(this.callback),delete this.bindListener)}}]),e}(),te=function(){function e(t){x(this,e),this.eventName=t,this.listenerIds=[]}return S(e,[{key:"addCallback",value:function(e,t){if("function"!=typeof e)throw new TypeError("Invalid arguments");var n=Z.registerNativeEventHub(this.eventName);if(!n)throw new ReferenceError("No listeners for ".concat(this.eventName));var r=n.addEventHandler(e,t);if("number"!=typeof r)throw new Error("Fail to addEventHandler");return this.listenerIds.push(r),r}},{key:"removeCallback",value:function(e){if("number"!=typeof e)throw new TypeError("Invalid arguments");var t=Z.getHippyEventHub(this.eventName);if(!t)throw new ReferenceError("No listeners for ".concat(this.eventName));t.removeEventHandler(e);for(var n=this.listenerIds.length,r=0;r255?255:t}function se(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function fe(e,t,n){var r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function de(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=fe(i,r,e+1/3),a=fe(i,r,e),l=fe(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function pe(e){return(parseFloat(e)%360+360)%360/360}function he(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function me(e){var t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ue.hex6.exec(e),Array.isArray(t)?parseInt("".concat(t[1],"ff"),16)>>>0:Object.hasOwnProperty.call(oe,e)?oe[e]:(t=ue.rgb.exec(e),Array.isArray(t)?(ce(t[1])<<24|ce(t[2])<<16|ce(t[3])<<8|255)>>>0:(t=ue.rgba.exec(e))?(ce(t[1])<<24|ce(t[2])<<16|ce(t[3])<<8|se(t[4]))>>>0:(t=ue.hex3.exec(e))?parseInt("".concat(t[1]+t[1]+t[2]+t[2]+t[3]+t[3],"ff"),16)>>>0:(t=ue.hex8.exec(e))?parseInt(t[1],16)>>>0:(t=ue.hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ue.hsl.exec(e))?(255|de(pe(t[1]),he(t[2]),he(t[3])))>>>0:(t=ue.hsla.exec(e))?(de(pe(t[1]),he(t[2]),he(t[3]))|se(t[4]))>>>0:null))}var ve=Object.freeze({__proto__:null,getString:function(){return I.callNativeWithPromise("ClipboardModule","getString")},setString:function(e){I.callNative("ClipboardModule","setString",e)}});var ye=Object.freeze({__proto__:null,getCookies:function(e){return I.callNativeWithPromise("network","getCookie",e)},setCookie:function(e,t,n){var r="";"string"==typeof n&&(r=n),n instanceof Date&&(r=n.toUTCString()),I.callNative("network","setCookie",e,t,r)}});function be(e){return I.callNativeWithPromise("ImageLoaderModule","getSize",e)}function ge(e){I.callNative("ImageLoaderModule","prefetch",e)}var ke,we=Object.freeze({__proto__:null,getSize:be,prefetch:ge}),xe=new Map,Ee=function(){function e(t,n){x(this,e),this.eventName=t,this.listener=n}return S(e,[{key:"remove",value:function(){this.eventName&&this.listener&&(Se(this.eventName,this.listener),delete this.listener)}}]),e}();function Se(e,t){if(t instanceof Ee)t.remove();else{var n=e;e&&"change"===e&&(n="networkStatusDidChange"),ke.listenerSize(n)<=1&&I.callNative("NetInfo","removeListener",n);var r=xe.get(t);r&&(r.remove(),xe.delete(t))}}var Ce=Object.freeze({__proto__:null,addEventListener:function(e,t){var n=e;n&&"change"===n&&(n="networkStatusDidChange"),(ke=new re).listenerSize(n)<1&&I.callNative("NetInfo","addListener",n);var r=ke.addListener(n,(function(e){t(e)}));return xe.set(r,r),new Ee(n,t)},removeEventListener:Se,fetch:function(){return I.callNativeWithPromise("NetInfo","getCurrentConnectivity").then((function(e){return e.network_info}))}}),Te=["%c[native]%c","color: red","color: auto"],Ne={createNode:Symbol("createNode"),updateNode:Symbol("updateNode"),deleteNode:Symbol("deleteNode")},_e=!0,Pe=[];function Ie(){_e&&Je()}function Ae(e){_e&&(_e=!1,Promise.resolve().then((function(){(function(e){for(var t=[],n=0;n-1})).indexOf(e)))}},{key:"appendChild",value:function(e){if(!e)throw new Error("Can't append child.");if(e.parentNode&&e.parentNode!==this)throw new Error("Can't append child, because it already has a different parent.");e.parentNode=this,this.lastChild&&(e.prevSibling=this.lastChild,this.lastChild.nextSibling=e),this.childNodes.push(e),Le(this,e,this.childNodes.length-1)}},{key:"removeChild",value:function(e){if(!e)throw new Error("Can't remove child.");if(!e.parentNode)throw new Error("Can't remove child, because it has no parent.");if(e.parentNode!==this)throw new Error("Can't remove child, because it has a different parent.");e.meta.skipAddToDom||(Fe(0,e),e.prevSibling&&(e.prevSibling.nextSibling=e.nextSibling,e.prevSibling=null),e.nextSibling&&(e.nextSibling.prevSibling=e.prevSibling,e.nextSibling=null),this.childNodes=this.childNodes.filter((function(t){return t!==e})))}},{key:"findChild",value:function(e){if(e(this))return this;if(this.childNodes.length)for(var t=0;t-1?n.style[e]=wt(t):e.toLowerCase().indexOf("color")>-1?n.style[e]=kt(t):n.style[e]=t}));break;default:this.attributes[e]="function"==typeof t||t}var l=!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(Qe,e)&&(i=Qe[e]),"string"==typeof r&&(r=t.trim(),r=i.toLowerCase().indexOf("colors")>-1?wt(r):i.toLowerCase().indexOf("color")>-1?kt(r):$(r)),null!=r&&this.style[i]!==r&&(this.style[i]=r,n||Me(this))}else delete this.style[e]}},{key:"setNativeProps",value:function(e){var t=this;if(e){var n=e.style;if(n){var r=n;Object.keys(r).forEach((function(e){t.setStyle(e,r[e],!0)})),Me(this)}}}},{key:"setText",value:function(e){if("string"!=typeof e)try{e=e.toString()}catch(e){throw new Error("Only string type is acceptable for setText")}return(e=e.trim())||this.getAttribute("text")?(e=(e=q(e)).replace(/ /g," ").replace(/\xc2/g," "),"textarea"===this.tagName?this.setAttribute("value",e):this.setAttribute("text",e)):null}}]),n}(He),Ke=R.createNode,Ge=R.updateNode,Ye=R.deleteNode,Xe=R.flushBatch,Je=R.startBatch,Ze=R.endBatch,et=R.sendRenderError,tt=W;function nt(e){if(e instanceof $e)return e;var t=e._reactInternalFiber;if(t&&t.child){for(var n=t.child;n&&!(n.stateNode instanceof $e);)n=n.child;return n&&n.stateNode?n.stateNode:null}return null}function rt(e){var t=e;if("string"==typeof e){"getNodeIdByRef('".concat(e,"') use string ref will affect to performance, recommend use reference to the ref instead");var n=D((function(t){return!!(t.return&&t.return.ref&&t.return.ref._stringRef)&&t.return.ref._stringRef===e}));if(!n||!n.stateNode)return 0;t=n.stateNode}if(!t.nodeId){var r=nt(t);return r?r.nodeId:0}return t.nodeId}function it(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 o=arguments.length,a=new Array(o>2?o-2:0),l=2;l1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isInteger(e))return e;var n=me(e);return t.platform||(t.platform="ios"),null===n?0:(n=(n<<24|n>>>8)>>>0,"android"===t.platform&&(n|=0),n)}function wt(e,t){return Array.isArray(e)?e.map((function(e){return kt(e,t)})):[0]}var xt=function(e){u(n,e);var t=s(n);function n(){var e;return x(this,n),(e=t.call(this)).documentElement=new $e("document"),e}return S(n,[{key:"createElement",value:function(e){return new $e(e)}},{key:"createElementNS",value:function(e,t){return new $e("".concat(e,":").concat(t))}}]),n}(He);xt.createElement=xt.prototype.createElement,xt.createElementNS=xt.prototype.createElementNS;var Et=Array.isArray,St=Object.keys,Ct=Object.prototype.hasOwnProperty;var Tt=Object.freeze({__proto__:null,appendChild:function(e,t){e.childNodes.indexOf(t)>=0&&e.removeChild(t),e.appendChild(t)},appendChildToContainer:function(e,t){e.appendChild(t)},appendInitialChild:function(e,t){e.appendChild(t)},commitMount:function(){},commitTextUpdate:function(){},commitUpdate:function(e,t){Object.keys(t).forEach((function(n){return e.setAttribute(n,t[n])}))},createContainerChildSet:function(){},createInstance:function(e,t,n,r,i){var o=n.createElement(e);return Object.keys(t).forEach((function(e){switch(e){case"children":break;case"nativeName":o.meta.component.name=t.nativeName;break;default:o.setAttribute(e,t[e])}})),[5,7].indexOf(i.tag)<0&&(o.meta.skipAddToDom=!0),o},createTextInstance:function(e,t){var n=t.createElement("p");return n.setAttribute("text",q(e)),n.meta={component:{name:"Text",skipAddToDom:!0}},n},finalizeContainerChildren:function(){},finalizeInitialChildren:function(){return!0},getPublicInstance:function(e){return e},insertBefore:function(e,t,n){e.childNodes.indexOf(t)>0?e.moveChild(t,n):e.insertBefore(t,n)},prepareForCommit:function(){},prepareUpdate:function(e,t,n,r){var i={};return Object.keys(r).forEach((function(e){var t=n[e],o=r[e];switch(e){case"children":t===o||"number"!=typeof o&&"string"!=typeof o||(i[e]=o);break;default:"function"==typeof t&&"function"==typeof o||function e(t,n){if(t===n)return!0;if(t&&n&&"object"==b(t)&&"object"==b(n)){var r,i,o,a=Et(t),l=Et(n);if(a&&l){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=l)return!1;var u=t instanceof Date,c=n instanceof Date;if(u!=c)return!1;if(u&&c)return t.getTime()==n.getTime();var s=t instanceof RegExp,f=n instanceof RegExp;if(s!=f)return!1;if(s&&f)return t.toString()==n.toString();var d=St(t);if((i=d.length)!==St(n).length)return!1;for(r=i;0!=r--;)if(!Ct.call(n,d[r]))return!1;for(r=i;0!=r--;)if(!e(t[o=d[r]],n[o]))return!1;return!0}return t!=t&&n!=n}(t,o)||(i[e]=o)}})),Object.keys(i).length?i:null},replaceContainerChildren:function(){},removeChild:function(e,t){e.removeChild(t)},removeChildFromContainer:function(e,t){e.removeChild(t)},resetAfterCommit:function(){},resetTextContent:function(){},getRootHostContext:function(){return{}},getChildHostContext:function(){return{}},shouldDeprioritizeSubtree:function(){return!0},shouldSetTextContent:function(e,t){if(t&&"Text"===t.nativeName||-1!==["p","span"].indexOf(e)){var n=t.children;return"string"==typeof n||"number"==typeof n}return!1}}),Nt=a()(m(m({},Tt),{},{clearTimeout:clearTimeout,setTimeout:setTimeout,isPrimaryRenderer:!0,noTimeout:-1,supportsMutation:!0,supportsHydration:!1,supportsPersistence:!1,now:Date.now,scheduleDeferredCallback:function(){},cancelDeferredCallback:function(){}})),_t=Nt.createContainer,Pt=Nt.updateContainer,It=Nt.getPublicRootInstance,At=['%c[Hippy-React "2.5.2"]%c',"color: #61dafb","color: auto"],Rt=function(){function e(t){if(x(this,e),!t.appName||!t.entryPage)throw new TypeError("Invalid arguments");this.config=t,this.regist=this.start,this.render=this.render.bind(this);var n=new xt;this.rootContainer=_t(n,!1,!1)}return S(e,[{key:"start",value:function(){bt.regist(this.config.appName,this.render)}},{key:"render",value:function(e){var t=this.config,n=t.appName,r=t.entryPage,o=t.silent,a=void 0!==o&&o,l=t.callback,u=void 0===l?function(){}:l,c=e.__instanceId__;B.apply(void 0,At.concat(["Start",n,"with rootViewId",c,e])),this.rootContainer.containerInfo.nodeId=c,a&&G(a),U(c,this.rootContainer);var s=i.a.createElement(r,e);return Pt(s,this.rootContainer,null,u),It(this.rootContainer)}}],[{key:"Native",get:function(){return gt}}]),e}();Rt.version="2.5.2";var Ot={registerComponent:function(e,t){new Rt({appName:e,entryPage:t}).start()}},zt=function(e){u(n,e);var t=s(n);function n(){return x(this,n),t.apply(this,arguments)}return S(n,[{key:"render",value:function(){var e=this.props,t=e.collapsable,n=e.style,r=void 0===n?{}:n,o=y(e,["collapsable","style"]),a=r;return"boolean"==typeof t&&(a.collapsable=t),i.a.createElement("div",Object.assign({nativeName:"View",style:a},o))}}]),n}(i.a.Component);function jt(e,t){var n=e.style,r=y(e,["style"]),o=n;if(n&&(Array.isArray(n)?-1===n.filter((function(e){return"object"===b(e)&&e})).findIndex((function(e){return e.color||e.colors}))&&(o[0].color="#000"):"object"===b(n)&&void 0===n.color&&void 0===n.colors&&(o.color="#000")),r.text="","string"==typeof r.children)r.text=q(r.children);else if("number"==typeof r.children)r.text=q(r.children.toString());else if(Array.isArray(r.children)){var a=r.children.filter((function(e){return"string"==typeof e||"number"==typeof e})).join("");a&&(r.text=q(a),r.children=r.text)}return i.a.createElement("p",Object.assign({ref:t,nativeName:"Text",style:o},r))}jt.displayName="Text";var Lt=i.a.forwardRef(jt);function Ft(e){if(e&&!/^(http|https):\/\//.test(e)&&e.indexOf("assets")>-1){return"".concat("hpfile://","./").concat(e)}return e}Lt.displayName="Text";var Mt=function(e){u(n,e);var t=s(n);function n(){return x(this,n),t.apply(this,arguments)}return S(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.style,r=e.imageStyle,o=e.imageRef,a=e.source,u=e.sources,c=e.src,s=e.srcs,f=e.tintColor,d=e.tintColors,p=y(e,["children","style","imageStyle","imageRef","source","sources","src","srcs","tintColor","tintColors"]),h=[];if("string"==typeof c&&h.push(c),Array.isArray(s)&&(h=[].concat(l(h),l(s))),a)if("string"==typeof a)h.push(a);else if("object"===b(a)&&null!==a){var v=a.uri;v&&h.push(v)}if(u&&Array.isArray(u)&&u.forEach((function(e){"string"==typeof e?h.push(e):"object"===b(e)&&null!==e&&e.uri&&h.push(e.uri)})),h.length&&(h=h.map((function(e){return Ft(e)}))),"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 k=g(h,1);p.src=k[0]}else h.length>1&&(p.srcs=h);"string"==typeof p.defaultSource&&(p.defaultSource.indexOf("data:image/"),p.defaultSource=Ft(p.defaultSource));var w=m({},n);return f&&(w.tintColor=kt(f)),Array.isArray(d)&&(w.tintColors=wt(d)),p.style=w,t?i.a.createElement(zt,{style:n},i.a.createElement("img",Object.assign({},p,{nativeName:"Image",alt:"",ref:o,style:[{position:"absolute",left:0,right:0,top:0,bottom:0,width:n.width,height:n.height},r]})),t):i.a.createElement("img",Object.assign({},p,{nativeName:"Image",alt:"",ref:o}))}}],[{key:"resizeMode",get:function(){return{contain:"contain",cover:"cover",stretch:"stretch",center:"center",repeat:"repeat"}}},{key:"getSize",value:function(e,t,n){if("string"!=typeof e)throw new TypeError("Image.getSize first argument must be a string url");var r=be(e);return"function"==typeof t&&r.then((function(e){return t(e.width,e.height)})),"function"==typeof n?r.catch(n):r.catch((function(t){"Failed to get size for image: ".concat(e)})),r}}]),n}(i.a.Component);Mt.prefetch=ge;var Ut=function(){function e(){x(this,e),this.Value=e.Value}return S(e,null,[{key:"Value",value:function(e){return e}},{key:"timing",value:function(e,t){return new Ve({mode:"timing",delay:0,startValue:e,toValue:t.toValue,duration:t.duration,timingFunction:t.easing||"linear"})}}]),e}();Ut.View=zt,Ut.Text=Lt,Ut.Image=Mt;var Ht={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 Dt(e){return i.a.createElement("li",Object.assign({nativeName:"ListViewItem"},e))}var Wt=function(e){u(n,e);var t=s(n);function n(){var e;return x(this,n),(e=t.apply(this,arguments)).instance=null,e}return S(n,[{key:"expandPullHeader",value:function(){it(this.instance,"expandPullHeader",[])}},{key:"collapsePullHeader",value:function(){it(this.instance,"collapsePullHeader",[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=y(t,["children"]);return i.a.createElement("div",Object.assign({nativeName:"PullHeaderView",ref:function(t){e.instance=t}},r),n)}}]),n}(i.a.Component),Vt=function(e){u(n,e);var t=s(n);function n(){var e;return x(this,n),(e=t.apply(this,arguments)).instance=null,e}return S(n,[{key:"expandPullFooter",value:function(){it(this.instance,"expandPullFooter",[])}},{key:"collapsePullFooter",value:function(){it(this.instance,"collapsePullFooter",[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=y(t,["children"]);return i.a.createElement("div",Object.assign({nativeName:"PullFooterView",ref:function(t){e.instance=t}},r),n)}}]),n}(i.a.Component);Vt.defaultProps={sticky:!0};var Bt={onDisappear:"onDisAppear"},qt={onDisappear:"onDisappear"},Qt=function(e){u(n,e);var t=s(n);function n(e){var r;return x(this,n),(r=t.call(this,e)).instance=null,r.pullHeader=null,r.pullFooter=null,r.handleInitialListReady=r.handleInitialListReady.bind(d(r)),r.state={initialListReady:!1},r}return S(n,[{key:"componentDidMount",value:function(){this.props.getRowKey}},{key:"convertName",value:function(e){return"android"===yt.platform.OS&&Bt[e]?Bt[e]:"ios"===yt.platform.OS&&qt[e]?qt[e]:e}},{key:"scrollToIndex",value:function(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&it(this.instance,"scrollToIndex",[e,t,n])}},{key:"scrollToContentOffset",value:function(e,t,n){"number"==typeof e&&"number"==typeof t&&"boolean"==typeof n&&it(this.instance,"scrollToContentOffset",[e,t,n])}},{key:"expandPullHeader",value:function(){this.pullHeader&&this.pullHeader.expandPullHeader()}},{key:"collapsePullHeader",value:function(){this.pullHeader&&this.pullHeader.collapsePullHeader()}},{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:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.style,o=t.renderRow,a=t.renderPullHeader,l=t.renderPullFooter,u=t.getRowType,c=t.getRowStyle,s=t.getRowKey,f=t.dataSource,d=t.initialListSize,p=t.rowShouldSticky,h=t.onRowLayout,v=t.onHeaderPulling,b=t.onHeaderReleased,g=t.onFooterPulling,k=t.onFooterReleased,w=t.onAppear,x=t.onDisappear,E=t.onWillAppear,S=t.onWillDisappear,C=y(t,["children","style","renderRow","renderPullHeader","renderPullFooter","getRowType","getRowStyle","getRowKey","dataSource","initialListSize","rowShouldSticky","onRowLayout","onHeaderPulling","onHeaderReleased","onFooterPulling","onFooterReleased","onAppear","onDisappear","onWillAppear","onWillDisappear"]),T=[];if("function"==typeof o){var N=this.state.initialListReady,_=this.props.numberOfRows,P=null,I=null;"function"==typeof a&&(P=i.a.createElement(Wt,{ref:function(t){e.pullHeader=t},onHeaderPulling:v,onHeaderReleased:b},a())),"function"==typeof l&&(I=i.a.createElement(Vt,{ref:function(t){e.pullFooter=t},onFooterPulling:g,onFooterReleased:k},l())),!_&&f&&(_=f.length),N||(_=Math.min(_,d||10));for(var A=function(t){var n={},r=void 0;if(r=f?o(f[t],null,t):o(t),"function"==typeof s&&(n.key=s(t)),"function"==typeof c&&(n.style=c(t)),"function"==typeof h&&(n.onLayout=function(e){h(e,t)}),"function"==typeof w&&(n[e.convertName(w.name)]=function(){w(t)}),"function"==typeof x&&(n[e.convertName(x.name)]=function(){x(t)}),"function"==typeof E&&(n[e.convertName(E.name)]=function(){E(t)}),"function"==typeof S&&(n[e.convertName(S.name)]=function(){S(t)}),"function"==typeof u){var a=u(t);Number.isInteger(a),n.type=a}"function"==typeof p&&(n.sticky=p(t)),r&&T.push(i.a.createElement(Dt,Object.assign({},n),r))},R=0;R<_;R+=1)A(R);P&&T.unshift(P),I&&T.push(I),"function"==typeof p&&Object.assign(C,{rowShouldSticky:!0});var O=[w,x,E,S];C.exposureEventEnabled=O.some((function(e){return"function"==typeof e})),C.numberOfRows=T.length,C.initialListSize=d,C.style=m({overflow:"scroll"},r)}return!C.onLoadMore&&C.onEndReached&&(C.onLoadMore=C.onEndReached),i.a.createElement("ul",Object.assign({ref:function(t){e.instance=t},nativeName:"ListView",initialListReady:this.handleInitialListReady},C),T.length?T:n)}}]),n}(i.a.Component);Qt.defaultProps={numberOfRows:0};var $t=function(e){u(n,e);var t=s(n);function n(e){var r;return x(this,n),(r=t.call(this,e)).instance=null,r.refreshComplected=r.refreshCompleted.bind(d(r)),r}return S(n,[{key:"getRefresh",value:function(){var e=this.props.getRefresh;return"function"==typeof e&&e()||null}},{key:"startRefresh",value:function(){it(this.instance,"startRefresh",null)}},{key:"refreshCompleted",value:function(){it(this.instance,"refreshComplected",null)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=y(t,["children"]);return i.a.createElement("div",Object.assign({nativeName:"RefreshWrapper",ref:function(t){e.instance=t}},r),i.a.createElement("div",{nativeName:"RefreshWrapperItemView",style:[{left:0,right:0,position:"absolute"}]},this.getRefresh()),n)}}]),n}(i.a.Component),Kt=function(){function e(){x(this,e),this.top=null,this.size=0}return S(e,[{key:"push",value:function(e){this.top={data:e,next:this.top},this.size+=1}},{key:"peek",value:function(){return null===this.top?null:this.top.data}},{key:"pop",value:function(){if(null===this.top)return null;var e=this.top;return this.top=this.top.next,this.size>0&&(this.size-=1),e.data}},{key:"clear",value:function(){this.top=null,this.size=0}},{key:"displayAll",value:function(){var e=[];if(null===this.top)return e;for(var t=this.top,n=0,r=this.size;n1&&this.pop({animated:!0})}},{key:"push",value:function(e){if(e&&e.component){if(!this.routeList[e.routeName])new Rt({appName:e.routeName,entryPage:e.component}).regist(),this.routeList[e.routeName]=!0;delete e.component}var t=[e];this.stack.push(e),it(this.instance,"push",t)}},{key:"pop",value:function(e){if(this.stack.size>1){var t=[e];this.stack.pop(),it(this.instance,"pop",t)}}},{key:"clear",value:function(){this.stack.clear()}},{key:"render",value:function(){var e=this,t=this.props,n=t.initialRoute,r=(n.component,y(n,["component"])),o=y(t,["initialRoute"]);return o.initialRoute=r,i.a.createElement("div",Object.assign({nativeName:"Navigator",ref:function(t){e.instance=t}},o))}}]),n}(i.a.Component);function Yt(e){return i.a.createElement("div",Object.assign({nativeName:"ViewPagerItem"},e,{style:{position:"absolute",left:0,top:0,right:0,bottom:0,collapsable:!1}}))}var Xt=function(e){u(n,e);var t=s(n);function n(e){var r;return x(this,n),(r=t.call(this,e)).instance=null,r.setPage=r.setPage.bind(d(r)),r.setPageWithoutAnimation=r.setPageWithoutAnimation.bind(d(r)),r.onPageScrollStateChanged=r.onPageScrollStateChanged.bind(d(r)),r}return S(n,[{key:"onPageScrollStateChanged",value:function(e){var t=this.props.onPageScrollStateChanged;t&&t(e.pageScrollState)}},{key:"setPage",value:function(e){"number"==typeof e&&it(this.instance,"setPage",[e])}},{key:"setPageWithoutAnimation",value:function(e){"number"==typeof e&&it(this.instance,"setPageWithoutAnimation",[e])}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.onPageScrollStateChanged,o=y(t,["children","onPageScrollStateChanged"]),a=[];return Array.isArray(n)?a=n.map((function(e){var t={};return"string"==typeof e.key&&(t.key="viewPager_".concat(e.key)),i.a.createElement(Yt,Object.assign({},t),e)})):a.push(i.a.createElement(Yt,null,n)),"function"==typeof r&&(o.onPageScrollStateChanged=this.onPageScrollStateChanged),i.a.createElement("div",Object.assign({nativeName:"ViewPager",ref:function(t){e.instance=t}},o),a)}}]),n}(i.a.Component),Jt=function(e){u(n,e);var t=s(n);function n(e){var r;return x(this,n),(r=t.call(this,e)).instance=null,r._lastNativeText="",r._onChangeText=r._onChangeText.bind(d(r)),r._onKeyboardWillShow=r._onKeyboardWillShow.bind(d(r)),r}return S(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.value,n=e.autoFocus;this._lastNativeText=t,n&&this.focus()}},{key:"componentWillUnmount",value:function(){this.blur()}},{key:"getValue",value:function(){var e=this;return new Promise((function(t){it(e.instance,"getValue",(function(e){return t(e.text)}))}))}},{key:"setValue",value:function(e){return it(this.instance,"setValue",[e]),e}},{key:"focus",value:function(){it(this.instance,"focusTextInput",[])}},{key:"blur",value:function(){it(this.instance,"blurTextInput",[])}},{key:"showInputMethod",value:function(){it(this.instance,"showInputMethod",[])}},{key:"hideInputMethod",value:function(){it(this.instance,"hideInputMethod",[])}},{key:"clear",value:function(){it(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=m({},this.props);return["underlineColorAndroid","placeholderTextColor","placeholderTextColors"].forEach((function(n){"string"==typeof e.props[n]&&(Array.isArray(t.style)?t.style.push({[n]:e.props[n]}):"object"===b(t.style)?t.style[n]=e.props[n]:t.style={[n]:e.props[n]},delete t[n])})),i.a.createElement("div",Object.assign({nativeName:"TextInput"},t,{ref:function(t){e.instance=t},onChangeText:this._onChangeText,onKeyboardWillShow:this._onKeyboardWillShow}))}}]),n}(i.a.Component),Zt=yt.window.scale,en=Math.round(.4*Zt)/Zt;function tn(e){return e}0===en&&(en=1/Zt);var nn=Object.freeze({__proto__:null,get hairlineWidth(){return en},create:tn}),rn={baseVertical:{flexGrow:1,flexShrink:1,flexDirection:"column",overflow:"scroll"},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:"row",overflow:"scroll"},contentContainerVertical:{collapse:!1,flexDirection:"column"},contentContainerHorizontal:{collapse:!1,flexDirection:"row"}},on=function(e){u(n,e);var t=s(n);function n(){var e;return x(this,n),(e=t.apply(this,arguments)).instance=null,e}return S(n,[{key:"scrollTo",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e,i=t,o=n;"number"==typeof e||"object"===b(e)&&e&&(r=e.x,i=e.y,o=e.animated),r=r||0,i=i||0,o=!!o,it(this.instance,"scrollTo",[r,i,o])}},{key:"scrollToWithDuration",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;it(this.instance,"scrollToWithOptions",[{x:e,y:t,duration:n}])}},{key:"render",value:function(){var e=this,t=this.props,n=t.horizontal,r=t.contentContainerStyle,o=t.children,a=t.style,l=[n?rn.contentContainerHorizontal:rn.contentContainerVertical,r],u=n?Object.assign({},a,rn.baseHorizontal):Object.assign({},a,rn.baseVertical);return i.a.createElement("div",Object.assign({nativeName:"ScrollView",ref:function(t){e.instance=t}},this.props,{style:u}),i.a.createElement(zt,{style:l},o))}}]),n}(i.a.Component),an={modal:{position:"absolute"},container:{position:"absolute",left:0,top:0}},ln=function(e){u(n,e);var t=s(n);function n(e){var r;return x(this,n),(r=t.call(this,e)).eventSubscription=null,r}return S(n,[{key:"componentDidMount",value:function(){var e=this;"ios"===yt.platform.OS&&(this.eventSubscription=new te("modalDismissed"),this.eventSubscription.addCallback((function(t){var n=e.props,r=n.primaryKey,i=n.onDismiss;t.primaryKey===r&&"function"==typeof i&&i()})))}},{key:"componentWillUnmount",value:function(){"ios"===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,o=e.animated,a=this.props.animationType;if(!1===n)return null;var l={backgroundColor:r?"transparent":"white"};return a||(a="none",o&&(a="slide")),i.a.createElement("div",Object.assign({nativeName:"Modal",animationType:a,transparent:r,style:an.modal},this.props),i.a.createElement(zt,{style:[an.container,l]},t))}}]),n}(i.a.Component);ln.defaultProps={visible:!0};var un=function(e){u(n,e);var t=s(n);function n(e){var r;x(this,n);var i=(r=t.call(this,e)).props.requestFocus;return r.state={isFocus:!!i},r.handleFocus=r.handleFocus.bind(d(r)),r}return S(n,[{key:"handleFocus",value:function(e){var t=this.props.onFocus;"function"==typeof t&&t(e),this.state.isFocus!==e.focus&&this.setState({isFocus:e.focus})}},{key:"render",value:function(){var e,t=this.props,n=t.requestFocus,r=t.children,o=t.nextFocusDownId,a=t.nextFocusUpId,l=t.nextFocusLeftId,u=t.nextFocusRightId,c=t.style,s=t.noFocusStyle,f=t.focusStyle,d=t.onClick,p=this.state.isFocus,h=i.a.Children.only(r);h&&h.child&&h.child.memoizedProps&&h.child.memoizedProps.nativeName?e=h.child.memoizedProps.nativeName:h&&h.type&&h.type.name&&(e=h.type.name);var v=o&&rt(o),y=a&&rt(a),b=l&&rt(l),g=u&&rt(u),k=c;if("Text"!==e){var w=h.memoizedProps.style;k=m(m({},k),w)}if(Object.assign(k,p?f:s),"Text"===e)return i.a.createElement(zt,{focusable:!0,nextFocusDownId:v,nextFocusUpId:y,nextFocusLeftId:b,nextFocusRightId:g,requestFocus:n,style:k,onClick:d,onFocus:this.handleFocus},h);var x=h.memoizedProps.children;return i.a.cloneElement(h,{nextFocusDownId:o,nextFocusUpId:a,nextFocusLeftId:l,nextFocusRightId:u,requestFocus:n,onClick:d,focusable:!0,children:x,style:k,onFocus:this.handleFocus})}}]),n}(i.a.Component);function cn(e){return i.a.createElement("iframe",Object.assign({title:"hippy",nativeName:"WebView"},e))}var sn,fn=function(){function e(t,n,r){var i=this;if(x(this,e),this.protocol="",this.onWebSocketEvent=this.onWebSocketEvent.bind(this),sn||(sn=new te("hippyWebsocketEvents")),this.readyState=0,this.webSocketCallbacks={},!t||"string"!=typeof t)throw new TypeError("Invalid WebSocket url");var o=m({},r);if(void 0!==n)if(Array.isArray(n)&&n.length>0)o["Sec-WebSocket-Protocol"]=n.join(",");else{if("string"!=typeof n)throw new TypeError("Invalid WebSocket protocals");o["Sec-WebSocket-Protocol"]=n}var a={headers:o,url:t};this.url=t,this.webSocketCallbackId=sn.addCallback(this.onWebSocketEvent),I.callNativeWithPromise("websocket","connect",a).then((function(e){e&&0===e.code&&"number"==typeof e.id&&(i.webSocketId=e.id)}))}return S(e,[{key:"close",value:function(e,t){1===this.readyState&&(this.readyState=2,I.callNative("websocket","close",{id:this.webSocketId,code:e,reason:t}))}},{key:"send",value:function(e){if(1===this.readyState){if("string"!=typeof e)throw new TypeError("Unsupported websocket data type: ".concat(b(e)));I.callNative("websocket","send",{id:this.webSocketId,data:e})}}},{key:"onopen",set:function(e){this.webSocketCallbacks.onOpen=e}},{key:"onclose",set:function(e){this.webSocketCallbacks.onClose=e}},{key:"onerror",set:function(e){this.webSocketCallbacks.onError=e}},{key:"onmessage",set:function(e){this.webSocketCallbacks.onMessage=e}},{key:"onWebSocketEvent",value:function(e){if("object"===b(e)&&e.id===this.webSocketId){var t=e.type;"onOpen"===t?this.readyState=1:"onClose"===t&&(this.readyState=3,sn.removeCallback(this.webSocketCallbackId));var n=this.webSocketCallbacks[t];"function"==typeof n&&n(e.data)}}}]),e}();e.WebSocket=fn;var dn=gt.AsyncStorage,pn=gt.BackAndroid,hn=gt.Bridge,mn=gt.Clipboard,vn=gt.Cookie,yn=gt.Device,bn=gt.HippyRegister,gn=gt.ImageLoader,kn=gt.NetworkInfo,wn=gt.UIManager,xn=hn.callNative,En=hn.callNativeWithPromise,Sn=hn.callNativeWithCallbackId,Cn=hn.removeNativeCallback,Tn=null,Nn=console,_n=yn.platform,Pn=Rt,In=Rt,An=Mt,Rn=bn,On=re,zn=te,jn={get:function(e){return yn[e]}},Ln={get:function(){return yn.screen.scale}};t.default=Rt}.call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/object-assign/index.js":function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus @@ -33,20 +33,20 @@ object-assign * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */e.exports=function t(i){"use strict";var o=n("./node_modules/object-assign/index.js"),a=n("./node_modules/react/index.js"),l=n("./node_modules/scheduler/index.js");function u(e){for(var t=e.message,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;rTe||(e.current=Ce[Te],Ce[Te]=null,Te--)}function _e(e,t){Te++,Ce[Te]=e.current,e.current=t}var Pe={},Ie={current:Pe},Ae={current:!1},Re=Pe;function Oe(e,t){var n=e.type.contextTypes;if(!n)return Pe;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ze(e){return null!=(e=e.childContextTypes)}function je(e){Ne(Ae),Ne(Ie)}function Le(e){Ne(Ae),Ne(Ie)}function Fe(e,t,n){if(Ie.current!==Pe)throw u(Error(168));_e(Ie,t),_e(Ae,n)}function Me(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw u(Error(108),T(t)||"Unknown",i);return o({},n,r)}function Ue(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Pe,Re=Ie.current,_e(Ie,t),_e(Ae,Ae.current),!0}function He(e,t,n){var r=e.stateNode;if(!r)throw u(Error(169));n?(t=Me(e,t,Re),r.__reactInternalMemoizedMergedChildContext=t,Ne(Ae),Ne(Ie),_e(Ie,t)):Ne(Ae),_e(Ae,n)}var De=l.unstable_runWithPriority,We=l.unstable_scheduleCallback,Ve=l.unstable_cancelCallback,Be=l.unstable_shouldYield,qe=l.unstable_requestPaint,Qe=l.unstable_now,$e=l.unstable_getCurrentPriorityLevel,Ke=l.unstable_ImmediatePriority,Ge=l.unstable_UserBlockingPriority,Ye=l.unstable_NormalPriority,Xe=l.unstable_LowPriority,Je=l.unstable_IdlePriority,Ze={},et=void 0!==qe?qe:function(){},tt=null,nt=null,rt=!1,it=Qe(),ot=1e4>it?Qe:function(){return Qe()-it};function at(){switch($e()){case Ke:return 99;case Ge:return 98;case Ye:return 97;case Xe:return 96;case Je:return 95;default:throw u(Error(332))}}function lt(e){switch(e){case 99:return Ke;case 98:return Ge;case 97:return Ye;case 96:return Xe;case 95:return Je;default:throw u(Error(332))}}function ut(e,t){return e=lt(e),De(e,t)}function ct(e,t,n){return e=lt(e),We(e,t,n)}function st(e){return null===tt?(tt=[e],nt=We(Ke,dt)):tt.push(e),Ze}function ft(){null!==nt&&Ve(nt),dt()}function dt(){if(!rt&&null!==tt){rt=!0;var e=0;try{var t=tt;ut(99,(function(){for(;e=(e=10*(1073741821-t)-10*(1073741821-e))?99:250>=e?98:5250>=e?97:95}function ht(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var mt=Object.prototype.hasOwnProperty;function vt(e,t){if(ht(e,t))return!0;if("object"!==r(e)||null===e||"object"!==r(t)||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i=t&&(er=!0),e.firstContext=null)}function Nt(e,t){if(wt!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(wt=e,t=1073741823),t={context:e,observedBits:t,next:null},null===kt){if(null===gt)throw u(Error(308));kt=t,gt.dependencies={expirationTime:0,firstContext:t,responders:null}}else kt=kt.next=t;return Q?e._currentValue:e._currentValue2}var _t=!1;function Pt(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function It(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function At(e,t){return{expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Rt(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function Ot(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,i=null;null===r&&(r=e.updateQueue=Pt(e.memoizedState))}else r=e.updateQueue,i=n.updateQueue,null===r?null===i?(r=e.updateQueue=Pt(e.memoizedState),i=n.updateQueue=Pt(n.memoizedState)):r=e.updateQueue=It(i):null===i&&(i=n.updateQueue=It(r));null===i||r===i?Rt(r,t):null===r.lastUpdate||null===i.lastUpdate?(Rt(r,t),Rt(i,t)):(Rt(r,t),i.lastUpdate=t)}function zt(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=Pt(e.memoizedState):jt(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function jt(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=It(t)),t}function Lt(e,t,n,r,i,a){switch(n.tag){case 1:return"function"==typeof(e=n.payload)?e.call(a,r,i):e;case 3:e.effectTag=-2049&e.effectTag|64;case 0:if(null==(i="function"==typeof(e=n.payload)?e.call(a,r,i):e))break;return o({},r,i);case 2:_t=!0}return r}function Ft(e,t,n,r,i){_t=!1;for(var o=(t=jt(e,t)).baseState,a=null,l=0,u=t.firstUpdate,c=o;null!==u;){var s=u.expirationTime;sd?(p=f,f=null):p=f.sibling;var h=y(r,f,l[d],u);if(null===h){null===f&&(f=p);break}e&&f&&null===h.alternate&&t(r,f),o=a(h,o,d),null===s?c=h:s.sibling=h,s=h,f=p}if(d===l.length)return n(r,f),c;if(null===f){for(;dp?(h=d,d=null):h=d.sibling;var g=y(r,d,m.value,c);if(null===g){null===d&&(d=h);break}e&&d&&null===g.alternate&&t(r,d),o=a(g,o,p),null===f?s=g:f.sibling=g,f=g,d=h}if(m.done)return n(r,d),s;if(null===d){for(;!m.done;p++,m=l.next())null!==(m=v(r,m.value,c))&&(o=a(m,o,p),null===f?s=m:f.sibling=m,f=m);return s}for(d=i(r,d);!m.done;p++,m=l.next())null!==(m=b(d,r,p,m.value,c))&&(e&&null!==m.alternate&&d.delete(null===m.key?p:m.key),o=a(m,o,p),null===f?s=m:f.sibling=m,f=m);return e&&d.forEach((function(e){return t(r,e)})),s}return function(e,i,a,c){var s="object"===r(a)&&null!==a&&a.type===p&&null===a.key;s&&(a=a.props.children);var h="object"===r(a)&&null!==a;if(h)switch(a.$$typeof){case f:e:{for(h=a.key,s=i;null!==s;){if(s.key===h){if(7===s.tag?a.type===p:s.elementType===a.type){n(e,s.sibling),(i=o(s,a.type===p?a.props.children:a.props)).ref=Gt(e,s,a),i.return=e,e=i;break e}n(e,s);break}t(e,s),s=s.sibling}a.type===p?((i=Fi(a.props.children,e.mode,c,a.key)).return=e,e=i):((c=Li(a.type,a.key,a.props,null,e.mode,c)).ref=Gt(e,i,a),c.return=e,e=c)}return l(e);case d:e:{for(s=a.key;null!==i;){if(i.key===s){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(e,i.sibling),(i=o(i,a.children||[])).return=e,e=i;break e}n(e,i);break}t(e,i),i=i.sibling}(i=Ui(a,e.mode,c)).return=e,e=i}return l(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==i&&6===i.tag?(n(e,i.sibling),(i=o(i,a)).return=e,e=i):(n(e,i),(i=Mi(a,e.mode,c)).return=e,e=i),l(e);if(Kt(a))return g(e,i,a,c);if(C(a))return k(e,i,a,c);if(h&&Yt(e,a),void 0===a&&!s)switch(e.tag){case 1:case 0:throw e=e.type,u(Error(152),e.displayName||e.name||"Component")}return n(e,i)}}var Jt=Xt(!0),Zt=Xt(!1),en={},tn={current:en},nn={current:en},rn={current:en};function on(e){if(e===en)throw u(Error(174));return e}function an(e,t){_e(rn,t),_e(nn,e),_e(tn,en),t=R(t),Ne(tn),_e(tn,t)}function ln(e){Ne(tn),Ne(nn),Ne(rn)}function un(e){var t=on(rn.current),n=on(tn.current);n!==(t=O(n,e.type,t))&&(_e(nn,e),_e(tn,t))}function cn(e){nn.current===e&&(Ne(tn),Ne(nn))}var sn={current:0};function fn(e){for(var t=e;null!==t;){if(13===t.tag){if(null!==t.memoizedState)return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function dn(e,t){return{responder:e,props:t}}var pn=c.ReactCurrentDispatcher,hn=0,mn=null,vn=null,yn=null,bn=null,gn=null,kn=null,wn=0,xn=null,En=0,Sn=!1,Cn=null,Tn=0;function Nn(){throw u(Error(321))}function _n(e,t){if(null===t)return!1;for(var n=0;nwn&&(wn=f)):(bi(f,c.suspenseConfig),o=c.eagerReducer===e?c.eagerState:e(o,c.action)),a=c,c=c.next}while(null!==c&&c!==r);s||(l=a,i=o),ht(o,t.memoizedState)||(er=!0),t.memoizedState=o,t.baseUpdate=l,t.baseState=i,n.lastRenderedState=o}return[t.memoizedState,n.dispatch]}function jn(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===xn?(xn={lastEffect:null}).lastEffect=e.next=e:null===(t=xn.lastEffect)?xn.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,xn.lastEffect=e),e}function Ln(e,t,n,r){var i=An();En|=e,i.memoizedState=jn(t,n,void 0,void 0===r?null:r)}function Fn(e,t,n,r){var i=Rn();r=void 0===r?null:r;var o=void 0;if(null!==vn){var a=vn.memoizedState;if(o=a.destroy,null!==r&&_n(r,a.deps))return void jn(0,n,o,r)}En|=e,i.memoizedState=jn(t,n,o,r)}function Mn(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Un(){}function Hn(e,t,n){if(!(25>Tn))throw u(Error(301));var r=e.alternate;if(e===mn||null!==r&&r===mn)if(Sn=!0,e={expirationTime:hn,suspenseConfig:null,action:n,eagerReducer:null,eagerState:null,next:null},null===Cn&&(Cn=new Map),void 0===(n=Cn.get(t)))Cn.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{var i=ci(),o=Ht.suspense;o={expirationTime:i=si(i,e,o),suspenseConfig:o,action:n,eagerReducer:null,eagerState:null,next:null};var a=t.last;if(null===a)o.next=o;else{var l=a.next;null!==l&&(o.next=l),a.next=o}if(t.last=o,0===e.expirationTime&&(null===r||0===r.expirationTime)&&null!==(r=t.lastRenderedReducer))try{var c=t.lastRenderedState,s=r(c,n);if(o.eagerReducer=r,o.eagerState=s,ht(s,c))return}catch(e){}di(e,i)}}var Dn={readContext:Nt,useCallback:Nn,useContext:Nn,useEffect:Nn,useImperativeHandle:Nn,useLayoutEffect:Nn,useMemo:Nn,useReducer:Nn,useRef:Nn,useState:Nn,useDebugValue:Nn,useResponder:Nn},Wn={readContext:Nt,useCallback:function(e,t){return An().memoizedState=[e,void 0===t?null:t],e},useContext:Nt,useEffect:function(e,t){return Ln(516,192,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ln(4,36,Mn.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ln(4,36,e,t)},useMemo:function(e,t){var n=An();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=An();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={last:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Hn.bind(null,mn,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},An().memoizedState=e},useState:function(e){var t=An();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,lastRenderedReducer:On,lastRenderedState:e}).dispatch=Hn.bind(null,mn,e),[t.memoizedState,e]},useDebugValue:Un,useResponder:dn},Vn={readContext:Nt,useCallback:function(e,t){var n=Rn();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&_n(t,r[1])?r[0]:(n.memoizedState=[e,t],e)},useContext:Nt,useEffect:function(e,t){return Fn(516,192,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Fn(4,36,Mn.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fn(4,36,e,t)},useMemo:function(e,t){var n=Rn();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&_n(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:zn,useRef:function(){return Rn().memoizedState},useState:function(e){return zn(On)},useDebugValue:Un,useResponder:dn},Bn=null,qn=null,Qn=!1;function $n(e,t){var n=Oi(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Kn(e,t){switch(e.tag){case 5:return null!==(t=ye(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=be(t,e.pendingProps))&&(e.stateNode=t,!0);case 13:default:return!1}}function Gn(e){if(Qn){var t=qn;if(t){var n=t;if(!Kn(e,t)){if(!(t=ge(n))||!Kn(e,t))return e.effectTag|=2,Qn=!1,void(Bn=e);$n(Bn,n)}Bn=e,qn=ke(t)}else e.effectTag|=2,Qn=!1,Bn=e}}function Yn(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;Bn=e}function Xn(e){if(!G||e!==Bn)return!1;if(!Qn)return Yn(e),Qn=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!H(t,e.memoizedProps))for(t=qn;t;)$n(e,t),t=ge(t);return Yn(e),qn=Bn?ge(e.stateNode):null,!0}function Jn(){G&&(qn=Bn=null,Qn=!1)}var Zn=c.ReactCurrentOwner,er=!1;function tr(e,t,n,r){t.child=null===e?Zt(t,null,n,r):Jt(t,e.child,n,r)}function nr(e,t,n,r,i){n=n.render;var o=t.ref;return Tt(t,i),r=Pn(e,t,n,r,o,i),null===e||er?(t.effectTag|=1,tr(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),hr(e,t,i))}function rr(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||zi(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Li(n.type,null,r,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,ir(e,t,a,r,i,o))}return a=e.child,it)&&oi.set(e,t))}}function pi(e,t){e.expirationTimei.firstPendingTime&&(i.firstPendingTime=t),0===(e=i.lastPendingTime)||t component higher in the tree to provide a loading indicator or placeholder to display."+Se(s))}4!==qr&&(qr=1),f=xr(f,s),s=c;do{switch(s.tag){case 3:s.effectTag|=2048,s.expirationTime=d,zt(s,d=Lr(s,f,d));break e;case 1:if(p=f,l=s.type,c=s.stateNode,0==(64&s.effectTag)&&("function"==typeof l.getDerivedStateFromError||null!==c&&"function"==typeof c.componentDidCatch&&(null===ei||!ei.has(c)))){s.effectTag|=2048,s.expirationTime=d,zt(s,d=Fr(s,p,d));break e}}s=s.return}while(null!==s)}Vr=ki(a)}if(Dr=i,xt(),Ur.current=o,null!==Vr)return yi.bind(null,e,t)}if(e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,function(e,t){var n=e.firstBatch;return!!(null!==n&&n._defer&&n._expirationTime>=t)&&(ct(97,(function(){return n._onComplete(),null})),!0)}(e,t))return null;switch(Wr=null,qr){case 0:throw u(Error(328));case 1:return(i=e.lastPendingTime)(n=(i=ot())-n)&&(n=0),(t=10*(1073741821-t)-i)<(n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Mr(n/1960))-n)&&(n=t)),10=(t=0|(o=Kr).busyMinDurationMs)?t=0:(n=0|o.busyDelayMs,t=(i=ot()-(10*(1073741821-i)-(0|o.timeoutMs||5e3)))<=n?0:n+t-i),10i.tailExpiration&&1r&&(r=o),(a=i.childExpirationTime)>r&&(r=a),i=i.sibling;n.childExpirationTime=r}if(null!==t)return t;null!==e&&0==(1024&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Vr.firstEffect),null!==Vr.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Vr.firstEffect),e.lastEffect=Vr.lastEffect),1i?o:i,e.firstPendingTime=i,i=n?fr(e,t,n):(_e(sn,1&sn.current),null!==(t=hr(e,t,n))?t.sibling:null);_e(sn,1&sn.current);break;case 19:if(i=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(i)return pr(e,t,n);t.effectTag|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null),_e(sn,sn.current),!i)return null}return hr(e,t,n)}}else er=!1;switch(t.expirationTime=0,t.tag){case 2:if(i=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,o=Oe(t,Ie.current),Tt(t,n),o=Pn(null,t,i,e,o,n),t.effectTag|=1,"object"===r(o)&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,In(),ze(i)){var a=!0;Ue(t)}else a=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null;var l=i.getDerivedStateFromProps;"function"==typeof l&&Wt(t,i,l,e),o.updater=Vt,t.stateNode=o,o._reactInternalFiber=t,$t(t,i,e,n),t=ur(null,t,i,!0,a,n)}else t.tag=0,tr(null,t,o,n),t=t.child;return t;case 16:switch(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,o=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:switch(e._status=0,(t=(t=e._ctor)()).then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)})),e._status){case 1:return e._result;case 2:throw e._result}throw e._result=t,t}}(o),t.type=o,a=t.tag=function(e){if("function"==typeof e)return zi(e)?1:0;if(null!=e){if((e=e.$$typeof)===g)return 11;if(e===x)return 14}return 2}(o),e=yt(o,e),a){case 0:t=ar(null,t,o,e,n);break;case 1:t=lr(null,t,o,e,n);break;case 11:t=nr(null,t,o,e,n);break;case 14:t=rr(null,t,o,yt(o.type,e),i,n);break;default:throw u(Error(306),o,"")}return t;case 0:return i=t.type,o=t.pendingProps,ar(e,t,i,o=t.elementType===i?o:yt(i,o),n);case 1:return i=t.type,o=t.pendingProps,lr(e,t,i,o=t.elementType===i?o:yt(i,o),n);case 3:if(cr(t),null===(i=t.updateQueue))throw u(Error(282));return o=null!==(o=t.memoizedState)?o.element:null,Ft(t,i,t.pendingProps,null,n),(i=t.memoizedState.element)===o?(Jn(),t=hr(e,t,n)):(o=t.stateNode,(o=(null===e||null===e.child)&&o.hydrate)&&(G?(qn=ke(t.stateNode.containerInfo),Bn=t,o=Qn=!0):o=!1),o?(t.effectTag|=2,t.child=Zt(t,null,i,n)):(tr(e,t,i,n),Jn()),t=t.child),t;case 5:return un(t),null===e&&Gn(t),i=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,l=o.children,H(i,o)?l=null:null!==a&&H(i,a)&&(t.effectTag|=16),or(e,t),4&t.mode&&1!==n&&D(i,o)?(t.expirationTime=t.childExpirationTime=1,t=null):(tr(e,t,l,n),t=t.child),t;case 6:return null===e&&Gn(t),null;case 13:return fr(e,t,n);case 4:return an(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=Jt(t,null,i,n):tr(e,t,i,n),t.child;case 11:return i=t.type,o=t.pendingProps,nr(e,t,i,o=t.elementType===i?o:yt(i,o),n);case 7:return tr(e,t,t.pendingProps,n),t.child;case 8:case 12:return tr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,o=t.pendingProps,l=t.memoizedProps,Et(t,a=o.value),null!==l){var c=l.value;if(0===(a=ht(c,a)?0:0|("function"==typeof i._calculateChangedBits?i._calculateChangedBits(c,a):1073741823))){if(l.children===o.children&&!Ae.current){t=hr(e,t,n);break e}}else for(null!==(c=t.child)&&(c.return=t);null!==c;){var s=c.dependencies;if(null!==s){l=c.child;for(var f=s.firstContext;null!==f;){if(f.context===i&&0!=(f.observedBits&a)){1===c.tag&&((f=At(n,null)).tag=2,Ot(c,f)),c.expirationTimeTe||(e.current=Ce[Te],Ce[Te]=null,Te--)}function _e(e,t){Te++,Ce[Te]=e.current,e.current=t}var Pe={},Ie={current:Pe},Ae={current:!1},Re=Pe;function Oe(e,t){var n=e.type.contextTypes;if(!n)return Pe;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ze(e){return null!=(e=e.childContextTypes)}function je(e){Ne(Ae),Ne(Ie)}function Le(e){Ne(Ae),Ne(Ie)}function Fe(e,t,n){if(Ie.current!==Pe)throw u(Error(168));_e(Ie,t),_e(Ae,n)}function Me(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw u(Error(108),T(t)||"Unknown",i);return o({},n,r)}function Ue(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Pe,Re=Ie.current,_e(Ie,t),_e(Ae,Ae.current),!0}function He(e,t,n){var r=e.stateNode;if(!r)throw u(Error(169));n?(t=Me(e,t,Re),r.__reactInternalMemoizedMergedChildContext=t,Ne(Ae),Ne(Ie),_e(Ie,t)):Ne(Ae),_e(Ae,n)}var De=l.unstable_runWithPriority,We=l.unstable_scheduleCallback,Ve=l.unstable_cancelCallback,Be=l.unstable_shouldYield,qe=l.unstable_requestPaint,Qe=l.unstable_now,$e=l.unstable_getCurrentPriorityLevel,Ke=l.unstable_ImmediatePriority,Ge=l.unstable_UserBlockingPriority,Ye=l.unstable_NormalPriority,Xe=l.unstable_LowPriority,Je=l.unstable_IdlePriority,Ze={},et=void 0!==qe?qe:function(){},tt=null,nt=null,rt=!1,it=Qe(),ot=1e4>it?Qe:function(){return Qe()-it};function at(){switch($e()){case Ke:return 99;case Ge:return 98;case Ye:return 97;case Xe:return 96;case Je:return 95;default:throw u(Error(332))}}function lt(e){switch(e){case 99:return Ke;case 98:return Ge;case 97:return Ye;case 96:return Xe;case 95:return Je;default:throw u(Error(332))}}function ut(e,t){return e=lt(e),De(e,t)}function ct(e,t,n){return e=lt(e),We(e,t,n)}function st(e){return null===tt?(tt=[e],nt=We(Ke,dt)):tt.push(e),Ze}function ft(){null!==nt&&Ve(nt),dt()}function dt(){if(!rt&&null!==tt){rt=!0;var e=0;try{var t=tt;ut(99,(function(){for(;e=(e=10*(1073741821-t)-10*(1073741821-e))?99:250>=e?98:5250>=e?97:95}function ht(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var mt=Object.prototype.hasOwnProperty;function vt(e,t){if(ht(e,t))return!0;if("object"!==r(e)||null===e||"object"!==r(t)||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i=t&&(er=!0),e.firstContext=null)}function Nt(e,t){if(wt!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(wt=e,t=1073741823),t={context:e,observedBits:t,next:null},null===kt){if(null===gt)throw u(Error(308));kt=t,gt.dependencies={expirationTime:0,firstContext:t,responders:null}}else kt=kt.next=t;return Q?e._currentValue:e._currentValue2}var _t=!1;function Pt(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function It(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function At(e,t){return{expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Rt(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function Ot(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,i=null;null===r&&(r=e.updateQueue=Pt(e.memoizedState))}else r=e.updateQueue,i=n.updateQueue,null===r?null===i?(r=e.updateQueue=Pt(e.memoizedState),i=n.updateQueue=Pt(n.memoizedState)):r=e.updateQueue=It(i):null===i&&(i=n.updateQueue=It(r));null===i||r===i?Rt(r,t):null===r.lastUpdate||null===i.lastUpdate?(Rt(r,t),Rt(i,t)):(Rt(r,t),i.lastUpdate=t)}function zt(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=Pt(e.memoizedState):jt(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function jt(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=It(t)),t}function Lt(e,t,n,r,i,a){switch(n.tag){case 1:return"function"==typeof(e=n.payload)?e.call(a,r,i):e;case 3:e.effectTag=-2049&e.effectTag|64;case 0:if(null==(i="function"==typeof(e=n.payload)?e.call(a,r,i):e))break;return o({},r,i);case 2:_t=!0}return r}function Ft(e,t,n,r,i){_t=!1;for(var o=(t=jt(e,t)).baseState,a=null,l=0,u=t.firstUpdate,c=o;null!==u;){var s=u.expirationTime;sd?(p=f,f=null):p=f.sibling;var h=y(r,f,l[d],u);if(null===h){null===f&&(f=p);break}e&&f&&null===h.alternate&&t(r,f),o=a(h,o,d),null===s?c=h:s.sibling=h,s=h,f=p}if(d===l.length)return n(r,f),c;if(null===f){for(;dp?(h=d,d=null):h=d.sibling;var g=y(r,d,m.value,c);if(null===g){null===d&&(d=h);break}e&&d&&null===g.alternate&&t(r,d),o=a(g,o,p),null===f?s=g:f.sibling=g,f=g,d=h}if(m.done)return n(r,d),s;if(null===d){for(;!m.done;p++,m=l.next())null!==(m=v(r,m.value,c))&&(o=a(m,o,p),null===f?s=m:f.sibling=m,f=m);return s}for(d=i(r,d);!m.done;p++,m=l.next())null!==(m=b(d,r,p,m.value,c))&&(e&&null!==m.alternate&&d.delete(null===m.key?p:m.key),o=a(m,o,p),null===f?s=m:f.sibling=m,f=m);return e&&d.forEach((function(e){return t(r,e)})),s}return function(e,i,a,c){var s="object"===r(a)&&null!==a&&a.type===p&&null===a.key;s&&(a=a.props.children);var h="object"===r(a)&&null!==a;if(h)switch(a.$$typeof){case f:e:{for(h=a.key,s=i;null!==s;){if(s.key===h){if(7===s.tag?a.type===p:s.elementType===a.type){n(e,s.sibling),(i=o(s,a.type===p?a.props.children:a.props)).ref=Gt(e,s,a),i.return=e,e=i;break e}n(e,s);break}t(e,s),s=s.sibling}a.type===p?((i=Fi(a.props.children,e.mode,c,a.key)).return=e,e=i):((c=Li(a.type,a.key,a.props,null,e.mode,c)).ref=Gt(e,i,a),c.return=e,e=c)}return l(e);case d:e:{for(s=a.key;null!==i;){if(i.key===s){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(e,i.sibling),(i=o(i,a.children||[])).return=e,e=i;break e}n(e,i);break}t(e,i),i=i.sibling}(i=Ui(a,e.mode,c)).return=e,e=i}return l(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==i&&6===i.tag?(n(e,i.sibling),(i=o(i,a)).return=e,e=i):(n(e,i),(i=Mi(a,e.mode,c)).return=e,e=i),l(e);if(Kt(a))return g(e,i,a,c);if(C(a))return k(e,i,a,c);if(h&&Yt(e,a),void 0===a&&!s)switch(e.tag){case 1:case 0:throw e=e.type,u(Error(152),e.displayName||e.name||"Component")}return n(e,i)}}var Jt=Xt(!0),Zt=Xt(!1),en={},tn={current:en},nn={current:en},rn={current:en};function on(e){if(e===en)throw u(Error(174));return e}function an(e,t){_e(rn,t),_e(nn,e),_e(tn,en),t=R(t),Ne(tn),_e(tn,t)}function ln(e){Ne(tn),Ne(nn),Ne(rn)}function un(e){var t=on(rn.current),n=on(tn.current);n!==(t=O(n,e.type,t))&&(_e(nn,e),_e(tn,t))}function cn(e){nn.current===e&&(Ne(tn),Ne(nn))}var sn={current:0};function fn(e){for(var t=e;null!==t;){if(13===t.tag){if(null!==t.memoizedState)return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function dn(e,t){return{responder:e,props:t}}var pn=c.ReactCurrentDispatcher,hn=0,mn=null,vn=null,yn=null,bn=null,gn=null,kn=null,wn=0,xn=null,En=0,Sn=!1,Cn=null,Tn=0;function Nn(){throw u(Error(321))}function _n(e,t){if(null===t)return!1;for(var n=0;nwn&&(wn=f)):(bi(f,c.suspenseConfig),o=c.eagerReducer===e?c.eagerState:e(o,c.action)),a=c,c=c.next}while(null!==c&&c!==r);s||(l=a,i=o),ht(o,t.memoizedState)||(er=!0),t.memoizedState=o,t.baseUpdate=l,t.baseState=i,n.lastRenderedState=o}return[t.memoizedState,n.dispatch]}function jn(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===xn?(xn={lastEffect:null}).lastEffect=e.next=e:null===(t=xn.lastEffect)?xn.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,xn.lastEffect=e),e}function Ln(e,t,n,r){var i=An();En|=e,i.memoizedState=jn(t,n,void 0,void 0===r?null:r)}function Fn(e,t,n,r){var i=Rn();r=void 0===r?null:r;var o=void 0;if(null!==vn){var a=vn.memoizedState;if(o=a.destroy,null!==r&&_n(r,a.deps))return void jn(0,n,o,r)}En|=e,i.memoizedState=jn(t,n,o,r)}function Mn(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Un(){}function Hn(e,t,n){if(!(25>Tn))throw u(Error(301));var r=e.alternate;if(e===mn||null!==r&&r===mn)if(Sn=!0,e={expirationTime:hn,suspenseConfig:null,action:n,eagerReducer:null,eagerState:null,next:null},null===Cn&&(Cn=new Map),void 0===(n=Cn.get(t)))Cn.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{var i=ci(),o=Ht.suspense;o={expirationTime:i=si(i,e,o),suspenseConfig:o,action:n,eagerReducer:null,eagerState:null,next:null};var a=t.last;if(null===a)o.next=o;else{var l=a.next;null!==l&&(o.next=l),a.next=o}if(t.last=o,0===e.expirationTime&&(null===r||0===r.expirationTime)&&null!==(r=t.lastRenderedReducer))try{var c=t.lastRenderedState,s=r(c,n);if(o.eagerReducer=r,o.eagerState=s,ht(s,c))return}catch(e){}di(e,i)}}var Dn={readContext:Nt,useCallback:Nn,useContext:Nn,useEffect:Nn,useImperativeHandle:Nn,useLayoutEffect:Nn,useMemo:Nn,useReducer:Nn,useRef:Nn,useState:Nn,useDebugValue:Nn,useResponder:Nn},Wn={readContext:Nt,useCallback:function(e,t){return An().memoizedState=[e,void 0===t?null:t],e},useContext:Nt,useEffect:function(e,t){return Ln(516,192,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ln(4,36,Mn.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ln(4,36,e,t)},useMemo:function(e,t){var n=An();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=An();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={last:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Hn.bind(null,mn,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},An().memoizedState=e},useState:function(e){var t=An();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,lastRenderedReducer:On,lastRenderedState:e}).dispatch=Hn.bind(null,mn,e),[t.memoizedState,e]},useDebugValue:Un,useResponder:dn},Vn={readContext:Nt,useCallback:function(e,t){var n=Rn();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&_n(t,r[1])?r[0]:(n.memoizedState=[e,t],e)},useContext:Nt,useEffect:function(e,t){return Fn(516,192,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Fn(4,36,Mn.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fn(4,36,e,t)},useMemo:function(e,t){var n=Rn();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&_n(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:zn,useRef:function(){return Rn().memoizedState},useState:function(e){return zn(On)},useDebugValue:Un,useResponder:dn},Bn=null,qn=null,Qn=!1;function $n(e,t){var n=Oi(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Kn(e,t){switch(e.tag){case 5:return null!==(t=ye(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=be(t,e.pendingProps))&&(e.stateNode=t,!0);case 13:default:return!1}}function Gn(e){if(Qn){var t=qn;if(t){var n=t;if(!Kn(e,t)){if(!(t=ge(n))||!Kn(e,t))return e.effectTag|=2,Qn=!1,void(Bn=e);$n(Bn,n)}Bn=e,qn=ke(t)}else e.effectTag|=2,Qn=!1,Bn=e}}function Yn(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;Bn=e}function Xn(e){if(!G||e!==Bn)return!1;if(!Qn)return Yn(e),Qn=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!H(t,e.memoizedProps))for(t=qn;t;)$n(e,t),t=ge(t);return Yn(e),qn=Bn?ge(e.stateNode):null,!0}function Jn(){G&&(qn=Bn=null,Qn=!1)}var Zn=c.ReactCurrentOwner,er=!1;function tr(e,t,n,r){t.child=null===e?Zt(t,null,n,r):Jt(t,e.child,n,r)}function nr(e,t,n,r,i){n=n.render;var o=t.ref;return Tt(t,i),r=Pn(e,t,n,r,o,i),null===e||er?(t.effectTag|=1,tr(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),hr(e,t,i))}function rr(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||zi(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Li(n.type,null,r,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,ir(e,t,a,r,i,o))}return a=e.child,it)&&oi.set(e,t))}}function pi(e,t){e.expirationTimei.firstPendingTime&&(i.firstPendingTime=t),0===(e=i.lastPendingTime)||t component higher in the tree to provide a loading indicator or placeholder to display."+Se(s))}4!==qr&&(qr=1),f=xr(f,s),s=c;do{switch(s.tag){case 3:s.effectTag|=2048,s.expirationTime=d,zt(s,d=Lr(s,f,d));break e;case 1:if(p=f,l=s.type,c=s.stateNode,0==(64&s.effectTag)&&("function"==typeof l.getDerivedStateFromError||null!==c&&"function"==typeof c.componentDidCatch&&(null===ei||!ei.has(c)))){s.effectTag|=2048,s.expirationTime=d,zt(s,d=Fr(s,p,d));break e}}s=s.return}while(null!==s)}Vr=ki(a)}if(Dr=i,xt(),Ur.current=o,null!==Vr)return yi.bind(null,e,t)}if(e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,function(e,t){var n=e.firstBatch;return!!(null!==n&&n._defer&&n._expirationTime>=t)&&(ct(97,(function(){return n._onComplete(),null})),!0)}(e,t))return null;switch(Wr=null,qr){case 0:throw u(Error(328));case 1:return(i=e.lastPendingTime)(n=(i=ot())-n)&&(n=0),(t=10*(1073741821-t)-i)<(n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Mr(n/1960))-n)&&(n=t)),10=(t=0|(o=Kr).busyMinDurationMs)?t=0:(n=0|o.busyDelayMs,t=(i=ot()-(10*(1073741821-i)-(0|o.timeoutMs||5e3)))<=n?0:n+t-i),10i.tailExpiration&&1r&&(r=o),(a=i.childExpirationTime)>r&&(r=a),i=i.sibling;n.childExpirationTime=r}if(null!==t)return t;null!==e&&0==(1024&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Vr.firstEffect),null!==Vr.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Vr.firstEffect),e.lastEffect=Vr.lastEffect),1i?o:i,e.firstPendingTime=i,i=n?fr(e,t,n):(_e(sn,1&sn.current),null!==(t=hr(e,t,n))?t.sibling:null);_e(sn,1&sn.current);break;case 19:if(i=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(i)return pr(e,t,n);t.effectTag|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null),_e(sn,sn.current),!i)return null}return hr(e,t,n)}}else er=!1;switch(t.expirationTime=0,t.tag){case 2:if(i=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,o=Oe(t,Ie.current),Tt(t,n),o=Pn(null,t,i,e,o,n),t.effectTag|=1,"object"===r(o)&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,In(),ze(i)){var a=!0;Ue(t)}else a=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null;var l=i.getDerivedStateFromProps;"function"==typeof l&&Wt(t,i,l,e),o.updater=Vt,t.stateNode=o,o._reactInternalFiber=t,$t(t,i,e,n),t=ur(null,t,i,!0,a,n)}else t.tag=0,tr(null,t,o,n),t=t.child;return t;case 16:switch(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,o=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:switch(e._status=0,(t=(t=e._ctor)()).then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)})),e._status){case 1:return e._result;case 2:throw e._result}throw e._result=t,t}}(o),t.type=o,a=t.tag=function(e){if("function"==typeof e)return zi(e)?1:0;if(null!=e){if((e=e.$$typeof)===g)return 11;if(e===x)return 14}return 2}(o),e=yt(o,e),a){case 0:t=ar(null,t,o,e,n);break;case 1:t=lr(null,t,o,e,n);break;case 11:t=nr(null,t,o,e,n);break;case 14:t=rr(null,t,o,yt(o.type,e),i,n);break;default:throw u(Error(306),o,"")}return t;case 0:return i=t.type,o=t.pendingProps,ar(e,t,i,o=t.elementType===i?o:yt(i,o),n);case 1:return i=t.type,o=t.pendingProps,lr(e,t,i,o=t.elementType===i?o:yt(i,o),n);case 3:if(cr(t),null===(i=t.updateQueue))throw u(Error(282));return o=null!==(o=t.memoizedState)?o.element:null,Ft(t,i,t.pendingProps,null,n),(i=t.memoizedState.element)===o?(Jn(),t=hr(e,t,n)):(o=t.stateNode,(o=(null===e||null===e.child)&&o.hydrate)&&(G?(qn=ke(t.stateNode.containerInfo),Bn=t,o=Qn=!0):o=!1),o?(t.effectTag|=2,t.child=Zt(t,null,i,n)):(tr(e,t,i,n),Jn()),t=t.child),t;case 5:return un(t),null===e&&Gn(t),i=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,l=o.children,H(i,o)?l=null:null!==a&&H(i,a)&&(t.effectTag|=16),or(e,t),4&t.mode&&1!==n&&D(i,o)?(t.expirationTime=t.childExpirationTime=1,t=null):(tr(e,t,l,n),t=t.child),t;case 6:return null===e&&Gn(t),null;case 13:return fr(e,t,n);case 4:return an(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=Jt(t,null,i,n):tr(e,t,i,n),t.child;case 11:return i=t.type,o=t.pendingProps,nr(e,t,i,o=t.elementType===i?o:yt(i,o),n);case 7:return tr(e,t,t.pendingProps,n),t.child;case 8:case 12:return tr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,o=t.pendingProps,l=t.memoizedProps,Et(t,a=o.value),null!==l){var c=l.value;if(0===(a=ht(c,a)?0:0|("function"==typeof i._calculateChangedBits?i._calculateChangedBits(c,a):1073741823))){if(l.children===o.children&&!Ae.current){t=hr(e,t,n);break e}}else for(null!==(c=t.child)&&(c.return=t);null!==c;){var s=c.dependencies;if(null!==s){l=c.child;for(var f=s.firstContext;null!==f;){if(f.context===i&&0!=(f.observedBits&a)){1===c.tag&&((f=At(n,null)).tag=2,Ot(c,f)),c.expirationTimeA.length&&A.push(e)}function z(e,t,n){return null==e?0:function e(t,n,i,o){var u=r(t);"undefined"!==u&&"boolean"!==u||(t=null);var c=!1;if(null===t)c=!0;else switch(u){case"string":case"number":c=!0;break;case"object":switch(t.$$typeof){case a:case l:c=!0}}if(c)return i(o,t,""===n?"."+j(t,0):n),1;if(c=0,n=""===n?".":n+":",Array.isArray(t))for(var s=0;s=C},u=function(){},t.unstable_forceFrameRate=function(e){0>e||125(x=ru){if(l=c,null===A)A=e.next=e.previous=e;else{n=null;var s=A;do{if(l=C},u=function(){},t.unstable_forceFrameRate=function(e){0>e||125(x=ru){if(l=c,null===A)A=e.next=e.previous=e;else{n=null;var s=A;do{if(lA.length&&A.push(e)}function z(e,t,n){return null==e?0:function e(t,n,i,o){var u=r(t);"undefined"!==u&&"boolean"!==u||(t=null);var c=!1;if(null===t)c=!0;else switch(u){case"string":case"number":c=!0;break;case"object":switch(t.$$typeof){case a:case l:c=!0}}if(c)return i(o,t,""===n?"."+j(t,0):n),1;if(c=0,n=""===n?".":n+":",Array.isArray(t))for(var s=0;s *HippyModuleClasses; NSArray *HippyGetModuleClasses(void) { diff --git a/lerna.json b/lerna.json index 82a3ffac74e..155dcc194f6 100644 --- a/lerna.json +++ b/lerna.json @@ -3,5 +3,5 @@ "packages": [ "packages/*" ], - "version": "2.5.2" + "version": "2.5.3" } diff --git a/packages/hippy-react-web/CHANGELOG.md b/packages/hippy-react-web/CHANGELOG.md index f66c2b21065..fa739aa6d9b 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.5.3](https://github.com/Tencent/Hippy/tree/master/packages/hippy-react-web/compare/2.5.2...2.5.3) (2021-03-10) + +**Note:** Version bump only for package @hippy/react-web + + + + + ## [2.5.2](https://github.com/Tencent/Hippy/tree/master/packages/hippy-react-web/compare/2.5.1...2.5.2) (2021-03-08) **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 68516e0a621..2eaaf3cdc90 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.5.2", + "version": "2.5.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/packages/hippy-react-web/package.json b/packages/hippy-react-web/package.json index de479aff841..e394435e2ff 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.5.2", + "version": "2.5.3", "description": "Web Adapter for Hippy React", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/packages/hippy-react/CHANGELOG.md b/packages/hippy-react/CHANGELOG.md index 195a3666bf9..82239e42ea4 100644 --- a/packages/hippy-react/CHANGELOG.md +++ b/packages/hippy-react/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.5.3](https://github.com/Tencent/Hippy/tree/master/packages/hippy-react/compare/2.5.2...2.5.3) (2021-03-10) + +**Note:** Version bump only for package @hippy/react + + + + + ## [2.5.2](https://github.com/Tencent/Hippy/tree/master/packages/hippy-react/compare/2.5.1...2.5.2) (2021-03-08) **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 fd93950ce93..d682040e1d4 100644 --- a/packages/hippy-react/package-lock.json +++ b/packages/hippy-react/package-lock.json @@ -1,6 +1,6 @@ { "name": "@hippy/react", - "version": "2.5.2", + "version": "2.5.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/packages/hippy-react/package.json b/packages/hippy-react/package.json index 7b6ccbbcabd..4c85cdf78aa 100644 --- a/packages/hippy-react/package.json +++ b/packages/hippy-react/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/react", - "version": "2.5.2", + "version": "2.5.3", "description": "Hippy react framework", "main": "dist/index.js", "homepage": "http://hippyjs.org", diff --git a/packages/hippy-vue-css-loader/CHANGELOG.md b/packages/hippy-vue-css-loader/CHANGELOG.md index 87181da072c..001588df392 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.5.3](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue-css-loader/compare/2.5.2...2.5.3) (2021-03-10) + +**Note:** Version bump only for package @hippy/vue-css-loader + + + + + ## [2.5.2](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue-css-loader/compare/2.5.1...2.5.2) (2021-03-08) **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 da07dc5c718..c710ec5add8 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.5.2", + "version": "2.5.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/packages/hippy-vue-css-loader/package.json b/packages/hippy-vue-css-loader/package.json index 3d92954120c..25816430db9 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.5.2", + "version": "2.5.3", "description": "hippy-vue style loader module for webpack", "main": "dist/index.js", "homepage": "http://hippyjs.org", diff --git a/packages/hippy-vue-native-components/CHANGELOG.md b/packages/hippy-vue-native-components/CHANGELOG.md index e02322ec183..a36f888551e 100644 --- a/packages/hippy-vue-native-components/CHANGELOG.md +++ b/packages/hippy-vue-native-components/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.5.3](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue-native-components/compare/2.5.2...2.5.3) (2021-03-10) + +**Note:** Version bump only for package @hippy/vue-native-components + + + + + ## [2.5.2](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue-native-components/compare/2.5.1...2.5.2) (2021-03-08) diff --git a/packages/hippy-vue-native-components/package.json b/packages/hippy-vue-native-components/package.json index 8acc569abec..90427a0f340 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.5.2", + "version": "2.5.3", "description": "Native components middleware for Hippy-Vue, the components only for native, can't compatible with web.", "main": "dist/index.js", "homepage": "http://hippyjs.org", diff --git a/packages/hippy-vue/CHANGELOG.md b/packages/hippy-vue/CHANGELOG.md index 44792cb4131..001b54ec5f7 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.5.3](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue/compare/2.5.2...2.5.3) (2021-03-10) + +**Note:** Version bump only for package @hippy/vue + + + + + ## [2.5.2](https://github.com/Tencent/Hippy/tree/master/packages/hippy-vue/compare/2.5.1...2.5.2) (2021-03-08) diff --git a/packages/hippy-vue/package-lock.json b/packages/hippy-vue/package-lock.json index 7dde406eb08..df476260bdc 100644 --- a/packages/hippy-vue/package-lock.json +++ b/packages/hippy-vue/package-lock.json @@ -1,6 +1,6 @@ { "name": "@hippy/vue", - "version": "2.5.2", + "version": "2.5.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/packages/hippy-vue/package.json b/packages/hippy-vue/package.json index 09c9485c493..65a798edf5d 100644 --- a/packages/hippy-vue/package.json +++ b/packages/hippy-vue/package.json @@ -1,6 +1,6 @@ { "name": "@hippy/vue", - "version": "2.5.2", + "version": "2.5.3", "description": "Vue binding for Hippy native framework", "author": "XQ Kuang ", "license": "Apache-2.0",