text: !function(e){function t(t){for(var n,o,a=t[0],i=t[1],l=0,s=[];l<a.length;l++)o=a[l],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&s.push(r[o][0]),r[o]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(c&&c(t);s.length;)s.shift()()}var n={},r={2:0};function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((function(t,o){n=r[e]=[t,o]}));if(t.push(n[2]=a),!global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__)try{var i=JSON.parse('{"asyncComponentFromHttp":"https://static.res.qq.com/hippy/hippyReactDemo/relativePath/"}');global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__=i}catch(e){console.error("parse __DYNAMIC_LOAD_CUSTOM_PATH_MAP__ error",e)}var l=function(e){return o.p+""+({0:"asyncComponentFromHttp",1:"asyncComponentFromLocal"}[e]||e)+".ios.js"}(e);if(l&&global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__)if(["https://","http://","//"].some(e=>0===l.indexOf(e))){var c=l.split("/"),s=c[c.length-1],u=s.split(".")[0];(f=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[u])&&(l=f+s)}else{var f;u=l.split(".")[0];(f=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[u])&&(l=f+l)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+l;var n=r[e];0!==n&&n&&n[1](t),r[e]=void 0}},global.dynamicLoad(l,onScriptComplete)}return Promise.all(t)},o.m=e,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o.oe=function(e){throw console.error(e),e};var a=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],i=a.push.bind(a);a.push=t,a=a.slice();for(var l=0;l<a.length;l++)t(a[l]);var c=i;o(o.s=0)}({"../../packages/hippy-react/dist/index.js":function(e,t,n){e.exports=n("dll-reference hippyReactBase")("../../packages/hippy-react/dist/index.js")},"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js":function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/arrayWithHoles.js":function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/assertThisInitialized.js":function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/asyncToGenerator.js":function(e,t){function n(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,a){var i=e.apply(t,r);function l(e){n(i,o,a,l,c,"next",e)}function c(e){n(i,o,a,l,c,"throw",e)}l(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/classCallCheck.js":function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/createClass.js":function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/defineProperty.js":function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js":function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,"a",(function(){return o}))},"./node_modules/@babel/runtime/helpers/extends.js":function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(this,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/getPrototypeOf.js":function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/inherits.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/setPrototypeOf.js");e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/iterableToArray.js":function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/nonIterableRest.js":function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/nonIterableSpread.js":function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/typeof.js").default,o=n("./node_modules/@babel/runtime/helpers/assertThisInitialized.js");e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/setPrototypeOf.js":function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/slicedToArray.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/arrayWithHoles.js"),o=n("./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"),a=n("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),i=n("./node_modules/@babel/runtime/helpers/nonIterableRest.js");e.exports=function(e,t){return r(e)||o(e,t)||a(e,t)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/toConsumableArray.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"),o=n("./node_modules/@babel/runtime/helpers/iterableToArray.js"),a=n("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),i=n("./node_modules/@babel/runtime/helpers/nonIterableSpread.js");e.exports=function(e){return r(e)||o(e)||a(e)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/regenerator/index.js":function(e,t,n){e.exports=n("./node_modules/regenerator-runtime/runtime.js")},"./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js":function(e,t,n){"use strict";var r=n("./node_modules/react-is/index.js"),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function c(e){return r.isMemo(e)?i:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var s=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=h(n);o&&o!==m&&e(t,o,r)}var i=u(n);f&&(i=i.concat(f(n)));for(var l=c(t),p=c(n),y=0;y<i.length;++y){var g=i[y];if(!(a[g]||r&&r[g]||p&&p[g]||l&&l[g])){var b=d(n,g);try{s(t,g,b)}catch(e){}}}}return t}},"./node_modules/isarray/index.js":function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},"./node_modules/mini-create-react-context/dist/esm/index.js":function(e,t,n){"use strict";(function(e){var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js"),i=n("./node_modules/prop-types/index.js"),l=n.n(i),c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:{};function s(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var u=o.a.createContext||function(e,t){var n,o,i,u="__create-react-context-"+((c[i="__global_unique_id__"]=(c[i]||0)+1)+"__"),f=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=s(t.props.value),t}Object(a.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[u]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((a=r)===(i=o)?0!==a||1/a==1/i:a!=a&&i!=i)?n=0:(n="function"==typeof t?t(r,o):1073741823,0!==(n|=0)&&this.emitter.set(e.value,n))}var a,i},r.render=function(){return this.props.children},n}(r.Component);f.childContextTypes=((n={})[u]=l.a.object.isRequired,n);var d=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(a.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?1073741823:t},r.componentDidMount=function(){this.context[u]&&this.context[u].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?1073741823:e},r.componentWillUnmount=function(){this.context[u]&&this.context[u].off(this.onUpdate)},r.getValue=function(){return this.context[u]?this.context[u].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return d.contextTypes=((o={})[u]=l.a.object,o),{Provider:f,Consumer:d}};t.a=u}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/path-to-regexp/index.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/typeof.js"),o=n("./node_modules/isarray/index.js");e.exports=m,e.exports.parse=i,e.exports.compile=function(e,t){return c(i(e,t),t)},e.exports.tokensToFunction=c,e.exports.tokensToRegExp=h;var a=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],o=0,i=0,l="",c=t&&t.delimiter||"/";null!=(n=a.exec(e));){var f=n[0],d=n[1],h=n.index;if(l+=e.slice(i,h),i=h+f.length,d)l+=d[1];else{var m=e[i],p=n[2],y=n[3],g=n[4],b=n[5],v=n[6],w=n[7];l&&(r.push(l),l="");var x=null!=p&&null!=m&&m!==p,S="+"===v||"*"===v,T="?"===v||"*"===v,C=n[2]||c,E=g||b;r.push({name:y||o++,prefix:p||"",delimiter:C,optional:T,repeat:S,partial:x,asterisk:!!w,pattern:E?u(E):w?".*":"[^"+s(C)+"]+?"})}}return i<e.length&&(l+=e.substr(i)),l&&r.push(l),r}function l(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function c(e,t){for(var n=new Array(e.length),a=0;a<e.length;a++)"object"===r(e[a])&&(n[a]=new RegExp("^(?:"+e[a].pattern+")$",d(t)));return function(t,r){for(var a="",i=t||{},c=(r||{}).pretty?l:encodeURIComponent,s=0;s<e.length;s++){var u=e[s];if("string"!=typeof u){var f,d=i[u.name];if(null==d){if(u.optional){u.partial&&(a+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(o(d)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var h=0;h<d.length;h++){if(f=c(d[h]),!n[s].test(f))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(f)+"`");a+=(0===h?u.prefix:u.delimiter)+f}}else{if(f=u.asterisk?encodeURI(d).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):c(d),!n[s].test(f))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+f+'"');a+=u.prefix+f}}else a+=u}return a}}function s(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function f(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function h(e,t,n){o(t)||(n=t||n,t=[]);for(var r=(n=n||{}).strict,a=!1!==n.end,i="",l=0;l<e.length;l++){var c=e[l];if("string"==typeof c)i+=s(c);else{var u=s(c.prefix),h="(?:"+c.pattern+")";t.push(c),c.repeat&&(h+="(?:"+u+h+")*"),i+=h=c.optional?c.partial?u+"("+h+")?":"(?:"+u+"("+h+"))?":u+"("+h+")"}}var m=s(n.delimiter||"/"),p=i.slice(-m.length)===m;return r||(i=(p?i.slice(0,-m.length):i)+"(?:"+m+"(?=$))?"),i+=a?"$":r&&p?"":"(?="+m+"|$)",f(new RegExp("^"+i,d(n)),t)}function m(e,t,n){return o(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return f(e,t)}(e,t):o(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(m(e[o],t,n).source);return f(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return h(i(e,n),t,n)}(e,t,n)}},"./node_modules/prop-types/factoryWithThrowingShims.js":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/lib/ReactPropTypesSecret.js");function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},"./node_modules/prop-types/index.js":function(e,t,n){e.exports=n("./node_modules/prop-types/factoryWithThrowingShims.js")()},"./node_modules/prop-types/lib/ReactPropTypesSecret.js":function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},"./node_modules/react-is/cjs/react-is.production.min.js":function(e,t,n){"use strict";
  /** @license React v16.13.1
   * react-is.production.min.js
   *
   * Copyright (c) Facebook, Inc. and its affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   */var r=n("./node_modules/@babel/runtime/helpers/typeof.js"),o="function"==typeof Symbol&&Symbol.for,a=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,l=o?Symbol.for("react.fragment"):60107,c=o?Symbol.for("react.strict_mode"):60108,s=o?Symbol.for("react.profiler"):60114,u=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,d=o?Symbol.for("react.async_mode"):60111,h=o?Symbol.for("react.concurrent_mode"):60111,m=o?Symbol.for("react.forward_ref"):60112,p=o?Symbol.for("react.suspense"):60113,y=o?Symbol.for("react.suspense_list"):60120,g=o?Symbol.for("react.memo"):60115,b=o?Symbol.for("react.lazy"):60116,v=o?Symbol.for("react.block"):60121,w=o?Symbol.for("react.fundamental"):60117,x=o?Symbol.for("react.responder"):60118,S=o?Symbol.for("react.scope"):60119;function T(e){if("object"===r(e)&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case d:case h:case l:case s:case c:case p:return e;default:switch(e=e&&e.$$typeof){case f:case m:case b:case g:case u:return e;default:return t}}case i:return t}}}function C(e){return T(e)===h}t.AsyncMode=d,t.ConcurrentMode=h,t.ContextConsumer=f,t.ContextProvider=u,t.Element=a,t.ForwardRef=m,t.Fragment=l,t.Lazy=b,t.Memo=g,t.Portal=i,t.Profiler=s,t.StrictMode=c,t.Suspense=p,t.isAsyncMode=function(e){return C(e)||T(e)===d},t.isConcurrentMode=C,t.isContextConsumer=function(e){return T(e)===f},t.isContextProvider=function(e){return T(e)===u},t.isElement=function(e){return"object"===r(e)&&null!==e&&e.$$typeof===a},t.isForwardRef=function(e){return T(e)===m},t.isFragment=function(e){return T(e)===l},t.isLazy=function(e){return T(e)===b},t.isMemo=function(e){return T(e)===g},t.isPortal=function(e){return T(e)===i},t.isProfiler=function(e){return T(e)===s},t.isStrictMode=function(e){return T(e)===c},t.isSuspense=function(e){return T(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===l||e===h||e===s||e===c||e===p||e===y||"object"===r(e)&&null!==e&&(e.$$typeof===b||e.$$typeof===g||e.$$typeof===u||e.$$typeof===f||e.$$typeof===m||e.$$typeof===w||e.$$typeof===x||e.$$typeof===S||e.$$typeof===v)},t.typeOf=T},"./node_modules/react-is/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/react-is/cjs/react-is.production.min.js")},"./node_modules/react/index.js":function(e,t,n){e.exports=n("dll-reference hippyReactBase")("./node_modules/react/index.js")},"./node_modules/regenerator-runtime/runtime.js":function(e,t,n){(function(e){var t=n("./node_modules/@babel/runtime/helpers/typeof.js"),r=function(e){"use strict";var n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var o=t&&t.prototype instanceof d?t:d,a=Object.create(o.prototype),i=new C(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return k()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var l=x(i,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,i),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function d(){}function h(){}function m(){}var p={};c(p,a,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(E([])));g&&g!==n&&r.call(g,a)&&(p=g);var b=m.prototype=d.prototype=Object.create(p);function v(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,n){var o;this._invoke=function(a,i){function l(){return new n((function(o,l){!function o(a,i,l,c){var s=u(e[a],e,i);if("throw"!==s.type){var f=s.arg,d=f.value;return d&&"object"===t(d)&&r.call(d,"__await")?n.resolve(d.__await).then((function(e){o("next",e,l,c)}),(function(e){o("throw",e,l,c)})):n.resolve(d).then((function(e){f.value=e,l(f)}),(function(e){return o("throw",e,l,c)}))}c(s.arg)}(a,i,o,l)}))}return o=o?o.then(l,l):l()}}function x(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function E(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:k}}function k(){return{value:void 0,done:!0}}return h.prototype=m,c(b,"constructor",m),c(m,"constructor",h),h.displayName=c(m,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,c(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},v(w.prototype),c(w.prototype,i,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new w(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},v(b),c(b,l,"Generator"),c(b,a,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=r}catch(e){"object"===("undefined"==typeof globalThis?"undefined":t(globalThis))?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/webpack/buildin/global.js":function(e,t,n){e.exports=n("dll-reference hippyReactBase")("./node_modules/webpack/buildin/global.js")},"./node_modules/webpack/buildin/module.js":function(e,t,n){e.exports=n("dll-reference hippyReactBase")("./node_modules/webpack/buildin/module.js")},"./src/main.js":function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"Focusable",(function(){return te})),n.d(r,"Image",(function(){return ae})),n.d(r,"ListView",(function(){return be})),n.d(r,"Modal",(function(){return Ce})),n.d(r,"RefreshWrapper",(function(){return Qe})),n.d(r,"PullHeader",(function(){return Xe})),n.d(r,"ScrollView",(function(){return $e})),n.d(r,"Text",(function(){return rt})),n.d(r,"TextInput",(function(){return it})),n.d(r,"View",(function(){return st})),n.d(r,"ViewPager",(function(){return wt})),n.d(r,"WebView",(function(){return St})),n.d(r,"BoxShadow",(function(){return Et})),n.d(r,"WaterfallView",(function(){return Vt}));var o={};n.r(o),n.d(o,"Animation",(function(){return Pt})),n.d(o,"AsyncStorage",(function(){return Bt})),n.d(o,"Clipboard",(function(){return Ft})),n.d(o,"NativeEvent",(function(){return Nt})),n.d(o,"NetInfo",(function(){return Ut})),n.d(o,"TestModule",(function(){return Jt})),n.d(o,"WebSocket",(function(){return nn})),n.d(o,"UIManagerModule",(function(){return cn}));var a={};n.r(a),n.d(a,"Slider",(function(){return pn})),n.d(a,"TabHost",(function(){return bn})),n.d(a,"SetNativeProps",(function(){return Sn})),n.d(a,"DynamicImport",(function(){return En})),n.d(a,"Localization",(function(){return An})),n.d(a,"Turbo",(function(){return Dn}));var i=n("../../packages/hippy-react/dist/index.js"),l=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),c=n.n(l),s=n("./node_modules/@babel/runtime/helpers/createClass.js"),u=n.n(s),f=n("./node_modules/@babel/runtime/helpers/inherits.js"),d=n.n(f),h=n("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),m=n.n(h),p=n("./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),y=n.n(p),g=n("./node_modules/react/index.js"),b=n.n(g),v=n("./node_modules/@babel/runtime/helpers/toConsumableArray.js"),w=n.n(v),x=n("./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");n("./node_modules/@babel/runtime/helpers/typeof.js");function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function T(e){return"/"===e.charAt(0)}function C(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}var E=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],o=t&&t.split("/")||[],a=e&&T(e),i=t&&T(t),l=a||i;if(e&&T(e)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var c=o[o.length-1];n="."===c||".."===c||""===c}else n=!1;for(var s=0,u=o.length;u>=0;u--){var f=o[u];"."===f?C(o,u):".."===f?(C(o,u),s++):s&&(C(o,u),s--)}if(!l)for(;s--;s)o.unshift("..");!l||""===o[0]||o[0]&&T(o[0])||o.unshift("");var d=o.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};var k="Invariant failed";function R(e,t){if(!e)throw new Error(k)}function A(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function V(e,t,n,r){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=S({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=E(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function I(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof r?r(a,o):o(!0):o(!1!==a)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}"undefined"==typeof window||!window.document||window.document.createElement;function j(e,t,n){return Math.min(Math.max(e,t),n)}function D(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,r=t.initialEntries,o=void 0===r?["/"]:r,a=t.initialIndex,i=void 0===a?0:a,l=t.keyLength,c=void 0===l?6:l,s=I();function u(e){S(y,e),y.length=y.entries.length,s.notifyListeners(y.location,y.action)}function f(){return Math.random().toString(36).substr(2,c)}var d=j(i,0,o.length-1),h=o.map((function(e){return V(e,void 0,"string"==typeof e?f():e.key||f())})),m=A;function p(e){var t=j(y.index+e,0,y.entries.length-1),r=y.entries[t];s.confirmTransitionTo(r,"POP",n,(function(e){e?u({action:"POP",location:r,index:t}):u()}))}var y={length:h.length,action:"POP",location:h[d],index:d,entries:h,createHref:m,push:function(e,t){var r=V(e,t,f(),y.location);s.confirmTransitionTo(r,"PUSH",n,(function(e){if(e){var t=y.index+1,n=y.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),u({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=V(e,t,f(),y.location);s.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(y.entries[y.index]=r,u({action:"REPLACE",location:r}))}))},go:p,goBack:function(){p(-1)},goForward:function(){p(1)},canGo:function(e){var t=y.index+e;return t>=0&&t<y.entries.length},block:function(e){return void 0===e&&(e=!1),s.setPrompt(e)},listen:function(e){return s.appendListener(e)}};return y}var O=n("./node_modules/mini-create-react-context/dist/esm/index.js"),P=n("./node_modules/path-to-regexp/index.js"),_=n.n(P);n("./node_modules/react-is/index.js");function L(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var B=n("./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"),M=n.n(B),z=function(e){var t=Object(O.a)();return t.displayName=e,t}("Router"),F=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(x.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return b.a.createElement(z.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(b.a.Component);var W=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=D(t.props),t}return Object(x.a)(t,e),t.prototype.render=function(){return b.a.createElement(F,{history:this.history,children:this.props.children})},t}(b.a.Component);b.a.Component;var H={},N=0;function K(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,a=void 0!==o&&o,i=n.strict,l=void 0!==i&&i,c=n.sensitive,s=void 0!==c&&c;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=H[n]||(H[n]={});if(r[e])return r[e];var o=[],a={regexp:_()(e,o,t),keys:o};return N<1e4&&(r[e]=a,N++),a}(n,{end:a,strict:l,sensitive:s}),o=r.regexp,i=r.keys,c=o.exec(e);if(!c)return null;var u=c[0],f=c.slice(1),d=e===u;return a&&!d?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:d,params:i.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var q=function(e){function t(){return e.apply(this,arguments)||this}return Object(x.a)(t,e),t.prototype.render=function(){var e=this;return b.a.createElement(z.Consumer,null,(function(t){t||R(!1);var n=e.props.location||t.location,r=S({},t,{location:n,match:e.props.computedMatch?e.props.computedMatch:e.props.path?K(n.pathname,e.props):t.match}),o=e.props,a=o.children,i=o.component,l=o.render;return Array.isArray(a)&&0===a.length&&(a=null),b.a.createElement(z.Provider,{value:r},r.match?a?"function"==typeof a?a(r):a:i?b.a.createElement(i,r):l?l(r):null:"function"==typeof a?a(r):null)}))},t}(b.a.Component);function U(e){return"/"===e.charAt(0)?e:"/"+e}function G(e,t){if(!e)return t;var n=U(e);return 0!==t.pathname.indexOf(n)?t:S({},t,{pathname:t.pathname.substr(n.length)})}function Q(e){return"string"==typeof e?e:A(e)}function Y(e){return function(){R(!1)}}function J(){}b.a.Component;b.a.Component;function X(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,r=L(t,["wrappedComponentRef"]);return b.a.createElement(z.Consumer,null,(function(t){return t||R(!1),b.a.createElement(e,S({},r,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,M()(n,e)}b.a.useContext;var Z=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),$=n.n(Z);function ee(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var te=function(e){d()(n,e);var t=ee(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).state={clickindex:0},r}return u()(n,[{key:"onClick",value:function(e){this.setState({clickindex:e})}},{key:"getRenderRow",value:function(e){var t=this,n=this.state.clickindex;return b.a.createElement(i.View,null,b.a.createElement(i.Focusable,{style:{height:80},onClick:function(){return t.onClick(e)},requestFocus:0===e,focusStyle:{backgroundColor:"red"},noFocusStyle:{backgroundColor:"blue"}},b.a.createElement(i.Text,{style:{color:"white"}},n===e?"我被点击了".concat(e):"没有被点击".concat(e))))}},{key:"render",value:function(){return b.a.createElement(i.ScrollView,null,this.getRenderRow(0),this.getRenderRow(1),this.getRenderRow(2),this.getRenderRow(3),this.getRenderRow(4),this.getRenderRow(5),this.getRenderRow(6),this.getRenderRow(7),this.getRenderRow(8),this.getRenderRow(9),this.getRenderRow(10),this.getRenderRow(11),this.getRenderRow(12),this.getRenderRow(13),this.getRenderRow(14),this.getRenderRow(15),this.getRenderRow(16),this.getRenderRow(17),this.getRenderRow(18))}}]),n}(b.a.Component),ne=n.p+"assets/defaultSource.jpg",re="https://static.res.qq.com/nav/3b202b2c44af478caf1319dece33fff2.png",oe=i.StyleSheet.create({container_style:{alignItems:"center"},image_style:{width:300,height:180,margin:16,borderColor:"#4c9afa",borderWidth:1,borderRadius:4},info_style:{marginTop:15,marginLeft:16,fontSize:16,color:"#4c9afa"}});function ae(){return b.a.createElement(i.ScrollView,{style:oe.container_style},b.a.createElement(i.Text,{style:oe.info_style},"Contain:"),b.a.createElement(i.Image,{style:[oe.image_style],resizeMode:i.Image.resizeMode.contain,defaultSource:ne,source:{uri:re},onLoadStart:function(){console.log("===image onloadStart===")},onLoad:function(){console.log("===image onLoad===")},onError:function(e){console.log("===image onError===",e)},onLoadEnd:function(){console.log("===image onLoadEnd===")}}),b.a.createElement(i.Text,{style:oe.info_style},"Cover:"),b.a.createElement(i.Image,{style:[oe.image_style],defaultSource:ne,source:{uri:re},resizeMode:i.Image.resizeMode.cover}),b.a.createElement(i.Text,{style:oe.info_style},"Center:"),b.a.createElement(i.Image,{style:[oe.image_style],defaultSource:ne,source:{uri:re},resizeMode:i.Image.resizeMode.center}),b.a.createElement(i.Text,{style:oe.info_style},"Cover GIF:"),b.a.createElement(i.Image,{style:[oe.image_style],resizeMode:i.Image.resizeMode.cover,defaultSource:ne,source:{uri:"http://img.qdaily.com/article/article_show/20180226115511QR0IMWjcBZmo8FaV.gif"},onLoadEnd:function(){console.log("gif onLoadEnd")}}))}var ie=n("./node_modules/@babel/runtime/helpers/asyncToGenerator.js"),le=n.n(ie),ce=n("./node_modules/@babel/runtime/helpers/assertThisInitialized.js"),se=n.n(ce),ue=n("./node_modules/@babel/runtime/regenerator/index.js"),fe=n.n(ue);function de(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var he=[{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5}],me=i.StyleSheet.create({container:{backgroundColor:"#fff",collapsable:!1},itemContainer:{padding:12},separatorLine:{marginLeft:12,marginRight:12,height:1,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}});function pe(e){var t=e.index;return b.a.createElement(i.View,{style:me.container,onClickCapture:function(e){console.log("onClickCapture style1",e.target.nodeId,e.currentTarget.nodeId)},onTouchDown:function(e){return e.stopPropagation(),console.log("onTouchDown style1",e.target.nodeId,e.currentTarget.nodeId),!1},onClick:function(e){return console.log("click style1",e.target.nodeId,e.currentTarget.nodeId),!1}},b.a.createElement(i.Text,{numberOfLines:1},"".concat(t,": Style 1 UI")))}function ye(e){var t=e.index;return b.a.createElement(i.View,{style:me.container},b.a.createElement(i.Text,{numberOfLines:1},"".concat(t,": Style 2 UI")))}function ge(e){var t=e.index;return b.a.createElement(i.View,{style:me.container},b.a.createElement(i.Text,{numberOfLines:1},"".concat(t,": Style 5 UI")))}var be=function(e){d()(r,e);var t,n=de(r);function r(e){var t;return c()(this,r),(t=n.call(this,e)).state={dataSource:he,fetchingDataFlag:!1},t.fetchTimes=0,t.delText="Delete",t.mockFetchData=t.mockFetchData.bind(se()(t)),t.getRenderRow=t.getRenderRow.bind(se()(t)),t.onEndReached=t.onEndReached.bind(se()(t)),t.getRowType=t.getRowType.bind(se()(t)),t.getRowKey=t.getRowKey.bind(se()(t)),t.getRowStyle=t.getRowStyle.bind(se()(t)),t.onDelete=t.onDelete.bind(se()(t)),t.onAppear=t.onAppear.bind(se()(t)),t.onDisappear=t.onDisappear.bind(se()(t)),t.onWillAppear=t.onWillAppear.bind(se()(t)),t.onWillDisappear=t.onWillDisappear.bind(se()(t)),t.rowShouldSticky=t.rowShouldSticky.bind(se()(t)),t}return u()(r,[{key:"onDelete",value:function(e){var t=e.index,n=this.state.dataSource.filter((function(e,n){return t!==n}));this.setState({dataSource:n})}},{key:"onEndReached",value:(t=le()(fe.a.mark((function e(){var t,n,r,o,a;return fe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.state,n=t.dataSource,!t.fetchingDataFlag){e.next=3;break}return e.abrupt("return");case 3:return this.setState({fetchingDataFlag:!0,dataSource:n.concat([{style:100}])}),e.next=6,this.mockFetchData();case 6:r=e.sent,(o=n[n.length-1])&&100===o.style&&n.pop(),a=n.concat(r),this.setState({dataSource:a});case 11:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"onAppear",value:function(e){console.log("onAppear",e)}},{key:"onDisappear",value:function(e){console.log("onDisappear",e)}},{key:"onWillAppear",value:function(e){console.log("onWillAppear",e)}},{key:"onWillDisappear",value:function(e){console.log("onWillDisappear",e)}},{key:"rowShouldSticky",value:function(e){return 2===e}},{key:"getRowType",value:function(e){return this.state.dataSource[e].style}},{key:"getRowStyle",value:function(){return{width:100,height:50}}},{key:"getRowKey",value:function(e){return"row-".concat(e)}},{key:"getRenderRow",value:function(e){var t=this.state.dataSource,n=null,r=t[e],o=t.length===e+1;switch(r.style){case 1:n=b.a.createElement(pe,{index:e});break;case 2:n=b.a.createElement(ye,{index:e});break;case 5:n=b.a.createElement(ge,{index:e});break;case 100:n=b.a.createElement(i.Text,{style:me.loading},"Loading now...")}return b.a.createElement(i.View,{style:me.container,onClickCapture:function(e){console.log("onClickCapture style outer",e.target.nodeId,e.currentTarget.nodeId)},onTouchDown:function(e){return console.log("onTouchDown style outer",e.target.nodeId,e.currentTarget.nodeId),!1},onClick:function(e){return console.log("click style outer",e.target.nodeId,e.currentTarget.nodeId),!1}},b.a.createElement(i.View,{style:me.itemContainer},n),o?null:b.a.createElement(i.View,{style:me.separatorLine}))}},{key:"mockFetchData",value:function(){var e=this;return new Promise((function(t){setTimeout((function(){return e.setState({fetchingDataFlag:!1}),e.fetchTimes+=1,e.fetchTimes>=100?t([]):t(he)}),600)}))}},{key:"render",value:function(){var e=this.state.dataSource;return b.a.createElement(i.ListView,{onTouchDown:function(e){console.log("onTouchDown ListView",e.target.nodeId,e.currentTarget.nodeId)},onClickCapture:function(e){console.log("onClickCapture listview",e.target.nodeId,e.currentTarget.nodeId)},onClick:function(e){return console.log("click listview",e.target.nodeId,e.currentTarget.nodeId),!0},bounces:!0,overScrollEnabled:!0,horizontal:void 0,style:{flex:1,backgroundColor:"#ffffff"},numberOfRows:e.length,renderRow:this.getRenderRow,onEndReached:this.onEndReached,getRowType:this.getRowType,onDelete:this.onDelete,delText:this.delText,editable:!0,getRowKey:this.getRowKey,initialListSize:15,rowShouldSticky:this.rowShouldSticky,onAppear:this.onAppear,onDisappear:this.onDisappear,onWillAppear:this.onWillAppear,onWillDisappear:this.onWillDisappear})}}]),r}(b.a.Component);function ve(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var we="#4c9afa",xe="#f44837",Se="#fff",Te=i.StyleSheet.create({container:{flex:1,flexDirection:"row",justifyContent:"center"},buttonView:{borderColor:we,borderWidth:2,borderRadius:8,justifyContent:"center",alignItems:"center",width:250,height:50,marginTop:30},buttonText:{fontSize:20,color:we,textAlign:"center",textAlignVertical:"center"}}),Ce=function(e){d()(n,e);var t=ve(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).state={visible:!1,press:!1},r.show=r.show.bind(se()(r)),r.hide=r.hide.bind(se()(r)),r}return u()(n,[{key:"feedback",value:function(e){this.setState({press:"in"===e})}},{key:"show",value:function(){this.setState({visible:!0})}},{key:"hide",value:function(){this.setState({visible:!1})}},{key:"render",value:function(){var e=this,t=this.state,n=t.press,r=t.visible;return b.a.createElement(i.ScrollView,null,b.a.createElement(i.View,{style:Te.container},b.a.createElement(i.View,{onPressIn:function(){return e.feedback("in")},onPressOut:function(){return e.feedback.bind("out")},onClick:this.show,style:[Te.buttonView,{borderColor:we,opacity:n?.5:1}]},b.a.createElement(i.Text,{style:[Te.buttonText,{color:we}]},"点击弹出浮层"))),b.a.createElement(i.Modal,{transparent:!0,animationType:"slide_fade",visible:r,onRequestClose:function(){},supportedOrientations:["portrait"]},b.a.createElement(i.View,{style:{flex:1,flexDirection:"row",justifyContent:"center"}},b.a.createElement(i.View,{onClick:this.hide,style:{width:200,height:200,backgroundColor:xe,marginTop:300,flexDirection:"row",justifyContent:"center"}},b.a.createElement(i.Text,{style:{color:Se,fontSize:22,marginTop:80}},"点击关闭浮层")))))}}]),n}(b.a.Component),Ee="http://res.imtt.qq.com/tps/expo-listview-1.jpg",ke={style:1,itemBean:{title:"非洲总统出行真大牌，美制武装直升机和中国潜艇为其保驾",picList:[Ee,Ee,Ee],subInfo:["三图评论","11评"]}},Re={style:2,itemBean:{title:"彼得·泰尔：认知未来是投资人的谋生之道",picUrl:"http://res.imtt.qq.com/tps/expo-listview-2.jpg",subInfo:["左文右图"]}},Ae={style:5,itemBean:{title:"愤怒！美官员扬言：“不让中国拿走南海的岛屿，南海岛礁不属于中国”？",picUrl:"http://res.imtt.qq.com/tps/expo-listview-3.jpg",subInfo:["六眼神魔  5234播放"]}},Ve=[Ae,ke,Re,ke,Re,ke,Re,Ae,ke],Ie=n("./node_modules/@babel/runtime/helpers/extends.js"),je=n.n(Ie),De={getScreenWidth:function(){var e=i.Dimensions.get("screen").width,t=i.Dimensions.get("screen").height,n=e>t?t:e;return Math.floor(n)},uniqueArray:function(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t},isiPhoneX:function(){var e=!1;return"android"===i.Platform.OS||i.Dimensions.get("window").height>=812&&i.PixelRatio.get()>=2&&(e=!0),e}},Oe=(De.getScreenWidth()-24-12)/3,Pe=Math.floor(Oe/1.35),_e=i.StyleSheet.create({imageContainer:{flexDirection:"row",justifyContent:"center",height:Pe,marginTop:8},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},image:{width:Oe,height:Pe},title:{fontSize:"android"===i.Platform.OS?17:18,lineHeight:24,color:"#242424"},tagLine:{marginTop:8,height:20,flexDirection:"row",justifyContent:"flex-start"}});function Le(e){var t=e.itemBean,n=t.title,r=t.picList,o=e.itemBean.subInfo,a=null;if(o&&o.length){var l=(o=De.uniqueArray(o)).join(" ");a=b.a.createElement(i.Text,{style:_e.normalText,numberOfLines:1},l)}return b.a.createElement(i.View,je()({},e,{style:{collapsable:!1}}),b.a.createElement(i.Text,{style:[_e.title],numberOfLines:2,enableScale:!0},n),b.a.createElement(i.View,{style:_e.imageContainer},b.a.createElement(i.Image,{style:_e.image,source:{uri:r[0]},resizeMode:i.Image.resizeMode.cover}),b.a.createElement(i.Image,{style:[_e.image,{marginLeft:6,marginRight:6}],source:{uri:r[1]},resizeMode:i.Image.resizeMode.cover}),b.a.createElement(i.Image,{style:_e.image,source:{uri:r[2]},resizeMode:i.Image.resizeMode.cover})),a?b.a.createElement(i.View,{style:_e.tagLine},a):null)}var Be=De.getScreenWidth()-24,Me=Math.floor(Be-12)/3,ze=Math.floor(Me/1.35),Fe=i.StyleSheet.create({container:{flexDirection:"row",justifyContent:"space-between",height:ze},leftContainer:{flex:1,flexDirection:"column",justifyContent:"center",marginRight:8},imageContainer:{width:Me,height:ze},image:{width:Me,height:ze},title:{fontSize:"android"===i.Platform.OS?17:18,lineHeight:24},tagLine:{marginTop:8,height:20,flexDirection:"row",justifyContent:"flex-start"},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}});function We(e){if("undefined"===e)return null;var t=e.itemBean;if(!t)return null;var n=null,r=t.title,o=t.picUrl,a=t.subInfo;if(a&&a.length){var l=(a=De.uniqueArray(a)).join(" ");n=b.a.createElement(i.Text,{style:Fe.normalText,numberOfLines:1},l)}return b.a.createElement(i.View,je()({},e,{style:Fe.container}),b.a.createElement(i.View,{style:Fe.leftContainer},b.a.createElement(i.Text,{style:Fe.title,numberOfLines:2,enableScale:!0},r),n?b.a.createElement(i.View,{style:Fe.tagLine},n):null),b.a.createElement(i.View,{style:Fe.imageContainer},b.a.createElement(i.Image,{resizeMode:i.Image.resizeMode.cover,style:Fe.image,source:{uri:o}})))}var He=De.getScreenWidth()-24,Ne=Math.floor(188*He/336),Ke=i.StyleSheet.create({text:{fontSize:"android"===i.Platform.OS?17:18,lineHeight:24,color:"#242424"},playerView:{marginTop:8,alignItems:"center",width:He,height:Ne,alignSelf:"center"},image:{width:He,height:Ne},normalText:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},tagLine:{marginTop:8,flexDirection:"row",justifyContent:"space-between",alignItems:"center"}});function qe(e){if("undefined"===e)return null;var t=e.itemBean;if(!t)return null;var n=t.title,r=t.picUrl,o=t.subInfo,a=null;if(o&&o.length){var l=(o=De.uniqueArray(o)).join(" ");a=b.a.createElement(i.Text,{style:Ke.normalText,numberOfLines:1},l)}return b.a.createElement(i.View,e,b.a.createElement(i.Text,{style:Ke.text,numberOfLines:2,enableScale:!0},n),b.a.createElement(i.View,{style:Ke.playerView},b.a.createElement(i.Image,{style:Ke.image,source:{uri:r},resizeMode:i.Image.resizeMode.cover})),a?b.a.createElement(i.View,{style:Ke.tagLine},a):null)}function Ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var Ge=i.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},spliter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"}}),Qe=function(e){d()(o,e);var t,n,r=Ue(o);function o(e){var t;return c()(this,o),(t=r.call(this,e)).state={dataSource:[],loadingState:"正在加载..."},t.fetchTimes=0,t.mockFetchData=t.mockFetchData.bind(se()(t)),t.onRefresh=t.onRefresh.bind(se()(t)),t.getRefresh=t.getRefresh.bind(se()(t)),t.getRenderRow=t.getRenderRow.bind(se()(t)),t.onEndReached=t.onEndReached.bind(se()(t)),t.getRowType=t.getRowType.bind(se()(t)),t.getRowKey=t.getRowKey.bind(se()(t)),t}return u()(o,[{key:"componentDidMount",value:(n=le()(fe.a.mark((function e(){var t;return fe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mockFetchData();case 2:t=e.sent,this.setState({dataSource:t});case 4:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"onEndReached",value:(t=le()(fe.a.mark((function e(){var t,n,r,o,a;return fe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.state,n=t.dataSource,!t.fetchingDataFlag){e.next=3;break}return e.abrupt("return");case 3:return this.setState({fetchingDataFlag:!0,dataSource:n.concat([{style:100}])}),e.next=6,this.mockFetchData();case 6:r=e.sent,(o=n[n.length-1])&&100===o.style&&n.pop(),a=n.concat(r),this.setState({dataSource:a});case 11:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"onRefresh",value:function(){var e=this;setTimeout(le()(fe.a.mark((function t(){var n;return fe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.mockFetchData();case 2:n=t.sent,e.setState({dataSource:n}),e.refresh.refreshComplected();case 5:case"end":return t.stop()}}),t)}))),1e3)}},{key:"onClickItem",value:function(e){console.log("item: ".concat(e," is clicked.."))}},{key:"getRenderRow",value:function(e){var t=this,n=this.state,r=n.dataSource,o=n.loadingState,a=null,l=r[e],c=r.length===e+1;switch(l.style){case 1:a=b.a.createElement(Le,{itemBean:l.itemBean,onClick:function(){return t.onClickItem(e)}});break;case 2:a=b.a.createElement(We,{itemBean:l.itemBean,onClick:function(){return t.onClickItem(e)}});break;case 5:a=b.a.createElement(qe,{itemBean:l.itemBean,onClick:function(){return t.onClickItem(e)}});break;case 100:a=b.a.createElement(i.Text,{style:Ge.loading},o)}return b.a.createElement(i.View,{style:Ge.container},b.a.createElement(i.View,{style:Ge.itemContainer},a),c?null:b.a.createElement(i.View,{style:Ge.spliter}))}},{key:"getRowType",value:function(e){return this.state.dataSource[e].style}},{key:"getRowKey",value:function(e){return"row-".concat(e)}},{key:"getRefresh",value:function(){return b.a.createElement(i.View,{style:{flex:1,height:30}},b.a.createElement(i.Text,{style:{flex:1,textAlign:"center"}},"下拉刷新中..."))}},{key:"mockFetchData",value:function(){var e=this;return new Promise((function(t){setTimeout((function(){return e.setState({fetchingDataFlag:!1}),e.fetchTimes+=1,e.fetchTimes>=50?t([]):t(Ve)}),600)}))}},{key:"render",value:function(){var e=this,t=this.state.dataSource;return b.a.createElement(i.RefreshWrapper,{ref:function(t){e.refresh=t},style:{flex:1},onRefresh:this.onRefresh,bounceTime:100,getRefresh:this.getRefresh},b.a.createElement(i.ListView,{style:{flex:1,backgroundColor:"#ffffff"},numberOfRows:t.length,renderRow:this.getRenderRow,onEndReached:this.onEndReached,getRowType:this.getRowType,getRowKey:this.getRowKey}))}}]),o}(b.a.Component);function Ye(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var Je=i.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},splitter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},pullContainer:{height:60,backgroundColor:"green"},pullContent:{lineHeight:60,color:"white",height:60,textAlign:"center"}}),Xe=function(e){d()(a,e);var t,n,r,o=Ye(a);function a(e){var t;return c()(this,a),(t=o.call(this,e)).state={dataSource:[],pullingText:"继续下拉触发刷新",loadingState:"正在加载..."},t.fetchTimes=0,t.mockFetchData=t.mockFetchData.bind(se()(t)),t.renderRow=t.renderRow.bind(se()(t)),t.getRowType=t.getRowType.bind(se()(t)),t.getRowKey=t.getRowKey.bind(se()(t)),t.renderPullHeader=t.renderPullHeader.bind(se()(t)),t.onEndReached=t.onEndReached.bind(se()(t)),t.onHeaderReleased=t.onHeaderReleased.bind(se()(t)),t.onHeaderPulling=t.onHeaderPulling.bind(se()(t)),t}return u()(a,[{key:"componentDidMount",value:(r=le()(fe.a.mark((function e(){var t;return fe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mockFetchData();case 2:t=e.sent,this.setState({dataSource:t}),this.listView.collapsePullHeader();case 5:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"onEndReached",value:(n=le()(fe.a.mark((function e(){var t,n,r,o;return fe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.state.dataSource,!this.loadMoreDataFlag){e.next=3;break}return e.abrupt("return");case 3:return this.loadMoreDataFlag=!0,this.setState({dataSource:t.concat([{style:100}])}),n=[],e.prev=6,e.next=9,this.mockFetchData();case 9:n=e.sent,e.next=14;break;case 12:e.prev=12,e.t0=e.catch(6);case 14:(r=t[t.length-1])&&100===r.style&&t.pop(),o=t.concat(n),this.loadMoreDataFlag=!1,this.setState({dataSource:o});case 19:case"end":return e.stop()}}),e,this,[[6,12]])}))),function(){return n.apply(this,arguments)})},{key:"onHeaderReleased",value:(t=le()(fe.a.mark((function e(){var t,n=this;return fe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.fetchingDataFlag){e.next=2;break}return e.abrupt("return");case 2:return this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.setState({pullingText:"刷新数据中，请稍等，2秒后自动收起"}),t=[],e.prev=6,e.next=9,this.mockFetchData();case 9:t=e.sent,e.next=14;break;case 12:e.prev=12,e.t0=e.catch(6);case 14:this.fetchingDataFlag=!1,this.setState({dataSource:t},(function(){n.listView.collapsePullHeader(),n.fetchTimes=0}));case 16:case"end":return e.stop()}}),e,this,[[6,12]])}))),function(){return t.apply(this,arguments)})},{key:"onHeaderPulling",value:function(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>Je.pullContent.height?this.setState({pullingText:"松手，即可触发刷新"}):this.setState({pullingText:"继续下拉，触发刷新"}))}},{key:"onClickItem",value:function(e,t){console.log("item: ".concat(e," is clicked.."),t.target.nodeId,t.currentTarget.nodeId)}},{key:"getRowType",value:function(e){return this.state.dataSource[e].style}},{key:"getRowKey",value:function(e){return"row-".concat(e)}},{key:"mockFetchData",value:function(){var e=this;return new Promise((function(t){setTimeout((function(){e.fetchTimes+=1;var n=[];return e.fetchTimes<50&&(n=Ve),t(n)}),600)}))}},{key:"renderPullHeader",value:function(){var e=this.state.pullingText;return b.a.createElement(i.View,{style:Je.pullContainer},b.a.createElement(i.Text,{style:Je.pullContent},e))}},{key:"renderRow",value:function(e){var t=this,n=this.state,r=n.dataSource,o=n.loadingState,a=null,l=r[e],c=r.length===e+1;switch(l.style){case 1:a=b.a.createElement(Le,{itemBean:l.itemBean,onClick:function(n){return t.onClickItem(e,n)}});break;case 2:a=b.a.createElement(We,{itemBean:l.itemBean,onClick:function(n){return t.onClickItem(e,n)}});break;case 5:a=b.a.createElement(qe,{itemBean:l.itemBean,onClick:function(n){return t.onClickItem(e,n)}});break;case 100:a=b.a.createElement(i.Text,{style:Je.loading},o)}return b.a.createElement(i.View,{style:Je.container},b.a.createElement(i.View,{style:Je.itemContainer},a),c?null:b.a.createElement(i.View,{style:Je.splitter}))}},{key:"render",value:function(){var e=this,t=this.state.dataSource;return b.a.createElement(i.ListView,{onClick:function(e){return console.log("ListView",e.target.nodeId,e.currentTarget.nodeId)},ref:function(t){e.listView=t},style:{flex:1,backgroundColor:"#ffffff"},numberOfRows:t.length,getRowType:this.getRowType,getRowKey:this.getRowKey,renderRow:this.renderRow,renderPullHeader:this.renderPullHeader,onEndReached:this.onEndReached,onHeaderReleased:this.onHeaderReleased,onHeaderPulling:this.onHeaderPulling})}}]),a}(b.a.Component),Ze=i.StyleSheet.create({itemStyle:{width:100,height:100,lineHeight:100,borderWidth:1,borderColor:"#4c9afa",fontSize:80,margin:20,color:"#4c9afa",textAlign:"center"},verticalScrollView:{height:300,width:140,margin:20,borderColor:"#eee",borderWidth:1},itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10}});function $e(){return b.a.createElement(i.ScrollView,null,b.a.createElement(i.View,{style:Ze.itemTitle},b.a.createElement(i.Text,null,"Horizontal ScrollView")),b.a.createElement(i.View,null,b.a.createElement(i.ScrollView,{horizontal:!0,bounces:!0,showsHorizontalScrollIndicator:!1,showScrollIndicator:!1},b.a.createElement(i.Text,{style:Ze.itemStyle},"A"),b.a.createElement(i.Text,{style:Ze.itemStyle},"B"),b.a.createElement(i.Text,{style:Ze.itemStyle},"C"),b.a.createElement(i.Text,{style:Ze.itemStyle},"D"),b.a.createElement(i.Text,{style:Ze.itemStyle},"E"),b.a.createElement(i.Text,{style:Ze.itemStyle},"F"),b.a.createElement(i.Text,{style:Ze.itemStyle},"A"))),b.a.createElement(i.View,{style:Ze.itemTitle},b.a.createElement(i.Text,null,"Vertical ScrollView")),b.a.createElement(i.ScrollView,{bounces:!0,horizontal:!1,style:Ze.verticalScrollView,showScrollIndicator:!1,showsVerticalScrollIndicator:!1},b.a.createElement(i.Text,{style:Ze.itemStyle},"A"),b.a.createElement(i.Text,{style:Ze.itemStyle},"B"),b.a.createElement(i.Text,{style:Ze.itemStyle},"C"),b.a.createElement(i.Text,{style:Ze.itemStyle},"D"),b.a.createElement(i.Text,{style:Ze.itemStyle},"E"),b.a.createElement(i.Text,{style:Ze.itemStyle},"F"),b.a.createElement(i.Text,{style:Ze.itemStyle},"A")))}function et(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var tt=i.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},itemContent:{alignItems:"flex-start",justifyContent:"center",height:100,borderWidth:1,borderRadius:2,borderColor:"#e0e0e0",backgroundColor:"#ffffff",padding:10},normalText:{fontSize:14,lineHeight:18,color:"black"},button:{width:100,height:24,borderColor:"blue",borderWidth:1},buttonText:{width:100,lineHeight:24,textAlign:"center"},customFont:{color:"#0052d9",fontSize:32,fontFamily:"TTTGB"}}),nt=0,rt=function(e){d()(n,e);var t=et(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).state={fontSize:16,textShadowColor:"grey",textShadowOffset:{x:1,y:1}},r.incrementFontSize=r.incrementFontSize.bind(se()(r)),r.decrementFontSize=r.decrementFontSize.bind(se()(r)),r.androidNestedTextWrapperStyle={height:100,lineHeight:100},r}return u()(n,[{key:"incrementFontSize",value:function(){var e=this.state.fontSize;24!==e&&this.setState({fontSize:e+1})}},{key:"decrementFontSize",value:function(){var e=this.state.fontSize;6!==e&&this.setState({fontSize:e-1})}},{key:"render",value:function(){var e=this,t=this.state,n=t.fontSize,r=t.textShadowColor,o=t.textShadowOffset,a=function(e){return b.a.createElement(i.View,{style:tt.itemTitle},b.a.createElement(i.Text,{style:!0},e))};return b.a.createElement(i.ScrollView,{style:{padding:10}},a("shadow"),b.a.createElement(i.View,{style:[tt.itemContent],onClick:function(){var t="red",n={x:10,y:1};nt%2==1&&(t="grey",n={x:1,y:1}),nt+=1,e.setState({textShadowColor:t,textShadowOffset:n})}},b.a.createElement(i.Text,{style:[tt.normalText,{color:"#242424",textShadowOffset:o,textShadowRadius:3,textShadowColor:r}]},"Text shadow is grey with radius 3 and offset 1")),a("color"),b.a.createElement(i.View,{style:[tt.itemContent]},b.a.createElement(i.Text,{style:[tt.normalText,{color:"#242424"}]},"Text color is black"),b.a.createElement(i.Text,{style:[tt.normalText,{color:"blue"}]},"Text color is blue"),b.a.createElement(i.Text,{style:[tt.normalText,{color:"rgb(228,61,36)"}]},"This is red")),a("fontSize"),b.a.createElement(i.View,{style:tt.itemContent},b.a.createElement(i.Text,{style:[tt.normalText,{fontSize:n}]},"Text fontSize is ".concat(n)),b.a.createElement(i.View,{style:tt.button,onClick:this.incrementFontSize},b.a.createElement(i.Text,{style:tt.buttonText},"放大字体")),b.a.createElement(i.View,{style:tt.button,onClick:this.decrementFontSize},b.a.createElement(i.Text,{style:tt.buttonText},"缩小字体"))),a("fontStyle"),b.a.createElement(i.View,{style:tt.itemContent},b.a.createElement(i.Text,{style:[tt.normalText,{fontStyle:"normal"}]},"Text fontStyle is normal"),b.a.createElement(i.Text,{style:[tt.normalText,{fontStyle:"italic"}]},"Text fontStyle is italic")),a("numberOfLines"),b.a.createElement(i.View,{style:tt.itemContent},b.a.createElement(i.Text,{numberOfLines:1,style:tt.normalText},"just one line just one line just one line just one line just one line just one line just one line just one line"),b.a.createElement(i.Text,{numberOfLines:2,style:tt.normalText},"just two lines just two lines just two lines just two lines just two lines just two lines just two lines just two lines just two lines just two lines just two lines just two lines just two lines just two lines just two lines just two lines")),a("textDecoration"),b.a.createElement(i.View,{style:tt.itemContent},b.a.createElement(i.Text,{numberOfLines:1,style:[tt.normalText,{textDecorationLine:"underline",textDecorationStyle:"dotted"}]},"underline"),b.a.createElement(i.Text,{numberOfLines:1,style:[tt.normalText,{textDecorationLine:"line-through",textDecorationColor:"red"}]},"line-through")),a("Nest Text"),b.a.createElement(i.View,{style:tt.itemContent},b.a.createElement(i.Text,{numberOfLines:3},b.a.createElement(i.Text,{numberOfLines:3,style:[tt.normalText,{color:"#4c9afa"}]},"#SpiderMan#"),b.a.createElement(i.Text,{numberOfLines:3,style:tt.normalText},"Hello world, I am a spider man and I have five friends in other universe."))),a("Custom font"),b.a.createElement(i.View,{style:tt.itemContent},b.a.createElement(i.Text,{numberOfLines:1,style:tt.customFont},"Hippy 跨端框架")),a("Text Nested"),b.a.createElement(i.View,{style:tt.itemContent},b.a.createElement(i.Text,{style:"android"===i.Platform.OS?this.androidNestedTextWrapperStyle:{}},b.a.createElement(i.Text,{numberOfLines:1,style:tt.normalText},"后面有张图片"),b.a.createElement(i.Image,{style:{width:70,height:35},source:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAAtCAMAAABmgJ64AAAAOVBMVEX/Rx8AAAD/QiL/Tif/QyH/RR//QiH/QiP/RCD/QSL/Qxz/QyH/QiL/QiD/QyL/QiL/QiH/QyH/QiLwirLUAAAAEnRSTlMZAF4OTC7DrWzjI4iietrRk0EEv/0YAAAB0UlEQVRYw72Y0Y6sIAxAKwUFlFH7/x97izNXF2lN1pU5D800jD2hJAJCdwYZuAUyVbmToKh903IhQHgErAVH+ccV0KI+G2oBPMxJgPA4WAigAT8F0IRDgNAE3ARyfeMFDGSc3YHVFkTBAHKDAgkEyHjacae/GTjxFqAo8NbakXrL9DRy9B+BCQwRcXR9OBKmEuAmAFFgcy0agBnIc1xZsMPOI5loAoUsQFmQjDEL9YbpaeGYBMGRKKAuqFEFL/JXApCw/zFEZk9qgbLGBx0gXLISxT25IUBREEgh1II1fph/IViGnZnCcDDVAgfgVg6gCy6ZaClySbDQpAl04vCGaB4+xGcFRK8CLvW0IBb5bQGqAlNwU4C6oEIVTLTcmoEr0AWcpKsZ/H0NAtkLQffnFjkOqiC/TTWBL9AFCwXQBHgI7rXImMgjCZwFa50s6DRBXyALmIECuMASiWNPFgRTgSJwM+XW8PDCmbwndzdaNL8FMYXPNjASDVChnIvWlBI/MKadPV952HszbmXtRERhhQ0vGFA52SVSSVt7MjHvxfRK8cdTpqovn02dUcltMrwiKf+wQ1FxXKCk9en6e/eDNnP44h2thQEb35O/etNv/q3iHza+KuhqqhZAAAAAAElFTkSuQmCC"}}),b.a.createElement(i.Text,{numberOfLines:1,style:tt.customFont},"前面有张图片"))))}}]),n}(b.a.Component);function ot(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var at=i.StyleSheet.create({container_style:{padding:10},input_style:{width:300,marginVertical:10,placeholderTextColor:"#aaaaaa",fontSize:16,color:"#242424",height:30,lineHeight:30},itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},button:{width:200,borderColor:"#4c9afa",borderWidth:1,marginTop:5,marginBottom:5}}),it=function(e){d()(n,e);var t=ot(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).state={textContent:""},r.changeInputContent=r.changeInputContent.bind(se()(r)),r.focus=r.focus.bind(se()(r)),r.blur=r.blur.bind(se()(r)),r}return u()(n,[{key:"changeInputContent",value:function(){this.setState({textContent:"当前时间毫秒：".concat(Date.now())})}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"render",value:function(){var e=this,t=this.state.textContent,n=function(e){return b.a.createElement(i.View,{style:at.itemTitle},b.a.createElement(i.Text,null,e))};return b.a.createElement(i.ScrollView,{style:at.container_style},n("text"),b.a.createElement(i.TextInput,{ref:function(t){e.input=t},style:at.input_style,placeholder:"text",defaultValue:t}),b.a.createElement(i.View,{style:at.button,onClick:this.changeInputContent},b.a.createElement(i.Text,null,"点击改变输入框内容")),b.a.createElement(i.View,{style:at.button,onClick:this.focus},b.a.createElement(i.Text,null,"Focus")),b.a.createElement(i.View,{style:at.button,onClick:this.blur},b.a.createElement(i.Text,null,"Blur")),n("numeric"),b.a.createElement(i.TextInput,{style:at.input_style,keyboardType:"numeric",placeholder:"numeric"}),n("phone-pad"),b.a.createElement(i.TextInput,{style:at.input_style,keyboardType:"phone-pad",placeholder:"phone-pad"}),n("password"),b.a.createElement(i.TextInput,{style:at.input_style,keyboardType:"password",placeholder:"Password",multiline:!1}),n("maxLength"),b.a.createElement(i.TextInput,{caretColor:"yellow",style:at.input_style,placeholder:"maxLength=5",maxLength:5}))}}]),n}(g.Component),lt=n.p+"assets/defaultSource.jpg",ct=i.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},rectangle:{width:160,height:80,marginVertical:10},bigRectangle:{width:200,height:100,borderColor:"#eee",borderWidth:1,padding:10,marginVertical:10},smallRectangle:{width:40,height:40,borderRadius:10}});function st(){var e=function(e){return b.a.createElement(i.View,{style:ct.itemTitle},b.a.createElement(i.Text,null,e))};return b.a.createElement(i.ScrollView,{style:{padding:10}},e("backgroundColor"),b.a.createElement(i.View,{style:[ct.rectangle,{backgroundColor:"#4c9afa"}]}),e("backgroundImage"),b.a.createElement(i.View,{style:[ct.rectangle,{alignItems:"center",justifyContent:"center",marginTop:20,backgroundImage:lt}],accessible:!0,accessibilityLabel:"背景图",accessibilityRole:"image",accessibilityState:{disabled:!1,selected:!0,checked:!1,expanded:!1,busy:!0},accessibilityValue:{min:1,max:10,now:5,text:"middle"}},b.a.createElement(i.Text,{style:{color:"white"}},"背景图")),e("backgroundImage linear-gradient"),b.a.createElement(i.View,{style:[ct.rectangle,{alignItems:"center",justifyContent:"center",marginTop:20,borderWidth:2,borderColor:"black",borderRadius:2,backgroundImage:"linear-gradient(30deg, blue 10%, yellow 40%, red 50%);"}]},b.a.createElement(i.Text,{style:{color:"white"}},"渐变色")),e("border props"),b.a.createElement(i.View,{style:[ct.rectangle,{borderColor:"#242424",borderRadius:4,borderWidth:1}]}),e("flex props"),b.a.createElement(i.View,{style:[ct.bigRectangle,{flexDirection:"row",alignItems:"center",justifyContent:"space-between"}]},b.a.createElement(i.View,{style:[ct.smallRectangle,{backgroundColor:"yellow"}]}),b.a.createElement(i.View,{style:[ct.smallRectangle,{backgroundColor:"blue"}]}),b.a.createElement(i.View,{style:[ct.smallRectangle,{backgroundColor:"green"}]})))}var ut=i.StyleSheet.create({pageContainer:{alignItems:"center",justifyContent:"center",flex:1,paddingTop:20},mainRec:{backgroundColor:"#4c9afaAA",width:256,height:48,marginBottom:10,marginTop:156},title:{verticalAlign:"middle",lineHeight:48,height:48,fontSize:16,color:"white",alignSelf:"center"},shapeBase:{width:128,height:128,backgroundColor:"#4c9afa"},square:{},circle:{borderRadius:64},triangle:{borderTopWidth:0,borderRightWidth:70,borderBottomWidth:128,borderLeftWidth:70,borderTopColor:"transparent",borderRightColor:"transparent",borderLeftColor:"transparent",borderBottomColor:"#4c9afa",backgroundColor:"transparent",width:140}}),ft="SquarePagerView",dt="TrianglePagerView",ht="CirclePagerView";function mt(e,t){var n=function(t){return b.a.createElement(i.View,{style:ut.pageContainer,key:t},b.a.createElement(i.View,{style:[ut.shapeBase,e],key:"shape"}),b.a.createElement(i.View,{style:ut.mainRec,key:"title"},t?b.a.createElement(i.Text,{style:ut.title},t):null))};return n.displayName=t,n}var pt=mt(ut.square,ft),yt=mt(ut.triangle,dt),gt=mt(ut.circle,ht);function bt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var vt=i.StyleSheet.create({dotContainer:{position:"absolute",bottom:10,left:0,right:0,flexDirection:"row",alignItems:"center",justifyContent:"center"},dot:{width:6,height:6,borderRadius:3,margin:3,backgroundColor:"#BBBBBB"},selectDot:{backgroundColor:"#000000"},container:{height:500},buttonContainer:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12},button:{width:120,height:36,backgroundColor:"#4c9afa",borderRadius:18,alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,color:"#fff"}}),wt=function(e){d()(n,e);var t=bt(n);function n(e){var r;return c()(this,n),r=t.call(this,e),$()(se()(r),"state",{selectedIndex:0}),r.onPageSelected=r.onPageSelected.bind(se()(r)),r}return u()(n,[{key:"onPageSelected",value:function(e){console.log("onPageSelected",e.position),this.setState({selectedIndex:e.position})}},{key:"onPageScrollStateChanged",value:function(e){console.log("onPageScrollStateChanged===",e)}},{key:"onPageScroll",value:function(e){var t=e.offset,n=e.position;console.log("onPageScroll",t,n)}},{key:"render",value:function(){var e=this,t=this.state.selectedIndex;return b.a.createElement(i.View,{style:{flex:1,backgroundColor:"#ffffff"}},b.a.createElement(i.View,{style:vt.buttonContainer},b.a.createElement(i.View,{style:vt.button,onClick:function(){e.viewpager.setPage(2)}},b.a.createElement(i.Text,{style:vt.buttonText},"动效滑到第3页")),b.a.createElement(i.View,{style:vt.button,onClick:function(){return e.viewpager.setPageWithoutAnimation(0)}},b.a.createElement(i.Text,{style:vt.buttonText},"直接滑到第1页"))),b.a.createElement(i.ViewPager,{ref:function(t){e.viewpager=t},style:vt.container,initialPage:0,keyboardDismissMode:"none",scrollEnabled:!0,onPageSelected:this.onPageSelected,onPageScroll:this.onPageScroll},[pt("squarePager"),yt("TrianglePager"),gt("CirclePager")]),b.a.createElement(i.View,{style:vt.dotContainer},new Array(3).fill(0).map((function(e,n){var r=n===t;return b.a.createElement(i.View,{style:[vt.dot,r?vt.selectDot:null],key:"dot_".concat(n)})}))))}}]),n}(b.a.Component),xt=i.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},webViewStyle:{width:300,height:300,borderRadius:10}});function St(){return b.a.createElement(i.View,{style:{padding:10}},b.a.createElement(i.View,{style:xt.itemTitle},b.a.createElement(i.Text,null,"WebView 示例")),b.a.createElement(i.WebView,{source:{uri:"https://www.qq.com"},method:"get",userAgent:"Mozilla/5.0 (Linux; U; Android 5.1.1; zh-cn; vivo X7 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko)Version/4.0 Chrome/37.0.0.0 MQQBrowser/8.2 Mobile Safari/537.36",style:xt.webViewStyle,onLoad:function(e){var t=e.url;return console.log("webview onload",t)},onLoadStart:function(e){var t=e.url;return console.log("webview onLoadStart",t)},onLoadEnd:function(e){var t=e.url;return console.log("webview onLoadEnd",t)}}))}var Tt=i.StyleSheet.create({shadowDemo:{flex:1,overflowY:"scroll"},shadowDemoCubeAndroid:{position:"absolute",left:50,top:50,width:170,height:170,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowColor:"#4c9afa",borderRadius:5},shadowDemoContentAndroid:{position:"absolute",left:5,top:5,width:160,height:160,backgroundColor:"grey",borderRadius:5,display:"flex",justifyContent:"center",alignItems:"center"},shadowDemoCubeIos:{position:"absolute",left:50,top:50,width:160,height:160,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowSpread:1,boxShadowColor:"#4c9afa",borderRadius:5},shadowDemoContentIos:{width:160,height:160,backgroundColor:"grey",borderRadius:5,display:"flex",justifyContent:"center",alignItems:"center"},text:{color:"white"}}),Ct=i.StyleSheet.create({shadowDemoCubeAndroid:{position:"absolute",left:50,top:300,width:175,height:175,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:15,boxShadowOffsetY:15,boxShadowColor:"#4c9afa"},shadowDemoContentAndroid:{width:160,height:160,backgroundColor:"grey",display:"flex",justifyContent:"center",alignItems:"center"},shadowDemoCubeIos:{position:"absolute",left:50,top:300,width:160,height:160,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:10,boxShadowOffsetY:10,boxShadowSpread:1,boxShadowColor:"#4c9afa"},shadowDemoContentIos:{width:160,height:160,backgroundColor:"grey",display:"flex",justifyContent:"center",alignItems:"center"},text:{color:"white"}});function Et(){return b.a.createElement(i.View,{style:Tt.shadowDemo},"android"===i.Platform.OS?b.a.createElement(i.View,{style:Tt.shadowDemoCubeAndroid},b.a.createElement(i.View,{style:Tt.shadowDemoContentAndroid},b.a.createElement(i.Text,{style:Tt.text},"没有偏移阴影样式"))):b.a.createElement(i.View,{style:Tt.shadowDemoCubeIos},b.a.createElement(i.View,{style:Tt.shadowDemoContentIos},b.a.createElement(i.Text,{style:Tt.text},"没有偏移阴影样式"))),"android"===i.Platform.OS?b.a.createElement(i.View,{style:Ct.shadowDemoCubeAndroid},b.a.createElement(i.View,{style:Ct.shadowDemoContentAndroid},b.a.createElement(i.Text,{style:Ct.text},"偏移阴影样式"))):b.a.createElement(i.View,{style:Ct.shadowDemoCubeIos},b.a.createElement(i.View,{style:Ct.shadowDemoContentIos},b.a.createElement(i.Text,{style:Ct.text},"偏移阴影样式"))))}function kt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var Rt=Ve.filter((function(e){return 2!==e.style})),At=i.StyleSheet.create({container:{backgroundColor:"#ffffff"},itemContainer:{padding:12},splitter:{marginLeft:12,marginRight:12,height:.5,backgroundColor:"#e5e5e5"},loading:{fontSize:11,color:"#aaaaaa",alignSelf:"center"},pullContainer:{height:60,backgroundColor:"green"},pullContent:{lineHeight:60,color:"white",height:60,textAlign:"center"},pullFooter:{flex:1,height:40,backgroundColor:"#4c9afa",justifyContent:"center",alignItems:"center"}}),Vt=function(e){d()(a,e);var t,n,r,o=kt(a);function a(e){var t;return c()(this,a),(t=o.call(this,e)).state={dataSource:[],pullingText:"继续下拉触发刷新",loadingState:"正在加载..."},t.numberOfColumns=2,t.columnSpacing=6,t.interItemSpacing=6,t.mockFetchData=t.mockFetchData.bind(se()(t)),t.renderItem=t.renderItem.bind(se()(t)),t.getItemType=t.getItemType.bind(se()(t)),t.getItemKey=t.getItemKey.bind(se()(t)),t.onEndReached=t.onEndReached.bind(se()(t)),t.onRefresh=t.onRefresh.bind(se()(t)),t.getRefresh=t.getRefresh.bind(se()(t)),t.renderPullFooter=t.renderPullFooter.bind(se()(t)),t.renderBanner=t.renderBanner.bind(se()(t)),t.getItemStyle=t.getItemStyle.bind(se()(t)),t}return u()(a,[{key:"componentDidMount",value:(r=le()(fe.a.mark((function e(){var t;return fe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mockFetchData();case 2:t=e.sent,this.setState({dataSource:t});case 4:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"onEndReached",value:(n=le()(fe.a.mark((function e(){var t,n,r;return fe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.state.dataSource,!this.loadMoreDataFlag){e.next=3;break}return e.abrupt("return");case 3:return this.loadMoreDataFlag=!0,this.setState({loadingState:"加载更多..."}),n=[],e.prev=6,e.next=9,this.mockFetchData();case 9:n=e.sent,e.next=14;break;case 12:e.prev=12,e.t0=e.catch(6);case 14:0===n.length&&this.setState({loadingState:"没有更多数据"}),r=[].concat(w()(t),w()(n)),this.setState({dataSource:r}),this.loadMoreDataFlag=!1;case 18:case"end":return e.stop()}}),e,this,[[6,12]])}))),function(){return n.apply(this,arguments)})},{key:"renderPullFooter",value:function(){return 0===this.state.dataSource.length?null:b.a.createElement(i.View,{style:At.pullFooter},b.a.createElement(i.Text,{style:{color:"white"}},this.state.loadingState))}},{key:"onRefresh",value:(t=le()(fe.a.mark((function e(){var t=this;return fe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:setTimeout(le()(fe.a.mark((function e(){var n;return fe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.mockFetchData();case 2:n=e.sent,t.setState({dataSource:n}),t.refresh.refreshComplected();case 5:case"end":return e.stop()}}),e)}))),1e3);case 1:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})},{key:"getRefresh",value:function(){return b.a.createElement(i.View,{style:{flex:1,height:40,justifyContent:"center",alignItems:"center",backgroundColor:"#4c9afa"}},b.a.createElement(i.Text,{style:{height:40,lineHeight:40,textAlign:"center",color:"white"}},"下拉刷新中..."))}},{key:"onClickItem",value:function(e){console.log("item: ".concat(e," is clicked.."))}},{key:"getItemType",value:function(e){return this.state.dataSource[e].style}},{key:"getItemKey",value:function(e){return"row-".concat(e)}},{key:"onItemClick",value:function(e){console.log("onItemClick",e),this.listView.scrollToIndex({index:e,animation:!0})}},{key:"renderBanner",value:function(){return"android"===i.Platform.OS||0===this.state.dataSource.length?null:b.a.createElement(i.View,{style:{backgroundColor:"grey",height:100,justifyContent:"center",alignItems:"center"}},b.a.createElement(i.Text,{style:{fontSize:20,color:"white",lineHeight:100,height:100}},"Banner View"))}},{key:"renderItem",value:function(e){var t=this,n=null,r=this.state.dataSource[e];switch(r.style){case 1:n=b.a.createElement(Le,{itemBean:r.itemBean});break;case 2:n=b.a.createElement(We,{itemBean:r.itemBean});break;case 5:n=b.a.createElement(qe,{itemBean:r.itemBean})}return b.a.createElement(i.View,{onClick:function(){return t.onItemClick(e)},style:At.container},b.a.createElement(i.View,{style:At.itemContainer},n),b.a.createElement(i.View,{style:At.splitter}))}},{key:"mockFetchData",value:function(){return new Promise((function(e){setTimeout((function(){var t=[].concat(w()(Rt),w()(Rt));return e(t)}),600)}))}},{key:"getWaterfallContentInset",value:function(){return{top:0,left:5,bottom:0,right:5}}},{key:"getItemStyle",value:function(){var e=this.numberOfColumns,t=this.columnSpacing,n=i.Dimensions.get("screen").width,r=this.getWaterfallContentInset();return{width:(n-r.left-r.right-(e-1)*t)/e}}},{key:"render",value:function(){var e=this,t=this.state.dataSource,n=this.numberOfColumns,r=this.columnSpacing,o=this.interItemSpacing,a=this.getWaterfallContentInset();return b.a.createElement(i.RefreshWrapper,{ref:function(t){e.refresh=t},style:{flex:1},onRefresh:this.onRefresh,bounceTime:100,getRefresh:this.getRefresh},b.a.createElement(i.WaterfallView,{ref:function(t){e.listView=t},renderBanner:this.renderBanner,numberOfColumns:n,columnSpacing:r,interItemSpacing:o,numberOfItems:t.length,style:{flex:1},renderItem:this.renderItem,onEndReached:this.onEndReached,getItemType:this.getItemType,getItemKey:this.getItemKey,contentInset:a,getItemStyle:this.getItemStyle,containPullFooter:!0,renderPullFooter:this.renderPullFooter}))}}]),a}(b.a.Component);function It(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var jt="#4c9afa",Dt="#f44837",Ot=i.StyleSheet.create({container:{paddingHorizontal:10},square:{width:80,height:80,backgroundColor:Dt},showArea:{height:150,marginVertical:10},button:{borderColor:jt,borderWidth:2,justifyContent:"center",alignItems:"center",width:70,borderRadius:8,height:50,marginTop:20,marginRight:8},buttonText:{fontSize:20,color:jt,textAlign:"center",textAlignVertical:"center"},colorText:{fontSize:14,color:"white",textAlign:"center",textAlignVertical:"center"},buttonContainer:{flexDirection:"row",alignItems:"center"},title:{fontSize:24,marginTop:8}}),Pt=function(e){d()(n,e);var t=It(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).state={},r}return u()(n,[{key:"componentWillMount",value:function(){this.horizonAnimation=new i.Animation({startValue:150,toValue:20,duration:1e3,delay:500,mode:"timing",timingFunction:"linear",repeatCount:"loop"}),this.verticalAnimation=new i.Animation({startValue:80,toValue:40,duration:1e3,delay:0,mode:"timing",timingFunction:"linear",repeatCount:"loop"}),this.scaleAnimationSet=new i.AnimationSet({children:[{animation:new i.Animation({startValue:1,toValue:1.2,duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new i.Animation({startValue:1.2,toValue:.2,duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.bgColorAnimationSet=new i.AnimationSet({children:[{animation:new i.Animation({startValue:"red",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new i.Animation({startValue:"yellow",toValue:"blue",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.txtColorAnimationSet=new i.AnimationSet({children:[{animation:new i.Animation({startValue:"white",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"}),follow:!1},{animation:new i.Animation({startValue:"yellow",toValue:"white",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear"}),follow:!0}],repeatCount:"loop"}),this.cubicBezierScaleAnimationSet=new i.AnimationSet({children:[{animation:new i.Animation({startValue:0,toValue:1,duration:1e3,delay:0,mode:"timing",timingFunction:"cubic-bezier(.45,2.84,.38,.5)"}),follow:!1},{animation:new i.Animation({startValue:1,toValue:0,duration:1e3,mode:"timing",timingFunction:"cubic-bezier(.17,1.45,.78,.14)"}),follow:!0}],repeatCount:"loop"})}},{key:"componentDidMount",value:function(){"web"===i.Platform.OS&&(this.verticalAnimation.setRef(this.verticalRef),this.horizonAnimation.setRef(this.horizonRef),this.scaleAnimationSet.setRef(this.scaleRef),this.bgColorAnimationSet.setRef(this.bgColorRef),this.txtColorAnimationSet.setRef(this.textColorRef),this.cubicBezierScaleAnimationSet.setRef(this.cubicBezierScaleRef)),this.horizonAnimation.onHippyAnimationStart((function(){console.log("on animation start!!!")})),this.horizonAnimation.onHippyAnimationEnd((function(){console.log("on animation end!!!")})),this.horizonAnimation.onHippyAnimationCancel((function(){console.log("on animation cancel!!!")})),this.horizonAnimation.onHippyAnimationRepeat((function(){console.log("on animation end!!!")}))}},{key:"componentWillUnmount",value:function(){this.scaleAnimationSet&&this.scaleAnimationSet.destroy(),this.horizonAnimation&&this.horizonAnimation.destroy(),this.verticalAnimation&&this.verticalAnimation.destroy(),this.cubicBezierScaleAnimationSet&&this.cubicBezierScaleAnimationSet.destroy()}},{key:"render",value:function(){var e=this;return b.a.createElement(i.ScrollView,{style:Ot.container},b.a.createElement(i.Text,{style:Ot.title},"水平位移动画"),b.a.createElement(i.View,{style:Ot.buttonContainer},b.a.createElement(i.View,{style:Ot.button,onClick:function(){e.horizonAnimation.start()}},b.a.createElement(i.Text,{style:Ot.buttonText},"开始")),b.a.createElement(i.View,{style:[Ot.button],onClick:function(){e.horizonAnimation.pause()}},b.a.createElement(i.Text,{style:Ot.buttonText},"暂停")),b.a.createElement(i.View,{style:Ot.button,onClick:function(){e.horizonAnimation.resume()}},b.a.createElement(i.Text,{style:Ot.buttonText},"继续")),b.a.createElement(i.View,{style:Ot.button,onClick:function(){e.horizonAnimation.updateAnimation({startValue:50,toValue:100})}},b.a.createElement(i.Text,{style:Ot.buttonText},"更新"))),b.a.createElement(i.View,{style:Ot.showArea},b.a.createElement(i.View,{ref:function(t){e.horizonRef=t},style:[Ot.square,{transform:[{translateX:this.horizonAnimation}]}]})),b.a.createElement(i.Text,{style:Ot.title},"高度形变动画"),b.a.createElement(i.View,{style:Ot.buttonContainer},b.a.createElement(i.View,{style:Ot.button,onClick:function(){e.verticalAnimation.start()}},b.a.createElement(i.Text,{style:Ot.buttonText},"开始")),b.a.createElement(i.View,{style:[Ot.button],onClick:function(){e.verticalAnimation.pause()}},b.a.createElement(i.Text,{style:Ot.buttonText},"暂停")),b.a.createElement(i.View,{style:Ot.button,onClick:function(){e.verticalAnimation.resume()}},b.a.createElement(i.Text,{style:Ot.buttonText},"继续"))),b.a.createElement(i.View,{style:Ot.showArea},b.a.createElement(i.View,{ref:function(t){e.verticalRef=t},style:[Ot.square,{height:this.verticalAnimation}]})),b.a.createElement(i.Text,{style:Ot.title},"组合形变动画"),b.a.createElement(i.View,{style:Ot.buttonContainer},b.a.createElement(i.View,{style:Ot.button,onClick:function(){e.scaleAnimationSet.start()}},b.a.createElement(i.Text,{style:Ot.buttonText},"开始")),b.a.createElement(i.View,{style:[Ot.button],onClick:function(){e.scaleAnimationSet.pause()}},b.a.createElement(i.Text,{style:Ot.buttonText},"暂停")),b.a.createElement(i.View,{style:Ot.button,onClick:function(){e.scaleAnimationSet.resume()}},b.a.createElement(i.Text,{style:Ot.buttonText},"继续"))),b.a.createElement(i.View,{style:[Ot.showArea,{marginVertical:20}]},b.a.createElement(i.View,{ref:function(t){e.scaleRef=t},style:[Ot.square,{transform:[{scale:this.scaleAnimationSet}]}]})),b.a.createElement(i.Text,{style:Ot.title},"颜色渐变动画（文字渐变仅Android支持）"),b.a.createElement(i.View,{style:Ot.buttonContainer},b.a.createElement(i.View,{style:Ot.button,onClick:function(){e.bgColorAnimationSet.start(),e.txtColorAnimationSet.start()}},b.a.createElement(i.Text,{style:Ot.buttonText},"开始")),b.a.createElement(i.View,{style:[Ot.button],onClick:function(){e.bgColorAnimationSet.pause(),e.txtColorAnimationSet.pause()}},b.a.createElement(i.Text,{style:Ot.buttonText},"暂停")),b.a.createElement(i.View,{style:Ot.button,onClick:function(){e.bgColorAnimationSet.resume(),e.txtColorAnimationSet.resume()}},b.a.createElement(i.Text,{style:Ot.buttonText},"继续"))),b.a.createElement(i.View,{style:[Ot.showArea,{marginVertical:20}]},b.a.createElement(i.View,{ref:function(t){e.bgColorRef=t},style:[Ot.square,{justifyContent:"center",alignItems:"center"},{backgroundColor:this.bgColorAnimationSet}]},b.a.createElement(i.Text,{ref:function(t){e.textColorRef=t},style:[Ot.colorText,{color:"android"===i.Platform.OS?this.txtColorAnimationSet:"white"}]},"颜色渐变背景和文字"))),b.a.createElement(i.Text,{style:Ot.title},"贝塞尔曲线动画"),b.a.createElement(i.View,{style:Ot.buttonContainer},b.a.createElement(i.View,{style:Ot.button,onClick:function(){e.cubicBezierScaleAnimationSet.start()}},b.a.createElement(i.Text,{style:Ot.buttonText},"开始")),b.a.createElement(i.View,{style:[Ot.button],onClick:function(){e.cubicBezierScaleAnimationSet.pause()}},b.a.createElement(i.Text,{style:Ot.buttonText},"暂停")),b.a.createElement(i.View,{style:Ot.button,onClick:function(){e.cubicBezierScaleAnimationSet.resume()}},b.a.createElement(i.Text,{style:Ot.buttonText},"继续"))),b.a.createElement(i.View,{style:[Ot.showArea,{marginVertical:20}]},b.a.createElement(i.View,{ref:function(t){e.cubicBezierScaleRef=t},style:[Ot.square,{transform:[{scale:this.cubicBezierScaleAnimationSet}]}]})))}}]),n}(b.a.Component);function _t(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var Lt=i.StyleSheet.create({containerStyle:{margin:20,alignItems:"center",flexDirection:"column"},itemGroupStyle:{flexDirection:"row",marginTop:10,borderColor:"#4c9afa",borderWidth:1,width:100,height:40,justifyContent:"center",alignItems:"center"},viewGroupStyle:{flexDirection:"row",marginTop:10},infoStyle:{width:60,height:40,fontSize:16,color:"#4c9afa",textAlign:"center"},inputStyle:{width:200,height:40,placeholderTextColor:"#aaaaaa",underlineColorAndroid:"#4c9afa",fontSize:16,color:"#242424",textAlign:"left"},buttonStyle:{textAlign:"center",fontSize:16,color:"#4c9afa",backgroundColor:"#4c9afa11",marginLeft:10,marginRight:10}}),Bt=function(e){d()(n,e);var t=_t(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).state={result:""},r.onTextChangeKey=r.onTextChangeKey.bind(se()(r)),r.onTextChangeValue=r.onTextChangeValue.bind(se()(r)),r.onClickSet=r.onClickSet.bind(se()(r)),r.onTextChangeKey=r.onTextChangeKey.bind(se()(r)),r.onClickGet=r.onClickGet.bind(se()(r)),r}return u()(n,[{key:"onClickSet",value:function(){var e=this.state,t=e.key,n=e.value;t&&i.AsyncStorage.setItem(t,n)}},{key:"onClickGet",value:function(){var e=this,t=this.state.key;t&&i.AsyncStorage.getItem(t).then((function(t){e.setState({result:t})}))}},{key:"onTextChangeKey",value:function(e){this.setState({key:e})}},{key:"onTextChangeValue",value:function(e){this.setState({value:e})}},{key:"render",value:function(){var e=this.state.result;return b.a.createElement(i.ScrollView,{style:Lt.containerStyle},b.a.createElement(i.View,{style:Lt.viewGroupStyle},b.a.createElement(i.Text,{style:Lt.infoStyle},"Key:"),b.a.createElement(i.TextInput,{style:Lt.inputStyle,onChangeText:this.onTextChangeKey})),b.a.createElement(i.View,{style:Lt.viewGroupStyle},b.a.createElement(i.Text,{style:Lt.infoStyle},"Value:"),b.a.createElement(i.TextInput,{style:Lt.inputStyle,onChangeText:this.onTextChangeValue})),b.a.createElement(i.View,{style:Lt.itemGroupStyle,onClick:this.onClickSet},b.a.createElement(i.Text,{style:Lt.buttonStyle},"Set")),b.a.createElement(i.View,{style:[Lt.viewGroupStyle,{marginTop:60}]},b.a.createElement(i.Text,{style:Lt.infoStyle},"Key:"),b.a.createElement(i.TextInput,{style:Lt.inputStyle,onChangeText:this.onTextChangeKey})),b.a.createElement(i.View,{style:[Lt.viewGroupStyle,{display:"none"}]},b.a.createElement(i.Text,{style:Lt.infoStyle},"Value:"),b.a.createElement(i.Text,{style:[Lt.infoStyle,{width:200}]},e)),b.a.createElement(i.View,{style:Lt.itemGroupStyle,onClick:this.onClickGet},b.a.createElement(i.Text,{style:Lt.buttonStyle},"Get")))}}]),n}(b.a.Component);function Mt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var zt=i.StyleSheet.create({itemTitle:{alignItems:"flex-start",justifyContent:"center",height:40,borderWidth:1,borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},defaultText:{marginVertical:4,fontSize:18,lineHeight:24,color:"#242424"},copiedText:{color:"#aaa"},button:{backgroundColor:"#4c9afa",borderRadius:4,height:30,marginVertical:4,paddingHorizontal:6,alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,color:"white"}}),Ft=function(e){d()(n,e);var t=Mt(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).state={hasCopied:!1,text:"Winter is coming",clipboardText:"快点上面的按钮啊魂淡"},r}return u()(n,[{key:"render",value:function(){var e=this,t=function(e){return b.a.createElement(i.View,{style:zt.itemTitle},b.a.createElement(i.Text,null,e))},n=this.state,r=n.hasCopied,o=n.text,a=n.clipboardText,l=r?"   (已复制)   ":"";return b.a.createElement(i.ScrollView,{style:{padding:10}},t("文本复制到剪贴板"),b.a.createElement(i.Text,{style:zt.defaultText},o),b.a.createElement(i.View,{style:zt.button,onClick:function(){i.Clipboard.setString(o),e.setState({hasCopied:!0})}},b.a.createElement(i.Text,{style:zt.buttonText},"点击复制以上文案".concat(l))),t("获取剪贴板内容"),b.a.createElement(i.View,{style:zt.button,onClick:le()(fe.a.mark((function t(){var n;return fe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,i.Clipboard.getString();case 3:n=t.sent,e.setState({clipboardText:n}),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error(t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))},b.a.createElement(i.Text,{style:zt.buttonText},"点击获取剪贴板内容")),b.a.createElement(i.Text,{style:[zt.defaultText,zt.copiedText]},a))}}]),n}(b.a.Component);function Wt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var Ht=i.StyleSheet.create({text:{fontSize:14,color:"#242424",alignSelf:"center"},container:{flex:1},itemTitle:{alignItems:"flex-start",justifyContent:"center",height:80,borderWidth:1,borderColor:"#e0e0e0",borderRadius:2,backgroundColor:"#fafafa",padding:10,marginTop:10},itemContent:{alignItems:"flex-start",justifyContent:"center",height:100,borderBottomWidth:1,borderLeftWidth:1,borderRightWidth:1,borderRadius:2,borderColor:"#e0e0e0",backgroundColor:"#ffffff",padding:10},normalText:{fontSize:14,lineHeight:18,color:"black"}}),Nt=function(e){d()(n,e);var t=Wt(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).state={infoText:"",infoText2:""},r}return u()(n,[{key:"render",value:function(){var e=this,t=this.state,n=t.infoText,r=t.infoText2;return b.a.createElement(i.ScrollView,{style:Ht.container},b.a.createElement(i.View,{style:Ht.itemTitle,onPress:function(){var t=new i.HippyEventEmitter;e.call=t.addListener("NORMAL_EVENT",(function(t){e.setState({infoText:JSON.stringify(t)})})),Object(i.callNative)("MyEvent","btnClicked")}},b.a.createElement(i.Text,null,"客户端向前端单向通信"),b.a.createElement(i.Text,null,"点此终端会发送NORMAL_EVENT事件"),b.a.createElement(i.Text,null,"事件接收结果：".concat(n))),b.a.createElement(i.View,{style:Ht.itemTitle,onPress:function(){var t=new i.HippyEventEmitter;e.call=t.addListener("COUNT_DOWN",(function(t){e.setState({infoText2:JSON.stringify(t)})})),Object(i.callNative)("MyEvent","addListener","COUNT_DOWN")}},b.a.createElement(i.Text,null,"客户端向前端单向通信的进阶用法"),b.a.createElement(i.Text,null,"点此终端会发送COUNT_DOWN事件"),b.a.createElement(i.Text,null,"事件接收结果：".concat(r))))}}]),n}(b.a.Component);function Kt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var qt=i.StyleSheet.create({text:{fontSize:14,color:"#242424",alignSelf:"center"},container:{flex:1,justifyContent:"center"}}),Ut=function(e){d()(r,e);var t,n=Kt(r);function r(e){var t;return c()(this,r),(t=n.call(this,e)).state={infoText:"正在获取.."},t.listener=null,t}return u()(r,[{key:"componentWillMount",value:(t=le()(fe.a.mark((function e(){var t,n;return fe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this,e.next=3,i.NetInfo.fetch();case 3:n=e.sent,this.setState({infoText:n}),this.listener=i.NetInfo.addEventListener("change",(function(e){t.setState({infoText:"收到通知: ".concat(e.network_info)})}));case 6:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"componentDidMount",value:function(){var e=this;this.listener&&i.NetInfo.removeEventListener("change",this.listener),fetch("https://m.baidu.com",{headers:{Refer:"https://now.qq.com",Cookie:["harry=guo5","xxx=5"]}}).then((function(t){return console.log("成功",t),e.setState({infoText:"成功: ".concat(t.body)}),t})).catch((function(t){e.setState({infoText:"收到错误: ".concat(t)}),console.error("收到错误:",t)})),i.NetworkModule.setCookie("http://3gxx.qq.com","name=harryguo;gender=male"),i.NetworkModule.getCookies("http://3gxx.qq.com").then((function(e){console.log("cookie: ".concat(e))}))}},{key:"render",value:function(){var e=this.state.infoText;return b.a.createElement(i.ScrollView,{style:qt.container},b.a.createElement(i.Text,{style:qt.text},e))}}]),r}(b.a.Component),Gt={log:function(e){Object(i.callNative)("TestModule","log",e)},helloNative:function(e){Object(i.callNative)("TestModule","helloNative",e)},helloNativeWithPromise:function(e){return Object(i.callNativeWithPromise)("TestModule","helloNativeWithPromise",e)}};function Qt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var Yt,Jt=function(e){d()(n,e);var t=Qt(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).state={hello:"TestModule log"},r}return u()(n,[{key:"componentDidMount",value:function(){var e=this;Gt.log("hello i am from js"),Gt.helloNative({hello:"i am form js"}),Gt.helloNativeWithPromise({hello:"i am form js"}).then((function(t){e.setState({hello:JSON.stringify(t)})}))}},{key:"render",value:function(){var e=this.state.hello;return b.a.createElement(i.Text,{style:{color:"red"}},e)}}]),n}(b.a.Component),Xt=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),Zt=n.n(Xt),$t=i.StyleSheet.create({fullScreen:{flex:1},row:{flexDirection:"row"},title:{color:"#ccc"},button:{height:56,backgroundColor:"#4c9afa",borderColor:"#5dabfb",borderStyle:"solid",borderWidth:1,paddingHorizontal:20,fontSize:16,textAlign:"center",lineHeight:56,color:"#fff",margin:10},input:{color:"black",flex:1,height:36,lineHeight:36,fontSize:14,borderBottomColor:"#4c9afa",borderBottomStyle:"solid",borderBottomWidth:1,padding:0},output:{color:"black"}}),en="wss://echo.websocket.org",tn="Rock it with Hippy WebSocket";var nn=function(){var e=Object(g.useRef)(null),t=Object(g.useRef)(null),n=Object(g.useState)([]),r=Zt()(n,2),o=r[0],a=r[1],l=function(e){a((function(t){return[e].concat(w()(t))}))};return b.a.createElement(i.View,{style:$t.fullScreen},b.a.createElement(i.View,null,b.a.createElement(i.Text,{style:$t.title},"Url:"),b.a.createElement(i.TextInput,{ref:e,value:en,style:$t.input}),b.a.createElement(i.View,{style:$t.row},b.a.createElement(i.Text,{onClick:function(){e.current.getValue().then((function(e){Yt&&1===Yt.readyState&&Yt.close(),(Yt=new WebSocket(e)).onopen=function(){return l("[Opened] ".concat(Yt.url))},Yt.onclose=function(){return l("[Closed] ".concat(Yt.url))},Yt.onerror=function(e){return l("[Error] ".concat(e.reason))},Yt.onmessage=function(e){return l("[Received] ".concat(e.data))}}))},style:$t.button},"Connect"),b.a.createElement(i.Text,{onClick:function(){return Yt.close()},style:$t.button},"Disconnect"))),b.a.createElement(i.View,null,b.a.createElement(i.Text,{style:$t.title},"Message:"),b.a.createElement(i.TextInput,{ref:t,value:tn,style:$t.input}),b.a.createElement(i.Text,{onClick:function(){return t.current.getValue().then((function(e){l("[Sent] ".concat(e)),Yt.send(e)}))},style:$t.button},"Send")),b.a.createElement(i.View,null,b.a.createElement(i.Text,{style:$t.title},"Log:"),b.a.createElement(i.ScrollView,{style:$t.fullScreen},o.map((function(e,t){return b.a.createElement(i.Text,{key:t,style:$t.output},e)})))))};function rn(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 on(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rn(Object(n),!0).forEach((function(t){$()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var an=i.StyleSheet.create({full:{flex:1},demoContent:{flex:1,height:500},box:{position:"absolute",width:100,height:100,backgroundColor:"green"},text:{width:100,height:100,lineHeight:100,color:"white",textAlign:"center",textAlignVertical:"middle"},buttonContainer:{alignItem:"center"},button:{width:250,height:50,borderColor:"#4c9afa",borderWidth:2,borderRadius:8},buttonText:{height:50,fontSize:20,color:"#4c9afa",textAlign:"center",textAlignVertical:"center"},row:{flexDirection:"row"},black:{color:"black"}}),ln=function(e,t){var n=Math.ceil(e),r=Math.floor(t);return Math.floor(Math.random()*(r-n+1))+n},cn=function(){var e,t,n=Object(g.useRef)(null);Object(g.useEffect)((function(){var n=i.Dimensions.get("window");e=n.width,t=n.height}));var r=Object(g.useState)({width:100,height:100,top:10,left:10}),o=Zt()(r,2),a=o[0],l=o[1],c=Object(g.useState)({width:0,height:0,x:0,y:0}),s=Zt()(c,2),u=s[0],f=s[1],d=function(){var e=le()(fe.a.mark((function e(){var t;return fe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,i.UIManagerModule.measureInWindow(n.current);case 3:t=e.sent,f(t),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),h=on(on({},an.box),a);return b.a.createElement(i.View,{style:an.full},b.a.createElement(i.View,{style:an.demoContent},b.a.createElement(i.View,{ref:n,style:h},b.a.createElement(i.Text,{style:an.text},"I am the box"))),b.a.createElement(i.View,{style:an.buttonContainer},b.a.createElement(i.View,{onClick:function(){var n=ln(0,e),r=ln(0,t-300),o=ln(50,120);l({left:n,top:r,width:o,height:o})},style:an.button},b.a.createElement(i.Text,{style:an.buttonText},"Move the random position")),b.a.createElement(i.View,{onClick:d,style:an.button},b.a.createElement(i.Text,{style:an.buttonText},"Measure box in window"))),b.a.createElement(i.View,{style:an.row},b.a.createElement(i.View,{style:an.full},b.a.createElement(i.Text,null,"Box style:"),b.a.createElement(i.Text,{style:an.black},"Width: ".concat(h.width)),b.a.createElement(i.Text,{style:an.black},"Height: ".concat(h.height)),b.a.createElement(i.Text,{style:an.black},"Left: ".concat(h.left)),b.a.createElement(i.Text,{style:an.black},"Top: ".concat(h.top))),b.a.createElement(i.View,{style:an.full},b.a.createElement(i.Text,null,"measureInWindow output:"),b.a.createElement(i.Text,{style:an.black},"Width: ".concat(u.width)),b.a.createElement(i.Text,{style:an.black},"Height: ".concat(u.height)),b.a.createElement(i.Text,{style:an.black},"X: ".concat(u.x)),b.a.createElement(i.Text,{style:an.black},"Y: ".concat(u.y)))))};function sn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var un=i.StyleSheet.create({style_indicator_item:{width:4,height:4,marginLeft:2.5,marginRight:2.5,borderRadius:2},style_indicator:{position:"absolute",bottom:6,left:0,right:0,marginLeft:0,marginRight:0,alignItems:"center",justifyContent:"center",flexDirection:"row"}}),fn=function(e){d()(n,e);var t=sn(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).state={current:e.current||0},r}return u()(n,[{key:"update",value:function(e){this.state.current!==e&&this.setState({current:e})}},{key:"render",value:function(){for(var e=this.props.count,t=this.state.current,n=[],r=0;r<e;r+=1)t===r?n.push(b.a.createElement(i.View,{style:[un.style_indicator_item,{backgroundColor:"#2424244c"}],key:r})):n.push(b.a.createElement(i.View,{style:[un.style_indicator_item,{backgroundColor:"#ffffffaa"}],key:r}));return b.a.createElement(i.View,{style:un.style_indicator},n)}}]),n}(b.a.Component),dn=function(e){d()(n,e);var t=sn(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).imgWidth=e.style.width,r.imgHeight=e.style.height,r.itemCount=e.images.length,r.duration=e.duration,r.touchStartOffset=0,r.touchEndOffset=0,r.scrollOffset=0,r.interval=null,r.currentIndex=0,r.width=0,r.onLayout=r.onLayout.bind(se()(r)),r.onScroll=r.onScroll.bind(se()(r)),r.onScrollBeginDrag=r.onScrollBeginDrag.bind(se()(r)),r.onScrollEndDrag=r.onScrollEndDrag.bind(se()(r)),r}return u()(n,[{key:"componentDidMount",value:function(){this.duration=this.props.duration,this.doCreateTimer()}},{key:"componentDidUpdate",value:function(){this.duration=this.props.duration,this.doCreateTimer()}},{key:"componentWillUnmount",value:function(){this.doClearTimer()}},{key:"onScroll",value:function(e){var t=this.props.images;if(0!==this.width){var n=e.contentOffset.x;this.scrollOffset=n;var r=Math.round(n/this.width),o=t?b.a.Children.count(t):0;r<0||r>=o||(this.indicator.update(r),this.currentIndex=r)}}},{key:"onScrollBeginDrag",value:function(){this.touchStartOffset=this.scrollOffset,this.doClearTimer()}},{key:"onScrollEndDrag",value:function(){this.doCreateTimer()}},{key:"onLayout",value:function(e){this.width=e.layout.width}},{key:"doSwitchPage",value:function(e){this.scrollview.scrollTo(this.imgWidth*e,0,!0)}},{key:"doCreateTimer",value:function(){var e=this;this.doClearTimer(),this.duration<=0||(this.interval=setInterval((function(){e.doSwitchPage((e.currentIndex+1)%e.itemCount)}),this.duration))}},{key:"doClearTimer",value:function(){this.interval&&clearInterval(this.interval),this.interval=null}},{key:"render",value:function(){for(var e=this,t=this.props.images,n=[],r=0;r<this.itemCount;r+=1)n.push(b.a.createElement(i.Image,{source:{uri:t[r]},style:{width:this.imgWidth,height:this.imgHeight},key:r}));return b.a.createElement(i.View,null,b.a.createElement(i.ScrollView,{horizontal:!0,pagingEnabled:!0,style:{width:this.imgWidth,height:this.imgHeight},onLayout:this.onLayout,onScroll:this.onScroll,onScrollBeginDrag:this.onScrollBeginDrag,onScrollEndDrag:this.onScrollEndDrag,ref:function(t){e.scrollview=t}},n),b.a.createElement(fn,{ref:function(t){e.indicator=t},count:this.itemCount}))}}]),n}(b.a.Component);$()(dn,"defaultProps",{duration:0,currentPage:0,images:[]});var hn=["http://res.imtt.qq.com/circle/real/1528701933567-.jpg","http://res.imtt.qq.com/circle/real/1527758982390-20180530184743.jpg","http://res.imtt.qq.com/circle/real/1527670660574-.jpg"],mn=i.StyleSheet.create({sliderStyle:{width:400,height:180},infoStyle:{height:40,fontSize:16,color:"#4c9afa",marginTop:15}});function pn(){return b.a.createElement(i.ScrollView,null,b.a.createElement(i.Text,{style:mn.infoStyle},"Auto:"),b.a.createElement(dn,{style:mn.sliderStyle,images:hn,duration:1e3}),b.a.createElement(i.Text,{style:mn.infoStyle},"Manual:"),b.a.createElement(dn,{style:mn.sliderStyle,images:hn,duration:0}))}function yn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var gn=i.StyleSheet.create({container:{height:45,paddingLeft:4,flexDirection:"row",backgroundColor:"#ffffff",borderBottomColor:"#E5E5E5",borderBottomWidth:1},scroll:{flex:1,height:44},navItem:{width:60,height:44,paddingTop:13},navItemText:{fontSize:16,lineHeight:17,textAlign:"center",backgroundColor:"#ffffff"},navItemTextNormal:{color:"#666666"},navItemTextBlue:{color:"#2D73FF"}}),bn=function(e){d()(n,e);var t=yn(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).state={curIndex:0,navList:["头条","推荐","圈子","NBA","中超","英超","西甲","CBA","澳网","电影","本地","娱乐","小说","生活","直播","游戏"]},r.navScrollView=null,r.viewPager=null,r.onViewPagerChange=r.onViewPagerChange.bind(se()(r)),r.pressNavItem=r.pressNavItem.bind(se()(r)),r.scrollSV=r.scrollSV.bind(se()(r)),r}return u()(n,[{key:"componentDidUpdate",value:function(){this.scrollSV()}},{key:"onViewPagerChange",value:function(e){var t=e.position;this.setState({curIndex:t})}},{key:"scrollSV",value:function(){if(this.navScrollView){var e,t=this.state,n=t.curIndex,r=t.navList.length,o=De.getScreenWidth(),a=o/2/60;e=n<=a||60*r<o?0:n>r-a?60*r-o:60*n-60*a+30,this.navScrollView.scrollTo({x:e,y:0,animated:!0})}}},{key:"pressNavItem",value:function(e){this.setState({curIndex:e}),this.viewPager&&this.viewPager.setPage(e)}},{key:"renderNav",value:function(){var e=this,t=this.state,n=t.navList,r=t.curIndex;return b.a.createElement(i.View,{style:gn.container},b.a.createElement(i.ScrollView,{style:gn.scroll,horizontal:!0,showsHorizontalScrollIndicator:!1,ref:function(t){e.navScrollView=t}},n.map((function(t,n){return b.a.createElement(i.View,{style:gn.navItem,key:"nav_".concat(t),activeOpacity:.5,onClick:function(){return e.pressNavItem(n)}},b.a.createElement(i.Text,{style:[gn.navItemText,r===n?gn.navItemTextBlue:gn.navItemTextNormal],numberOfLines:1},t))}))))}},{key:"render",value:function(){var e=this,t=this.state.navList;return b.a.createElement(i.View,{style:{flex:1,backgroundColor:"#ffffff"}},this.renderNav(),b.a.createElement(i.ViewPager,{ref:function(t){e.viewPager=t},style:{flex:1},initialPage:0,onPageSelected:this.onViewPagerChange},t.map((function(e,t){return n.getPage(e,t)}))))}}],[{key:"getPage",value:function(e,t){switch(t%3){case 0:return pt(e);case 1:return gt(e);case 2:return yt(e);default:return null}}}]),n}(b.a.Component);function vn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var wn=i.Dimensions.get("window").width,xn=i.StyleSheet.create({setNativePropsDemo:{display:"flex",alignItems:"center",position:"relative"},nativeDemo1Drag:{height:80,width:wn,backgroundColor:"#4c9afa",position:"relative",marginTop:10},nativeDemo1Point:{height:80,width:80,color:"#ff0000",backgroundColor:"#ff0000",position:"absolute",left:0},nativeDemo2Drag:{height:80,width:wn,backgroundColor:"#4c9afa",position:"relative",marginTop:10},nativeDemo2Point:{height:80,width:80,color:"#ff0000",backgroundColor:"#ff0000",position:"absolute",left:0},splitter:{marginTop:50}}),Sn=function(e){d()(n,e);var t=vn(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).demon1Point=b.a.createRef(),r.demo1PointDom=null,r.state={demo2Left:0},r.isDemon1Layouted=!1,r.idDemon2Layouted=!1,r.onTouchDown1=r.onTouchDown1.bind(se()(r)),r.onDemon1Layout=r.onDemon1Layout.bind(se()(r)),r.onTouchMove1=r.onTouchMove1.bind(se()(r)),r.onTouchDown2=r.onTouchDown2.bind(se()(r)),r.onTouchMove2=r.onTouchMove2.bind(se()(r)),r}return u()(n,[{key:"componentDidMount",value:function(){}},{key:"onDemon1Layout",value:function(){this.isDemon1Layouted||(this.isDemon1Layouted=!0,this.demo1PointDom=i.UIManagerModule.getElementFromFiberRef(this.demon1Point.current))}},{key:"onTouchDown1",value:function(e){var t=e.page_x,n=t-40;console.log("touchdown x",t,n,wn),this.demo1PointDom&&this.demo1PointDom.setNativeProps({style:{left:n}})}},{key:"onTouchMove1",value:function(e){var t=e.page_x,n=t-40;console.log("touchmove x",t,n,wn),this.demo1PointDom&&this.demo1PointDom.setNativeProps({style:{left:n}})}},{key:"onTouchDown2",value:function(e){var t=e.page_x,n=t-40;console.log("touchdown x",t,n,wn),this.setState({demo2Left:n})}},{key:"onTouchMove2",value:function(e){var t=e.page_x,n=t-40;console.log("touchmove x",t,n,wn),this.setState({demo2Left:n})}},{key:"render",value:function(){var e=this.state.demo2Left;return b.a.createElement(i.View,{style:xn.setNativePropsDemo},b.a.createElement(i.Text,null,"setNativeProps实现拖动效果"),b.a.createElement(i.View,{style:xn.nativeDemo1Drag,onTouchDown:this.onTouchDown1,onTouchMove:this.onTouchMove1},b.a.createElement(i.View,{onLayout:this.onDemon1Layout,style:xn.nativeDemo1Point,ref:this.demon1Point})),b.a.createElement(i.View,{style:xn.splitter}),b.a.createElement(i.Text,null,"普通渲染实现拖动效果"),b.a.createElement(i.View,{style:xn.nativeDemo2Drag,onTouchDown:this.onTouchDown2,onTouchMove:this.onTouchMove2},b.a.createElement(i.View,{style:[xn.nativeDemo2Point,{left:e}]})))}}]),n}(b.a.Component);function Tn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var Cn=i.StyleSheet.create({dynamicImportDemo:{marginTop:20,display:"flex",flex:1,alignItems:"center",position:"relative",flexDirection:"column"}}),En=function(e){d()(r,e);var t=Tn(r);function r(e){var n;return c()(this,r),(n=t.call(this,e)).state={AsyncComponentFromLocal:null,AsyncComponentFromHttp:null},n.onAsyncComponentLoad=n.onAsyncComponentLoad.bind(se()(n)),n}return u()(r,[{key:"onAsyncComponentLoad",value:function(){var e=this;console.log("load async component"),n.e(1).then(n.bind(null,"./src/externals/DyanmicImport/AsyncComponentLocal.jsx")).then((function(t){e.setState({AsyncComponentFromLocal:t.default||t})})).catch((function(e){return console.error("import async local component error",e)})),n.e(0).then(n.bind(null,"./src/externals/DyanmicImport/AsyncComponentHttp.jsx")).then((function(t){e.setState({AsyncComponentFromHttp:t.default||t})})).catch((function(e){return console.error("import async remote component error",e)}))}},{key:"render",value:function(){var e=this.state,t=e.AsyncComponentFromLocal,n=e.AsyncComponentFromHttp;return b.a.createElement(i.View,{style:Cn.dynamicImportDemo},b.a.createElement(i.View,{style:{width:130,height:40,textAlign:"center",backgroundColor:"#4c9afa",borderRadius:5},onTouchDown:this.onAsyncComponentLoad},b.a.createElement(i.Text,{style:{height:40,lineHeight:40,textAlign:"center"}},"点我异步加载")),b.a.createElement(i.View,{style:{marginTop:20}},t?b.a.createElement(t,null):null,n?b.a.createElement(n,null):null))}}]),r}(b.a.Component);function kn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var Rn=i.StyleSheet.create({LocalizationDemo:{marginTop:20,display:"flex",flex:1,alignItems:"center",position:"relative",flexDirection:"column"}}),An=function(e){d()(n,e);var t=kn(n);function n(){return c()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=i.Platform.Localization||{},t=e.country,n=e.language,r=e.direction;return b.a.createElement(i.View,{style:Rn.LocalizationDemo},b.a.createElement(i.View,{style:{height:40,textAlign:"center",backgroundColor:"#4c9afa",borderRadius:5},onTouchDown:this.onAsyncComponentLoad},b.a.createElement(i.Text,{style:{color:"white",marginHorizontal:30,height:40,lineHeight:40,textAlign:"center"}},"国际化相关信息：国家 ".concat(t," | 语言 ").concat(n," | 方向 ").concat(1===r?"RTL":"LTR"))))}}]),n}(b.a.Component),Vn=function(){var e=le()(fe.a.mark((function e(t){return fe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",turboPromise(getTurboModule("demoTurbo").nativeWithPromise)(t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function In(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var jn=i.StyleSheet.create({container:{flex:1},cellContentView:{flexDirection:"row",justifyContent:"space-between",backgroundColor:"#ccc",marginBottom:1},funcInfo:{justifyContent:"center",paddingLeft:15,paddingRight:15},actionButton:{backgroundColor:"#4c9afa",color:"#fff",height:44,lineHeight:44,textAlign:"center",width:80,borderRadius:6},resultView:{backgroundColor:"darkseagreen",minHeight:150,padding:15}}),Dn=function(e){d()(r,e);var t,n=In(r);function r(e){var t;return c()(this,r),(t=n.call(this,e)).state={config:null,result:"",funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"]},t.onTurboFunc=t.onTurboFunc.bind(se()(t)),t.getRenderRow=t.getRenderRow.bind(se()(t)),t.getRowKey=t.getRowKey.bind(se()(t)),t}return u()(r,[{key:"onTurboFunc",value:(t=le()(fe.a.mark((function e(t){var n;return fe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("nativeWithPromise"!==t){e.next=6;break}return e.next=3,Vn("aaa");case 3:n=e.sent,e.next=7;break;case 6:"getTurboConfig"===t?(this.config=getTurboModule("demoTurbo").getTurboConfig(),n="获取到config对象"):"printTurboConfig"===t?(r=this.config,n=getTurboModule("demoTurbo").printTurboConfig(r)):"getInfo"===t?n=this.config.getInfo():"setInfo"===t?(this.config.setInfo("Hello World"),n="设置config信息成功"):n={getString:function(){return e="123",getTurboModule("demoTurbo").getString(e);var e},getNum:function(){return e=1024,getTurboModule("demoTurbo").getNum(e);var e},getBoolean:function(){return e=!0,getTurboModule("demoTurbo").getBoolean(e);var e},getMap:function(){return e=new Map([["a","1"],["b",2]]),getTurboModule("demoTurbo").getMap(e);var e},getObject:function(){return e={c:"3",d:"4"},getTurboModule("demoTurbo").getObject(e);var e},getArray:function(){return e=["a","b","c"],getTurboModule("demoTurbo").getArray(e);var e}}[t]();case 7:this.setState({result:n});case 8:case"end":return e.stop()}var r}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"renderResultView",value:function(){return b.a.createElement(i.View,{style:jn.resultView},b.a.createElement(i.Text,{style:{backgroundColor:"darkseagreen"}},"".concat(this.state.result)))}},{key:"getRenderRow",value:function(e){var t=this,n=this.state.funList;return b.a.createElement(i.View,{style:jn.cellContentView},b.a.createElement(i.View,{style:jn.funcInfo},b.a.createElement(i.Text,{numberofLines:0},"函数名：",n[e])),b.a.createElement(i.Text,{style:jn.actionButton,onClick:function(){return t.onTurboFunc(n[e])}},"执行"))}},{key:"getRowKey",value:function(e){return this.state.funList[e]}},{key:"render",value:function(){var e=this.state.funList;return b.a.createElement(i.View,{style:jn.container},this.renderResultView(),b.a.createElement(i.ListView,{numberOfRows:e.length,renderRow:this.getRenderRow,getRowKey:this.getRowKey,style:{flex:1}}))}}]),r}(b.a.Component);function On(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 Pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?On(Object(n),!0).forEach((function(t){$()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):On(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _n=Pn(Pn(Pn({},r),o),a),Ln=[{path:"/View",name:"View 组件",component:_n.View,meta:{style:1}},{path:"/BoxShadow",name:"BoxShadow 范例",component:_n.BoxShadow,meta:{style:1}},{path:"/Clipboard",name:"Clipboard 组件",component:_n.Clipboard,meta:{style:1}},{path:"/Text",name:"Text 组件",component:_n.Text,meta:{style:1}},{path:"/Image",name:"Image 组件",component:_n.Image,meta:{style:1}},{path:"/ListView",name:"ListView 组件",component:_n.ListView,meta:{style:1}},{path:"/WaterfallView",name:"WaterfallView 组件",component:_n.WaterfallView,meta:{style:1}},{path:"/PullHeader",name:"PullHeader 组件",component:_n.PullHeader,meta:{style:1}},{path:"/RefreshWrapper",name:"RefreshWrapper 组件",component:_n.RefreshWrapper,meta:{style:1}},{path:"/ScrollView",name:"ScrollView 组件",component:_n.ScrollView,meta:{style:1}},{path:"/ViewPager",name:"ViewPager 组件",component:_n.ViewPager,meta:{style:1}},{path:"/TextInput",name:"TextInput 组件",component:_n.TextInput,meta:{style:1}},{path:"/Modal",name:"Modal 组件",component:_n.Modal,meta:{style:1}},{path:"/Slider",name:"Slider 组件",component:_n.Slider,meta:{style:1}},{path:"/TabHost",name:"TabHost 组件",component:_n.TabHost,meta:{style:1}},{path:"/WebView",name:"WebView 组件",component:_n.WebView,meta:{style:1}},{path:"/WebSocket",name:"WebSocket 模块",component:_n.WebSocket,meta:{style:2}},{path:"/Animation",name:"Animation 组件",component:_n.Animation,meta:{style:2}},{path:"/NetInfo",name:"NetInfo 能力",component:_n.NetInfo,meta:{style:2}},{path:"/UIManagerModule",name:"UIManagerModule 模块",component:_n.UIManagerModule,meta:{style:2}},{path:"/SetNativeProps",name:"setNativeProps能力",component:_n.SetNativeProps,meta:{style:2}},{path:"/DynamicImport",name:"DynamicImport 能力",component:_n.DynamicImport,meta:{style:2}},{path:"/Localization",name:"Localization 信息",component:_n.Localization,meta:{style:2}},{path:"/Turbo",name:"Turbo",component:_n.Turbo,meta:{style:2}}],Bn="#4c9afa",Mn="#fff",zn=i.StyleSheet.create({container:{height:56,backgroundColor:Bn,flexDirection:"row",alignItems:"center",justifyContent:"space-between"},backIcon:{width:24,height:24},headerButton:{height:64,paddingHorizontal:24,alignItems:"center",justifyContent:"center"},title:{fontSize:20,color:Mn,lineHeight:24}}),Fn=X((function(e){var t=e.history,n=e.route;return 0===t.index?b.a.createElement(i.View,{style:[zn.container]},b.a.createElement(i.View,{style:{backgroundColor:zn.title.backgroundColor,marginLeft:12}},b.a.createElement(i.Text,{numberOfLines:1,style:[zn.title,{fontWeight:"bold"}]},n.name)),b.a.createElement(i.View,{style:zn.headerButton},b.a.createElement(i.Text,{numberOfLines:1,style:zn.title},"ver: ","2.2.1"!==i.default.version?"".concat(i.default.version):"master"))):b.a.createElement(i.View,{style:[zn.container]},b.a.createElement(i.View,{onClick:function(){return t.goBack()},style:[zn.headerButton,"ios"===i.Platform.OS?null:{marginLeft:20}]},b.a.createElement(i.Image,{style:zn.backIcon,source:{uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAIPUlEQVR4Xu2dT8xeQxTGn1O0GiWEaEJCWJCwQLBo/WnRSqhEJUQT0W60G+1Ku1SS2mlXaqM2KqJSSUlajVb9TViwYEHCQmlCQghRgqKPTHLK7Zfvfd97Zt5535l7z91+58zce57fnfe7d+Y+I/Cj1xWQXl+9XzwcgJ5D4AA4AD2vQM8v30cAB6DnFZjA5ZO8VUTenEBX5i58BDCXzJZA8ikA6wFsFpEttuz80Q5AxhqTfAbA2kYXW0VkU8YuzU07AOaStUsg+RyA1bNEFwWBA9BOz9ZRJOcAeAHAqiFJ20VkQ+tGMwY6AGMsLslTAOwGcE+LZneIyLoWcVlDHIAxlVfFfxXACkOTO0VkjSF+7KEOwJhKSnIfgDuNzf0M4BoR+cqYN7ZwByCxlCTnAtgLYLmxqR8ALBGRz4x5Yw13ABLKSfJ0APsBLDU28x2Am0XkC2Pe2MMdgMiSkjwDwAEAi41NBPEXichhY16WcAcgoqwkzwRwCMD1xvRvANxUivjh3B0Ao4IkzwbwFoCrjalf67B/xJiXNdwBMJSX5LkA3gFwpSEthH6pd/63xrzs4Q5AyxKTPB/AuwAub5lyIuxzvfO/N+ZNJNwBaFFmkhcAeA/ApS3CmyGf6qPej8a8iYU7ACNKTfIivfMvNqryMYBbRCS87Cn2cACGSKPivw/gQqOCQfzwnH/UmDfxcAdgQMlJXqLDvlX8DwHcVoP4/hg4WPzLdNhfaLwlw2hxu4j8ZsybWriPADNKT/IKfdQ7z6jK2wDuEJE/jHlTDXcAGuUneZW+5DnHqMpBAHeJyDFj3tTDHQCVgOR1+nr3LKMqYRp4pYj8bcwrItwBAEBykU7sLDCqsgfAfSLyjzGvmPDeA0ByiU7pzjeqEsS/V0SOG/OKCu81ACSX6WKOeUZVdgF4oHbxe/0YSDIs33oFwGlG8ae+js94vkPDezkCkFypq3dPNRaziJW8xnN2AJoVIHm/rtsPS7gtRzFr+S0nPSq2VyOAiv9ixEKYor7mGSWq5e+9AYDkgwDC51rWa94iIpstRa0p1lqMmq7tv3Ml+RCA8KGm9Xo3isi2Ki+65UlbC9Ky2XLCSD4MYHvEGXVe/M4/BpJ8BMDWCPHXi8jTEXnVpXR2BCD5OIDHjIoQwDoRedaYV214JwEg+SSAjUZVgvhrROR5Y17V4Z0DoGHJYhEmTOaEV7svWZK6ENspAGaxZGmjUZjGDTN64bVw747OADDEkmWYqEH8u0Xktd4prxdcPQAtLVlm0/cvXcjRW/GrfwxU8V9uacnShOBPXcL1Rl/v/BPXXe0IYPTjaer8uy7eDN/49f6oEgCSYRo3/NNm8eMJYv+qy7Y/6L3ytf4PkGDJ8ot+sPGRi/9/BaoaARIsWX7S7/Q+cfFPrkA1ACRYsgTxb5y2GVOp4FUBQIIlSxFOXKWKX8VjYIIlSzFOXA5AZAUSLFmKM2OKLEH2tGJ/AhIsWYo0Y8quZGQHRQKQYMlSrBlTpD7Z04oDIMGSpWgzpuxKRnZQFACJ4t8gIsWaMUXqkz2tGAASLFmKd+LKrmJCB0UAQDLWkqUKJ64EfbKnTh2ABEuWqsyYsisZ2cFUAUiwZKnOjClSn+xpUwMgwZKlSjOm7EpGdlAjAOHuDz58VblxReqTPW1qAIQr85+A7PqO7GCqACgEsb58/k/gSHlHB0wdAIXAHwNHa5UloggAFIJYb15/EZSARjEAKASx1uw+DxAJQVEAKASxmzP4TGAEBMUBoBCE7VnC0m3rDh1hLcBiESlub54IbSaSUiQADQhi9ujxBSEGdIoFQCGI3aXLl4S1hKBoABSC2H36fFFoCwiKB0AhiN2p05eFj4CgCgAUgti9ev2roCEQVAOAQhC7W3f4LjDs4uWfhs2AoSoAFIK5avG+vMVPXDPEPw6dpWDVAaAQ+OfhRvoHhVcJgEIQ3L53R7iDuEFEg4ZqAVAI5qj1+yrjDeEWMVqwqgE4ITrJYAFvhcBNoiLcs4032uTCE2zieusRGNTpxAjQGAmCJfxaI3bBJTTs/uVGkcbCFRnuVrE2WTo1AjRGAjeLbslBJwHQJ4RgFR8s4y2H28VbqlV6rG8YMVqhzo4AjZ8D3zJmCAedB0B/DnzTqAEQ9AIAhSB227gnROTR0YNpnRG9AUAhCLuG+saRXZkLiLnnfOvYk6vWqxGg8Y+hbx7dpcmgyJHAt4/v2lyAFQSSy3R10Txj7i7dZey4Ma+48F7+BDRVILkEwH4A843q7NFJpKoh6D0A+nSwCMABAAsiIAjTyWFGscrDAVDZEjyL9unuY2ELuuoOB6AhWYJlzUHdhexYbQQ4ADMUS/AtrNK9zAGY5ZZNcC6tzr/QARgwZqt3cfAoWGgc1qsyr3IAhqibYGAdPIzDp2hHjfBMPNwBGFHyBAv7KoysHYAW91zCDibFO5g5AC0A0JdFwbcoxrKmaAczB6AlAApBrGVNsQ5mDoABAIUg1rKmSPMqB8AIgEIQa1kTzKuCjd2RiG6zpDgAkWVN2Mu4KAczByASAB0JYi1rinEwcwASAFAIgmXN6wCWGpsqwsHMATCqNiic5F4AK4zNBQeza0XksDFvbOEOwJhKSTLGt2iniKwZ0ylENeMARJVt9iSSFt+iHSKybozdRzXlAESVbXASyTa+RdtFZMOYu45qzgGIKtvopCGWNVtFZNPoFiYT4QBkrDPJmZY1W0Rkc8YuzU07AOaS2RIaljUbRWSbLTt/tAOQv8Zhf8Sw0eWhCXRl7sIBMJesWwkOQLf0NF+NA2AuWbcSHIBu6Wm+GgfAXLJuJTgA3dLTfDX/AlSTmJ/JwwOoAAAAAElFTkSuQmCC"}})),b.a.createElement(i.View,{style:zn.headerButton},b.a.createElement(i.Text,{numberOfLines:1,style:zn.title},n.name)))}));function Wn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var Hn="#4c9afa",Nn="#f44837",Kn=i.StyleSheet.create({rowContainer:{alignItems:"center"},buttonView:{borderColor:Hn,borderWidth:2,borderRadius:8,justifyContent:"center",alignItems:"center",width:250,height:50,marginTop:30},buttonText:{fontSize:20,color:Hn,textAlign:"center",textAlignVertical:"center"}}),qn=[{path:"/Gallery",name:"Hippy React 示例",component:X(function(e){d()(n,e);var t=Wn(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).state={pressItem:"",dataSource:w()(Ln)},r.renderRow=r.renderRow.bind(se()(r)),r.getRowType=r.getRowType.bind(se()(r)),r.getRowKey=r.getRowKey.bind(se()(r)),r.clickTo=r.clickTo.bind(se()(r)),r}return u()(n,[{key:"componentDidMount",value:function(){var e=this.props.history;"android"===i.Platform.OS&&i.BackAndroid.addListener((function(){return console.log("BackAndroid"),0===e.index&&(e.goBack(),!0)}))}},{key:"getRowType",value:function(e){return this.state.dataSource[e].meta.style}},{key:"getRowKey",value:function(e){return this.state.dataSource[e].path||"".concat(e)}},{key:"feedback",value:function(e){var t=e||"";this.setState({pressItem:t})}},{key:"clickTo",value:function(e){this.props.history.push(e)}},{key:"renderRow",value:function(e){var t=this,n=this.state,r=n.dataSource,o=n.pressItem,a=r[e],l=a.meta.style;return b.a.createElement(i.View,{style:Kn.rowContainer},b.a.createElement(i.View,{onPressIn:function(){return t.feedback(a.path)},onPressOut:function(){return t.feedback()},onClick:function(){return t.clickTo(a.path)},style:[Kn.buttonView,{borderColor:1===l?Hn:Nn,opacity:o===a.path?.5:1}]},b.a.createElement(i.Text,{style:[Kn.buttonText,{color:1===l?Hn:Nn}]},a.name)))}},{key:"render",value:function(){var e=this.state.dataSource;return b.a.createElement(i.ListView,{style:{flex:1,backgroundColor:"#ffffff"},numberOfRows:e.length,renderRow:this.renderRow,getRowType:this.getRowType,getRowKey:this.getRowKey})}}]),n}(g.Component)),meta:{style:1}}].concat(w()(Ln)),Un=function(){return b.a.createElement(i.View,{style:{flex:1,backgroundColor:"#fff"}},b.a.createElement(W,{initialEntries:["/Gallery"]},qn.map((function(e){var t=e.component;return b.a.createElement(q,{key:e.path,exact:!0,path:"".concat(e.path)},b.a.createElement(i.View,{style:{flex:1,backgroundColor:"#fff"}},b.a.createElement(Fn,{route:e}),b.a.createElement(t,{meta:e.meta||{}})))}))))};function Gn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var Qn=i.StyleSheet.create({stepText:{color:"#242424",marginBottom:12},container:{flex:1,backgroundColor:"#fff",justifyContent:"center",padding:20},button:{width:120,height:40,borderRadius:8,backgroundColor:"#4c9afa",alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,textAlign:"center",lineHeight:40,color:"#fff"},buttonContainer:{alignItems:"center",marginTop:12,justifyContent:"center"}}),Yn=function(e){d()(n,e);var t=Gn(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).clickToDebug=r.clickToDebug.bind(se()(r)),r}return u()(n,[{key:"clickToDebug",value:function(){var e=this.props.instanceId;Object(i.callNative)("TestModule","debug",e)}},{key:"render",value:function(){var e=["2. 在前端项目中使用 npm install 安装依赖","3. 在前端项目中运行 npm run hippy:dev 编译调试包","4. 另开一个命令行窗口，运行 npm run hippy:debug 启动调试服务","5. 点击下方的“开始调试”按钮开始调试业务包"];"android"===i.Platform.OS?(e.unshift("1. 使用 USB 线连接 Android 手机和电脑，并启动 Hippy"),e.push("6. 打开 chrome://inspect，需要确保 localhost:38989 在 Discover network targets 右侧的 Configuration 弹窗中，下方会出现设备列表，点击 Inspect 进行调试")):"ios"===i.Platform.OS&&(e.unshift("1. 启动 iOS 模拟器并启动打开 HippyDemo"),e.push("6. 打开 Safari -> Develop 菜单进行调试（需要在预置 -> 高级里打开开发者菜单）"),e.push("注意：每次插拔 USB 线后都需要通过 npm run hippy:debug 重启调试服务"));return b.a.createElement(i.ScrollView,{style:Qn.container},e.map((function(e,t){return b.a.createElement(i.Text,{style:Qn.stepText,key:"steps-".concat(t)},e)})),b.a.createElement(i.View,{style:Qn.buttonContainer},b.a.createElement(i.View,{style:Qn.button,onClick:this.clickToDebug},b.a.createElement(i.Text,{style:Qn.buttonText,numberOfLines:1},"点击调试"))))}}]),n}(g.Component);function Jn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var Xn=i.StyleSheet.create({container:{flex:1}}),Zn=function(e){d()(n,e);var t=Jn(n);function n(e){var r;c()(this,n),r=t.call(this,e);var o=i.Dimensions.get("screen"),a=o.width,l=o.height;return r.state={isVertical:a<l},r.onLayout=r.onLayout.bind(se()(r)),r}return u()(n,[{key:"renderIPhoneStatusBar",value:function(e){var t=this.state.isVertical;return"ios"===i.Platform.OS&&t?b.a.createElement(i.View,{style:[{backgroundColor:e||"#fff"},{height:i.Dimensions.get("screen").statusBarHeight}]}):null}},{key:"onLayout",value:function(e){var t=e.layout,n=t.width,r=t.height;this.setState({isVertical:n<r})}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.statusBarColor,r=null;return this.state.isVertical||(r={paddingHorizontal:De.isiPhoneX()?32:0}),b.a.createElement(i.View,{style:[Xn.container,r],onLayout:this.onLayout},this.renderIPhoneStatusBar(n),b.a.createElement(i.View,{style:{flex:1}},t))}}]),n}(g.Component);function $n(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var er=i.StyleSheet.create({buttonContainer:{height:48,backgroundColor:"white",flexDirection:"row"},button:{height:48,flex:1,alignItems:"center",justifyContent:"center",backgroundColor:"#fff",borderTopWidth:1,borderTopColor:"#eee"},buttonText:{color:"#242424",fontSize:16},blankPage:{flex:1,backgroundColor:"white"}}),tr=function(e){d()(n,e);var t=$n(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).state={pageIndex:0},r}return u()(n,[{key:"render",value:function(){var e,t=this,n=this.state.pageIndex,r=this.props,o=r.isSimulator,a=r.__instanceId__;return b.a.createElement(Zn,{statusBarColor:"#4c9afa"},function(){switch(n){case 0:return b.a.createElement(Un,null);case 1:case 2:return b.a.createElement(Yn,{instanceId:a});default:return b.a.createElement(i.View,{style:er.blankPage})}}(),b.a.createElement(i.View,{style:er.buttonContainer},(e=["API","本地调试"],"ios"!==i.Platform.OS||o||(e=["API"]),e.map((function(e,r){return b.a.createElement(i.View,{key:"button_".concat(e),style:er.button,onClick:function(){return t.setState({pageIndex:r})}},b.a.createElement(i.Text,{style:[er.buttonText,r===n?{color:"#4c9afa"}:null],numberOfLines:1},e))})))))}}]),n}(g.Component);new i.Hippy({appName:"Demo",entryPage:tr,bubbles:!1,silent:!1}).start()},0:function(e,t,n){n("./node_modules/regenerator-runtime/runtime.js"),e.exports=n("./src/main.js")},"dll-reference hippyReactBase":function(e,t){e.exports=hippyReactBase}});