@alifd/meet-react
Version:
Fusion Mobile React UI System Component
6 lines • 894 kB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports["meet-react"]=t(require("react"),require("react-dom")):e["meet-react"]=t(e.React,e.ReactDOM)}(window,(function(e,t){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=130)}([function(t,r){t.exports=e},function(e,t,r){"use strict";r.r(t),function(e,n){r.d(t,"isWeb",(function(){return i})),r.d(t,"isNode",(function(){return a})),r.d(t,"isWeex",(function(){return o})),r.d(t,"isKraken",(function(){return s})),r.d(t,"isMiniApp",(function(){return l})),r.d(t,"isByteDanceMicroApp",(function(){return u})),r.d(t,"isBaiduSmartProgram",(function(){return c})),r.d(t,"isKuaiShouMiniProgram",(function(){return f})),r.d(t,"isWeChatMiniProgram",(function(){return d})),r.d(t,"isQuickApp",(function(){return p})),r.d(t,"isPHA",(function(){return h})),r.d(t,"isFRM",(function(){return v})),r.d(t,"isWindVane",(function(){return g}));var i="undefined"!=typeof window&&"onload"in window,a=void 0!==e&&!(!e.versions||!e.versions.node),o="undefined"!=typeof WXEnvironment&&"Web"!==WXEnvironment.platform,s="undefined"!=typeof __kraken__,l="undefined"!=typeof my&&null!==my&&void 0!==my.alert,u="undefined"!=typeof tt&&null!==tt&&void 0!==tt.showToast,c="undefined"!=typeof swan&&null!==swan&&void 0!==swan.showToast,f="undefined"!=typeof ks&&null!==ks&&void 0!==ks.showToast,d=!u&&"undefined"!=typeof wx&&null!==wx&&(void 0!==wx.request||void 0!==wx.miniProgram),p=null!=n&&void 0!==n.callNative&&!o,h=i&&"object"==typeof pha,v=l&&i&&my.isFRM,m="object"==typeof navigator?navigator.userAgent||navigator.swuserAgent:"",g=/.+AliApp\((\w+)\/((?:\d+\.)+\d+)\).* .*(WindVane)(?:\/((?:\d+\.)+\d+))?.*/.test(m)&&i&&"undefined"!=typeof WindVane&&void 0!==WindVane.call;t.default={isWeb:i,isNode:a,isWeex:o,isKraken:s,isMiniApp:l,isByteDanceMicroApp:u,isBaiduSmartProgram:c,isKuaiShouMiniProgram:f,isWeChatMiniProgram:d,isQuickApp:p,isPHA:h,isWindVane:g,isFRM:v}}.call(this,r(38),r(134))},function(e,t,r){"use strict";r.r(t),r.d(t,"__extends",(function(){return i})),r.d(t,"__assign",(function(){return a})),r.d(t,"__rest",(function(){return o})),r.d(t,"__decorate",(function(){return s})),r.d(t,"__param",(function(){return l})),r.d(t,"__esDecorate",(function(){return u})),r.d(t,"__runInitializers",(function(){return c})),r.d(t,"__propKey",(function(){return f})),r.d(t,"__setFunctionName",(function(){return d})),r.d(t,"__metadata",(function(){return p})),r.d(t,"__awaiter",(function(){return h})),r.d(t,"__generator",(function(){return v})),r.d(t,"__createBinding",(function(){return m})),r.d(t,"__exportStar",(function(){return g})),r.d(t,"__values",(function(){return y})),r.d(t,"__read",(function(){return b})),r.d(t,"__spread",(function(){return _})),r.d(t,"__spreadArrays",(function(){return w})),r.d(t,"__spreadArray",(function(){return O})),r.d(t,"__await",(function(){return x})),r.d(t,"__asyncGenerator",(function(){return E})),r.d(t,"__asyncDelegator",(function(){return P})),r.d(t,"__asyncValues",(function(){return M})),r.d(t,"__makeTemplateObject",(function(){return S})),r.d(t,"__importStar",(function(){return j})),r.d(t,"__importDefault",(function(){return C})),r.d(t,"__classPrivateFieldGet",(function(){return T})),r.d(t,"__classPrivateFieldSet",(function(){return N})),r.d(t,"__classPrivateFieldIn",(function(){return A})),r.d(t,"__addDisposableResource",(function(){return D})),r.d(t,"__disposeResources",(function(){return L}));var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var a=function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function o(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function s(e,t,r,n){var i,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,r,o):i(t,r))||o);return a>3&&o&&Object.defineProperty(t,r,o),o}function l(e,t){return function(r,n){t(r,n,e)}}function u(e,t,r,n,i,a){function o(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,l=n.kind,u="getter"===l?"get":"setter"===l?"set":"value",c=!t&&e?n.static?e:e.prototype:null,f=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),d=!1,p=r.length-1;p>=0;p--){var h={};for(var v in n)h[v]="access"===v?{}:n[v];for(var v in n.access)h.access[v]=n.access[v];h.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(e||null))};var m=(0,r[p])("accessor"===l?{get:f.get,set:f.set}:f[u],h);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(s=o(m.get))&&(f.get=s),(s=o(m.set))&&(f.set=s),(s=o(m.init))&&i.unshift(s)}else(s=o(m))&&("field"===l?i.unshift(s):f[u]=s)}c&&Object.defineProperty(c,n.name,f),d=!0}function c(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function f(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{l(n.next(e))}catch(e){a(e)}}function s(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}l((n=n.apply(e,t||[])).next())}))}function v(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}var m=Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function g(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||m(t,e,r)}function y(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o}function _(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function w(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)n[i]=a[o];return n}function O(e,t,r){if(r||2===arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function x(e){return this instanceof x?(this.v=e,this):new x(e)}function E(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),a=[];return n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n;function o(e){i[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||s(e,t)}))})}function s(e,t){try{(r=i[e](t)).value instanceof x?Promise.resolve(r.value.v).then(l,u):c(a[0][2],r)}catch(e){c(a[0][3],e)}var r}function l(e){s("next",e)}function u(e){s("throw",e)}function c(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function P(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:x(e[n](t)),done:!1}:i?i(t):t}:i}}function M(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=y(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,i,(t=e[r](t)).done,t.value)}))}}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var k=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function j(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&m(t,e,r);return k(t,e),t}function C(e){return e&&e.__esModule?e:{default:e}}function T(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function N(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}function A(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function D(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if("function"!=typeof n)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var I="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function L(e){function t(t){e.error=e.hasError?new I(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function r(){for(;e.stack.length;){var n=e.stack.pop();try{var i=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(i).then(r,(function(e){return t(e),r()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}t.default={__extends:i,__assign:a,__rest:o,__decorate:s,__param:l,__metadata:p,__awaiter:h,__generator:v,__createBinding:m,__exportStar:g,__values:y,__read:b,__spread:_,__spreadArrays:w,__spreadArray:O,__await:x,__asyncGenerator:E,__asyncDelegator:P,__asyncValues:M,__makeTemplateObject:S,__importStar:j,__importDefault:C,__classPrivateFieldGet:T,__classPrivateFieldSet:N,__classPrivateFieldIn:A,__addDisposableResource:D,__disposeResources:L}},function(e,t,r){"use strict";t.__esModule=!0;var n=r(24);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||(t[e]=n[e]))}));var i=r(133);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var a=r(52);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}));var o=r(135);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}))},function(e,t,r){var n;
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)&&n.length){var o=i.apply(null,n);o&&e.push(o)}else if("object"===a)for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=r(2),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(0)),o=(n=r(4))&&n.__esModule?n:{default:n},s=r(3);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r(165);var c=(0,a.forwardRef)((function(e,t){var r,n=(0,a.useRef)(null),l=e.onFirstAppear,c=e.prefix,f=void 0===c?"mt-":c,d=e.className,p=e.hasSafeArea,h=e.onAppear,v=e.withoutTouch,m=void 0===v||v,g=(0,i.__rest)(e,["onFirstAppear","prefix","className","hasSafeArea","onAppear","withoutTouch"]),y=(0,o.default)(d,((r={})[f+"view-safe-area"]=p,r));if(s.isStrictMiniApp)return m?(0,a.createElement)("view",u({},g,{className:y,onAppear:h,onDisappear:g.onDisappear,onFirstAppear:l,ref:t})):(0,a.createElement)("div",u({},g,{className:y,onAppear:h,onDisappear:g.onDisappear,onFirstAppear:l,ref:t}));var b=h;return l&&(b=function(e){h&&h(e),n.triggeredAppear?n.triggeredAppear=!0:l&&l(e)}),(0,a.createElement)("div",u({},g,{className:y,onAppear:b,ref:t}))}));c.displayName="View";t.default=c},function(e,t,r){"use strict";t.__esModule=!0;var n=r(1);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||(t[e]=n[e]))}))},function(e,t,r){"use strict";r.r(t),r.d(t,"View",(function(){return u})),r.d(t,"Text",(function(){return f})),r.d(t,"Icon",(function(){return _})),r.d(t,"Image",(function(){return g})),r.d(t,"Slider",(function(){return J})),r.d(t,"ScrollView",(function(){return he})),r.d(t,"TextInput",(function(){return Ae})),r.d(t,"Link",(function(){return Re})),r.d(t,"Modal",(function(){return Ue})),r.d(t,"Picture",(function(){return mt})),r.d(t,"Recyclerview",(function(){return nr})),r.d(t,"RecyclerView",(function(){return nr})),r.d(t,"Countdown",(function(){return lr})),r.d(t,"Embed",(function(){return cr})),r.d(t,"Video",(function(){return pr})),r.d(t,"Canvas",(function(){return mr})),r.d(t,"Swiper",(function(){return Ln})),r.d(t,"SwiperSlide",(function(){return Rn})),r.d(t,"Portal",(function(){return Fn}));var n=r(2),i=r(0),a=r.n(i),o=r(37),s=r.n(o),l=(r(139),Object(i.forwardRef)((function(e,t){var r=e.className,i=e.style,o=Object(n.__rest)(e,["className","style"]);return a.a.createElement("div",Object.assign({},o,{ref:t,className:s()("one-view",r),style:i}))})));l.displayName="View";var u=l,c=(r(140),Object(i.forwardRef)((function(e,t){var r=e.className,i=e.style,o=e.numberOfLines,s=e.children,l=e.onPress,u=e.onClick,c=Object(n.__rest)(e,["className","style","numberOfLines","children","onPress","onClick"]),f=u||l,d="string"==typeof o?parseInt(o,10):o,p="";null!=s&&(p=Array.isArray(s)?s.join(""):s.toString());var h=["one-text",r];return d&&(h.push("".concat("one-text","--overflow-hidden")),1===d?h.push("".concat("one-text","--singleline")):h.push("".concat("one-text","--multiline"))),a.a.createElement("span",Object.assign({},c,{ref:t,className:h.join(" "),style:Object.assign(Object.assign({},i),{WebkitLineClamp:d>1?d:void 0}),onClick:f}),p)})));c.displayName="Text";var f=c,d=r(6);function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function h(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var m={};var g=function(e){var t=e.source,r=e.fallbackSource,o=e.onLoad,s=e.onError,l=e.style,u=e.resizeMode,c=Object(n.__rest)(e,["source","fallbackSource","onLoad","onError","style","resizeMode"]);t=t||m,r=r||m;var f=c,d=v(Object(i.useState)({}),2),p=d[0],h=d[1];f.onError=Object(i.useCallback)((function(e){void 0===p.uri&&h({uri:t.uri}),s&&s(e)}),[t.uri,s,p]),f.onLoad=Object(i.useCallback)((function(e){e&&e.success||e&&e.currentTarget&&e.currentTarget.naturalWidth>1&&e.currentTarget.naturalHeight>1?o&&o(e):s&&s(e)}),[o,s]),void 0!==p.uri&&(p.uri!==t.uri?p.uri=void 0:null!=r.uri&&(t=r));var g=t,y=g.width,b=g.height,_=g.uri;return f.src=_,f.style=Object.assign({width:y,height:b},l),(u=u||f.resizeMode)&&(f.style.objectFit=u),a.a.createElement("img",Object.assign({},f))},y=new Map;var b=Object(i.forwardRef)((function(e,t){var r=e.source,i=(r=void 0===r?{}:r).uri,o=r.codePoint,s=e.fontFamily,l=e.style,u=void 0===l?{}:l,c=Object(n.__rest)(e,["source","fontFamily","style"]);if(i&&!o&&!s)return a.a.createElement(g,Object.assign({},c,{source:{uri:i},style:u}));if(!s)return a.a.createElement(f,Object.assign({},c,{ref:t,style:u}),o);var p=y.get(s);if(p){if(p!==i)return console.error("font-family ".concat(s," should be unique!")),null}else{y.set(s,i);var h="url('".concat(i,"')");if(d.isWeb)if(window.FontFace){var v=new window.FontFace(s,h);document.fonts.add(v)}else{var m="@font-face {\n src: ".concat(h,";\n font-family: ").concat(s,";\n }"),b=document.createElement("style");b.type="text/css",b.appendChild(document.createTextNode(m)),document.head.appendChild(b)}}return a.a.createElement(f,Object.assign({},c,{ref:t,style:Object.assign(Object.assign({},u),{fontFamily:s})}),o)}));b.createIconSet=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,o=Object(i.forwardRef)((function(i,o){var s=i.name,l=i.className,u=i.codePoint,c=i.style,f=void 0===c?{}:c,d=Object(n.__rest)(i,["name","className","codePoint","style"]);return a.a.createElement(b,Object.assign({},d,{ref:o,className:l,style:f,source:{uri:r,codePoint:u||e[s]},fontFamily:t}))}));return o.displayName="IconFont",o},b.displayName="Icon";var _=b;function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(e){var t=function(e,t){if("object"!=O(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=O(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==O(t)?t:String(t)}function E(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,x(n.key),n)}}function P(e,t,r){return t&&E(e.prototype,t),r&&E(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function M(e,t){return(M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function S(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&M(e,t)}function k(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return k(e)}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var T=r(20),N=r.n(T),A=r(8),D=r.n(A),I=r(125),L=function(e,t,r,n){return Math.abs(e)>r&&Math.abs(t)<n};function R(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 r,n=C(e);if(t){var i=C(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return j(this,r)}}var F="SWIPE_UP",W="SWIPE_DOWN",B="SWIPE_LEFT",V="SWIPE_RIGHT",G=function(e){S(r,e);var t=R(r);function r(e){var n;return w(this,r),(n=t.call(this,e)).state={swipe:{direction:null,distance:0,velocity:0}},n.swipeDetected=!1,n.velocityProp=null,n.distanceProp=null,n.swipeDirection=null,n.panResponder=I.create({onStartShouldSetPanResponder:function(){return!0},onMoveShouldSetPanResponder:function(){return!0},onPanResponderMove:function(e,t){var r=t.dx,i=t.dy,a=t.vx,o=t.vy,s=n.props,l=s.onSwipeBegin,u=s.onSwipe,c=s.horizontal,f=s.vertical,d=s.initialVelocityThreshold,p=s.horizontalThreshold,h=s.verticalThreshold,v=s.left,m=s.right,g=s.up,y=s.down;if(n.props.continuous||!n.swipeDetected){var b=!1,_=!1,w=!1;if(n.swipeDetected||(b=!0,_=!!c&&L(a,i,d,h),w=!!f&&L(o,r,d,p),_?((void 0===e.cancelable||e.cancelable)&&e.preventDefault&&e.preventDefault(),n.velocityProp="vx",n.distanceProp="dx",(c||v)&&r<0?n.swipeDirection=B:(c||m)&&r>0&&(n.swipeDirection=V)):w&&(n.velocityProp="vy",n.distanceProp="dy",(f||g)&&i<0?n.swipeDirection=F:(f||y)&&i>0&&(n.swipeDirection=W)),n.swipeDirection&&(n.swipeDetected=!0)),n.swipeDetected){var O=t[n.distanceProp],x=t[n.velocityProp],E={direction:n.swipeDirection,distance:O,velocity:x};b?l&&l(E):u&&u(E),n.props.setGestureState&&n.setState({swipe:E})}}},onPanResponderTerminationRequest:function(){return!0},onPanResponderTerminate:n.handleTerminationAndRelease.bind(k(n)),onPanResponderRelease:n.handleTerminationAndRelease.bind(k(n))}),n}return P(r,[{key:"render",value:function(){var e=this.props,t=(e.onSwipeBegin,e.onSwipe,e.onSwipeEnd,Object(n.__rest)(e,["onSwipeBegin","onSwipe","onSwipeEnd"])),r=this.props.setGestureState?this.state:null;return a.a.createElement(u,Object.assign({},this.panResponder.panHandlers,{style:Object.assign(Object.assign({},{alignSelf:"flex-start"}),t.handlerStyle)}),a.a.createElement(u,Object.assign({},t,r),this.props.children))}},{key:"handleTerminationAndRelease",value:function(){if(this.swipeDetected){var e=this.props.onSwipeEnd;e&&e({direction:this.swipeDirection,distance:this.state.swipe.distance,velocity:this.state.swipe.velocity})}this.swipeDetected=!1,this.velocityProp=null,this.distanceProp=null,this.swipeDirection=null}}]),r}(i.Component);G.propTypes={onSwipeBegin:A.func,onSwipe:A.func,onSwipeEnd:A.func,swipeDecoratorStyle:A.object},G.defaultProps={horizontal:!0,vertical:!0,left:!1,right:!1,up:!1,down:!1,continuous:!0,initialVelocityThreshold:.2,verticalThreshold:1,horizontalThreshold:5,setGestureState:!0,handlerStyle:{}};var z=G,H=r(28),U=r.n(H),Y=/"[^"]+"|'[^']+'|url\([^\)]+\)|(\d*\.?\d+)rpx/g,X={viewportWidth:750,viewportUnit:"vw",fontViewportUnit:"vw",unitPrecision:5};function $(e,t,r){return function(n,i){if(!i)return n;var a,o,s,l,u=parseFloat(i);return(a=u/r*100,o=e.unitPrecision,s=Math.pow(10,o+1),l=Math.floor(a*s),10*Math.round(l/10)/s)+t}}var K=function(e,t){var r=Object.assign({},X,t);if(-1!==e.indexOf("rpx"))return e.replace(Y,$(r,r.viewportUnit,r.viewportWidth))};r(141);function q(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 r,n=C(e);if(t){var i=C(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return j(this,r)}}var Z=function(e){S(r,e);var t=q(r);function r(e){var n;return w(this,r),(n=t.call(this,e)).onSwipeBegin=function(){n.isSwiping=!0,clearInterval(n.autoPlayTimer)},n.onSwipe=function(e){e.direction;var t=e.distance;e.velocity;if(!n.isLoopEnd()){var r=t/document.documentElement.clientWidth*750-n.offsetX,i=Object(T.findDOMNode)(n.swipeView.current),a="translate3d(".concat(K(r+"rpx"),", 0, 0)");i.style.transform=a,i.style.webkitTransform=a}},n.onSwipeEnd=function(e){var t=e.direction;e.distance,e.velocity;n.isSwiping=!1;var r=n.total,i=n.loopedIndex();n.isLoopEnd()&&(i===r-1&&"SWIPE_LEFT"===t||0===i&&"SWIPE_RIGHT"===t)||n.slideTo(n.index,t),n.props.autoPlay&&n.autoPlay()},n.getPages=function(){var e=n.props.children;return i.Children.map(e,(function(e,t){var r=Object(i.createRef)(),o={width:K(n.width+"rpx"),height:K(n.height+"rpx"),left:K(t*n.width+"rpx")};return n.childRefs[t]=r,a.a.createElement(u,{ref:r,className:U()("one-slider-children","childWrap"+t),style:o,key:t},e)}))},n.index=e.index,n.height=parseFloat(e.height),n.width=parseFloat(e.width),n.loopIdx=e.index,n.offsetX=n.index*n.width,n.isSwiping=!1,n.swipeView=Object(i.createRef)(),n.childRefs=[],n.total=0,n.autoPlayTimer=null,n.isAutoPlay=!1,n}return P(r,[{key:"componentDidMount",value:function(){this.props.autoPlay&&this.total>1&&(this.isAutoPlay=!0,this.autoPlay())}},{key:"componentDidUpdate",value:function(){!this.isAutoPlay&&this.props.autoPlay&&this.total>1&&(this.isAutoPlay=!0,this.autoPlay())}},{key:"componentWillUnmount",value:function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)}},{key:"autoPlay",value:function(){var e=this,t=this.props.autoPlayInterval;if(!this.isSwiping){this.autoPlayTimer&&clearInterval(this.autoPlayTimer);this.autoPlayTimer=setInterval((function(){e.isLoopEnd()||e.slideTo(e.index,"SWIPE_LEFT")}),t)}}},{key:"slideTo",value:function(e,t){if(!this.isSwiping){this.index=t?"SWIPE_LEFT"===t?e+1:e-1:e,this.offsetX=this.index*this.width;var r=this.loopedIndex(),n=Object(T.findDOMNode)(this.swipeView.current),i="translate3d(".concat(K(-1*this.offsetX+"rpx"),", 0, 0)");n.style.transform=i,n.style.webkitTransform=i,this.loopIdx=this.index<0&&0!==r?this.total-r:r,this.childRefs[this.loopIdx].current.style.left=this.offsetX/750*document.documentElement.clientWidth+"px",this.props.onChange&&this.props.onChange({index:this.loopIdx}),this.forceUpdate(),this.props.autoPlay&&this.autoPlay()}}},{key:"isLoopEnd",value:function(){var e=this.loopedIndex(),t=this.total;return!(this.props.loop||e!==t-1&&0!==e)}},{key:"loopedIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.index,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.total;return Math.abs(e)%t}},{key:"renderPagination",value:function(){if(this.total<=1)return null;for(var e=this.props,t=e.paginationStyle,r=void 0===t?{}:t,o=e.activeDot,s=e.normalDot,l=[],c=r.itemSize,f=r.itemColor,d=r.itemSelectedColor,p=Object(n.__rest)(r,["itemSize","itemColor","itemSelectedColor"]),h={width:c,height:c},v=o||a.a.createElement(u,{className:"one-slider-dot one-slider-dot-active",style:Object.assign({backgroundColor:d},h)}),m=s||a.a.createElement(u,{className:"one-slider-dot",style:Object.assign({backgroundColor:f},h)}),g=this.loopIdx,y=0;y<this.total;y++)l.push(y===g?Object(i.cloneElement)(v,{key:y}):Object(i.cloneElement)(m,{key:y}));return a.a.createElement(u,{className:"one-slider-pagination",style:p},l)}},{key:"renderSwipeView",value:function(e){var t=this.props,r=t.initialVelocityThreshold,n=t.verticalThreshold,i=t.vertical,o=t.horizontalThreshold,s={width:K(this.width+"rpx"),height:K(this.height+"rpx")};return this.total>1?a.a.createElement(z,{className:"one-slider-swipe-wrapper",style:s,onSwipeBegin:this.onSwipeBegin,onSwipeEnd:this.onSwipeEnd,onSwipe:this.onSwipe,initialVelocityThreshold:r,verticalThreshold:n,vertical:i,horizontalThreshold:o},a.a.createElement(u,{ref:this.swipeView,className:"one-slider-swipe",style:Object.assign(Object.assign({},s),{transform:"translate3d(".concat(K(-1*this.offsetX+"rpx"),", 0, 0)")})},e)):a.a.createElement(u,{ref:this.swipeView,className:"one-slider-swipe",style:s},e)}},{key:"render",value:function(){var e=this.props,t=e.style,r=e.showsPagination,n=void 0===r||r,o=e.className,s=e.children;return this.total=i.Children.toArray(s).length,a.a.createElement(u,{style:t,className:U()("one-slider",o)},this.renderSwipeView(this.getPages()),n&&this.renderPagination())}}]),r}(i.Component);Z.defaultProps={horizontal:!0,showsPagination:!0,loop:!0,autoPlay:!1,autoPlayInterval:3e3,index:0,paginationStyle:{},initialVelocityThreshold:.7,verticalThreshold:10,horizontalThreshold:10,vertical:!1},Z.propTypes={onChange:A.func,paginationStyle:A.object};var Q=Z;Q.Item=i.Fragment;var J=Q;function ee(e,t,r){return(t=x(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var te=d.isWeb&&void 0!==window.requestAnimationFrame?window.requestAnimationFrame:function(e){return setTimeout(e,16)},re=d.isWeb&&void 0!==window.cancelAnimationFrame?window.cancelAnimationFrame:clearTimeout,ne="start",ie="end",ae="run",oe="stop",se={easeOutSine:function(e){return Math.sin(e*Math.PI/2)}},le=function(e){},ue=function(){function e(t){w(this,e),this.config={easing:"linear",duration:1/0,onStart:le,onRun:le,onStop:le,onEnd:le},this.isfinished=!1,this.config=Object.assign(Object.assign({},this.config),t)}return P(e,[{key:"run",value:function(){var e=this.config,t=e.duration,r=e.onStart,n=e.onRun;t<=1&&(this.isfinished=!0,n({percent:1}),this.stop()),this.isfinished||(this._hasFinishedPercent=this._stop&&this._stop.percent||0,this._stop=null,this.start=Date.now(),this.percent=0,r({percent:0,type:ne}),this.easingFn=se[this.config.easing],this._run())}},{key:"stop",value:function(){var e=this.config.onEnd;this._stop={percent:this.percent,now:this.now},e({percent:1,t:this.t,type:ie}),re(this._raf)}},{key:"_run",value:function(){var e=this,t=this.config,r=t.onRun,n=t.onStop;this._raf&&re(this._raf),this._raf=te((function(){if(e.now=Date.now(),e.t=e.now-e.start,e.duration=e.now-e.start>=e.config.duration?e.config.duration:e.now-e.start,e.progress=e.easingFn(e.duration/e.config.duration),e.percent=e.duration/e.config.duration+e._hasFinishedPercent,e.percent>=1||e._stop)return e.percent=e._stop&&e._stop.percent?e._stop.percent:1,e.duration=e._stop&&e._stop.duration?e._stop.duration:e.duration,r({percent:e.progress,originPercent:e.percent,t:e.t,type:ae}),n({percent:e.percent,t:e.t,type:oe}),void(e.percent>=1&&(e.isfinished=!0,e.stop()));r({percent:e.progress,originPercent:e.percent,t:e.t,type:ae}),e._run()}))}}]),e}();function ce(e,t){var r,n,i,a,o=0;function s(){a=0,o=+new Date,i=e.apply(r,n),r=null,n=null}return function(){r=this,n=arguments;var e=(new Date).getTime()-o;return a||(e>=t?s():a=setTimeout(s,t-e)),i}}r(147);var fe="one-scrollview";function de(e,t,r,n,i){var a=e.current,o=a.scrollLeft,s=a.scrollTop;n?new ue({duration:i,easing:"easeOutSine",onRun:function(n){t>=0&&(e.current.scrollLeft=o+n.percent*(t-o)),r>=0&&(e.current.scrollTop=s+n.percent*(r-s))}}).run():(t>=0&&(e.current.scrollLeft=t),r>=0&&(e.current.scrollTop=r))}var pe=Object(i.forwardRef)((function(e,t){var r=e.className,n=e.style,o=e.horizontal,s=e.contentContainerStyle,l=e.scrollEventThrottle,c=e.showsHorizontalScrollIndicator,f=e.showsVerticalScrollIndicator,d=e.onEndReached,p=e.onEndReachedThreshold,h=e.onScroll,v=e.children,m=Object(i.useRef)(0),g=Object(i.useRef)(0),y=Object(i.useRef)(0),b=Object(i.useRef)(null),_=Object(i.useRef)(null),w=function(t){if(e.onScroll&&(t.nativeEvent={get contentOffset(){return{x:t.target.scrollLeft,y:t.target.scrollTop}},get contentSize(){return{width:t.target.scrollWidth,height:t.target.scrollHeight}}},h(t)),d){var r=b.current;y.current=o?r.offsetWidth:r.offsetHeight;var n=o?r.scrollWidth:r.scrollHeight,i=o?r.scrollLeft:r.scrollTop,a=n-i-y.current<p,s=i>m.current,l=n!=g.current;a&&s&&l&&(g.current=n,e.onEndReached(t)),m.current=i}};if(Object(i.useImperativeHandle)(t,(function(){return{_nativeNode:b.current,resetScroll:function(){g.current=0,m.current=0},scrollTo:function(e){var t=e||{},r=t.x,n=void 0===r?0:r,i=t.y,a=void 0===i?0:i,o=t.animated,s=void 0===o||o,l=t.duration,u=void 0===l?400:l,c=document.documentElement.clientWidth/750;de(b,n*c,a*c,s,u)},scrollIntoView:function(e){var t=e||{},r=t.id,n=t.animated,i=void 0===n||n,a=t.duration,o=void 0===a?400:a;if(!r)throw new Error("Params missing id.");var s=document.getElementById(r);s&&de(b,s.offsetLeft,s.offsetTop,i,o)}}})),n){var O=["alignItems","justifyContent"].filter((function(e){return void 0!==n[e]}));0!==O.length&&console.warn("ScrollView child layout ("+JSON.stringify(O)+") must be applied through the contentContainerStyle prop.")}var x=a.a.createElement(u,{ref:_,className:U()(ee(ee({},"".concat(fe,"-content-container-horizontal"),o),"".concat(fe,"-webcontainer"),!o)),style:s},v),E=Object.assign({},n);null!==E.height&&void 0!==E.height||(E.flex=1);var P=U()(fe,"".concat(fe,"-").concat(o?"horizontal":"vertical"),r);if(!(o?c:f)&&"undefined"!=typeof document&&"function"==typeof document.getElementById&&!document.getElementById("one-scrollview-style")){var M=document.createElement("style");M.id="one-scrollview-style",document.head.appendChild(M),M.innerHTML=".".concat(fe,"::-webkit-scrollbar{display: none;}")}E.WebkitOverflowScrolling="touch",o?(E.overflowX="scroll",E.overflowY="hidden"):(E.overflowX="hidden",E.overflowY="scroll");var S=Object.assign({},e);return delete S.onEndReachedThreshold,a.a.createElement(u,Object.assign({},S,{ref:b,className:P,style:E,onScroll:l?ce(w,l):w}),x)}));pe.defaultProps={scrollEventThrottle:50,onEndReachedThreshold:500,showsHorizontalScrollIndicator:!0,showsVerticalScrollIndicator:!0,className:"rax-scrollview"},pe.displayName="ScrollView";var he=pe,ve=(r(148),{default:"text","ascii-capable":"text","numbers-and-punctuation":"number",url:"url","number-pad":"number","phone-pad":"tel","name-phone-pad":"text","email-address":"email","decimal-pad":"number",twitter:"text","web-search":"search",numeric:"number"}),me=r(74),ge={stretch:"stretch","flex-start":"start","flex-end":"end",center:"center"},ye={row:"horizontal",column:"vertical"},be={"flex-start":"start","flex-end":"end",center:"center","space-between":"justify","space-around":"justify"},_e={display:!0,flex:!0,alignItems:!0,alignSelf:!0,flexDirection:!0,justifyContent:!0,flexWrap:!0},we={isFlexProp:function(e){return _e[e]},display:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.display="flex"===e?["-webkit-box","-webkit-flex","flex"]:e,t},flex:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.webkitBoxFlex=e,t.webkitFlex=e,t.flex=e,t},flexWrap:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.webkitFlexWrap=e,t.flexWrap=e,t},alignItems:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.webkitBoxAlign=ge[e],t.webkitAlignItems=e,t.alignItems=e,t},alignSelf:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.webkitAlignSelf=e,t.alignSelf=e,t},flexDirection:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.webkitBoxOrient=ye[e],t.webkitFlexDirection=e,t.flexDirection=e,t},justifyContent:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.webkitBoxPack=be[e],t.webkitJustifyContent=e,t.justifyContent=e,t}},Oe=/^on[A-Z]/,xe=Object.prototype.hasOwnProperty;function Ee(e,t){return xe.call(e,t)}function Pe(e,t){if(d.isWeb){var r={};for(var n in t){var i=t[n];we.isFlexProp(n)?we[n](i,r):r[n]=Object(me.convertUnit)(i,n)}for(var a in r){var o=r[a];if(Array.isArray(o))for(var s=0;s<o.length;s++)e.style[a]=o[s];else e.style[a]=o}}}function Me(e,t,r,n){if(d.isWeb)return e.addEventListener(t,r)}function Se(e,t,r){if(d.isWeb){if("dangerouslySetInnerHTML"===t)return e.innerHTML=r.__html;if("className"===t&&(t="class"),t in e)try{e[t]=r}catch(n){e.setAttribute(t,r)}else e.setAttribute(t,r)}}function ke(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var r in t)if(Ee(t,r)){var n=t[r];if("children"!==r&&null!=n)if("style"===r)Pe(e,n);else if(Oe.test(r)){var i=r.slice(2).toLowerCase();Me(e,i,n)}else Se(e,r,n)}}var je=0;function Ce(e){return d.isWeex?e.value:e.target.value}function Te(e){var t=Ce(e);return{nativeEvent:{text:t},originalEvent:e,value:t,target:e.target}}var Ne=Object(i.forwardRef)((function(e,t){var r=Object(i.useRef)(null),n=Object(i.useRef)("one-textinput-placeholder-".concat(je++)),o=Object(i.useRef)(!1),s=v(Object(i.useState)(0),2)[1],l=e.className,u=e.accessibilityLabel,c=e.autoComplete,f=e.editable,p=e.keyboardType,h=e.maxNumberOfLines,m=e.maxLength,g=e.multiline,y=e.numberOfLines,b=e.confirmType,_=e.randomNumber,w=e.showCount,O=void 0===w||w,x=e.selectionStart,E=e.selectionEnd,P=e.composition,M=void 0!==P&&P,S=e.onCompositionStart,k=e.onCompositionEnd,j=e.onBlur,C=e.onFocus,T=e.onChange,N=e.onChangeText,A=e.onInput,D=e.password,I=e.secureTextEntry,L=e.style,R=e.placeholderColor,F=void 0===R?"#999999":R,W=e.value,B=e.defaultValue,V=e.controlled,G=void 0===V?function(e){return"value"in e}(e):V,z=v(Object(i.useState)(G?W:B),2),H=z[0],U=z[1],Y=D||I?"password":void 0===ve[p]?p:ve[p];if(d.isMiniApp&&!d.isWeb){["text","number","idcard","digit"].includes(Y)||my.canIUse("input.type.".concat(Y))||(Y="text")}var X=function(e){T&&T(Te(e)),N&&N(Ce(e))},$=function(e){U(Ce(e)),o.current||X(e)},K=Object.assign(Object.assign({},e),{"aria-label":u,autoComplete:c&&"on",className:["one-textinput",n.current,l||""].filter((function(e){return e})).join(" "),maxlength:m,onChange:(T||N)&&$,onInput:function(e){A&&A(Te(e)),d.isWeChatMiniProgram||s((function(e){return e+1}))},onBlur:j&&function(e){j(Te(e))},onFocus:C&&function(e){C(Te(e))},onCompositionStart:function(e){M&&(o.current=!0),S&&S(Te(e))},onCompositionEnd:function(e){M&&(o.current=!1),k&&k(Te(e)),M&&X(e)},ref:r}),q=Boolean(void 0!==f&&!f),Z=y||h;return Object(i.useImperativeHandle)(t,(function(){return{_nativeNode:r.current,focus:function(){r.current.focus()},blur:function(){r.current.blur()},clear:function(){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";ke(r.current,{value:e})}("")}}})),Object(i.useEffect)((function(){G&&W!==H&&!o.current&&U(W)}),[W]),g?a.a.createElement(i.Fragment,null,a.a.createElement("style",{"x-if":(d.isWeb||d.isNode)&&F,dangerouslySetInnerHTML:{__html:".".concat(n.current,"::placeholder {\n color: ").concat(F,"\n }")}}),a.a.createElement("textarea",Object.assign({},K,{style:Object.assign(Object.assign({},L),{placeholderColor:F}),row:Z,rows:Z,disabled:q,onChange:$,value:H,"confirm-type":b,"show-count":O}),!d.isWeex&&(H||""))):a.a.createElement(i.Fragment,null,a.a.createElement("style",{"x-if":(d.isWeb||d.isNode)&&F,dangerouslySetInnerHTML:{__html:".".concat(n.current,"::placeholder {\n color: ").concat(F,"\n }")}}),a.a.createElement("input",Object.assign({},K,{style:Object.assign(Object.assign({},L),{placeholderColor:F}),type:Y,disabled:q,value:H,"confirm-type":b,"random-Number":_,"selection-start":x,"selection-end":E})))}));Ne.displayName="TextInput";var Ae=Ne,De=Object(i.forwardRef)((function(e,t){var r=e.className,i=e.style,o=void 0===i?{}:i,s=e.onClick,l=e.onPress,u=e.children,c=e.miniappHref,p=void 0===c?"":c,h=Object(n.__rest)(e,["className","style","onClick","onPress","children","miniappHref"]),m={color:o.color,lines:o.lines,fontSize:o.fontSize,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration||"none",textAlign:o.textAlign,fontFamily:o.fontFamily,textOverflow:o.textOverflow};if((d.isMiniApp||d.isWeChatMiniProgram)&&!d.isWeb){var g=v(p.split(":"),2),y=g[0],b=g[1];return a.a.createElement("view",{onClick:s||l},a.a.createElement("navigator",Object.assign({"open-type":y,url:b,className:r,style:o},h),u))}var _=s||l;return a.a.createElement("a",Object.assign({},h,{ref:t,className:r,style:o,onClick:_}),"string"==typeof u?a.a.createElement(f,{style:m},u):u)}));De.displayName="Link";var Ie,Le,Re=De,Fe=r(126),We=r.n(Fe),Be=(r(161),0);function Ve(e){d.isWeb&&e.stopPropagation()}function Ge(e){d.isWeb&&(e.preventDefault(),e.stopPropagation())}function ze(e){var t=e.visible,r=e.onMaskClick,n=e.maskCanBeClick,o=void 0===n||n,s=e.maskStyle,l=void 0===s?{}:s,c=e.contentStyle,f=void 0===c?{}:c,p=e.onShow,h=e.onHide,m=e.children,g=e.animation,y=void 0===g||g,b=e.delay,_=void 0===b?0:b,w=e.duration,O=void 0===w?[300,300]:w;"number"==typeof O?O=[O,O]:1===O.length&&(O=[O[0],O[0]]);var x={current:null,__animationValid:!1,__timer:null,__pendingShow:null,__pendingHide:null},E=v(Object(i.useState)(!1),2),P=E[0],M=E[1],S=function(e,t){x.__animationValid=!0;var r=e?O[0]:O[1];x.__timer=setTimeout((function(){x.__animationValid=!1,e&&x.current&&(x.current.style.opacity="1"),t&&t()}),r),We()(x.current,{opacity:e?1:0},{timingFunction:"ease",delay:_,duration:r},(function(){x.__animationValid&&(clearTimeout(x.__timer),e&&x.current&&(x.current.style.opacity="1"),t&&t())}))},k=function(){x.__pendingShow||(x.__pendingShow=!0,x.__pendingHide?x.__pendingHide=!1:Be++,d.isWeb&&(1===Be&&(Le=Ie.style.overflow),Ie.style.overflow="hidden"),M(!0),y?(x.current.style.opacity="0",S(!0,(function(){p&&p()}))):(x.current.style.opacity="1",p&&p()))},j=function(){d.isWeb&&1===Be&&(Ie.style.overflow=Le),Be--,M(!1),h&&h()},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y;P&&!x.__pendingHide&&(x.__pendingHide=!0,x.__pendingShow=!1,e?S(!1,(function(){x.__pendingHide&&j()})):j())};return Object(i.useEffect)((function(){return function(){clearTimeout(x.__timer),C(!1)}}),[]),Object(i.useEffect)((function(){t!==P?t?k():C():t&&k()}),[t]),Object(i.useEffect)((function(){x.__pendingShow=!1,x.__pendingHide=!1}),[P]),a.a.createElement(u,{className:"react-modal-mask",style:Object.assign(Object.assign({},l),{visibility:P?"visible":"hidden",height:"100vh"}),onTouchMove:Ge,onClick:function(){e.hasOwnProperty("onMaskClick")?r&&r():o&&C()},ref:x},a.a.createElement(u,{className:"react-modal-main",style:f,onClick:Ve,onTouchMove:Ve},m))}d.isWeb&&(Ie=document.body),ze.displayName="Modal";var He,Ue=ze,Ye=r(75),Xe=/^(?:(?:http|https):)?\/\/(.+\.(?:alicdn|taobaocdn|taobao)\.(?:com|net))(\/.*(?:\.(jpg|png|gif|jpeg|webp))?)$/i,$e=/^(?:(?:http|https):)?\/\/(ossgw\.(?:alicdn|taobaocdn|taobao)\.(?:com|net))(\/.*(?:\.(jpg|png|gif|jpeg|webp))?)$/i,Ke=/(.+\.(?:alicdn|taobaocdn|taobao|mmcdn)\.com)/,qe=["a.tbcdn.cn","assets.alicdn.com","wwc.taobaocdn.com","wwc.alicdn.com","cbu01.alicdn.com","ossgw.alicdn.com"];if(d.isWeb){var Ze=window.screen.width;He=Ze||document.documentElement.clientWidth/750*Ze}var Qe=[110,140,150,170,220,230,240,290,300,360,450,570,580,620,790];var Je,et=function(e,t){var r=0,n=1;"string"==typeof e?(r=parseFloat(e),e.indexOf("rpx")>-1&&He&&(n=750/He)):r=e;var i=function(e){for(var t=1e3,r=e,n=0,i=!1,a=0;a<Qe.length;a++){var o=Qe[a],s=Math.abs(o-e);0===s&&(r=o,n=a,i=!0),t>s&&!i&&(t=s,r=o,n=a)}return e>r&&Qe[n+1]&&(r=Qe[n+1]),Qe.indexOf(r)>-1&&r}(Math.floor(r/n));return i?t?"_".concat(i,"w"):"".concat(i,"x10000"):""},tt=/_(\d+x\d+|cy\d+i\d+|sum|m|b)?(xz|xc)?((?:q\d+)?(?:s\d+)?)(\.jpg)?(_\.webp)?$/i,rt=function(e,t){var r=t.scalingWidth,n=t.webp,i=t.compressSuffix,a=t.quality,o=t.acutance,s=t.removeScheme,l=t.replaceDomain,u=t.ignoreGif,c=t.ignorePng,f=e;if("string"==typeof e){var p=e.match(Xe);if(p){var h=function(e){return e.match($e)}(e),v=p[1],m=p[2],g=m.match(tt)||[],y=!/\.gif($|\?)/i.test(m)||!u,b=!/\.png($|\?)/i.test(m)||!c,_=g[1]||"";!d.isNode&&r&&y&&(_=et(r,h)||_);var w=g[5]||"";n&&y&&(w=function(e){return e?".webp":"_.webp"}(h)||w);var O=g[3]||"";(i||a||o)&&y&&b&&(O=function(e,t,r,n){return n?(e.startsWith("Q")&&(e="_"+e.split("Q")[1]+"Q"),e||(t?"_"+t:"Q")):e||(t?"Q"+t:"")+(r?"S"+r:"")}(i,a,o,h)||O);var x=_&&g[2]||"",E=_||O?g[4]||".jpg":"",P=_||O?"_":"";h&&("_"==P&&(P="@"),e.split("@")[1]&&(P="")),y&&("_.jpg"!==g[0]&&(f=f.replace(g[0],"")),f+=h?P+_+x+O+w:P+_+x+O+E+w,s&&(f=function(e){return e.replace(/(http|https):/gi,"")}(f))),l&&(f=function(e,t){var r=t.match(Ke);return r&&"gw.alicdn.com"!=r[0]&&-1===qe.indexOf(t)?e.replace(t,"gw.alicdn.com"):e}(f,v))}}return f};function nt(e,t){if(window.localStorage&&"function"==typeof window.localStorage.setItem)try{window.localStorage.setItem("webpsupport-"+t,e+"")}catch(e){}}function it(e,t){if("function"==typeof e){var r=new Image;r.onload=function(){var n=r.width>0&&r.height>0;nt(n,t),e(n)},r.onerror=function(){nt(!1,t),e(!1)},r.src="//gw.alicdn.com/mt/TB11KmBXwoQMeJjy0FoXXcShVXa-1-1.png_.webp"}}function at(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"lossy";if("function"==typeof e)if(d.isMiniApp||d.isWeChatMiniProgram)e(!0);else if(d.isWeex||window.navigator.userAgent.match(/PHA/))e(!0);else if(window.navigator.userAgent.match(/windows|win32/i)||Je&&window.navigator.userAgent.match(/UCBrowser/i))e(!1);else if(window.chrome||window.opera)e(!0);else{var r=window.localStorage&&window.localStorage.getItem("webpsupport-"+t);r?e("true"==r):it(e,t)}}d.isWeex||d.isNode||d.isMiniApp||d.isWeChatMiniProgram||(Je=!!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/));var ot=/"[^"]+"|'[^']+'|url\([^\)]+\)|(\d*\.?\d+)rpx/g,st={viewportWidth:750,viewportUnit:"vw",fontViewportUnit:"vw",unitPrecision:5};function lt(e,t,r){return function(n,i){if(!i)return n;var a,o,s,l,u=parseFloat(i);return(a=u/r*100,o=e.unitPrecision,s=Math.pow(10,o+1),l=Math.floor(a*s),10*Math.round(l/10)/s)+t}}var ut=function(e,t){var r=Object.assign({},st,t);if(-1!==e.indexOf("rpx"))return e.replace(ot,lt(r,r.viewportUnit,r.viewportWidth))},ct=!1,ft=!1;function dt(e,t){var r=function(e){var t=[],r=[];return"string"==typeof e&&(r=e.split(",")),Array.isArray(e)&&(r=e),r&&r[0]&&(t[0]=r[0]),r&&r[1]&&(t[1]=r[1]),t}(t);return e?r[0]:r[1]}d.isNode||(at((function(e){ct=e})),at((function(e){ft=e}),"alpha"));var pt=Object(i.forwardRef)((function(e,t){var r=e.children,n=e.className,o=e.style,s=void 0===o?{}:o,l=e.resizeMode,c=e.width,f=e.height,p=e.placeholder,h=void 0===p?"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAAAABQABh6FO1AAAAABJRU5ErkJggg==":p